diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 69be5cd7b..236575922 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -48,7 +48,6 @@ jobs: npm_config_arch: arm64 runs-on: ${{ matrix.os }} steps: - # 1. Build the Pyinstaller binary - name: Check-out repository uses: actions/checkout@v3 @@ -58,54 +57,63 @@ jobs: with: python-version: "3.10.8" - - name: Install Pyinstaller + - name: Install dependencies run: | - pip install pyinstaller + python -m pip install --upgrade pip + pip install poetry - name: Install Dependencies run: | pip install -r server/requirements.txt - - name: Build PyInstaller Executable - run: pyinstaller run.spec + # 1.25 Publish to PyPI - # 1.5 Place the binary in extension/exe directory - - name: Make sure extension/exe directory exists + - name: Configure Poetry Token + run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + + - name: Bump the version + run: cd server && poetry version patch + + - name: Build and publish the package + run: cd server && poetry publish --build + + # 1.5 Place the binary in extensions/vscode/exe directory + - name: Make sure extensions/vscode/exe directory exists run: | - mkdir -p extension/exe + mkdir -p extensions/vscode/exe - name: Copy binary to extension (non-Windows) run: | - cp dist/run extension/exe/run + cp dist/run extensions/vscode/exe/run if: matrix.os != 'windows-latest' - name: Copy binary to extension (Windows) run: | - cp dist/run.exe extension/exe/run.exe + cp dist/run.exe extensions/vscode/exe/run.exe if: matrix.os == 'windows-latest' # 1.8 Set permissions and upload binary - name: Set permissions run: | - chmod 777 extension/exe/run + chmod 777 extensions/vscode/exe/run - uses: actions/upload-artifact@v2 if: matrix.os == 'macos-latest' && matrix.arch == 'x64' with: name: macOSBinary - path: extension/exe/run - + path: extensions/vscode/exe/run + - uses: actions/upload-artifact@v2 if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux' with: name: LinuxBinary - path: extension/exe/run - + path: extensions/vscode/exe/run + - uses: actions/upload-artifact@v2 if: matrix.os == 'windows-latest' && matrix.arch == 'x64' with: name: WindowsBinary - path: extension/exe/run.exe + path: extensions/vscode/exe/run.exe # 2. Install npm dependencies - name: Use Node.js 19.0.0 @@ -116,34 +124,34 @@ jobs: - name: Cache extension node_modules uses: actions/cache@v2 with: - path: extension/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('extension/package-lock.json') }} + path: extensions/vscode/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('extensions/vscode/package-lock.json') }} - - name: Cache react-app node_modules + - name: Cache gui node_modules uses: actions/cache@v2 with: - path: extension/react-app/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('extension/react-app/package-lock.json') }} + path: gui/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} - name: Install extension Dependencies run: | - cd extension + cd extensions/vscode npm ci - name: Add a copy of continuedev to the extension run: | - cd extension - cp -r ../server/continuedev continuedev + cd extensions/vscode + cp -r ../../server/continuedev continuedev - - name: Install react-app Dependencies + - name: Install gui Dependencies run: | - cd extension/react-app + cd gui npm ci --legacy-peer-deps # 3. Run tests for the extension - name: Prepare the extension run: | - cd extension + cd extensions/vscode npm run prepackage - name: Install Xvfb for Linux and run tests @@ -151,39 +159,39 @@ jobs: sudo apt-get install -y xvfb # Install Xvfb Xvfb :99 & # Start Xvfb export DISPLAY=:99 # Export the display number to the environment - cd extension + cd extensions/vscode npm run test if: matrix.os == 'ubuntu-20.04' - name: Run extension tests run: | - cd extension + cd extensions/vscode npm run test if: matrix.os != 'ubuntu-20.04' # 3.5 If on Apple Silicon, download the binary from S3 bucket - name: Remove existing binary if: matrix.os == 'macos-latest' && matrix.arch == 'arm64' - run: rm extension/exe/run + run: rm extensions/vscode/exe/run - name: Download Apple Silicon Binary if: matrix.os == 'macos-latest' && matrix.arch == 'arm64' - run: curl -o extension/exe/run https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/run + run: curl -o extensions/vscode/exe/run https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/run - name: Set permissions run: | - chmod -R 777 extension/exe/run + chmod -R 777 extensions/vscode/exe/run # 4. Package the extension - shell: pwsh run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV - - run: cd extension && npx vsce package --target ${{ env.target }} + - run: cd extensions/vscode && npx vsce package --target ${{ env.target }} # 5. Upload the .vsix as an artifact - uses: actions/upload-artifact@v2 with: name: ${{ env.target }} - path: "extension/*.vsix" + path: "extensions/vscode/*.vsix" # 6. Upload continue.log as an artifact for debugging of the workflow - name: Upload continue.log @@ -199,7 +207,6 @@ jobs: permissions: contents: write steps: - # 0. Setup git - name: Checkout uses: actions/checkout@v2 @@ -217,28 +224,28 @@ jobs: # 2. Publish the extension to VS Code Marketplace - run: | - cd extension - npx vsce publish --packagePath ../alpine-x64/*.vsix ../darwin-arm64/*.vsix ../darwin-x64/*.vsix ../linux-arm64/*.vsix ../linux-armhf/*.vsix ../linux-x64/*.vsix ../win32-ia32/*.vsix ../win32-x64/*.vsix ../win32-arm64/*.vsix + cd extensions/vscode + npx vsce publish --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-ia32/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix env: VSCE_PAT: ${{ secrets.VSCE_TOKEN }} # 3. Publish the extension to Open VSX Registry - name: Publish (Open VSX Registry) run: | - cd extension - npx ovsx publish -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../alpine-x64/*.vsix ../darwin-arm64/*.vsix ../darwin-x64/*.vsix ../linux-arm64/*.vsix ../linux-armhf/*.vsix ../linux-x64/*.vsix ../win32-ia32/*.vsix ../win32-x64/*.vsix ../win32-arm64/*.vsix + cd extensions/vscode + npx ovsx publish -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-ia32/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix # 4. Update the package.json version and push changes - name: Update version in package.json run: | - cd extension + cd extensions/vscode npm version patch - name: Commit changes run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit -am "ci: 💚 Update package.json version [skip ci]" + git commit -am "ci: 🏷 Update PyPI version [skip ci]" - name: Push changes uses: ad-m/github-push-action@master @@ -265,24 +272,6 @@ jobs: name: WindowsBinary path: exe/windows - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-west-1 - - - name: Upload binaries to S3 (continue-server-binaries) - uses: jakejarvis/s3-sync-action@master - with: - args: --acl public-read --follow-symlinks - env: - AWS_S3_BUCKET: continue-server-binaries - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: "us-west-1" - SOURCE_DIR: "exe" - - name: Upload binaries to S3 (s3.continue.dev) uses: jakejarvis/s3-sync-action@master with: @@ -294,3 +283,13 @@ jobs: AWS_REGION: "us-west-1" SOURCE_DIR: "exe" + - name: Upload binaries to S3 (continue-server-binaries) + uses: jakejarvis/s3-sync-action@master + with: + args: --acl public-read --follow-symlinks + env: + AWS_S3_BUCKET: continue-server-binaries + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-west-1" + SOURCE_DIR: "exe" diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index ba885d06d..e299771cc 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -6,6 +6,48 @@ on: - preview jobs: + pypi-deployment: + runs-on: ubuntu-20.04 + permissions: + contents: write + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10.8" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + + - name: Install project dependencies + run: cd server && poetry install + + - name: Configure Poetry Token + run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + + - name: Bump the version + run: cd server && poetry version patch + + - name: Build and publish the package + run: cd server && poetry publish --build + + - name: Commit changes + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -am "ci: 🏷 Update PyPI version [skip ci]" + + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} + build: strategy: matrix: @@ -65,46 +107,51 @@ jobs: run: | pip install -r server/requirements.txt - - name: Build PyInstaller Executable - run: pyinstaller run.spec - - # 1.5 Place the binary in extension/exe directory - - name: Make sure extension/exe directory exists + - name: Install tiktoken vocab file run: | - mkdir -p extension/exe + mkdir .tiktoken_cache + curl -o .tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4 https://s3.us-west-1.amazonaws.com/s3.continue.dev/tiktoken/9b5ad71b2ce5302211f9c61530b329a4922fc6a4 + + - name: Build PyInstaller Executable + run: pyinstaller continue_server.spec + + # 1.5 Place the binary in extensions/vscode/exe directory + - name: Make sure extensions/vscode/exe directory exists + run: | + mkdir -p extensions/vscode/exe - name: Copy binary to extension (non-Windows) run: | - cp dist/run extension/exe/run + cp dist/continue_server extensions/vscode/exe/continue_server if: matrix.os != 'windows-latest' - name: Copy binary to extension (Windows) run: | - cp dist/run.exe extension/exe/run.exe + cp dist/continue_server.exe extensions/vscode/exe/continue_server.exe if: matrix.os == 'windows-latest' # 1.8 Set permissions and upload binary - name: Set permissions run: | - chmod 777 extension/exe/run + chmod 777 extensions/vscode/exe/continue_server - uses: actions/upload-artifact@v2 if: matrix.os == 'macos-latest' && matrix.arch == 'x64' with: name: macOSBinary - path: extension/exe/run - + path: extensions/vscode/exe/continue_server + - uses: actions/upload-artifact@v2 if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux' with: name: LinuxBinary - path: extension/exe/run - + path: extensions/vscode/exe/continue_server + - uses: actions/upload-artifact@v2 if: matrix.os == 'windows-latest' && matrix.arch == 'x64' with: name: WindowsBinary - path: extension/exe/run.exe + path: extensions/vscode/exe/continue_server.exe # 2. Install npm dependencies - name: Use Node.js 19.0.0 @@ -115,34 +162,34 @@ jobs: - name: Cache extension node_modules uses: actions/cache@v2 with: - path: extension/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('extension/package-lock.json') }} + path: extensions/vscode/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('extensions/vscode/package-lock.json') }} - - name: Cache react-app node_modules + - name: Cache gui node_modules uses: actions/cache@v2 with: - path: extension/react-app/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('extension/react-app/package-lock.json') }} + path: gui/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} - name: Install extension Dependencies run: | - cd extension + cd extensions/vscode npm ci - name: Add a copy of continuedev to the extension run: | - cd extension - cp -r ../server/continuedev continuedev + cd extensions/vscode + cp -r ../../server/continuedev continuedev - - name: Install react-app Dependencies + - name: Install gui Dependencies run: | - cd extension/react-app + cd gui npm ci --legacy-peer-deps # 3. Run tests for the extension - name: Prepare the extension run: | - cd extension + cd extensions/vscode npm run prepackage - name: Install Xvfb for Linux and run tests @@ -150,39 +197,39 @@ jobs: sudo apt-get install -y xvfb # Install Xvfb Xvfb :99 & # Start Xvfb export DISPLAY=:99 # Export the display number to the environment - cd extension + cd extensions/vscode npm run test if: matrix.os == 'ubuntu-20.04' - name: Run extension tests run: | - cd extension + cd extensions/vscode npm run test if: matrix.os != 'ubuntu-20.04' # 3.5 If on Apple Silicon, download the binary from S3 bucket - name: Remove existing binary if: matrix.os == 'macos-latest' && matrix.arch == 'arm64' - run: rm extension/exe/run + run: rm extensions/vscode/exe/continue_server - name: Download Apple Silicon Binary if: matrix.os == 'macos-latest' && matrix.arch == 'arm64' - run: curl -o extension/exe/run https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/run + run: curl -o extensions/vscode/exe/continue_server https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/continue_server - name: Set permissions run: | - chmod -R 777 extension/exe/run + chmod -R 777 extensions/vscode/exe/continue_server # 4. Package the extension - shell: pwsh run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV - - run: cd extension && npx vsce package --pre-release --target ${{ env.target }} + - run: cd extensions/vscode && npx vsce package --pre-release --target ${{ env.target }} # 5. Upload the .vsix as an artifact - uses: actions/upload-artifact@v2 with: name: ${{ env.target }} - path: "extension/*.vsix" + path: "extensions/vscode/*.vsix" # 6. Upload continue.log as an artifact for debugging of the workflow - name: Upload continue.log @@ -215,21 +262,21 @@ jobs: # 2. Publish the extension to VS Code Marketplace - run: | - cd extension - npx vsce publish --pre-release --packagePath ../alpine-x64/*.vsix ../darwin-arm64/*.vsix ../darwin-x64/*.vsix ../linux-arm64/*.vsix ../linux-armhf/*.vsix ../linux-x64/*.vsix ../win32-ia32/*.vsix ../win32-x64/*.vsix ../win32-arm64/*.vsix + cd extensions/vscode + npx vsce publish --pre-release --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-ia32/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix env: VSCE_PAT: ${{ secrets.VSCE_TOKEN }} # 3. Publish the extension to Open VSX Registry - name: Publish (Open VSX Registry) run: | - cd extension - npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../alpine-x64/*.vsix ../darwin-arm64/*.vsix ../darwin-x64/*.vsix ../linux-arm64/*.vsix ../linux-armhf/*.vsix ../linux-x64/*.vsix ../win32-ia32/*.vsix ../win32-x64/*.vsix ../win32-arm64/*.vsix + cd extensions/vscode + npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-ia32/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix # 4. Update the package.json version and push changes - name: Update version in package.json run: | - cd extension + cd extensions/vscode npm version patch - name: Commit changes @@ -242,4 +289,45 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.ref }} \ No newline at end of file + branch: ${{ github.ref }} + + # 5. Download binaries and upload to S3 + - name: Download Linux build + uses: actions/download-artifact@v2 + with: + name: LinuxBinary + path: exe/linux + + - name: Download macOS build + uses: actions/download-artifact@v2 + with: + name: macOSBinary + path: exe/mac + + - name: Download Windows build + uses: actions/download-artifact@v2 + with: + name: WindowsBinary + path: exe/windows + + - name: Upload binaries to S3 (s3.continue.dev) + uses: jakejarvis/s3-sync-action@master + with: + args: --acl public-read --follow-symlinks + env: + AWS_S3_BUCKET: s3.continue.dev + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-west-1" + SOURCE_DIR: "exe" + + - name: Upload binaries to S3 (continue-server-binaries) + uses: jakejarvis/s3-sync-action@master + with: + args: --acl public-read --follow-symlinks + env: + AWS_S3_BUCKET: continue-server-binaries + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-west-1" + SOURCE_DIR: "exe" diff --git a/.gitignore b/.gitignore index 40f391974..dcd693aca 100644 --- a/.gitignore +++ b/.gitignore @@ -141,5 +141,9 @@ codeql .test .tiktoken_cache -.idea -intellij-extension/.gradle \ No newline at end of file + +# IntelliJ Plugin +**/**/.gradle +**/**/.idea +**/**/.qodana +**/**/build diff --git a/.vscode/launch.json b/.vscode/launch.json index 36ecd4580..77ced5f73 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,9 +13,28 @@ "name": "Server + Tests (VSCode)", "stopAll": true, "configurations": ["Server", "Tests (VSCode)"] + }, + { + "name": "Server + React App", + "stopAll": true, + "configurations": ["Server", "Vite"] } ], "configurations": [ + { + "type": "chrome", + "request": "attach", + "name": "Vite", + "url": "http://localhost:5173", + "webRoot": "${workspaceFolder}/gui/src", + "sourceMapPathOverrides": { + "webpack:///./src/*": "${webRoot}/*" + }, + "port": 9222, + // "runtimeArgs": ["--remote-debugging-port=9222"], + "sourceMaps": true, + "preLaunchTask": "gui:dev" + }, { "name": "Pytest", "type": "python", @@ -61,14 +80,14 @@ "name": "Extension (VSCode)", "type": "extensionHost", "request": "launch", - "cwd": "${workspaceFolder}/extension", + "cwd": "${workspaceFolder}/extensions/vscode", "args": [ // Pass a directory to manually test in - "${workspaceFolder}/extension/manual-testing-sandbox", - "${workspaceFolder}/extension/manual-testing-sandbox/example.ts", - "--extensionDevelopmentPath=${workspaceFolder}/extension" + "${workspaceFolder}/extensions/vscode/manual-testing-sandbox", + "${workspaceFolder}/extensions/vscode/manual-testing-sandbox/example.ts", + "--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode" ], - "outFiles": ["${workspaceFolder}/extension/out/**/*.js"], + "outFiles": ["${workspaceFolder}/extensions/vscode/out/**/*.js"], "preLaunchTask": "vscode-extension:build", "env": { "CONTINUE_SERVER_URL": "http://localhost:8001" @@ -79,19 +98,19 @@ "name": "Tests (VSCode)", "type": "extensionHost", "request": "launch", - "cwd": "${workspaceFolder}/extension", + "cwd": "${workspaceFolder}/extensions/vscode", "runtimeExecutable": "${execPath}", "args": [ // Pass a directory to run tests in - "${workspaceFolder}/extension/manual-testing-sandbox", - "--extensionDevelopmentPath=${workspaceFolder}/extension", - "--extensionTestsPath=${workspaceFolder}/extension/out/test-runner/mochaRunner" + "${workspaceFolder}/extensions/vscode/manual-testing-sandbox", + "--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode", + "--extensionTestsPath=${workspaceFolder}/extensions/vscode/out/test-runner/mochaRunner" ], "outFiles": [ // Allows setting breakpoints in test suites across the /src folder - "${workspaceFolder}/extension/out/test-suites/**/*.js", + "${workspaceFolder}/extensions/vscode/out/test-suites/**/*.js", // Allows setting breakpoints in mocha test runner file - "${workspaceFolder}/extension/out/test-runner/**/*.js" + "${workspaceFolder}/extensions/vscode/out/test-runner/**/*.js" ], "internalConsoleOptions": "openOnSessionStart", "preLaunchTask": "vscode-extension:tests:build", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1a29668b5..7210d7d62 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,110 +1,118 @@ { - "version": "2.0.0", - "tasks": [ - // Compile and bundle the extension + "version": "2.0.0", + "tasks": [ + // Compile and bundle the extension + { + "label": "vscode-extension:build", + "dependsOn": [ + // To detect compile errors + "vscode-extension:tsc", + // To build the React app that is used in the extension + "vscode-extension:continue-ui:build", + // To bundle the code the same way we do for publishing + "vscode-extension:esbuild" + ], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "vscode-extension:esbuild", + "type": "npm", + "script": "esbuild", + "path": "extensions/vscode", + "problemMatcher": [ { - "label": "vscode-extension:build", - "dependsOn": [ - // To detect compile errors - "vscode-extension:tsc", - // To build the react-app that is used in the extension - "vscode-extension:continue-ui:build", - // To bundle the code the same way we do for publishing - "vscode-extension:esbuild" - ], - "group": { - "kind": "build", - "isDefault": true + "pattern": [ + { + "regexp": "> (.*?):([0-9]+):([0-9]+): (warning|error): (.+)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 } - }, + ] + } + ] + }, + // Tsc currently errors out due to testing setup issues, will be resolved in a different PR + // This will be useful for preventing debugging if there are compile errors + { + "label": "vscode-extension:tsc", + "type": "npm", + "script": "tsc", + "path": "extensions/vscode", + "problemMatcher": ["$tsc"], + "presentation": { + "revealProblems": "onProblem", + "clear": true + } + }, + // Build the React app. It gets bundled into the extension as a file resource and has a seprate build step + { + "label": "vscode-extension:continue-ui:build", + "type": "shell", + "command": "node", + "args": ["${workspaceFolder}/extensions/vscode/scripts/prepackage.js"], + "problemMatcher": ["$tsc"], + "presentation": { + "revealProblems": "onProblem", + "clear": true + } + }, + // + // Compile and bundle tests + { + "label": "vscode-extension:tests:build", + "dependsOn": [ + // Build the extension + "vscode-extension:build", + // To detect compile errors - this type checks both the extension and the tests + "vscode-extension:tsc", + "vscode-extension:tests:esbuild" + ] + }, + { + "label": "vscode-extension:tests:esbuild", + "type": "npm", + "script": "build-test", + "path": "extensions/vscode", + "problemMatcher": [ { - "label": "vscode-extension:esbuild", - "type": "npm", - "script": "esbuild", - "path": "extension", - "problemMatcher": [ - { - "pattern": [ - { - "regexp": "> (.*?):([0-9]+):([0-9]+): (warning|error): (.+)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "message": 5 - } - ], - } - ], - }, - // Tsc currently errors out due to testing setup issues, will be resolved in a different PR - // This will be useful for preventing debugging if there are compile errors - { - "label": "vscode-extension:tsc", - "type": "npm", - "script": "tsc", - "path": "extension", - "problemMatcher": [ - "$tsc" - ], - "presentation": { - "revealProblems": "onProblem", - "clear": true, - }, - }, - // Build the react-app. It gets bundled into the extension as a file resource and has a seprate build step - { - "label": "vscode-extension:continue-ui:build", - "type": "npm", - "script": "build", - "path": "extension/react-app", - "problemMatcher": [ - "$tsc" - ], - "presentation": { - "revealProblems": "onProblem", - "clear": true, - }, - }, - // - // Compile and bundle tests - { - "label": "vscode-extension:tests:build", - "dependsOn": [ - // Build the extension - "vscode-extension:build", - // To detect compile errors - this type checks both the extension and the tests - "vscode-extension:tsc", - "vscode-extension:tests:esbuild" - ], - }, - { - "label": "vscode-extension:tests:esbuild", - "type": "npm", - "script": "build-test", - "path": "extension", - "problemMatcher": [ - { - "pattern": [ - { - "regexp": "> (.*?):([0-9]+):([0-9]+): (warning|error): (.+)$", - "file": 1, - "line": 2, - "column": 3, - "severity": 4, - "message": 5 - } - ] - } - ] - }, - // - // Install or update all dependencies for all projects in the monrepo - { - "label": "install-all-dependencies", - "type": "shell", - "command": "./install-dependencies.sh", - "problemMatcher": [], // Empty so users are not promted to select progress reporting - }, - ] -} \ No newline at end of file + "pattern": [ + { + "regexp": "> (.*?):([0-9]+):([0-9]+): (warning|error): (.+)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + ] + } + ] + }, + // + // Install or update all dependencies for all projects in the monrepo + { + "label": "install-all-dependencies", + "type": "shell", + "command": "./install-dependencies.sh", + "problemMatcher": [] // Empty so users are not promted to select progress reporting + }, + // + // Start the React App for debugging with Vite + { + "label": "gui:dev", + "type": "shell", + "command": "npm", + "options": { + "cwd": "gui" + }, + "args": ["run", "dev"], + "isBackground": true + } + ] +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b3d5cfad7..82ddb9ed1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -95,7 +95,7 @@ Continue consists of 3 components, designed so that Continue can easily be exten 1. **Continue Server** - The Continue Server is responsible for keeping state, running the autopilot loop which takes actions, and communicating between the IDE and GUI. -2. **Continue IDE Client** - The Continue IDE Client is a plugin for the IDE which implements the Continue IDE Protocol. This allows the server to request actions to be taken within the IDE, for example if `sdk.ide.setFileOpen("main.py")` is called on the server, it will communicate over websocketes with the IDE, which will open the file `main.py`. The first IDE Client we have built is for VS Code, but we plan to build clients for other IDEs in the future. The IDE Client must 1. implement the websockets protocol, as is done [here](./extension/src/continueIdeClient.ts) for VS Code and 2. launch the Continue Server, like [here](./extension/src/activation/environmentSetup.ts), and 3. display the Continue GUI in a sidebar, like [here](./extension/src/debugPanel.ts). +2. **Continue IDE Client** - The Continue IDE Client is a plugin for the IDE which implements the Continue IDE Protocol. This allows the server to request actions to be taken within the IDE, for example if `sdk.ide.setFileOpen("main.py")` is called on the server, it will communicate over websocketes with the IDE, which will open the file `main.py`. The first IDE Client we have built is for VS Code, but we plan to build clients for other IDEs in the future. The IDE Client must 1. implement the websockets protocol, as is done [here](./extensions/vscode/src/continueIdeClient.ts) for VS Code and 2. launch the Continue Server, like [here](./extensions/vscode/src/activation/environmentSetup.ts), and 3. display the Continue GUI in a sidebar, like [here](./extensions/vscode/src/debugPanel.ts). 3. **Continue GUI** - The Continue GUI is a React application that gives the user control over Continue. It displays the history of Steps, shows what context is included in the current Step, and lets the users enter natural language or slash commands to initiate new Steps. The GUI communicates with the Continue Server over its own websocket connection @@ -105,7 +105,7 @@ It is important that the IDE Client and GUI never communicate except when the ID ### Continue VS Code Client -The starting point for the VS Code extension is [activate.ts](./extension/src/activation/activate.ts). The `activateExtension` function here will: +The starting point for the VS Code extension is [activate.ts](./extensions/vscode/src/activation/activate.ts). The `activateExtension` function here will: 1. Check whether the current version of the extension is up-to-date and, if not, display a notification @@ -119,11 +119,11 @@ The JetBrains extension is currently in alpha testing. Please reach out on [Disc ### Continue IDE Websockets Protocol -On the IDE side, this is implemented in [continueIdeClient.ts](./extension/src/continueIdeClient.ts). On the server side, this is implemented in [ide.py](./server/continuedev/server/ide.py). You can see [ide_protocol.py](./server/continuedev/server/ide_protocol.py) for the protocol definition. +On the IDE side, this is implemented in [continueIdeClient.ts](./extensions/vscode/src/continueIdeClient.ts). On the server side, this is implemented in [ide.py](./continuedev/src/continuedev/server/ide.py). You can see [ide_protocol.py](./continuedev/src/continuedev/server/ide_protocol.py) for the protocol definition. ### Continue GUI Websockets Protocol -On the GUI side, this is implemented in [ContinueGUIClientProtocol.ts](./extension/react-app/src/hooks/ContinueGUIClientProtocol.ts). On the server side, this is implemented in [gui.py](./continuedev/src/continuedev/server/gui.py). You can see [AbstractContinueGUIClientProtocol.ts](./extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts) for the protocol definition. +On the GUI side, this is implemented in [ContinueGUIClientProtocol.ts](./gui/src/hooks/ContinueGUIClientProtocol.ts). On the server side, this is implemented in [gui.py](./continuedev/src/continuedev/server/gui.py). You can see [gui_protocol.py](./continuedev/src/continuedev/server/gui_protocol.py) or [AbstractContinueGUIClientProtocol.ts](./gui/src/hooks/AbstractContinueGUIClientProtocol.ts) for the protocol definition. When state is updated on the server, we currently send the entirety of the object over websockets to the GUI. This will of course have to be improved soon. The state object, `FullState`, is defined in [core/main.py](./server/continuedev/core/main.py) and includes: diff --git a/README.md b/README.md index 467c11517..6b7cf1491 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ > 🎁 **New! [Try out the new JetBrains extension (Alpha)](https://plugins.jetbrains.com/plugin/22707-continue-extension)** -Interested in a 1-on-1, 15-minute introduction to Continue? Fill out [this form](https://forms.gle/rfpDfqcUtUPDQkiu9) and we'll help you get set up. - -![Continue logo](c_d.png) +![Continue logo](media/c_d.png)

Continue

@@ -26,7 +24,7 @@ Interested in a 1-on-1, 15-minute introduction to Continue? Fill out [this form]

-![Editing With Continue](readme.gif) +![Editing With Continue](media/readme.gif) diff --git a/analyze_binary.py b/analyze_binary.py deleted file mode 100644 index 4fc1c7110..000000000 --- a/analyze_binary.py +++ /dev/null @@ -1,27 +0,0 @@ -from collections import defaultdict - -# Initialize a dictionary to store the sizes of the folders -folder_sizes = defaultdict(int) - -# Parse the file -with open( - "archive_contents.txt", "r" -) as f: # replace 'file.txt' with your file name - for line in f: - parts = line.split(",") - if len(parts) < 2: - continue - size = int(parts[1].strip()) # get the size - path = parts[-1].strip() # get the path - - # Split the path into its components and accumulate the sizes for each folder - path_parts = path.split("/") - top_level = path_parts[0] - folder_sizes[top_level] += size - -# Sort the folders by size in descending order -sorted_folders = sorted(folder_sizes.items(), key=lambda x: x[1], reverse=True) - -# Print the sorted folders and their sizes -for folder, size in sorted_folders: - print(f"{folder}: {size}") diff --git a/build.cmd b/build.cmd index cedfc7696..7e3128c58 100644 --- a/build.cmd +++ b/build.cmd @@ -16,7 +16,7 @@ pip install -r server\requirements.txt pip install pyinstaller REM 4. Call PyInstaller from within the virtual environment -env\Scripts\pyinstaller run.spec +env\Scripts\pyinstaller continue_server.spec REM 5. Deactivate the virtual environment call env\Scripts\deactivate.bat diff --git a/build.sh b/build.sh index 6b811ddb4..98c5131c0 100755 --- a/build.sh +++ b/build.sh @@ -15,27 +15,26 @@ pip install -r server/requirements.txt pip install pyinstaller # 4. Detect M1 architecture or allow manual override +USE_ARCH="intel" if [ "$1" = "m1" ]; then echo "Building for M1 architecture" - SPEC_FILE="run.m1.spec" + USE_ARCH="m1" elif [ "$1" = "regular" ]; then echo "Building for regular architecture" - SPEC_FILE="run.spec" + USE_ARCH="intel" else ARCH=$(uname -m) if [ "$ARCH" = "arm64" ]; then echo "$ARCH architecture detected, using M1 spec file" - SPEC_FILE="run.m1.spec" + USE_ARCH="m1" else echo "$ARCH architecture detected, using regular spec file" - SPEC_FILE="run.spec" + USE_ARCH="intel" fi fi -echo "Using $SPEC_FILE" - # 5. Call PyInstaller from within the virtual environment -env/bin/pyinstaller $SPEC_FILE +env/bin/pyinstaller continue_server.spec -- --arch $USE_ARCH # 6. Deactivate the virtual environment deactivate diff --git a/run.py b/continue_server.py similarity index 100% rename from run.py rename to continue_server.py diff --git a/continue_server.spec b/continue_server.spec new file mode 100644 index 000000000..f160f131e --- /dev/null +++ b/continue_server.spec @@ -0,0 +1,125 @@ +# -*- mode: python ; coding: utf-8 -*- +import certifi +import os +import sys +from PyInstaller.utils.hooks import copy_metadata +import argparse + +parser = argparse.ArgumentParser() +parser.add_argument("--arch", type=str) +parser.add_argument("--dir", type=bool, default=False) +options = parser.parse_args() + +block_cipher = None + +import subprocess +def find_package_location(package_name): + try: + # Run the 'pip show' command and capture its output + result = subprocess.run(['pip', 'show', package_name], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True) + output = result.stdout + + # Split the output into lines and find the 'Location' field + for line in output.splitlines(): + if line.startswith('Location:'): + # Extract the path after the 'Location:' prefix + location = line.split(':', 1)[1].strip() + return location + + except subprocess.CalledProcessError as e: + print(f"Error: {e.stderr}") + + return None + +chroma_path = find_package_location('chromadb') +chroma_toc = list(map(lambda x: (x[1], os.path.dirname(x[0])), Tree(f'{chroma_path}/chromadb/migrations', prefix="chromadb/migrations"))) + +tsl_path = find_package_location('tree_sitter_languages') +tsl_filename = "languages.dll" if sys.platform == "win32" else "languages.so" + +a = Analysis( + ['continue_server.py'], + pathex=[], + binaries=[(os.path.join(tsl_path, 'tree_sitter_languages', tsl_filename), "tree_sitter_languages")], + datas=[ + ('server/continuedev', 'continuedev'), + (certifi.where(), 'ca_bundle'), + ('.tiktoken_cache', 'tiktoken_cache'), + ] + copy_metadata('replicate') + chroma_toc, + hiddenimports=[ + 'anthropic', 'github', 'ripgrepy', 'bs4', 'redbaron', 'tree_sitter', 'tree_sitter_languages', + 'chromadb', 'onnxruntime', + 'chromadb.telemetry.posthog', + 'chromadb.api.segment', 'chromadb.db.impl', + 'chromadb.db.impl.sqlite', 'chromadb.migrations', + 'chromadb.migrations.embeddings_queue', 'chromadb.migrations.sysdb', + 'chromadb.migrations.metadb', 'chromadb.segment.impl', + 'chromadb.segment.impl.manager', 'chromadb.segment.impl.manager.local', + 'chromadb.segment.impl.metadata', 'chromadb.segment.impl.metadata.sqlite' + ], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False, +) +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + + +target_arch = "arm64" if options.arch == "m1" else None +print("Using target arch", target_arch) + +if options.dir: + print("Using directory") + exe = EXE( + pyz, + a.scripts, + exclude_binaries=True, + name='continue_server', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=target_arch, + codesign_identity=None, + entitlements_file=None, + ) + + coll = COLLECT( + exe, + a.binaries, + a.datas, + name='continue_server', + ) + +else: + print("Using one file") + exe = EXE( + pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='continue_server', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + ) \ No newline at end of file diff --git a/docs/docs/how-continue-works.md b/docs/docs/how-continue-works.md index f33a5622c..b2cb93ac0 100644 --- a/docs/docs/how-continue-works.md +++ b/docs/docs/how-continue-works.md @@ -37,9 +37,9 @@ You can install it from the JetBrains Marketplace [here](https://plugins.jetbrai Here is how you can get started with adding Continue to a new IDE: 1. Let us know that you would like to add Continue to a new IDE by opening an issue [here](https://github.com/continuedev/continue/issues/new/choose) -2. Implement a class that maps each of the actions like "read file" to the API provided by that IDE like [here](https://github.com/continuedev/continue/blob/main/extension/src/continueIdeClient.ts) +2. Implement a class that maps each of the actions like "read file" to the API provided by that IDE like [here](https://github.com/continuedev/continue/blob/main/extensions/vscode/src/continueIdeClient.ts) 3. Learn more about what you might also do by looking at this pull request that added initial support for JetBrains [here](https://github.com/continuedev/continue/pull/457) ## Running the server manually -If you would like to run the Continue server manually, rather than allowing the IDE to automatically set it up, you can follow the short tutorial for [Manually Running Continue](./walkthroughs/manually-run-continue.md). \ No newline at end of file +If you would like to run the Continue server manually, rather than allowing the IDE to automatically set it up, you can follow the short tutorial for [Manually Running Continue](./walkthroughs/manually-run-continue.md). diff --git a/docs/docs/reference/Context Providers/diffcontextprovider.md b/docs/docs/reference/Context Providers/diffcontextprovider.md index 7f26168cf..9848b03d6 100644 --- a/docs/docs/reference/Context Providers/diffcontextprovider.md +++ b/docs/docs/reference/Context Providers/diffcontextprovider.md @@ -10,7 +10,6 @@ Type '@diff' to reference all of the changes you've made to your current branch. - ### Inherited Properties diff --git a/docs/docs/reference/Context Providers/filecontextprovider.md b/docs/docs/reference/Context Providers/filecontextprovider.md index f39ed8a83..bea188a66 100644 --- a/docs/docs/reference/Context Providers/filecontextprovider.md +++ b/docs/docs/reference/Context Providers/filecontextprovider.md @@ -8,8 +8,6 @@ The FileContextProvider is a ContextProvider that allows you to search files in ## Properties - - ### Inherited Properties diff --git a/docs/docs/reference/Context Providers/filetreecontextprovider.md b/docs/docs/reference/Context Providers/filetreecontextprovider.md index 2253788fe..7790b1c1c 100644 --- a/docs/docs/reference/Context Providers/filetreecontextprovider.md +++ b/docs/docs/reference/Context Providers/filetreecontextprovider.md @@ -10,7 +10,6 @@ Type '@tree' to reference the contents of your current workspace. The LLM will b - ### Inherited Properties diff --git a/docs/docs/reference/Context Providers/githubissuescontextprovider.md b/docs/docs/reference/Context Providers/githubissuescontextprovider.md index 14ccd0314..6e10b3c84 100644 --- a/docs/docs/reference/Context Providers/githubissuescontextprovider.md +++ b/docs/docs/reference/Context Providers/githubissuescontextprovider.md @@ -11,7 +11,6 @@ The GitHubIssuesContextProvider is a ContextProvider that allows you to search G - ### Inherited Properties diff --git a/docs/docs/reference/Context Providers/googlecontextprovider.md b/docs/docs/reference/Context Providers/googlecontextprovider.md index bbb1ea294..fffe72d89 100644 --- a/docs/docs/reference/Context Providers/googlecontextprovider.md +++ b/docs/docs/reference/Context Providers/googlecontextprovider.md @@ -10,7 +10,6 @@ Type '@google' to reference the results of a Google search. For example, type "@ - ### Inherited Properties diff --git a/docs/docs/reference/Context Providers/searchcontextprovider.md b/docs/docs/reference/Context Providers/searchcontextprovider.md index 9c4eea9bf..cfc628fee 100644 --- a/docs/docs/reference/Context Providers/searchcontextprovider.md +++ b/docs/docs/reference/Context Providers/searchcontextprovider.md @@ -10,7 +10,6 @@ Type '@search' to reference the results of codebase search, just like the result - ### Inherited Properties diff --git a/docs/docs/reference/Context Providers/terminalcontextprovider.md b/docs/docs/reference/Context Providers/terminalcontextprovider.md index f414571a2..11276b20c 100644 --- a/docs/docs/reference/Context Providers/terminalcontextprovider.md +++ b/docs/docs/reference/Context Providers/terminalcontextprovider.md @@ -10,7 +10,6 @@ Type '@terminal' to reference the contents of your IDE's terminal. - ### Inherited Properties diff --git a/docs/docs/reference/Context Providers/urlcontextprovider.md b/docs/docs/reference/Context Providers/urlcontextprovider.md index 35632b06a..ec92c37c5 100644 --- a/docs/docs/reference/Context Providers/urlcontextprovider.md +++ b/docs/docs/reference/Context Providers/urlcontextprovider.md @@ -11,7 +11,6 @@ Type '@url' to reference the contents of a URL. You can either reference preset - ### Inherited Properties diff --git a/docs/docs/reference/Models/anthropicllm.md b/docs/docs/reference/Models/anthropicllm.md index 619e33ecd..c58b14164 100644 --- a/docs/docs/reference/Models/anthropicllm.md +++ b/docs/docs/reference/Models/anthropicllm.md @@ -21,8 +21,6 @@ Claude 2 is not yet publicly released. You can request early access [here](https ## Properties - - ### Inherited Properties diff --git a/docs/docs/reference/Models/ggml.md b/docs/docs/reference/Models/ggml.md index d2f438038..2dd19aa48 100644 --- a/docs/docs/reference/Models/ggml.md +++ b/docs/docs/reference/Models/ggml.md @@ -29,7 +29,6 @@ config = ContinueConfig( - ### Inherited Properties diff --git a/docs/docs/reference/Models/googlepalmapi.md b/docs/docs/reference/Models/googlepalmapi.md index 0262aee0a..d5eed234c 100644 --- a/docs/docs/reference/Models/googlepalmapi.md +++ b/docs/docs/reference/Models/googlepalmapi.md @@ -22,8 +22,6 @@ config = ContinueConfig( ## Properties - - ### Inherited Properties diff --git a/docs/docs/reference/Models/huggingfaceinferenceapi.md b/docs/docs/reference/Models/huggingfaceinferenceapi.md index c69fdf608..b79f6ecc0 100644 --- a/docs/docs/reference/Models/huggingfaceinferenceapi.md +++ b/docs/docs/reference/Models/huggingfaceinferenceapi.md @@ -12,8 +12,8 @@ config = ContinueConfig( ... models=Models( default=HuggingFaceInferenceAPI( - endpoint_url: "", - hf_token: "", + endpoint_url="", + hf_token="", ) ) ``` @@ -25,7 +25,6 @@ config = ContinueConfig( - ### Inherited Properties diff --git a/docs/docs/reference/Models/huggingfacetgi.md b/docs/docs/reference/Models/huggingfacetgi.md index d246ceddb..403215218 100644 --- a/docs/docs/reference/Models/huggingfacetgi.md +++ b/docs/docs/reference/Models/huggingfacetgi.md @@ -2,15 +2,12 @@ import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; # HuggingFaceTGI - - [View the source](https://github.com/continuedev/continue/tree/main/server/continuedev/libs/llm/hf_tgi.py) ## Properties - ### Inherited Properties diff --git a/docs/docs/reference/Models/llamacpp.md b/docs/docs/reference/Models/llamacpp.md index a9f973b3e..a690b438e 100644 --- a/docs/docs/reference/Models/llamacpp.md +++ b/docs/docs/reference/Models/llamacpp.md @@ -30,7 +30,6 @@ config = ContinueConfig( - ### Inherited Properties diff --git a/docs/docs/reference/Models/ollama.md b/docs/docs/reference/Models/ollama.md index fba041f26..60f52057e 100644 --- a/docs/docs/reference/Models/ollama.md +++ b/docs/docs/reference/Models/ollama.md @@ -21,7 +21,6 @@ config = ContinueConfig( - ### Inherited Properties diff --git a/docs/docs/reference/Models/openai.md b/docs/docs/reference/Models/openai.md index 31d1bd63d..d529bd0ee 100644 --- a/docs/docs/reference/Models/openai.md +++ b/docs/docs/reference/Models/openai.md @@ -35,9 +35,9 @@ Options for serving models locally with an OpenAI-compatible server include: + - ### Inherited Properties diff --git a/docs/docs/reference/Models/openaifreetrial.md b/docs/docs/reference/Models/openaifreetrial.md index 4fef79eae..ad7362798 100644 --- a/docs/docs/reference/Models/openaifreetrial.md +++ b/docs/docs/reference/Models/openaifreetrial.md @@ -31,7 +31,6 @@ These classes support any models available through the OpenAI API, assuming your - ### Inherited Properties diff --git a/docs/docs/reference/Models/queuedllm.md b/docs/docs/reference/Models/queuedllm.md index 1a87edc65..7ee979fbe 100644 --- a/docs/docs/reference/Models/queuedllm.md +++ b/docs/docs/reference/Models/queuedllm.md @@ -23,7 +23,6 @@ config = ContinueConfig( - ### Inherited Properties diff --git a/docs/docs/reference/Models/replicatellm.md b/docs/docs/reference/Models/replicatellm.md index 085eacbfb..6fc0263a7 100644 --- a/docs/docs/reference/Models/replicatellm.md +++ b/docs/docs/reference/Models/replicatellm.md @@ -24,8 +24,6 @@ If you don't specify the `model` parameter, it will default to `replicate/llama- ## Properties - - ### Inherited Properties diff --git a/docs/docs/reference/Models/textgenwebui.md b/docs/docs/reference/Models/textgenwebui.md new file mode 100644 index 000000000..83e694ba1 --- /dev/null +++ b/docs/docs/reference/Models/textgenwebui.md @@ -0,0 +1,52 @@ +import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; + +# TextGenWebUI + + TextGenWebUI is a comprehensive, open-source language model UI and local server. You can set it up with an OpenAI-compatible server plugin, but if for some reason that doesn't work, you can use this class like so: + + ```python title="~/.continue/config.py" +<<<<<<<< HEAD:server/continuedev/libs/llm/text_gen_interface.py + from continuedev.libs.llm.text_gen_interface import TextGenUI +======== + from continuedev.libs.llm.text_gen_webui import TextGenWebUI +>>>>>>>> 16b0a48035350d350e05ae5fe17478ae78042904:server/continuedev/libs/llm/text_gen_webui.py + + config = ContinueConfig( + ... + models=Models( + default=TextGenWebUI( + model="", + ) + ) + ) + ``` + + +[View the source](https://github.com/continuedev/continue/blob/main/server/continuedev/libs/llm/libs/llm/text_gen_webui.py) + +## Properties + + + + + +### Inherited Properties + + + + + + + + + + + + + + + + + + + diff --git a/docs/docs/reference/Models/togetherllm.md b/docs/docs/reference/Models/togetherllm.md index 4c01e5a7d..38d10faf5 100644 --- a/docs/docs/reference/Models/togetherllm.md +++ b/docs/docs/reference/Models/togetherllm.md @@ -25,7 +25,6 @@ config = ContinueConfig( - ### Inherited Properties diff --git a/docs/docs/reference/config.md b/docs/docs/reference/config.md index ea564dd88..2b157b91b 100644 --- a/docs/docs/reference/config.md +++ b/docs/docs/reference/config.md @@ -23,6 +23,4 @@ Continue can be deeply customized by editing the `ContinueConfig` object in `~/. - ### Inherited Properties - diff --git a/docs/docs/troubleshooting.md b/docs/docs/troubleshooting.md index 580b6f445..872e53010 100644 --- a/docs/docs/troubleshooting.md +++ b/docs/docs/troubleshooting.md @@ -6,9 +6,15 @@ keywords: [reload, delete, manually, logs, server, console] # ❓ Troubleshooting -The Continue VS Code extension is currently in beta. It will attempt to start the Continue Python server locally for you, but sometimes this will fail, causing the "Starting Continue server..." not to disappear, or other hangups. While we are working on fixes to all of these problems, there are a few things you can do to temporarily troubleshoot: +The Continue VS Code extension is currently in beta, and the Intellij extension is in Alpha. They will attempt to start the Continue Python server locally for you, but sometimes this will fail, causing the "Starting Continue server..." not to disappear, or other hangups. While we are working on fixes to all of these problems, there are a few things you can do to temporarily troubleshoot: -## Reload VS Code +## Reload your editor + +#### Intellij + +Close out the window and re-open the project. This will give Continue another chance to start the server. + +#### VS Code Open the command palette with cmd+shift+p, then type "Reload Window" and select it. This will give Continue another chance to start the server. @@ -18,7 +24,7 @@ If the above doesn't work, you can try to kill the server manually before reload 1. Open any terminal 2. Enter `lsof -i :65432 | grep "(LISTEN)" | awk '{print $2}' | xargs kill -9` to kill the server running on port 65432. -3. Restart VS Code, and Continue will attempt to start a fresh server. +3. Restart your IDE and Continue will attempt to start a fresh server. ## Delete `~/.continue` @@ -32,11 +38,17 @@ This may be necessary if you have a firewall blocking the server from downloadin ## Check the server logs +#### Intellij + +Open the file `~/.continue/continue.log` where you can view the latest logs at the bottom. + +#### VS Code + 1. `cmd+shift+p` (MacOS) / `ctrl+shift+p` (Windows) 2. Search for and then select "Continue: View Continue Server Logs" 3. Read the `continue.log` file that has opened -## Check the console logs +## Check the console logs (VS Code) If your Continue server is not setting up, try checking the console logs: @@ -50,7 +62,7 @@ If your Continue server is not setting up, try checking the console logs: If you have checked the logs and the problem seems related to Meilisearch, or if context providers aren't working, you can try to manually setup Meilisearch with their instructions [here](https://www.meilisearch.com/docs/learn/getting_started/installation). Once downloaded, you should place the Meilisearch binary at `~/.continue/server/meilisearch` and start it. Once it is running on port 7700, Continue will be able to automatically connect. -## Download an Older Version +## Download an Older Version (VS Code) If you've tried everything, reported an error, and are waiting to hear back, you can try downloading an older version of the extension. All versions are hosted on the Open VSX Registry [here](https://open-vsx.org/extension/Continue/continue). Once you've downloaded the extension, which will be a .vsix file, you can install it manually by following the instructions [here](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix). diff --git a/docs/docs/walkthroughs/codebase-embeddings.md b/docs/docs/walkthroughs/codebase-embeddings.md index 4e9c28fb5..f4ffd1622 100644 --- a/docs/docs/walkthroughs/codebase-embeddings.md +++ b/docs/docs/walkthroughs/codebase-embeddings.md @@ -38,7 +38,8 @@ config=ContinueConfig( params={ "n_retrieve": 20, "n_final": 10, - "use_reranking": True + "use_reranking": True, + "openai_api_key": "" }, ), ] @@ -52,3 +53,5 @@ config=ContinueConfig( ## Parameters After retrieving the top `n_retrieve` results from the vector database, an additional re-reranking step uses 2 LLM calls to select the top `n_final` results to use to answer the question. If you want to increase the speed of the query at the cost of relevancy, you can skip the re-ranking step by setting `use_reranking` to `False`. Then the top `n_final` results will just be directly calculated from the vector database. + +It is optional to set your `openai_api_key` parameter. If you do, we will use their Ada embeddings. Otherwise, a sentence transformers model will be run locally to calculate the embeddings. diff --git a/docs/docs/walkthroughs/manually-run-continue.md b/docs/docs/walkthroughs/manually-run-continue.md index 20a52da4c..6bed6e624 100644 --- a/docs/docs/walkthroughs/manually-run-continue.md +++ b/docs/docs/walkthroughs/manually-run-continue.md @@ -38,7 +38,7 @@ If you'd like to use a pre-built binary, you can download manually from our S3 b - [Windows](https://continue-server-binaries.s3.us-west-1.amazonaws.com/windows/run.exe) - [Linux](https://continue-server-binaries.s3.us-west-1.amazonaws.com/linux/run) -Once downloaded, start the binary by running `./run` (MacOS/Linux) or `./run.exe` (Windows) in the directory where you downloaded it. You should see that it begins listening on port 65432. +Once downloaded, start the binary by running `./continue_server` (MacOS/Linux) or `./continue_server.exe` (Windows) in the directory where you downloaded it. You should see that it begins listening on port 65432. ## Build the server binary from source @@ -47,7 +47,7 @@ If you don't want to use the PyPI package, but need a version of Continue that w 1. Clone the [Continue repo](https://github.com/continuedev/continue) 2. Change directories into the repo: `cd continue` 3. Run the build script: `sh build.sh` (or `sh build.sh m1` if building for an M1 Mac, or `build.cmd` if on Windows without WSL) -4. Now that the binary is outputted in the `./dist` folder, start the server by running `./dist/run`. You should see that it begins listening on port 65432. +4. Now that the binary is outputted in the `./dist` folder, start the server by running `./dist/continue_server`. You should see that it begins listening on port 65432. ## Run the server from source diff --git a/docs/docs/walkthroughs/running-continue-without-internet.md b/docs/docs/walkthroughs/running-continue-without-internet.md index 1ae7b7a41..752c4bff9 100644 --- a/docs/docs/walkthroughs/running-continue-without-internet.md +++ b/docs/docs/walkthroughs/running-continue-without-internet.md @@ -9,7 +9,7 @@ keywords: [no internet, air-gapped, local model] Continue can be run even on an air-gapped computer if you use a local model. You'll have to make a few adjustments for this to work. -1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extension/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix). +1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extensions/vscode/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix). 2. In VS Code settings, search "continue" and check the box that says "Manually Running Server". This will stop Continue from trying to kill and redownload the server binary. 3. Follow instructions to [run Continue manually](./manually-run-continue.md). 4. Open `~/.continue/config.py` and set `allow_anonymous_telemetry=False`. This will stop Continue from attempting requests to PostHog. diff --git a/extension/config/config.json b/extension/config/config.json deleted file mode 100644 index b4b9993e6..000000000 --- a/extension/config/config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "API_URL": "http://localhost:65432" -} diff --git a/extension/config/dev_config.json b/extension/config/dev_config.json deleted file mode 100644 index b4b9993e6..000000000 --- a/extension/config/dev_config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "API_URL": "http://localhost:65432" -} diff --git a/extension/config/prod_config.json b/extension/config/prod_config.json deleted file mode 100644 index dc0d07974..000000000 --- a/extension/config/prod_config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "API_URL": "https://basin.dev" -} diff --git a/extension/react-app/public/logos/meta.svg b/extension/react-app/public/logos/meta.svg deleted file mode 100644 index ba1d38d2c..000000000 --- a/extension/react-app/public/logos/meta.svg +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/extension/react-app/public/logos/openai.svg b/extension/react-app/public/logos/openai.svg deleted file mode 100644 index 9aacd2a11..000000000 --- a/extension/react-app/public/logos/openai.svg +++ /dev/null @@ -1,2 +0,0 @@ - -OpenAI icon \ No newline at end of file diff --git a/extension/react-app/src/components/ModelSelect.tsx b/extension/react-app/src/components/ModelSelect.tsx deleted file mode 100644 index cd27067fa..000000000 --- a/extension/react-app/src/components/ModelSelect.tsx +++ /dev/null @@ -1,237 +0,0 @@ -import styled from "styled-components"; -import { - defaultBorderRadius, - lightGray, - secondaryDark, - vscBackground, - vscForeground, -} from "."; -import { useContext } from "react"; -import { GUIClientContext } from "../App"; -import { RootStore } from "../redux/store"; -import { useDispatch, useSelector } from "react-redux"; -import { ArrowLeftIcon, PlusIcon } from "@heroicons/react/24/outline"; -import { setDialogMessage, setShowDialog } from "../redux/slices/uiStateSlice"; -import { useNavigate } from "react-router-dom"; - -const MODEL_INFO: { title: string; class: string; args: any }[] = [ - { - title: "OpenAI", - class: "OpenAI", - args: { - model: "gpt-4", - api_key: "", - }, - }, - { - title: "Anthropic", - class: "AnthropicLLM", - args: { - model: "claude-2", - api_key: "", - }, - }, - { - title: "Ollama", - class: "Ollama", - args: { - model: "codellama", - }, - }, - { - title: "TogetherAI", - class: "TogetherLLM", - args: { - model: "togethercomputer/CodeLlama-13b-Instruct", - api_key: "", - }, - }, - { - title: "Replicate", - class: "ReplicateLLM", - args: { - model: - "replicate/llama-2-70b-chat:58d078176e02c219e11eb4da5a02a7830a283b14cf8f94537af893ccff5ee781", - api_key: "", - }, - }, - { - title: "llama.cpp", - class: "LlamaCpp", - args: {}, - }, - { - title: "HuggingFace Inference API", - class: "HuggingFaceInferenceAPI", - args: { - endpoint_url: "", - hf_token: "", - }, - }, - { - title: "Google PaLM API", - class: "GooglePaLMAPI", - args: { - model: "chat-bison-001", - api_key: "", - }, - }, - { - title: "LM Studio", - class: "GGML", - args: { - server_url: "http://localhost:1234", - }, - }, - { - title: "Other OpenAI-compatible API", - class: "GGML", - args: { - server_url: "", - }, - }, - { - title: "GPT-4 limited free trial", - class: "OpenAIFreeTrial", - args: { - model: "gpt-4", - }, - }, -]; - -const GridDiv = styled.div` - display: grid; - grid-template-columns: 1fr auto; - align-items: center; - border: 0.5px solid ${lightGray}; - border-radius: ${defaultBorderRadius}; - overflow: hidden; -`; - -const Select = styled.select` - border: none; - max-width: 50vw; //changed the width - background-color: ${vscBackground}; - color: ${vscForeground}; - padding: 6px; - max-height: 35vh; - overflow: scroll; - cursor: pointer; - - &:focus { - outline: none; - } - &:hover { - background-color: ${secondaryDark}; - } -`; - -const StyledPlusIcon = styled(PlusIcon)` - cursor: pointer; - margin: 0px; - padding-left: 4px; - padding-right: 4px; - height: 100%; - - &:hover { - background-color: ${secondaryDark}; - } - border-left: 0.5px solid ${lightGray}; -`; - -const NewProviderDiv = styled.div` - cursor: pointer; - padding: 8px; - padding-left: 16px; - padding-right: 16px; - border-top: 0.5px solid ${lightGray}; - - &:hover { - background-color: ${secondaryDark}; - } -`; - -function modelSelectTitle(model: any): string { - if (model?.title) return model?.title; - if (model?.model !== undefined && model?.model.trim() !== "") { - if (model?.class_name) { - return `${model?.class_name} - ${model?.model}`; - } - return model?.model; - } - return model?.class_name; -} - -function ModelSelect(props: {}) { - const dispatch = useDispatch(); - const client = useContext(GUIClientContext); - const defaultModel = useSelector( - (state: RootStore) => (state.serverState.config as any)?.models?.default - ); - const savedModels = useSelector( - (state: RootStore) => (state.serverState.config as any)?.models?.saved - ); - - const navigate = useNavigate(); - - return ( - - - - { - navigate("/models"); - }} - /> - - ); -} - -export default ModelSelect; diff --git a/extension/scripts/prepackage.js b/extension/scripts/prepackage.js deleted file mode 100644 index c55df802d..000000000 --- a/extension/scripts/prepackage.js +++ /dev/null @@ -1,31 +0,0 @@ -const { exec } = require("child_process"); -const fs = require("fs"); -const path = require("path"); - -exec("npm install", (error) => { - if (error) throw error; - console.log("npm install completed"); - - exec("npm run typegen", (error) => { - if (error) throw error; - console.log("npm run typegen completed"); - - process.chdir("react-app"); - - exec("npm install", (error) => { - if (error) throw error; - console.log("npm install in react-app completed"); - - exec("npm run build", (error) => { - if (error) throw error; - if (!fs.existsSync(path.join("dist", "assets", "index.js"))) { - throw new Error("react-app build did not produce index.js"); - } - if (!fs.existsSync(path.join("dist", "assets", "index.css"))) { - throw new Error("react-app build did not produce index.css"); - } - console.log("npm run build in react-app completed"); - }); - }); - }); -}); diff --git a/extensions/intellij/.gitignore b/extensions/intellij/.gitignore new file mode 100644 index 000000000..73ab23c38 --- /dev/null +++ b/extensions/intellij/.gitignore @@ -0,0 +1 @@ +src/main/resources/webview \ No newline at end of file diff --git a/extensions/intellij/.run/Run IDE for UI Tests.run.xml b/extensions/intellij/.run/Run IDE for UI Tests.run.xml new file mode 100644 index 000000000..ee99b7edd --- /dev/null +++ b/extensions/intellij/.run/Run IDE for UI Tests.run.xml @@ -0,0 +1,25 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/extensions/intellij/.run/Run Plugin.run.xml b/extensions/intellij/.run/Run Plugin.run.xml new file mode 100644 index 000000000..93a586e03 --- /dev/null +++ b/extensions/intellij/.run/Run Plugin.run.xml @@ -0,0 +1,24 @@ + + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/extensions/intellij/.run/Run Qodana.run.xml b/extensions/intellij/.run/Run Qodana.run.xml new file mode 100644 index 000000000..c92f33c7c --- /dev/null +++ b/extensions/intellij/.run/Run Qodana.run.xml @@ -0,0 +1,30 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/extensions/intellij/.run/Run Tests.run.xml b/extensions/intellij/.run/Run Tests.run.xml new file mode 100644 index 000000000..d7a9e09b3 --- /dev/null +++ b/extensions/intellij/.run/Run Tests.run.xml @@ -0,0 +1,24 @@ + + + + + + + + true + true + false + + + diff --git a/extensions/intellij/.run/Run Verifications.run.xml b/extensions/intellij/.run/Run Verifications.run.xml new file mode 100644 index 000000000..3a8d68859 --- /dev/null +++ b/extensions/intellij/.run/Run Verifications.run.xml @@ -0,0 +1,26 @@ + + + + + + + + true + true + false + + + + \ No newline at end of file diff --git a/extensions/intellij/CHANGELOG.md b/extensions/intellij/CHANGELOG.md new file mode 100644 index 000000000..a66a0dc1e --- /dev/null +++ b/extensions/intellij/CHANGELOG.md @@ -0,0 +1,7 @@ + + +# continue-intellij-extension Changelog + +## [Unreleased] +### Added +- Initial scaffold created from [IntelliJ Platform Plugin Template](https://github.com/JetBrains/intellij-platform-plugin-template) diff --git a/extensions/intellij/README.md b/extensions/intellij/README.md new file mode 100644 index 000000000..09e31939d --- /dev/null +++ b/extensions/intellij/README.md @@ -0,0 +1,43 @@ + + +**[Continue](https://continue.dev/docs) is the open-source autopilot for software development—an extension that brings the power of ChatGPT to your IDE** + +### Get possible explainations + +Ask Continue about a part of your code to get another perspective + +- “how can I set up a Prisma schema that cascades deletes?” +- “where in the page should I be making this request to the backend?” +- “how can I communicate between these iframes?” + +### Edit in natural language + +Highlight a section of code and instruct Continue to refactor it + +- “/edit migrate this digital ocean terraform file into one that works for GCP” +- “/edit change this plot into a bar chart in this dashboard component” +- “/edit rewrite this function to be async” + +### Generate files from scratch + +Open a blank file and let Continue start new Python scripts, React components, etc. + +- “/edit here is a connector for postgres, now write one for kafka” +- “/edit make an IAM policy that creates a user with read-only access to S3” +- “/edit use this schema to write me a SQL query that gets recently churned users” + +## Getting Started + +By default, Continue uses GPT-4 and GPT-3.5-turbo via the OpenAI API. + +You can adjust the config to use different LLMs, including local, private models. Read more [here](https://continue.dev/docs/customization#change-the-default-llm). + +To see the keyboard shortcuts offered by Continue, see the "Feature Contributions" tab above. + +# Troubleshooting + +The Continue JetBrains extension is currently in alpha. It will attempt to start the Continue Python server locally for you, but sometimes this will fail, causing the "Starting Continue server..." not to disappear, or other hangups. While we are working on fixes to all of these problems, read here for common solutions: + +> [Troubleshooting Continue](https://continue.dev/docs/troubleshooting) + + \ No newline at end of file diff --git a/extensions/intellij/build.gradle.kts b/extensions/intellij/build.gradle.kts new file mode 100644 index 000000000..d4dad25ed --- /dev/null +++ b/extensions/intellij/build.gradle.kts @@ -0,0 +1,130 @@ +import org.jetbrains.changelog.Changelog +import org.jetbrains.changelog.markdownToHTML + +fun properties(key: String) = providers.gradleProperty(key) +fun environment(key: String) = providers.environmentVariable(key) + +plugins { + id("java") // Java support + alias(libs.plugins.kotlin) // Kotlin support + alias(libs.plugins.gradleIntelliJPlugin) // Gradle IntelliJ Plugin + alias(libs.plugins.changelog) // Gradle Changelog Plugin + alias(libs.plugins.qodana) // Gradle Qodana Plugin + alias(libs.plugins.kover) // Gradle Kover Plugin +} + +group = properties("pluginGroup").get() +version = properties("pluginVersion").get() + +// Configure project's dependencies +repositories { + mavenCentral() +} + +// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog +dependencies { +// implementation(libs.annotations) + implementation("com.squareup.okhttp3:okhttp:4.9.1") + implementation("org.jetbrains.kotlin:kotlin-stdlib:1.4.32") + +} + +// Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+. +kotlin { + jvmToolchain(17) +} + +// Configure Gradle IntelliJ Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html +intellij { + pluginName = properties("pluginName") + version = properties("platformVersion") + type = properties("platformType") + + // Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file. + plugins = properties("platformPlugins").map { it.split(',').map(String::trim).filter(String::isNotEmpty) } +} + +// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin +changelog { + groups.empty() + repositoryUrl = properties("pluginRepositoryUrl") +} + +// Configure Gradle Qodana Plugin - read more: https://github.com/JetBrains/gradle-qodana-plugin +qodana { + cachePath = provider { file(".qodana").canonicalPath } + reportPath = provider { file("build/reports/inspections").canonicalPath } + saveReport = true + showReport = environment("QODANA_SHOW_REPORT").map { it.toBoolean() }.getOrElse(false) +} + +// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration +koverReport { + defaults { + xml { + onCheck = true + } + } +} + +tasks { + wrapper { + gradleVersion = properties("gradleVersion").get() + } + + patchPluginXml { + version = properties("pluginVersion") + sinceBuild = properties("pluginSinceBuild") + untilBuild = properties("pluginUntilBuild") + + // Extract the section from README.md and provide for the plugin's manifest + pluginDescription = providers.fileContents(layout.projectDirectory.file("README.md")).asText.map { + val start = "" + val end = "" + + with (it.lines()) { + if (!containsAll(listOf(start, end))) { + throw GradleException("Plugin description section not found in README.md:\n$start ... $end") + } + subList(indexOf(start) + 1, indexOf(end)).joinToString("\n").let(::markdownToHTML) + } + } + + val changelog = project.changelog // local variable for configuration cache compatibility + // Get the latest available change notes from the changelog file + changeNotes = properties("pluginVersion").map { pluginVersion -> + with(changelog) { + renderItem( + (getOrNull(pluginVersion) ?: getUnreleased()) + .withHeader(false) + .withEmptySections(false), + Changelog.OutputType.HTML, + ) + } + } + } + + // Configure UI tests plugin + // Read more: https://github.com/JetBrains/intellij-ui-test-robot + runIdeForUiTests { + systemProperty("robot-server.port", "8082") + systemProperty("ide.mac.message.dialogs.as.sheets", "false") + systemProperty("jb.privacy.policy.text", "") + systemProperty("jb.consents.confirmation.enabled", "false") + } + + signPlugin { + certificateChain = environment("CERTIFICATE_CHAIN") + privateKey = environment("PRIVATE_KEY") + password = environment("PRIVATE_KEY_PASSWORD") + } + + publishPlugin { + dependsOn("patchChangelog") + token = environment("PUBLISH_TOKEN") + // The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3 + // Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more: + // https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel + channels = properties("pluginVersion").map { listOf(it.split('-').getOrElse(1) { "default" }.split('.').first()) } + } +} diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties new file mode 100644 index 000000000..bc5a94c35 --- /dev/null +++ b/extensions/intellij/gradle.properties @@ -0,0 +1,34 @@ +# IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html + +pluginGroup = com.github.continuedev.continueintellijextension +pluginName = continue-intellij-extension +pluginRepositoryUrl = https://github.com/continuedev/continue +# SemVer format -> https://semver.org +pluginVersion = 0.0.13 + +# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html +pluginSinceBuild = 223 +pluginUntilBuild = 232.* + +# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension +platformType = IC +platformVersion = 2022.3.3 + +# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html +# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 +platformPlugins = + +# Gradle Releases -> https://github.com/gradle/gradle/releases +gradleVersion = 8.3 + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true + +# Enable Gradle Kotlin DSL Lazy Property Assignment -> https://docs.gradle.org/current/userguide/kotlin_dsl.html#kotdsl:assignment +systemProp.org.gradle.unsafe.kotlin.assignment = true diff --git a/extensions/intellij/gradle/libs.versions.toml b/extensions/intellij/gradle/libs.versions.toml new file mode 100644 index 000000000..4e9387593 --- /dev/null +++ b/extensions/intellij/gradle/libs.versions.toml @@ -0,0 +1,20 @@ +[versions] +# libraries +annotations = "24.0.1" + +# plugins +kotlin = "1.9.0" +changelog = "2.1.2" +gradleIntelliJPlugin = "1.15.0" +qodana = "0.1.13" +kover = "0.7.3" + +[libraries] +annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" } + +[plugins] +changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" } +gradleIntelliJPlugin = { id = "org.jetbrains.intellij", version.ref = "gradleIntelliJPlugin" } +kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } +kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" } +qodana = { id = "org.jetbrains.qodana", version.ref = "qodana" } diff --git a/extensions/intellij/gradle/wrapper/gradle-wrapper.jar b/extensions/intellij/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 000000000..7f93135c4 Binary files /dev/null and b/extensions/intellij/gradle/wrapper/gradle-wrapper.jar differ diff --git a/extensions/intellij/gradle/wrapper/gradle-wrapper.properties b/extensions/intellij/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..ac72c34e8 --- /dev/null +++ b/extensions/intellij/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/extensions/intellij/gradlew b/extensions/intellij/gradlew new file mode 100755 index 000000000..0adc8e1a5 --- /dev/null +++ b/extensions/intellij/gradlew @@ -0,0 +1,249 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/extensions/intellij/gradlew.bat b/extensions/intellij/gradlew.bat new file mode 100644 index 000000000..93e3f59f1 --- /dev/null +++ b/extensions/intellij/gradlew.bat @@ -0,0 +1,92 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/extensions/intellij/qodana.yml b/extensions/intellij/qodana.yml new file mode 100644 index 000000000..f388de9a8 --- /dev/null +++ b/extensions/intellij/qodana.yml @@ -0,0 +1,12 @@ +# Qodana configuration: +# https://www.jetbrains.com/help/qodana/qodana-yaml.html + +version: 1.0 +linter: jetbrains/qodana-jvm-community:latest +projectJDK: 17 +profile: + name: qodana.recommended +exclude: + - name: All + paths: + - .qodana diff --git a/extensions/intellij/server/requirements.txt b/extensions/intellij/server/requirements.txt new file mode 100644 index 000000000..b2505cc33 --- /dev/null +++ b/extensions/intellij/server/requirements.txt @@ -0,0 +1 @@ +continuedev \ No newline at end of file diff --git a/extensions/intellij/server/run_server.py b/extensions/intellij/server/run_server.py new file mode 100644 index 000000000..95f77cdbb --- /dev/null +++ b/extensions/intellij/server/run_server.py @@ -0,0 +1,4 @@ +from continuedev.server.main import run_server + +if __name__ == "__main__": + run_server() \ No newline at end of file diff --git a/extensions/intellij/settings.gradle.kts b/extensions/intellij/settings.gradle.kts new file mode 100644 index 000000000..ce3d29a8f --- /dev/null +++ b/extensions/intellij/settings.gradle.kts @@ -0,0 +1 @@ +rootProject.name = "continue-intellij-extension" diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/MyBundle.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/MyBundle.kt new file mode 100644 index 000000000..fa1e59dbb --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/MyBundle.kt @@ -0,0 +1,26 @@ +package com.github.continuedev.continueintellijextension + +import com.intellij.DynamicBundle +import org.jetbrains.annotations.NonNls +import org.jetbrains.annotations.PropertyKey + +@NonNls +private const val BUNDLE = "messages.MyBundle" + +object MyBundle : DynamicBundle(BUNDLE) { + + @JvmStatic + fun message( + @PropertyKey(resourceBundle = BUNDLE) key: String, + vararg params: Any + ) = + getMessage(key, *params) + + @Suppress("unused") + @JvmStatic + fun messagePointer( + @PropertyKey(resourceBundle = BUNDLE) key: String, + vararg params: Any + ) = + getLazyMessage(key, *params) +} diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/actions/ContinuePluginActions.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/actions/ContinuePluginActions.kt new file mode 100644 index 000000000..a61e108c4 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/actions/ContinuePluginActions.kt @@ -0,0 +1,229 @@ +package com.github.continuedev.continueintellijextension.actions + +import com.github.continuedev.continueintellijextension.services.ContinuePluginService +import com.intellij.openapi.actionSystem.AnAction +import com.intellij.openapi.actionSystem.AnActionEvent +import com.intellij.openapi.actionSystem.impl.SimpleDataContext +import com.intellij.openapi.components.ServiceManager + import com.intellij.openapi.ui.DialogWrapper +import com.intellij.openapi.ui.Messages +import com.intellij.openapi.wm.ToolWindowManager +import java.awt.Dimension +import java.awt.GridLayout +import javax.swing.* +import javax.swing.event.DocumentEvent +import javax.swing.event.DocumentListener +import com.intellij.ui.components.JBScrollPane +import java.awt.BorderLayout + +fun pluginServiceFromActionEvent(e: AnActionEvent): ContinuePluginService? { + val project = e.project ?: return null + return ServiceManager.getService( + project, + ContinuePluginService::class.java + ) +} + +class AcceptDiffAction : AnAction() { + override fun actionPerformed(e: AnActionEvent) { + val continuePluginService = pluginServiceFromActionEvent(e) ?: return + continuePluginService.ideProtocolClient?.diffManager?.acceptDiff(null) + } +} + +class RejectDiffAction : AnAction() { + override fun actionPerformed(e: AnActionEvent) { + val continuePluginService = pluginServiceFromActionEvent(e) ?: return + continuePluginService.ideProtocolClient?.diffManager?.rejectDiff(null) + } +} + + + class QuickInputDialogWrapper : DialogWrapper(true) { + private var panel: JPanel? = null + private var textArea: JTextArea? = null + init { + init() + title = "Continue Quick Input" + } + + override fun getPreferredFocusedComponent(): JComponent? { + return textArea + } + + override fun createCenterPanel(): JComponent? { + panel = JPanel(BorderLayout()) + textArea = JTextArea(3, 60) + textArea?.lineWrap = true + textArea?.wrapStyleWord = true + + // Add a DocumentListener to the JTextArea + textArea?.document?.addDocumentListener(object : DocumentListener { + override fun insertUpdate(e: DocumentEvent?) { + updateSize() + } + + override fun removeUpdate(e: DocumentEvent?) { + updateSize() + } + + override fun changedUpdate(e: DocumentEvent?) { + updateSize() + } + + private fun updateSize() { + val text = textArea?.text ?: "" + val lines = text.count { it == '\n' } + 1 + val metrics = textArea?.getFontMetrics(textArea?.font) + val lineHeight = metrics?.height ?: 0 + textArea?.preferredSize = Dimension(textArea?.width ?: 0, lines * lineHeight) + + // Revalidate the JPanel to reflect the changes + panel?.revalidate() + } + }) + + val scrollPane = JBScrollPane(textArea) + scrollPane.verticalScrollBarPolicy = JScrollPane.VERTICAL_SCROLLBAR_ALWAYS + panel?.add(scrollPane, BorderLayout.CENTER) + + return panel + } + + + fun showDialogAndGetText(): String? { + show() + return if (this.exitCode == OK_EXIT_CODE) { + textArea!!.text + } else { + null + } + } + } + + +class QuickTextEntryAction : AnAction() { + override fun actionPerformed(e: AnActionEvent) { + val continuePluginService = pluginServiceFromActionEvent(e) ?: return + continuePluginService.ideProtocolClient?.sendHighlightedCode() + + // Create and show the dialog + val dialog = QuickInputDialogWrapper() + val text: String? = dialog.showDialogAndGetText() + + // Show the text entered by the user + if (text != null) { + val service = pluginServiceFromActionEvent(e) + service?.ideProtocolClient?.sendMainUserInput(text) + + val project = e.project + if (project != null) { + val toolWindowManager = ToolWindowManager.getInstance(project) + val toolWindow = toolWindowManager.getToolWindow("Continue") + + if (toolWindow != null) { + if (!toolWindow.isVisible) { + toolWindow.activate(null) + } + } + } + + continuePluginService.continuePluginWindow?.content?.components?.get(0)?.requestFocus() + continuePluginService.dispatchCustomEvent("message", mutableMapOf("type" to "focusContinueInput")) + + } + } +} + +class ViewLogsAction : AnAction() { + override fun actionPerformed(e: AnActionEvent) { + Messages.showMessageDialog( + "This action is not yet implemented", + "Continue Action not Implemented", + Messages.getInformationIcon() + ) + } +} + +class ToggleAuxiliaryBarAction : AnAction() { + override fun actionPerformed(e: AnActionEvent) { + val project = e.project ?: return + val toolWindowManager = ToolWindowManager.getInstance(project) + val toolWindow = toolWindowManager.getToolWindow("Continue") + + if (toolWindow != null) { + if (toolWindow.isVisible) { + toolWindow.component.transferFocus() + toolWindow.hide(null) + } else { + toolWindow.activate(null) + } + } + } +} + +class FocusContinueInputWithEditAction : AnAction() { + override fun actionPerformed(e: AnActionEvent) { + val project = e.project + if (project != null) { + val toolWindowManager = ToolWindowManager.getInstance(project) + val toolWindow = toolWindowManager.getToolWindow("Continue") + + if (toolWindow != null) { + if (!toolWindow.isVisible) { + toolWindow.activate(null) + } + } + } + + val continuePluginService = pluginServiceFromActionEvent(e) ?: return + continuePluginService.continuePluginWindow?.content?.components?.get(0)?.requestFocus() + continuePluginService.dispatchCustomEvent("message", mutableMapOf("type" to "focusContinueInputWithEdit")) + + continuePluginService.ideProtocolClient?.sendHighlightedCode() + } +} + +class FocusContinueInputAction : AnAction() { + override fun actionPerformed(e: AnActionEvent) { + val project = e.project + if (project != null) { + val toolWindowManager = ToolWindowManager.getInstance(project) + val toolWindow = toolWindowManager.getToolWindow("Continue") + + if (toolWindow != null) { + if (!toolWindow.isVisible) { + toolWindow.activate(null) + } + } + } + + val continuePluginService = pluginServiceFromActionEvent(e) ?: return + + continuePluginService.continuePluginWindow?.content?.components?.get(0)?.requestFocus() + continuePluginService.dispatchCustomEvent("message", mutableMapOf("type" to "focusContinueInput")) + + continuePluginService.ideProtocolClient?.sendHighlightedCode() + } +} + +class NewContinueSessionAction : AnAction() { + override fun actionPerformed(e: AnActionEvent) { + val project = e.project + if (project != null) { + val toolWindowManager = ToolWindowManager.getInstance(project) + val toolWindow = toolWindowManager.getToolWindow("Continue") + + if (toolWindow != null) { + if (!toolWindow.isVisible) { + toolWindow.activate(null) + } + } + } + + val continuePluginService = pluginServiceFromActionEvent(e) ?: return + + continuePluginService.continuePluginWindow?.content?.components?.get(0)?.requestFocus() + continuePluginService.dispatchCustomEvent("message", mutableMapOf("type" to "focusContinueInputWithNewSession")) + } +} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt new file mode 100644 index 000000000..e0a3da21e --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt @@ -0,0 +1,578 @@ +package com.github.continuedev.continueintellijextension.activities + +import com.github.continuedev.continueintellijextension.constants.CONTINUE_PYTHON_SERVER_URL +import com.github.continuedev.continueintellijextension.constants.CONTINUE_SERVER_WEBSOCKET_PORT +import com.github.continuedev.continueintellijextension.`continue`.DefaultTextSelectionStrategy +import com.github.continuedev.continueintellijextension.`continue`.IdeProtocolClient +import com.github.continuedev.continueintellijextension.`continue`.getMachineUniqueID +import com.github.continuedev.continueintellijextension.listeners.ContinuePluginSelectionListener +import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings +import com.github.continuedev.continueintellijextension.services.ContinuePluginService +import com.google.gson.Gson +import com.intellij.ide.plugins.PluginManagerCore +import com.intellij.openapi.Disposable +import com.intellij.openapi.actionSystem.ActionManager +import com.intellij.openapi.application.ApplicationManager +import com.intellij.openapi.components.ServiceManager +import com.intellij.openapi.editor.EditorFactory +import com.intellij.openapi.extensions.PluginId +import com.intellij.openapi.fileEditor.FileEditorManager +import com.intellij.openapi.project.Project +import com.intellij.openapi.startup.StartupActivity +import com.intellij.openapi.ui.DialogWrapper +import com.intellij.openapi.util.io.StreamUtil +import com.intellij.openapi.vfs.LocalFileSystem +import com.intellij.openapi.wm.ToolWindowManager +import com.intellij.ui.jcef.executeJavaScriptAsync +import kotlinx.coroutines.* +import okhttp3.OkHttpClient +import okhttp3.Request +import java.awt.Dimension +import java.awt.Font +import java.awt.GridLayout +import java.io.* +import java.nio.charset.StandardCharsets +import java.nio.file.Files +import java.nio.file.Paths +import java.nio.file.attribute.PosixFilePermission +import javax.swing.* + + +fun getContinueGlobalPath(): String { + val continuePath = Paths.get(System.getProperty("user.home"), ".continue") + if (Files.notExists(continuePath)) { + Files.createDirectories(continuePath) + } + return continuePath.toString() +} + +fun serverPath(): String { + val sPath = Paths.get(getContinueGlobalPath(), "server").toString() + val directory = File(sPath) + if (!directory.exists()) { + directory.mkdir() + } + return sPath +} + +fun serverVersionPath(): String { + return Paths.get(serverPath(), "server_version.txt").toString() +} + +fun serverBinaryPath(): String { + val exeFile = if (System.getProperty("os.name").toLowerCase() + .contains("win") + ) "run.exe" else "run" + return Paths.get(serverPath(), "exe", exeFile).toString() +} + +fun downloadFromS3( + bucket: String, + filename: String, + destination: String, + region: String, + useBackupUrl: Boolean = false + +) { + val client = OkHttpClient() + val url = if (useBackupUrl) + "https://s3.continue.dev/$filename" + else + "https://$bucket.s3.$region.amazonaws.com/$filename" + + val request = Request.Builder() + .url(url) + .build() + + // Create the necessary folders + val directory = File(destination).parentFile + if (!directory.exists()) { + directory.mkdirs() + } + + client.newCall(request).execute().use { response -> + if (!response.isSuccessful) { + Files.deleteIfExists(Paths.get(destination)) + throw IOException("No body returned when downloading from S3 bucket") + } + + val fos = FileOutputStream(File(destination)) + val body = response.body!!.byteStream() + + fos.use { + body.copyTo(it) + } + } +} + +// Set permissions on the binary +fun setPermissions(destination: String) { + val osName = System.getProperty("os.name").toLowerCase() + if (osName.contains("mac") || osName.contains("darwin")) { + ProcessBuilder( + "xattr", + "-dr", + "com.apple.quarantine", + destination + ).start() + setFilePermissions(destination, "rwxr-xr-x") + } else if (osName.contains("nix") || osName.contains("nux") || osName.contains( + "mac" + ) + ) { + setFilePermissions(destination, "rwxr-xr-x") + } +} + +fun setFilePermissions(path: String, posixPermissions: String) { + val perms = HashSet() + if (posixPermissions.contains("r")) perms.add(PosixFilePermission.OWNER_READ) + if (posixPermissions.contains("w")) perms.add(PosixFilePermission.OWNER_WRITE) + if (posixPermissions.contains("x")) perms.add(PosixFilePermission.OWNER_EXECUTE) + Files.setPosixFilePermissions(Paths.get(path), perms) +} + +fun getProcessId(port: Int): String? { + val os = System.getProperty("os.name").toLowerCase() + + val command = when { + os.contains("win") -> listOf( + "cmd.exe", + "/c", + "netstat -ano | findstr :$port" + ) + os.contains("nix") || os.contains("mac") || os.contains("nux") -> listOf( + "/bin/sh", + "-c", + "lsof -t -i tcp:$port" + ) + else -> throw UnsupportedOperationException("Unsupported operating system: $os") + } + + val process = ProcessBuilder(command).start() + val reader = BufferedReader(InputStreamReader(process.inputStream)) + + return reader.readLine()?.trim() +} + + +fun killProcess(pid: String) { + val os = System.getProperty("os.name").toLowerCase() + val command = when { + os.contains("win") -> listOf("taskkill", "/F", "/PID", pid) + else -> listOf( + "kill", + "-9", + pid + ) + } + + try { + val process = ProcessBuilder(command).start() + process.waitFor() + } catch (e: IOException) { + e.printStackTrace() + } +} + +fun checkServerRunning(): Boolean { + val processId = getProcessId(CONTINUE_SERVER_WEBSOCKET_PORT) + return processId != null +} + +fun getExtensionVersion(): String { + val pluginId = + PluginId.getId("com.github.continuedev.continueintellijextension") + val pluginDescriptor = PluginManagerCore.getPlugin(pluginId) + return pluginDescriptor?.version ?: "" +} + +fun checkOrKillRunningServer(project: Project): Boolean { + val continuePluginService = ServiceManager.getService( + project, + ContinuePluginService::class.java + ) + val serverRunning: Boolean = checkServerRunning() + var shouldKillAndReplace = true + + val serverVersionPath = serverVersionPath() + if (File(serverVersionPath).exists()) { + val serverVersion = File(serverVersionPath).readText() + if (serverVersion == getExtensionVersion() && serverRunning) { + println("Continue server of correct version already running") + shouldKillAndReplace = false + } + } + + if (shouldKillAndReplace) { + continuePluginService.dispatchCustomEvent("serverStatus", mutableMapOf( + "type" to "serverStatus", + "message" to "Stopping Outdated Server" + )) + println("Killing server from old version of Continue") + val pid = getProcessId(CONTINUE_SERVER_WEBSOCKET_PORT) + pid?.let { killProcess(it) } + + if (File(serverVersionPath).exists()) { + File(serverVersionPath).delete() + } + + val serverBinary = serverBinaryPath() + if (File(serverBinary).exists()) { + File(serverBinary).delete() + } + + } + return serverRunning && !shouldKillAndReplace +} + +fun runBinary(path: String) { + try { + if (System.getProperty("os.name").toLowerCase().contains("win")) { + // Windows approach + val script = """ + Set WshShell = CreateObject("WScript.Shell") + WshShell.Run "$path", 0 + Set WshShell = Nothing + """.trimIndent() + val scriptPath = Paths.get("startProcess.vbs") + Files.writeString(scriptPath, script) + val processBuilder = ProcessBuilder("cmd", "/c", "start", "cscript", scriptPath.toString()) + processBuilder.start() + } else { + // Unix-like approach + val processBuilder = ProcessBuilder("sh", "-c", "nohup $path > /dev/null 2>&1 &") + processBuilder.start() + } + } catch (e: IOException) { + e.printStackTrace() + } +} + + +suspend fun startBinaryWithRetry(path: String) { + var attempts = 0 + while (attempts < 5) { + try { + // Your suspend function call here + runBinary(path) + break // If the function call is successful, break the loop + } catch (e: Exception) { + attempts++ + delay(500) + if (attempts == 5) throw e // If this was the last attempt, rethrow the exception + } + } +} + +fun getContinueServerUrl(): String { + val settings = + ServiceManager.getService(ContinueExtensionSettings::class.java) + return settings.continueState.serverUrl +} + +suspend fun startContinuePythonServer(project: Project) { + println("server starting") + val continuePluginService = ServiceManager.getService( + project, + ContinuePluginService::class.java + ) + + val settings = + ServiceManager.getService(ContinueExtensionSettings::class.java) + val serverUrl = getContinueServerUrl() + + if ((serverUrl != CONTINUE_PYTHON_SERVER_URL && serverUrl != "http://127.0.0.1:65432") || settings.continueState.manuallyRunningServer) { + continuePluginService.dispatchCustomEvent("serverStatus", mutableMapOf( + "type" to "serverStatus", + "message" to "Connecting to Continue Server" + )) + + println("Continue server being run manually, skipping start") + return + } + + if (checkOrKillRunningServer(project)) { + continuePluginService.dispatchCustomEvent("serverStatus", mutableMapOf( + "type" to "serverStatus", + "message" to "Connecting to Continue Server" + )) + println("Continue server already running") + return + } + + + // Determine from OS details which file to download + val filename = when { + System.getProperty("os.name") + .toLowerCase().contains("win") -> "windows/run.exe" + System.getProperty("os.name").startsWith("Mac", ignoreCase = true) -> + if (System.getProperty("os.arch") == "arm64") "apple-silicon/run" else "mac/run" + else -> "linux/run" + } + + val destination = serverBinaryPath() + + // Check whether the binary needs to be downloaded + var shouldDownload = true + if (File(destination).exists()) { + if (File(serverVersionPath()).exists()) { + val serverVersion = File(serverVersionPath()).readText() + if (serverVersion == getExtensionVersion()) { + println("Continue server already downloaded") + shouldDownload = false + } else { + println("Old version of the server downloaded, removing") + File(destination).delete() + } + } else { + println("Old version of the server downloaded, removing") + File(destination).delete() + } + } + + if (shouldDownload) { + continuePluginService.dispatchCustomEvent("serverStatus", mutableMapOf( + "type" to "serverStatus", + "message" to "Downloading Continue server binary" + )) + + println("Downloading Continue Server Binary") + // Download the binary from S3 + try { + downloadFromS3( + "continue-server-binaries", + filename, + destination, + "us-west-1", + false + ) + } catch (e: Exception) { + continuePluginService.dispatchCustomEvent("serverStatus", mutableMapOf( + "type" to "serverStatus", + "message" to "First download failed, attempting backup" + )) + try { + downloadFromS3( + "continue-server-binaries", + filename, + destination, + "us-west-1", + true + ) + } catch (e: Exception) { + continuePluginService.dispatchCustomEvent("serverStatus", mutableMapOf( + "type" to "serverStatus", + "message" to "Failed to download Continue server binary: ${e.message}" + )) + throw e + } + } + + + // Set permissions on the binary + setPermissions(destination) + } + + // Validate that the binary exists + if (!File(destination).exists()) { + continuePluginService.dispatchCustomEvent("serverStatus", mutableMapOf( + "type" to "serverStatus", + "message" to "Failed to download Continue server binary" + )) + + throw Error("Failed to download Continue server binary") + } + + // Spawn server process + continuePluginService.dispatchCustomEvent("serverStatus", mutableMapOf( + "type" to "serverStatus", + "message" to "Launching Continue Server" + )) + println("Starting Continue server binary") + startBinaryWithRetry(destination) + + // Write the server version to server_version.txt + File(serverVersionPath()).writeText(getExtensionVersion()) + + // Wait for the server process to start + println("Waiting for Continue server to start...") + var i = 1 + while (getProcessId(CONTINUE_SERVER_WEBSOCKET_PORT) == null) { + delay(1000) + continuePluginService.dispatchCustomEvent("serverStatus", mutableMapOf( + "type" to "serverStatus", + "message" to "Launching Continue Server" + ".".repeat(i % 4) + )) + i++ + } + println("Continue server started") +} + +class WelcomeDialogWrapper(val project: Project) : DialogWrapper(true) { + private var panel: JPanel? = null + private var paragraph: JTextArea? = null + + init { + init() + title = "Welcome to Continue" + } + + override fun doOKAction() { + super.doOKAction() + val toolWindowManager = ToolWindowManager.getInstance(project) + val toolWindow = + toolWindowManager.getToolWindow("Continue") + toolWindow?.show() + } + + override fun createCenterPanel(): JComponent? { + panel = JPanel(GridLayout(0, 1)) + panel!!.preferredSize = Dimension(500, panel!!.preferredSize.height) + val paragraph = JLabel() + val shortcutKey = if (System.getProperty("os.name").toLowerCase().contains("mac")) "⌘" else "⌃" + paragraph.text = """ + Welcome! You can access Continue from the right side panel by clicking on the logo.

+ + To ask a question about a piece of code: highlight it, use $shortcutKey J to select the code and focus the input box, then ask your question.

+ To generate an inline edit: highlight the code you want to edit, use $shortcutKey ⇧ J, then type your requested edit.""".trimIndent() + + paragraph.font = Font("Arial", Font.PLAIN, 16) + + panel!!.add(paragraph) + + return panel + } + + override fun createActions(): Array { + val okAction = getOKAction() + okAction.putValue(Action.NAME, "Open Continue") + + val cancelAction = getCancelAction() + cancelAction.putValue(Action.NAME, "Cancel") + + return arrayOf(okAction, cancelAction) + } +} + +class ContinuePluginStartupActivity : StartupActivity, Disposable { + private val coroutineScope = CoroutineScope(Dispatchers.IO) + + override fun runActivity(project: Project) { + + removeShortcutFromAction(getPlatformSpecificKeyStroke("J")) + removeShortcutFromAction(getPlatformSpecificKeyStroke("shift J")) + + ApplicationManager.getApplication().executeOnPooledThread { + initializePlugin(project) + } + } + + private fun getPlatformSpecificKeyStroke(key: String): String { + val osName = System.getProperty("os.name").lowercase() + val modifier = if (osName.contains("mac")) "meta" else "control" + return "$modifier $key" + } + + private fun removeShortcutFromAction(shortcut: String) { + val actionManager = ActionManager.getInstance() + val keyStroke = KeyStroke.getKeyStroke(shortcut) + val actionIds = actionManager.getActionIds(keyStroke) + + for (actionId in actionIds) { + val action = actionManager.getAction(actionId) + val shortcuts = action.shortcutSet.shortcuts.filterNot { it is KeyboardShortcut && it.firstKeyStroke == keyStroke }.toTypedArray() + + action.registerCustomShortcutSet(Shortcut { shortcuts }, null) + } + } + + private fun initializePlugin(project: Project) { + val continuePluginService = ServiceManager.getService( + project, + ContinuePluginService::class.java + ) + + val defaultStrategy = DefaultTextSelectionStrategy() + + coroutineScope.launch { + val settings = + ServiceManager.getService(ContinueExtensionSettings::class.java) + if (!settings.continueState.shownWelcomeDialog) { + // Open continue_tutorial.py + ContinuePluginStartupActivity::class.java.getClassLoader().getResourceAsStream("continue_tutorial.py").use { `is` -> + if (`is` == null) { + throw IOException("Resource not found: continue_tutorial.py") + } + var content = StreamUtil.readText(`is`, StandardCharsets.UTF_8) + if (!System.getProperty("os.name").toLowerCase().contains("mac")) { + content = content.replace("⌘", "⌃") + } + val filepath = Paths.get(getContinueGlobalPath(), "continue_tutorial.py").toString() + File(filepath).writeText(content) + val virtualFile = LocalFileSystem.getInstance().findFileByPath(filepath) + + if (virtualFile != null) { + ApplicationManager.getApplication().invokeLater { + FileEditorManager.getInstance(project).openFile(virtualFile, true) + } + } + } + + // Show the welcome dialog + withContext(Dispatchers.Main) { + val dialog = WelcomeDialogWrapper(project) + dialog.show() + } + settings.continueState.shownWelcomeDialog = true + } + + GlobalScope.async(Dispatchers.IO) { + startContinuePythonServer(project) + + val wsUrl = getContinueServerUrl().replace("http://", "ws://").replace("https://", "wss://") + val ideProtocolClient = IdeProtocolClient( + "$wsUrl/ide/ws", + continuePluginService, + defaultStrategy, + coroutineScope, + project.basePath ?: "/", + project + ) + + continuePluginService.ideProtocolClient = ideProtocolClient + + val listener = + ContinuePluginSelectionListener( + ideProtocolClient, + coroutineScope + ) + + val newSessionId = ideProtocolClient.getSessionIdAsync().await() + val sessionId = newSessionId ?: "" + + // Reload the WebView + continuePluginService?.let { + val workspacePaths = + if (project.basePath != null) arrayOf(project.basePath) else emptyList() + + continuePluginService.worksapcePaths = workspacePaths as Array + continuePluginService.sessionId = sessionId + } + + EditorFactory.getInstance().eventMulticaster.addSelectionListener( + listener, + this@ContinuePluginStartupActivity + ) + + } + + + } + } + + override fun dispose() { + // Cleanup resources here + coroutineScope.cancel() + } +} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/ServerConstants.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/ServerConstants.kt new file mode 100644 index 000000000..df474e350 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/ServerConstants.kt @@ -0,0 +1,4 @@ +package com.github.continuedev.continueintellijextension.constants + +const val CONTINUE_PYTHON_SERVER_URL = "http://localhost:65432" +const val CONTINUE_SERVER_WEBSOCKET_PORT = 65432 \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt new file mode 100644 index 000000000..e0d61db7a --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt @@ -0,0 +1,195 @@ +package com.github.continuedev.continueintellijextension.`continue` + +import com.github.continuedev.continueintellijextension.services.ContinuePluginService +import com.intellij.diff.DiffContentFactory +import com.intellij.diff.DiffManager +import com.intellij.diff.DiffRequestPanel +import com.intellij.diff.contents.DiffContent +import com.intellij.diff.contents.DocumentContent +import com.intellij.diff.requests.DiffRequest +import com.intellij.diff.requests.SimpleDiffRequest +import com.intellij.openapi.application.ApplicationManager +import com.intellij.openapi.command.WriteCommandAction +import com.intellij.openapi.components.ServiceManager +import com.intellij.openapi.fileEditor.FileDocumentManager +import com.intellij.openapi.project.Project +import com.intellij.openapi.ui.DialogWrapper +import com.intellij.openapi.util.Disposer +import com.intellij.openapi.vfs.LocalFileSystem +import com.intellij.ui.content.ContentFactory +import java.awt.Toolkit +import java.io.File +import java.nio.file.Paths +import javax.swing.Action +import javax.swing.JComponent + + +fun getDiffDirectory(): File { + val homeDirectory = System.getProperty("user.home") + val diffDirPath = Paths.get(homeDirectory).resolve(".continue").resolve("diffs").toString() + val diffDir = File(diffDirPath) + if (!diffDir.exists()) { + diffDir.mkdirs() + diffDir.setWritable(true) + } + return diffDir +} +fun escapeFilepath(filepath: String): String { + return filepath.replace("/", "\$f\$").replace("\\", "\$b\$") +} + +interface DiffInfo { + val originalFilepath: String + val newFilepath: String + var diffRequestPanel: DiffRequestPanel? + val stepIndex: Int + var dialog: DialogWrapper? +} + +class DiffManager(private val project: Project) { + + private val diffContentFactory = DiffContentFactory.getInstance() + + // Mapping from file2 to relevant info + private val diffInfoMap: MutableMap = mutableMapOf() + + fun showDiff(filepath: String, replacement: String, stepIndex: Int) { + val diffDir = getDiffDirectory() + val escapedPath = escapeFilepath(filepath) + val file = diffDir.resolve(escapedPath) + + if (!file.exists()) { + file.createNewFile() + } + file.writeText(replacement) + openDiffWindow(filepath, file.path, stepIndex) + } + + fun cleanUpFile(file2: String) { + diffInfoMap[file2]?.dialog?.close(0) + diffInfoMap.remove(file2) + File(file2).delete() + if (lastFile2 == file2) { + lastFile2 = null + } + } + + private var lastFile2: String? = null + + fun acceptDiff(file2: String?) { + val file = (file2 ?: lastFile2) ?: return + val diffInfo = diffInfoMap[file] ?: return + + // Write contents to original file + val virtualFile = LocalFileSystem.getInstance().findFileByPath(diffInfo.originalFilepath) ?: return + val document = FileDocumentManager.getInstance().getDocument(virtualFile) ?: return + WriteCommandAction.runWriteCommandAction(project) { + document.setText(File(file).readText()) + } + FileDocumentManager.getInstance().saveDocument(document) + + // Notify server of acceptance + val continuePluginService = ServiceManager.getService( + project, + ContinuePluginService::class.java + ) + continuePluginService.ideProtocolClient?.sendAcceptRejectDiff(true, diffInfo.stepIndex) + + // Clean up state + cleanUpFile(file) + } + + fun rejectDiff(file2: String?) { + val file = (file2 ?: lastFile2) ?: return + val diffInfo = diffInfoMap[file] ?: return + val continuePluginService = ServiceManager.getService( + project, + ContinuePluginService::class.java + ) + continuePluginService.ideProtocolClient?.deleteAtIndex(diffInfo.stepIndex) + continuePluginService.ideProtocolClient?.sendAcceptRejectDiff(false, diffInfo.stepIndex) + + cleanUpFile(file) + } + + fun openDiffWindow( + file1: String, + file2: String, + stepIndex: Int + ) { + lastFile2 = file2 + + // Create a DiffContent for each of the texts you want to compare + val content1: DiffContent = DiffContentFactory.getInstance().create(File(file1).readText()) + val content2: DiffContent = DiffContentFactory.getInstance().create(File(file2).readText()) + + // Create a SimpleDiffRequest and populate it with the DiffContents and titles + val diffRequest = SimpleDiffRequest("Continue Diff", content1, content2, "Old", "New") + + // Get a DiffRequestPanel from the DiffManager and set the DiffRequest to it + val diffInfo = diffInfoMap[file2] + + var shouldShowDialog = false + if (diffInfo == null) { + diffInfoMap[file2] = object : DiffInfo { + override var dialog: DialogWrapper? = null + override var diffRequestPanel: DiffRequestPanel? = null + override val stepIndex: Int = stepIndex + override val newFilepath: String = file2 + override val originalFilepath: String = file1 + } + shouldShowDialog = true + } + + ApplicationManager.getApplication().invokeLater { + val diffPanel: DiffRequestPanel = diffInfo?.diffRequestPanel ?: DiffManager.getInstance().createRequestPanel(project, Disposer.newDisposable(), null) + diffPanel.setRequest(diffRequest) + + diffPanel.component.revalidate() + diffPanel.component.repaint() + + if (shouldShowDialog) { + // Create a dialog and add the DiffRequestPanel to it + val dialog: DialogWrapper = diffInfo?.dialog + ?: object : DialogWrapper(project, true, IdeModalityType.MODELESS) { + init { + init() + title = "Continue Diff" + } + + override fun createCenterPanel(): JComponent? { + return diffPanel.component + } + + override fun doOKAction() { + super.doOKAction() + acceptDiff(file2) + } + + override fun doCancelAction() { + super.doCancelAction() + rejectDiff(file2) + } + + override fun createActions(): Array { + val okAction = getOKAction() + val cmdCtrl = if (System.getProperty("os.name").toLowerCase().contains("mac")) "⌘" else "⌃" + okAction.putValue(Action.NAME, "Accept ($cmdCtrl ⇧ ↵)") + + val cancelAction = getCancelAction() + cancelAction.putValue(Action.NAME, "Reject ($cmdCtrl ⇧ ⌫)") + + return arrayOf(okAction, cancelAction) + } + } + + dialog.rootPane.isDoubleBuffered = true + val screenSize = Toolkit.getDefaultToolkit().screenSize + dialog.setSize(screenSize.width, screenSize.height) + dialog.show() + diffInfoMap[file2]?.dialog = dialog + diffInfoMap[file2]?.diffRequestPanel = diffPanel + } + } + } +} diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt new file mode 100644 index 000000000..d84ea5728 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt @@ -0,0 +1,634 @@ +package com.github.continuedev.continueintellijextension.`continue` + +import com.github.continuedev.continueintellijextension.services.ContinuePluginService +import com.google.gson.Gson +import com.google.gson.reflect.TypeToken +import com.intellij.openapi.application.ApplicationInfo +import com.intellij.openapi.application.ApplicationManager +import com.intellij.openapi.editor.SelectionModel +import com.intellij.openapi.fileEditor.FileDocumentManager +import com.intellij.openapi.fileEditor.FileEditorManager +import com.intellij.openapi.fileEditor.TextEditor +import com.intellij.openapi.project.Project +import com.intellij.openapi.ui.MessageType +import com.intellij.openapi.ui.popup.Balloon +import com.intellij.openapi.ui.popup.JBPopupFactory +import com.intellij.openapi.util.Computable +import com.intellij.openapi.vfs.LocalFileSystem +import com.intellij.openapi.vfs.VfsUtil +import com.intellij.openapi.vfs.VirtualFile +import com.intellij.openapi.vfs.VirtualFileManager +import com.intellij.openapi.wm.WindowManager +import com.intellij.testFramework.LightVirtualFile +import com.intellij.ui.awt.RelativePoint +import kotlinx.coroutines.* +import okhttp3.* +import java.io.File +import java.net.NetworkInterface + + +data class WebSocketMessage(val messageType: String, val data: T) +data class WorkspaceDirectory(val workspaceDirectory: String) +data class UniqueId(val uniqueId: String) +data class ReadFile(val contents: String) +data class VisibleFiles(val visibleFiles: List) +data class Position(val line: Int, val character: Int) +data class Range(val start: Position, val end: Position) +data class RangeInFile(val filepath: String, val range: Range) +data class GetTerminalContents(val contents: String) +data class ListDirectoryContents(val contents: List) +data class RangeInFileWithContents(val filepath: String, val range: Range, val contents: String) +data class HighlightedCodeUpdate(val highlightedCode: List, val edit: Boolean) +data class HighlightedCode(val highlightedCode: List) +data class AcceptRejectDiff(val accepted: Boolean, val stepIndex: Int) +data class DeleteAtIndex(val index: Int) +data class MainUserInput(val input: String) +data class IdeInfo(val name: String, val version: String?, val remoteName: String?) + +fun getMachineUniqueID(): String { + val sb = StringBuilder() + val networkInterfaces = NetworkInterface.getNetworkInterfaces() + + while (networkInterfaces.hasMoreElements()) { + val networkInterface = networkInterfaces.nextElement() + val mac = networkInterface.hardwareAddress + + if (mac != null) { + for (i in mac.indices) { + sb.append( + String.format( + "%02X%s", + mac[i], + if (i < mac.size - 1) "-" else "" + ) + ) + } + return sb.toString() + } + } + + return "No MAC Address Found" +} + +class IdeProtocolClient( + private val serverUrl: String = "ws://localhost:65432/ide/ws", + private val continuePluginService: ContinuePluginService, + private val textSelectionStrategy: TextSelectionStrategy, + private val coroutineScope: CoroutineScope, + private val workspacePath: String, + private val project: Project +) { + private val eventListeners = mutableListOf() + private var webSocket: WebSocket? = null + private val okHttpClient = OkHttpClient() + + val diffManager = DiffManager(project) + + init { + initWebSocket() + } + + var sessionId: String? = null + + fun getSessionIdAsync(): Deferred = coroutineScope.async { + withTimeoutOrNull(10000) { + while ((webSocket?.queueSize() ?: 0) > 0) { + delay(1000) + } + } + println("Getting session ID") + val respDeferred = sendAndReceive("getSessionId", mapOf()) + val resp = respDeferred.await() // Awaiting the deferred response + println(resp) + val data = (resp as? Map<*, *>)?.get("data") as? Map<*, *> + sessionId = data?.get("sessionId").toString() + println("New Continue session with ID: $sessionId") + sessionId + } + + private val pendingResponses: MutableMap> = + mutableMapOf() + + fun sendAndReceive( + messageType: String, + data: Map + ): CompletableDeferred { + val deferred = CompletableDeferred() + pendingResponses[messageType] = + deferred // Store the deferred object for later resolution + + sendMessage(messageType, data) + return deferred + } + + private fun serializeMessage(data: Map): String { + val gson = Gson() + return gson.toJson(data) + } + + private fun handleWebsocketMessage(webSocket: WebSocket, text: String) { + coroutineScope.launch(Dispatchers.IO) { + val parsedMessage: Map = Gson().fromJson( + text, + object : TypeToken>() {}.type + ) + val messageType = parsedMessage["messageType"] as? String + val data = parsedMessage["data"] as Map + + try { + when (messageType) { + "workspaceDirectory" -> { + webSocket.send( + Gson().toJson( + WebSocketMessage( + "workspaceDirectory", + WorkspaceDirectory(workspaceDirectory()) + ) + ) + ) + } + + "uniqueId" -> webSocket.send( + Gson().toJson( + WebSocketMessage( + "uniqueId", + UniqueId(uniqueId()) + ) + ) + ) + + "ide" -> { + val applicationInfo = ApplicationInfo.getInstance() + val ideName: String = applicationInfo.fullApplicationName + val ideVersion = applicationInfo.fullVersion + val sshClient = System.getenv("SSH_CLIENT") + val sshTty = System.getenv("SSH_TTY") + + var remoteName: String? = null + if (sshClient != null || sshTty != null) { + remoteName = "ssh" + } + webSocket.send( + Gson().toJson( + WebSocketMessage( + "ide", + IdeInfo( + ideName, ideVersion, remoteName + ) + ) + ) + ) + } + + "showDiff" -> { + diffManager.showDiff( + data["filepath"] as String, + data["replacement"] as String, + (data["step_index"] as Double).toInt() + ) + } + + "readFile" -> { + val msg = + ReadFile(readFile(data["filepath"] as String)) + webSocket.send( + Gson().toJson( + WebSocketMessage( + "readFile", + msg + ) + ) + ) + } + + "listDirectoryContents" -> { + webSocket.send( + Gson().toJson( + WebSocketMessage( + "listDirectoryContents", + ListDirectoryContents(listDirectoryContents()) + ) + ) + ) + } + + "getTerminalContents" -> { + webSocket.send( + Gson().toJson( + WebSocketMessage( + "getTerminalContents", + GetTerminalContents("Terminal cannot be accessed in JetBrains IDE") + ) + ) + ) + } + + "visibleFiles" -> { + val msg = VisibleFiles(visibleFiles()) + webSocket.send( + Gson().toJson( + WebSocketMessage( + "visibleFiles", + msg + ) + ) + ) + } + + "saveFile" -> saveFile(data["filepath"] as String) + "showVirtualFile" -> showVirtualFile( + data["name"] as String, + data["contents"] as String + ) + + "connected" -> {} + "showMessage" -> showMessage(data["message"] as String) + "setFileOpen" -> setFileOpen( + data["filepath"] as String, + data["open"] as Boolean + ) + + "highlightCode" -> { + val gson = Gson() + val json = gson.toJson(data["rangeInFile"]) + val type = object : TypeToken() {}.type + val rangeInFile = + gson.fromJson(json, type) + highlightCode(rangeInFile, data["color"] as String) + } + + "setSuggestionsLocked" -> {} + "getSessionId" -> {} + "highlightedCode" -> { + val rifWithContents = getHighlightedCode() + val rifs: MutableList = mutableListOf() + if (rifWithContents != null) { + val rif = RangeInFile(rifWithContents.filepath, rifWithContents.range) + rifs += rif + } + webSocket.send( + Gson().toJson( + WebSocketMessage( + "highlightedCode", + HighlightedCode(rifs) + ) + ) + ) + } + + else -> { + println("Unknown messageType: $messageType") + } + } + } catch (error: Exception) { + showMessage("Error handling message of type $messageType: $error") + } + + + if (messageType != null) { + pendingResponses[messageType]?.complete(parsedMessage) + pendingResponses.remove(messageType) + } + } + } + + private var backoff: Int = 100 // ms + + private fun initWebSocket() { + val webSocketListener = object : WebSocketListener() { + + override fun onOpen(webSocket: WebSocket, response: Response) { + // handle onOpen + backoff = 100 // reset backoff + } + + override fun onMessage(webSocket: WebSocket, text: String) { + handleWebsocketMessage(webSocket, text) + } + + override fun onFailure( + webSocket: WebSocket, + t: Throwable, + response: Response? + ) { + eventListeners.forEach { it.onErrorOccurred(t) } + // handle failure + backoff *= 2 + if (backoff > 10000000) return + Thread.sleep(backoff.toLong()) + initWebSocket() + } + + override fun onClosed(webSocket: WebSocket, code: Int, reason: String) { + super.onClosed(webSocket, code, reason) + println("Closing Continue IDE websocket") + // handle closure + backoff *= 2 + if (backoff > 10000000) return + Thread.sleep(backoff.toLong()) + initWebSocket() + } + + } + + val request = Request.Builder() + .url("${serverUrl}${if (sessionId != null) "?session_id=$sessionId" else ""}") + .build() + + webSocket = okHttpClient.newWebSocket(request, webSocketListener) + } + + fun addEventListener(listener: WebSocketEventListener) { + eventListeners.add(listener) + } + + fun connect() { + // Connection is handled automatically by OkHttp + } + + fun disconnect() { + webSocket?.close(1000, null) + } + + private fun sendMessage(messageType: String, message: Map) { + val sendData = mapOf("messageType" to messageType, "data" to message) + val jsonMessage = serializeMessage(sendData) + webSocket?.send(jsonMessage) + } + + fun workspaceDirectory(): String { + return this.workspacePath + } + + fun uniqueId(): String { + return getMachineUniqueID() + } + + fun onTextSelected( + selectedText: String, + filepath: String, + startLine: Int, + startCharacter: Int, + endLine: Int, + endCharacter: Int + ) = coroutineScope.launch { +// val jsonMessage = textSelectionStrategy.handleTextSelection( +// selectedText, +// filepath, +// startLine, +// startCharacter, +// endLine, +// endCharacter +// ) +// sendMessage("highlightedCodePush", jsonMessage) +// dispatchEventToWebview( +// "highlightedCode", +// jsonMessage, +// continuePluginService.continuePluginWindow.webView +// ) + } + + fun readFile(filepath: String): String { + val file = + LocalFileSystem.getInstance().findFileByPath(filepath) ?: return "" + val documentManager = FileDocumentManager.getInstance() + val document = ApplicationManager.getApplication().runReadAction(Computable { + documentManager.getDocument(file) + }) + return document?.text ?: "" + } + + fun getHighlightedCode(): RangeInFileWithContents? { + val result = ApplicationManager.getApplication().runReadAction { + // Get the editor instance for the currently active editor window + val editor = FileEditorManager.getInstance(project).selectedTextEditor ?: return@runReadAction null + val virtualFile = editor.let { FileDocumentManager.getInstance().getFile(it.document) } ?: return@runReadAction null + + // Get the selection range and content + val selectionModel: SelectionModel = editor.selectionModel + val selectedText = selectionModel.selectedText ?: "" + + val document = editor.document + val startOffset = selectionModel.selectionStart + val endOffset = selectionModel.selectionEnd + + if (startOffset == endOffset) { + return@runReadAction null + } + + val startLine = document.getLineNumber(startOffset) + val endLine = document.getLineNumber(endOffset) + + val startChar = startOffset - document.getLineStartOffset(startLine) + val endChar = endOffset - document.getLineStartOffset(endLine) + + return@runReadAction RangeInFileWithContents(virtualFile.path, Range( + Position(startLine, startChar), + Position(endLine, endChar) + ), selectedText) + } + + return result + } + + private fun sendWebSocketMessage(messageType: String, data: T) { + webSocket?.send(Gson().toJson( + WebSocketMessage(messageType, data) + )) + } + + fun sendHighlightedCode(edit: Boolean = false) { + val rif = getHighlightedCode() ?: return + + sendWebSocketMessage("highlightedCodePush", HighlightedCodeUpdate( + listOf(rif), + edit + )) + } + + fun sendMainUserInput(input: String) { + sendWebSocketMessage("mainUserInput", MainUserInput(input)) + } + + fun sendAcceptRejectDiff(accepted: Boolean, stepIndex: Int) { + sendWebSocketMessage("acceptRejectDiff", AcceptRejectDiff(accepted, stepIndex)) + } + + fun deleteAtIndex(index: Int) { + sendWebSocketMessage("deleteAtIndex", DeleteAtIndex(index)) + } + + private val DEFAULT_IGNORE_DIRS = listOf( + ".git", + ".vscode", + ".idea", + ".vs", + ".venv", + "env", + ".env", + "node_modules", + "dist", + "build", + "target", + "out", + "bin", + ".pytest_cache", + ".vscode-test", + ".continue", + "__pycache__" + ) + private fun shouldIgnoreDirectory(name: String): Boolean { + val components = File(name).path.split(File.separator) + return DEFAULT_IGNORE_DIRS.any { dir -> + components.contains(dir) + } + } + + + fun listDirectoryContents(): List { + val workspacePath = File(workspaceDirectory()) + val workspaceDir = VirtualFileManager.getInstance().findFileByUrl("file://$workspacePath") + + val contents = ArrayList() + + if (workspaceDir != null) { + VfsUtil.iterateChildrenRecursively(workspaceDir, null) { virtualFile: VirtualFile -> + if (!virtualFile.isDirectory) { + val filePath = virtualFile.path + if (!shouldIgnoreDirectory(filePath)) { + contents.add(filePath) + } + } + true + } + } + + return contents + } + + fun saveFile(filepath: String) { + ApplicationManager.getApplication().invokeLater { + val file = LocalFileSystem.getInstance().findFileByPath(filepath) ?: return@invokeLater + val fileDocumentManager = FileDocumentManager.getInstance() + val document = fileDocumentManager.getDocument(file) + + document?.let { + fileDocumentManager.saveDocument(it) + } + } + } + + fun setFileOpen(filepath: String, open: Boolean = true) { + val file = LocalFileSystem.getInstance().findFileByPath(filepath) + + file?.let { + if (open) { + ApplicationManager.getApplication().invokeLater { + FileEditorManager.getInstance(project).openFile(it, true) + } + } else { + ApplicationManager.getApplication().invokeLater { + FileEditorManager.getInstance(project).closeFile(it) + } + } + } + } + + fun showVirtualFile(name: String, contents: String) { + val virtualFile = LightVirtualFile(name, contents) + ApplicationManager.getApplication().invokeLater { + FileEditorManager.getInstance(project).openFile(virtualFile, true) + } + } + + fun visibleFiles(): List { + val fileEditorManager = FileEditorManager.getInstance(project) + return fileEditorManager.openFiles.toList().map { it.path } + } + + fun showMessage(msg: String) { + val statusBar = WindowManager.getInstance().getStatusBar(project) + + JBPopupFactory.getInstance() + .createHtmlTextBalloonBuilder(msg, MessageType.INFO, null) + .setFadeoutTime(5000) + .createBalloon() + .show( + RelativePoint.getSouthEastOf(statusBar.component), + Balloon.Position.atRight + ) + } + + fun highlightCode(rangeInFile: RangeInFile, color: String) { + val file = + LocalFileSystem.getInstance().findFileByPath(rangeInFile.filepath) + + setFileOpen(rangeInFile.filepath, true) + + ApplicationManager.getApplication().invokeLater { + val editor = file?.let { + val fileEditor = + FileEditorManager.getInstance(project).getSelectedEditor(it) + (fileEditor as? TextEditor)?.editor + } + + val virtualFile = LocalFileSystem.getInstance() + .findFileByIoFile(File(rangeInFile.filepath)) + val document = + FileDocumentManager.getInstance().getDocument(virtualFile!!) + val startIdx = + document!!.getLineStartOffset(rangeInFile.range.start.line) + rangeInFile.range.start.character + val endIdx = + document.getLineEndOffset(rangeInFile.range.end.line) + rangeInFile.range.end.character + + val markupModel = editor!!.markupModel +// val textAttributes = TextAttributes(Color.decode(color.drop(1).toInt(color)), null, null, null, 0) + +// markupModel.addRangeHighlighter(startIdx, endIdx, 0, textAttributes, HighlighterTargetArea.EXACT_RANGE) + } + } +} + +interface TextSelectionStrategy { + fun handleTextSelection( + selectedText: String, + filepath: String, + startLine: Int, + startCharacter: Int, + endLine: Int, + endCharacter: Int + ): Map +} + +class DefaultTextSelectionStrategy : TextSelectionStrategy { + + override fun handleTextSelection( + selectedText: String, + filepath: String, + startLine: Int, + startCharacter: Int, + endLine: Int, + endCharacter: Int + ): Map { + + return mapOf( + "edit" to false, + "highlightedCode" to arrayOf( + mapOf( + "filepath" to filepath, + "contents" to selectedText, + "range" to mapOf( + "start" to mapOf( + "line" to startLine, + "character" to startCharacter + ), + "end" to mapOf( + "line" to endLine, + "character" to endCharacter + ) + ) + ) + ) + ) + } +} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/InlineBoxPresentation.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/InlineBoxPresentation.kt new file mode 100644 index 000000000..b63f17071 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/InlineBoxPresentation.kt @@ -0,0 +1,21 @@ +package com.github.continuedev.continueintellijextension.`continue` + +import com.intellij.codeInsight.hints.presentation.BasePresentation +import com.intellij.openapi.editor.Editor +import com.intellij.openapi.editor.markup.TextAttributes +import java.awt.* + +internal class InlineBoxPresentation(private val editor: Editor): BasePresentation() { + override val height: Int = 50 + override val width: Int = 200 + + override fun paint(g: Graphics2D, attributes: TextAttributes) { + val color = attributes.foregroundColor + val text = "Hello World!" + g.color = color + g.drawString(text, 0, 0) + } + + override fun toString(): String = "InlineBoxPresentation" + +} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/InputBoxCodeVision.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/InputBoxCodeVision.kt new file mode 100644 index 000000000..259d81a09 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/InputBoxCodeVision.kt @@ -0,0 +1,30 @@ +package com.github.continuedev.continueintellijextension.`continue` + +import com.intellij.codeInsight.codeVision.* +import com.intellij.openapi.editor.Editor +import com.intellij.openapi.util.TextRange + +class InputBoxCodeVision: CodeVisionProvider { + companion object { + const val id: String = "continue.code.vision" + } + + override val name: String + get() = "Hello World!" + override val relativeOrderings: List + get() = emptyList() + + override val defaultAnchor: CodeVisionAnchorKind + get() = CodeVisionAnchorKind.Default + override val id: String + get() = Companion.id + + override fun precomputeOnUiThread(editor: Editor) {} + + override fun computeCodeVision(editor: Editor, uiData: Unit): CodeVisionState { + val lenses: List> = emptyList() +// val range = TextRange(0, 1) +// lenses.add(range to ) + return CodeVisionState.Ready(lenses) + } +} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/InputBoxInlay.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/InputBoxInlay.kt new file mode 100644 index 000000000..7b219bbc3 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/InputBoxInlay.kt @@ -0,0 +1,42 @@ +package com.github.continuedev.continueintellijextension.`continue` + +import com.intellij.codeInsight.hints.* +import com.intellij.openapi.editor.Editor +import com.intellij.psi.PsiElement +import com.intellij.psi.PsiFile +import javax.swing.JComponent +import javax.swing.JTextArea + +class InputBoxInlayProvider: InlayHintsProvider { + override val key: SettingsKey + get() = SettingsKey("InputBoxInlayProviderSettingsKey") + override val name: String + get() = "Continue Quick Input" + + override val previewText: String? + get() = "Continue Quick Input" + + override fun createSettings() = NoSettings() + + override fun getCollectorFor(file: PsiFile, editor: Editor, settings: NoSettings, sink: InlayHintsSink): InlayHintsCollector? { + return Collector(editor) + } + + private class Collector(editor: Editor): FactoryInlayHintsCollector(editor) { + override fun collect(element: PsiElement, editor: Editor, sink: InlayHintsSink): Boolean { + if (element.text == "continue") { +// val presentation = HorizontalBarPresentation.create(factory, editor, element) +// sink.addInlineElement(element.textOffset, true, presentation) + } + return true + } + } + + override fun createConfigurable(settings: NoSettings): ImmediateConfigurable { + return object : ImmediateConfigurable { + override fun createComponent(listener: ChangeListener): JComponent { + return JTextArea("Hello World!") + } + } + } +} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/WebSocketEventListener.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/WebSocketEventListener.kt new file mode 100644 index 000000000..c21c1cde5 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/WebSocketEventListener.kt @@ -0,0 +1,6 @@ +package com.github.continuedev.continueintellijextension.`continue` + +interface WebSocketEventListener { + fun onMessageReceived(message: String) + fun onErrorOccurred(error: Throwable) +} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/factories/CustomhandlerFactory.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/factories/CustomhandlerFactory.kt new file mode 100644 index 000000000..b37fa91eb --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/factories/CustomhandlerFactory.kt @@ -0,0 +1,158 @@ +package com.github.continuedev.continueintellijextension.factories + +import org.cef.browser.CefBrowser +import org.cef.browser.CefFrame +import org.cef.callback.CefCallback +import org.cef.callback.CefSchemeHandlerFactory +import org.cef.handler.CefLoadHandler +import org.cef.handler.CefResourceHandler +import org.cef.misc.IntRef +import org.cef.misc.StringRef +import org.cef.network.CefRequest +import org.cef.network.CefResponse +import java.io.IOException +import java.io.InputStream +import java.net.URLConnection + +class CustomSchemeHandlerFactory : CefSchemeHandlerFactory { + override fun create( + browser: CefBrowser?, + frame: CefFrame?, + schemeName: String, + request: CefRequest + ): CefResourceHandler { + return CustomResourceHandler() + } +} + +class CustomResourceHandler : CefResourceHandler { + private var state: ResourceHandlerState = ClosedConnection + override fun processRequest( + cefRequest: CefRequest, + cefCallback: CefCallback + ): Boolean { + val url = cefRequest.url + return if (url != null) { + val pathToResource = url.replace("http://continue", "webview/") + val newUrl = javaClass.classLoader.getResource(pathToResource) + state = OpenedConnection(newUrl?.openConnection()) + cefCallback.Continue() + true + } else { + false + } + } + + override fun getResponseHeaders( + cefResponse: CefResponse, + responseLength: IntRef, + redirectUrl: StringRef + ) { + state.getResponseHeaders(cefResponse, responseLength, redirectUrl) + } + + override fun readResponse( + dataOut: ByteArray, + bytesToRead: Int, + bytesRead: IntRef, + callback: CefCallback + ): Boolean { + return state.readResponse(dataOut, bytesToRead, bytesRead, callback) + } + + override fun cancel() { + state.close() + state = ClosedConnection + } +} + +sealed class ResourceHandlerState { + open fun getResponseHeaders( + cefResponse: CefResponse, + responseLength: IntRef, + redirectUrl: StringRef + ) { + } + + open fun readResponse( + dataOut: ByteArray, + bytesToRead: Int, + bytesRead: IntRef, + callback: CefCallback + ): Boolean = false + + open fun close() {} +} + + +class OpenedConnection(private val connection: URLConnection?) : + ResourceHandlerState() { + + private val inputStream: InputStream? by lazy { + connection?.inputStream + } + + override fun getResponseHeaders( + cefResponse: CefResponse, + responseLength: IntRef, + redirectUrl: StringRef + ) { + try { + if (connection != null) { + val url = connection.url.toString() + when { + url.contains("css") -> cefResponse.mimeType = "text/css" + url.contains("js") -> cefResponse.mimeType = "text/javascript" + url.contains("html") -> cefResponse.mimeType = "text/html" + else -> cefResponse.mimeType = connection.contentType + } + responseLength.set(inputStream?.available() ?: 0) + cefResponse.status = 200 + } else { + // Handle the case where connection is null + cefResponse.error = CefLoadHandler.ErrorCode.ERR_FAILED + cefResponse.statusText = "Connection is null" + cefResponse.status = 500 + } + } catch (e: IOException) { + cefResponse.error = CefLoadHandler.ErrorCode.ERR_FILE_NOT_FOUND + cefResponse.statusText = e.localizedMessage + cefResponse.status = 404 + } + } + + + override fun readResponse( + dataOut: ByteArray, + bytesToRead: Int, + bytesRead: IntRef, + callback: CefCallback + ): Boolean { + return inputStream?.let {inputStream -> + val availableSize = inputStream.available() + return if (availableSize > 0) { + val maxBytesToRead = minOf(availableSize, bytesToRead) + val realBytesRead = inputStream.read(dataOut, 0, maxBytesToRead) + bytesRead.set(realBytesRead) + true + } else { + inputStream.close() + false + } + } ?: false + } + + override fun close() { + inputStream?.close() + } +} + +object ClosedConnection : ResourceHandlerState() { + override fun getResponseHeaders( + cefResponse: CefResponse, + responseLength: IntRef, + redirectUrl: StringRef + ) { + cefResponse.status = 404 + } +} diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt new file mode 100644 index 000000000..5edf73cfa --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/ContinuePluginSelectionListener.kt @@ -0,0 +1,56 @@ +package com.github.continuedev.continueintellijextension.listeners + +import com.github.continuedev.continueintellijextension.`continue`.IdeProtocolClient +import com.github.continuedev.continueintellijextension.utils.Debouncer +import com.intellij.openapi.application.ApplicationManager +import com.intellij.openapi.editor.SelectionModel +import com.intellij.openapi.editor.event.SelectionEvent +import com.intellij.openapi.editor.event.SelectionListener +import com.intellij.openapi.fileEditor.FileDocumentManager +import com.intellij.openapi.vfs.VirtualFile +import kotlinx.coroutines.CoroutineScope + +class ContinuePluginSelectionListener( + private val ideProtocolClient: IdeProtocolClient, + private val coroutineScope: CoroutineScope +) : SelectionListener { + private val debouncer = Debouncer(100L, coroutineScope) + override fun selectionChanged(e: SelectionEvent) { + debouncer.debounce { handleSelection(e) } + } + + private fun handleSelection(e: SelectionEvent) { + ApplicationManager.getApplication().runReadAction { + val editor = e.editor + val model: SelectionModel = editor.selectionModel + val selectedText = model.selectedText ?: return@runReadAction + + val document = editor.document + val startOffset = model.selectionStart + val endOffset = model.selectionEnd + val startLine = document.getLineNumber(startOffset) + val endLine = document.getLineNumber(endOffset) + val startCharacter = + startOffset - document.getLineStartOffset(startLine) + val endCharacter = endOffset - document.getLineStartOffset(endLine) + + val virtualFile: VirtualFile? = + FileDocumentManager.getInstance().getFile(document) + val filepath = virtualFile?.path ?: "Unknown path" + + ideProtocolClient.onTextSelected( + selectedText, + filepath, + startLine, + startCharacter, + endLine, + endCharacter + ) + } + } +} + + + + + diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinueExtensionSettingsService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinueExtensionSettingsService.kt new file mode 100644 index 000000000..30ad5e788 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinueExtensionSettingsService.kt @@ -0,0 +1,128 @@ +package com.github.continuedev.continueintellijextension.services + +import com.intellij.openapi.components.PersistentStateComponent +import com.intellij.openapi.components.ServiceManager +import com.intellij.openapi.components.State +import com.intellij.openapi.components.Storage +import com.intellij.openapi.options.Configurable +import kotlinx.serialization.Serializable +import java.awt.GridBagConstraints +import java.awt.GridBagLayout +import javax.annotation.Nullable +import javax.swing.JCheckBox +import javax.swing.JComponent +import javax.swing.JLabel +import javax.swing.JPanel +import javax.swing.JTextField + +class ContinueSettingsComponent { + val panel: JPanel = JPanel(GridBagLayout()) + private val myTextField: JTextField = JTextField() + private val myCheckBox: JCheckBox = + JCheckBox("Manually Running Continue Server") + + init { + val constraints = GridBagConstraints() + + constraints.fill = GridBagConstraints.HORIZONTAL + constraints.weightx = 1.0 + constraints.weighty = 0.0 + constraints.gridx = 0 + constraints.gridy = GridBagConstraints.RELATIVE + + val serverURLLabel = JLabel("Server URL") + panel.add(serverURLLabel, constraints) + + panel.add(myTextField, constraints) + + val runningServerLabel = JLabel("Manually Running Server") + panel.add(runningServerLabel, constraints) + + panel.add(myCheckBox, constraints) + + // Add a "filler" component that takes up all remaining vertical space + constraints.weighty = 1.0 + val filler = JPanel() + panel.add(filler, constraints) + + } + + var serverUrl: String? + get() = myTextField.text + set(newText) { + myTextField.text = newText + } + + var manuallyRunningServer: Boolean + get() = myCheckBox.isSelected + set(value) { + myCheckBox.isSelected = value + } +} + +@State( + name = "com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings", + storages = [Storage("ContinueExtensionSettings.xml")] +) +open class ContinueExtensionSettings : PersistentStateComponent { + + class ContinueState { + var serverUrl: String = "http://localhost:65432" + var manuallyRunningServer: Boolean = false + var shownWelcomeDialog: Boolean = false + } + + var continueState: ContinueState = ContinueState() + + override fun getState(): ContinueState { + return continueState + } + + override fun loadState(state: ContinueState) { + continueState = state + } + + companion object { + val instance: ContinueExtensionSettings + get() = ServiceManager.getService(ContinueExtensionSettings::class.java) + } +} + +class ContinueExtensionConfigurable : Configurable { + private var mySettingsComponent: ContinueSettingsComponent? = null + + override fun createComponent(): JComponent { + mySettingsComponent = ContinueSettingsComponent() + return mySettingsComponent!!.panel + } + + override fun isModified(): Boolean { + val settings = ServiceManager.getService(ContinueExtensionSettings::class.java) + return mySettingsComponent!!.serverUrl != settings.continueState.serverUrl || mySettingsComponent!!.manuallyRunningServer != settings.continueState.manuallyRunningServer + } + + override fun apply() { + val settings = + ServiceManager.getService(ContinueExtensionSettings::class.java) + settings.continueState.serverUrl = + mySettingsComponent?.serverUrl ?: "http://localhost:65432" + settings.continueState.manuallyRunningServer = + mySettingsComponent!!.manuallyRunningServer + } + + override fun reset() { + val settings = + ServiceManager.getService(ContinueExtensionSettings::class.java) + mySettingsComponent!!.serverUrl = settings.continueState.serverUrl + mySettingsComponent!!.manuallyRunningServer = + settings.continueState.manuallyRunningServer + } + + override fun disposeUIResources() { + mySettingsComponent = null + } + + override fun getDisplayName(): String { + return "Continue Extension Settings" + } +} diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinuePluginService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinuePluginService.kt new file mode 100644 index 000000000..978ac744d --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/services/ContinuePluginService.kt @@ -0,0 +1,54 @@ +package com.github.continuedev.continueintellijextension.services + +import com.github.continuedev.continueintellijextension.`continue`.IdeProtocolClient +import com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory +import com.google.gson.Gson +import com.intellij.openapi.Disposable +import com.intellij.openapi.components.Service +import com.intellij.openapi.project.Project +import com.intellij.ui.jcef.executeJavaScriptAsync +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.cancel +import kotlinx.coroutines.launch + +@Service(Service.Level.PROJECT) +class ContinuePluginService(project: Project) : Disposable { + val coroutineScope = CoroutineScope(Dispatchers.Main) + var continuePluginWindow: ContinuePluginToolWindowFactory.ContinuePluginWindow? = null + + var ideProtocolClient: IdeProtocolClient? = null + var sessionId: String? = null + var worksapcePaths: Array? = null + + override fun dispose() { + coroutineScope.cancel() + } + + fun launchInScope(block: suspend CoroutineScope.() -> Unit) { + coroutineScope.launch { + block() + } + } + + fun dispatchCustomEvent( + type: String, + data: Map + ) { + val gson = Gson() + val jsonData = gson.toJson(data) + val jsCode = buildJavaScript(type, jsonData) + + try { + continuePluginWindow?.webView?.executeJavaScriptAsync(jsCode) + } catch (error: IllegalStateException) { + println("Webview not initialized yet $error") + } + } + + private fun buildJavaScript(type: String, jsonData: String): String { + return """window.postMessage($jsonData, "*");""" + } + + +} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt new file mode 100644 index 000000000..c55745250 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/toolWindow/ContinuePluginToolWindowFactory.kt @@ -0,0 +1,180 @@ +package com.github.continuedev.continueintellijextension.toolWindow + +import com.intellij.openapi.diagnostic.thisLogger +import com.intellij.ui.components.JBPanel +import com.intellij.ui.content.ContentFactory +import com.intellij.ui.jcef.JBCefJSQuery +import javax.swing.* +import com.github.continuedev.continueintellijextension.activities.getContinueServerUrl +import com.github.continuedev.continueintellijextension.`continue`.getMachineUniqueID +import com.github.continuedev.continueintellijextension.factories.CustomSchemeHandlerFactory +import com.github.continuedev.continueintellijextension.services.ContinuePluginService +import com.github.continuedev.continueintellijextension.utils.runJsInWebview +import com.google.gson.Gson +import com.google.gson.JsonObject +import com.google.gson.JsonParser +import com.intellij.openapi.components.ServiceManager +import com.intellij.openapi.editor.colors.EditorColorsManager +import com.intellij.openapi.project.DumbAware +import com.intellij.openapi.project.Project +import com.intellij.openapi.util.Disposer +import com.intellij.openapi.wm.ToolWindow +import com.intellij.openapi.wm.ToolWindowFactory +import com.intellij.ui.jcef.* +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.delay +import kotlinx.coroutines.launch +import org.cef.CefApp +import org.cef.browser.CefBrowser +import org.cef.handler.CefLoadHandlerAdapter +import javax.swing.JComponent +import kotlin.math.max +import kotlin.math.min + +const val JS_QUERY_POOL_SIZE = "200" + +class ContinuePluginToolWindowFactory : ToolWindowFactory, DumbAware { + override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) { + val continueToolWindow = ContinuePluginWindow(toolWindow, project) + val content = ContentFactory.getInstance().createContent(continueToolWindow.content, null, false) + toolWindow.contentManager.addContent(content) + } + + override fun shouldBeAvailable(project: Project) = true + + + class ContinuePluginWindow(toolWindow: ToolWindow, project: Project) { + + init { + System.setProperty("ide.browser.jcef.jsQueryPoolSize", JS_QUERY_POOL_SIZE) + } + + suspend fun waitForSessionId(pluginService: ContinuePluginService) { + while (pluginService.sessionId == null) { + delay(200) + } + return + } + + val webView: JBCefBrowser by lazy { + val browser = JBCefBrowser() + browser.jbCefClient.setProperty( + JBCefClient.Properties.JS_QUERY_POOL_SIZE, + JS_QUERY_POOL_SIZE + ) + registerAppSchemeHandler() + + browser.loadURL("http://continue/index.html") + Disposer.register(project, browser) + + val continuePluginService = ServiceManager.getService( + project, + ContinuePluginService::class.java + ) + continuePluginService.continuePluginWindow = this + + // Listen for events sent from browser + val myJSQueryOpenInBrowser = JBCefJSQuery.create((browser as JBCefBrowserBase?)!!) + myJSQueryOpenInBrowser.addHandler { msg: String? -> + val parser = JsonParser() + val json: JsonObject = parser.parse(msg).asJsonObject + val type = json.get("type").asString + when (type) { + "onLoad" -> { + GlobalScope.launch { + // Set the colors to match Intellij theme + val globalScheme = EditorColorsManager.getInstance().globalScheme + val defaultBackground = globalScheme.defaultBackground + val defaultForeground = globalScheme.defaultForeground + val defaultBackgroundHex = String.format("#%02x%02x%02x", defaultBackground.red, defaultBackground.green, defaultBackground.blue) + val defaultForegroundHex = String.format("#%02x%02x%02x", defaultForeground.red, defaultForeground.green, defaultForeground.blue) + + val grayscale = (defaultBackground.red * 0.3 + defaultBackground.green * 0.59 + defaultBackground.blue * 0.11).toInt() + + val adjustedRed: Int + val adjustedGreen: Int + val adjustedBlue: Int + + val tint: Int = 20 + if (grayscale > 128) { // if closer to white + adjustedRed = max(0, defaultBackground.red - tint) + adjustedGreen = max(0, defaultBackground.green - tint) + adjustedBlue = max(0, defaultBackground.blue - tint) + } else { // if closer to black + adjustedRed = min(255, defaultBackground.red + tint) + adjustedGreen = min(255, defaultBackground.green + tint) + adjustedBlue = min(255, defaultBackground.blue + tint) + } + + val secondaryDarkHex = String.format("#%02x%02x%02x", adjustedRed, adjustedGreen, adjustedBlue) + + browser.executeJavaScriptAsync("document.body.style.setProperty(\"--vscode-editor-foreground\", \"$defaultForegroundHex\");") + browser.executeJavaScriptAsync("document.body.style.setProperty(\"--vscode-editor-background\", \"$defaultBackgroundHex\");") + browser.executeJavaScriptAsync("document.body.style.setProperty(\"--vscode-list-hoverBackground\", \"$secondaryDarkHex\");") + + // Wait for session ID, then pass the onLoad information + waitForSessionId(continuePluginService) + + val sessionId = continuePluginService.sessionId + val workspacePaths = continuePluginService.worksapcePaths + + val jsonData = mutableMapOf( + "type" to "onLoad", + "sessionId" to sessionId, + "apiUrl" to getContinueServerUrl(), + "workspacePaths" to workspacePaths, + "vscMachineId" to getMachineUniqueID(), + "vscMediaUrl" to "http://continue", + "dataSwitchOn" to true + ) + val jsonString = Gson().toJson(jsonData) + browser.executeJavaScriptAsync("""window.postMessage($jsonString, "*");""") + } + + } + } + + + null + } + + // Listen for the page load event + browser.jbCefClient.addLoadHandler(object : CefLoadHandlerAdapter() { + override fun onLoadingStateChange( + browser: CefBrowser?, + isLoading: Boolean, + canGoBack: Boolean, + canGoForward: Boolean + ) { + if (!isLoading) { + // The page has finished loading + executeJavaScript(browser, myJSQueryOpenInBrowser) + } + } + }, browser.cefBrowser) + + browser + } + + fun executeJavaScript(browser: CefBrowser?, myJSQueryOpenInBrowser: JBCefJSQuery) { + // Execute JavaScript - you might want to handle potential exceptions here + val script = """window.postIntellijMessage = function(type, data) { + const msg = JSON.stringify({type, data}); + ${myJSQueryOpenInBrowser.inject("msg")} + }""".trimIndent() + + browser?.executeJavaScript(script, browser.url, 0) + } + + val content: JComponent + get() = webView.component + + private fun registerAppSchemeHandler() { + CefApp.getInstance().registerSchemeHandlerFactory( + "http", + "continue", + CustomSchemeHandlerFactory() + ) + } + } +} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Debouncer.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Debouncer.kt new file mode 100644 index 000000000..db2750a31 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Debouncer.kt @@ -0,0 +1,21 @@ +package com.github.continuedev.continueintellijextension.utils + +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Job +import kotlinx.coroutines.delay +import kotlinx.coroutines.launch + +class Debouncer( + private val interval: Long, + private val coroutineScope: CoroutineScope +) { + private var debounceJob: Job? = null + + fun debounce(action: suspend () -> Unit) { + debounceJob?.cancel() + debounceJob = coroutineScope.launch { + delay(interval) + action() + } + } +} \ No newline at end of file diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/DispatchEventToWebView.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/DispatchEventToWebView.kt new file mode 100644 index 000000000..58dd919f3 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/DispatchEventToWebView.kt @@ -0,0 +1,56 @@ +package com.github.continuedev.continueintellijextension.utils + +import com.google.gson.Gson +import com.intellij.ui.jcef.JBCefBrowser +import com.intellij.ui.jcef.executeJavaScriptAsync +import kotlinx.coroutines.CoroutineExceptionHandler +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.delay +import kotlinx.coroutines.launch + +fun CoroutineScope.dispatchEventToWebview( + type: String, + data: Map, + webView: JBCefBrowser? +) { + if (webView == null) return + val gson = Gson() + val jsonData = gson.toJson(data) + val jsCode = buildJavaScript(type, jsonData) + + launch(CoroutineExceptionHandler { _, exception -> + println("Failed to dispatch custom event: ${exception.message}") + }) { + while (true) { + try { + webView.executeJavaScriptAsync(jsCode) + break // If the JS execution is successful, break the loop + } catch (e: IllegalStateException) { + delay(1000) // If an error occurs, wait for 1 second and then retry + } + } + } +} + +fun CoroutineScope.runJsInWebview( + jsCode: String, + webView: JBCefBrowser? +) { + if (webView == null) return + launch(CoroutineExceptionHandler { _, exception -> + println("Failed to dispatch custom event: ${exception.message}") + }) { + while (true) { + try { + webView.executeJavaScriptAsync(jsCode) + break // If the JS execution is successful, break the loop + } catch (e: IllegalStateException) { + delay(1000) // If an error occurs, wait for 1 second and then retry + } + } + } +} + +private fun buildJavaScript(type: String, jsonData: String): String { + return """window.postMessage($jsonData, "*");""" +} \ No newline at end of file diff --git a/extensions/intellij/src/main/resources/META-INF/plugin.xml b/extensions/intellij/src/main/resources/META-INF/plugin.xml new file mode 100644 index 000000000..bff882fe2 --- /dev/null +++ b/extensions/intellij/src/main/resources/META-INF/plugin.xml @@ -0,0 +1,102 @@ + + + com.github.continuedev.continueintellijextension + Continue + continue-dev + + com.intellij.modules.platform + + + + + + + messages.MyBundle + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/intellij/src/main/resources/META-INF/pluginIcon.svg b/extensions/intellij/src/main/resources/META-INF/pluginIcon.svg new file mode 100644 index 000000000..ab3a48150 --- /dev/null +++ b/extensions/intellij/src/main/resources/META-INF/pluginIcon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/extensions/intellij/src/main/resources/META-INF/pluginIcon_dark.svg b/extensions/intellij/src/main/resources/META-INF/pluginIcon_dark.svg new file mode 100644 index 000000000..3944b88b4 --- /dev/null +++ b/extensions/intellij/src/main/resources/META-INF/pluginIcon_dark.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/extensions/intellij/src/main/resources/continue_code/copiedCode.txt b/extensions/intellij/src/main/resources/continue_code/copiedCode.txt new file mode 100644 index 000000000..f4b029dfc --- /dev/null +++ b/extensions/intellij/src/main/resources/continue_code/copiedCode.txt @@ -0,0 +1,14 @@ + private fun CoroutineScope.dispatchCustomEvent( + type: String, + data: Map, + webView: JBCefBrowser + ) { + launch(CoroutineExceptionHandler { _, exception -> + println("Failed to dispatch custom event: ${exception.message}") + }) { + val gson = Gson() + val jsonData = gson.toJson(data) + val jsCode = buildJavaScript(type, jsonData) + webView.executeJavaScriptAsync(jsCode) + } + } \ No newline at end of file diff --git a/extensions/intellij/src/main/resources/continue_tutorial.py b/extensions/intellij/src/main/resources/continue_tutorial.py new file mode 100644 index 000000000..238d59cde --- /dev/null +++ b/extensions/intellij/src/main/resources/continue_tutorial.py @@ -0,0 +1,56 @@ +""" +Welcome to Continue! + +This is a 2 minute tutorial. + +It will walk you through two basic features: +1. Ask a question +2. Edit code +""" + +# region —————————————————————————— Part 1: Ask a question about code [⌘ J] —————————————————————————— + + +"""Step 1: Highlight the function below""" +def mysterious_function(x): + for i in range(len(x)): + for j in range(len(x) - 1): + if x[j] > x[j + 1]: + x[j], x[j + 1] = x[j + 1], x[j] + + return x + + +"""Step 2: Use the keyboard shortcut [⌘ J] to +select the code and toggle the Continue input box""" + +"""Step 3: Ask a question and press enter""" +# e.g.) what does this function do? +# e.g.) what should I call this function? + +# endregion + + +# region ————————————————————————————————— Part 2: Edit code [⌘ ⇧ J] ————————————————————————————————— + + +"""Step 1: Highlight this code""" +def bubble_sort(x): + for i in range(len(x)): + for j in range(len(x) - 1): + if x[j] > x[j + 1]: + x[j], x[j + 1] = x[j + 1], x[j] + + return x + +"""Step 2: Use the keyboard shortcut [⌘ ⇧ J] to +select the code and toggle the /edit slash command""" + +"""Step 3: Request an edit and press enter""" +# e.g.) optimize this function +# e.g.) write comments + +"""Step 4: Use keyboard shortcuts to +accept [⌘ ⇧ ↵] or reject [⌘ ⇧ ⌫] the edit""" + +# endregion \ No newline at end of file diff --git a/extensions/intellij/src/main/resources/messages/MyBundle.properties b/extensions/intellij/src/main/resources/messages/MyBundle.properties new file mode 100644 index 000000000..2e041d8b9 --- /dev/null +++ b/extensions/intellij/src/main/resources/messages/MyBundle.properties @@ -0,0 +1,3 @@ +projectService=Project service: {0} +randomLabel=The random number is: {0} +shuffle=Shuffle diff --git a/extensions/intellij/src/main/resources/tool-window-icon.png b/extensions/intellij/src/main/resources/tool-window-icon.png new file mode 100644 index 000000000..200a67f3e Binary files /dev/null and b/extensions/intellij/src/main/resources/tool-window-icon.png differ diff --git a/extensions/intellij/src/main/resources/webview/assets/index.css b/extensions/intellij/src/main/resources/webview/assets/index.css new file mode 100644 index 000000000..74dd66fa4 --- /dev/null +++ b/extensions/intellij/src/main/resources/webview/assets/index.css @@ -0,0 +1 @@ +@media (prefers-color-scheme: dark){.wmde-markdown,.wmde-markdown-var{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}}@media (prefers-color-scheme: light){.wmde-markdown,.wmde-markdown-var{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}}[data-color-mode*=dark] .wmde-markdown,[data-color-mode*=dark] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=dark],.wmde-markdown[data-color-mode*=dark],body[data-color-mode*=dark]{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}[data-color-mode*=light] .wmde-markdown,[data-color-mode*=light] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=light],.wmde-markdown[data-color-mode*=light],body[data-color-mode*=light]{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}.wmde-markdown{-webkit-text-size-adjust:100%;font-family:-apple-system,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word;color:var(--color-fg-default);background-color:var(--color-canvas-default)}.wmde-markdown details,.wmde-markdown figcaption,.wmde-markdown figure{display:block}.wmde-markdown summary{display:list-item}.wmde-markdown [hidden]{display:none!important}.wmde-markdown a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.wmde-markdown a:active,.wmde-markdown a:hover{outline-width:0}.wmde-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wmde-markdown b,.wmde-markdown strong{font-weight:600}.wmde-markdown dfn{font-style:italic}.wmde-markdown h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}.wmde-markdown small{font-size:90%}.wmde-markdown sub,.wmde-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.wmde-markdown sub{bottom:-.25em}.wmde-markdown sup{top:-.5em}.wmde-markdown img{display:inline-block;border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.wmde-markdown code,.wmde-markdown kbd,.wmde-markdown pre,.wmde-markdown samp{font-family:monospace,monospace;font-size:1em}.wmde-markdown figure{margin:1em 40px}.wmde-markdown hr{box-sizing:content-box;overflow:hidden;background:transparent;border:0;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default)}.wmde-markdown input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.wmde-markdown [type=button],.wmde-markdown [type=reset],.wmde-markdown [type=submit]{-webkit-appearance:button}.wmde-markdown [type=button]::-moz-focus-inner,.wmde-markdown [type=reset]::-moz-focus-inner,.wmde-markdown [type=submit]::-moz-focus-inner{border-style:none;padding:0}.wmde-markdown [type=button]:-moz-focusring,.wmde-markdown [type=reset]:-moz-focusring,.wmde-markdown [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.wmde-markdown [type=checkbox],.wmde-markdown [type=radio]{box-sizing:border-box;padding:0}.wmde-markdown [type=number]::-webkit-inner-spin-button,.wmde-markdown [type=number]::-webkit-outer-spin-button{height:auto}.wmde-markdown [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.wmde-markdown [type=search]::-webkit-search-cancel-button,.wmde-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none}.wmde-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}.wmde-markdown ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.wmde-markdown a:hover{text-decoration:underline}.wmde-markdown hr:before{display:table;content:""}.wmde-markdown hr:after{display:table;clear:both;content:""}.wmde-markdown table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%}.wmde-markdown td,.wmde-markdown th{padding:0}.wmde-markdown details summary{cursor:pointer}.wmde-markdown details:not([open])>*:not(summary){display:none!important}.wmde-markdown kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.wmde-markdown h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown h3{font-weight:600;font-size:1.25em}.wmde-markdown h4{font-weight:600;font-size:1em}.wmde-markdown h5{font-weight:600;font-size:.875em}.wmde-markdown h6{font-weight:600;font-size:.85em;color:var(--color-fg-muted)}.wmde-markdown p{margin-top:0;margin-bottom:10px}.wmde-markdown blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.wmde-markdown ul,.wmde-markdown ol{margin-top:0;margin-bottom:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ul ul ol,.wmde-markdown ul ol ol,.wmde-markdown ol ul ol,.wmde-markdown ol ol ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown tt,.wmde-markdown code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.wmde-markdown .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.wmde-markdown ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-outer-spin-button,.wmde-markdown input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:before{display:table;content:""}.wmde-markdown:after{display:table;clear:both;content:""}.wmde-markdown>*:first-child{margin-top:0!important}.wmde-markdown>*:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown p,.wmde-markdown blockquote,.wmde-markdown ul,.wmde-markdown ol,.wmde-markdown dl,.wmde-markdown table,.wmde-markdown pre,.wmde-markdown details{margin-top:0;margin-bottom:16px}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 tt,.wmde-markdown h1 code,.wmde-markdown h2 tt,.wmde-markdown h2 code,.wmde-markdown h3 tt,.wmde-markdown h3 code,.wmde-markdown h4 tt,.wmde-markdown h4 code,.wmde-markdown h5 tt,.wmde-markdown h5 code,.wmde-markdown h6 tt,.wmde-markdown h6 code{padding:0 .2em;font-size:inherit}.wmde-markdown ul.no-list,.wmde-markdown ol.no-list{padding:0;list-style-type:none}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ul ul,.wmde-markdown ul ol,.wmde-markdown ol ol,.wmde-markdown ol ul{margin-top:0;margin-bottom:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.wmde-markdown dl dd{padding:0 16px;margin-bottom:16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table th,.wmde-markdown table td{padding:6px 13px;border:1px solid var(--color-border-default)}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:transparent}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.wmde-markdown span.frame span img{display:block;float:left}.wmde-markdown span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.wmde-markdown span.align-center{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.wmde-markdown span.align-center span img{margin:0 auto;text-align:center}.wmde-markdown span.align-right{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.wmde-markdown span.align-right span img{margin:0;text-align:right}.wmde-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.wmde-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.wmde-markdown code,.wmde-markdown tt{padding:.2em .4em;margin:0;font-size:85%;background-color:var(--color-neutral-muted);border-radius:6px}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.wmde-markdown pre{font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}.wmde-markdown pre code,.wmde-markdown pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.wmde-markdown pre>code{padding:16px;overflow:auto;display:block}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.wmde-markdown .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{font-weight:600;background:var(--color-canvas-subtle);border-top:0}.wmde-markdown .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .task-list-item-checkbox,.wmde-markdown .contains-task-list input[type=checkbox]{margin:0 .2em .25em -1.6em;vertical-align:middle}.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,.wmde-markdown .contains-task-list:dir(rtl) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{visibility:hidden;display:flex;position:absolute;cursor:pointer;color:var(--color-fg-defaul);top:6px;right:6px;border-radius:5px;background:var(--color-border-default);padding:6px;font-size:12px;transition:all .3s}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre:hover .copied:active,.wmde-markdown pre .copied.active{background:#2e9b33;color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.highlight-line{background-color:var(--color-neutral-muted)}.code-line.line-number:before{display:inline-block;width:1rem;text-align:right;margin-right:16px;color:var(--color-fg-subtle);content:attr(line);white-space:nowrap}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--color-prettylights-syntax-comment)}.token.namespace{opacity:.7}.token.property,.token.tag,.token.selector,.token.constant,.token.symbol,.token.deleted{color:var(--color-prettylights-syntax-entity-tag)}.token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.token.property-access,.token.operator,.token.boolean,.token.number,.token.selector .token.class,.token.attr-name,.token.string,.token.char,.token.builtin{color:var(--color-prettylights-syntax-constant)}.token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.token.variable{color:var(--color-prettylights-syntax-constant)}.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.color,.token.atrule,.token.attr-value,.token.function,.token.class-name{color:var(--color-prettylights-syntax-string)}.token.rule,.token.regex,.token.important,.token.keyword{color:var(--color-prettylights-syntax-keyword)}.token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.right-1{right:.25rem}.top-0{top:0}.top-1{top:.25rem}.z-10{z-index:10}.float-right{float:right}.m-0{margin:0}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.mx-16{margin-left:4rem;margin-right:4rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-6{margin-right:1.5rem}.mr-auto{margin-right:auto}.mt-2{margin-top:.5rem}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-2{height:.5rem}.h-5{height:1.25rem}.h-full{height:100%}.w-5{width:1.25rem}.w-full{width:100%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.border-spacing-0{--tw-border-spacing-x: 0px;--tw-border-spacing-y: 0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.overflow-scroll{overflow:scroll}.overflow-y-scroll{overflow-y:scroll}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:root{--secondary-dark: rgb(37, 37, 38);--vsc-background: rgb(30, 30, 30);--button-color: rgb(113, 28, 59);--button-color-hover: rgba(113, 28, 59, .667);--def-border-radius: 5px;--vscode-editor-background: rgb(30, 30, 30);--vscode-editor-foreground: rgb(197, 200, 198);--vscode-textBlockQuote-background: rgba(255, 255, 255, 1)}html,body,#root{height:100%;background-color:var(--vscode-editor-background);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}body{color:var(--vscode-editor-foreground);padding:0;margin:0;height:100%}.press-start-2p{font-family:"Press Start 2P",sans-serif}a:focus{outline:none}.hover\:underline:hover{text-decoration-line:underline} diff --git a/extensions/intellij/src/main/resources/webview/assets/index.js b/extensions/intellij/src/main/resources/webview/assets/index.js new file mode 100644 index 000000000..6e1370660 --- /dev/null +++ b/extensions/intellij/src/main/resources/webview/assets/index.js @@ -0,0 +1,1267 @@ +var OG=Object.defineProperty;var DG=(e,t,n)=>t in e?OG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ea=(e,t,n)=>(DG(e,typeof t!="symbol"?t+"":t,n),n);function LG(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var ql=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bR={exports:{}},Mg={},ER={exports:{}},Bt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ep=Symbol.for("react.element"),MG=Symbol.for("react.portal"),FG=Symbol.for("react.fragment"),PG=Symbol.for("react.strict_mode"),BG=Symbol.for("react.profiler"),UG=Symbol.for("react.provider"),$G=Symbol.for("react.context"),zG=Symbol.for("react.forward_ref"),HG=Symbol.for("react.suspense"),jG=Symbol.for("react.memo"),GG=Symbol.for("react.lazy"),mw=Symbol.iterator;function VG(e){return e===null||typeof e!="object"?null:(e=mw&&e[mw]||e["@@iterator"],typeof e=="function"?e:null)}var vR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yR=Object.assign,_R={};function nc(e,t,n){this.props=e,this.context=t,this.refs=_R,this.updater=n||vR}nc.prototype.isReactComponent={};nc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};nc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TR(){}TR.prototype=nc.prototype;function C9(e,t,n){this.props=e,this.context=t,this.refs=_R,this.updater=n||vR}var x9=C9.prototype=new TR;x9.constructor=C9;yR(x9,nc.prototype);x9.isPureReactComponent=!0;var bw=Array.isArray,SR=Object.prototype.hasOwnProperty,k9={current:null},wR={key:!0,ref:!0,__self:!0,__source:!0};function AR(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)SR.call(t,r)&&!wR.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,oe=V[me];if(0>>1;mei(Te,N))Ki(xe,Te)?(V[me]=xe,V[K]=N,me=K):(V[me]=Te,V[re]=N,me=re);else if(Ki(xe,N))V[me]=xe,V[K]=N,me=K;else break e}}return ce}function i(V,ce){var N=V.sortIndex-ce.sortIndex;return N!==0?N:V.id-ce.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],c=[],p=1,f=null,m=3,g=!1,E=!1,b=!1,T=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(V){for(var ce=n(c);ce!==null;){if(ce.callback===null)r(c);else if(ce.startTime<=V)r(c),ce.sortIndex=ce.expirationTime,t(u,ce);else break;ce=n(c)}}function A(V){if(b=!1,w(V),!E)if(n(u)!==null)E=!0,fe(D);else{var ce=n(c);ce!==null&&Z(A,ce.startTime-V)}}function D(V,ce){E=!1,b&&(b=!1,v(B),B=-1),g=!0;var N=m;try{for(w(ce),f=n(u);f!==null&&(!(f.expirationTime>ce)||V&&!Q());){var me=f.callback;if(typeof me=="function"){f.callback=null,m=f.priorityLevel;var oe=me(f.expirationTime<=ce);ce=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===n(u)&&r(u),w(ce)}else r(u);f=n(u)}if(f!==null)var O=!0;else{var re=n(c);re!==null&&Z(A,re.startTime-ce),O=!1}return O}finally{f=null,m=N,g=!1}}var k=!1,R=null,B=-1,W=5,P=-1;function Q(){return!(e.unstable_now()-PV||125me?(V.sortIndex=N,t(c,V),n(u)===null&&V===n(c)&&(b?(v(B),B=-1):b=!0,Z(A,N-me))):(V.sortIndex=oe,t(u,V),E||g||(E=!0,fe(D))),V},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(V){var ce=m;return function(){var N=m;m=ce;try{return V.apply(this,arguments)}finally{m=N}}}})(IR);kR.exports=IR;var nV=kR.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var RR=C,Bi=nV;function Pe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_4=Object.prototype.hasOwnProperty,rV=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vw={},yw={};function iV(e){return _4.call(yw,e)?!0:_4.call(vw,e)?!1:rV.test(e)?yw[e]=!0:(vw[e]=!0,!1)}function aV(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oV(e,t,n,r){if(t===null||typeof t>"u"||aV(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ri(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Cr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Cr[e]=new ri(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Cr[t]=new ri(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Cr[e]=new ri(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Cr[e]=new ri(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Cr[e]=new ri(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Cr[e]=new ri(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Cr[e]=new ri(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Cr[e]=new ri(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Cr[e]=new ri(e,5,!1,e.toLowerCase(),null,!1,!1)});var R9=/[\-:]([a-z])/g;function N9(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Cr[e]=new ri(e,1,!1,e.toLowerCase(),null,!1,!1)});Cr.xlinkHref=new ri("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Cr[e]=new ri(e,1,!1,e.toLowerCase(),null,!0,!0)});function O9(e,t,n,r){var i=Cr.hasOwnProperty(t)?Cr[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var u=` +`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{R5=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?od(e):""}function sV(e){switch(e.tag){case 5:return od(e.type);case 16:return od("Lazy");case 13:return od("Suspense");case 19:return od("SuspenseList");case 0:case 2:case 15:return e=N5(e.type,!1),e;case 11:return e=N5(e.type.render,!1),e;case 1:return e=N5(e.type,!0),e;default:return""}}function A4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o1:return"Fragment";case a1:return"Portal";case T4:return"Profiler";case D9:return"StrictMode";case S4:return"Suspense";case w4:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case DR:return(e.displayName||"Context")+".Consumer";case OR:return(e._context.displayName||"Context")+".Provider";case L9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M9:return t=e.displayName||null,t!==null?t:A4(e.type)||"Memo";case Ls:t=e._payload,e=e._init;try{return A4(e(t))}catch{}}return null}function lV(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return A4(t);case 8:return t===D9?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ll(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function MR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uV(e){var t=MR(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kf(e){e._valueTracker||(e._valueTracker=uV(e))}function FR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=MR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ch(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function C4(e,t){var n=t.checked;return Dn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Tw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ll(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function PR(e,t){t=t.checked,t!=null&&O9(e,"checked",t,!1)}function x4(e,t){PR(e,t);var n=ll(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?k4(e,t.type,n):t.hasOwnProperty("defaultValue")&&k4(e,t.type,ll(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function k4(e,t,n){(t!=="number"||Ch(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sd=Array.isArray;function I1(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Yf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cV=["Webkit","ms","Moz","O"];Object.keys(hd).forEach(function(e){cV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hd[t]=hd[e]})});function zR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hd.hasOwnProperty(e)&&hd[e]?(""+t).trim():t+"px"}function HR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=zR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var dV=Dn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function N4(e,t){if(t){if(dV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function O4(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var D4=null;function F9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var L4=null,R1=null,N1=null;function Cw(e){if(e=_p(e)){if(typeof L4!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=$g(t),L4(e.stateNode,e.type,t))}}function jR(e){R1?N1?N1.push(e):N1=[e]:R1=e}function GR(){if(R1){var e=R1,t=N1;if(N1=R1=null,Cw(e),t)for(e=0;e>>=0,e===0?32:31-(TV(e)/SV|0)|0}var Xf=64,Zf=4194304;function ld(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=ld(s):(a&=o,a!==0&&(r=ld(a)))}else o=n&~i,o!==0?r=ld(o):a!==0&&(r=ld(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$a(t),e[t]=n}function xV(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=md),Mw=String.fromCharCode(32),Fw=!1;function cN(e,t){switch(e){case"keyup":return tW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dN(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var s1=!1;function rW(e,t){switch(e){case"compositionend":return dN(t);case"keypress":return t.which!==32?null:(Fw=!0,Mw);case"textInput":return e=t.data,e===Mw&&Fw?null:e;default:return null}}function iW(e,t){if(s1)return e==="compositionend"||!G9&&cN(e,t)?(e=lN(),Q0=z9=Hs=null,s1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$w(n)}}function gN(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gN(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mN(){for(var e=window,t=Ch();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ch(e.document)}return t}function V9(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fW(e){var t=mN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gN(n.ownerDocument.documentElement,n)){if(r!==null&&V9(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=zw(n,a);var o=zw(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,l1=null,$4=null,Ed=null,z4=!1;function Hw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;z4||l1==null||l1!==Ch(r)||(r=l1,"selectionStart"in r&&V9(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ed&&qd(Ed,r)||(Ed=r,r=Dh($4,"onSelect"),0d1||(e.current=q4[d1],q4[d1]=null,d1--)}function mn(e,t){d1++,q4[d1]=e.current,e.current=t}var ul={},zr=ml(ul),mi=ml(!1),lu=ul;function H1(e,t){var n=e.type.contextTypes;if(!n)return ul;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bi(e){return e=e.childContextTypes,e!=null}function Mh(){Sn(mi),Sn(zr)}function Yw(e,t,n){if(zr.current!==ul)throw Error(Pe(168));mn(zr,t),mn(mi,n)}function AN(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pe(108,lV(e)||"Unknown",i));return Dn({},n,r)}function Fh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ul,lu=zr.current,mn(zr,e),mn(mi,mi.current),!0}function Xw(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=AN(e,t,lu),r.__reactInternalMemoizedMergedChildContext=e,Sn(mi),Sn(zr),mn(zr,e)):Sn(mi),mn(mi,n)}var Vo=null,zg=!1,V5=!1;function CN(e){Vo===null?Vo=[e]:Vo.push(e)}function AW(e){zg=!0,CN(e)}function bl(){if(!V5&&Vo!==null){V5=!0;var e=0,t=an;try{var n=Vo;for(an=1;e>=o,i-=o,qo=1<<32-$a(t)+i|n<B?(W=R,R=null):W=R.sibling;var P=m(v,R,w[B],A);if(P===null){R===null&&(R=W);break}e&&R&&P.alternate===null&&t(v,R),y=a(P,y,B),k===null?D=P:k.sibling=P,k=P,R=W}if(B===w.length)return n(v,R),xn&&Hl(v,B),D;if(R===null){for(;BB?(W=R,R=null):W=R.sibling;var Q=m(v,R,P.value,A);if(Q===null){R===null&&(R=W);break}e&&R&&Q.alternate===null&&t(v,R),y=a(Q,y,B),k===null?D=Q:k.sibling=Q,k=Q,R=W}if(P.done)return n(v,R),xn&&Hl(v,B),D;if(R===null){for(;!P.done;B++,P=w.next())P=f(v,P.value,A),P!==null&&(y=a(P,y,B),k===null?D=P:k.sibling=P,k=P);return xn&&Hl(v,B),D}for(R=r(v,R);!P.done;B++,P=w.next())P=g(R,v,B,P.value,A),P!==null&&(e&&P.alternate!==null&&R.delete(P.key===null?B:P.key),y=a(P,y,B),k===null?D=P:k.sibling=P,k=P);return e&&R.forEach(function(z){return t(v,z)}),xn&&Hl(v,B),D}function T(v,y,w,A){if(typeof w=="object"&&w!==null&&w.type===o1&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case qf:e:{for(var D=w.key,k=y;k!==null;){if(k.key===D){if(D=w.type,D===o1){if(k.tag===7){n(v,k.sibling),y=i(k,w.props.children),y.return=v,v=y;break e}}else if(k.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Ls&&rA(D)===k.type){n(v,k.sibling),y=i(k,w.props),y.ref=Uc(v,k,w),y.return=v,v=y;break e}n(v,k);break}else t(v,k);k=k.sibling}w.type===o1?(y=iu(w.props.children,v.mode,A,w.key),y.return=v,v=y):(A=oh(w.type,w.key,w.props,null,v.mode,A),A.ref=Uc(v,y,w),A.return=v,v=A)}return o(v);case a1:e:{for(k=w.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(v,y.sibling),y=i(y,w.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=J5(w,v.mode,A),y.return=v,v=y}return o(v);case Ls:return k=w._init,T(v,y,k(w._payload),A)}if(sd(w))return E(v,y,w,A);if(Lc(w))return b(v,y,w,A);i0(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(v,y.sibling),y=i(y,w),y.return=v,v=y):(n(v,y),y=Q5(w,v.mode,A),y.return=v,v=y),o(v)):n(v,y)}return T}var G1=LN(!0),MN=LN(!1),Tp={},go=ml(Tp),Zd=ml(Tp),Qd=ml(Tp);function Ql(e){if(e===Tp)throw Error(Pe(174));return e}function eE(e,t){switch(mn(Qd,t),mn(Zd,e),mn(go,Tp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:R4(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=R4(t,e)}Sn(go),mn(go,t)}function V1(){Sn(go),Sn(Zd),Sn(Qd)}function FN(e){Ql(Qd.current);var t=Ql(go.current),n=R4(t,e.type);t!==n&&(mn(Zd,e),mn(go,n))}function tE(e){Zd.current===e&&(Sn(go),Sn(Zd))}var Nn=ml(0);function Hh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var W5=[];function nE(){for(var e=0;en?n:4,e(!0);var r=q5.transition;q5.transition={};try{e(!1),t()}finally{an=n,q5.transition=r}}function QN(){return ga().memoizedState}function IW(e,t,n){var r=el(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},JN(e))eO(t,n);else if(n=RN(e,t,n,r),n!==null){var i=ei();za(n,e,r,i),tO(n,t,r)}}function RW(e,t,n){var r=el(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(JN(e))eO(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,ja(s,o)){var u=t.interleaved;u===null?(i.next=i,Q9(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=RN(e,t,i,r),n!==null&&(i=ei(),za(n,e,r,i),tO(n,t,r))}}function JN(e){var t=e.alternate;return e===On||t!==null&&t===On}function eO(e,t){vd=jh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tO(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,B9(e,n)}}var Gh={readContext:ha,useCallback:Lr,useContext:Lr,useEffect:Lr,useImperativeHandle:Lr,useInsertionEffect:Lr,useLayoutEffect:Lr,useMemo:Lr,useReducer:Lr,useRef:Lr,useState:Lr,useDebugValue:Lr,useDeferredValue:Lr,useTransition:Lr,useMutableSource:Lr,useSyncExternalStore:Lr,useId:Lr,unstable_isNewReconciler:!1},NW={readContext:ha,useCallback:function(e,t){return io().memoizedState=[e,t===void 0?null:t],e},useContext:ha,useEffect:aA,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nh(4194308,4,qN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nh(4194308,4,e,t)},useInsertionEffect:function(e,t){return nh(4,2,e,t)},useMemo:function(e,t){var n=io();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=IW.bind(null,On,e),[r.memoizedState,e]},useRef:function(e){var t=io();return e={current:e},t.memoizedState=e},useState:iA,useDebugValue:sE,useDeferredValue:function(e){return io().memoizedState=e},useTransition:function(){var e=iA(!1),t=e[0];return e=kW.bind(null,e[1]),io().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=On,i=io();if(xn){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),dr===null)throw Error(Pe(349));cu&30||UN(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,aA(zN.bind(null,r,a,e),[e]),r.flags|=2048,tp(9,$N.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=io(),t=dr.identifierPrefix;if(xn){var n=Ko,r=qo;n=(r&~(1<<32-$a(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jd++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[lo]=t,e[Xd]=r,cO(e,t,!1,!1),t.stateNode=e;e:{switch(o=O4(n,r),n){case"dialog":yn("cancel",e),yn("close",e),i=r;break;case"iframe":case"object":case"embed":yn("load",e),i=r;break;case"video":case"audio":for(i=0;iq1&&(t.flags|=128,r=!0,$c(a,!1),t.lanes=4194304)}else{if(!r)if(e=Hh(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$c(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!xn)return Mr(t),null}else 2*jn()-a.renderingStartTime>q1&&n!==1073741824&&(t.flags|=128,r=!0,$c(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=jn(),t.sibling=null,n=Nn.current,mn(Nn,r?n&1|2:n&1),t):(Mr(t),null);case 22:case 23:return fE(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ni&1073741824&&(Mr(t),t.subtreeFlags&6&&(t.flags|=8192)):Mr(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function UW(e,t){switch(q9(t),t.tag){case 1:return bi(t.type)&&Mh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return V1(),Sn(mi),Sn(zr),nE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tE(t),null;case 13:if(Sn(Nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));j1()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Sn(Nn),null;case 4:return V1(),null;case 10:return Z9(t.type._context),null;case 22:case 23:return fE(),null;case 24:return null;default:return null}}var o0=!1,Br=!1,$W=typeof WeakSet=="function"?WeakSet:Set,nt=null;function g1(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pn(e,t,r)}else n.current=null}function ab(e,t,n){try{n()}catch(r){Pn(e,t,r)}}var hA=!1;function zW(e,t){if(H4=Nh,e=mN(),V9(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,c=0,p=0,f=e,m=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=o),m===a&&++p===r&&(u=o),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(j4={focusedElem:e,selectionRange:n},Nh=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){t=nt;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var b=E.memoizedProps,T=E.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:Da(t.type,b),T);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(A){Pn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}return E=hA,hA=!1,E}function yd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&ab(t,n,a)}i=i.next}while(i!==r)}}function Gg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ob(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function fO(e){var t=e.alternate;t!==null&&(e.alternate=null,fO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lo],delete t[Xd],delete t[W4],delete t[SW],delete t[wW])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hO(e){return e.tag===5||e.tag===3||e.tag===4}function gA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hO(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Lh));else if(r!==4&&(e=e.child,e!==null))for(sb(e,t,n),e=e.sibling;e!==null;)sb(e,t,n),e=e.sibling}function lb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lb(e,t,n),e=e.sibling;e!==null;)lb(e,t,n),e=e.sibling}var Er=null,La=!1;function ws(e,t,n){for(n=n.child;n!==null;)gO(e,t,n),n=n.sibling}function gO(e,t,n){if(ho&&typeof ho.onCommitFiberUnmount=="function")try{ho.onCommitFiberUnmount(Fg,n)}catch{}switch(n.tag){case 5:Br||g1(n,t);case 6:var r=Er,i=La;Er=null,ws(e,t,n),Er=r,La=i,Er!==null&&(La?(e=Er,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Er.removeChild(n.stateNode));break;case 18:Er!==null&&(La?(e=Er,n=n.stateNode,e.nodeType===8?G5(e.parentNode,n):e.nodeType===1&&G5(e,n),Vd(e)):G5(Er,n.stateNode));break;case 4:r=Er,i=La,Er=n.stateNode.containerInfo,La=!0,ws(e,t,n),Er=r,La=i;break;case 0:case 11:case 14:case 15:if(!Br&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&ab(n,t,o),i=i.next}while(i!==r)}ws(e,t,n);break;case 1:if(!Br&&(g1(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pn(n,t,s)}ws(e,t,n);break;case 21:ws(e,t,n);break;case 22:n.mode&1?(Br=(r=Br)||n.memoizedState!==null,ws(e,t,n),Br=r):ws(e,t,n);break;default:ws(e,t,n)}}function mA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $W),t.forEach(function(r){var i=XW.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=jn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jW(r/1960))-r,10e?16:e,js===null)var r=!1;else{if(e=js,js=null,qh=0,qt&6)throw Error(Pe(331));var i=qt;for(qt|=4,nt=e.current;nt!==null;){var a=nt,o=a.child;if(nt.flags&16){var s=a.deletions;if(s!==null){for(var u=0;ujn()-dE?ru(e,0):cE|=n),Ei(e,t)}function SO(e,t){t===0&&(e.mode&1?(t=Zf,Zf<<=1,!(Zf&130023424)&&(Zf=4194304)):t=1);var n=ei();e=es(e,t),e!==null&&(vp(e,t,n),Ei(e,n))}function YW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),SO(e,n)}function XW(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pe(314))}r!==null&&r.delete(t),SO(e,n)}var wO;wO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mi.current)hi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return hi=!1,PW(e,t,n);hi=!!(e.flags&131072)}else hi=!1,xn&&t.flags&1048576&&xN(t,Bh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rh(e,t),e=t.pendingProps;var i=H1(t,zr.current);D1(t,n),i=iE(null,t,r,e,i,n);var a=aE();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bi(r)?(a=!0,Fh(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,J9(t),i.updater=Hg,t.stateNode=i,i._reactInternals=t,Q4(t,r,e,n),t=tb(null,t,r,!0,a,n)):(t.tag=0,xn&&a&&W9(t),Xr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=QW(r),e=Da(r,e),i){case 0:t=eb(null,t,r,e,n);break e;case 1:t=dA(null,t,r,e,n);break e;case 11:t=uA(null,t,r,e,n);break e;case 14:t=cA(null,t,r,Da(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),eb(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),dA(e,t,r,i,n);case 3:e:{if(sO(t),e===null)throw Error(Pe(387));r=t.pendingProps,a=t.memoizedState,i=a.element,NN(e,t),zh(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=W1(Error(Pe(423)),t),t=pA(e,t,r,n,i);break e}else if(r!==i){i=W1(Error(Pe(424)),t),t=pA(e,t,r,n,i);break e}else for(Di=Zs(t.stateNode.containerInfo.firstChild),Li=t,xn=!0,Fa=null,n=MN(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(j1(),r===i){t=ts(e,t,n);break e}Xr(e,t,r,n)}t=t.child}return t;case 5:return FN(t),e===null&&Y4(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,G4(r,i)?o=null:a!==null&&G4(r,a)&&(t.flags|=32),oO(e,t),Xr(e,t,o,n),t.child;case 6:return e===null&&Y4(t),null;case 13:return lO(e,t,n);case 4:return eE(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=G1(t,null,r,n):Xr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),uA(e,t,r,i,n);case 7:return Xr(e,t,t.pendingProps,n),t.child;case 8:return Xr(e,t,t.pendingProps.children,n),t.child;case 12:return Xr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,mn(Uh,r._currentValue),r._currentValue=o,a!==null)if(ja(a.value,o)){if(a.children===i.children&&!mi.current){t=ts(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=Xo(-1,n&-n),u.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),X4(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pe(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),X4(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Xr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,D1(t,n),i=ha(i),r=r(i),t.flags|=1,Xr(e,t,r,n),t.child;case 14:return r=t.type,i=Da(r,t.pendingProps),i=Da(r.type,i),cA(e,t,r,i,n);case 15:return iO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),rh(e,t),t.tag=1,bi(r)?(e=!0,Fh(t)):e=!1,D1(t,n),DN(t,r,i),Q4(t,r,i,n),tb(null,t,r,!0,e,n);case 19:return uO(e,t,n);case 22:return aO(e,t,n)}throw Error(Pe(156,t.tag))};function AO(e,t){return ZR(e,t)}function ZW(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ua(e,t,n,r){return new ZW(e,t,n,r)}function gE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QW(e){if(typeof e=="function")return gE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===L9)return 11;if(e===M9)return 14}return 2}function tl(e,t){var n=e.alternate;return n===null?(n=ua(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function oh(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")gE(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case o1:return iu(n.children,i,a,t);case D9:o=8,i|=8;break;case T4:return e=ua(12,n,t,i|2),e.elementType=T4,e.lanes=a,e;case S4:return e=ua(13,n,t,i),e.elementType=S4,e.lanes=a,e;case w4:return e=ua(19,n,t,i),e.elementType=w4,e.lanes=a,e;case LR:return Wg(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case OR:o=10;break e;case DR:o=9;break e;case L9:o=11;break e;case M9:o=14;break e;case Ls:o=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=ua(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function iu(e,t,n,r){return e=ua(7,e,r,t),e.lanes=n,e}function Wg(e,t,n,r){return e=ua(22,e,r,t),e.elementType=LR,e.lanes=n,e.stateNode={isHidden:!1},e}function Q5(e,t,n){return e=ua(6,e,null,t),e.lanes=n,e}function J5(e,t,n){return t=ua(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JW(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=D5(0),this.expirationTimes=D5(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=D5(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mE(e,t,n,r,i,a,o,s,u){return e=new JW(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ua(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},J9(a),e}function eq(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IO)}catch(e){console.error(e)}}IO(),xR.exports=ji;var yE=xR.exports;const _E=Hi(yE);var wA=yE;y4.createRoot=wA.createRoot,y4.hydrateRoot=wA.hydrateRoot;var RO={exports:{}},on={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var TE=Symbol.for("react.element"),SE=Symbol.for("react.portal"),Zg=Symbol.for("react.fragment"),Qg=Symbol.for("react.strict_mode"),Jg=Symbol.for("react.profiler"),e2=Symbol.for("react.provider"),t2=Symbol.for("react.context"),aq=Symbol.for("react.server_context"),n2=Symbol.for("react.forward_ref"),r2=Symbol.for("react.suspense"),i2=Symbol.for("react.suspense_list"),a2=Symbol.for("react.memo"),o2=Symbol.for("react.lazy"),oq=Symbol.for("react.offscreen"),NO;NO=Symbol.for("react.module.reference");function Ea(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case TE:switch(e=e.type,e){case Zg:case Jg:case Qg:case r2:case i2:return e;default:switch(e=e&&e.$$typeof,e){case aq:case t2:case n2:case o2:case a2:case e2:return e;default:return t}}case SE:return t}}}on.ContextConsumer=t2;on.ContextProvider=e2;on.Element=TE;on.ForwardRef=n2;on.Fragment=Zg;on.Lazy=o2;on.Memo=a2;on.Portal=SE;on.Profiler=Jg;on.StrictMode=Qg;on.Suspense=r2;on.SuspenseList=i2;on.isAsyncMode=function(){return!1};on.isConcurrentMode=function(){return!1};on.isContextConsumer=function(e){return Ea(e)===t2};on.isContextProvider=function(e){return Ea(e)===e2};on.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===TE};on.isForwardRef=function(e){return Ea(e)===n2};on.isFragment=function(e){return Ea(e)===Zg};on.isLazy=function(e){return Ea(e)===o2};on.isMemo=function(e){return Ea(e)===a2};on.isPortal=function(e){return Ea(e)===SE};on.isProfiler=function(e){return Ea(e)===Jg};on.isStrictMode=function(e){return Ea(e)===Qg};on.isSuspense=function(e){return Ea(e)===r2};on.isSuspenseList=function(e){return Ea(e)===i2};on.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zg||e===Jg||e===Qg||e===r2||e===i2||e===oq||typeof e=="object"&&e!==null&&(e.$$typeof===o2||e.$$typeof===a2||e.$$typeof===e2||e.$$typeof===t2||e.$$typeof===n2||e.$$typeof===NO||e.getModuleId!==void 0)};on.typeOf=Ea;RO.exports=on;var wE=RO.exports;const sq=Hi(wE);function lq(e){function t(oe,O,re,Te,K){for(var xe=0,ne=0,Le=0,Re=0,Xe,Ve,dt=0,ot=0,Ge,pt=Ge=Xe=0,U=0,ie=0,pe=0,ke=0,ve=re.length,Se=ve-1,Me,ze="",Ke="",jt="",ue="",ye;UXe)&&(ke=(ze=ze.replace(" ",":")).length),0Te&&(Te=(O=O.trim()).charCodeAt(0)),Te){case 38:return O.replace(v,"$1"+oe.trim());case 58:return oe.trim()+O.replace(v,"$1"+oe.trim());default:if(0<1*re&&0ne.charCodeAt(8))break;case 115:K=K.replace(ne,"-webkit-"+ne)+";"+K;break;case 207:case 102:K=K.replace(ne,"-webkit-"+(102re.charCodeAt(0)&&(re=re.trim()),me=re,re=[me],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var kq=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Sp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=Sd&&(Sd=t+1),sh.set(e,t),Zh.set(t,e)},Nq="style["+K1+'][data-styled-version="5.3.11"]',Oq=new RegExp("^"+K1+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Dq=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(K1))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(K1,"active"),r.setAttribute("data-styled-version","5.3.11");var o=Mq();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},Fq=function(){function e(n){var r=this.element=FO(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ +`}}}return a}(this)},e}(),$q=/(a)(d)/gi,OA=function(e){return String.fromCharCode(e+(e>25?39:97))};function hb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=OA(t%52)+n;return(OA(t%52)+n).replace($q,"$1-$2")}var b1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},BO=function(e){return b1(5381,e)};function zq(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=b1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var v=r(f,"."+T,void 0,i);n.insertRules(i,T,v)}a.push(T)}}return a.join(" ")},e}(),Gq=/^\s*\/\/.*$/gm,Vq=[":","[",".","#"];function Wq(e){var t,n,r,i,a=e===void 0?nl:e,o=a.options,s=o===void 0?nl:o,u=a.plugins,c=u===void 0?Xh:u,p=new lq(s),f=[],m=function(b){function T(v){if(v)try{b(v+"}")}catch{}}return function(v,y,w,A,D,k,R,B,W,P){switch(v){case 1:if(W===0&&y.charCodeAt(0)===64)return b(y+";"),"";break;case 2:if(B===0)return y+"/*|*/";break;case 3:switch(B){case 102:case 112:return b(w[0]+y),"";default:return y+(P===0?"/*|*/":"")}case-2:y.split("/*|*/}").forEach(T)}}}(function(b){f.push(b)}),g=function(b,T,v){return T===0&&Vq.indexOf(v[n.length])!==-1||v.match(i)?b:"."+t};function E(b,T,v,y){y===void 0&&(y="&");var w=b.replace(Gq,""),A=T&&v?v+" "+T+" { "+w+" }":w;return t=y,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(v||!T?"":T,A)}return p.use([].concat(c,[function(b,T,v){b===2&&v.length&&v[0].lastIndexOf(n)>0&&(v[0]=v[0].replace(r,g))},m,function(b){if(b===-2){var T=f;return f=[],T}}])),E.hash=c.length?c.reduce(function(b,T){return T.name||Sp(15),b1(b,T.name)},5381).toString():"",E}var UO=ut.createContext();UO.Consumer;var $O=ut.createContext(),qq=($O.Consumer,new PO),gb=Wq();function Kq(){return C.useContext(UO)||qq}function Yq(){return C.useContext($O)||gb}var zO=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=gb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Sp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=gb),this.name+t.hash},e}(),Xq=/([A-Z])/,Zq=/([A-Z])/g,Qq=/^ms-/,Jq=function(e){return"-"+e.toLowerCase()};function DA(e){return Xq.test(e)?e.replace(Zq,Jq).replace(Qq,"-ms-"):e}var LA=function(e){return e==null||e===!1||e===""};function Y1(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,nK=/(^-|-$)/g;function e3(e){return e.replace(tK,"-").replace(nK,"")}var jO=function(e){return hb(BO(e)>>>0)};function c0(e){return typeof e=="string"&&!0}var mb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},rK=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function iK(e,t,n){var r=e[n];mb(t)&&mb(r)?GO(r,t):e[n]=t}function GO(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),D=w&&w+"-"+(c0(y)?y:e3(RA(y)));return WO(y,Yo({},A,{attrs:m,componentId:D}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(y){this._foldedDefaultProps=r?GO({},e.defaultProps,y):y}}),Object.defineProperty(E,"toString",{value:function(){return"."+E.styledComponentId}}),i&&Cq(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var bb=function(e){return function t(n,r,i){if(i===void 0&&(i=nl),!wE.isValidElementType(r))return Sp(1,String(r));var a=function(){return n(r,i,HO.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,Yo({},i,{},o))},a.attrs=function(o){return t(n,r,Yo({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(WO,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){bb[e]=bb(e)});function b2(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r({x:e,y:e}),oK={left:"right",right:"left",bottom:"top",top:"bottom"},sK={start:"end",end:"start"};function Eb(e,t,n){return M1(e,ip(t,n))}function wp(e,t){return typeof e=="function"?e(t):e}function fu(e){return e.split("-")[0]}function Ap(e){return e.split("-")[1]}function KO(e){return e==="x"?"y":"x"}function OE(e){return e==="y"?"height":"width"}function E2(e){return["top","bottom"].includes(fu(e))?"y":"x"}function DE(e){return KO(E2(e))}function lK(e,t,n){n===void 0&&(n=!1);const r=Ap(e),i=DE(e),a=OE(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Jh(o)),[o,Jh(o)]}function uK(e){const t=Jh(e);return[vb(e),t,vb(t)]}function vb(e){return e.replace(/start|end/g,t=>sK[t])}function cK(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function dK(e,t,n,r){const i=Ap(e);let a=cK(fu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(vb)))),a}function Jh(e){return e.replace(/left|right|bottom|top/g,t=>oK[t])}function pK(e){return{top:0,right:0,bottom:0,left:0,...e}}function YO(e){return typeof e!="number"?pK(e):{top:e,right:e,bottom:e,left:e}}function eg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function PA(e,t,n){let{reference:r,floating:i}=e;const a=E2(t),o=DE(t),s=OE(o),u=fu(t),c=a==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let g;switch(u){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Ap(t)){case"start":g[o]-=m*(n&&c?-1:1);break;case"end":g[o]+=m*(n&&c?-1:1);break}return g}const fK=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=PA(c,r,u),m=r,g={},E=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s}=t,{element:u,padding:c=0}=wp(e,t)||{};if(u==null)return{};const p=YO(c),f={x:n,y:r},m=DE(i),g=OE(m),E=await o.getDimensions(u),b=m==="y",T=b?"top":"left",v=b?"bottom":"right",y=b?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],A=f[m]-a.reference[m],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=D?D[y]:0;(!k||!await(o.isElement==null?void 0:o.isElement(D)))&&(k=s.floating[y]||a.floating[g]);const R=w/2-A/2,B=k/2-E[g]/2-1,W=ip(p[T],B),P=ip(p[v],B),Q=W,z=k-E[g]-P,le=k/2-E[g]/2+R,he=Eb(Q,le,z),fe=Ap(i)!=null&&le!=he&&a.reference[g]/2-(leQ<=0)){var B,W;const Q=(((B=i.flip)==null?void 0:B.index)||0)+1,z=A[Q];if(z)return{data:{index:Q,overflows:R},reset:{placement:z}};let le=(W=R.filter(he=>he.overflows[0]<=0).sort((he,de)=>he.overflows[1]-de.overflows[1])[0])==null?void 0:W.placement;if(!le)switch(m){case"bestFit":{var P;const he=(P=R.map(de=>[de.placement,de.overflows.filter(fe=>fe>0).reduce((fe,Z)=>fe+Z,0)]).sort((de,fe)=>de[1]-fe[1])[0])==null?void 0:P[0];he&&(le=he);break}case"initialPlacement":le=o;break}if(r!==le)return{reset:{placement:le}}}return{}}}};async function mK(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=fu(n),s=Ap(n),u=E2(n)==="y",c=["left","top"].includes(o)?-1:1,p=a&&u?-1:1,f=wp(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:E}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof E=="number"&&(g=s==="end"?E*-1:E),u?{x:g*p,y:m*c}:{x:m*c,y:g*p}}const bK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await mK(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},EK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:v,y}=T;return{x:v,y}}},...u}=wp(e,t),c={x:n,y:r},p=await XO(t,u),f=E2(fu(i)),m=KO(f);let g=c[m],E=c[f];if(a){const T=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=g+p[T],w=g-p[v];g=Eb(y,g,w)}if(o){const T=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=E+p[T],w=E-p[v];E=Eb(y,E,w)}const b=s.fn({...t,[m]:g,[f]:E});return{...b,data:{x:b.x-n,y:b.y-r}}}}};function dl(e){return ZO(e)?(e.nodeName||"").toLowerCase():"#document"}function Mi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function El(e){var t;return(t=(ZO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ZO(e){return e instanceof Node||e instanceof Mi(e).Node}function ns(e){return e instanceof Element||e instanceof Mi(e).Element}function vo(e){return e instanceof HTMLElement||e instanceof Mi(e).HTMLElement}function BA(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mi(e).ShadowRoot}function Cp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function vK(e){return["table","td","th"].includes(dl(e))}function LE(e){const t=ME(),n=ma(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function yK(e){let t=X1(e);for(;vo(t)&&!v2(t);){if(LE(t))return t;t=X1(t)}return null}function ME(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function v2(e){return["html","body","#document"].includes(dl(e))}function ma(e){return Mi(e).getComputedStyle(e)}function y2(e){return ns(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function X1(e){if(dl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||BA(e)&&e.host||El(e);return BA(t)?t.host:t}function QO(e){const t=X1(e);return v2(t)?e.ownerDocument?e.ownerDocument.body:e.body:vo(t)&&Cp(t)?t:QO(t)}function JO(e,t){var n;t===void 0&&(t=[]);const r=QO(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Mi(r);return i?t.concat(a,a.visualViewport||[],Cp(r)?r:[]):t.concat(r,JO(r))}function eD(e){const t=ma(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Qh(n)!==a||Qh(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function tD(e){return ns(e)?e:e.contextElement}function F1(e){const t=tD(e);if(!vo(t))return cl(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=eD(t);let o=(a?Qh(n.width):n.width)/r,s=(a?Qh(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const _K=cl(0);function nD(e){const t=Mi(e);return!ME()||!t.visualViewport?_K:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mi(e)?!1:t}function ap(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=tD(e);let o=cl(1);t&&(r?ns(r)&&(o=F1(r)):o=F1(e));const s=TK(a,n,r)?nD(a):cl(0);let u=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,p=i.width/o.x,f=i.height/o.y;if(a){const m=Mi(a),g=r&&ns(r)?Mi(r):r;let E=m.frameElement;for(;E&&r&&g!==m;){const b=F1(E),T=E.getBoundingClientRect(),v=ma(E),y=T.left+(E.clientLeft+parseFloat(v.paddingLeft))*b.x,w=T.top+(E.clientTop+parseFloat(v.paddingTop))*b.y;u*=b.x,c*=b.y,p*=b.x,f*=b.y,u+=y,c+=w,E=Mi(E).frameElement}}return eg({width:p,height:f,x:u,y:c})}function SK(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=vo(n),a=El(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s=cl(1);const u=cl(0);if((i||!i&&r!=="fixed")&&((dl(n)!=="body"||Cp(a))&&(o=y2(n)),vo(n))){const c=ap(n);s=F1(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+u.x,y:t.y*s.y-o.scrollTop*s.y+u.y}}function wK(e){return Array.from(e.getClientRects())}function rD(e){return ap(El(e)).left+y2(e).scrollLeft}function AK(e){const t=El(e),n=y2(e),r=e.ownerDocument.body,i=M1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=M1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+rD(e);const s=-n.scrollTop;return ma(r).direction==="rtl"&&(o+=M1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function CK(e,t){const n=Mi(e),r=El(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=ME();(!c||c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}function xK(e,t){const n=ap(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vo(e)?F1(e):cl(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,c=r*a.y;return{width:o,height:s,x:u,y:c}}function UA(e,t,n){let r;if(t==="viewport")r=CK(e,n);else if(t==="document")r=AK(El(e));else if(ns(t))r=xK(t,n);else{const i=nD(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return eg(r)}function iD(e,t){const n=X1(e);return n===t||!ns(n)||v2(n)?!1:ma(n).position==="fixed"||iD(n,t)}function kK(e,t){const n=t.get(e);if(n)return n;let r=JO(e).filter(s=>ns(s)&&dl(s)!=="body"),i=null;const a=ma(e).position==="fixed";let o=a?X1(e):e;for(;ns(o)&&!v2(o);){const s=ma(o),u=LE(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Cp(o)&&!u&&iD(e,o))?r=r.filter(p=>p!==o):i=s,o=X1(o)}return t.set(e,r),r}function IK(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?kK(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((c,p)=>{const f=UA(t,p,i);return c.top=M1(f.top,c.top),c.right=ip(f.right,c.right),c.bottom=ip(f.bottom,c.bottom),c.left=M1(f.left,c.left),c},UA(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function RK(e){return eD(e)}function NK(e,t,n){const r=vo(t),i=El(t),a=n==="fixed",o=ap(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=cl(0);if(r||!r&&!a)if((dl(t)!=="body"||Cp(i))&&(s=y2(t)),r){const c=ap(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else i&&(u.x=rD(i));return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function $A(e,t){return!vo(e)||ma(e).position==="fixed"?null:t?t(e):e.offsetParent}function aD(e,t){const n=Mi(e);if(!vo(e))return n;let r=$A(e,t);for(;r&&vK(r)&&ma(r).position==="static";)r=$A(r,t);return r&&(dl(r)==="html"||dl(r)==="body"&&ma(r).position==="static"&&!LE(r))?n:r||yK(e)||n}const OK=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||aD,a=this.getDimensions;return{reference:NK(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}};function DK(e){return ma(e).direction==="rtl"}const LK={convertOffsetParentRelativeRectToViewportRelativeRect:SK,getDocumentElement:El,getClippingRect:IK,getOffsetParent:aD,getElementRects:OK,getClientRects:wK,getDimensions:RK,getScale:F1,isElement:ns,isRTL:DK},zA=(e,t,n)=>{const r=new Map,i={platform:LK,...n},a={...i.platform,_c:r};return fK(e,t,{...i,platform:a})};/* +* React Tooltip +* {@link https://github.com/ReactTooltip/react-tooltip} +* @copyright ReactTooltip Team +* @license MIT +*/const MK="react-tooltip-core-styles",FK="react-tooltip-base-styles",HA={core:!1,base:!1};function jA({css:e,id:t=FK,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||HA[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=MK),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),HA[n]=!0}const GA=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},PK="DEFAULT_TOOLTIP_ID",BK={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},UK=C.createContext({getTooltipData:()=>BK});function oD(e=PK){return C.useContext(UK).getTooltipData(e)}const $K=typeof window<"u"?C.useLayoutEffect:C.useEffect,zK=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},VA=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(zK(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},WA=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[bK(Number(i)),gK(),EK({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(hK({element:n,padding:5})),zA(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,E;const b={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:v}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},y=(E={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&E!==void 0?E:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const D=`${s}`.match(/(\d+)px/);A=D!=null&&D[1]?Number(D[1]):1}return{tooltipStyles:b,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:v!=null?`${v}px`:"",right:"",bottom:"",...w,[y]:`-${4+A}px`},place:f}})):zA(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var HK="core-styles-module_tooltip__3vRRp",jK="core-styles-module_fixed__pcSol",GK="core-styles-module_arrow__cvMwQ",VK="core-styles-module_noArrow__xock6",WK="core-styles-module_clickable__ZuTTB",qK="core-styles-module_show__Nt9eE",n3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const KK=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:E=0,float:b=!1,hidden:T=!1,noArrow:v=!1,clickable:y=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:D=!1,style:k,position:R,afterShow:B,afterHide:W,content:P,contentWrapperRef:Q,isOpen:z,setIsOpen:le,activeAnchor:he,setActiveAnchor:de,border:fe,opacity:Z})=>{const V=C.useRef(null),ce=C.useRef(null),N=C.useRef(null),me=C.useRef(null),[oe,O]=C.useState(o),[re,Te]=C.useState({}),[K,xe]=C.useState({}),[ne,Le]=C.useState(!1),[Re,Xe]=C.useState(!1),Ve=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:Ge}=oD(e),pt=C.useRef(!1),[U,ie]=C.useState([]),pe=C.useRef(!1),ke=c||u.includes("click");$K(()=>(pe.current=!0,()=>{pe.current=!1}),[]),C.useEffect(()=>{if(!ne){const se=setTimeout(()=>{Xe(!1)},150);return()=>{clearTimeout(se)}}return()=>null},[ne]);const ve=se=>{pe.current&&(se&&Xe(!0),setTimeout(()=>{pe.current&&(le==null||le(se),z===void 0&&Le(se))},10))};C.useEffect(()=>{if(z===void 0)return()=>null;z&&Xe(!0);const se=setTimeout(()=>{Le(z)},10);return()=>{clearTimeout(se)}},[z]),C.useEffect(()=>{ne!==Ve.current&&(Ve.current=ne,ne?B==null||B():W==null||W())},[ne]);const Se=(se=E)=>{me.current&&clearTimeout(me.current),me.current=setTimeout(()=>{pt.current||ve(!1)},se)},Me=se=>{var j;if(!se)return;const $=(j=se.currentTarget)!==null&&j!==void 0?j:se.target;if(!($!=null&&$.isConnected))return de(null),void Ge({current:null});g?(N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{ve(!0)},g)):ve(!0),de($),Ge({current:$}),me.current&&clearTimeout(me.current)},ze=()=>{y?Se(E||100):E?Se():ve(!1),N.current&&clearTimeout(N.current)},Ke=({x:se,y:j})=>{WA({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:se,y:j,width:0,height:0,top:j,left:se,right:se,bottom:j})},tooltipReference:V.current,tooltipArrowReference:ce.current,strategy:p,middlewares:f,border:fe}).then($=>{Object.keys($.tooltipStyles).length&&Te($.tooltipStyles),Object.keys($.tooltipArrowStyles).length&&xe($.tooltipArrowStyles),O($.place)})},jt=se=>{if(!se)return;const j=se,$={x:j.clientX,y:j.clientY};Ke($),dt.current=$},ue=se=>{Me(se),E&&Se()},ye=se=>{var j;[document.querySelector(`[id='${i}']`),...U].some($=>$==null?void 0:$.contains(se.target))||!((j=V.current)===null||j===void 0)&&j.contains(se.target)||(ve(!1),N.current&&clearTimeout(N.current))},We=GA(Me,50,!0),at=GA(ze,50,!0);C.useEffect(()=>{var se,j;const $=new Set(ot);U.forEach(Zt=>{$.add({current:Zt})});const J=document.querySelector(`[id='${i}']`);J&&$.add({current:J});const be=()=>{ve(!1)},Fe=VA(he),De=VA(V.current);A&&(window.addEventListener("scroll",be),Fe==null||Fe.addEventListener("scroll",be),De==null||De.addEventListener("scroll",be)),D&&window.addEventListener("resize",be);const tt=Zt=>{Zt.key==="Escape"&&ve(!1)};w&&window.addEventListener("keydown",tt);const Je=[];ke?(window.addEventListener("click",ye),Je.push({event:"click",listener:ue})):(Je.push({event:"mouseenter",listener:We},{event:"mouseleave",listener:at},{event:"focus",listener:We},{event:"blur",listener:at}),b&&Je.push({event:"mousemove",listener:jt}));const Ze=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return y&&!ke&&((se=V.current)===null||se===void 0||se.addEventListener("mouseenter",Ze),(j=V.current)===null||j===void 0||j.addEventListener("mouseleave",Rt)),Je.forEach(({event:Zt,listener:kt})=>{$.forEach(nn=>{var Yt;(Yt=nn.current)===null||Yt===void 0||Yt.addEventListener(Zt,kt)})}),()=>{var Zt,kt;A&&(window.removeEventListener("scroll",be),Fe==null||Fe.removeEventListener("scroll",be),De==null||De.removeEventListener("scroll",be)),D&&window.removeEventListener("resize",be),ke&&window.removeEventListener("click",ye),w&&window.removeEventListener("keydown",tt),y&&!ke&&((Zt=V.current)===null||Zt===void 0||Zt.removeEventListener("mouseenter",Ze),(kt=V.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),Je.forEach(({event:nn,listener:Yt})=>{$.forEach(jr=>{var Gr;(Gr=jr.current)===null||Gr===void 0||Gr.removeEventListener(nn,Yt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let se=a??"";!se&&e&&(se=`[data-tooltip-id='${e}']`);const j=new MutationObserver($=>{const J=[];$.forEach(be=>{if(be.type==="attributes"&&be.attributeName==="data-tooltip-id"&&be.target.getAttribute("data-tooltip-id")===e&&J.push(be.target),be.type==="childList"&&(he&&[...be.removedNodes].some(Fe=>{var De;return!!(!((De=Fe==null?void 0:Fe.contains)===null||De===void 0)&&De.call(Fe,he))&&(Xe(!1),ve(!1),de(null),N.current&&clearTimeout(N.current),me.current&&clearTimeout(me.current),!0)}),se))try{const Fe=[...be.addedNodes].filter(De=>De.nodeType===1);J.push(...Fe.filter(De=>De.matches(se))),J.push(...Fe.flatMap(De=>[...De.querySelectorAll(se)]))}catch{}}),J.length&&ie(be=>[...be,...J])});return j.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{j.disconnect()}},[e,a,he]);const Qe=()=>{R?Ke(R):b?dt.current&&Ke(dt.current):WA({place:o,offset:s,elementReference:he,tooltipReference:V.current,tooltipArrowReference:ce.current,strategy:p,middlewares:f,border:fe}).then(se=>{pe.current&&(Object.keys(se.tooltipStyles).length&&Te(se.tooltipStyles),Object.keys(se.tooltipArrowStyles).length&&xe(se.tooltipArrowStyles),O(se.place))})};C.useEffect(()=>{Qe()},[ne,he,P,k,o,s,p,R]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const se=new ResizeObserver(()=>{Qe()});return se.observe(Q.current),()=>{se.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var se;const j=document.querySelector(`[id='${i}']`),$=[...U,j];he&&$.includes(he)||de((se=U[0])!==null&&se!==void 0?se:j)},[i,U,he]),C.useEffect(()=>()=>{N.current&&clearTimeout(N.current),me.current&&clearTimeout(me.current)},[]),C.useEffect(()=>{let se=a;if(!se&&e&&(se=`[data-tooltip-id='${e}']`),se)try{const j=Array.from(document.querySelectorAll(se));ie(j)}catch{ie([])}},[e,a]);const Y=!T&&P&&ne&&Object.keys(re).length>0;return Re?ut.createElement(m,{id:e,role:"tooltip",className:FA("react-tooltip",HK,n3.tooltip,n3[r],t,`react-tooltip__place-${oe}`,{[qK]:Y,[jK]:p==="fixed",[WK]:y}),style:{...k,...re,opacity:Z!==void 0&&Y?Z:void 0},ref:V},P,ut.createElement(m,{className:FA("react-tooltip-arrow",GK,n3.arrow,n,{[VK]:v}),style:K,ref:ce})):null},YK=({content:e})=>ut.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),XK=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:E=!1,positionStrategy:b="absolute",middlewares:T,delayShow:v=0,delayHide:y=0,float:w=!1,hidden:A=!1,noArrow:D=!1,clickable:k=!1,closeOnEsc:R=!1,closeOnScroll:B=!1,closeOnResize:W=!1,style:P,position:Q,isOpen:z,disableStyleInjection:le=!1,border:he,opacity:de,setIsOpen:fe,afterShow:Z,afterHide:V})=>{const[ce,N]=C.useState(r),[me,oe]=C.useState(i),[O,re]=C.useState(c),[Te,K]=C.useState(u),[xe,ne]=C.useState(p),[Le,Re]=C.useState(v),[Xe,Ve]=C.useState(y),[dt,ot]=C.useState(w),[Ge,pt]=C.useState(A),[U,ie]=C.useState(f),[pe,ke]=C.useState(g),[ve,Se]=C.useState(b),[Me,ze]=C.useState(null),Ke=C.useRef(le),{anchorRefs:jt,activeAnchor:ue}=oD(e),ye=se=>se==null?void 0:se.getAttributeNames().reduce((j,$)=>{var J;return $.startsWith("data-tooltip-")&&(j[$.replace(/^data-tooltip-/,"")]=(J=se==null?void 0:se.getAttribute($))!==null&&J!==void 0?J:null),j},{}),We=se=>{const j={place:$=>{var J;re((J=$)!==null&&J!==void 0?J:c)},content:$=>{N($??r)},html:$=>{oe($??i)},variant:$=>{var J;K((J=$)!==null&&J!==void 0?J:u)},offset:$=>{ne($===null?p:Number($))},wrapper:$=>{var J;ie((J=$)!==null&&J!==void 0?J:f)},events:$=>{const J=$==null?void 0:$.split(" ");ke(J??g)},"position-strategy":$=>{var J;Se((J=$)!==null&&J!==void 0?J:b)},"delay-show":$=>{Re($===null?v:Number($))},"delay-hide":$=>{Ve($===null?y:Number($))},float:$=>{ot($===null?w:$==="true")},hidden:$=>{pt($===null?A:$==="true")}};Object.values(j).forEach($=>$(null)),Object.entries(se).forEach(([$,J])=>{var be;(be=j[$])===null||be===void 0||be.call(j,J)})};C.useEffect(()=>{N(r)},[r]),C.useEffect(()=>{oe(i)},[i]),C.useEffect(()=>{re(c)},[c]),C.useEffect(()=>{K(u)},[u]),C.useEffect(()=>{ne(p)},[p]),C.useEffect(()=>{Re(v)},[v]),C.useEffect(()=>{Ve(y)},[y]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Se(b)},[b]),C.useEffect(()=>{Ke.current!==le&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[le]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:le==="core",disableBase:le}}))},[]),C.useEffect(()=>{var se;const j=new Set(jt);let $=n;if(!$&&e&&($=`[data-tooltip-id='${e}']`),$)try{document.querySelectorAll($).forEach(tt=>{j.add({current:tt})})}catch{console.warn(`[react-tooltip] "${$}" is not a valid CSS selector`)}const J=document.querySelector(`[id='${t}']`);if(J&&j.add({current:J}),!j.size)return()=>null;const be=(se=Me??J)!==null&&se!==void 0?se:ue.current,Fe=new MutationObserver(tt=>{tt.forEach(Je=>{var Ze;if(!be||Je.type!=="attributes"||!(!((Ze=Je.attributeName)===null||Ze===void 0)&&Ze.startsWith("data-tooltip-")))return;const Rt=ye(be);We(Rt)})}),De={attributes:!0,childList:!1,subtree:!1};if(be){const tt=ye(be);We(tt),Fe.observe(be,De)}return()=>{Fe.disconnect()}},[jt,ue,Me,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),he&&!CSS.supports("border",`${he}`)&&console.warn(`[react-tooltip] "${he}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),de&&!CSS.supports("opacity",`${de}`)&&console.warn(`[react-tooltip] "${de}" is not a valid \`opacity\`.`)},[]);let at=m;const Qe=C.useRef(null);if(a){const se=a({content:ce??null,activeAnchor:Me});at=se?ut.createElement("div",{ref:Qe,className:"react-tooltip-content-wrapper"},se):null}else ce&&(at=ce);me&&(at=ut.createElement(YK,{content:me}));const Y={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:at,contentWrapperRef:Qe,place:O,variant:Te,offset:xe,wrapper:U,events:pe,openOnClick:E,positionStrategy:ve,middlewares:T,delayShow:Le,delayHide:Xe,float:dt,hidden:Ge,noArrow:D,clickable:k,closeOnEsc:R,closeOnScroll:B,closeOnResize:W,style:P,position:Q,isOpen:z,border:he,opacity:de,setIsOpen:fe,afterShow:Z,afterHide:V,activeAnchor:Me,setActiveAnchor:se=>ze(se)};return ut.createElement(KK,{...Y})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||jA({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||jA({css:` +.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px;transform:rotate(45deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function _2(){const e=window.navigator.platform.toUpperCase();return e.indexOf("MAC")>=0?"mac":e.indexOf("LINUX")>=0?"linux":e.indexOf("WIN")>=0?"windows":"unknown"}function tg(e){switch(_2()){case"mac":return e.metaKey;case"linux":case"windows":return e.ctrlKey;default:return e.metaKey}}function ZK(){switch(_2()){case"mac":return"⌘";case"linux":case"windows":return"^";default:return"⌘"}}function nr(){const e=localStorage.getItem("fontSize");return e?parseInt(e):14}function qA(e){switch(e.split(".").pop()){case"py":return"python";case"js":return"javascript";case"ts":return"typescript";case"java":return"java";case"go":return"go";case"rb":return"ruby";case"rs":return"rust";case"c":return"c";case"cpp":return"cpp";case"cs":return"csharp";case"php":return"php";case"scala":return"scala";case"swift":return"swift";case"kt":return"kotlin";case"md":return"markdown";case"json":return"json";case"html":return"html";case"css":return"css";case"sh":return"shell";case"yaml":return"yaml";case"toml":return"toml";case"tex":return"latex";case"sql":return"sql";default:return""}}const wt="5px",vt="#646464",da="#1bbe84",Lt="var(--vscode-list-hoverBackground, rgb(45 45 45))",Kt="var(--vscode-editor-background, rgb(30 30 30))",Ht="var(--vscode-editor-foreground, #fff)";if(typeof document<"u"){const e=localStorage.getItem("--vscode-editor-foreground"),t=localStorage.getItem("--vscode-editor-background"),n=localStorage.getItem("--vscode-list-hoverBackground");e&&document.body.style.setProperty("--vscode-editor-foreground",e),t&&document.body.style.setProperty("--vscode-editor-background",t),n&&document.body.style.setProperty("--vscode-list-hoverBackground",n)}const op=He.button` + padding: 10px 12px; + margin: 8px 0; + border-radius: ${wt}; + + border: none; + color: white; + background-color: ${da}; + + &:disabled { + color: gray; + } + + &:hover:enabled { + cursor: pointer; + } +`,Gs=He(XK)` + font-size: 12px; + background-color: rgb(60 60 60); + border-radius: ${wt}; + padding: 6px; + padding-left: 12px; + padding-right: 12px; + z-index: 1000; + + max-width: 80vw; +`,QK=He.textarea` + padding: 8px; + font-family: inherit; + border-radius: ${wt}; + margin: 16px auto; + height: auto; + width: calc(100% - 32px); + background-color: ${Lt}; + color: ${Ht}; + z-index: 1; + border: 1px solid transparent; + + resize: vertical; + + &:focus { + outline: 1px solid ${vt}; + border: 1px solid transparent; + } + + &::placeholder { + color: ${vt}80; + } +`;He.pre` + border-radius: ${wt}; + padding: 8px; + max-height: 150px; + overflow-y: scroll; + margin: 0; + background-color: ${Kt}; + border: none; + + /* text wrapping */ + white-space: pre-wrap; /* Since CSS 2.1 */ + white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + word-wrap: break-word; /* Internet Explorer 5.5+ */ +`;He.h3` + background-color: ${Lt}; + border-radius: ${wt}; + padding: 4px 8px; + width: fit-content; +`;const ng=He.input` + width: 100%; + padding: 8px 12px; + margin: 8px 0; + box-sizing: border-box; + border-radius: ${wt}; + outline: 1px solid ${vt}; + border: none; + background-color: ${Kt}; + color: ${Ht}; + + &:focus { + background: ${Lt}; + } + + &:invalid { + outline: 1px solid red; + } +`,JK=He.input.attrs({type:"number"})` + padding: 8px 12px; + margin: 8px 4px; + box-sizing: border-box; + border-radius: ${wt}; + outline: 1px solid ${vt}; + border: none; + background-color: ${Kt}; + color: ${Ht}; + + &:focus { + background: ${Lt}; + } +`;He.select` + padding: 8px 12px; + margin: 8px 0; + box-sizing: border-box; + border-radius: ${wt}; + outline: 1px solid ${vt}; + border: none; + background-color: ${Kt}; + color: ${Ht}; +`;He.label` + font-size: ${e=>e.fontSize||nr()}px; +`;const KA=b2` + from { + -webkit-transform: rotate(0deg); + } + to { + -webkit-transform: rotate(360deg); + } +`;He.div` + border: 4px solid transparent; + border-radius: 50%; + border-top: 4px solid white; + width: 36px; + height: 36px; + -webkit-animation: ${KA} 1s ease-in-out infinite; + animation: ${KA} 1s ease-in-out infinite; + margin: auto; +`;He.div` + border-radius: ${wt}; + padding: ${e=>e.borderWidth||"1px"}; + background-color: white; +`;He.textarea` + padding: 8px; + font-size: 16px; + border-radius: ${wt}; + border: 1px solid #ccc; + margin: 8px 8px; + background-color: ${Kt}; + color: ${Ht}; + outline: 1px solid orange; + resize: none; +`;b2` + from { + opacity: 0; + transform: translateY(-10px); + } + to { + opacity: 1; + transform: translateY(0px); + } +`;const eY=He.button` + background-color: ${({inverted:e})=>e?Ht:"transparent"}; + color: ${({inverted:e})=>e?Kt:Ht}; + + border: none; + border-radius: ${wt}; + cursor: ${({disabled:e})=>e?"default":"pointer"}; + + &:focus { + outline: none; + border: none; + } + + &:hover { + background-color: ${({inverted:e})=>typeof e>"u"||e?Lt:"transparent"}; + } + display: flex; + align-items: center; + justify-content: center; + gap: 4px; + padding: 2px; +`;function tY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))}const nY=C.forwardRef(tY),ac=nY;function rY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))}const iY=C.forwardRef(rY),aY=iY;function oY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"}))}const sY=C.forwardRef(oY),lY=sY;function uY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 19.5l-15-15m0 0v11.25m0-11.25h11.25"}))}const cY=C.forwardRef(uY),dY=cY;function pY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}const fY=C.forwardRef(pY),hY=fY;function gY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"}))}const mY=C.forwardRef(gY),sD=mY;function bY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const EY=C.forwardRef(bY),vY=EY;function yY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}const _Y=C.forwardRef(yY),TY=_Y;function SY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}const wY=C.forwardRef(SY),AY=wY;function CY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const xY=C.forwardRef(CY),kY=xY;function IY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75L16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0020.25 18V6A2.25 2.25 0 0018 3.75H6A2.25 2.25 0 003.75 6v12A2.25 2.25 0 006 20.25z"}))}const RY=C.forwardRef(IY),NY=RY;function OY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const DY=C.forwardRef(OY),LY=DY;function MY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const FY=C.forwardRef(MY),lD=FY;function PY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"}))}const BY=C.forwardRef(PY),UY=BY;function $Y({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const zY=C.forwardRef($Y),HY=zY;function jY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}const GY=C.forwardRef(jY),VY=GY;function WY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}))}const qY=C.forwardRef(WY),KY=qY;function YY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"}))}const XY=C.forwardRef(YY),ZY=XY;function QY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"}))}const JY=C.forwardRef(QY),uD=JY;function eX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const tX=C.forwardRef(eX),cD=tX;function nX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"}))}const rX=C.forwardRef(nX),iX=rX;function aX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"}))}const oX=C.forwardRef(aX),dD=oX;function sX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"}))}const lX=C.forwardRef(sX),uX=lX;function cX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const dX=C.forwardRef(cX),pD=dX;function pX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const fX=C.forwardRef(pX),T2=fX,vi=ut.forwardRef((e,t)=>{const[n,r]=C.useState(!1),i=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(eY,{"data-tooltip-id":`header_button_${e.text}`,inverted:e.inverted,disabled:e.disabled,onMouseEnter:()=>{e.disabled||r(!0)},onMouseLeave:()=>{r(!1)},onClick:e.onClick,onKeyDown:e.onKeyDown,className:e.className,ref:t,tabIndex:e.tabIndex,children:e.children}),i&&_E.createPortal(I.jsx(Gs,{id:`header_button_${e.text}`,place:"bottom",children:e.text}),i)]})});function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}const YA=["http","https","mailto","tel"];function hX(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */var gX=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const fD=Hi(gX);function wd(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?XA(e.position):"start"in e||"end"in e?XA(e):"line"in e||"column"in e?yb(e):""}function yb(e){return ZA(e&&e.line)+":"+ZA(e&&e.column)}function XA(e){return yb(e&&e.start)+"-"+yb(e&&e.end)}function ZA(e){return e&&typeof e=="number"?e:1}class va extends Error{constructor(t,n,r){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=wd(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}va.prototype.file="";va.prototype.name="";va.prototype.reason="";va.prototype.message="";va.prototype.stack="";va.prototype.fatal=null;va.prototype.column=null;va.prototype.line=null;va.prototype.source=null;va.prototype.ruleId=null;va.prototype.position=null;const ao={basename:mX,dirname:bX,extname:EX,join:vX,sep:"/"};function mX(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xp(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function bX(e){if(xp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function EX(e){xp(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function vX(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function _X(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function xp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const TX={cwd:SX};function SX(){return"/"}function _b(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function wX(e){if(typeof e=="string")e=new URL(e);else if(!_b(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return AX(e)}function AX(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||lh.call(t,i)},iC=function(t,n){eC&&n.name==="__proto__"?eC(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},aC=function(t,n){if(n==="__proto__")if(lh.call(t,n)){if(tC)return tC(t,n).value}else return;return t[n]},xX=function e(){var t,n,r,i,a,o,s=arguments[0],u=1,c=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(c){const p=c;if(s&&n)throw p;return i(p)}s||(u instanceof Promise?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const RX=bD().freeze(),mD={}.hasOwnProperty;function bD(){const e=kX(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=u,a.parse=c,a.stringify=p,a.run=f,a.runSync=m,a.process=g,a.processSync=E,a;function a(){const b=bD();let T=-1;for(;++T{if(k||!R||!B)D(k);else{const W=a.stringify(R,B);W==null||(DX(W)?B.value=W:B.result=W),D(k,B)}});function D(k,R){k||!R?w(k):y?y(R):T(null,R)}}}function E(b){let T;a.freeze(),o3("processSync",a.Parser),s3("processSync",a.Compiler);const v=Hc(b);return a.process(v,y),lC("processSync","process",T),v;function y(w){T=!0,JA(w)}}}function oC(e,t){return typeof e=="function"&&e.prototype&&(NX(e.prototype)||t in e.prototype)}function NX(e){let t;for(t in e)if(mD.call(e,t))return!0;return!1}function o3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function s3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function l3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sC(e){if(!Tb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function lC(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Hc(e){return OX(e)?e:new hD(e)}function OX(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function DX(e){return typeof e=="string"||fD(e)}const LX={};function MX(e,t){const n=t||LX,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ED(e,r,i)}function ED(e,t,n){if(FX(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return uC(e.children,t,n)}return Array.isArray(e)?uC(e,t,n):""}function uC(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Fi(e,e.length,0,t),e):t}const cC={}.hasOwnProperty;function vD(e){const t={};let n=-1;for(;++no))return;const R=t.events.length;let B=R,W,P;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(W){P=t.events[B][1].end;break}W=!0}for(v(r),k=R;kw;){const D=n[A];t.containerState=D[1],D[0].exit.call(t,e)}n.length=w}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function qX(e,t,n){return Gt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ig(e){if(e===null||hn(e)||hu(e))return 1;if(S2(e))return 2}function w2(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);pC(f,-u),pC(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=la(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=la(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=la(c,w2(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=la(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=la(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Fi(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n0&&Dt(k)?Gt(e,y,"linePrefix",a+1)(k):y(k)}function y(k){return k===null||gt(k)?e.check(hC,b,A)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||gt(k)?(e.exit("codeFlowValue"),y(k)):(e.consume(k),w)}function A(k){return e.exit("codeFenced"),t(k)}function D(k,R,B){let W=0;return P;function P(de){return k.enter("lineEnding"),k.consume(de),k.exit("lineEnding"),Q}function Q(de){return k.enter("codeFencedFence"),Dt(de)?Gt(k,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(de):z(de)}function z(de){return de===s?(k.enter("codeFencedFenceSequence"),le(de)):B(de)}function le(de){return de===s?(W++,k.consume(de),le):W>=o?(k.exit("codeFencedFenceSequence"),Dt(de)?Gt(k,he,"whitespace")(de):he(de)):B(de)}function he(de){return de===null||gt(de)?(k.exit("codeFencedFence"),R(de)):B(de)}}}function aZ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const u3={name:"codeIndented",tokenize:sZ},oZ={tokenize:lZ,partial:!0};function sZ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Gt(e,a,"linePrefix",4+1)(c)}function a(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):gt(c)?e.attempt(oZ,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||gt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function lZ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Gt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):gt(o)?i(o):n(o)}}const uZ={name:"codeText",tokenize:pZ,resolve:cZ,previous:dZ};function cZ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function wD(e,t,n,r,i,a,o,s,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return f;function f(v){return v===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(v),e.exit(a),m):v===null||v===32||v===41||rg(v)?n(v):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(v))}function m(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===62?(e.exit("chunkString"),e.exit(s),m(v)):v===null||v===60||gt(v)?n(v):(e.consume(v),v===92?E:g)}function E(v){return v===60||v===62||v===92?(e.consume(v),g):g(v)}function b(v){return!p&&(v===null||v===41||hn(v))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(v)):p999||g===null||g===91||g===93&&!u||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):gt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||gt(g)||s++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!Dt(g)),g===92?m:f)}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,f):f(g)}}function CD(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),u(o)):m===null?n(m):gt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Gt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===o||m===null||gt(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:p)}function f(m){return m===o||m===92?(e.consume(m),p):p(m)}}function Ad(e,t){let n;return r;function r(i){return gt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Dt(i)?Gt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Ha(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vZ={name:"definition",tokenize:_Z},yZ={tokenize:TZ,partial:!0};function _Z(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return AD.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Ha(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return hn(g)?Ad(e,c)(g):c(g)}function c(g){return wD(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(yZ,f,f)(g)}function f(g){return Dt(g)?Gt(e,m,"whitespace")(g):m(g)}function m(g){return g===null||gt(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function TZ(e,t,n){return r;function r(s){return hn(s)?Ad(e,i)(s):n(s)}function i(s){return CD(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Dt(s)?Gt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||gt(s)?t(s):n(s)}}const SZ={name:"hardBreakEscape",tokenize:wZ};function wZ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return gt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const AZ={name:"headingAtx",tokenize:xZ,resolve:CZ};function CZ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Fi(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function xZ(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||hn(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||gt(p)?(e.exit("atxHeading"),t(p)):Dt(p)?Gt(e,s,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),s(p))}function c(p){return p===null||p===35||hn(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),c)}}const kZ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],mC=["pre","script","style","textarea"],IZ={name:"htmlFlow",tokenize:DZ,resolveTo:OZ,concrete:!0},RZ={tokenize:MZ,partial:!0},NZ={tokenize:LZ,partial:!0};function OZ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function DZ(e,t,n){const r=this;let i,a,o,s,u;return c;function c(O){return p(O)}function p(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),f}function f(O){return O===33?(e.consume(O),m):O===47?(e.consume(O),a=!0,b):O===63?(e.consume(O),i=3,r.interrupt?t:N):Qr(O)?(e.consume(O),o=String.fromCharCode(O),T):n(O)}function m(O){return O===45?(e.consume(O),i=2,g):O===91?(e.consume(O),i=5,s=0,E):Qr(O)?(e.consume(O),i=4,r.interrupt?t:N):n(O)}function g(O){return O===45?(e.consume(O),r.interrupt?t:N):n(O)}function E(O){const re="CDATA[";return O===re.charCodeAt(s++)?(e.consume(O),s===re.length?r.interrupt?t:z:E):n(O)}function b(O){return Qr(O)?(e.consume(O),o=String.fromCharCode(O),T):n(O)}function T(O){if(O===null||O===47||O===62||hn(O)){const re=O===47,Te=o.toLowerCase();return!re&&!a&&mC.includes(Te)?(i=1,r.interrupt?t(O):z(O)):kZ.includes(o.toLowerCase())?(i=6,re?(e.consume(O),v):r.interrupt?t(O):z(O)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(O):a?y(O):w(O))}return O===45||$r(O)?(e.consume(O),o+=String.fromCharCode(O),T):n(O)}function v(O){return O===62?(e.consume(O),r.interrupt?t:z):n(O)}function y(O){return Dt(O)?(e.consume(O),y):P(O)}function w(O){return O===47?(e.consume(O),P):O===58||O===95||Qr(O)?(e.consume(O),A):Dt(O)?(e.consume(O),w):P(O)}function A(O){return O===45||O===46||O===58||O===95||$r(O)?(e.consume(O),A):D(O)}function D(O){return O===61?(e.consume(O),k):Dt(O)?(e.consume(O),D):w(O)}function k(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),u=O,R):Dt(O)?(e.consume(O),k):B(O)}function R(O){return O===u?(e.consume(O),u=null,W):O===null||gt(O)?n(O):(e.consume(O),R)}function B(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||hn(O)?D(O):(e.consume(O),B)}function W(O){return O===47||O===62||Dt(O)?w(O):n(O)}function P(O){return O===62?(e.consume(O),Q):n(O)}function Q(O){return O===null||gt(O)?z(O):Dt(O)?(e.consume(O),Q):n(O)}function z(O){return O===45&&i===2?(e.consume(O),fe):O===60&&i===1?(e.consume(O),Z):O===62&&i===4?(e.consume(O),me):O===63&&i===3?(e.consume(O),N):O===93&&i===5?(e.consume(O),ce):gt(O)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(RZ,oe,le)(O)):O===null||gt(O)?(e.exit("htmlFlowData"),le(O)):(e.consume(O),z)}function le(O){return e.check(NZ,he,oe)(O)}function he(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),de}function de(O){return O===null||gt(O)?le(O):(e.enter("htmlFlowData"),z(O))}function fe(O){return O===45?(e.consume(O),N):z(O)}function Z(O){return O===47?(e.consume(O),o="",V):z(O)}function V(O){if(O===62){const re=o.toLowerCase();return mC.includes(re)?(e.consume(O),me):z(O)}return Qr(O)&&o.length<8?(e.consume(O),o+=String.fromCharCode(O),V):z(O)}function ce(O){return O===93?(e.consume(O),N):z(O)}function N(O){return O===62?(e.consume(O),me):O===45&&i===2?(e.consume(O),N):z(O)}function me(O){return O===null||gt(O)?(e.exit("htmlFlowData"),oe(O)):(e.consume(O),me)}function oe(O){return e.exit("htmlFlow"),t(O)}}function LZ(e,t,n){const r=this;return i;function i(o){return gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function MZ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(kp,t,n)}}const FZ={name:"htmlText",tokenize:PZ};function PZ(e,t,n){const r=this;let i,a,o;return s;function s(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),c):N===47?(e.consume(N),D):N===63?(e.consume(N),w):Qr(N)?(e.consume(N),B):n(N)}function c(N){return N===45?(e.consume(N),p):N===91?(e.consume(N),a=0,E):Qr(N)?(e.consume(N),y):n(N)}function p(N){return N===45?(e.consume(N),g):n(N)}function f(N){return N===null?n(N):N===45?(e.consume(N),m):gt(N)?(o=f,Z(N)):(e.consume(N),f)}function m(N){return N===45?(e.consume(N),g):f(N)}function g(N){return N===62?fe(N):N===45?m(N):f(N)}function E(N){const me="CDATA[";return N===me.charCodeAt(a++)?(e.consume(N),a===me.length?b:E):n(N)}function b(N){return N===null?n(N):N===93?(e.consume(N),T):gt(N)?(o=b,Z(N)):(e.consume(N),b)}function T(N){return N===93?(e.consume(N),v):b(N)}function v(N){return N===62?fe(N):N===93?(e.consume(N),v):b(N)}function y(N){return N===null||N===62?fe(N):gt(N)?(o=y,Z(N)):(e.consume(N),y)}function w(N){return N===null?n(N):N===63?(e.consume(N),A):gt(N)?(o=w,Z(N)):(e.consume(N),w)}function A(N){return N===62?fe(N):w(N)}function D(N){return Qr(N)?(e.consume(N),k):n(N)}function k(N){return N===45||$r(N)?(e.consume(N),k):R(N)}function R(N){return gt(N)?(o=R,Z(N)):Dt(N)?(e.consume(N),R):fe(N)}function B(N){return N===45||$r(N)?(e.consume(N),B):N===47||N===62||hn(N)?W(N):n(N)}function W(N){return N===47?(e.consume(N),fe):N===58||N===95||Qr(N)?(e.consume(N),P):gt(N)?(o=W,Z(N)):Dt(N)?(e.consume(N),W):fe(N)}function P(N){return N===45||N===46||N===58||N===95||$r(N)?(e.consume(N),P):Q(N)}function Q(N){return N===61?(e.consume(N),z):gt(N)?(o=Q,Z(N)):Dt(N)?(e.consume(N),Q):W(N)}function z(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,le):gt(N)?(o=z,Z(N)):Dt(N)?(e.consume(N),z):(e.consume(N),he)}function le(N){return N===i?(e.consume(N),i=void 0,de):N===null?n(N):gt(N)?(o=le,Z(N)):(e.consume(N),le)}function he(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||hn(N)?W(N):(e.consume(N),he)}function de(N){return N===47||N===62||hn(N)?W(N):n(N)}function fe(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function Z(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),V}function V(N){return Dt(N)?Gt(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):ce(N)}function ce(N){return e.enter("htmlTextData"),o(N)}}const FE={name:"labelEnd",tokenize:jZ,resolveTo:HZ,resolveAll:zZ},BZ={tokenize:GZ},UZ={tokenize:VZ},$Z={tokenize:WZ};function zZ(e){let t=-1;for(;++t=3&&(c===null||gt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Dt(c)?Gt(e,s,"whitespace")(c):s(c))}}const ui={name:"list",tokenize:tQ,continuation:{tokenize:nQ},exit:iQ},JZ={tokenize:aQ,partial:!0},eQ={tokenize:rQ,partial:!0};function tQ(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(g){const E=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:Sb(g)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(uh,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return Sb(g)&&++o<10?(e.consume(g),u):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(kp,r.interrupt?n:p,e.attempt(JZ,m,f))}function p(g){return r.containerState.initialBlankLine=!0,a++,m(g)}function f(g){return Dt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function nQ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(kp,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Gt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Dt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eQ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Gt(e,e.attempt(ui,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function rQ(e,t,n){const r=this;return Gt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function iQ(e){e.exit(this.containerState.type)}function aQ(e,t,n){const r=this;return Gt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Dt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const bC={name:"setextUnderline",tokenize:sQ,resolveTo:oQ};function oQ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function sQ(e,t,n){const r=this;let i;return a;function a(c){let p=r.events.length,f;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){f=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Dt(c)?Gt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||gt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const lQ={tokenize:uQ};function uQ(e){const t=this,n=e.attempt(kp,r,e.attempt(this.parser.constructs.flowInitial,i,Gt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(hZ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const cQ={resolveAll:kD()},dQ=xD("string"),pQ=xD("text");function xD(e){return{tokenize:t,resolveAll:kD(e==="text"?fQ:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(p){return c(p)?a(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const f=i[p];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function mQ(e,t){let n=-1;const r=[];let i;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const RQ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function RD(e){return e.replace(RQ,NQ)}function NQ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return ID(n.slice(a?2:1),a?16:10)}return sp(n)||e}const ND={}.hasOwnProperty,OQ=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),DQ(n)(IQ(xQ(n).document().write(kQ()(e,t,!0))))};function DQ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ke),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(pt),blockQuote:s(Xe),characterEscape:Q,characterReference:Q,codeFenced:s(Ve),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(Ve,u),codeText:s(dt,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(ot),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Ge),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(ie,u),htmlFlowData:Q,htmlText:s(ie,u),htmlTextData:Q,image:s(pe),label:u,link:s(ke),listItem:s(Se),listItemValue:E,listOrdered:s(ve,g),listUnordered:s(ve),paragraph:s(Me),reference:Te,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(pt),strong:s(ze),thematicBreak:s(jt)},exit:{atxHeading:p(),atxHeadingSequence:R,autolink:p(),autolinkEmail:Re,autolinkProtocol:Le,blockQuote:p(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:ne,codeFenced:p(y),codeFencedFence:v,codeFencedFenceInfo:b,codeFencedFenceMeta:T,codeFlowValue:z,codeIndented:p(w),codeText:p(Z),codeTextData:z,data:z,definition:p(),definitionDestinationString:k,definitionLabelString:A,definitionTitleString:D,emphasis:p(),hardBreakEscape:p(he),hardBreakTrailing:p(he),htmlFlow:p(de),htmlFlowData:z,htmlText:p(fe),htmlTextData:z,image:p(ce),label:me,labelText:N,lineEnding:le,link:p(V),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:K,resourceDestinationString:oe,resourceTitleString:O,resource:re,setextHeading:p(P),setextHeadingLineSequence:W,setextHeadingText:B,strong:p(),thematicBreak:p()}};OD(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let ye={type:"root",children:[]};const We={stack:[ye],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:m,setData:a,getData:o},at=[];let Qe=-1;for(;++Qe0){const Y=We.tokenStack[We.tokenStack.length-1];(Y[1]||vC).call(We,void 0,Y[0])}for(ye.position={start:As(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:As(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Qe=-1;++Qe{const r=this.data("settings");return OQ(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function FQ(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function PQ(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` +`}]}function BQ(e,t){const n=t.value?t.value+` +`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function UQ(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $Q(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oc(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function DD(e,t){const n=String(t.identifier).toUpperCase(),r=oc(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function zQ(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},DD(e,{type:"footnoteReference",identifier:i,position:t.position})}function HQ(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jQ(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function LD(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function GQ(e,t){const n=e.definition(t.identifier);if(!n)return LD(e,t);const r={src:oc(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function VQ(e,t){const n={src:oc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function WQ(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function qQ(e,t){const n=e.definition(t.identifier);if(!n)return LD(e,t);const r={href:oc(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function KQ(e,t){const n={href:oc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function YQ(e,t,n){const r=e.all(t),i=n?XQ(n):MD(t),a={},o=[];if(typeof t.checked=="boolean"){const p=r[0];let f;p&&p.type==="element"&&p.tagName==="p"?f=p:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function ZQ(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i-1?r.offset:null}}}function nJ(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Ip(t.children[1]),u=A2(t.children[t.children.length-1]);s.line&&u.line&&(o.position={start:s,end:u}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function rJ(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let u=-1;const c=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(TC(t.slice(i),i>0,!1)),a.join("")}function TC(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===yC||a===_C;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===yC||a===_C;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function oJ(e,t){const n={type:"text",value:aJ(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function sJ(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const lJ={blockquote:FQ,break:PQ,code:BQ,delete:UQ,emphasis:$Q,footnoteReference:DD,footnote:zQ,heading:HQ,html:jQ,imageReference:GQ,image:VQ,inlineCode:WQ,linkReference:qQ,link:KQ,listItem:YQ,list:ZQ,paragraph:QQ,root:JQ,strong:eJ,table:nJ,tableCell:iJ,tableRow:rJ,text:oJ,thematicBreak:sJ,toml:d0,yaml:d0,definition:d0,footnoteDefinition:d0};function d0(){return null}const C2=function(e){if(e==null)return pJ;if(typeof e=="string")return dJ(e);if(typeof e=="object")return Array.isArray(e)?uJ(e):cJ(e);if(typeof e=="function")return x2(e);throw new Error("Expected function, string, or object as test")};function uJ(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let m=[],g,E,b;if((!t||i(s,u,c[c.length-1]||null))&&(m=hJ(n(s,c)),m[0]===Ab))return m;if(s.children&&m[0]!==Cd)for(E=(r?s.children.length:-1)+a,b=c.concat(s);E>-1&&E{const i=wC(r.identifier);i&&!SC.call(t,i)&&(t[i]=r)}),n;function n(r){const i=wC(r);return i&&SC.call(t,i)?t[i]:null}}function wC(e){return String(e||"").toUpperCase()}const ag={}.hasOwnProperty;function bJ(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...lJ,...n.handlers},o.definition=mJ(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=EJ,o.applyData=vJ,o.one=s,o.all=u,o.wrap=_J,o.augment=a,Ui(e,"footnoteDefinition",c=>{const p=String(c.identifier).toUpperCase();ag.call(i,p)||(i[p]=c)}),o;function a(c,p){if(c&&"data"in c&&c.data){const f=c.data;f.hName&&(p.type!=="element"&&(p={type:"element",tagName:"",properties:{},children:[]}),p.tagName=f.hName),p.type==="element"&&f.hProperties&&(p.properties={...p.properties,...f.hProperties}),"children"in p&&p.children&&f.hChildren&&(p.children=f.hChildren)}if(c){const f="type"in c?c:{position:c};gJ(f)||(p.position={start:Ip(f),end:A2(f)})}return p}function o(c,p,f,m){return Array.isArray(f)&&(m=f,f={}),a(c,{type:"element",tagName:p,properties:f||{},children:m||[]})}function s(c,p){return BD(o,c,p)}function u(c){return PE(o,c)}}function EJ(e,t){e.position&&(t.position=tJ(e))}function vJ(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&a&&(n.properties={...n.properties,...a}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function BD(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return ag.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:PE(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):yJ(e,t)}function PE(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i0&&n.push({type:"text",value:` +`}),n}function TJ(e){const t=[];let n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&f.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(f)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const f=c.children[c.children.length-1];f&&f.type==="text"?f.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);const p={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,p),t.push(p)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:` +`}]}}function UD(e,t){const n=bJ(e,t),r=n.one(e,null),i=TJ(n);return i&&r.children.push({type:"text",value:` +`},i),Array.isArray(r)?{type:"root",children:r}:r}const SJ=function(e,t){return e&&"run"in e?AJ(e,t):CJ(e||t)},wJ=SJ;function AJ(e,t){return(n,r,i)=>{e.run(UD(n,t),r,a=>{i(a)})}}function CJ(e){return t=>UD(t,e)}var $D={exports:{}},xJ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kJ=xJ,IJ=kJ;function zD(){}function HD(){}HD.resetWarningCache=zD;var RJ=function(){function e(r,i,a,o,s,u){if(u!==IJ){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:HD,resetWarningCache:zD};return n.PropTypes=n,n};$D.exports=RJ();var NJ=$D.exports;const Ee=Hi(NJ);class Rp{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Rp.prototype.property={};Rp.prototype.normal={};Rp.prototype.space=null;function jD(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&FJ.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(CC,UJ);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!CC.test(a)){let o=a.replace(PJ,BJ);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=BE}return new i(r,t)}function BJ(e){return"-"+e.toLowerCase()}function UJ(e){return e.charAt(1).toUpperCase()}const xC={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Tu=jD([WD,VD,YD,XD,LJ],"html"),yl=jD([WD,VD,YD,XD,MJ],"svg");function $J(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Ui(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}function ZD(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function og(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function UE(e){return e.join(" ").trim()}function lp(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function $E(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var zE={exports:{}},kC=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zJ=/\n/g,HJ=/^\s*/,jJ=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,GJ=/^:\s*/,VJ=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,WJ=/^[;\s]*/,qJ=/^\s+|\s+$/g,KJ=` +`,IC="/",RC="*",Kl="",YJ="comment",XJ="declaration",ZJ=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(E){var b=E.match(zJ);b&&(n+=b.length);var T=E.lastIndexOf(KJ);r=~T?E.length-T:r+E.length}function a(){var E={line:n,column:r};return function(b){return b.position=new o(E),c(),b}}function o(E){this.start=E,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(E){var b=new Error(t.source+":"+n+":"+r+": "+E);if(b.reason=E,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function u(E){var b=E.exec(e);if(b){var T=b[0];return i(T),e=e.slice(T.length),b}}function c(){u(HJ)}function p(E){var b;for(E=E||[];b=f();)b!==!1&&E.push(b);return E}function f(){var E=a();if(!(IC!=e.charAt(0)||RC!=e.charAt(1))){for(var b=2;Kl!=e.charAt(b)&&(RC!=e.charAt(b)||IC!=e.charAt(b+1));)++b;if(b+=2,Kl===e.charAt(b-1))return s("End of comment missing");var T=e.slice(2,b-2);return r+=2,i(T),e=e.slice(b),r+=2,E({type:YJ,comment:T})}}function m(){var E=a(),b=u(jJ);if(b){if(f(),!u(GJ))return s("property missing ':'");var T=u(VJ),v=E({type:XJ,property:NC(b[0].replace(kC,Kl)),value:T?NC(T[0].replace(kC,Kl)):Kl});return u(WJ),v}}function g(){var E=[];p(E);for(var b;b=m();)b!==!1&&(E.push(b),p(E));return E}return c(),g()};function NC(e){return e?e.replace(qJ,Kl):Kl}var QJ=ZJ;function QD(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=QJ(e),a=typeof t=="function",o,s,u=0,c=i.length;u0?ut.createElement(g,u,f):ut.createElement(g,u)}function ree(e){let t=-1;for(;++t for more info)`),delete p0[a]}const t=RX().use(MQ).use(e.remarkPlugins||[]).use(wJ,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use($J,e),n=new hD;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=ut.createElement(ut.Fragment,{},JD({options:e,schema:Tu,listDepth:0},r));return e.className&&(i=ut.createElement("div",{className:e.className},i)),i}HE.propTypes={children:Ee.string,className:Ee.string,allowElement:Ee.func,allowedElements:Ee.arrayOf(Ee.string),disallowedElements:Ee.arrayOf(Ee.string),unwrapDisallowed:Ee.bool,remarkPlugins:Ee.arrayOf(Ee.oneOfType([Ee.object,Ee.func,Ee.arrayOf(Ee.oneOfType([Ee.bool,Ee.string,Ee.object,Ee.func,Ee.arrayOf(Ee.any)]))])),rehypePlugins:Ee.arrayOf(Ee.oneOfType([Ee.object,Ee.func,Ee.arrayOf(Ee.oneOfType([Ee.bool,Ee.string,Ee.object,Ee.func,Ee.arrayOf(Ee.any)]))])),sourcePos:Ee.bool,rawSourcePos:Ee.bool,skipHtml:Ee.bool,includeElementIndex:Ee.bool,transformLinkUri:Ee.oneOfType([Ee.func,Ee.bool]),linkTarget:Ee.oneOfType([Ee.func,Ee.string]),transformImageUri:Ee.func,components:Ee.object};const uee={tokenize:gee,partial:!0},eL={tokenize:mee,partial:!0},tL={tokenize:bee,partial:!0},nL={tokenize:Eee,partial:!0},cee={tokenize:vee,partial:!0},rL={tokenize:fee,previous:aL},iL={tokenize:hee,previous:oL},ss={tokenize:pee,previous:sL},_o={},dee={text:_o};let Ml=48;for(;Ml<123;)_o[Ml]=ss,Ml++,Ml===58?Ml=65:Ml===91&&(Ml=97);_o[43]=ss;_o[45]=ss;_o[46]=ss;_o[95]=ss;_o[72]=[ss,iL];_o[104]=[ss,iL];_o[87]=[ss,rL];_o[119]=[ss,rL];function pee(e,t,n){const r=this;let i,a;return o;function o(f){return!kb(f)||!sL.call(r,r.previous)||jE(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return kb(f)?(e.consume(f),s):f===64?(e.consume(f),u):n(f)}function u(f){return f===46?e.check(cee,p,c)(f):f===45||f===95||$r(f)?(a=!0,e.consume(f),u):p(f)}function c(f){return e.consume(f),i=!0,u}function p(f){return a&&i&&Qr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function fee(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!aL.call(r,r.previous)||jE(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(uee,e.attempt(eL,e.attempt(tL,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function hee(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&oL.call(r,r.previous)&&!jE(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(Qr(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return n(f)}function u(f){return f===47?(e.consume(f),a?c:(a=!0,u)):n(f)}function c(f){return f===null||rg(f)||hn(f)||hu(f)||S2(f)?n(f):e.attempt(eL,e.attempt(tL,p),n)(f)}function p(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function gee(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function mee(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(nL,u,s)(c):c===null||hn(c)||hu(c)||c!==45&&S2(c)?u(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!a?n(c):t(c)}}function bee(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const yee={tokenize:kee,partial:!0};function _ee(){return{document:{91:{tokenize:Aee,continuation:{tokenize:Cee},exit:xee}},text:{91:{tokenize:wee},93:{add:"after",tokenize:Tee,resolveTo:See}}}}function Tee(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const c=Ha(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function See(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function wee(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||hn(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Ha(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return hn(f)||(o=!0),a++,e.consume(f),f===92?p:c}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function Aee(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(E)}function p(E){if(o>999||E===93&&!s||E===null||E===91||hn(E))return n(E);if(E===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Ha(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return hn(E)||(s=!0),o++,e.consume(E),E===92?f:p}function f(E){return E===91||E===92||E===93?(e.consume(E),o++,p):p(E)}function m(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),i.includes(a)||i.push(a),Gt(e,g,"gfmFootnoteDefinitionWhitespace")):n(E)}function g(E){return t(E)}}function Cee(e,t,n){return e.check(kp,t,e.attempt(yee,t,n))}function xee(e){e.exit("gfmFootnoteDefinition")}function kee(e,t,n){const r=this;return Gt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function Iee(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u1?u(E):(o.consume(E),f++,g);if(f<2&&!n)return u(E);const T=o.exit("strikethroughSequenceTemporary"),v=ig(E);return T._open=!v||v===2&&!!b,T._close=!b||b===2&&!!v,s(E)}}}class Ree{constructor(){this.map=[]}add(t,n,r){Nee(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Nee(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const he=r.events[Q][1].type;if(he==="lineEnding"||he==="linePrefix")Q--;else break}const z=Q>-1?r.events[Q][1].type:null,le=z==="tableHead"||z==="tableRow"?k:u;return le===k&&r.parser.lazy[r.now().line]?n(P):le(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),p(P)}function p(P){return P===null?n(P):gt(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):n(P):Dt(P)?Gt(e,p,"whitespace")(P):(a+=1,o&&(o=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||hn(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function g(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),o=!1,Dt(P)?Gt(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):E(P))}function E(P){return P===45||P===58?T(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),b):D(P)}function b(P){return Dt(P)?Gt(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),v):P===45?(a+=1,v(P)):P===null||gt(P)?A(P):D(P)}function v(P){return P===45?(e.enter("tableDelimiterFiller"),y(P)):D(P)}function y(P){return P===45?(e.consume(P),y):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return Dt(P)?Gt(e,A,"whitespace")(P):A(P)}function A(P){return P===124?E(P):P===null||gt(P)?!o||i!==a?D(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):D(P)}function D(P){return n(P)}function k(P){return e.enter("tableRow"),R(P)}function R(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),R):P===null||gt(P)?(e.exit("tableRow"),t(P)):Dt(P)?Gt(e,R,"whitespace")(P):(e.enter("data"),B(P))}function B(P){return P===null||P===124||hn(P)?(e.exit("data"),R(P)):(e.consume(P),P===92?W:B)}function W(P){return P===92||P===124?(e.consume(P),B):B(P)}}function Mee(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,c,p,f;const m=new Ree;for(;++nn[2]+1){const E=n[2]+1,b=n[3]-n[2]-1;e.add(E,b,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},e1(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function DC(e,t,n,r,i){const a=[],o=e1(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function e1(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Fee={tokenize:Bee},Pee={text:{91:Fee}};function Bee(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return hn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return gt(u)?t(u):Dt(u)?e.check({tokenize:Uee},t,n)(u):n(u)}}function Uee(e,t,n){return Gt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function $ee(e){return vD([dee,_ee(),Iee(e),Dee,Pee])}function LC(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function zee(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Hee={}.hasOwnProperty,jee=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=C2(i.ignore||[]),s=Gee(a);let u=-1;for(;++u0?{type:"text",value:R}:void 0),R!==!1&&(T!==D&&w.push({type:"text",value:f.value.slice(T,D)}),Array.isArray(R)?w.push(...R):R&&w.push(R),T=D+A[0].length,y=!0),!E.global)break;A=E.exec(f.value)}return y?(Te}const f3="phrasing",h3=["autolink","link","image","label"],Vee={transforms:[Qee],enter:{literalAutolink:qee,literalAutolinkEmail:g3,literalAutolinkHttp:g3,literalAutolinkWww:g3},exit:{literalAutolink:Zee,literalAutolinkEmail:Xee,literalAutolinkHttp:Kee,literalAutolinkWww:Yee}},Wee={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:f3,notInConstruct:h3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:f3,notInConstruct:h3},{character:":",before:"[ps]",after:"\\/",inConstruct:f3,notInConstruct:h3}]};function qee(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function g3(e){this.config.enter.autolinkProtocol.call(this,e)}function Kee(e){this.config.exit.autolinkProtocol.call(this,e)}function Yee(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function Xee(e){this.config.exit.autolinkEmail.call(this,e)}function Zee(e){this.exit(e)}function Qee(e){jee(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Jee],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ete]],{ignore:["link","linkReference"]})}function Jee(e,t,n,r,i){let a="";if(!lL(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!tte(n)))return!1;const o=nte(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function ete(e,t,n,r){return!lL(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function tte(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function nte(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=LC(e,"(");let a=LC(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function lL(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||hu(n)||S2(n))&&(!t||n!==47)}function uL(e){return e.label||!e.identifier?e.label||"":RD(e.identifier)}function rte(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s + +`}return` + +`}const ate=/\r?\n|\r/g;function ote(e,t){const n=[];let r=0,i=0,a;for(;a=ate.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join("");function o(s){n.push(t(s,i,!s))}}function cL(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function ste(e,t){return PC(e,t.inConstruct,!0)&&!PC(e,t.notInConstruct,!1)}function PC(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r=c||p+10?" ":"")),i.shift(4),a+=i.move(ote(rte(e,n,i.current()),_te)),o(),a}function _te(e,t,n){return t===0?e:(n?"":" ")+e}function fL(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let u=t.createTracker(n);for(;++o0&&(s==="\r"||s===` +`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",u=t.createTracker(n),u.move(a.join(""))),a.push(u.move(t.handle(c,e,t,{...u.current(),before:s,after:p}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}const Tte=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];hL.peek=xte;const Ste={canContainEols:["delete"],enter:{strikethrough:Ate},exit:{strikethrough:Cte}},wte={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Tte}],handlers:{delete:hL}};function Ate(e){this.enter({type:"delete",children:[]},e)}function Cte(e){this.exit(e)}function hL(e,t,n,r){const i=k2(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=fL(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function xte(){return"~"}gL.peek=kte;function gL(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++au&&(u=e[c].length);++Ts[T])&&(s[T]=y)}E.push(v)}a[c]=E,o[c]=b}let p=-1;if(typeof n=="object"&&"length"in n)for(;++ps[p]&&(s[p]=v),m[p]=v),f[p]=y}a.splice(1,0,f),o.splice(1,0,m),c=-1;const g=[];for(;++cn==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Lte(e){this.exit(e),this.setData("inTable")}function Mte(e){this.enter({type:"tableRow",children:[]},e)}function m3(e){this.exit(e)}function $C(e){this.enter({type:"tableCell",children:[]},e)}function Fte(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Pte));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function Pte(e,t){return t==="|"?t:e}function Bte(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:o,tableRow:s,tableCell:u,inlineCode:m}};function o(g,E,b,T){return c(p(g,b,T),g.align)}function s(g,E,b,T){const v=f(g,b,T),y=c([v]);return y.slice(0,y.indexOf(` +`))}function u(g,E,b,T){const v=b.enter("tableCell"),y=b.enter("phrasing"),w=fL(g,b,{...T,before:a,after:a});return y(),v(),w}function c(g,E){return Ite(g,{align:E,alignDelimiters:r,padding:n,stringLength:i})}function p(g,E,b){const T=g.children;let v=-1;const y=[],w=E.enter("table");for(;++v-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),p);return u(),c;function p(f,m,g){return m?(g?"":" ".repeat(o))+f:(g?a:a+" ".repeat(o-a.length))+f}}const Hte={exit:{taskListCheckValueChecked:zC,taskListCheckValueUnchecked:zC,paragraph:Gte}},jte={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Vte}};function zC(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Gte(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a=55296&&e<=57343};Va.isSurrogatePair=function(e){return e>=56320&&e<=57343};Va.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Va.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Va.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||Yte.indexOf(e)>-1};var GE={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const t1=Va,b3=GE,Fl=t1.CODE_POINTS,Xte=65536;let Zte=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Xte}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(t1.isSurrogatePair(n))return this.pos++,this._addGap(),t1.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Fl.EOF;return this._err(b3.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Fl.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Fl.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Fl.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Fl.LINE_FEED):(this.skipNextNewLine=!1,t1.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Fl.LINE_FEED||t===Fl.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){t1.isControlCodePoint(t)?this._err(b3.controlCharacterInInputStream):t1.isUndefinedCodePoint(t)&&this._err(b3.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var Qte=Zte,Jte=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const ene=Qte,un=Va,Jl=Jte,Ae=GE,G=un.CODE_POINTS,Pl=un.CODE_POINT_SEQUENCES,tne={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},mL=1,bL=2,EL=4,nne=mL|bL|EL,Ot="DATA_STATE",n1="RCDATA_STATE",cd="RAWTEXT_STATE",Ho="SCRIPT_DATA_STATE",vL="PLAINTEXT_STATE",HC="TAG_OPEN_STATE",jC="END_TAG_OPEN_STATE",E3="TAG_NAME_STATE",GC="RCDATA_LESS_THAN_SIGN_STATE",VC="RCDATA_END_TAG_OPEN_STATE",WC="RCDATA_END_TAG_NAME_STATE",qC="RAWTEXT_LESS_THAN_SIGN_STATE",KC="RAWTEXT_END_TAG_OPEN_STATE",YC="RAWTEXT_END_TAG_NAME_STATE",XC="SCRIPT_DATA_LESS_THAN_SIGN_STATE",ZC="SCRIPT_DATA_END_TAG_OPEN_STATE",QC="SCRIPT_DATA_END_TAG_NAME_STATE",JC="SCRIPT_DATA_ESCAPE_START_STATE",ex="SCRIPT_DATA_ESCAPE_START_DASH_STATE",ka="SCRIPT_DATA_ESCAPED_STATE",tx="SCRIPT_DATA_ESCAPED_DASH_STATE",v3="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",h0="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",nx="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",rx="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",ix="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Lo="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ax="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",ox="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",g0="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",sx="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",to="BEFORE_ATTRIBUTE_NAME_STATE",m0="ATTRIBUTE_NAME_STATE",y3="AFTER_ATTRIBUTE_NAME_STATE",_3="BEFORE_ATTRIBUTE_VALUE_STATE",b0="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",E0="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",v0="ATTRIBUTE_VALUE_UNQUOTED_STATE",T3="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Cs="SELF_CLOSING_START_TAG_STATE",jc="BOGUS_COMMENT_STATE",lx="MARKUP_DECLARATION_OPEN_STATE",ux="COMMENT_START_STATE",cx="COMMENT_START_DASH_STATE",xs="COMMENT_STATE",dx="COMMENT_LESS_THAN_SIGN_STATE",px="COMMENT_LESS_THAN_SIGN_BANG_STATE",fx="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",hx="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",y0="COMMENT_END_DASH_STATE",_0="COMMENT_END_STATE",gx="COMMENT_END_BANG_STATE",mx="DOCTYPE_STATE",T0="BEFORE_DOCTYPE_NAME_STATE",S0="DOCTYPE_NAME_STATE",bx="AFTER_DOCTYPE_NAME_STATE",Ex="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",vx="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",S3="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",w3="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",A3="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",yx="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",_x="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Tx="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Gc="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Vc="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",C3="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Mo="BOGUS_DOCTYPE_STATE",w0="CDATA_SECTION_STATE",Sx="CDATA_SECTION_BRACKET_STATE",wx="CDATA_SECTION_END_STATE",Wu="CHARACTER_REFERENCE_STATE",Ax="NAMED_CHARACTER_REFERENCE_STATE",Cx="AMBIGUOS_AMPERSAND_STATE",xx="NUMERIC_CHARACTER_REFERENCE_STATE",kx="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Ix="DECIMAL_CHARACTER_REFERENCE_START_STATE",Rx="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Nx="DECIMAL_CHARACTER_REFERENCE_STATE",Wc="NUMERIC_CHARACTER_REFERENCE_END_STATE";function vn(e){return e===G.SPACE||e===G.LINE_FEED||e===G.TABULATION||e===G.FORM_FEED}function xd(e){return e>=G.DIGIT_0&&e<=G.DIGIT_9}function Na(e){return e>=G.LATIN_CAPITAL_A&&e<=G.LATIN_CAPITAL_Z}function Gl(e){return e>=G.LATIN_SMALL_A&&e<=G.LATIN_SMALL_Z}function Ns(e){return Gl(e)||Na(e)}function x3(e){return Ns(e)||xd(e)}function yL(e){return e>=G.LATIN_CAPITAL_A&&e<=G.LATIN_CAPITAL_F}function _L(e){return e>=G.LATIN_SMALL_A&&e<=G.LATIN_SMALL_F}function rne(e){return xd(e)||yL(e)||_L(e)}function ch(e){return e+32}function Mn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function ks(e){return String.fromCharCode(ch(e))}function Ox(e,t){const n=Jl[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=Jl[a];if(ot)i=a-1;else return Jl[a+n]}return-1}let _a=class ci{constructor(){this.preprocessor=new ene,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ot,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:ci.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,u=n,c;for(;s0&&(u=this._consume(),i++),u===G.EOF){a=!1;break}if(c=t[s],u!==c&&(r||u!==ch(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Pl.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(Ae.endTagWithAttributes),t.selfClosing&&this._err(Ae.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=ci.CHARACTER_TOKEN;vn(t)?n=ci.WHITESPACE_CHARACTER_TOKEN:t===G.NULL&&(n=ci.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Mn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=Jl[i],o=a")):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=ka,this._emitChars(un.REPLACEMENT_CHARACTER)):t===G.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ka,this._emitCodePoint(t))}[h0](t){t===G.SOLIDUS?(this.tempBuff=[],this.state=nx):Ns(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(ix)):(this._emitChars("<"),this._reconsumeInState(ka))}[nx](t){Ns(t)?(this._createEndTagToken(),this._reconsumeInState(rx)):(this._emitChars("")):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Lo,this._emitChars(un.REPLACEMENT_CHARACTER)):t===G.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Lo,this._emitCodePoint(t))}[g0](t){t===G.SOLIDUS?(this.tempBuff=[],this.state=sx,this._emitChars("/")):this._reconsumeInState(Lo)}[sx](t){vn(t)||t===G.SOLIDUS||t===G.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ka:Lo,this._emitCodePoint(t)):Na(t)?(this.tempBuff.push(ch(t)),this._emitCodePoint(t)):Gl(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Lo)}[to](t){vn(t)||(t===G.SOLIDUS||t===G.GREATER_THAN_SIGN||t===G.EOF?this._reconsumeInState(y3):t===G.EQUALS_SIGN?(this._err(Ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=m0):(this._createAttr(""),this._reconsumeInState(m0)))}[m0](t){vn(t)||t===G.SOLIDUS||t===G.GREATER_THAN_SIGN||t===G.EOF?(this._leaveAttrName(y3),this._unconsume()):t===G.EQUALS_SIGN?this._leaveAttrName(_3):Na(t)?this.currentAttr.name+=ks(t):t===G.QUOTATION_MARK||t===G.APOSTROPHE||t===G.LESS_THAN_SIGN?(this._err(Ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=Mn(t)):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.name+=un.REPLACEMENT_CHARACTER):this.currentAttr.name+=Mn(t)}[y3](t){vn(t)||(t===G.SOLIDUS?this.state=Cs:t===G.EQUALS_SIGN?this.state=_3:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(m0)))}[_3](t){vn(t)||(t===G.QUOTATION_MARK?this.state=b0:t===G.APOSTROPHE?this.state=E0:t===G.GREATER_THAN_SIGN?(this._err(Ae.missingAttributeValue),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(v0))}[b0](t){t===G.QUOTATION_MARK?this.state=T3:t===G.AMPERSAND?(this.returnState=b0,this.state=Wu):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[E0](t){t===G.APOSTROPHE?this.state=T3:t===G.AMPERSAND?(this.returnState=E0,this.state=Wu):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[v0](t){vn(t)?this._leaveAttrValue(to):t===G.AMPERSAND?(this.returnState=v0,this.state=Wu):t===G.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.QUOTATION_MARK||t===G.APOSTROPHE||t===G.LESS_THAN_SIGN||t===G.EQUALS_SIGN||t===G.GRAVE_ACCENT?(this._err(Ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Mn(t)):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[T3](t){vn(t)?this._leaveAttrValue(to):t===G.SOLIDUS?this._leaveAttrValue(Cs):t===G.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBetweenAttributes),this._reconsumeInState(to))}[Cs](t){t===G.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.unexpectedSolidusInTag),this._reconsumeInState(to))}[jc](t){t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=un.REPLACEMENT_CHARACTER):this.currentToken.data+=Mn(t)}[lx](t){this._consumeSequenceIfMatch(Pl.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=ux):this._consumeSequenceIfMatch(Pl.DOCTYPE_STRING,t,!1)?this.state=mx:this._consumeSequenceIfMatch(Pl.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=w0:(this._err(Ae.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=jc):this._ensureHibernation()||(this._err(Ae.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(jc))}[ux](t){t===G.HYPHEN_MINUS?this.state=cx:t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(xs)}[cx](t){t===G.HYPHEN_MINUS?this.state=_0:t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(xs))}[xs](t){t===G.HYPHEN_MINUS?this.state=y0:t===G.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=dx):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Mn(t)}[dx](t){t===G.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=px):t===G.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(xs)}[px](t){t===G.HYPHEN_MINUS?this.state=fx:this._reconsumeInState(xs)}[fx](t){t===G.HYPHEN_MINUS?this.state=hx:this._reconsumeInState(y0)}[hx](t){t!==G.GREATER_THAN_SIGN&&t!==G.EOF&&this._err(Ae.nestedComment),this._reconsumeInState(_0)}[y0](t){t===G.HYPHEN_MINUS?this.state=_0:t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(xs))}[_0](t){t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EXCLAMATION_MARK?this.state=gx:t===G.HYPHEN_MINUS?this.currentToken.data+="-":t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(xs))}[gx](t){t===G.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=y0):t===G.GREATER_THAN_SIGN?(this._err(Ae.incorrectlyClosedComment),this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(xs))}[mx](t){vn(t)?this.state=T0:t===G.GREATER_THAN_SIGN?this._reconsumeInState(T0):t===G.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(T0))}[T0](t){vn(t)||(Na(t)?(this._createDoctypeToken(ks(t)),this.state=S0):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this._createDoctypeToken(un.REPLACEMENT_CHARACTER),this.state=S0):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Mn(t)),this.state=S0))}[S0](t){vn(t)?this.state=bx:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):Na(t)?this.currentToken.name+=ks(t):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.name+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Mn(t)}[bx](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Pl.PUBLIC_STRING,t,!1)?this.state=Ex:this._consumeSequenceIfMatch(Pl.SYSTEM_STRING,t,!1)?this.state=_x:this._ensureHibernation()||(this._err(Ae.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[Ex](t){vn(t)?this.state=vx:t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=S3):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=w3):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[vx](t){vn(t)||(t===G.QUOTATION_MARK?(this.currentToken.publicId="",this.state=S3):t===G.APOSTROPHE?(this.currentToken.publicId="",this.state=w3):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[S3](t){t===G.QUOTATION_MARK?this.state=A3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Mn(t)}[w3](t){t===G.APOSTROPHE?this.state=A3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Mn(t)}[A3](t){vn(t)?this.state=yx:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Vc):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[yx](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this.currentToken.systemId="",this.state=Vc):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[_x](t){vn(t)?this.state=Tx:t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Vc):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[Tx](t){vn(t)||(t===G.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this.currentToken.systemId="",this.state=Vc):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[Gc](t){t===G.QUOTATION_MARK?this.state=C3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Mn(t)}[Vc](t){t===G.APOSTROPHE?this.state=C3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Mn(t)}[C3](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Mo)))}[Mo](t){t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.NULL?this._err(Ae.unexpectedNullCharacter):t===G.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[w0](t){t===G.RIGHT_SQUARE_BRACKET?this.state=Sx:t===G.EOF?(this._err(Ae.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Sx](t){t===G.RIGHT_SQUARE_BRACKET?this.state=wx:(this._emitChars("]"),this._reconsumeInState(w0))}[wx](t){t===G.GREATER_THAN_SIGN?this.state=Ot:t===G.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(w0))}[Wu](t){this.tempBuff=[G.AMPERSAND],t===G.NUMBER_SIGN?(this.tempBuff.push(t),this.state=xx):x3(t)?this._reconsumeInState(Ax):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ax](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[G.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===G.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Ae.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Cx}[Cx](t){x3(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Mn(t):this._emitCodePoint(t):(t===G.SEMICOLON&&this._err(Ae.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[xx](t){this.charRefCode=0,t===G.LATIN_SMALL_X||t===G.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=kx):this._reconsumeInState(Ix)}[kx](t){rne(t)?this._reconsumeInState(Rx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ix](t){xd(t)?this._reconsumeInState(Nx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Rx](t){yL(t)?this.charRefCode=this.charRefCode*16+t-55:_L(t)?this.charRefCode=this.charRefCode*16+t-87:xd(t)?this.charRefCode=this.charRefCode*16+t-48:t===G.SEMICOLON?this.state=Wc:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(Wc))}[Nx](t){xd(t)?this.charRefCode=this.charRefCode*10+t-48:t===G.SEMICOLON?this.state=Wc:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(Wc))}[Wc](){if(this.charRefCode===G.NULL)this._err(Ae.nullCharacterReference),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ae.characterReferenceOutsideUnicodeRange),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(un.isSurrogate(this.charRefCode))this._err(Ae.surrogateCharacterReference),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(un.isUndefinedCodePoint(this.charRefCode))this._err(Ae.noncharacterCharacterReference);else if(un.isControlCodePoint(this.charRefCode)||this.charRefCode===G.CARRIAGE_RETURN){this._err(Ae.controlCharacterReference);const t=tne[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};_a.CHARACTER_TOKEN="CHARACTER_TOKEN";_a.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";_a.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";_a.START_TAG_TOKEN="START_TAG_TOKEN";_a.END_TAG_TOKEN="END_TAG_TOKEN";_a.COMMENT_TOKEN="COMMENT_TOKEN";_a.DOCTYPE_TOKEN="DOCTYPE_TOKEN";_a.EOF_TOKEN="EOF_TOKEN";_a.HIBERNATION_TOKEN="HIBERNATION_TOKEN";_a.MODE={DATA:Ot,RCDATA:n1,RAWTEXT:cd,SCRIPT_DATA:Ho,PLAINTEXT:vL};_a.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var I2=_a,Wa={};const k3=Wa.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};Wa.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Wa.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $e=Wa.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};Wa.SPECIAL_ELEMENTS={[k3.HTML]:{[$e.ADDRESS]:!0,[$e.APPLET]:!0,[$e.AREA]:!0,[$e.ARTICLE]:!0,[$e.ASIDE]:!0,[$e.BASE]:!0,[$e.BASEFONT]:!0,[$e.BGSOUND]:!0,[$e.BLOCKQUOTE]:!0,[$e.BODY]:!0,[$e.BR]:!0,[$e.BUTTON]:!0,[$e.CAPTION]:!0,[$e.CENTER]:!0,[$e.COL]:!0,[$e.COLGROUP]:!0,[$e.DD]:!0,[$e.DETAILS]:!0,[$e.DIR]:!0,[$e.DIV]:!0,[$e.DL]:!0,[$e.DT]:!0,[$e.EMBED]:!0,[$e.FIELDSET]:!0,[$e.FIGCAPTION]:!0,[$e.FIGURE]:!0,[$e.FOOTER]:!0,[$e.FORM]:!0,[$e.FRAME]:!0,[$e.FRAMESET]:!0,[$e.H1]:!0,[$e.H2]:!0,[$e.H3]:!0,[$e.H4]:!0,[$e.H5]:!0,[$e.H6]:!0,[$e.HEAD]:!0,[$e.HEADER]:!0,[$e.HGROUP]:!0,[$e.HR]:!0,[$e.HTML]:!0,[$e.IFRAME]:!0,[$e.IMG]:!0,[$e.INPUT]:!0,[$e.LI]:!0,[$e.LINK]:!0,[$e.LISTING]:!0,[$e.MAIN]:!0,[$e.MARQUEE]:!0,[$e.MENU]:!0,[$e.META]:!0,[$e.NAV]:!0,[$e.NOEMBED]:!0,[$e.NOFRAMES]:!0,[$e.NOSCRIPT]:!0,[$e.OBJECT]:!0,[$e.OL]:!0,[$e.P]:!0,[$e.PARAM]:!0,[$e.PLAINTEXT]:!0,[$e.PRE]:!0,[$e.SCRIPT]:!0,[$e.SECTION]:!0,[$e.SELECT]:!0,[$e.SOURCE]:!0,[$e.STYLE]:!0,[$e.SUMMARY]:!0,[$e.TABLE]:!0,[$e.TBODY]:!0,[$e.TD]:!0,[$e.TEMPLATE]:!0,[$e.TEXTAREA]:!0,[$e.TFOOT]:!0,[$e.TH]:!0,[$e.THEAD]:!0,[$e.TITLE]:!0,[$e.TR]:!0,[$e.TRACK]:!0,[$e.UL]:!0,[$e.WBR]:!0,[$e.XMP]:!0},[k3.MATHML]:{[$e.MI]:!0,[$e.MO]:!0,[$e.MN]:!0,[$e.MS]:!0,[$e.MTEXT]:!0,[$e.ANNOTATION_XML]:!0},[k3.SVG]:{[$e.TITLE]:!0,[$e.FOREIGN_OBJECT]:!0,[$e.DESC]:!0}};const TL=Wa,je=TL.TAG_NAMES,cn=TL.NAMESPACES;function Dx(e){switch(e.length){case 1:return e===je.P;case 2:return e===je.RB||e===je.RP||e===je.RT||e===je.DD||e===je.DT||e===je.LI;case 3:return e===je.RTC;case 6:return e===je.OPTION;case 8:return e===je.OPTGROUP}return!1}function ine(e){switch(e.length){case 1:return e===je.P;case 2:return e===je.RB||e===je.RP||e===je.RT||e===je.DD||e===je.DT||e===je.LI||e===je.TD||e===je.TH||e===je.TR;case 3:return e===je.RTC;case 5:return e===je.TBODY||e===je.TFOOT||e===je.THEAD;case 6:return e===je.OPTION;case 7:return e===je.CAPTION;case 8:return e===je.OPTGROUP||e===je.COLGROUP}return!1}function A0(e,t){switch(e.length){case 2:if(e===je.TD||e===je.TH)return t===cn.HTML;if(e===je.MI||e===je.MO||e===je.MN||e===je.MS)return t===cn.MATHML;break;case 4:if(e===je.HTML)return t===cn.HTML;if(e===je.DESC)return t===cn.SVG;break;case 5:if(e===je.TABLE)return t===cn.HTML;if(e===je.MTEXT)return t===cn.MATHML;if(e===je.TITLE)return t===cn.SVG;break;case 6:return(e===je.APPLET||e===je.OBJECT)&&t===cn.HTML;case 7:return(e===je.CAPTION||e===je.MARQUEE)&&t===cn.HTML;case 8:return e===je.TEMPLATE&&t===cn.HTML;case 13:return e===je.FOREIGN_OBJECT&&t===cn.SVG;case 14:return e===je.ANNOTATION_XML&&t===cn.MATHML}return!1}let ane=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===je.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===cn.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===cn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===je.H1||t===je.H2||t===je.H3||t===je.H4||t===je.H5||t===je.H6&&n===cn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===je.TD||t===je.TH&&n===cn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==je.TABLE&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==je.TBODY&&this.currentTagName!==je.TFOOT&&this.currentTagName!==je.THEAD&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==je.TR&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===je.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===je.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if(A0(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===je.H1||n===je.H2||n===je.H3||n===je.H4||n===je.H5||n===je.H6)&&r===cn.HTML)return!0;if(A0(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if((r===je.UL||r===je.OL)&&i===cn.HTML||A0(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if(r===je.BUTTON&&i===cn.HTML||A0(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===cn.HTML){if(r===t)return!0;if(r===je.TABLE||r===je.TEMPLATE||r===je.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===cn.HTML){if(n===je.TBODY||n===je.THEAD||n===je.TFOOT)return!0;if(n===je.TABLE||n===je.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===cn.HTML){if(r===t)return!0;if(r!==je.OPTION&&r!==je.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Dx(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ine(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Dx(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var one=ane;const C0=3;let VE=class Os{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=C0){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===Os.MARKER_ENTRY)break;const u=s.element,c=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=C0-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:Os.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Os.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Os.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Os.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Os.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Os.ELEMENT_ENTRY&&r.element===t)return r}return null}};VE.MARKER_ENTRY="MARKER_ENTRY";VE.ELEMENT_ENTRY="ELEMENT_ENTRY";var sne=VE;let SL=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};SL.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i{const a=I3.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var AL=dne;const pne=ls;let fne=class extends pne{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var hne=fne;const R3=ls,Mx=I2,gne=AL,mne=hne,bne=Wa,N3=bne.TAG_NAMES;let Ene=class extends R3{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===Mx.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=R3.install(this.tokenizer,gne);t.posTracker=a.posTracker,R3.install(this.openElements,mne,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Mx.END_TAG_TOKEN&&(r.tagName===N3.HTML||r.tagName===N3.BODY&&this.openElements.hasInScope(N3.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},R2={};const{DOCUMENT_MODE:qu}=Wa,kL="html",$ne="about:legacy-compat",zne="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",IL=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Hne=IL.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),jne=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],RL=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Gne=RL.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Px(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Bx(e,t){for(let n=0;n-1)return qu.QUIRKS;let r=t===null?Hne:IL;if(Bx(n,r))return qu.QUIRKS;if(r=t===null?RL:Gne,Bx(n,r))return qu.LIMITED_QUIRKS}return qu.NO_QUIRKS};R2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Px(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Px(n)),r};var _l={};const O3=I2,qE=Wa,ft=qE.TAG_NAMES,vr=qE.NAMESPACES,dh=qE.ATTRS,Ux={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Vne="definitionurl",Wne="definitionURL",qne={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},Kne={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:vr.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:vr.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:vr.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:vr.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:vr.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:vr.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:vr.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:vr.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:vr.XML},"xml:space":{prefix:"xml",name:"space",namespace:vr.XML},xmlns:{prefix:"",name:"xmlns",namespace:vr.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:vr.XMLNS}},Yne=_l.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},Xne={[ft.B]:!0,[ft.BIG]:!0,[ft.BLOCKQUOTE]:!0,[ft.BODY]:!0,[ft.BR]:!0,[ft.CENTER]:!0,[ft.CODE]:!0,[ft.DD]:!0,[ft.DIV]:!0,[ft.DL]:!0,[ft.DT]:!0,[ft.EM]:!0,[ft.EMBED]:!0,[ft.H1]:!0,[ft.H2]:!0,[ft.H3]:!0,[ft.H4]:!0,[ft.H5]:!0,[ft.H6]:!0,[ft.HEAD]:!0,[ft.HR]:!0,[ft.I]:!0,[ft.IMG]:!0,[ft.LI]:!0,[ft.LISTING]:!0,[ft.MENU]:!0,[ft.META]:!0,[ft.NOBR]:!0,[ft.OL]:!0,[ft.P]:!0,[ft.PRE]:!0,[ft.RUBY]:!0,[ft.S]:!0,[ft.SMALL]:!0,[ft.SPAN]:!0,[ft.STRONG]:!0,[ft.STRIKE]:!0,[ft.SUB]:!0,[ft.SUP]:!0,[ft.TABLE]:!0,[ft.TT]:!0,[ft.U]:!0,[ft.UL]:!0,[ft.VAR]:!0};_l.causesExit=function(e){const t=e.tagName;return t===ft.FONT&&(O3.getTokenAttr(e,dh.COLOR)!==null||O3.getTokenAttr(e,dh.SIZE)!==null||O3.getTokenAttr(e,dh.FACE)!==null)?!0:Xne[t]};_l.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=lre[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=L2;break}else if(!n&&i===S.HEAD){this.insertionMode=uc;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?O2:N2;break}else if(n){this.insertionMode=mo;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=XE;return}}this.insertionMode=YE}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===rt.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Su.SPECIAL_ELEMENTS[r][n]}}var dre=cre;function pre(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Oa(e,t),n}function fre(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function hre(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=sre;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=gre(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function gre(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function mre(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===rt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function bre(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Fs(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(Ar.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Ar.endTagWithoutMatchingOpenElement)}function Rd(e,t){e.openElements.pop(),e.insertionMode=O2,e._processToken(t)}function wre(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?cr(e,t):n===S.NOSCRIPT?e._err(Ar.nestedNoscriptInHead):Nd(e,t)}function Are(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=uc):n===S.BR?Nd(e,t):e._err(Ar.endTagWithoutMatchingOpenElement)}function Nd(e,t){const n=t.type===q.EOF_TOKEN?Ar.openElementsLeftAfterEof:Ar.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=uc,e._processToken(t)}function Cre(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.BODY?(e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode=mo):n===S.FRAMESET?(e._insertElement(t,rt.HTML),e.insertionMode=M2):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(Ar.abandonedHeadElementChild),e.openElements.push(e.headElement),cr(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(Ar.misplacedStartTagForHeadElement):Od(e,t)}function xre(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?Od(e,t):n===S.TEMPLATE?wu(e,t):e._err(Ar.endTagWithoutMatchingOpenElement)}function Od(e,t){e._insertFakeElement(S.BODY),e.insertionMode=mo,e._processToken(t)}function Bl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function k0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function kre(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Ire(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Rre(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,rt.HTML),e.insertionMode=M2)}function Fo(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Nre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,rt.HTML)}function Vx(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ore(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),n||(e.formElement=e.openElements.current))}function Dre(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Lre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.tokenizer.state=q.MODE.PLAINTEXT}function Mre(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.framesetOk=!1}function Fre(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(Fs(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ku(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Pre(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(Fs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Wx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Bre(e,t){e.treeAdapter.getDocumentMode(e.document)!==Su.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode=Ur}function r1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ure(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,rt.HTML);const n=q.getTokenAttr(t,NL.TYPE);(!n||n.toLowerCase()!==OL)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function qx(e,t){e._appendElement(t,rt.HTML),t.ackSelfClosing=!0}function $re(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function zre(e,t){t.tagName=S.IMG,r1(e,t)}function Hre(e,t){e._insertElement(t,rt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=q.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=sg}function jre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Gre(e,t){e.framesetOk=!1,e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Kx(e,t){e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Vre(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode===Ur||e.insertionMode===D2||e.insertionMode===pa||e.insertionMode===rs||e.insertionMode===L2?e.insertionMode=XE:e.insertionMode=YE}function Yx(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML)}function Xx(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,rt.HTML)}function Wre(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,rt.HTML)}function qre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Kre(e,t){e._reconstructActiveFormattingElements(),uo.adjustTokenMathMLAttrs(t),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,rt.MATHML):e._insertElement(t,rt.MATHML),t.ackSelfClosing=!0}function Yre(e,t){e._reconstructActiveFormattingElements(),uo.adjustTokenSVGAttrs(t),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,rt.SVG):e._insertElement(t,rt.SVG),t.ackSelfClosing=!0}function ta(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML)}function yi(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?Ku(e,t):n===S.P?Fo(e,t):n===S.A?Fre(e,t):ta(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?Fo(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Nre(e,t):n===S.LI||n===S.DD||n===S.DT?Dre(e,t):n===S.EM||n===S.TT?Ku(e,t):n===S.BR?r1(e,t):n===S.HR?$re(e,t):n===S.RB?Xx(e,t):n===S.RT||n===S.RP?Wre(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&ta(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?Fo(e,t):n===S.PRE?Vx(e,t):n===S.BIG?Ku(e,t):n===S.IMG||n===S.WBR?r1(e,t):n===S.XMP?jre(e,t):n===S.SVG?Yre(e,t):n===S.RTC?Xx(e,t):n!==S.COL&&ta(e,t);break;case 4:n===S.HTML?kre(e,t):n===S.BASE||n===S.LINK||n===S.META?cr(e,t):n===S.BODY?Ire(e,t):n===S.MAIN||n===S.MENU?Fo(e,t):n===S.FORM?Ore(e,t):n===S.CODE||n===S.FONT?Ku(e,t):n===S.NOBR?Pre(e,t):n===S.AREA?r1(e,t):n===S.MATH?Kre(e,t):n===S.MENU?qre(e,t):n!==S.HEAD&&ta(e,t);break;case 5:n===S.STYLE||n===S.TITLE?cr(e,t):n===S.ASIDE?Fo(e,t):n===S.SMALL?Ku(e,t):n===S.TABLE?Bre(e,t):n===S.EMBED?r1(e,t):n===S.INPUT?Ure(e,t):n===S.PARAM||n===S.TRACK?qx(e,t):n===S.IMAGE?zre(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&ta(e,t);break;case 6:n===S.SCRIPT?cr(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Fo(e,t):n===S.BUTTON?Mre(e,t):n===S.STRIKE||n===S.STRONG?Ku(e,t):n===S.APPLET||n===S.OBJECT?Wx(e,t):n===S.KEYGEN?r1(e,t):n===S.SOURCE?qx(e,t):n===S.IFRAME?Gre(e,t):n===S.SELECT?Vre(e,t):n===S.OPTION?Yx(e,t):ta(e,t);break;case 7:n===S.BGSOUND?cr(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?Fo(e,t):n===S.LISTING?Vx(e,t):n===S.MARQUEE?Wx(e,t):n===S.NOEMBED?Kx(e,t):n!==S.CAPTION&&ta(e,t);break;case 8:n===S.BASEFONT?cr(e,t):n===S.FRAMESET?Rre(e,t):n===S.FIELDSET?Fo(e,t):n===S.TEXTAREA?Hre(e,t):n===S.TEMPLATE?cr(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?Kx(e,t):ta(e,t):n===S.OPTGROUP?Yx(e,t):n!==S.COLGROUP&&ta(e,t);break;case 9:n===S.PLAINTEXT?Lre(e,t):ta(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Fo(e,t):ta(e,t);break;default:ta(e,t)}}function Xre(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=ZE)}function Zre(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=ZE,e._processToken(t))}function Is(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Qre(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Jre(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function eie(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function tie(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function nie(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Zx(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function rie(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Oa(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function QE(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?Fs(e,t):n===S.P?Jre(e):Oa(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Is(e,t):n===S.LI?eie(e):n===S.DD||n===S.DT?tie(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?nie(e):n===S.BR?rie(e):n===S.EM||n===S.TT?Fs(e,t):Oa(e,t);break;case 3:n===S.BIG?Fs(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Is(e,t):Oa(e,t);break;case 4:n===S.BODY?Xre(e):n===S.HTML?Zre(e,t):n===S.FORM?Qre(e):n===S.CODE||n===S.FONT||n===S.NOBR?Fs(e,t):n===S.MAIN||n===S.MENU?Is(e,t):Oa(e,t);break;case 5:n===S.ASIDE?Is(e,t):n===S.SMALL?Fs(e,t):Oa(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Is(e,t):n===S.APPLET||n===S.OBJECT?Zx(e,t):n===S.STRIKE||n===S.STRONG?Fs(e,t):Oa(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Is(e,t):n===S.MARQUEE?Zx(e,t):Oa(e,t);break;case 8:n===S.FIELDSET?Is(e,t):n===S.TEMPLATE?wu(e,t):Oa(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Is(e,t):Oa(e,t);break;default:Oa(e,t)}}function Po(e,t){e.tmplInsertionModeStackTop>-1?zL(e,t):e.stopped=!0}function iie(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function aie(e,t){e._err(Ar.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Bo(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ML,e._processToken(t)):na(e,t)}function oie(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,rt.HTML),e.insertionMode=D2}function sie(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,rt.HTML),e.insertionMode=Np}function lie(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=Np,e._processToken(t)}function uie(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,rt.HTML),e.insertionMode=pa}function cie(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=pa,e._processToken(t)}function die(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function pie(e,t){const n=q.getTokenAttr(t,NL.TYPE);n&&n.toLowerCase()===OL?e._appendElement(t,rt.HTML):na(e,t),t.ackSelfClosing=!0}function fie(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,rt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function JE(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?cie(e,t):na(e,t);break;case 3:n===S.COL?lie(e,t):na(e,t);break;case 4:n===S.FORM?fie(e,t):na(e,t);break;case 5:n===S.TABLE?die(e,t):n===S.STYLE?cr(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?uie(e,t):n===S.INPUT?pie(e,t):na(e,t);break;case 6:n===S.SCRIPT?cr(e,t):na(e,t);break;case 7:n===S.CAPTION?oie(e,t):na(e,t);break;case 8:n===S.COLGROUP?sie(e,t):n===S.TEMPLATE?cr(e,t):na(e,t);break;default:na(e,t)}}function ev(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?wu(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&na(e,t)}function na(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function hie(e,t){e.pendingCharacterTokens.push(t)}function gie(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Yc(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Rie(e,t){t.tagName===S.HTML?yi(e,t):cg(e,t)}function Nie(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=PL):cg(e,t)}function cg(e,t){e.insertionMode=mo,e._processToken(t)}function Oie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.FRAMESET?e._insertElement(t,rt.HTML):n===S.FRAME?(e._appendElement(t,rt.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&cr(e,t)}function Die(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=FL))}function Lie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.NOFRAMES&&cr(e,t)}function Mie(e,t){t.tagName===S.HTML&&(e.insertionMode=BL)}function Fie(e,t){t.tagName===S.HTML?yi(e,t):ph(e,t)}function ph(e,t){e.insertionMode=mo,e._processToken(t)}function Pie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.NOFRAMES&&cr(e,t)}function Bie(e,t){t.chars=ire.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Uie(e,t){e._insertCharacters(t),e.framesetOk=!1}function $ie(e,t){if(uo.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==rt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===rt.MATHML?uo.adjustTokenMathMLAttrs(t):r===rt.SVG&&(uo.adjustTokenSVGTagName(t),uo.adjustTokenSVGAttrs(t)),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function zie(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===rt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Hie=Hi(dre),Qx=/[#.]/g;function jie(e,t){const n=e||"",r={};let i=0,a,o;for(;i-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,u=o&&o.column;if(typeof s=="number"&&typeof u=="number"&&!Number.isNaN(s)&&!Number.isNaN(u)&&s-1 in n){const c=(n[s-2]||0)+u-1||0;if(c>-1&&c{const P=R;if(P.value.stitch&&W!==null&&B!==null)return W.children[B]=P.value.stitch,B}),e.type!=="root"&&f.type==="root"&&f.children.length===1)return f.children[0];return f;function m(){const R={nodeName:"template",tagName:"template",attrs:[],namespaceURI:up.html,childNodes:[]},B={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:up.html,childNodes:[]},W={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(B,R),i._pushTmplInsertionMode(hae),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),i._adoptNodes(B.childNodes[0],W),W}function g(){const R=i.treeAdapter.createDocument();if(i._bootstrap(R,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),R}function E(R){let B=-1;if(R)for(;++BWL(t,n,e)}const Iae=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Rae=Object.hasOwnProperty;class Nae{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Oae(t,n===!0);const a=i;for(;Rae.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Oae(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Iae,"").replace(/ /g,"-"))}const Dae={}.hasOwnProperty;function Hr(e,t){const n=typeof t=="string"&&Lae(e)&&e.type==="element"&&e.properties&&Dae.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}function Lae(e){return!!(e&&typeof e=="object"&&"type"in e)}function qL(e){const t=e&&e.type==="element"&&e.tagName.toLowerCase()||"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function T1(e){return"children"in e?KL(e):"value"in e?e.value:""}function Mae(e){return e.type==="text"?e.value:"children"in e?KL(e):""}function KL(e){let t=-1;const n=[];for(;++t{nk.reset(),Ui(n,"element",r=>{qL(r)&&r.properties&&!Hr(r,"id")&&(r.properties.id=t+nk.slug(T1(r)))})}}const YL=function(e){if(e==null)return rv;if(typeof e=="string")return Bae(e);if(typeof e=="object")return Pae(e);if(typeof e=="function")return XL(e);throw new Error("Expected function, string, or array as test")};function Pae(e){const t=[];let n=-1;for(;++n{Ui(g,"element",(E,b,T)=>{if(qL(E)&&Hr(E,"id")&&a(E,b,T))return o(E,b,T)})};function s(g){return g.children[n==="prepend"?"unshift":"push"](m(g,v1(!0,{},t),p(r,g))),[Cd]}function u(g,E,b){if(typeof E!="number"||!b)return;const T=m(g,v1(!0,{},t),p(r,g));let v=n==="before"?[T,g]:[g,T];if(i){const y=f(i,g);y&&!Array.isArray(y)&&y.type==="element"&&(y.children=v,v=[y])}return b.children.splice(E,1,...v),[Cd,E+v.length]}function c(g){return g.children=[m(g,v1(!0,{},t),g.children)],[Cd]}function p(g,E){const b=f(g,E);return Array.isArray(b)?b:[b]}function f(g,E){return typeof g=="function"?g(E):v1(!0,Array.isArray(g)?[]:{},g)}function m(g,E,b){return{type:"element",tagName:"a",properties:Object.assign({},E,{href:"#"+(g.properties||{}).id}),children:b}}}const zae=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Hae=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},ZL=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?ZL(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},rk=({value:e=""})=>{const t=zae(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},ik=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},jae=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Ui(r,"element",(i,a,o)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const u=Hae(o.children,a);if(u){const c=rk(u);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=ik(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&o&&Array.isArray(o.children)&&typeof a=="number"){const s=ZL(o.children,a,"",n);if(s){const u=rk(s);Object.keys(u).length>0&&(i.properties=ik(i.properties,u,t))}}})}},Gae=jae,Vae=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Ui(r,(i,a,o)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}},Wae=Vae,qae={}.hasOwnProperty,Kae=function(e,t,n){const r=C2(n||t),i=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,a=i??!0;return o(e);function o(s,u,c){const p=[];if(!r(s,u,c))return null;if(s.children){let g=-1;for(;++g0&&p.length===0)return null}const f={};let m;for(m in s)qae.call(s,m)&&(f[m]=m==="children"?p:s[m]);return f}};var Nb={exports:{}};(function(e,t){function n(r){let i=[],a;for(let o of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(o))i.push(parseInt(o,10));else if(a=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,u,c,p]=a;if(u&&p){u=parseInt(u),p=parseInt(p);const f=u]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}qa.displayName="c";qa.aliases=[];function qa(e){e.register(Mt),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Au.displayName="cpp";Au.aliases=[];function Au(e){e.register(qa),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}P2.displayName="arduino";P2.aliases=["ino"];function P2(e){e.register(Au),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}Op.displayName="bash";Op.aliases=["sh","shell"];function Op(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s>/g,function(oe,O){return"(?:"+me[+O]+")"})}function r(N,me,oe){return RegExp(n(N,me),oe||"")}function i(N,me){for(var oe=0;oe>/g,function(){return"(?:"+N+")"});return N.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(N){return"\\b(?:"+N.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),u=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),p=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,E=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),b=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,E]),T=/\[\s*(?:,\s*)*\]/.source,v=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,T]),y=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,m,T]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),A=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,b,T]),D={keyword:u,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,A]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,E]),lookbehind:!0,inside:D},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:D},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,g]),inside:D}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,b]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:D}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,E,g,A,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[E,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var W=R+"|"+k,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[W]),Q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),z=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,le=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,Q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[z,le]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[z]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[Q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var he=/:[^}\r\n]+/.source,de=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),fe=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[de,he]),Z=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[W]),2),V=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,he]);function ce(N,me){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[N]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[me,he]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[fe]),lookbehind:!0,greedy:!0,inside:ce(fe,de)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[V]),lookbehind:!0,greedy:!0,inside:ce(V,Z)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}fr.displayName="markup";fr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function fr(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Tl.displayName="css";Tl.aliases=[];function Tl(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}B2.displayName="diff";B2.aliases=[];function B2(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +?| +|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}U2.displayName="go";U2.aliases=[];function U2(e){e.register(Mt),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}$2.displayName="ini";$2.aliases=[];function $2(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}xu.displayName="java";xu.aliases=[];function xu(e){e.register(Mt),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}z2.displayName="regex";z2.aliases=[];function z2(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}dc.displayName="json";dc.aliases=["webmanifest"];function dc(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}H2.displayName="kotlin";H2.aliases=["kt","kts"];function H2(e){e.register(Mt),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}j2.displayName="less";j2.aliases=[];function j2(e){e.register(Tl),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Dp.displayName="lua";Dp.aliases=[];function Dp(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}G2.displayName="makefile";G2.aliases=[];function G2(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Lp.displayName="yaml";Lp.aliases=["yml"];function Lp(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}V2.displayName="markdown";V2.aliases=["md"];function V2(e){e.register(fr),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(u){s!==u&&(t.languages.markdown[s].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function u(c){if(!(!c||typeof c=="string"))for(var p=0,f=c.length;p]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}q2.displayName="perl";q2.aliases=[];function q2(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}kr.displayName="markup-templating";kr.aliases=[];function kr(e){e.register(fr),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,o){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(a,function(u){if(typeof o=="function"&&!o(u))return u;for(var c=s.length,p;r.code.indexOf(p=n(i,c))!==-1;)++c;return s[c]=u,p}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,o=Object.keys(r.tokenStack);function s(u){for(var c=0;c=o.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var f=o[a],m=r.tokenStack[f],g=typeof p=="string"?p:p.content,E=n(i,f),b=g.indexOf(E);if(b>-1){++a;var T=g.substring(0,b),v=new t.Token(i,t.tokenize(m,r.grammar),"language-"+i,m),y=g.substring(b+E.length),w=[];T&&w.push.apply(w,s([T])),w.push(v),y&&w.push.apply(w,s([y])),typeof p=="string"?u.splice.apply(u,[c,1].concat(w)):p.content=w}}else p.content&&s(p.content)}return u}s(r.tokens)}}})}(e)}ku.displayName="php";ku.aliases=[];function ku(e){e.register(kr),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",p)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}Mp.displayName="python";Mp.aliases=["py"];function Mp(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}K2.displayName="r";K2.aliases=[];function K2(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Iu.displayName="ruby";Iu.aliases=["rb"];function Iu(e){e.register(Mt),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}Y2.displayName="rust";Y2.aliases=[];function Y2(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}X2.displayName="sass";X2.aliases=[];function X2(e){e.register(Tl),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}Z2.displayName="scss";Z2.aliases=[];function Z2(e){e.register(Tl),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}pc.displayName="sql";pc.aliases=[];function pc(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}Q2.displayName="swift";Q2.aliases=[];function Q2(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}fc.displayName="typescript";fc.aliases=["ts"];function fc(e){e.register(xr),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}Fp.displayName="basic";Fp.aliases=[];function Fp(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Pp.displayName="vbnet";Pp.aliases=[];function Pp(e){e.register(Fp),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const ak=/[#.]/g;function Zae(e,t){const n=e||"",r={};let i=0,a,o;for(;i=48&&t<=57}function ooe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function soe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function lk(e){return soe(e)||QL(e)}const Yu=String.fromCharCode,loe=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function uoe(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,o="",s,u;t.position&&("start"in t.position||"indent"in t.position?(u=t.position.indent,s=t.position.start):s=t.position);let c=(s?s.line:0)||1,p=(s?s.column:0)||1,f=g(),m;for(i--;++i<=e.length;)if(m===10&&(p=(u?u[a]:0)||1),m=e.charCodeAt(i),m===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){o+=Yu(m),p++;continue}const v=i+1;let y=v,w=v,A;if(T===35){w=++y;const z=e.charCodeAt(w);z===88||z===120?(A="hexadecimal",w=++y):A="decimal"}else A="named";let D="",k="",R="";const B=A==="named"?lk:A==="decimal"?QL:ooe;for(w--;++w<=e.length;){const z=e.charCodeAt(w);if(!B(z))break;R+=Yu(z),A==="named"&&aoe.includes(R)&&(D=R,k=sp(R))}let W=e.charCodeAt(w)===59;if(W){w++;const z=A==="named"?sp(R):!1;z&&(D=R,k=z)}let P=1+w-v,Q="";if(!(!W&&t.nonTerminated===!1))if(!R)A!=="named"&&E(4,P);else if(A==="named"){if(W&&!k)E(5,1);else if(D!==R&&(w=y+D.length,P=1+w-y,W=!1),!W){const z=D?1:3;if(t.attribute){const le=e.charCodeAt(w);le===61?(E(z,P),k=""):lk(le)?k="":E(z,P)}else E(z,P)}Q=k}else{W||E(2,P);let z=Number.parseInt(R,A==="hexadecimal"?16:10);if(coe(z))E(7,P),Q=Yu(65533);else if(z in sk)E(6,P),Q=sk[z];else{let le="";doe(z)&&E(6,P),z>65535&&(z-=65536,le+=Yu(z>>>10|55296),z=56320|z&1023),Q=le+Yu(z)}}if(Q){b(),f=g(),i=w-1,p+=w-v+1,r.push(Q);const z=g();z.offset++,t.reference&&t.reference.call(t.referenceContext,Q,{start:f,end:z},e.slice(v-1,w)),f=z}else R=e.slice(v-1,w),o+=R,p+=R.length,i=w-1}else m===10&&(c++,a++,p=0),Number.isNaN(m)?b():(o+=Yu(m),p++);return r.join("");function g(){return{line:c,column:p,offset:i+((s?s.offset:0)||0)}}function E(T,v){let y;t.warning&&(y=g(),y.column+=v,y.offset+=v,t.warning.call(t.warningContext,loe[T],y,T))}function b(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:f,end:g()}),o="")}}function coe(e){return e>=55296&&e<=57343||e>1114111}function doe(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var poe=0,I0={},sr={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++poe}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(sr.util.type(t)){case"Object":if(i=sr.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=sr.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:I0,plaintext:I0,text:I0,txt:I0,extend:function(e,t){var n=sr.util.clone(sr.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||sr.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var u=r[e];return r[e]=a,sr.languages.DFS(sr.languages,function(c,p){p===u&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=sr.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],u=sr.util.type(s);u==="Object"&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):u==="Array"&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(sr.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=sr.tokenize(r.code,r.grammar),sr.hooks.run("after-tokenize",r),Dd.stringify(sr.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new foe;return hh(i,i.head,e),JL(e,i,t,i.head,0),goe(i)},hooks:{all:{},add:function(e,t){var n=sr.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=sr.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:Dd};function Dd(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function uk(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function JL(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var u=0;u=a.reach);v+=T.value.length,T=T.next){var y=T.value;if(t.length>e.length)return;if(!(y instanceof Dd)){var w=1,A;if(m){if(A=uk(b,v,e,f),!A||A.index>=e.length)break;var B=A.index,D=A.index+A[0].length,k=v;for(k+=T.value.length;B>=k;)T=T.next,k+=T.value.length;if(k-=T.value.length,v=k,T.value instanceof Dd)continue;for(var R=T;R!==t.tail&&(ka.reach&&(a.reach=z);var le=T.prev;P&&(le=hh(t,le,P),v+=P.length),hoe(t,le,w);var he=new Dd(o,p?sr.tokenize(W,p):W,g,W);if(T=hh(t,le,he),Q&&hh(t,T,Q),w>1){var de={cause:o+","+u,reach:z};JL(e,t,n,T.prev,v,de),a&&de.reach>a.reach&&(a.reach=de.reach)}}}}}}function foe(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function hh(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function hoe(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}av.displayName="abnf";av.aliases=[];function av(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}ov.displayName="actionscript";ov.aliases=[];function ov(e){e.register(xr),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}sv.displayName="ada";sv.aliases=[];function sv(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}lv.displayName="agda";lv.aliases=[];function lv(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}uv.displayName="al";uv.aliases=[];function uv(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}cv.displayName="antlr4";cv.aliases=["g4"];function cv(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}dv.displayName="apacheconf";dv.aliases=[];function dv(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}pv.displayName="apex";pv.aliases=[];function pv(e){e.register(Mt),e.register(pc),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(o){return RegExp(o.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}fv.displayName="apl";fv.aliases=[];function fv(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}hv.displayName="applescript";hv.aliases=[];function hv(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}gv.displayName="aql";gv.aliases=[];function gv(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}mv.displayName="arff";mv.aliases=[];function mv(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}bv.displayName="armasm";bv.aliases=["arm-asm"];function bv(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}Ev.displayName="arturo";Ev.aliases=["art"];function Ev(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}vv.displayName="asciidoc";vv.aliases=["adoc"];function vv(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var o={},s=0,u=a.length;s/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}_v.displayName="asm6502";_v.aliases=[];function _v(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}Tv.displayName="asmatmel";Tv.aliases=[];function Tv(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}Sv.displayName="autohotkey";Sv.aliases=[];function Sv(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}wv.displayName="autoit";wv.aliases=[];function wv(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}Av.displayName="avisynth";Av.aliases=["avs"];function Av(e){(function(t){function n(c,p){return c.replace(/<<(\d+)>>/g,function(f,m){return p[+m]})}function r(c,p,f){return RegExp(n(c,p),f||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[a,o,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}Cv.displayName="avro-idl";Cv.aliases=["avdl"];function Cv(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}xv.displayName="awk";xv.aliases=["gawk"];function xv(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}kv.displayName="batch";kv.aliases=[];function kv(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}Iv.displayName="bbcode";Iv.aliases=["shortcode"];function Iv(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Rv.displayName="bbj";Rv.aliases=[];function Rv(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}Nv.displayName="bicep";Nv.aliases=[];function Nv(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}Ov.displayName="birb";Ov.aliases=[];function Ov(e){e.register(Mt),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}Dv.displayName="bison";Dv.aliases=[];function Dv(e){e.register(qa),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Lv.displayName="bnf";Lv.aliases=["rbnf"];function Lv(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}Mv.displayName="bqn";Mv.aliases=[];function Mv(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Fv.displayName="brainfuck";Fv.aliases=[];function Fv(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Pv.displayName="brightscript";Pv.aliases=[];function Pv(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}Bv.displayName="bro";Bv.aliases=[];function Bv(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}Uv.displayName="bsl";Uv.aliases=["oscript"];function Uv(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}$v.displayName="cfscript";$v.aliases=["cfc"];function $v(e){e.register(Mt),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}zv.displayName="chaiscript";zv.aliases=[];function zv(e){e.register(Mt),e.register(Au),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Hv.displayName="cil";Hv.aliases=[];function Hv(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}jv.displayName="cilkc";jv.aliases=["cilk-c"];function jv(e){e.register(qa),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Gv.displayName="cilkcpp";Gv.aliases=["cilk","cilk-cpp"];function Gv(e){e.register(Au),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Vv.displayName="clojure";Vv.aliases=[];function Vv(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Wv.displayName="cmake";Wv.aliases=[];function Wv(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}qv.displayName="cobol";qv.aliases=[];function qv(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Kv.displayName="coffeescript";Kv.aliases=["coffee"];function Kv(e){e.register(xr),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}Yv.displayName="concurnas";Yv.aliases=["conc"];function Yv(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}Xv.displayName="csp";Xv.aliases=[];function Xv(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}Zv.displayName="cooklang";Zv.aliases=[];function Zv(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,o=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+o+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}Qv.displayName="coq";Qv.aliases=[];function Qv(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Jv.displayName="crystal";Jv.aliases=[];function Jv(e){e.register(Iu),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}ey.displayName="css-extras";ey.aliases=[];function ey(e){e.register(Tl),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}ty.displayName="csv";ty.aliases=[];function ty(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}ny.displayName="cue";ny.aliases=[];function ny(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}ry.displayName="cypher";ry.aliases=[];function ry(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}iy.displayName="d";iy.aliases=[];function iy(e){e.register(Mt),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}ay.displayName="dart";ay.aliases=[];function ay(e){e.register(Mt),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}oy.displayName="dataweave";oy.aliases=[];function oy(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}sy.displayName="dax";sy.aliases=[];function sy(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}ly.displayName="dhall";ly.aliases=[];function ly(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}uy.displayName="django";uy.aliases=["jinja2"];function uy(e){e.register(kr),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}cy.displayName="dns-zone-file";cy.aliases=["dns-zone"];function cy(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}dy.displayName="docker";dy.aliases=["dockerfile"];function dy(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),o={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,p){return c=c.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(c,p)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}py.displayName="dot";py.aliases=["gv"];function py(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,o){return RegExp(a.replace(//g,function(){return n}),o)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}fy.displayName="ebnf";fy.aliases=[];function fy(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}hy.displayName="editorconfig";hy.aliases=[];function hy(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}gy.displayName="eiffel";gy.aliases=[];function gy(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}my.displayName="ejs";my.aliases=["eta"];function my(e){e.register(xr),e.register(kr),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}by.displayName="elixir";by.aliases=[];function by(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}Ey.displayName="elm";Ey.aliases=[];function Ey(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}vy.displayName="etlua";vy.aliases=[];function vy(e){e.register(Dp),e.register(kr),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}yy.displayName="erb";yy.aliases=[];function yy(e){e.register(kr),e.register(Iu),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}_y.displayName="erlang";_y.aliases=[];function _y(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}Ty.displayName="excel-formula";Ty.aliases=["xls","xlsx"];function Ty(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}Sy.displayName="fsharp";Sy.aliases=[];function Sy(e){e.register(Mt),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}wy.displayName="factor";wy.aliases=[];function wy(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(c){return new RegExp("(^|\\s)(?:"+c.map(a).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(c){i[c].pattern=o(s[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=o(u),t.languages.factor=i})(e)}Ay.displayName="false";Ay.aliases=[];function Ay(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}xy.displayName="flow";xy.aliases=[];function xy(e){e.register(xr),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}ky.displayName="fortran";ky.aliases=[];function ky(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}Iy.displayName="ftl";Iy.aliases=[];function Iy(e){e.register(kr),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",o)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}Ry.displayName="gml";Ry.aliases=["gamemakerlanguage"];function Ry(e){e.register(Mt),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}Ny.displayName="gap";Ny.aliases=[];function Ny(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}Oy.displayName="gcode";Oy.aliases=[];function Oy(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}Dy.displayName="gdscript";Dy.aliases=[];function Dy(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}Ly.displayName="gedcom";Ly.aliases=[];function Ly(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}My.displayName="gettext";My.aliases=["po"];function My(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}Fy.displayName="gherkin";Fy.aliases=[];function Fy(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}Py.displayName="git";Py.aliases=[];function Py(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}By.displayName="glsl";By.aliases=[];function By(e){e.register(qa),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}Uy.displayName="gn";Uy.aliases=["gni"];function Uy(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}$y.displayName="linker-script";$y.aliases=["ld"];function $y(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}zy.displayName="go-module";zy.aliases=["go-mod"];function zy(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}Hy.displayName="gradle";Hy.aliases=[];function Hy(e){e.register(Mt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}jy.displayName="graphql";jy.aliases=[];function jy(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function o(T,v){v=v||0;for(var y=0;y0)){var g=s(/^\{$/,/^\}$/);if(g===-1)continue;for(var E=i;E=0&&u(b,"variable-input")}}}}})}Gy.displayName="groovy";Gy.aliases=[];function Gy(e){e.register(Mt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}Vy.displayName="textile";Vy.aliases=[];function Vy(e){e.register(fr),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,m){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),m||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=o.phrase.inside,u={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=s.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=s.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark}(e)}Wy.displayName="haml";Wy.aliases=[];function Wy(e){e.register(Iu),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,o=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}Bp.displayName="haskell";Bp.aliases=["hs"];function Bp(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Ky.displayName="haxe";Ky.aliases=[];function Ky(e){e.register(Mt),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}Yy.displayName="hcl";Yy.aliases=[];function Yy(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}Xy.displayName="hlsl";Xy.aliases=[];function Xy(e){e.register(qa),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}Zy.displayName="hoon";Zy.aliases=[];function Zy(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Qy.displayName="hpkp";Qy.aliases=[];function Qy(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Jy.displayName="hsts";Jy.aliases=[];function Jy(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e6.displayName="uri";e6.aliases=["url"];function e6(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}t6.displayName="http";t6.aliases=[];function t6(e){(function(t){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function o(p){var f=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var s;for(var u in i)if(i[u]){s=s||{};var c=a[u]?o(u):u;s[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}s&&t.languages.insertBefore("http","header",s)})(e)}n6.displayName="ichigojam";n6.aliases=[];function n6(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}r6.displayName="icon";r6.aliases=[];function r6(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}i6.displayName="icu-message-format";i6.aliases=[];function i6(e){(function(t){function n(u,c){return c<=0?/[]/.source:u.replace(//g,function(){return n(u,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},o=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}a6.displayName="idris";a6.aliases=["idr"];function a6(e){e.register(Bp),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}o6.displayName="ignore";o6.aliases=["gitignore","hgignore","npmignore"];function o6(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}s6.displayName="inform7";s6.aliases=[];function s6(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}l6.displayName="io";l6.aliases=[];function l6(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}gc.displayName="javadoclike";gc.aliases=[];function gc(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,o){var s="doc-comment",u=t.languages[a];if(u){var c=u[s];if(!c){var p={};p[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=t.languages.insertBefore(a,"comment",p),c=u[s]}if(c instanceof RegExp&&(c=u[s]={pattern:c}),Array.isArray(c))for(var f=0,m=c.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}d6.displayName="javadoc";d6.aliases=[];function d6(e){e.register(xu),e.register(gc),e.register(fr),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}p6.displayName="javastacktrace";p6.aliases=[];function p6(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}f6.displayName="jexl";f6.aliases=[];function f6(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}h6.displayName="jolie";h6.aliases=[];function h6(e){e.register(Mt),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}g6.displayName="jq";g6.aliases=[];function g6(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}m6.displayName="js-templates";m6.aliases=[];function m6(e){e.register(xr),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],o=i.pattern.source;function s(E,b){if(t.languages[E])return{pattern:RegExp("((?:"+b+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:E}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function u(E,b){return"___"+b.toUpperCase()+"_"+E+"___"}function c(E,b,T){var v={code:E,grammar:b,language:T};return t.hooks.run("before-tokenize",v),v.tokens=t.tokenize(v.code,v.grammar),t.hooks.run("after-tokenize",v),v.tokens}function p(E){var b={};b["interpolation-punctuation"]=a;var T=t.tokenize(E,b);if(T.length===3){var v=[1,1];v.push.apply(v,c(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,v)}return new t.Token("interpolation",T,i.alias,E)}function f(E,b,T){var v=t.tokenize(E,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),y=0,w={},A=v.map(function(B){if(typeof B=="string")return B;for(var W=B.content,P;E.indexOf(P=u(y++,T))!==-1;);return w[P]=W,P}).join(""),D=c(A,b,T),k=Object.keys(w);y=0;function R(B){for(var W=0;W=k.length)return;var P=B[W];if(typeof P=="string"||typeof P.content=="string"){var Q=k[y],z=typeof P=="string"?P:P.content,le=z.indexOf(Q);if(le!==-1){++y;var he=z.substring(0,le),de=p(w[Q]),fe=z.substring(le+Q.length),Z=[];if(he&&Z.push(he),Z.push(de),fe){var V=[fe];R(V),Z.push.apply(Z,V)}typeof P=="string"?(B.splice.apply(B,[W,1].concat(Z)),W+=Z.length-1):P.content=Z}}else{var ce=P.content;Array.isArray(ce)?R(ce):R([ce])}}}return R(D),new t.Token(T,D,"language-"+T,E)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(E){if(!(E.language in m))return;function b(T){for(var v=0,y=T.length;v\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}E6.displayName="n4js";E6.aliases=["n4jsd"];function E6(e){e.register(xr),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}v6.displayName="js-extras";v6.aliases=[];function v6(e){e.register(xr),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(u,c){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}S6.displayName="julia";S6.aliases=[];function S6(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}w6.displayName="keepalived";w6.aliases=[];function w6(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}A6.displayName="keyman";A6.aliases=[];function A6(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}C6.displayName="kumir";C6.aliases=["kum"];function C6(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}x6.displayName="kusto";x6.aliases=[];function x6(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}k6.displayName="latex";k6.aliases=["context","tex"];function k6(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}I6.displayName="latte";I6.aliases=[];function I6(e){e.register(Mt),e.register(kr),e.register(ku),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}Up.displayName="scheme";Up.aliases=[];function Up(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}R6.displayName="lilypond";R6.aliases=["ly"];function R6(e){e.register(Up),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}N6.displayName="liquid";N6.aliases=[];function N6(e){e.register(kr),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var o=a[1];if(o==="raw"&&!r)return r=!0,!0;if(o==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}O6.displayName="lisp";O6.aliases=["elisp","emacs","emacs-lisp"];function O6(e){(function(t){function n(E){return RegExp(/(\()/.source+"(?:"+E+")"+/(?=[\s\)])/.source)}function r(E){return RegExp(/([\s([])/.source+"(?:"+E+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,o="(\\()",s="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(o+c+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:f},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=g,p.defun.inside.arguments=t.util.clone(g),p.defun.inside.arguments.inside.sublist=g,t.languages.lisp=p,t.languages.elisp=p,t.languages.emacs=p,t.languages["emacs-lisp"]=p})(e)}D6.displayName="livescript";D6.aliases=[];function D6(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}L6.displayName="llvm";L6.aliases=[];function L6(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}M6.displayName="log";M6.aliases=[];function M6(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}F6.displayName="lolcode";F6.aliases=[];function F6(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}P6.displayName="magma";P6.aliases=[];function P6(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}J2.displayName="mata";J2.aliases=[];function J2(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}B6.displayName="matlab";B6.aliases=[];function B6(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}U6.displayName="maxscript";U6.aliases=[];function U6(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}$6.displayName="mel";$6.aliases=[];function $6(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}z6.displayName="mermaid";z6.aliases=[];function z6(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}H6.displayName="metafont";H6.aliases=[];function H6(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}j6.displayName="mizar";j6.aliases=[];function j6(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}G6.displayName="mongodb";G6.aliases=[];function G6(e){e.register(xr),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}V6.displayName="monkey";V6.aliases=[];function V6(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}W6.displayName="moonscript";W6.aliases=["moon"];function W6(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}q6.displayName="n1ql";q6.aliases=[];function q6(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}K6.displayName="nand2tetris-hdl";K6.aliases=[];function K6(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}Y6.displayName="naniscript";Y6.aliases=["nani"];function Y6(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(o){var s=o.tokens;s.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=a(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(o){for(var s="[]{}",u=[],c=0;c=&|$!]/}}Z6.displayName="neon";Z6.aliases=[];function Z6(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}Q6.displayName="nevod";Q6.aliases=[];function Q6(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}J6.displayName="nginx";J6.aliases=[];function J6(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}e8.displayName="nim";e8.aliases=[];function e8(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}t8.displayName="nix";t8.aliases=[];function t8(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}n8.displayName="nsis";n8.aliases=[];function n8(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}r8.displayName="ocaml";r8.aliases=[];function r8(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}i8.displayName="odin";i8.aliases=[];function i8(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}a8.displayName="opencl";a8.aliases=[];function a8(e){e.register(qa),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}o8.displayName="openqasm";o8.aliases=["qasm"];function o8(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}s8.displayName="oz";s8.aliases=[];function s8(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}l8.displayName="parigp";l8.aliases=[];function l8(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}u8.displayName="parser";u8.aliases=[];function u8(e){e.register(fr),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}c8.displayName="pascal";c8.aliases=["objectpascal"];function c8(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}d8.displayName="pascaligo";d8.aliases=[];function d8(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,s){return o[s]=i[s],o},{});i["class-name"].forEach(function(o){o.inside=a})})(e)}p8.displayName="psl";p8.aliases=[];function p8(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}f8.displayName="pcaxis";f8.aliases=["px"];function f8(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}h8.displayName="peoplecode";h8.aliases=["pcode"];function h8(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}g8.displayName="phpdoc";g8.aliases=[];function g8(e){e.register(gc),e.register(ku),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}m8.displayName="php-extras";m8.aliases=[];function m8(e){e.register(ku),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}b8.displayName="plant-uml";b8.aliases=["plantuml"];function b8(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,u=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,p=u+"(?:"+a+s+"|"+o+a+"(?:"+s+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+p+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}E8.displayName="plsql";E8.aliases=[];function E8(e){e.register(pc),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}v8.displayName="powerquery";v8.aliases=["mscript","pq"];function v8(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}y8.displayName="powershell";y8.aliases=[];function y8(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}_8.displayName="processing";_8.aliases=[];function _8(e){e.register(Mt),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}T8.displayName="prolog";T8.aliases=[];function T8(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}S8.displayName="promql";S8.aliases=[];function S8(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}w8.displayName="properties";w8.aliases=[];function w8(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}A8.displayName="protobuf";A8.aliases=[];function A8(e){e.register(Mt),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}C8.displayName="stylus";C8.aliases=[];function C8(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}x8.displayName="twig";x8.aliases=[];function x8(e){e.register(kr),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}k8.displayName="pug";k8.aliases=[];function k8(e){e.register(xr),e.register(fr),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,o=r.length;a",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}I8.displayName="puppet";I8.aliases=[];function I8(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}R8.displayName="pure";R8.aliases=[];function R8(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var o={};o["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}N8.displayName="purebasic";N8.aliases=["pbfasm"];function N8(e){e.register(Mt),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}O8.displayName="purescript";O8.aliases=["purs"];function O8(e){e.register(Bp),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}D8.displayName="qsharp";D8.aliases=["qs"];function D8(e){e.register(Mt),function(t){function n(g,E){return g.replace(/<<(\d+)>>/g,function(b,T){return"(?:"+E[+T]+")"})}function r(g,E,b){return RegExp(n(g,E),b||"")}function i(g,E){for(var b=0;b>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(o(a.type+" "+a.other)),u=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:s,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:p}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}L8.displayName="q";L8.aliases=[];function L8(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}M8.displayName="qml";M8.aliases=[];function M8(e){e.register(xr),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}F8.displayName="qore";F8.aliases=[];function F8(e){e.register(Mt),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}P8.displayName="racket";P8.aliases=["rkt"];function P8(e){e.register(Up),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}B8.displayName="cshtml";B8.aliases=["razor"];function B8(e){e.register(Cu),e.register(fr),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(y,w){for(var A=0;A/g,function(){return"(?:"+y+")"});return y.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),o=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),u=i(/<(?:[^<>'"@/]||)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+u+")?"+a+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,p=/@(?![\w()])/.source+"|"+c,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+p+`)[^"'@]*)+["'])`,m=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+m+/\s*\/?>/.source,E=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function o(c,p){return c=c.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(c,p)}a=o(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(s).join(""):""},u=function(c){for(var p=[],f=0;f0&&p[p.length-1].tagName===s(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:s(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:g=!0),(g||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var E=s(m);f0&&(typeof c[f-1]=="string"||c[f-1].type==="plain-text")&&(E=s(c[f-1])+E,c.splice(f-1,1),f--),c[f]=new t.Token("plain-text",E,null,E)}m.content&&typeof m.content!="string"&&u(m.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})}(e)}U8.displayName="tsx";U8.aliases=[];function U8(e){e.register(em),e.register(fc),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}$8.displayName="reason";$8.aliases=[];function $8(e){e.register(Mt),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}z8.displayName="rego";z8.aliases=[];function z8(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}H8.displayName="renpy";H8.aliases=["rpy"];function H8(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}j8.displayName="rescript";j8.aliases=["res"];function j8(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}G8.displayName="rest";G8.aliases=[];function G8(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}V8.displayName="rip";V8.aliases=[];function V8(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}W8.displayName="roboconf";W8.aliases=[];function W8(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}q8.displayName="robotframework";q8.aliases=["robot"];function q8(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in c)p[f]=c[f];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=r,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:p}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":o,documentation:a,property:s}),keywords:i("Keywords",{"keyword-name":o,documentation:a,property:s}),tasks:i("Tasks",{"task-name":o,documentation:a,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}K8.displayName="sas";K8.aliases=[];function K8(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},E={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},v=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,y={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return v}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return v}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:f,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:r,"numeric-constant":i,punctuation:p,string:c}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":b,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:w,"submit-statement":T,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:w,"submit-statement":T,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":y,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:s,keyword:w,function:f,format:g,altformat:E,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":o,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":y,comment:u,function:f,format:g,altformat:E,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:s,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(e)}Y8.displayName="shell-session";Y8.aliases=["sh-session","shellsession"];function Y8(e){e.register(Op),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}X8.displayName="smali";X8.aliases=[];function X8(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}Z8.displayName="smalltalk";Z8.aliases=[];function Z8(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}Q8.displayName="smarty";Q8.aliases=[];function Q8(e){e.register(kr),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",o="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(u){return u===o&&(s=!1),s?!1:(u===a&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}J8.displayName="sml";J8.aliases=["smlnj"];function J8(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}e_.displayName="solidity";e_.aliases=["sol"];function e_(e){e.register(Mt),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}t_.displayName="solution-file";t_.aliases=["sln"];function t_(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}n_.displayName="soy";n_.aliases=[];function n_(e){e.register(kr),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",s="{/literal}",u=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(c){return c===s&&(u=!1),u?!1:(c===o&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}tm.displayName="turtle";tm.aliases=["trig"];function tm(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}r_.displayName="sparql";r_.aliases=["rq"];function r_(e){e.register(tm),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}i_.displayName="splunk-spl";i_.aliases=[];function i_(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}a_.displayName="sqf";a_.aliases=[];function a_(e){e.register(Mt),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}o_.displayName="squirrel";o_.aliases=[];function o_(e){e.register(Mt),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}s_.displayName="stan";s_.aliases=[];function s_(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}l_.displayName="stata";l_.aliases=[];function l_(e){e.register(xu),e.register(J2),e.register(Mp),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}u_.displayName="iecst";u_.aliases=[];function u_(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}c_.displayName="supercollider";c_.aliases=["sclang"];function c_(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}d_.displayName="systemd";d_.aliases=[];function d_(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}$p.displayName="t4-templating";$p.aliases=[];function $p(e){(function(t){function n(i,a,o){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:o}}}}function r(i){var a=t.languages[i],o="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,o),"class-feature":n("\\+",a,o),standard:n("",a,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}p_.displayName="t4-cs";p_.aliases=["t4"];function p_(e){e.register(Cu),e.register($p),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}f_.displayName="t4-vb";f_.aliases=[];function f_(e){e.register($p),e.register(Pp),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}h_.displayName="tap";h_.aliases=[];function h_(e){e.register(Lp),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}g_.displayName="tcl";g_.aliases=[];function g_(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}m_.displayName="tt2";m_.aliases=[];function m_(e){e.register(Mt),e.register(kr),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}b_.displayName="toml";b_.aliases=[];function b_(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}E_.displayName="tremor";E_.aliases=["trickle","troy"];function E_(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}v_.displayName="typoscript";v_.aliases=["tsconfig"];function v_(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}y_.displayName="unrealscript";y_.aliases=["uc","uscript"];function y_(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}__.displayName="uorazor";__.aliases=[];function __(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}T_.displayName="v";T_.aliases=[];function T_(e){e.register(Mt),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}S_.displayName="vala";S_.aliases=[];function S_(e){e.register(Mt),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}w_.displayName="velocity";w_.aliases=[];function w_(e){e.register(fr),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}A_.displayName="verilog";A_.aliases=[];function A_(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}C_.displayName="vhdl";C_.aliases=[];function C_(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}x_.displayName="vim";x_.aliases=[];function x_(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}k_.displayName="visual-basic";k_.aliases=["vb","vba"];function k_(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}I_.displayName="warpscript";I_.aliases=[];function I_(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}R_.displayName="wasm";R_.aliases=[];function R_(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}N_.displayName="web-idl";N_.aliases=["webidl"];function N_(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}O_.displayName="wgsl";O_.aliases=[];function O_(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}D_.displayName="wiki";D_.aliases=[];function D_(e){e.register(fr),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}L_.displayName="wolfram";L_.aliases=["mathematica","nb","wl"];function L_(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}M_.displayName="wren";M_.aliases=[];function M_(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}F_.displayName="xeora";F_.aliases=["xeoracube"];function F_(e){e.register(fr),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}P_.displayName="xml-doc";P_.aliases=[];function P_(e){e.register(fr),function(t){function n(o,s){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}B_.displayName="xojo";B_.aliases=[];function B_(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}U_.displayName="xquery";U_.aliases=[];function U_(e){e.register(fr),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],o=0;o0&&a[a.length-1].tagName===n(s.content[0].content[1])&&a.pop():s.content[s.content.length-1].content==="/>"||a.push({tagName:n(s.content[0].content[1]),openedBraces:0}):a.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[o+1]||i[o+1].type!=="punctuation"||i[o+1].content!=="{")&&(!i[o-1]||i[o-1].type!=="plain-text"||i[o-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?a[a.length-1].openedBraces--:s.type!=="comment"&&(u=!0)),(u||typeof s=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var c=n(s);o0&&(typeof i[o-1]=="string"||i[o-1].type==="plain-text")&&(c=n(i[o-1])+c,i.splice(o-1,1),o--),/^\s+$/.test(c)?i[o]=c:i[o]=new t.Token("plain-text",c,null,c)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}$_.displayName="yang";$_.aliases=[];function $_(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}z_.displayName="zig";z_.aliases=[];function z_(e){(function(t){function n(c){return function(){return c}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),u="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}L.register(fr);L.register(Tl);L.register(Mt);L.register(z2);L.register(xr);L.register(iv);L.register(av);L.register(ov);L.register(sv);L.register(lv);L.register(uv);L.register(cv);L.register(dv);L.register(pc);L.register(pv);L.register(fv);L.register(hv);L.register(gv);L.register(qa);L.register(Au);L.register(P2);L.register(mv);L.register(bv);L.register(Op);L.register(Lp);L.register(V2);L.register(Ev);L.register(vv);L.register(Cu);L.register(yv);L.register(_v);L.register(Tv);L.register(Sv);L.register(wv);L.register(Av);L.register(Cv);L.register(xv);L.register(Fp);L.register(kv);L.register(Iv);L.register(Rv);L.register(Nv);L.register(Ov);L.register(Dv);L.register(Lv);L.register(Mv);L.register(Fv);L.register(Pv);L.register(Bv);L.register(Uv);L.register($v);L.register(zv);L.register(Hv);L.register(jv);L.register(Gv);L.register(Vv);L.register(Wv);L.register(qv);L.register(Kv);L.register(Yv);L.register(Xv);L.register(Zv);L.register(Qv);L.register(Iu);L.register(Jv);L.register(ey);L.register(ty);L.register(ny);L.register(ry);L.register(iy);L.register(ay);L.register(oy);L.register(sy);L.register(ly);L.register(B2);L.register(kr);L.register(uy);L.register(cy);L.register(dy);L.register(py);L.register(fy);L.register(hy);L.register(gy);L.register(my);L.register(by);L.register(Ey);L.register(Dp);L.register(vy);L.register(yy);L.register(_y);L.register(Ty);L.register(Sy);L.register(wy);L.register(Ay);L.register(Cy);L.register(xy);L.register(ky);L.register(Iy);L.register(Ry);L.register(Ny);L.register(Oy);L.register(Dy);L.register(Ly);L.register(My);L.register(Fy);L.register(Py);L.register(By);L.register(Uy);L.register($y);L.register(U2);L.register(zy);L.register(Hy);L.register(jy);L.register(Gy);L.register(j2);L.register(Z2);L.register(Vy);L.register(Wy);L.register(qy);L.register(Bp);L.register(Ky);L.register(Yy);L.register(Xy);L.register(Zy);L.register(Qy);L.register(Jy);L.register(dc);L.register(e6);L.register(t6);L.register(n6);L.register(r6);L.register(i6);L.register(a6);L.register(o6);L.register(s6);L.register($2);L.register(l6);L.register(u6);L.register(xu);L.register(ku);L.register(gc);L.register(c6);L.register(d6);L.register(p6);L.register(f6);L.register(h6);L.register(g6);L.register(m6);L.register(fc);L.register(b6);L.register(E6);L.register(v6);L.register(y6);L.register(_6);L.register(T6);L.register(S6);L.register(w6);L.register(A6);L.register(H2);L.register(C6);L.register(x6);L.register(k6);L.register(I6);L.register(Up);L.register(R6);L.register(N6);L.register(O6);L.register(D6);L.register(L6);L.register(M6);L.register(F6);L.register(P6);L.register(G2);L.register(J2);L.register(B6);L.register(U6);L.register($6);L.register(z6);L.register(H6);L.register(j6);L.register(G6);L.register(V6);L.register(W6);L.register(q6);L.register(K6);L.register(Y6);L.register(X6);L.register(Z6);L.register(Q6);L.register(J6);L.register(e8);L.register(t8);L.register(n8);L.register(W2);L.register(r8);L.register(i8);L.register(a8);L.register(o8);L.register(s8);L.register(l8);L.register(u8);L.register(c8);L.register(d8);L.register(p8);L.register(f8);L.register(h8);L.register(q2);L.register(g8);L.register(m8);L.register(b8);L.register(E8);L.register(v8);L.register(y8);L.register(_8);L.register(T8);L.register(S8);L.register(w8);L.register(A8);L.register(C8);L.register(x8);L.register(k8);L.register(I8);L.register(R8);L.register(N8);L.register(O8);L.register(Mp);L.register(D8);L.register(L8);L.register(M8);L.register(F8);L.register(K2);L.register(P8);L.register(B8);L.register(em);L.register(U8);L.register($8);L.register(z8);L.register(H8);L.register(j8);L.register(G8);L.register(V8);L.register(W8);L.register(q8);L.register(Y2);L.register(K8);L.register(X2);L.register(Y8);L.register(X8);L.register(Z8);L.register(Q8);L.register(J8);L.register(e_);L.register(t_);L.register(n_);L.register(tm);L.register(r_);L.register(i_);L.register(a_);L.register(o_);L.register(s_);L.register(l_);L.register(u_);L.register(c_);L.register(Q2);L.register(d_);L.register($p);L.register(p_);L.register(Pp);L.register(f_);L.register(h_);L.register(g_);L.register(m_);L.register(b_);L.register(E_);L.register(v_);L.register(y_);L.register(__);L.register(T_);L.register(S_);L.register(w_);L.register(A_);L.register(C_);L.register(x_);L.register(k_);L.register(I_);L.register(R_);L.register(N_);L.register(O_);L.register(D_);L.register(L_);L.register(M_);L.register(F_);L.register(P_);L.register(B_);L.register(U_);L.register($_);L.register(z_);function Mb(){Mb=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,o){var s=new RegExp(i,a);return t.set(s,o||t.get(i)),dg(s,n.prototype)}function r(i,a){var o=t.get(a);return Object.keys(o).reduce(function(s,u){return s[u]=i[o[u]],s},Object.create(null))}return Soe(n,RegExp),n.prototype.exec=function(i){var a=e.exec.call(this,i);return a&&(a.groups=r(a,this)),a},n.prototype[Symbol.replace]=function(i,a){if(typeof a=="string"){var o=t.get(this);return e[Symbol.replace].call(this,i,a.replace(/\$<([^>]+)>/g,function(u,c){return"$"+o[c]}))}if(typeof a=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,s)),a.apply(this,u)})}return e[Symbol.replace].call(this,i,a)},Mb.apply(this,arguments)}function Soe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dg(e,t)}function dg(e,t){return dg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},dg(e,t)}function ck(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var woe=function(e){return function(t){return t===void 0&&(t={}),function(r){Ui(r,"element",n)};function n(r,i,a){var o,s;if(a&&a.tagName==="pre"&&r.tagName==="code"){var u=(r==null||(o=r.data)==null?void 0:o.meta)||(r==null||(s=r.properties)==null?void 0:s.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[],r.properties.className.push("code-highlight");var c,p,f=function(A){for(var D,k=D3(A.properties.className);!(D=k()).done;){var R=D.value;if(R.slice(0,9)==="language-")return R.slice(9).toLowerCase()}return null}(r);if(f)try{var m;m=f!=null&&f.includes("diff-")?f.split("-")[1]:f,c=e.highlight(T1(r),m),a.properties.className=(a.properties.className||[]).concat("language-"+m)}catch(A){if(!t.ignoreMissing||!/Unknown language/.test(A.message))throw A;c=r}else c=r;c.children=(p=1,function A(D){return D.reduce(function(k,R){if(R.type==="text"){var B=R.value,W=(B.match(/\n/g)||"").length;if(W===0)R.position={start:{line:p,column:1},end:{line:p,column:1}},k.push(R);else for(var P,Q=B.split(` +`),z=D3(Q.entries());!(P=z()).done;){var le=P.value,he=le[0],de=le[1];k.push({type:"text",value:he===Q.length-1?de:de+` +`,position:{start:{line:p+he,column:1},end:{line:p+he,column:1}}})}return p+=W,k}if(Object.prototype.hasOwnProperty.call(R,"children")){var fe=p;return R.children=A(R.children),k.push(R),R.position={start:{line:fe,column:1},end:{line:p,column:1}},k}return k.push(R),k},[])})(c.children),c.position=c.children.length>0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var g,E=function(A){var D=/{([\d,-]+)}/,k=A.split(",").map(function(W){return W.trim()}).join();if(D.test(k)){var R=D.exec(k)[1],B=Xae(R);return function(W){return B.includes(W+1)}}return function(){return!1}}(u),b=function(A){var D=Mb(/showLineNumbers=([0-9]+)/i,{lines:1});if(D.test(A)){var k=D.exec(A);return Number(k.groups.lines)}return 1}(u),T=function(A){for(var D=new Array(A),k=0;k=D+1});k.children=R.children,!u.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some(function(B){return u.toLowerCase().includes(B)})||(k.properties.line=[(D+b).toString()],k.properties.className.push("line-number")),E(D)&&k.properties.className.push("highlight-line"),(f==="diff"||f!=null&&f.includes("diff-"))&&T1(k).substring(0,1)==="-"?k.properties.className.push("deleted"):(f==="diff"||f!=null&&f.includes("diff-"))&&T1(k).substring(0,1)==="+"&&k.properties.className.push("inserted")},w=D3(T.entries());!(g=w()).done;)y();T.length>0&&T1(T[T.length-1]).trim()===""&&T.pop(),r.children=T}}}},Aoe=woe(L);const nM="֑-߿יִ-﷽ﹰ-ﻼ",rM="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",Coe=new RegExp("^[^"+rM+"]*["+nM+"]"),xoe=new RegExp("^[^"+nM+"]*["+rM+"]");function koe(e){const t=String(e||"");return Coe.test(t)?"rtl":xoe.test(t)?"ltr":"neutral"}function Ioe(e,t){const n=e.schema,r=e.language,i=e.direction,a=e.editableOrEditingHost;let o;if(t.type==="element"&&t.properties){const c=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",f=dk(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=yl),f==="rtl"?o=f:f==="ltr"||f!=="auto"&&t.tagName==="html"||f!=="auto"&&t.tagName==="input"&&p==="tel"?o="ltr":(f==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?o=L3(T1(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?o=t.properties.value?L3(t.properties.value):"ltr":Ui(t,u)),o&&(e.direction=o)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return s;function s(){e.schema=n,e.language=r,e.direction=i,e.editableOrEditingHost=a}function u(c){if(c.type==="text")return o=L3(c.value),o?Ab:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||dk(c)))return Cd}}function L3(e){const t=koe(e);return t==="neutral"?void 0:t}function dk(e){const t=e.type==="element"&&e.properties&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}const Roe=F2("operator",{unknown:Uoe,invalid:Ooe,handlers:{"=":Doe,"~=":Loe,"|=":Moe,"^=":Foe,"$=":Poe,"*=":Boe}});function Noe(e,t,n){const r=e.attrs;let i=-1;for(;++i=fk&&e.charCodeAt(t)<=Woe;)c=c*10+(e.charCodeAt(t)-fk),t++;return t===u?null:c}function s(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?hk.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function gk(e){return Yoe(qoe(e))}const Xoe=gk.default||gk,Zoe=F2("name",{unknown:Tse,invalid:_se,handlers:{any:Fb,"any-link":Qoe,blank:Joe,checked:ese,dir:tse,disabled:aM,empty:nse,enabled:rse,"first-child":ise,"first-of-type":ase,has:ose,lang:sse,"last-child":lse,"last-of-type":use,matches:Fb,not:cse,"nth-child":dse,"nth-last-child":pse,"nth-of-type":hse,"nth-last-of-type":fse,"only-child":gse,"only-of-type":mse,optional:bse,"read-only":Ese,"read-write":oM,required:sM,root:vse,scope:yse}});iM.needsIndex=["any","first-child","first-of-type","last-child","last-of-type","matches","not","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];function iM(e,t,n,r,i){const a=e.pseudos;let o=-1;for(;++o0}function sse(e,t,n,r,i){return i.language!==""&&i.language!==void 0&&Goe(i.language,lp(e.value)).length>0}function lse(e,t,n,r,i){return To(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function use(e,t,n,r,i){return To(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function Fb(e,t,n,r,i){const a={...i,found:!1,shallow:!1,one:!0,scopeElements:[t],results:[],rootQuery:H_(e.value)};return j_(a,t),a.results[0]===t}function cse(e,t,n,r,i){return!Fb(e,t,n,r,i)}function dse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function pse(e,t,n,r,i){const a=nm(e);return To(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function fse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function hse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function gse(e,t,n,r,i){return To(i,e),i.elementCount===1}function mse(e,t,n,r,i){return To(i,e),i.typeCount===1}function bse(e,t){return!sM(e,t)}function Ese(e,t,n,r,i){return!oM(e,t,n,r,i)}function oM(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Hr(t,"readOnly")&&!Hr(t,"disabled"):!!i.editableOrEditingHost}function sM(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Hr(t,"required")}function vse(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function yse(e,t,n,r,i){return i.scopeElements.includes(t)}function _se(){throw new Error("Invalid pseudo-selector")}function Tse(e){throw e.name?new Error("Unknown pseudo-selector `"+e.name+"`"):new Error("Unexpected pseudo-element or empty pseudo-class")}function lM(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";M3(a,p,c)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.rule.nestingOperator===null?M3(a,"descendant",s):s.rule.nestingOperator==="~"&&M3(a,"generalSibling",s)}return a}function gh(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:wse}function M3(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function mk(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}var cM={},G_={},V_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o==="-"||o==="_"}e.isIdentStart=t;function n(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||o==="-"||o==="_"}e.isIdent=n;function r(o){return o>="a"&&o<="f"||o>="A"&&o<="F"||o>="0"&&o<="9"}e.isHex=r;function i(o){for(var s=o.length,u="",c=0;c="A"&&p<="Z"||p>="a"&&p<="z"||c!==0&&p>="0"&&p<="9")u+=p;else{var f=p.charCodeAt(0);if((f&63488)===55296){var m=o.charCodeAt(c++);if((f&64512)!==55296||(m&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");f=((f&1023)<<10)+(m&1023)+65536}u+="\\"+f.toString(16)+" "}c++}return u}e.escapeIdentifier=i;function a(o){for(var s=o.length,u="",c=0,p;c":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},e.strReplacementsRev={"\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f","\v":"\\v"},e.singleQuoteEscapeChars={n:` +`,r:"\r",t:" ",f:"\f","\\":"\\","'":"'"},e.doubleQuotesEscapeChars={n:` +`,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'}})(V_);Object.defineProperty(G_,"__esModule",{value:!0});var Ia=V_;function xse(e,t,n,r,i,a){var o=e.length,s="";function u(b,T){var v="";for(t++,s=e.charAt(t);t=o)throw Error("Expected symbol but end of file reached.");if(s=e.charAt(t),Ia.identSpecialChars[s])b+=s;else if(Ia.isHex(s)){var T=s;for(t++,s=e.charAt(t);Ia.isHex(s);)T+=s,t++,s=e.charAt(t);s===" "&&(t++,s=e.charAt(t)),b+=String.fromCharCode(parseInt(T,16));continue}else b+=s}else return b;t++,s=e.charAt(t)}return b}function p(){s=e.charAt(t);for(var b=!1;s===" "||s===" "||s===` +`||s==="\r"||s==="\f";)b=!0,t++,s=e.charAt(t);return b}function f(){var b=m();if(t=o||s===","||s===")"));)if(i[s]){var y=s;if(t++,p(),T=E(),!T)throw Error('Rule expected after "'+y+'".');T.nestingOperator=y}else T=E(),T&&(T.nestingOperator=null);return b}function E(){for(var b=null;t=o)throw Error('Expected "=" but end of file reached.');if(s!=="=")throw Error('Expected "=" but "'+s+'" found.');T.operator=v+"=",t++,p();var y="";if(T.valueType="string",s==='"')y=u('"',Ia.doubleQuotesEscapeChars);else if(s==="'")y=u("'",Ia.singleQuoteEscapeChars);else if(a&&s==="$")t++,y=c(),T.valueType="substitute";else{for(;t=o)throw Error('Expected "]" but end of file reached.');if(s!=="]")throw Error('Expected "]" but "'+s+'" found.');t++,T.value=y}b=b||{},(b.attrs=b.attrs||[]).push(T)}else if(s===":"){t++;var w=c(),A={name:w};if(s==="("){t++;var D="";if(p(),n[w]==="selector")A.valueType="selector",D=m();else{if(A.valueType=n[w]||"string",s==='"')D=u('"',Ia.doubleQuotesEscapeChars);else if(s==="'")D=u("'",Ia.singleQuoteEscapeChars);else if(a&&s==="$")t++,D=c(),A.valueType="substitute";else{for(;t=o)throw Error('Expected ")" but end of file reached.');if(s!==")")throw Error('Expected ")" but "'+s+'" found.');t++,A.value=D}b=b||{},(b.pseudos=b.pseudos||[]).push(A)}else break;return b}return f()}G_.parseCssSelector=xse;var W_={};Object.defineProperty(W_,"__esModule",{value:!0});var ki=V_;function mh(e){var t="";switch(e.type){case"ruleSet":for(var n=e.rule,r=[];n;)n.nestingOperator&&r.push(n.nestingOperator),r.push(mh(n)),n=n.rule;t=r.join(" ");break;case"selectors":t=e.selectors.map(mh).join(", ");break;case"rule":e.tagName&&(e.tagName==="*"?t="*":t=ki.escapeIdentifier(e.tagName)),e.id&&(t+="#"+ki.escapeIdentifier(e.id)),e.classNames&&(t+=e.classNames.map(function(i){return"."+ki.escapeIdentifier(i)}).join("")),e.attrs&&(t+=e.attrs.map(function(i){return"operator"in i?i.valueType==="substitute"?"["+ki.escapeIdentifier(i.name)+i.operator+"$"+i.value+"]":"["+ki.escapeIdentifier(i.name)+i.operator+ki.escapeStr(i.value)+"]":"["+ki.escapeIdentifier(i.name)+"]"}).join("")),e.pseudos&&(t+=e.pseudos.map(function(i){return i.valueType?i.valueType==="selector"?":"+ki.escapeIdentifier(i.name)+"("+mh(i.value)+")":i.valueType==="substitute"?":"+ki.escapeIdentifier(i.name)+"($"+i.value+")":i.valueType==="numeric"?":"+ki.escapeIdentifier(i.name)+"("+i.value+")":":"+ki.escapeIdentifier(i.name)+"("+ki.escapeIdentifier(i.value)+")":":"+ki.escapeIdentifier(i.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return t}W_.renderEntity=mh;Object.defineProperty(cM,"__esModule",{value:!0});var kse=G_,Ise=W_,Rse=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var t=[],n=0;n","+","~");function Ose(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return rm.parse(e)}function Dse(e,t,n){const r=Lse(e,t,n);return j_(r,t||void 0),r.results}function Lse(e,t,n){return{rootQuery:H_(Ose(e)),results:[],scopeElements:t?t.type==="root"?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:n==="svg"?yl:Tu,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}const dM=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=dM(n.children))}),t),Mse=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Dse(t,r);i&&i.length>0&&Ui(r,i,(a,o,s)=>{n(a,o,s)});return}Ui(r,(i,a,o)=>{n(i,a,o)})}}},Fse=Mse;var Pse={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Bse(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}function Use(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function pM(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?pM(t.parentElement):null}function $se(e){var t=n=>{var r=pM(n.target);r&&(r.classList.add("active"),Use(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};C.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var zse=function(t){return n=>{Ui(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=tn({},r.properties,{"data-meta":String(r.data.meta)}))})}},Hse=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"];const jse=ut.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:o=!1,skipHtml:s=!0,onScroll:u,onMouseOver:c,pluginsFilter:p,rehypeRewrite:f,wrapperElement:m={},warpperElement:g={}}=e,E=E1(e,Hse),b=ut.useRef(null);C.useImperativeHandle(t,()=>tn({},e,{mdp:b}),[b,e]);var T=(n||"")+" "+(r||"");$se(b);var v=(k,R,B)=>{if(k.type==="element"&&B&&B.type==="root"&&/h(1|2|3|4|5|6)/.test(k.tagName)){var W=k.children&&k.children[0];W&&W.properties&&W.properties.ariaHidden==="true"&&(W.properties=tn({class:"anchor"},W.properties),W.children=[Pse])}if(k.type==="element"&&k.tagName==="pre"&&!o){var P=dM(k.children);k.children.push(Bse(P))}f&&f(k,R,B)},y=[zse,[Aoe,{ignoreMissing:!0}],Fae,$ae,Wae,[Fse,{rewrite:v}],[Gae,{properties:"attr"}],...E.rehypePlugins||[]],w={allowElement:(k,R,B)=>E.allowElement?E.allowElement(k,R,B):/^[A-Za-z0-9]+$/.test(k.tagName)};s&&y.push(kae);var A=[...E.remarkPlugins||[],Kte],D=tn({},g,m);return I.jsx("div",tn({ref:b,onScroll:u,onMouseOver:c},D,{className:T,style:a,children:I.jsx(HE,tn({},w,E,{skipHtml:s,rehypePlugins:p?p("rehype",y):y,remarkPlugins:p?p("remark",A):A,children:i||""}))}))}),Gse=He(jse)` + pre { + background-color: ${e=>e.light?Kt:Lt}; + border-radius: ${wt}; + /* border: 0.5px solid ${vt}; */ + + max-width: calc(100vw - 24px); + } + + code { + color: #f78383; + word-wrap: break-word; + border-radius: ${wt}; + background-color: ${Lt}; + } + + pre > code { + background-color: ${e=>e.light?Kt:Lt}; + color: ${Ht}; + padding: 12px; + + ${e=>{if(e.maxHeight)return` + max-height: ${e.maxHeight}px; + overflow-y: auto; + `}} + } + + background-color: ${e=>e.light?"transparent":Kt}; + font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, + Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; + font-size: ${e=>e.fontSize||nr()}px; + padding: 8px; + color: ${Ht}; +`;function pg(e){return I.jsx(Gse,{components:{a:({node:t,...n})=>I.jsx("a",{...n,target:"_blank",children:n.children})},className:e.className,maxHeight:e.maxHeight,fontSize:nr(),source:e.source||"",wrapperElement:{"data-color-mode":"dark"}})}const Vse=He.div``,Wse=He.div` + display: flex; + gap: 2px; + align-items: center; + background-color: ${Kt}; + box-shadow: 1px 1px 10px ${Kt}; + border-radius: ${wt}; + z-index: 100; + position: absolute; + right: 8px; + top: 16px; + height: 0; +`,qse=He.div` + padding: 2px; + padding-right: 0px; + background-color: ${e=>e.isUserInput?Lt:Kt}; + font-size: ${e=>e.fontSize||nr()}px; + border-radius: ${wt}; + overflow: hidden; +`;function Kse(e){var o,s;const[t,n]=C.useState(!1),r=C.useRef(null),i=C.useRef(null),a=e.historyNode.step.name==="UserInputStep";return C.useEffect(()=>{i!=null&&i.current&&i.current.focus()},[i]),C.useEffect(()=>{var u;t&&((u=r.current)==null||u.focus())},[t]),I.jsx(Vse,{stepDepth:e.historyNode.depth||0,inFuture:e.inFuture,onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)},hidden:e.historyNode.step.hide,children:I.jsxs("div",{children:[t&&(((o=e.historyNode.observation)==null?void 0:o.error)||e.noUserInputParent)&&I.jsxs(Wse,{children:[((s=e.historyNode.observation)==null?void 0:s.error)&&I.jsx(vi,{text:"Retry",onClick:u=>{u.stopPropagation(),e.onRetry()},children:I.jsx(aY,{width:"1.4em",height:"1.4em",onClick:e.onRetry})}),e.noUserInputParent&&I.jsx(vi,{text:"Delete",onClick:u=>{u.stopPropagation(),e.onDelete()},children:I.jsx(T2,{width:"1.4em",height:"1.4em",onClick:e.onRetry})})]}),I.jsx(qse,{hidden:!e.open,isUserInput:a,fontSize:nr(),children:I.jsx(pg,{source:e.historyNode.step.description})})]})})}var bn={};/** @license React v17.0.2 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var im=60103,am=60106,zp=60107,Hp=60108,jp=60114,Gp=60109,Vp=60110,Wp=60112,qp=60113,q_=60120,Kp=60115,Yp=60116,fM=60121,hM=60122,gM=60117,mM=60129,bM=60131;if(typeof Symbol=="function"&&Symbol.for){var mr=Symbol.for;im=mr("react.element"),am=mr("react.portal"),zp=mr("react.fragment"),Hp=mr("react.strict_mode"),jp=mr("react.profiler"),Gp=mr("react.provider"),Vp=mr("react.context"),Wp=mr("react.forward_ref"),qp=mr("react.suspense"),q_=mr("react.suspense_list"),Kp=mr("react.memo"),Yp=mr("react.lazy"),fM=mr("react.block"),hM=mr("react.server.block"),gM=mr("react.fundamental"),mM=mr("react.debug_trace_mode"),bM=mr("react.legacy_hidden")}function Ka(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case im:switch(e=e.type,e){case zp:case jp:case Hp:case qp:case q_:return e;default:switch(e=e&&e.$$typeof,e){case Vp:case Wp:case Yp:case Kp:case Gp:return e;default:return t}}case am:return t}}}var Yse=Gp,Xse=im,Zse=Wp,Qse=zp,Jse=Yp,ele=Kp,tle=am,nle=jp,rle=Hp,ile=qp;bn.ContextConsumer=Vp;bn.ContextProvider=Yse;bn.Element=Xse;bn.ForwardRef=Zse;bn.Fragment=Qse;bn.Lazy=Jse;bn.Memo=ele;bn.Portal=tle;bn.Profiler=nle;bn.StrictMode=rle;bn.Suspense=ile;bn.isAsyncMode=function(){return!1};bn.isConcurrentMode=function(){return!1};bn.isContextConsumer=function(e){return Ka(e)===Vp};bn.isContextProvider=function(e){return Ka(e)===Gp};bn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===im};bn.isForwardRef=function(e){return Ka(e)===Wp};bn.isFragment=function(e){return Ka(e)===zp};bn.isLazy=function(e){return Ka(e)===Yp};bn.isMemo=function(e){return Ka(e)===Kp};bn.isPortal=function(e){return Ka(e)===am};bn.isProfiler=function(e){return Ka(e)===jp};bn.isStrictMode=function(e){return Ka(e)===Hp};bn.isSuspense=function(e){return Ka(e)===qp};bn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zp||e===jp||e===mM||e===Hp||e===qp||e===q_||e===bM||typeof e=="object"&&e!==null&&(e.$$typeof===Yp||e.$$typeof===Kp||e.$$typeof===Gp||e.$$typeof===Vp||e.$$typeof===Wp||e.$$typeof===gM||e.$$typeof===fM||e[0]===hM)};bn.typeOf=Ka;let bk=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ek=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",F3=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,ale=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var ole=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:he=>he!==f;if(!bk(e))throw new TypeError("Invalid target");let E=document.scrollingElement||document.documentElement,b=[],T=e;for(;bk(T)&&g(T);){if(T=ale(T),T===E){b.push(T);break}T!=null&&T===document.body&&F3(T)&&!F3(document.documentElement)||T!=null&&F3(T,m)&&b.push(T)}let v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:D,width:k,top:R,right:B,bottom:W,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?R:c==="end"?W:R+D/2,z=p==="center"?P+k/2:p==="end"?B:P,le=[];for(let he=0;he=0&&P>=0&&W<=y&&B<=v&&R>=V&&W<=N&&P>=me&&B<=ce)return le;let oe=getComputedStyle(de),O=parseInt(oe.borderLeftWidth,10),re=parseInt(oe.borderTopWidth,10),Te=parseInt(oe.borderRightWidth,10),K=parseInt(oe.borderBottomWidth,10),xe=0,ne=0,Le="offsetWidth"in de?de.offsetWidth-de.clientWidth-O-Te:0,Re="offsetHeight"in de?de.offsetHeight-de.clientHeight-re-K:0,Xe="offsetWidth"in de?de.offsetWidth===0?0:Z/de.offsetWidth:0,Ve="offsetHeight"in de?de.offsetHeight===0?0:fe/de.offsetHeight:0;if(E===de)xe=c==="start"?Q:c==="end"?Q-y:c==="nearest"?R0(A,A+y,y,re,K,A+Q,A+Q+D,D):Q-y/2,ne=p==="start"?z:p==="center"?z-v/2:p==="end"?z-v:R0(w,w+v,v,O,Te,w+z,w+z+k,k),xe=Math.max(0,xe+A),ne=Math.max(0,ne+w);else{xe=c==="start"?Q-V-re:c==="end"?Q-N+K+Re:c==="nearest"?R0(V,N,fe,re,K+Re,Q,Q+D,D):Q-(V+fe/2)+Re/2,ne=p==="start"?z-me-O:p==="center"?z-(me+Z/2)+Le/2:p==="end"?z-ce+Te+Le:R0(me,ce,Z,O,Te+Le,z,z+k,k);let{scrollLeft:dt,scrollTop:ot}=de;xe=Math.max(0,Math.min(ot+xe/Ve,de.scrollHeight-fe/Ve+Re)),ne=Math.max(0,Math.min(dt+ne/Xe,de.scrollWidth-Z/Xe+Le)),Q+=ot-xe,z+=dt-ne}le.push({el:de,top:xe,left:ne})}return le},fg=function(){return fg=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function O0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=cp(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function cp(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?cp(1,0,n,r,!1):cp(-1,n-1,n,r,!1):-1}function yk(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(vk(i,e,n)||r&&vk(i,n.document.activeElement,n))})}var ple=vM(function(e){_M(e).textContent=""},500);function fle(e,t){var n=_M(t);e&&(n.textContent=e,ple(t))}function _M(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var hle=["isInitialMount","highlightedIndex","items","environment"],TM={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function gle(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){mle(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(tn({type:i},a))}function mle(e,t,n,r){var i=t.props,a=t.type,o="on"+K_(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](tn({type:a},r))}function ble(e,t){return t.changes}function Ele(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var vle=vM(function(e,t){fle(e(),t)},200),yle=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function _le(e){var t=e.id,n=t===void 0?"downshift-"+ule():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function Tle(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function Sle(e){return e?String(e):""}function K_(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function SM(e){var t=C.useRef(e);return t.current=e,t}function wle(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=Pb(m,g.props);var E=e(m,g),b=g.props.stateReducer(m,tn({},g,{changes:E}));return b},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=SM(n),p=C.useCallback(function(m){return u(tn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&gle(f,Pb(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Ld={itemToString:Sle,stateReducer:ble,getA11ySelectionMessage:Ele,scrollIntoView:lle,environment:typeof window>"u"?{}:window};function co(e,t,n){n===void 0&&(n=TM);var r=e["default"+K_(t)];return r!==void 0?r:n[t]}function D0(e,t,n){n===void 0&&(n=TM);var r=e[t];if(r!==void 0)return r;var i=e["initial"+K_(t)];return i!==void 0?i:co(e,t,n)}function Ale(e){var t=D0(e,"selectedItem"),n=D0(e,"isOpen"),r=D0(e,"highlightedIndex"),i=D0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Md(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function Cle(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!yk(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!yk(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var xle=function(){return EM};function _k(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=E1(n,hle);C.useEffect(function(){r||vle(function(){return e(tn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function kle(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return yle(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var Ile=EM;function Tk(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return tn({isOpen:!1,highlightedIndex:-1},i&&tn({selectedItem:e.items[t],isOpen:co(e,"isOpen"),highlightedIndex:co(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Rle(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Md(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Md(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:co(i,"highlightedIndex"),isOpen:co(i,"isOpen"),selectedItem:co(i,"selectedItem"),inputValue:co(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return tn({},e,a)}Ee.array.isRequired,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.bool,Ee.bool,Ee.bool,Ee.any,Ee.any,Ee.any,Ee.string,Ee.string,Ee.string,Ee.func,Ee.string,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});function Nle(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}fg(fg({},Ld),{getA11yStatusMessage:Nle});var Y_=0,X_=1,Z_=2,Q_=3,J_=4,e7=5,t7=6,n7=7,r7=8,hg=9,i7=10,wM=11,AM=12,a7=13,CM=14,xM=15,kM=16,IM=17,RM=18,o7=19,NM=20,OM=21,s7=22,DM=Object.freeze({__proto__:null,InputKeyDownArrowDown:Y_,InputKeyDownArrowUp:X_,InputKeyDownEscape:Z_,InputKeyDownHome:Q_,InputKeyDownEnd:J_,InputKeyDownPageUp:e7,InputKeyDownPageDown:t7,InputKeyDownEnter:n7,InputChange:r7,InputBlur:hg,InputFocus:i7,MenuMouseLeave:wM,ItemMouseMove:AM,ItemClick:a7,ToggleButtonClick:CM,FunctionToggleMenu:xM,FunctionOpenMenu:kM,FunctionCloseMenu:IM,FunctionSetHighlightedIndex:RM,FunctionSelectItem:o7,FunctionSetInputValue:NM,FunctionReset:OM,ControlledPropUpdatedSelectedItem:s7});function Ole(e){var t=Ale(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),tn({},t,{inputValue:r})}Ee.array.isRequired,Ee.func,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.bool,Ee.bool,Ee.bool,Ee.any,Ee.any,Ee.any,Ee.string,Ee.string,Ee.string,Ee.string,Ee.string,Ee.string,Ee.func,Ee.string,Ee.string,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});function Dle(e,t,n){var r=C.useRef(),i=wle(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){yM(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:s7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[Pb(a,n),o]}var Lle=tn({},Ld,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:cle});function Mle(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case a7:o={isOpen:co(i,"isOpen"),highlightedIndex:co(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Y_:e.isOpen?o={highlightedIndex:O0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Md(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case X_:e.isOpen?a?o=Tk(i,e.highlightedIndex):o={highlightedIndex:O0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Md(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case n7:o=Tk(i,e.highlightedIndex);break;case Z_:o=tn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case e7:o={highlightedIndex:O0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case t7:o={highlightedIndex:O0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case Q_:o={highlightedIndex:cp(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case J_:o={highlightedIndex:cp(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case hg:o=tn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case r7:o={isOpen:!0,highlightedIndex:co(i,"highlightedIndex"),inputValue:t.inputValue};break;case i7:o={isOpen:!0,highlightedIndex:Md(i,e,0)};break;case o7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case s7:o={inputValue:t.inputValue};break;default:return Rle(e,t,DM)}return tn({},e,o)}var Fle=["onMouseLeave","refKey","ref"],Ple=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],Ble=["onClick","onPress","refKey","ref"],Ule=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];LM.stateChangeTypes=DM;function LM(e){e===void 0&&(e={});var t=tn({},Lle,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=Ole(t),f=Dle(Mle,p,t),m=f[0],g=f[1],E=m.isOpen,b=m.highlightedIndex,T=m.selectedItem,v=m.inputValue,y=C.useRef(null),w=C.useRef({}),A=C.useRef(null),D=C.useRef(null),k=C.useRef(!0),R=_le(t),B=C.useRef(),W=SM({state:m,props:t}),P=C.useCallback(function(xe){return w.current[R.getItemId(xe)]},[R]);_k(s,[E,b,v,i],tn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),_k(u,[T],tn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=kle({menuElement:y.current,highlightedIndex:b,isOpen:E,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});Ile({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var xe=n||r||E;xe&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var z=Cle(E,[A,y,D],o,function(){g({type:hg,selectItem:!1})}),le=xle();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var xe;if(!E)w.current={};else if(((xe=o.document)==null?void 0:xe.activeElement)!==A.current){var ne;A==null||(ne=A.current)==null||ne.focus()}},[E,o]);var he=C.useMemo(function(){return{ArrowDown:function(ne){ne.preventDefault(),g({type:Y_,altKey:ne.altKey,getItemNodeFromIndex:P})},ArrowUp:function(ne){ne.preventDefault(),g({type:X_,altKey:ne.altKey,getItemNodeFromIndex:P})},Home:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:Q_,getItemNodeFromIndex:P}))},End:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:J_,getItemNodeFromIndex:P}))},Escape:function(ne){var Le=W.current.state;(Le.isOpen||Le.inputValue||Le.selectedItem||Le.highlightedIndex>-1)&&(ne.preventDefault(),g({type:Z_}))},Enter:function(ne){var Le=W.current.state;!Le.isOpen||ne.which===229||(ne.preventDefault(),g({type:n7,getItemNodeFromIndex:P}))},PageUp:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:e7,getItemNodeFromIndex:P}))},PageDown:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:t7,getItemNodeFromIndex:P}))}}},[g,W,P]),de=C.useCallback(function(xe){return tn({id:R.labelId,htmlFor:R.inputId},xe)},[R]),fe=C.useCallback(function(xe,ne){var Le,Re=xe===void 0?{}:xe,Xe=Re.onMouseLeave,Ve=Re.refKey,dt=Ve===void 0?"ref":Ve,ot=Re.ref,Ge=E1(Re,Fle),pt=ne===void 0?{}:ne;return pt.suppressRefError,tn((Le={},Le[dt]=N0(ot,function(U){y.current=U}),Le.id=R.menuId,Le.role="listbox",Le["aria-labelledby"]=Ge&&Ge["aria-label"]?void 0:""+R.labelId,Le.onMouseLeave=Uo(Xe,function(){g({type:wM})}),Le),Ge)},[g,le,R]),Z=C.useCallback(function(xe){var ne,Le,Re=xe===void 0?{}:xe,Xe=Re.item,Ve=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,Ge=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,ie=Re.onClick;Re.onPress;var pe=Re.disabled,ke=E1(Re,Ple),ve=W.current,Se=ve.props,Me=ve.state,ze=Tle(Xe,Ve,Se.items,"Pass either item or index to getItemProps!"),Ke=ze[1],jt="onClick",ue=ie,ye=function(){Ke!==Me.highlightedIndex&&(Q.current=!1,g({type:AM,index:Ke,disabled:pe}))},We=function(){g({type:a7,index:Ke})},at=function(Y){return Y.preventDefault()};return tn((ne={},ne[ot]=N0(Ge,function(Qe){Qe&&(w.current[R.getItemId(Ke)]=Qe)}),ne.disabled=pe,ne.role="option",ne["aria-selected"]=""+(Ke===Me.highlightedIndex),ne.id=R.getItemId(Ke),ne),!pe&&(Le={},Le[jt]=Uo(ue,We),Le),{onMouseMove:Uo(pt,ye),onMouseDown:Uo(U,at)},ke)},[g,W,Q,R]),V=C.useCallback(function(xe){var ne,Le=xe===void 0?{}:xe,Re=Le.onClick;Le.onPress;var Xe=Le.refKey,Ve=Xe===void 0?"ref":Xe,dt=Le.ref,ot=E1(Le,Ble),Ge=W.current.state,pt=function(){g({type:CM})};return tn((ne={},ne[Ve]=N0(dt,function(U){D.current=U}),ne["aria-controls"]=R.menuId,ne["aria-expanded"]=Ge.isOpen,ne.id=R.toggleButtonId,ne.tabIndex=-1,ne),!ot.disabled&&tn({},{onClick:Uo(Re,pt)}),ot)},[g,W,R]),ce=C.useCallback(function(xe,ne){var Le,Re=xe===void 0?{}:xe,Xe=Re.onKeyDown,Ve=Re.onChange,dt=Re.onInput,ot=Re.onFocus,Ge=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,ie=Re.ref,pe=E1(Re,Ule),ke=ne===void 0?{}:ne;ke.suppressRefError;var ve=W.current.state,Se=function(at){var Qe=dle(at);Qe&&he[Qe]&&he[Qe](at)},Me=function(at){g({type:r7,inputValue:at.target.value})},ze=function(at){if(ve.isOpen&&!z.current.isMouseDown){var Qe=at.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:hg,selectItem:!Qe})}},Ke=function(){ve.isOpen||g({type:i7})},jt="onChange",ue={};if(!pe.disabled){var ye;ue=(ye={},ye[jt]=Uo(Ve,dt,Me),ye.onKeyDown=Uo(Xe,Se),ye.onBlur=Uo(Ge,ze),ye.onFocus=Uo(ot,Ke),ye)}return tn((Le={},Le[U]=N0(ie,function(We){A.current=We}),Le["aria-activedescendant"]=ve.isOpen&&ve.highlightedIndex>-1?R.getItemId(ve.highlightedIndex):"",Le["aria-autocomplete"]="list",Le["aria-controls"]=R.menuId,Le["aria-expanded"]=ve.isOpen,Le["aria-labelledby"]=pe&&pe["aria-label"]?void 0:""+R.labelId,Le.autoComplete="off",Le.id=R.inputId,Le.role="combobox",Le.value=ve.inputValue,Le),ue,pe)},[le,W,R,he,g,z,o]),N=C.useCallback(function(){g({type:xM})},[g]),me=C.useCallback(function(){g({type:IM})},[g]),oe=C.useCallback(function(){g({type:kM})},[g]),O=C.useCallback(function(xe){g({type:RM,highlightedIndex:xe})},[g]),re=C.useCallback(function(xe){g({type:o7,selectedItem:xe})},[g]),Te=C.useCallback(function(xe){g({type:NM,inputValue:xe})},[g]),K=C.useCallback(function(){g({type:OM})},[g]);return{getItemProps:Z,getLabelProps:de,getMenuProps:fe,getInputProps:ce,getToggleButtonProps:V,toggleMenu:N,openMenu:oe,closeMenu:me,setHighlightedIndex:O,setInputValue:Te,selectItem:re,reset:K,highlightedIndex:b,isOpen:E,selectedItem:T,inputValue:v}}function $le(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}Ee.array,Ee.array,Ee.array,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.func,Ee.func,Ee.string,Ee.string,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});Ld.itemToString,Ld.stateReducer,Ld.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:MM,setPrototypeOf:Sk,isFrozen:zle,getPrototypeOf:Hle,getOwnPropertyDescriptor:FM}=Object;let{freeze:ti,seal:Ga,create:PM}=Object,{apply:Bb,construct:Ub}=typeof Reflect<"u"&&Reflect;ti||(ti=function(t){return t});Ga||(Ga=function(t){return t});Bb||(Bb=function(t,n,r){return t.apply(n,r)});Ub||(Ub=function(t,n){return new t(...n)});const L0=ba(Array.prototype.forEach),wk=ba(Array.prototype.pop),Xc=ba(Array.prototype.push),bh=ba(String.prototype.toLowerCase),P3=ba(String.prototype.toString),jle=ba(String.prototype.match),Zc=ba(String.prototype.replace),Gle=ba(String.prototype.indexOf),Vle=ba(String.prototype.trim),Ii=ba(RegExp.prototype.test),Qc=Wle(TypeError);function ba(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:bh;Sk&&Sk(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(zle(t)||(t[r]=a),i=a)}e[i]=!0}return e}function Xu(e){const t=PM(null);for(const[n,r]of MM(e))FM(e,n)!==void 0&&(t[n]=r);return t}function M0(e,t){for(;e!==null;){const r=FM(e,t);if(r){if(r.get)return ba(r.get);if(typeof r.value=="function")return ba(r.value)}e=Hle(e)}function n(r){return console.warn("fallback value for",r),null}return n}const Ak=ti(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),B3=ti(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),U3=ti(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),qle=ti(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$3=ti(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Kle=ti(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ck=ti(["#text"]),xk=ti(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z3=ti(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kk=ti(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F0=ti(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Yle=Ga(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xle=Ga(/<%[\w\W]*|[\w\W]*%>/gm),Zle=Ga(/\${[\w\W]*}/gm),Qle=Ga(/^data-[\-\w.\u00B7-\uFFFF]/),Jle=Ga(/^aria-[\-\w]+$/),BM=Ga(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eue=Ga(/^(?:\w+script|data):/i),tue=Ga(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),UM=Ga(/^html$/i);var Ik=Object.freeze({__proto__:null,MUSTACHE_EXPR:Yle,ERB_EXPR:Xle,TMPLIT_EXPR:Zle,DATA_ATTR:Qle,ARIA_ATTR:Jle,IS_ALLOWED_URI:BM,IS_SCRIPT_OR_DATA:eue,ATTR_WHITESPACE:tue,DOCTYPE_NAME:UM});const nue=function(){return typeof window>"u"?null:window},rue=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function $M(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nue();const t=qe=>$M(qe);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,E=u.prototype,b=M0(E,"cloneNode"),T=M0(E,"nextSibling"),v=M0(E,"childNodes"),y=M0(E,"parentNode");if(typeof o=="function"){const qe=n.createElement("template");qe.content&&qe.content.ownerDocument&&(n=qe.content.ownerDocument)}let w,A="";const{implementation:D,createNodeIterator:k,createDocumentFragment:R,getElementsByTagName:B}=n,{importNode:W}=r;let P={};t.isSupported=typeof MM=="function"&&typeof y=="function"&&D&&D.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:z,TMPLIT_EXPR:le,DATA_ATTR:he,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:Z}=Ik;let{IS_ALLOWED_URI:V}=Ik,ce=null;const N=Ct({},[...Ak,...B3,...U3,...$3,...Ck]);let me=null;const oe=Ct({},[...xk,...z3,...kk,...F0]);let O=Object.seal(PM(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,Te=null,K=!0,xe=!0,ne=!1,Le=!0,Re=!1,Xe=!1,Ve=!1,dt=!1,ot=!1,Ge=!1,pt=!1,U=!0,ie=!1;const pe="user-content-";let ke=!0,ve=!1,Se={},Me=null;const ze=Ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ke=null;const jt=Ct({},["audio","video","img","source","image","track"]);let ue=null;const ye=Ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Y=Qe,se=!1,j=null;const $=Ct({},[We,at,Qe],P3);let J=null;const be=["application/xhtml+xml","text/html"],Fe="text/html";let De=null,tt=null;const Je=n.createElement("form"),Ze=function(ee){return ee instanceof RegExp||ee instanceof Function},Rt=function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(tt&&tt===ee)){if((!ee||typeof ee!="object")&&(ee={}),ee=Xu(ee),J=be.indexOf(ee.PARSER_MEDIA_TYPE)===-1?J=Fe:J=ee.PARSER_MEDIA_TYPE,De=J==="application/xhtml+xml"?P3:bh,ce="ALLOWED_TAGS"in ee?Ct({},ee.ALLOWED_TAGS,De):N,me="ALLOWED_ATTR"in ee?Ct({},ee.ALLOWED_ATTR,De):oe,j="ALLOWED_NAMESPACES"in ee?Ct({},ee.ALLOWED_NAMESPACES,P3):$,ue="ADD_URI_SAFE_ATTR"in ee?Ct(Xu(ye),ee.ADD_URI_SAFE_ATTR,De):ye,Ke="ADD_DATA_URI_TAGS"in ee?Ct(Xu(jt),ee.ADD_DATA_URI_TAGS,De):jt,Me="FORBID_CONTENTS"in ee?Ct({},ee.FORBID_CONTENTS,De):ze,re="FORBID_TAGS"in ee?Ct({},ee.FORBID_TAGS,De):{},Te="FORBID_ATTR"in ee?Ct({},ee.FORBID_ATTR,De):{},Se="USE_PROFILES"in ee?ee.USE_PROFILES:!1,K=ee.ALLOW_ARIA_ATTR!==!1,xe=ee.ALLOW_DATA_ATTR!==!1,ne=ee.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=ee.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=ee.SAFE_FOR_TEMPLATES||!1,Xe=ee.WHOLE_DOCUMENT||!1,ot=ee.RETURN_DOM||!1,Ge=ee.RETURN_DOM_FRAGMENT||!1,pt=ee.RETURN_TRUSTED_TYPE||!1,dt=ee.FORCE_BODY||!1,U=ee.SANITIZE_DOM!==!1,ie=ee.SANITIZE_NAMED_PROPS||!1,ke=ee.KEEP_CONTENT!==!1,ve=ee.IN_PLACE||!1,V=ee.ALLOWED_URI_REGEXP||BM,Y=ee.NAMESPACE||Qe,O=ee.CUSTOM_ELEMENT_HANDLING||{},ee.CUSTOM_ELEMENT_HANDLING&&Ze(ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(O.tagNameCheck=ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&Ze(ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(O.attributeNameCheck=ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&typeof ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(O.allowCustomizedBuiltInElements=ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(xe=!1),Ge&&(ot=!0),Se&&(ce=Ct({},[...Ck]),me=[],Se.html===!0&&(Ct(ce,Ak),Ct(me,xk)),Se.svg===!0&&(Ct(ce,B3),Ct(me,z3),Ct(me,F0)),Se.svgFilters===!0&&(Ct(ce,U3),Ct(me,z3),Ct(me,F0)),Se.mathMl===!0&&(Ct(ce,$3),Ct(me,kk),Ct(me,F0))),ee.ADD_TAGS&&(ce===N&&(ce=Xu(ce)),Ct(ce,ee.ADD_TAGS,De)),ee.ADD_ATTR&&(me===oe&&(me=Xu(me)),Ct(me,ee.ADD_ATTR,De)),ee.ADD_URI_SAFE_ATTR&&Ct(ue,ee.ADD_URI_SAFE_ATTR,De),ee.FORBID_CONTENTS&&(Me===ze&&(Me=Xu(Me)),Ct(Me,ee.FORBID_CONTENTS,De)),ke&&(ce["#text"]=!0),Xe&&Ct(ce,["html","head","body"]),ce.table&&(Ct(ce,["tbody"]),delete re.tbody),ee.TRUSTED_TYPES_POLICY){if(typeof ee.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ee.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=ee.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=rue(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ti&&ti(ee),tt=ee}},Zt=Ct({},["mi","mo","mn","ms","mtext"]),kt=Ct({},["foreignobject","desc","title","annotation-xml"]),nn=Ct({},["title","style","font","a","script"]),Yt=Ct({},B3);Ct(Yt,U3),Ct(Yt,qle);const jr=Ct({},$3);Ct(jr,Kle);const Gr=function(ee){let Be=y(ee);(!Be||!Be.tagName)&&(Be={namespaceURI:Y,tagName:"template"});const it=bh(ee.tagName),ln=bh(Be.tagName);return j[ee.namespaceURI]?ee.namespaceURI===at?Be.namespaceURI===Qe?it==="svg":Be.namespaceURI===We?it==="svg"&&(ln==="annotation-xml"||Zt[ln]):!!Yt[it]:ee.namespaceURI===We?Be.namespaceURI===Qe?it==="math":Be.namespaceURI===at?it==="math"&&kt[ln]:!!jr[it]:ee.namespaceURI===Qe?Be.namespaceURI===at&&!kt[ln]||Be.namespaceURI===We&&!Zt[ln]?!1:!jr[it]&&(nn[it]||!Yt[it]):!!(J==="application/xhtml+xml"&&j[ee.namespaceURI]):!1},Vr=function(ee){Xc(t.removed,{element:ee});try{ee.parentNode.removeChild(ee)}catch{ee.remove()}},Ta=function(ee,Be){try{Xc(t.removed,{attribute:Be.getAttributeNode(ee),from:Be})}catch{Xc(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(ee),ee==="is"&&!me[ee])if(ot||Ge)try{Vr(Be)}catch{}else try{Be.setAttribute(ee,"")}catch{}},ii=function(ee){let Be=null,it=null;if(dt)ee=""+ee;else{const ar=jle(ee,/^[\r\n\t ]+/);it=ar&&ar[0]}J==="application/xhtml+xml"&&Y===Qe&&(ee=''+ee+"");const ln=w?w.createHTML(ee):ee;if(Y===Qe)try{Be=new m().parseFromString(ln,J)}catch{}if(!Be||!Be.documentElement){Be=D.createDocument(Y,"template",null);try{Be.documentElement.innerHTML=se?A:ln}catch{}}const ir=Be.body||Be.documentElement;return ee&&it&&ir.insertBefore(n.createTextNode(it),ir.childNodes[0]||null),Y===Qe?B.call(Be,Xe?"html":"body")[0]:Xe?Be.documentElement:ir},Ir=function(ee){return k.call(ee.ownerDocument||ee,ee,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},ps=function(ee){return ee instanceof f&&(typeof ee.nodeName!="string"||typeof ee.textContent!="string"||typeof ee.removeChild!="function"||!(ee.attributes instanceof p)||typeof ee.removeAttribute!="function"||typeof ee.setAttribute!="function"||typeof ee.namespaceURI!="string"||typeof ee.insertBefore!="function"||typeof ee.hasChildNodes!="function")},fs=function(ee){return typeof s=="function"&&ee instanceof s},Wr=function(ee,Be,it){P[ee]&&L0(P[ee],ln=>{ln.call(t,Be,it,tt)})},hs=function(ee){let Be=null;if(Wr("beforeSanitizeElements",ee,null),ps(ee))return Vr(ee),!0;const it=De(ee.nodeName);if(Wr("uponSanitizeElement",ee,{tagName:it,allowedTags:ce}),ee.hasChildNodes()&&!fs(ee.firstElementChild)&&Ii(/<[/\w]/g,ee.innerHTML)&&Ii(/<[/\w]/g,ee.textContent))return Vr(ee),!0;if(!ce[it]||re[it]){if(!re[it]&&Rr(it)&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,it)||O.tagNameCheck instanceof Function&&O.tagNameCheck(it)))return!1;if(ke&&!Me[it]){const ln=y(ee)||ee.parentNode,ir=v(ee)||ee.childNodes;if(ir&&ln){const ar=ir.length;for(let Yn=ar-1;Yn>=0;--Yn)ln.insertBefore(b(ir[Yn],!0),T(ee))}}return Vr(ee),!0}return ee instanceof u&&!Gr(ee)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ii(/<\/no(script|embed|frames)/i,ee.innerHTML)?(Vr(ee),!0):(Re&&ee.nodeType===3&&(Be=ee.textContent,L0([Q,z,le],ln=>{Be=Zc(Be,ln," ")}),ee.textContent!==Be&&(Xc(t.removed,{element:ee.cloneNode()}),ee.textContent=Be)),Wr("afterSanitizeElements",ee,null),!1)},Wt=function(ee,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in Je))return!1;if(!(xe&&!Te[Be]&&Ii(he,Be))){if(!(K&&Ii(de,Be))){if(!me[Be]||Te[Be]){if(!(Rr(ee)&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,ee)||O.tagNameCheck instanceof Function&&O.tagNameCheck(ee))&&(O.attributeNameCheck instanceof RegExp&&Ii(O.attributeNameCheck,Be)||O.attributeNameCheck instanceof Function&&O.attributeNameCheck(Be))||Be==="is"&&O.allowCustomizedBuiltInElements&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,it)||O.tagNameCheck instanceof Function&&O.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ii(V,Zc(it,Z,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&ee!=="script"&&Gle(it,"data:")===0&&Ke[ee])){if(!(ne&&!Ii(fe,Zc(it,Z,"")))){if(it)return!1}}}}}}return!0},Rr=function(ee){return ee.indexOf("-")>0},_i=function(ee){Wr("beforeSanitizeAttributes",ee,null);const{attributes:Be}=ee;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};let ln=Be.length;for(;ln--;){const ir=Be[ln],{name:ar,namespaceURI:Yn,value:wo}=ir,Xa=De(ar);let Nr=ar==="value"?wo:Vle(wo);if(it.attrName=Xa,it.attrValue=Nr,it.keepAttr=!0,it.forceKeepAttr=void 0,Wr("uponSanitizeAttribute",ee,it),Nr=it.attrValue,it.forceKeepAttr||(Ta(ar,ee),!it.keepAttr))continue;if(!Le&&Ii(/\/>/i,Nr)){Ta(ar,ee);continue}Re&&L0([Q,z,le],af=>{Nr=Zc(Nr,af," ")});const rf=De(ee.nodeName);if(Wt(rf,Xa,Nr)){if(ie&&(Xa==="id"||Xa==="name")&&(Ta(ar,ee),Nr=pe+Nr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Yn)switch(g.getAttributeType(rf,Xa)){case"TrustedHTML":{Nr=w.createHTML(Nr);break}case"TrustedScriptURL":{Nr=w.createScriptURL(Nr);break}}try{Yn?ee.setAttributeNS(Yn,ar,Nr):ee.setAttribute(ar,Nr),wk(t.removed)}catch{}}}Wr("afterSanitizeAttributes",ee,null)},Al=function qe(ee){let Be=null;const it=Ir(ee);for(Wr("beforeSanitizeShadowDOM",ee,null);Be=it.nextNode();)Wr("uponSanitizeShadowNode",Be,null),!hs(Be)&&(Be.content instanceof a&&qe(Be.content),_i(Be));Wr("afterSanitizeShadowDOM",ee,null)};return t.sanitize=function(qe){let ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,ln=null,ir=null;if(se=!qe,se&&(qe=""),typeof qe!="string"&&!fs(qe))if(typeof qe.toString=="function"){if(qe=qe.toString(),typeof qe!="string")throw Qc("dirty is not a string, aborting")}else throw Qc("toString is not a function");if(!t.isSupported)return qe;if(Ve||Rt(ee),t.removed=[],typeof qe=="string"&&(ve=!1),ve){if(qe.nodeName){const wo=De(qe.nodeName);if(!ce[wo]||re[wo])throw Qc("root node is forbidden and cannot be sanitized in-place")}}else if(qe instanceof s)Be=ii(""),it=Be.ownerDocument.importNode(qe,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Xe&&qe.indexOf("<")===-1)return w&&pt?w.createHTML(qe):qe;if(Be=ii(qe),!Be)return ot?null:pt?A:""}Be&&dt&&Vr(Be.firstChild);const ar=Ir(ve?qe:Be);for(;ln=ar.nextNode();)hs(ln)||(ln.content instanceof a&&Al(ln.content),_i(ln));if(ve)return qe;if(ot){if(Ge)for(ir=R.call(Be.ownerDocument);Be.firstChild;)ir.appendChild(Be.firstChild);else ir=Be;return(me.shadowroot||me.shadowrootmode)&&(ir=W.call(r,ir,!0)),ir}let Yn=Xe?Be.outerHTML:Be.innerHTML;return Xe&&ce["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ii(UM,Be.ownerDocument.doctype.name)&&(Yn=" +`+Yn),Re&&L0([Q,z,le],wo=>{Yn=Zc(Yn,wo," ")}),w&&pt?w.createHTML(Yn):Yn},t.setConfig=function(){let qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(qe),Ve=!0},t.clearConfig=function(){tt=null,Ve=!1},t.isValidAttribute=function(qe,ee,Be){tt||Rt({});const it=De(qe),ln=De(ee);return Wt(it,ln,Be)},t.addHook=function(qe,ee){typeof ee=="function"&&(P[qe]=P[qe]||[],Xc(P[qe],ee))},t.removeHook=function(qe){if(P[qe])return wk(P[qe])},t.removeHooks=function(qe){P[qe]&&(P[qe]=[])},t.removeAllHooks=function(){P={}},t}var iue=$M(),l7={};const aue={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},oue={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},sue=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],lue={files:aue,extensions:oue,partials:sue,default:["default","white"]},uue='',cue='',due='',pue='',fue='',hue='',gue='',mue='',bue='',Eue='',vue='',yue='',_ue='',Tue='',Sue='',wue='',Aue='',Cue='',xue='',kue='',Iue='',Rue='',Nue='',Oue='',Due='',Lue='',Mue='',Fue='',Pue='',Bue='',Uue='',$ue='',zue='',Hue='',jue='',Gue='',Vue='',Wue='',que='',Kue='',Yue='',Xue='',Zue='',Que='',Jue='',e1e='',t1e='',n1e='',r1e='',i1e='',a1e='',o1e='',s1e='',l1e='',u1e='',c1e='',d1e='',p1e='',f1e='',h1e='',g1e='',m1e='',b1e='',E1e='',v1e='',y1e='',_1e='',T1e='',S1e='',w1e='',A1e='',C1e='',x1e='',k1e='',I1e='',R1e='',N1e='',O1e='',D1e='',L1e='',M1e='',F1e='',P1e='',B1e='',U1e='',$1e='',z1e='',H1e='',j1e='',G1e='',V1e='',W1e='',q1e='',K1e='',Y1e='',X1e='',Z1e='',Q1e='',J1e='',ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',Ece='',vce='',yce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',xce='',kce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce={folder:uue,bsl:cue,mdo:due,salesforce:pue,asm:fue,bicep:hue,c:gue,"c-sharp":'',html:mue,cpp:bue,clojure:Eue,coldfusion:vue,coffee:yue,config:_ue,crystal:Tue,crystal_embedded:Sue,json:wue,css:Aue,csv:Cue,xls:xue,cu:kue,cake:Iue,cake_php:Rue,d:Nue,word:Oue,ejs:Due,elixir:Lue,elixir_script:Mue,hex:Fue,elm:Pue,favicon:Bue,"f-sharp":'',git:Uue,go2:$ue,go:zue,godot:Hue,gradle:jue,grails:Gue,graphql:Vue,hacklang:Wue,haml:que,mustache:Kue,haskell:Yue,haxe:Xue,jade:Zue,java:Que,javascript:Jue,jinja:e1e,julia:t1e,karma:n1e,kotlin:r1e,dart:i1e,less:a1e,liquid:o1e,livescript:s1e,lua:l1e,markdown:u1e,argdown:c1e,info:d1e,clock:p1e,maven:f1e,nim:h1e,github:g1e,notebook:m1e,nunjucks:b1e,npm:E1e,ocaml:v1e,odata:y1e,perl:_1e,php:T1e,pipeline:S1e,pddl:w1e,plan:A1e,happenings:C1e,powershell:x1e,prisma:k1e,pug:I1e,puppet:R1e,purescript:N1e,python:O1e,react:D1e,reasonml:L1e,rescript:M1e,R:F1e,ruby:P1e,html_erb:B1e,rust:U1e,sass:$1e,spring:z1e,slim:H1e,smarty:j1e,sbt:G1e,scala:V1e,ethereum:W1e,stylus:q1e,svelte:K1e,swift:Y1e,db:X1e,terraform:Z1e,tex:Q1e,default:'',twig:J1e,typescript:ece,tsconfig:tce,vala:nce,vue:rce,wasm:ice,wat:ace,xml:oce,yml:sce,prolog:lce,zip:uce,wgt:cce,illustrator:dce,photoshop:pce,pdf:fce,font:hce,image:gce,svg:mce,sublime:bce,"code-search":'',shell:Ece,video:vce,audio:yce,windows:_ce,jenkins:Tce,babel:Sce,bower:wce,docker:Ace,"code-climate":'',eslint:Cce,firebase:xce,firefox:kce,grunt:Ice,gulp:Rce,ionic:Nce,platformio:Oce,rollup:Dce,stylelint:Lce,yarn:Mce,webpack:Fce,lock:Pce,license:Bce,makefile:Uce,heroku:$ce,todo:zce,npm_ignored:Hce,ignored:jce};var gg=ql&&ql.__assign||function(){return gg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return Zu.default},zM=function(e){var t=Kce(e),n=t[0],r=t[1];return{svg:qce[n],color:r}};l7.getIcon=zM;var Yce=function(e){return function(t){var n=zM(t);return gg(gg({},n),{color:e[n.color]})}},Xce=l7.themeIcons=Yce;const $b=({filename:e,height:t,width:n})=>{const r=Xce({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=iue.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})},Zce=He.button` + border: none; + color: ${Ht}; + background-color: ${Lt}; + border-radius: ${wt}; + padding: 4px; + padding-left: 8px; + padding-right: 8px; + overflow: hidden; + font-size: ${e=>e.fontSize||nr()}px; + + cursor: pointer; +`;He.div` + position: absolute; + left: 0px; + top: 0px; + width: 100%; + height: 100%; + display: grid; + grid-gap: 0; + align-items: center; + border-radius: ${wt}; + + background-color: ${Lt}; +`;He.div` + background-color: ${Lt}; + height: 100%; + display: flex; + align-items: center; + + &:hover { + background-color: ${e=>e.backgroundColor}; + } +`;const Qce=He.div` + position: absolute; + top: -10px; + right: -10px; + width: 20px; + height: 20px; + border-radius: 50%; + background-color: red; + color: white; + display: flex; + align-items: center; + justify-content: center; + padding: 2px; +`,Jce=He.div` + border-radius: ${wt}; + background-color: ${Lt}; + display: flex; + align-items: center; + justify-content: center; +`,ede=He(Zce)` + position: relative; + border-color: ${e=>e.borderColor||"transparent"}; + border-width: 1px; + border-style: solid; + + &:focus { + outline: none; + /* border-color: ${vt}; */ + text-decoration: underline; + } +`,tde=He(vi)` + &:hover { + background-color: ${e=>e.color}; + } +`,nde=He(vi)` + ${e=>e.selected&&` + background-color: ${e.color}; + + &:hover { + background-color: ${e.color}; + } + `} +`,rde=e=>{const[t,n]=C.useState(!1),r=C.useContext(Ya),[i,a]=C.useState(void 0);C.useEffect(()=>{e.editing&&e.item.content.length>4e3?a("Editing such a large range may be slow"):a(void 0)},[e.editing,e.item]);const o=C.useRef(null),s=C.useRef(null);return I.jsxs("div",{style:{position:"relative"},children:[I.jsxs(Jce,{previewing:e.previewing,ref:o,children:[I.jsx(ede,{fontSize:nr(),borderColor:e.editing&&i?"red":void 0,ref:s,onMouseEnter:()=>{n(!0),e.onHover&&e.onHover(!0)},onMouseLeave:()=>{n(!1),e.onHover&&e.onHover(!1)},className:`pill-button-${e.stepIndex||"main"}`,onKeyDown:u=>{var c,p;u.key==="Backspace"?(c=e.onDelete)==null||c.call(e,e.stepIndex):u.key==="v"?(p=e.toggleViewContent)==null||p.call(e):u.key==="e"&&(r==null||r.setEditingAtIds([e.item.description.id.item_id]))},onClick:u=>{var c;(c=e.onClick)==null||c.call(e,u),r==null||r.previewContextItem(`${e.item.description.id.provider_title}-${e.item.description.id.item_id}`)},onBlur:u=>{var c,p;(c=o.current)!=null&&c.contains(u.relatedTarget)&&(u.preventDefault(),(p=s.current)==null||p.focus())},children:I.jsxs("span",{className:(t?"underline":"")+" flex",children:[["file","code"].includes(e.item.description.id.provider_title)&&I.jsx($b,{height:"16px",width:"16px",filename:e.item.description.name.split(" ").at(0)}),e.item.description.name]})}),(e.editingAny||e.focusing&&e.item.editable||e.editing&&e.editingAny)&&I.jsxs(I.Fragment,{children:[I.jsx(nde,{"data-tooltip-id":`circle-div-${e.item.description.name}`,text:e.editing?"Editing this range":"Edit this range (e)",onClick:()=>{var u,c;e.editing||r==null||r.setEditingAtIds([e.item.description.id.item_id]),e.editingAny||(u=e.prefixInputWithEdit)==null||u.call(e,!0),e.editingAny&&e.editing&&((c=e.prefixInputWithEdit)==null||c.call(e,!1))},tabIndex:-1,color:"#f0f4",selected:e.editing,children:I.jsx(KY,{width:"1.4em",height:"1.4em"})}),I.jsx(Gs,{id:`circle-div-${e.item.description.name}`,children:"Editing this range"})]}),e.focusing&&I.jsx(tde,{text:"Delete (⌫)",onClick:()=>{var u;return(u=e.onDelete)==null?void 0:u.call(e,e.stepIndex)},tabIndex:-1,color:"#f004",children:I.jsx(pD,{width:"1.4em",height:"1.4em"})})]}),I.jsx(Gs,{id:`edit-${e.index}`,children:e.item.editing?"Editing this section (with entire file as context)":"Edit this section"}),I.jsx(Gs,{id:`delete-${e.index}`,children:"Delete"}),e.editing&&i&&I.jsxs(I.Fragment,{children:[I.jsx(Qce,{"data-tooltip-id":`circle-div-${e.item.description.name}`,className:"z-10",children:I.jsx(lD,{style:{margin:"auto"},width:"1.0em",strokeWidth:2})}),I.jsx(Gs,{id:`circle-div-${e.item.description.name}`,children:i})]})]})};var u7={};Object.defineProperty(u7,"__esModule",{value:!0});u7.testFunc=void 0;var ide=function(){console.log("test")};u7.testFunc=ide;function ade(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function rl(e,t,n=0){try{ade(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>rl(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}const ode={};var zb=function(e,t){return zb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},zb(e,t)};function Xp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var en=function(){return en=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]"u"&&require("cross-fetch/polyfill"),c=new URL(i,this.url),a&&(p=new URLSearchParams,Object.keys(a).filter(function(w){return a[w]!==null}).map(function(w){return p.set(w,a[w])}),c.search=p.toString()),!((n=u.headers)===null||n===void 0)&&n["Content-Type"]||(o=JSON.stringify(o)),f=en(en({},this.headers),u.headers),y.label=1;case 1:return y.trys.push([1,6,,7]),m=this.httpClient?this.httpClient:fetch,g=m(c.toString(),en(en(en({},u),this.requestConfig),{method:r,body:o,headers:f})),this.httpClient?[4,g]:[3,3];case 2:return[2,y.sent()];case 3:return[4,g.then(function(w){return sde(w)})];case 4:return E=y.sent(),[4,E.json().catch(function(){})];case 5:return b=y.sent(),[2,b];case 6:return T=y.sent(),v=T.stack,lde(T,v,c.toString()),[3,7];case 7:return[2]}})})},e.prototype.get=function(t,n,r){return Ne(this,void 0,void 0,function(){return Oe(this,function(i){switch(i.label){case 0:return[4,this.request({method:"GET",url:t,params:n,config:r})];case 1:return[2,i.sent()]}})})},e.prototype.post=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"POST",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.put=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PUT",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.patch=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PATCH",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.delete=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"DELETE",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e}(),Fn=function(){function e(t){this.taskUid=t.taskUid,this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.enqueuedAt=new Date(t.enqueuedAt)}return e}(),Rk=function(){function e(t){this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.uid=t.uid,this.details=t.details,this.canceledBy=t.canceledBy,this.error=t.error,this.duration=t.duration,this.startedAt=new Date(t.startedAt),this.enqueuedAt=new Date(t.enqueuedAt),this.finishedAt=new Date(t.finishedAt)}return e}(),HM=function(){function e(t){this.httpRequest=new bg(t)}return e.prototype.getTask=function(t){return Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks/".concat(t),[4,this.httpRequest.get(n)];case 1:return r=i.sent(),[2,new Rk(r)]}})})},e.prototype.getTasks=function(t){return t===void 0&&(t={}),Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks",[4,this.httpRequest.get(n,H3(t))];case 1:return r=i.sent(),[2,en(en({},r),{results:r.results.map(function(a){return new Rk(a)})})]}})})},e.prototype.waitForTask=function(t,n){var r=n===void 0?{}:n,i=r.timeOutMs,a=i===void 0?5e3:i,o=r.intervalMs,s=o===void 0?50:o;return Ne(this,void 0,void 0,function(){var u,c;return Oe(this,function(p){switch(p.label){case 0:u=Date.now(),p.label=1;case 1:return Date.now()-u"u"?this.tokens.generateTenantToken(n,r,i):e.prototype.generateTenantToken.call(this,n,r,i)},t}(Ede);function Pa(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:c7(e)?2:d7(e)?3:0}function B1(e,t){return bc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ade(e,t){return bc(e)===2?e.get(t):e[t]}function GM(e,t,n){var r=bc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function VM(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function c7(e){return Nde&&e instanceof Map}function d7(e){return Ode&&e instanceof Set}function Vl(e){return e.o||e.t}function p7(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=qM(e);delete t[Cn];for(var n=U1(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Cde),Object.freeze(e),t&&mu(e,function(n,r){return f7(r,!0)},!0)),e}function Cde(){Pa(2)}function h7(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function bo(e){var t=Vb[e];return t||Pa(18,e),t}function xde(e,t){Vb[e]||(Vb[e]=t)}function Hb(){return pp}function j3(e,t){t&&(bo("Patches"),e.u=[],e.s=[],e.v=t)}function Eg(e){jb(e),e.p.forEach(kde),e.p=null}function jb(e){e===pp&&(pp=e.l)}function Nk(e){return pp={p:[],l:pp,h:e,m:!0,_:0}}function kde(e){var t=e[Cn];t.i===0||t.i===1?t.j():t.g=!0}function G3(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||bo("ES5").S(t,e,r),r?(n[Cn].P&&(Eg(t),Pa(4)),is(e)&&(e=vg(t,e),t.l||yg(t,e)),t.u&&bo("Patches").M(n[Cn].t,e,t.u,t.s)):e=vg(t,n,[]),Eg(t),t.u&&t.v(t.u,t.s),e!==WM?e:void 0}function vg(e,t,n){if(h7(t))return t;var r=t[Cn];if(!r)return mu(t,function(s,u){return Ok(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return yg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=p7(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),mu(a,function(s,u){return Ok(e,r,i,s,u,n,o)}),yg(e,i,!1),n&&e.u&&bo("Patches").N(r,n,e.u,e.s)}return r.o}function Ok(e,t,n,r,i,a,o){if(pl(i)){var s=vg(e,i,a&&t&&t.i!==3&&!B1(t.R,r)?a.concat(r):void 0);if(GM(n,r,s),!pl(s))return;e.m=!1}else o&&n.add(i);if(is(i)&&!h7(i)){if(!e.h.D&&e._<1)return;vg(e,i),t&&t.A.l||yg(e,i)}}function yg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&f7(t,n)}function V3(e,t){var n=e[Cn];return(n?Vl(n):e)[t]}function Dk(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function $s(e){e.P||(e.P=!0,e.l&&$s(e.l))}function W3(e){e.o||(e.o=p7(e.t))}function Gb(e,t,n){var r=c7(t)?bo("MapSet").F(t,n):d7(t)?bo("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:Hb(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=fp;o&&(u=[s],c=dd);var p=Proxy.revocable(u,c),f=p.revoke,m=p.proxy;return s.k=m,s.j=f,m}(t,n):bo("ES5").J(t,n);return(n?n.A:Hb()).p.push(r),r}function Ide(e){return pl(e)||Pa(22,e),function t(n){if(!is(n))return n;var r,i=n[Cn],a=bc(n);if(i){if(!i.P&&(i.i<4||!bo("ES5").K(i)))return i.t;i.I=!0,r=Lk(n,a),i.I=!1}else r=Lk(n,a);return mu(r,function(o,s){i&&Ade(i.t,o)===s||GM(r,o,t(s))}),a===3?new Set(r):r}(e)}function Lk(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p7(e)}function Rde(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[Cn];return fp.get(u,a)},set:function(u){var c=this[Cn];fp.set(c,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Cn];if(!s.P)switch(s.i){case 5:r(s)&&$s(s);break;case 4:n(s)&&$s(s)}}}function n(a){for(var o=a.t,s=a.k,u=U1(s),c=u.length-1;c>=0;c--){var p=u[c];if(p!==Cn){var f=o[p];if(f===void 0&&!B1(o,p))return!0;var m=s[p],g=m&&m[Cn];if(g?g.t!==f:!VM(m,f))return!0}}var E=!!o[Cn];return u.length!==U1(o).length+(E?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?v-1:0),w=1;w1?p-1:0),m=1;m=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=bo("Patches").$;return pl(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),$i=new Lde,KM=$i.produce;$i.produceWithPatches.bind($i);$i.setAutoFreeze.bind($i);$i.setUseProxies.bind($i);$i.applyPatches.bind($i);$i.createDraft.bind($i);$i.finishDraft.bind($i);function hp(e){"@babel/helpers - typeof";return hp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hp(e)}function Mde(e,t){if(hp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fde(e){var t=Mde(e,"string");return hp(t)==="symbol"?t:String(t)}function Pde(e,t,n){return t=Fde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uk(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fr(1));return n(YM)(e,t)}if(typeof e!="function")throw new Error(Fr(2));var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function p(){if(u)throw new Error(Fr(3));return a}function f(b){if(typeof b!="function")throw new Error(Fr(4));if(u)throw new Error(Fr(5));var T=!0;return c(),s.push(b),function(){if(T){if(u)throw new Error(Fr(6));T=!1,c();var y=s.indexOf(b);s.splice(y,1),o=null}}}function m(b){if(!Bde(b))throw new Error(Fr(7));if(typeof b.type>"u")throw new Error(Fr(8));if(u)throw new Error(Fr(9));try{u=!0,a=i(a,b)}finally{u=!1}for(var T=o=s,v=0;v"u")throw new Error(Fr(12));if(typeof n(void 0,{type:_g.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fr(13))})}function $de(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Fr(14));f[g]=T,p=p||T!==b}return p=p||a.length!==Object.keys(u).length,p?f:u}}function Tg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{e.bottomMessage=t.payload},setBottomMessageCloseTimeout:(e,t)=>{e.bottomMessageCloseTimeout&&clearTimeout(e.bottomMessageCloseTimeout),e.bottomMessageCloseTimeout=t.payload},setDialogMessage:(e,t)=>{e.dialogMessage=t.payload},setDialogEntryOn:(e,t)=>{e.dialogEntryOn=t.payload},setShowDialog:(e,t)=>{e.showDialog=t.payload},setDisplayBottomMessageOnBottom:(e,t)=>{e.displayBottomMessageOnBottom=t.payload}}}),{setBottomMessage:au,setBottomMessageCloseTimeout:Wk,setDialogMessage:X3,setDialogEntryOn:fpe,setShowDialog:Q1,setDisplayBottomMessageOnBottom:hpe}=eF.actions,gpe=eF.reducer;var tF={exports:{}},nF={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var J1=C;function mpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bpe=typeof Object.is=="function"?Object.is:mpe,Epe=J1.useState,vpe=J1.useEffect,ype=J1.useLayoutEffect,_pe=J1.useDebugValue;function Tpe(e,t){var n=t(),r=Epe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return ype(function(){i.value=n,i.getSnapshot=t,Z3(i)&&a({inst:i})},[e,n,t]),vpe(function(){return Z3(i)&&a({inst:i}),e(function(){Z3(i)&&a({inst:i})})},[e]),_pe(n),n}function Z3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bpe(e,n)}catch{return!0}}function Spe(e,t){return t()}var wpe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Spe:Tpe;nF.useSyncExternalStore=J1.useSyncExternalStore!==void 0?J1.useSyncExternalStore:wpe;tF.exports=nF;var Ape=tF.exports,rF={exports:{}},iF={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var om=C,Cpe=Ape;function xpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kpe=typeof Object.is=="function"?Object.is:xpe,Ipe=Cpe.useSyncExternalStore,Rpe=om.useRef,Npe=om.useEffect,Ope=om.useMemo,Dpe=om.useDebugValue;iF.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=Rpe(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=Ope(function(){function u(g){if(!c){if(c=!0,p=g,g=r(g),i!==void 0&&o.hasValue){var E=o.value;if(i(E,g))return f=E}return f=g}if(E=f,kpe(p,g))return E;var b=r(g);return i!==void 0&&i(E,b)?E:(p=g,f=b)}var c=!1,p,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,i]);var s=Ipe(e,a[0],a[1]);return Npe(function(){o.hasValue=!0,o.value=s},[s]),Dpe(s),s};rF.exports=iF;var Lpe=rF.exports;function Mpe(e){e()}let aF=Mpe;const Fpe=e=>aF=e,Ppe=()=>aF,qk=Symbol.for("react-redux-context"),Kk=typeof globalThis<"u"?globalThis:{};function Bpe(){var e;if(!C.createContext)return{};const t=(e=Kk[qk])!=null?e:Kk[qk]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const fl=Bpe();function b7(e=fl){return function(){return C.useContext(e)}}const oF=b7(),Upe=()=>{throw new Error("uSES not initialized!")};let sF=Upe;const $pe=e=>{sF=e},zpe=(e,t)=>e===t;function Hpe(e=fl){const t=e===fl?oF:b7(e);return function(r,i={}){const{equalityFn:a=zpe,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:p,stabilityCheck:f,noopCheck:m}=t();C.useRef(!0);const g=C.useCallback({[r.name](b){return r(b)}}[r.name],[r,f,o]),E=sF(c.addNestedSub,u.getState,p||u.getState,g,a);return C.useDebugValue(E),E}}const zt=Hpe();function jpe(){const e=Ppe();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const Yk={notify(){},get:()=>[]};function Gpe(e,t){let n,r=Yk;function i(f){return u(),r.subscribe(f)}function a(){r.notify()}function o(){p.onStateChange&&p.onStateChange()}function s(){return!!n}function u(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=jpe())}function c(){n&&(n(),n=void 0,r.clear(),r=Yk)}const p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>r};return p}const Vpe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wpe=Vpe?C.useLayoutEffect:C.useEffect;function qpe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const c=Gpe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:a}},[e,r,i,a]),s=C.useMemo(()=>e.getState(),[e]);Wpe(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const u=t||fl;return C.createElement(u.Provider,{value:o},n)}function lF(e=fl){const t=e===fl?oF:b7(e);return function(){const{store:r}=t();return r}}const Kpe=lF();function Ype(e=fl){const t=e===fl?Kpe:lF(e);return function(){return t().dispatch}}const us=Ype();$pe(Lpe.useSyncExternalStoreWithSelector);Fpe(yE.unstable_batchedUpdates);const Xpe=He(op)` + margin: auto; + margin-top: 8px; + margin-bottom: 16px; + display: grid; + width: 130px; + grid-template-columns: 22px 1fr; + align-items: center; + background-color: ${e=>`${e.color||"#be1b55"}${e.showStop?"33":""}`}; + + opacity: ${e=>e.isDisabled?.5:1}; + + border: 1px solid + ${e=>e.showStop?e.color||"#be1b55":"transparent"}; + + cursor: ${e=>e.isDisabled?"default":"pointer"}; + + &:hover:enabled { + background-color: ${e=>`${e.color||"#be1b55"}${e.showStop?"33":""}`}; + ${e=>e.isDisabled?"cursor: default;":` + opacity: 0.7; + `} + } +`;function Zpe(e){const t=zt(i=>i.config.vscMediaUrl),[n,r]=C.useState(localStorage.getItem("continueButtonColor"));return C.useEffect(()=>{const i=a=>{a.key==="continueButtonColor"&&r(a.newValue)};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),I.jsx(Xpe,{showStop:e.showStop,color:n,hidden:e.hidden,style:{fontSize:"10px"},className:"m-auto press-start-2p",onClick:e.disabled?void 0:e.onClick,isDisabled:e.disabled,children:e.showStop?I.jsxs(I.Fragment,{children:[I.jsx(uX,{width:"18px",height:"18px"}),"STOP"]}):I.jsxs(I.Fragment,{children:[t?I.jsx("img",{src:`${t}/play_button.png`,height:"18px"}):I.jsx(uD,{width:"18px",height:"18px"}),"CONTINUE"]})})}const Qpe={history:{timeline:[],current_index:3},user_input_queue:[],active:!1,slash_commands:[],adding_highlighted_code:!1,selected_context_items:[],config:{system_message:"",temperature:.5}},uF=Zp({name:"serverState",initialState:Qpe,reducers:{setServerState:(e,t)=>{e.selected_context_items=[],e.user_input_queue=[],e.slash_commands=[],Object.assign(e,t.payload)},temporarilyPushToUserInputQueue:(e,t)=>{e.user_input_queue=[...e.user_input_queue,t.payload]},temporarilyCreateNewUserInput:(e,t)=>{e.history.timeline=[...e.history.timeline,{step:{description:t.payload,name:"User Input",hide:!1},depth:0,active:!1,context_used:e.selected_context_items}]},temporarilyClearSession:(e,t)=>{e.history.timeline=[],e.selected_context_items=[],e.session_info={title:t.payload?"Loading session...":"New Session",session_id:"",date_created:""}}}}),{setServerState:Jpe,temporarilyPushToUserInputQueue:efe,temporarilyClearSession:sm,temporarilyCreateNewUserInput:tfe}=uF.actions,nfe=uF.reducer,cF=Zp({name:"misc",initialState:{highlightedCode:"",takenAction:!1,serverStatusMessage:"Continue Server Starting"},reducers:{setHighlightedCode:(e,t)=>{e.highlightedCode=t.payload},setTakenActionTrue:(e,t)=>{e.takenAction=!0},setServerStatusMessage:(e,t)=>{e.serverStatusMessage=t.payload}}}),{setHighlightedCode:rfe,setTakenActionTrue:pd,setServerStatusMessage:ife}=cF.actions,afe=cF.reducer,ofe=(e,t,n)=>{const r=tg(e);if(r&&e.key==="Backspace"){e.preventDefault();const i=e.target.selectionStart,a=e.target.selectionEnd;if(i!==a){const o=t.slice(0,i)+t.slice(a);n(o),e.target.selectionStart=i,e.target.selectionEnd=i}else{const o=t.lastIndexOf(` +`,i-1),s=t.slice(0,o+1)+t.slice(i);n(s),e.target.selectionStart=o+1,e.target.selectionEnd=o+1}}else if(r){const i=e.target.selectionStart,a=e.target.selectionEnd;let o=i,s=a;const u=e.shiftKey;if(e.key==="ArrowLeft"){const c=t.lastIndexOf(` +`,i-1);o=c===-1?0:c+1,s=u?a:o}else if(e.key==="ArrowRight"){const c=t.indexOf(` +`,i);s=c===-1?t.length:c,o=u?o:s}e.target.selectionStart=o,e.target.selectionEnd=s,e.preventDefault()}},sfe=(e,t,n)=>{const r=e.target.selectionStart,i=e.target.selectionEnd,a=tg(e);if(a&&e.key==="Backspace")if(e.preventDefault(),r!==i){const o=t.slice(0,r)+t.slice(i);n(o),e.target.selectionStart=r,e.target.selectionEnd=r}else{const o=t.slice(0,r).trimEnd().lastIndexOf(" "),s=t.slice(0,o+1)+t.slice(r);n(s),console.log(o),setTimeout(()=>{e.target.selectionStart=o+1,e.target.selectionEnd=o+1},10)}else if(a&&e.key==="c"){if(e.preventDefault(),e.stopPropagation(),r!==i){const o=t.slice(r,i);navigator.clipboard.writeText(o)}}else a&&e.key==="v"&&(e.preventDefault(),e.stopPropagation(),navigator.clipboard.readText().then(o=>{const s=t.slice(0,r)+o+t.slice(i);n(s);const u=r+o.length;setTimeout(()=>{e.target.selectionStart=u,e.target.selectionEnd=u},10)}))},lfe="continue_context_items",ufe=b2` + 0% { + background-position: 0px 0; + } + 100% { + background-position: 100em 0; + } +`,cfe=He.div` + border-radius: ${e=>e.borderRadius||"0"}; + padding: 1px; + background: ${e=>e.borderColor?e.borderColor:`repeating-linear-gradient( + 101.79deg, + #1BBE84 0%, + #331BBE 16%, + #BE1B55 33%, + #A6BE1B 55%, + #BE1B55 67%, + #331BBE 85%, + #1BBE84 99% + )`}; + animation: ${e=>e.loading?ufe:""} 6s linear infinite; + background-size: 200% 200%; + width: 100%; + display: flex; + flex-direction: row; + align-items: center; + margin-top: 8px; +`,dfe=He.button` + opacity: 0; + background-color: transparent; + border: none; + outline: none; + color: ${Ht}; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + height: 0; + aspect-ratio: 1; + padding: 0; + margin-left: -8px; + + border-radius: ${wt}; + + &:focus { + margin-left: 1px; + height: fit-content; + padding: 3px; + opacity: 1; + outline: 1px solid ${vt}; + } +`,qb=nr(),pfe=He.div` + padding: 0px; + background-color: ${Lt}; + border-radius: ${wt}; + margin: 8px; + overflow: hidden; + + & div { + background-color: ${Lt}; + } +`,ffe=He.p` + margin: 0; + padding: 4px 8px; + border-bottom: 1px solid ${vt}; + word-break: break-all; + font-size: ${nr()}px; + display: flex; + align-items: center; +`,hfe=He.textarea` + resize: none; + + padding: 8px; + font-size: ${e=>e.fontSize||qb}px; + font-family: inherit; + border-radius: ${wt}; + margin: 0; + height: auto; + width: 100%; + background-color: ${Lt}; + color: ${Ht}; + z-index: 1; + border: 0.5px solid + ${e=>e.inQueryForDynamicProvider?da:"transparent"}; + + &:focus { + outline: 0.5px solid + ${e=>e.inQueryForDynamicProvider?da:vt}; + border: 0.5px solid transparent; + background-color: ${e=>e.inQueryForDynamicProvider?`${da}22`:Lt}; + } + + &::placeholder { + color: ${vt}cc; + } +`,gfe=He.div` + position: absolute; + top: 14px; + right: 12px; + background-color: ${Lt}; + border-radius: ${wt}; + z-index: 100; +`,mfe=He.div` + position: absolute; + right: 0px; + top: 0px; + height: fit-content; + padding: 2px 4px; + border-radius: ${wt}; + z-index: 2; + color: white; + font-size: 12px; + + background-color: ${da}; +`,dF=300,bfe=He.ul` + ${e=>e.showAbove?`transform: translateY(-${e.ulHeightPixels+8}px);`:`transform: translateY(${(e.isMainInput?5:4)*(e.fontSize||qb)-(e.isMainInput?2:4)}px);`} + position: absolute; + background: ${Kt}; + color: ${Ht}; + max-height: ${dF}px; + margin-left: 1px; + width: calc(100% - 18px); + overflow-y: scroll; + overflow-x: hidden; + padding: 0; + ${({hidden:e})=>e&&"display: none;"} + border-radius: ${wt}; + outline: 0.5px solid ${vt}; + -ms-overflow-style: none; + font-size: ${e=>e.fontSize||qb}px; + + scrollbar-width: none; /* Firefox */ + z-index: 500; + + /* Hide scrollbar for Chrome, Safari and Opera */ + &::-webkit-scrollbar { + display: none; + } +`,Xk=He.li` + background-color: ${({highlighted:e})=>e?da+"66":Lt}; + ${({selected:e})=>e&&"font-weight: bold;"} + padding: 0.5rem 0.5rem; + display: flex; + flex-direction: row; + align-items: center; + ${({isLastItem:e})=>e&&"border-bottom: 1px solid gray;"} + cursor: pointer; + z-index: 500; +`,Zk=ut.forwardRef((e,t)=>{var Se,Me,ze,Ke,jt,ue,ye,We,at,Qe;const n=zt(Y=>Y.serverState.meilisearch_url||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const Y=new wde({host:n});i(Y)},[n]);const a=C.useContext(Ya),o=us(),s=zt(Y=>Y.config.workspacePaths),u=zt(Y=>Y.serverState.history),[c,p]=ut.useState([]),[f,m]=ut.useState(0),[g,E]=ut.useState([]),b=ut.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Se=b.current)==null?void 0:Se.scrollHeight,(Me=b.current)==null?void 0:Me.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[T,v]=C.useState(!1),[y,w]=C.useState(void 0),[A,D]=C.useState(void 0),k=zt(Y=>Y.serverState.slash_commands).map(Y=>({name:`/${Y.name}`,description:Y.description})),R=zt(Y=>e.index?Y.serverState.history.timeline[e.index].context_used||[]:Y.serverState.selected_context_items),B=zt(Y=>Y.serverState.history.timeline);C.useEffect(()=>{T||(w(void 0),D(void 0))},[T]);const W=zt(Y=>Y.serverState.context_providers),P=()=>{v(!1),w(void 0),D(void 0),fe.setInputValue("@")};C.useEffect(()=>{y||E((W==null?void 0:W.map(Y=>({name:Y.display_title,description:Y.description,id:Y.title})).sort((Y,se)=>Y.id==="file"?-1:1))||[])},[y]);const[Q,z]=C.useState(""),le=C.useCallback(({inputValue:Y,highlightedIndex:se})=>{var j;if(!Y){E([]),w(void 0),v(!1);return}if(Q===""&&(W!=null&&W.some($=>$.display_title===Y))){fe.setInputValue(""),z("");return}if(z(Y),A&&!Y.startsWith(`@${A.title}`)&&D(void 0),(j=e.onInputValueChange)==null||j.call(e,Y),Y.endsWith("@")||T){const $=(Y==null?void 0:Y.split("@"))||[];if($.length>1){v(!0);const J=$[$.length-1]||"";if(y&&!Y.endsWith("@")){const be=J.split(" ");he(y.title,be.length>1?be[1]:"").then(Fe=>{E(Fe)})}else{const be=(W==null?void 0:W.filter(Fe=>`@${Fe.title}`.toLowerCase().startsWith(Y.toLowerCase())||`@${Fe.display_title}`.toLowerCase().startsWith(Y.toLowerCase())).map(Fe=>({name:Fe.display_title,description:Fe.description,id:Fe.title})).sort((Fe,De)=>Fe.id==="file"?-1:1))||[];E(be),v(!0)}return}else v(!1),w(void 0)}w(void 0),E((k==null?void 0:k.filter($=>{const J=$.name.toLowerCase(),be=Y.toLowerCase();return J.startsWith(be)&&J!==be}))||[]),(Y.startsWith("/")||Y.startsWith("@"))&&o(pd(null))},[k,T,y,A]),he=async(Y,se)=>{const j=s&&s.length>0?`workspace_dir IN [ ${s.map($=>`"${$}"`).join(", ")} ] AND provider_name = '${Y}'`:void 0;try{const $=await(r==null?void 0:r.index(lfe).search(se,{filter:j}));return($==null?void 0:$.hits.map(J=>({name:J.name,description:J.description,id:J.id,content:J.content})))||[]}catch($){return console.log("Error searching context items",$),[]}},{getInputProps:de,...fe}=LM({onInputValueChange:le,items:g,itemToString(Y){return Y?Y.name:""}});C.useEffect(()=>{fe.highlightedIndex<0&&fe.setHighlightedIndex(0)},[fe.inputValue]);const Z=ut.useRef(null),V=ut.useRef(null),ce=()=>{var Y;return(((Y=Z.current)==null?void 0:Y.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>dF};C.useImperativeHandle(t,()=>fe,[fe]);const N=ut.useRef(null),me=C.useCallback(()=>{var $;if(ve(!0),!N.current)return;const Y=N.current.querySelectorAll(`.pill-button-${e.index||"main"}`),se=Array.from(Y),j=se.findIndex(J=>J===document.activeElement);if(j===se.length-1)($=b.current)==null||$.focus();else if(j!==-1){const J=se[(j+1)%se.length];J==null||J.focus()}else{const J=se[0];J==null||J.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const Y=se=>{se.key==="Tab"&&(se.preventDefault(),me())};return b.current.addEventListener("keydown",Y),()=>{var se;(se=b.current)==null||se.removeEventListener("keydown",Y)}}},[b.current]),C.useEffect(()=>{e.value&&fe.setInputValue(e.value)},[e.value,fe.setInputValue]);const[oe,O]=C.useState(!1);C.useLayoutEffect(()=>{V.current&&fe.setHighlightedIndex(0)},[g,fe.setHighlightedIndex,V.current]);const[re,Te]=C.useState(!1),[K,xe]=C.useState(!1);C.useEffect(()=>{const Y=j=>{j.key==="Meta"&&Te(!0)},se=j=>{j.key==="Meta"&&Te(!1)};return window.addEventListener("keydown",Y),window.addEventListener("keyup",se),()=>{window.removeEventListener("keydown",Y),window.removeEventListener("keyup",se)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const Y=se=>{var j;se.data.type==="focusContinueInput"?(b.current.focus(),o(pd(null))):se.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(j=b.current)!=null&&j.value.startsWith("/edit")||fe.setInputValue("/edit "),o(pd(null))):se.data.type==="focusContinueInputWithNewSession"&&(o(sm(!1)),a==null||a.loadSession(void 0),o(pd(null)))};return window.addEventListener("message",Y),()=>{window.removeEventListener("message",Y)}},[b.current,e.isMainInput]);const ne=ut.useRef(null),Le=C.useCallback((Y,se)=>{e.isMainInput?a==null||a.selectContextItem(Y,se):e.index&&(a==null||a.selectContextItemAtIndex(Y,se,e.index))},[a,e.index]),Re=C.useCallback(Y=>{const se=g[fe.highlightedIndex],j=se==null?void 0:se.name,$=W.find(J=>J.display_title===j);if($){if($.dynamic&&$.requires_query){D($),fe.setInputValue(`@${$.title} `),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}else if($.dynamic){if(!se.id)return;const J=fe.inputValue.split("@"),be=J[J.length-1];if(Le(se.id,be),fe.inputValue.includes("@")){const Fe=W.find(De=>De.title===se.id);!y&&!(Fe!=null&&Fe.dynamic)?(fe.setInputValue(`@${se.id} `),w(Fe)):fe.setInputValue("")}fe.setInputValue(""),v(!1),w(void 0),D(void 0),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}}else{if(y&&se.id){Le(se.id,""),fe.setInputValue(""),v(!1),w(void 0),D(void 0),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}w($),fe.setInputValue(`@${$.title} `),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault(),he($.title,"").then(J=>E(J))},[g,fe.highlightedIndex,W,y,fe.inputValue,Le]),[Xe,Ve]=C.useState(!1),[dt,ot]=C.useState(!1),[Ge,pt]=C.useState(void 0),[U,ie]=C.useState(void 0),pe=ut.useRef(null),[ke,ve]=C.useState(!1);return C.useEffect(()=>{K||ve(!1)},[K]),I.jsxs("div",{ref:pe,children:[R.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:vt,fontSize:"10px",backgroundColor:Kt,paddingLeft:"12px",paddingTop:nr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var Y;fe.setInputValue("@"),(Y=b.current)==null||Y.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ke=fe.inputValue)==null?void 0:Ke.startsWith("/edit"))||K&&re&&((jt=fe.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||R.length>0&&ke?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:N,style:{backgroundColor:Kt},children:[R.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:Y=>{ot(se=>!se)},id:"toggle-context-div",children:dt?I.jsx(TY,{width:"14px",height:"14px",color:vt}):I.jsx(AY,{width:"14px",height:"14px",color:vt})}),I.jsx(dfe,{className:R.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var Y;a==null||a.deleteContextWithIds(R.map(se=>se.description.id),e.index),(Y=b.current)==null||Y.focus(),pt(void 0),ie(void 0)},onKeyDown:Y=>{var se;Y.key==="Backspace"&&(a==null||a.deleteContextWithIds(R.map(j=>j.description.id),e.index),(se=b.current)==null||se.focus(),pt(void 0),ie(void 0))},children:I.jsx(pD,{width:"1.4em",height:"1.4em"})}),(e.isMainInput?R:B[e.index].context_used||[]).map((Y,se)=>{var j,$,J,be;return I.jsx(rde,{areMultipleItems:R.length>1,item:Y,editing:Y.editing&&(($=(j=b.current)==null?void 0:j.value)==null?void 0:$.startsWith("/edit")),editingAny:(be=(J=b.current)==null?void 0:J.value)==null?void 0:be.startsWith("/edit"),stepIndex:e.index,index:se,onDelete:()=>{var Fe;a==null||a.deleteContextWithIds([Y.description.id],e.index),(Fe=b.current)==null||Fe.focus(),(Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name||Y.description.id.item_id===(Ge==null?void 0:Ge.description.id.item_id)&&(Ge==null?void 0:Ge.description.id.provider_name)===Y.description.id.provider_name)&&(pt(void 0),ie(void 0))},onClick:Fe=>{Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name?ie(void 0):ie(Y)},onBlur:()=>{ie(void 0)},toggleViewContent:()=>{pt(Fe=>{if(!Fe)return Y;if(!(Fe.description.id.item_id===Y.description.id.item_id&&Fe.description.id.provider_name===Y.description.id.provider_name))return Y})},previewing:Y.description.id.item_id===(Ge==null?void 0:Ge.description.id.item_id)&&(Ge==null?void 0:Ge.description.id.provider_name)===Y.description.id.provider_name,focusing:Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name,prefixInputWithEdit:Fe=>{var De,tt,Je;!Fe&&((De=b.current)!=null&&De.value.startsWith("/edit"))&&fe.setInputValue((tt=b.current)==null?void 0:tt.value.replace("/edit ","")),!fe.inputValue.startsWith("/edit")&&(fe.setInputValue(`/edit ${fe.inputValue}`),(Je=b.current)==null||Je.focus())}},`${Y.description.id.item_id}${se}`)})]}):R.length>0&&I.jsxs("div",{onClick:()=>{var Y;(Y=b.current)==null||Y.focus(),ve(!0)},style:{color:vt,fontSize:"10px",backgroundColor:Kt,paddingLeft:"12px",cursor:"default",paddingTop:nr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",R.length," ","context item",R.length===1?"":"s"]}),Ge&&I.jsx("pre",{className:"m-0",children:I.jsx(pg,{source:`\`\`\`${qA(Ge.description.description)} +${Ge.content} +\`\`\``,maxHeight:200})}),dt&&I.jsx("div",{children:R.map(Y=>I.jsxs(pfe,{children:[I.jsxs(ffe,{children:[I.jsx($b,{height:"20px",width:"20px",filename:Y.description.name}),Y.description.description]}),I.jsx("pre",{className:"m-0",children:I.jsx(pg,{source:`\`\`\`${qA(Y.description.description)} +${Y.content} +\`\`\``,maxHeight:200})})]}))}),I.jsxs("div",{className:"flex px-2 relative",style:{backgroundColor:Kt},ref:Z,children:[I.jsxs(cfe,{loading:e.active||!1,isFirst:!1,isLast:!1,borderColor:e.active?void 0:Kt,borderRadius:wt,children:[I.jsx(hfe,{onClick:()=>{var Y;(Y=b.current)==null||Y.focus()},onMouseEnter:()=>O(!0),onMouseLeave:Y=>{var se;Y.relatedTarget===ne.current||(se=ne.current)!=null&&se.contains(Y.relatedTarget)||O(!1)},rows:e.isMainInput?void 0:1,inQueryForDynamicProvider:typeof A<"u",fontSize:nr(),disabled:e.disabled,placeholder:"Ask a question, '/' for slash commands, '@' to add context",...de({onCompositionStart:()=>Ve(!0),onCompositionEnd:()=>Ve(!1),onChange:Y=>{},onFocus:Y=>{xe(!0),o(au(void 0))},onBlur:Y=>{var se,j;(se=pe.current)!=null&&se.contains(Y.relatedTarget)||(j=document.getElementById("toggle-context-div"))!=null&&j.contains(Y.relatedTarget)||xe(!1)},onKeyDown:Y=>{var se,j;if(o(au(void 0)),Y.key==="Enter"&&Y.shiftKey)Y.nativeEvent.preventDownshiftDefault=!0,v(!1);else if(Y.key==="Enter"&&(!fe.isOpen||g.length===0)&&!Xe){const $=fe.inputValue;if(A){const J=$.split("@");Le(A.title,J[J.length-1]),v(!1),fe.setInputValue("");return}else $!==""&&(m(c.length+1),p([...c,$])),Y.nativeEvent.preventDownshiftDefault=!0,e.onEnter&&e.onEnter(Y,$);v(!1)}else if(Y.key==="Enter"&&T)Re(Y);else if(Y.key==="Tab"&&fe.isOpen&&g.length>0&&((se=g[fe.highlightedIndex])!=null&&se.name.startsWith("/")))fe.setInputValue(g[0].name),Y.preventDefault();else if(Y.key==="Tab")Y.nativeEvent.preventDownshiftDefault=!0;else{if((Y.key==="ArrowUp"||Y.key==="ArrowDown")&&g.length>0)return;if(Y.key==="ArrowUp"){if(f==0||Y.currentTarget.selectionStart!==0){Y.nativeEvent.preventDownshiftDefault=!0;return}else f==c.length&&(c.length===0||c[c.length-1]!==Y.currentTarget.value)&&p([...c,Y.currentTarget.value]);fe.setInputValue(c[f-1]),m($=>$-1),v(!1)}else if(Y.key==="ArrowDown"){if(f===c.length||Y.currentTarget.selectionStart!==Y.currentTarget.value.length){Y.nativeEvent.preventDownshiftDefault=!0;return}fMath.min($+1,c.length)),v(!1)}else if(Y.key==="Escape"){if(y){P(),Y.nativeEvent.preventDownshiftDefault=!0;return}else if(A){P(),Y.nativeEvent.preventDownshiftDefault=!0;return}v(!1),fe.isOpen&&g.length>0?(fe.closeMenu(),Y.nativeEvent.preventDownshiftDefault=!0):(Y.nativeEvent.preventDownshiftDefault=!0,(j=b.current)==null||j.blur(),rl("focusEditor",{}))}else Y.key==="Home"||Y.key==="End"?Y.nativeEvent.preventDownshiftDefault=!0:localStorage.getItem("ide")==="jetbrains"&&(_2()==="mac"?ofe(Y,fe.inputValue,fe.setInputValue):sfe(Y,fe.inputValue,fe.setInputValue))}},onClick:()=>{o(au(void 0))},ref:b})}),e.isMainInput||I.jsx(gfe,{ref:ne,children:oe&&I.jsx("div",{className:"flex",children:I.jsxs(I.Fragment,{children:[B.filter((Y,se)=>{var j;return((j=e.groupIndices)==null?void 0:j.includes(se))&&Y.logs}).some(Y=>Y.logs.length>0)&&I.jsx(vi,{onClick:Y=>{Y.stopPropagation(),e.groupIndices&&(a==null||a.showLogsAtIndex(e.groupIndices[1]))},text:"Inspect Prompt",children:I.jsx(dY,{width:"1.3em",height:"1.3em"})}),I.jsx(vi,{onClick:Y=>{var se;Y.stopPropagation(),e.active&&e.groupIndices?a==null||a.deleteAtIndex(e.groupIndices[1]):(se=e.onDelete)==null||se.call(e)},text:e.active?`Stop (${ZK()}⌫)`:"Delete",children:e.active?null:I.jsx(T2,{width:"1.4em",height:"1.4em"})})]})})})]}),A&&I.jsxs(mfe,{children:["Enter ",A.display_title," Query"]}),I.jsxs(bfe,{...fe.getMenuProps({ref:V}),isMainInput:e.isMainInput,showAbove:ce(),ulHeightPixels:((ue=V.current)==null?void 0:ue.getBoundingClientRect().height)||0,hidden:!fe.isOpen||g.length===0||((ye=b.current)==null?void 0:ye.value)==="",fontSize:nr(),children:[y&&I.jsxs("div",{style:{backgroundColor:Lt,borderBottom:`0.5px solid ${vt}`,display:"flex",gap:"4px",position:"sticky",top:"0px"},className:"py-2 px-4 my-0",children:[I.jsx(ac,{width:"1.4em",height:"1.4em",className:"cursor-pointer",onClick:Y=>{var se;P(),(se=b.current)==null||se.focus()}}),y.display_title," -"," ",y.description]}),fe.isOpen&&g.map((Y,se)=>I.jsxs(Xk,{style:{borderTop:se===0?"none":`0.5px solid ${vt}`},...fe.getItemProps({item:Y,index:se}),highlighted:fe.highlightedIndex===se,selected:fe.selectedItem===Y,onClick:j=>{var $;Re(j),j.stopPropagation(),j.preventDefault(),($=b.current)==null||$.focus()},children:[I.jsxs("span",{className:"flex justify-between w-full items-center",children:[I.jsxs("div",{className:"flex items-center justify-center",children:[y&&I.jsx($b,{height:"20px",width:"20px",filename:Y.name}),Y.name," "]}),I.jsx("span",{style:{color:vt,float:"right",textAlign:"right"},children:Y.description})]}),(W==null?void 0:W.filter(j=>!j.dynamic||j.requires_query).find(j=>j.title===Y.id))&&I.jsx(lY,{width:"1.2em",height:"1.2em",color:vt,className:"ml-2 flex-shrink-0"})]},`${Y.name}${se}`)),fe.isOpen&&g.length===0&&I.jsx(Xk,{highlighted:!1,selected:!1,isLastItem:!1,children:I.jsx("span",{style:{color:vt,float:"right",textAlign:"right",display:"flex",width:"100%",cursor:"default"},children:"No items found"})},"empty-items-li")]})]}),e.isMainInput&&I.jsx(Zpe,{disabled:!((We=b.current)!=null&&We.value)&&!(typeof(u==null?void 0:u.current_index)<"u"&&((at=u.timeline[u.current_index])!=null&&at.active)),onClick:()=>{var Y,se;typeof(u==null?void 0:u.current_index)<"u"&&((Y=u.timeline[u.current_index])!=null&&Y.active)?a==null||a.deleteAtIndex(u.current_index):(se=e.onEnter)==null||se.call(e,void 0)},showStop:typeof(u==null?void 0:u.current_index)<"u"&&((Qe=u.timeline[u.current_index])==null?void 0:Qe.active)||!1})]})});function Qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t=0||(p[u]=o[u]);return p}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vfe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function fF(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Sg(e);if(t){var i=Sg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vfe(this,n)}}function yo(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,o,s=[],u=!0,c=!1;try{for(i=i.call(n);!(u=(a=i.next()).done)&&(s.push(a.value),!r||s.length!==r);u=!0);}catch(p){c=!0,o=p}finally{try{u||i.return==null||i.return()}finally{if(c)throw o}}return s}}(e,t)||E7(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yb(e){return function(t){if(Array.isArray(t))return Xb(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||E7(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E7(e,t){if(e){if(typeof e=="string")return Xb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xb(e,t):void 0}}function Xb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var fa={DEBUG:!1,LIB_VERSION:"1.75.2"};/** + * uuidv7: An experimental implementation of the proposed UUID Version 7 + * + * @license Apache-2.0 + * @copyright 2021-2023 LiosK + * @packageDocumentation + * + * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts + */Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});var eI="0123456789abcdef",yfe=function(){function e(t){if(Bn(this,e),this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}return Un(e,[{key:"toString",value:function(){for(var t="",n=0;n>>4)+eI.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),_fe=function(){function e(){Bn(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new Tfe)}return Un(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return yfe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),hF=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(hF(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),Sfe=function(){return(tI||(tI=new _fe)).generate()},gF=Array.prototype,mF=Object.prototype,v7=mF.toString,wfe=mF.hasOwnProperty,ht=typeof window<"u"?window:{},Wl=ht.navigator||{userAgent:""},Hn=ht.document||{},ra=Wl.userAgent,Afe=["localhost","127.0.0.1"],nI=gF.forEach,rI=gF.indexOf,Cfe=Array.isArray,y7={},kn={log:function(){if(fa.DEBUG&&!Ua(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},kfe=["$performance_raw"];function Ife(e,t){return n=e,r=function(a,o){return o&&kfe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),Wo(o)?(u=[],Zo(o,function(c){u.push(a(c))})):(u={},fn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function _7(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=Rfe(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},iI=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=ra,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return Sfe().toString()}},Nfe=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},aI=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{kn.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},oI=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Fd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;bF(p)&&(m=p(f));var E=c.call(u,f);return m!==!1&&E!==!1||(g=!1),g}}}(t,r,s)}else kn.error("No valid element provided to register_event")}}();function T7(e,t){var n=function(){var r=Hn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=Hn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):Hn.body.appendChild(r)};Hn.body?n():Hn.addEventListener("DOMContentLoaded",n)}var yr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return fn(t,function(r){var i=aI(Hn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=Hn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=yr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=aI(Hn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||pn(e," OPR/")?pn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":pn(e,"IEMobile")||pn(e,"WPDesktop")?"Internet Explorer Mobile":pn(e,"SamsungBrowser/")?"Samsung Internet":pn(e,"Edge")||pn(e,"Edg/")?"Microsoft Edge":pn(e,"FBIOS")?"Facebook Mobile":pn(e,"Chrome")?"Chrome":pn(e,"CriOS")?"Chrome iOS":pn(e,"UCWEB")||pn(e,"UCBrowser")?"UC Browser":pn(e,"FxiOS")?"Firefox iOS":pn(t,"Apple")?pn(e,"Mobile")?"Mobile Safari":"Safari":pn(e,"Android")?"Android Mobile":pn(e,"Konqueror")?"Konqueror":pn(e,"Firefox")?"Firefox":pn(e,"MSIE")||pn(e,"Trident/")?"Internet Explorer":pn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[yr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Wl.language||Wl.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return Hn.referrer||"$direct"},referringDomain:function(){if(!Hn.referrer)return"$direct";var e=Hn.createElement("a");return e.href=Hn.referrer,e.host},properties:function(){var e=yr.os(ra),t=e.os_name,n=e.os_version;return Pr(Jb({$os:t,$os_version:n,$browser:yr.browser(ra,Wl.vendor,ht.opera),$device:yr.device(ra),$device_type:yr.deviceType(ra)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:yr.browserVersion(ra,Wl.vendor,ht.opera),$browser_language:yr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:fa.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:vF()/1e3})},people_properties:function(){var e=yr.os(ra),t=e.os_name,n=e.os_version;return Pr(Jb({$os:t,$os_version:n,$browser:yr.browser(ra,Wl.vendor,ht.opera)}),{$browser_version:yr.browserVersion(ra,Wl.vendor,ht.opera)})}};function wg(e){switch(ol(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Ag(e){var t="";return Eh(e)&&!TF(e)&&e.childNodes&&e.childNodes.length&&fn(e.childNodes,function(n){_F(n)&&n.textContent&&(t+=Zb(n.textContent).split(/(\s+)/).filter(S1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Zb(t)}function sI(e){return!!e&&e.nodeType===1}function ou(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function _F(e){return!!e&&e.nodeType===3}function lI(e){return!!e&&e.nodeType===11}var Q3=["a","button","form","input","select","textarea","label"];function Eh(e){for(var t=e;t.parentNode&&!ou(t,"body");t=t.parentNode){var n=wg(t).split(" ");if(pn(n,"ph-sensitive")||pn(n,"ph-no-capture"))return!1}if(pn(wg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function TF(e){return!!(ou(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||ou(e,"select")||ou(e,"textarea")||e.getAttribute("contenteditable")==="true")}function S1(e){return!(e===null||Ua(e)||typeof e=="string"&&(e=Zb(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function uI(e){var t=Ag(e);return S1(t="".concat(t," ").concat(SF(e)).trim())?t:""}function SF(e){var t="";return e&&e.childNodes&&e.childNodes.length&&fn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Ag(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(SF(n)).trim())}catch(a){console.error(a)}}),t}var Ofe=function(){function e(t){Bn(this,e),this.clicks=[],this.enabled=t}return Un(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),Dfe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,po={is_supported:function(){return!0},error:function(e){kn.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=uI(e):i.$el_text=Ag(e));var a=wg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),fn(e.attributes,function(c){var p;TF(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&S1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return fn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),S1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return fn(this._customProperties,function(r){fn(r.event_selectors,function(i){fn(document.querySelectorAll(i),function(a){pn(e,a)&&Eh(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if(_F(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,E){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||ou(g,"html")||!sI(g))return!1;if(b!=null&&b.url_allowlist){var T=window.location.href,v=b.url_allowlist;if(v&&!v.some(function(z){return T.match(z)}))return!1}if(b!=null&&b.dom_event_allowlist){var y=b.dom_event_allowlist;if(y&&!y.some(function(z){return E.type===z}))return!1}if(b!=null&&b.element_allowlist){var w=b.element_allowlist;if(w&&!w.some(function(z){return g.tagName.toLowerCase()===z}))return!1}if(b!=null&&b.css_selector_allowlist){var A=b.css_selector_allowlist;if(A&&!A.some(function(z){return g.matches(z)}))return!1}for(var D=!1,k=[g],R=!0,B=g;B.parentNode&&!ou(B,"body");)if(lI(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(R=B.parentNode||!1))break;if(Q3.indexOf(R.tagName.toLowerCase())>-1)D=!0;else{var W=window.getComputedStyle(R);W&&W.getPropertyValue("cursor")==="pointer"&&(D=!0)}k.push(R),B=R}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&E.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return E.type==="submit";case"input":case"select":case"textarea":return E.type==="change"||E.type==="click";default:return D?E.type==="click":E.type==="click"&&(Q3.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!ou(s,"body");)lI(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(fn(o,function(g){var E=Eh(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=E&&S1(u)&&u),pn(wg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var b=r._getAugmentPropertiesFromElement(g);Pr(p,b)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=uI(a):c[0].$el_text=Ag(a)),u&&(c[0].attr__href=u),f)return!1;var m=Pr(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Fd(document,"submit",n,!1,!0),Fd(document,"change",n,!1,!0),Fd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new Ofe(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?kn.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},cI,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=Ua(t)?10:t,n=Ua(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Cg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Cg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(r9);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},r9,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(A1)||{};this.instance.register(ct({},A1,yt(yt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(A1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Ps)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=yt(yt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Ps,yt(yt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Ps)||{};this.instance.register(ct({},Ps,yt(yt({},n),{},ct({},t,{}))))}else this.instance.unregister(Ps)}}]),e}(),Bfe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",mI=2,Ufe=4,AF=3,$fe=6,zfe=0,Hfe=5e6,jfe="rrweb/console@1",oo,Gfe=Un(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bn(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,E;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(E=o.adds)===null||E===void 0?void 0:E.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==AF||o.data.source!==zfe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,E=yo(i.getNodeOrRelevantParent(p.id),2),b=E[0],T=E[1];return i.mutationBuckets[b]===0?!1:(i.mutationBuckets[b]=(f=i.mutationBuckets[b])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[b]=Math.max(i.mutationBuckets[b]-1,0),i.mutationBuckets[b]===0&&(i.loggedTracker[b]||(i.loggedTracker[b]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,b,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Vfe="/s/",CF="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(oo||(oo={}));var Wfe=[oo.MouseMove,oo.MouseInteraction,oo.Scroll,oo.ViewportResize,oo.Input,oo.TouchMove,oo.MediaInteraction,oo.Drag],qfe=function(){function e(t){var n=this;Bn(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Vfe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return Un(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(t9),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(dI),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(pI);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},t9,!!t.sessionRecording),ct(o,dI,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,pI,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:vF()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?T7(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(fa.LIB_VERSION),function(r){if(r)return kn.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===AF&&Wfe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[mI,Ufe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return kn.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aHfe){var c,p=as(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Bfe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&ol(u)==="object"&&u.type===$fe&&ol(u.data)==="object"&&u.data.plugin===jfe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:CF,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===mI}})}}]),e}(),no={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Kfe=["first-input","navigation","paint","resource"],Yfe=["/s/","/e/"],Xfe=function(){function e(t){Bn(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return Un(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!Afe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Kfe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else kn.log("PostHog Peformance observer not started because we are on localhost.");else kn.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if(Yfe.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[no.timeOrigin]=s,o[no.timestamp]=Math.floor(s+t.startTime),no)a[u]!==void 0&&(o[no[u]]=a[u]);if(this.capturePerformanceEvent(o),Zfe(t)){var c,p=as(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},no.timeOrigin,s),ct(f,no.timestamp,Math.floor(s+t.startTime)),ct(f,no.name,m.name),ct(f,no.duration,m.duration),ct(f,no.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[no.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Zfe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},Qfe=function(){function e(t){Bn(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return Un(e,[{key:"call",value:function(){var t=this,n=_7(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(A1),group_properties:this.instance.get_property(Ps),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),zs.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=as(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=as(t.siteApps);try{var m=function(){var g=c.value,E=g.id,b=g.url,T=[p,p[p.length-1]==="/"&&b[0]==="/"?b.substring(1):b].join("");window["__$$ph_site_app_".concat(E)]=a.instance,T7(T,function(v){v&&console.error("Error while initializing PostHog app with config id ".concat(E),v)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Jfe=["https://app.posthog.com","https://eu.posthog.com"],e0e=["source"],t0e=function(){function e(t){Bn(this,e),this.instance=t}return Un(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(yt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=oI(t.hash,"__posthog")||oI(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Jfe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=yt(yt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=Efe(s,e0e);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),T7(a,function(c){c?kn.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Fd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),n0e="__ph_opt_in_out_";function r0e(e,t){kF(!0,e,t)}function i0e(e,t){kF(!1,e,t)}function a0e(e,t){return xF(e,t)==="1"}function bI(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return fn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){pn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||xF(e,t)==="0"}function o0e(e,t){S7(t=t||{}).remove(w7(e,t),!!t.crossSubdomainCookie)}function S7(e){return(e=e||{}).persistenceType==="localStorage"?qn:e.persistenceType==="localStorage+cookie"?e9:po}function w7(e,t){return((t=t||{}).persistencePrefix||n0e)+e}function xF(e,t){return S7(t).get(w7(e,t))}function kF(e,t,n){EF(t)&&t.length?(S7(n=n||{}).set(w7(t,n),e?1:0,xfe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var IF=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Bn(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return Un(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),s0e=function(e){pF(n,IF);var t=fF(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Bn(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return Un(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;fn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(Yb(a.filter(function(o){return o.url.indexOf("/e")===0})),Yb(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,yt(yt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return fn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),l0e=function(){function e(t){Bn(this,e),this.enabled=t,this.metrics={}}return Un(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Pi=Uint8Array,Jr=Uint16Array,ec=Uint32Array,A7=new Pi([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),C7=new Pi([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),EI=new Pi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),RF=function(e,t){for(var n=new Jr(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Tn)<<1;zl=(61680&(zl=(52428&zl)>>>2|(13107&zl)<<2))>>>4|(3855&zl)<<4,l9[Tn]=((65280&zl)>>>8|(255&zl)<<8)>>>1}var Pd=function(e,t,n){for(var r=e.length,i=0,a=new Jr(t);i>>u]=c}else for(o=new Jr(r),i=0;i>>15-e[i];return o},bu=new Pi(288);for(Tn=0;Tn<144;++Tn)bu[Tn]=8;for(Tn=144;Tn<256;++Tn)bu[Tn]=9;for(Tn=256;Tn<280;++Tn)bu[Tn]=7;for(Tn=280;Tn<288;++Tn)bu[Tn]=8;var xg=new Pi(32);for(Tn=0;Tn<32;++Tn)xg[Tn]=5;var Yl,c0e=Pd(bu,9,0),d0e=Pd(xg,5,0),OF=function(e){return(e/8>>0)+(7&e&&1)},DF=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof Jr?Jr:e instanceof ec?ec:Pi)(n-t);return r.set(e.subarray(t,n)),r},$o=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},Jc=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},t4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new Jr(m+1),E=p0e(n[p-1],g,0);if(E>t){r=0;var b=0,T=E-t,v=1<t))break;b+=v-(1<>>=T;b>0;){var w=a[r].s;g[w]=0&&b;--r){var A=a[r].s;g[A]==t&&(--g[A],++b)}E=t}return[new Pi(g),E]},p0e=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},yI=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Jr(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},ed=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[EI[z-1]];--z);var le,he,de,fe,Z=c+5<<3,V=ed(i,bu)+ed(a,xg)+o,ce=ed(i,m)+ed(a,b)+o+14+3*z+ed(R,P)+(2*R[16]+3*R[17]+7*R[18]);if(Z<=V&&Z<=ce)return yh(t,p,e.subarray(u,u+c));if($o(t,p,1+(ce15&&($o(t,p,O[B]>>>5&127),p+=O[B]>>>12)}}}else le=c0e,he=bu,de=d0e,fe=xg;for(B=0;B255){re=r[B]>>>18&31,Jc(t,p,le[re+257]),p+=he[re+257],re>7&&($o(t,p,r[B]>>>23&31),p+=A7[re]);var Te=31&r[B];Jc(t,p,de[Te]),p+=fe[Te],Te>3&&(Jc(t,p,r[B]>>>5&8191),p+=C7[Te])}else Jc(t,p,le[r[B]]),p+=he[r[B]];return Jc(t,p,le[256]),p+he[256]},f0e=new ec([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),h0e=new Pi(0),g0e=function(){for(var e=new ec(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),m0e=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},b0e=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Pi(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),E=0;if(!o||f<8)for(var b=0;b<=f;b+=65535){var T=b+65535;T>>13,w=8191&v,A=(1<7e3||de>24576)&&me>423){E=_I(a,g,0,P,Q,z,he,de,Z,b-Z,E),de=le=he=0,Z=b;for(var oe=0;oe<286;++oe)Q[oe]=0;for(oe=0;oe<30;++oe)z[oe]=0}var O=2,re=0,Te=w,K=ce-N&32767;if(me>2&&V==W(b-K))for(var xe=Math.min(y,me)-1,ne=Math.min(32767,b),Le=Math.min(258,me);K<=ne&&--Te&&ce!=N;){if(a[b+O]==a[b+O-K]){for(var Re=0;ReO){if(O=Re,re=K,Re>xe)break;var Xe=Math.min(K,Re-2),Ve=0;for(oe=0;oeVe&&(Ve=ot,N=dt)}}}K+=(ce=N)-(N=D[ce])+32768&32767}if(re){P[de++]=268435456|s9[O]<<18|vI[re];var Ge=31&s9[O],pt=31&vI[re];he+=A7[Ge]+C7[pt],++Q[257+Ge],++z[pt],fe=b+O,++le}else P[de++]=a[b],++Q[a[b]]}}E=_I(a,g,p,P,Q,z,he,de,Z,b-Z,E),p||(E=yh(g,E,h0e))}return DF(m,0,u+OF(E)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},u9=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},E0e=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&u9(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},v0e=function(e){return 10+(e.filename&&e.filename.length+1||0)};function y0e(e,t){t===void 0&&(t={});var n=m0e(),r=e.length;n.p(e);var i=b0e(e,t,v0e(t),8),a=i.length;return E0e(i,t),u9(i,a-8,n.d()),u9(i,a-4,r),i}function _0e(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Pi(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Pi(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return DF(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(Yl||(Yl={}));var T0e=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=fa.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=as(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return fn(c,function(E,b){p=encodeURIComponent(E.toString()),f=encodeURIComponent(b),g[g.length]=f+"="+p}),g.join(m)}(r)},x7=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},LF=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var E=x7(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),fn(r,function(b,T){g.setRequestHeader(T,b)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var b;try{b=JSON.parse(g.responseText)}catch(T){return void kn.error(T)}o(b)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(E)},S0e=18e5,w0e=function(e){pF(n,IF);var t=fF(n);function n(r,i,a){var o;return Bn(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return Un(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(S0e,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=as(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=as(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))fa.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,x7(s,yt(yt({},u),{},{sendBeacon:!0})))}catch(c){fa.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?fa.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):LF({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),z0=1800,TI=60,A0e=864e5,C0e=function(){function e(t,n,r){Bn(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||z0;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=z0):a>z0?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=yo(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>A0e,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),x0e=Un(function e(t,n,r,i){Bn(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],E={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(E.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",E),o})}}),k0e=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},I0e=function(){function e(t){Bn(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return Un(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function SI(e){return typeof Event<"u"&&MF(e,Event)}function MF(e,t){try{return e instanceof t}catch{return!1}}function wI(e){return e===null||ol(e)!=="object"&&typeof e!="function"}function _h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function n4(e){return _h(e,"DOMError")}var AI=/\(error: (.*)\)/,CI=50,Th="?";function r4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var R0e=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,N0e=/\((\S*)(?::(\d+))(?::(\d+))\)/,O0e=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,D0e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,L0e=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,M0e=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` +`),u=a;u1024)){var p=AI.test(c)?c.replace(AI,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=as(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(E){m.e(E)}finally{m.f()}if(o.length>=CI)break}}}return function(E){if(!E.length)return[];var b=E.slice(0,CI);return b.reverse(),b.map(function(T){return yt(yt({},T),{},{filename:T.filename||b[b.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=R0e.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=N0e.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=yo(xI(t[1]||Th,t[2]),2),i=r[0];return r4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=O0e.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=D0e.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||Th,a=yo(xI(i,r),2);return i=a[0],r4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=L0e.exec(e);return t?r4(t[2],t[1]||Th,+t[3],t[4]?+t[4]:void 0):void 0}]]),xI=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Th,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},F0e=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,P0e=/Minified React error #\d+;/i;function B0e(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(P0e.test(r.message))return 1}return 0}(e);try{return M0e(t,n)}catch{}return[]}function i4(e){var t=B0e(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function U0e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function kI(e){var t=yo(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(F0e);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(n4(f)||function(b){return _h(b,"DOMException")}(f)){var m=f;if(function(b){return"stack"in b}(f))s=i4(f);else{var g=m.name||(n4(m)?"DOMError":"DOMException"),E=m.message?"".concat(g,": ").concat(m.message):g;s=function(b){return{$exception_type:"Error",$exception_message:b}}(E),s.$exception_type=n4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||E}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(b){return _h(b,"ErrorEvent")})(f)&&f.error?s=i4(f.error):function(b){switch(Object.prototype.toString.call(b)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return MF(b,Error)}}(f)?s=i4(f):function(b){return _h(b,"Object")}(f)||SI(f)?(s=function(b){return{$exception_type:SI(b)?b.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",U0e(b))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return yt(yt(yt(yt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var II,RI,$0e=function(){function e(t){Bn(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return Un(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(i9);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},i9,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),H0e={"X-PostHog-Retry-After-Recordings":CF,"X-PostHog-Retry-After-Events":"events"},j0e=function(){function e(){Bn(this,e),ct(this,"limits",{})}return Un(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config(Pr({},NI(),a,{name:o,token:t,callback_fn:(o===pi?o:pi+"."+o)+"._jsc"})),this.uuidFn=iI(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new fI(this.config),this._captureMetrics=new l0e(this.get_config("_capture_metrics")),this._requestQueue=new s0e(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new w0e(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new C0e(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new fI(yt(yt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),E=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:E})}if(this._hasBootstrappedFeatureFlags()){var b,T,v=Object.keys(((b=a.bootstrap)===null||b===void 0?void 0:b.featureFlags)||{}).filter(function(A){var D,k;return!((D=a.bootstrap)===null||D===void 0||(k=D.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,D){var k,R;return A[D]=((k=a.bootstrap)===null||k===void 0||(R=k.featureFlags)===null||R===void 0?void 0:R[D])||!1,A},{}),y=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return v[A]}).reduce(function(A,D){var k,R,B,W;return(k=a.bootstrap)!==null&&k!==void 0&&(R=k.featureFlagPayloads)!==null&&R!==void 0&&R[D]&&(A[D]=(B=a.bootstrap)===null||B===void 0||(W=B.featureFlagPayloads)===null||W===void 0?void 0:W[D]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:v,featureFlagPayloads:y})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:Hn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new Qfe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||Zo(this.__request_queue,function(n){t._send_request.apply(t,Yb(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(Ua(t))return null;if(Sh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||H0,c9)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===Yl.GZipJS?[y0e(_0e(p),{mtime:0}),yt(yt({},f),{},{blob:!0,urlQueryArgs:{compression:Yl.GZipJS}})]:[{data:_7(p)},f]}(this.compression[Yl.GZipJS]?Yl.GZipJS:Yl.Base64,n,r),o=yo(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(FF)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=Pr(a,r||{}),Sh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=T0e(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,x7(n,yt(yt({},r),{},{sendBeacon:!0})))}catch{}else if(Sh)try{LF({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=Hn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=Hn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];Zo(t,function(u){u&&(n=u[0],Wo(n)?o.push(u):typeof u=="function"?u.call(r):Wo(u)&&n==="alias"?i.push(u):Wo(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){Zo(u,function(p){if(Wo(p[0])){var f=c;fn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H0;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),E=c.get_config("opt_out_capturing_persistence_type"),b=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=bI(m,{respectDnt:g,persistenceType:E,persistencePrefix:b,window:T}))}catch(v){p||console.error("Unexpected error when checking capturing opt-out status: "+v)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||H0).transport;if(i&&(r.transport=i),Ua(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!Nfe(ra)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=Ife(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&kn.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==H0;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),fn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=yt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=yt(yt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=yr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=Pr(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=Hn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=Pr({},yr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");Wo(g)?fn(g,function(b){delete a[b]}):console.error("Invalid value for property_blacklist config: "+g);var E=this.get_config("sanitize_properties");return E&&(a=E(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(vh)&&(this.unregister(vh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Cg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:yt(yt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(wF)?(kn.critical("Attempting to create alias for existing People user - aborting."),-2):(Ua(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(vh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=yt({},this.config);Qb(t)&&(Pr(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),qn.is_supported()&&qn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(fa.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:pi;return n!==pi&&(n=pi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&qn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!po.get("ph_optout")||(po.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=Pr({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),qn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=Pr({enable_persistence:!0},t||{}),this._gdpr_call_func(r0e,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=Pr({clear_persistence:!0},t||{});this._gdpr_call_func(i0e,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(a0e,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(bI,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=Pr({enable_persistence:!0},t??{});this._gdpr_call_func(o0e,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;nI.jsx("div",{className:"m-auto w-full text-center mt-2",children:I.jsx(K0e,{viewBox:"0 0 32 32",children:I.jsx("circle",{cx:"16",cy:"16",r:"14"})})}),X0e=He.div` + background-color: ${Kt}; + display: flex; + justify-content: center; + align-items: center; + flex-shrink: 0; + flex-grow: 0; + margin-left: 13px; + cursor: pointer; +`,Z0e=He.div` + margin-top: 8px; + margin-bottom: 8px; + margin-left: 8px; + display: flex; + align-items: center; + gap: 4px; + font-size: ${e=>e.fontSize||nr()}px; + min-height: 16px; +`;function Q0e(e){var t,n;return e.open?e.children:I.jsxs(Z0e,{fontSize:nr(),children:[I.jsx(X0e,{onClick:()=>{e.onToggle()},children:e.iconElement||I.jsx(sD,{width:"16px",height:"16px"})}),I.jsx("span",{style:{color:vt},children:(t=e.historyNode.observation)!=null&&t.error?(n=e.historyNode.observation)==null?void 0:n.title:e.historyNode.step.name})]})}const J0e=He.div` + padding: 8px; + background-color: #ff000011; + border-radius: ${wt}; + border: 1px solid #cc0000; + margin: 8px; +`;function ehe(e){var t;return I.jsxs("div",{style:{backgroundColor:Kt,position:"relative"},children:[I.jsxs("div",{style:{position:"absolute",right:"12px",top:"12px",display:"flex"},children:[I.jsx(vi,{text:"Collapse",onClick:()=>e.onClose(),children:I.jsx(VY,{width:"1.3em",height:"1.3em"})}),I.jsx(vi,{text:"Delete",onClick:()=>e.onDelete(),children:I.jsx(T2,{width:"1.3em",height:"1.3em"})})]}),I.jsx(J0e,{children:I.jsx("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:(t=e.historyNode.observation)==null?void 0:t.error})})]})}/** + * @remix-run/router v1.7.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;tp(g,typeof g=="string"?null:g.state,E===0?"default":void 0));let a=u(n??i.length-1),o=Vn.Pop,s=null;function u(g){return Math.min(Math.max(g,0),i.length-1)}function c(){return i[a]}function p(g,E,b){E===void 0&&(E=null);let T=p9(i?c().pathname:"/",g,E,b);return Eu(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(g)),T}function f(g){return typeof g=="string"?g:lm(g)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:f,createURL(g){return new URL(f(g),"http://localhost")},encodeLocation(g){let E=typeof g=="string"?So(g):g;return{pathname:E.pathname||"",search:E.search||"",hash:E.hash||""}},push(g,E){o=Vn.Push;let b=p(g,E);a+=1,i.splice(a,i.length,b),r&&s&&s({action:o,location:b,delta:1})},replace(g,E){o=Vn.Replace;let b=p(g,E);i[a]=b,r&&s&&s({action:o,location:b,delta:0})},go(g){o=Vn.Pop;let E=u(a+g),b=i[E];a=E,s&&s({action:o,location:b,delta:g})},listen(g){return s=g,()=>{s=null}}}}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Eu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nhe(){return Math.random().toString(36).substr(2,8)}function p9(e,t,n,r){return n===void 0&&(n=null),Rn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?So(t):t,{state:n,key:t&&t.key||r||nhe()})}function lm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function So(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var Jn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Jn||(Jn={}));const rhe=new Set(["lazy","caseSensitive","path","id","index","children"]);function ihe(e){return e.index===!0}function f9(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if($t(i.index!==!0||!i.children,"Cannot specify children on an index route"),$t(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),ihe(i)){let u=Rn({},i,t(i),{id:s});return r[s]=u,u}else{let u=Rn({},i,t(i),{id:s,children:void 0});return r[s]=u,i.children&&(u.children=f9(i.children,t,o,r)),u}})}function C1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?So(t):t,i=Qp(r.pathname||"/",n);if(i==null)return null;let a=BF(e);ahe(a);let o=null;for(let s=0;o==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&($t(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=sl([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&($t(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),BF(a.children,t,p,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:phe(c,a.index),routesMeta:p})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let u of UF(a.path))i(a,o,u)}),t}function UF(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=UF(r.join("/")),s=[];return s.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function ahe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fhe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ohe=/^:\w+$/,she=3,lhe=2,uhe=1,che=10,dhe=-2,OI=e=>e==="*";function phe(e,t){let n=e.split("/"),r=n.length;return n.some(OI)&&(r+=dhe),t&&(r+=lhe),n.filter(i=>!OI(i)).reduce((i,a)=>i+(ohe.test(a)?she:a===""?uhe:che),r)}function fhe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function hhe(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(p==="*"){let m=s[f]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}return c[p]=Ehe(s[f]||"",p),c},{}),pathname:a,pathnameBase:o,pattern:e}}function mhe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Eu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function bhe(e){try{return decodeURI(e)}catch(t){return Eu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ehe(e,t){try{return decodeURIComponent(e)}catch(n){return Eu(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Qp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vhe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?So(e):e;return{pathname:n?n.startsWith("/")?n:yhe(n,t):t,search:The(r),hash:She(i)}}function yhe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function a4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function N7(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $F(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=So(e):(i=Rn({},e),$t(!i.pathname||!i.pathname.includes("?"),a4("?","pathname","search",i)),$t(!i.pathname||!i.pathname.includes("#"),a4("#","pathname","hash",i)),$t(!i.search||!i.search.includes("#"),a4("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=vhe(i,s),c=o&&o!=="/"&&o.endsWith("/"),p=(a||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}const sl=e=>e.join("/").replace(/\/\/+/g,"/"),_he=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),The=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,She=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class zF{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function HF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jF=["post","put","patch","delete"],whe=new Set(jF),Ahe=["get",...jF],Che=new Set(Ahe),xhe=new Set([301,302,303,307,308]),khe=new Set([307,308]),o4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ihe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},td={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},GF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rhe=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Nhe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$t(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let j=e.detectErrorBoundary;i=$=>({hasErrorBoundary:j($)})}else i=Rhe;let a={},o=f9(e.routes,i,void 0,a),s,u=e.basename||"/",c=Rn({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,f=new Set,m=null,g=null,E=null,b=e.hydrationData!=null,T=C1(o,e.history.location,u),v=null;if(T==null){let j=ia(404,{pathname:e.history.location.pathname}),{matches:$,route:J}=$I(o);T=$,v={[J.id]:j}}let y=!T.some(j=>j.route.lazy)&&(!T.some(j=>j.route.loader)||e.hydrationData!=null),w,A={historyAction:e.history.action,location:e.history.location,matches:T,initialized:y,navigation:o4,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},D=Vn.Pop,k=!1,R,B=!1,W=!1,P=[],Q=[],z=new Map,le=0,he=-1,de=new Map,fe=new Set,Z=new Map,V=new Map,ce=new Map,N=!1;function me(){return p=e.history.listen(j=>{let{action:$,location:J,delta:be}=j;if(N){N=!1;return}Eu(ce.size===0||be!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Fe=ue({currentLocation:A.location,nextLocation:J,historyAction:$});if(Fe&&be!=null){N=!0,e.history.go(be*-1),jt(Fe,{state:"blocked",location:J,proceed(){jt(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:J}),e.history.go(be)},reset(){let De=new Map(A.blockers);De.set(Fe,td),re({blockers:De})}});return}return ne($,J)}),A.initialized||ne(Vn.Pop,A.location),w}function oe(){p&&p(),f.clear(),R&&R.abort(),A.fetchers.forEach((j,$)=>pe($)),A.blockers.forEach((j,$)=>Ke($))}function O(j){return f.add(j),()=>f.delete(j)}function re(j){A=Rn({},A,j),f.forEach($=>$(A))}function Te(j,$){var J,be;let Fe=A.actionData!=null&&A.navigation.formMethod!=null&&Ma(A.navigation.formMethod)&&A.navigation.state==="loading"&&((J=j.state)==null?void 0:J._isRedirect)!==!0,De;$.actionData?Object.keys($.actionData).length>0?De=$.actionData:De=null:Fe?De=A.actionData:De=null;let tt=$.loaderData?UI(A.loaderData,$.loaderData,$.matches||[],$.errors):A.loaderData,Je=A.blockers;Je.size>0&&(Je=new Map(Je),Je.forEach((Rt,Zt)=>Je.set(Zt,td)));let Ze=k===!0||A.navigation.formMethod!=null&&Ma(A.navigation.formMethod)&&((be=j.state)==null?void 0:be._isRedirect)!==!0;s&&(o=s,s=void 0),B||D===Vn.Pop||(D===Vn.Push?e.history.push(j,j.state):D===Vn.Replace&&e.history.replace(j,j.state)),re(Rn({},$,{actionData:De,loaderData:tt,historyAction:D,location:j,initialized:!0,navigation:o4,revalidation:"idle",restoreScrollPosition:Y(j,$.matches||A.matches),preventScrollReset:Ze,blockers:Je})),D=Vn.Pop,k=!1,B=!1,W=!1,P=[],Q=[]}async function K(j,$){if(typeof j=="number"){e.history.go(j);return}let J=h9(A.location,A.matches,u,c.v7_prependBasename,j,$==null?void 0:$.fromRouteId,$==null?void 0:$.relative),{path:be,submission:Fe,error:De}=DI(c.v7_normalizeFormMethod,!1,J,$),tt=A.location,Je=p9(A.location,be,$&&$.state);Je=Rn({},Je,e.history.encodeLocation(Je));let Ze=$&&$.replace!=null?$.replace:void 0,Rt=Vn.Push;Ze===!0?Rt=Vn.Replace:Ze===!1||Fe!=null&&Ma(Fe.formMethod)&&Fe.formAction===A.location.pathname+A.location.search&&(Rt=Vn.Replace);let Zt=$&&"preventScrollReset"in $?$.preventScrollReset===!0:void 0,kt=ue({currentLocation:tt,nextLocation:Je,historyAction:Rt});if(kt){jt(kt,{state:"blocked",location:Je,proceed(){jt(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:Je}),K(j,$)},reset(){let nn=new Map(A.blockers);nn.set(kt,td),re({blockers:nn})}});return}return await ne(Rt,Je,{submission:Fe,pendingError:De,preventScrollReset:Zt,replace:$&&$.replace})}function xe(){if(U(),re({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){ne(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}ne(D||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function ne(j,$,J){R&&R.abort(),R=null,D=j,B=(J&&J.startUninterruptedRevalidation)===!0,Qe(A.location,A.matches),k=(J&&J.preventScrollReset)===!0;let be=s||o,Fe=J&&J.overrideNavigation,De=C1(be,$,u);if(!De){let nn=ia(404,{pathname:$.pathname}),{matches:Yt,route:jr}=$I(be);ye(),Te($,{matches:Yt,loaderData:{},errors:{[jr.id]:nn}});return}if(A.initialized&&!W&&Fhe(A.location,$)&&!(J&&J.submission&&Ma(J.submission.formMethod))){Te($,{matches:De});return}R=new AbortController;let tt=rd(e.history,$,R.signal,J&&J.submission),Je,Ze;if(J&&J.pendingError)Ze={[x1(De).route.id]:J.pendingError};else if(J&&J.submission&&Ma(J.submission.formMethod)){let nn=await Le(tt,$,J.submission,De,{replace:J.replace});if(nn.shortCircuited)return;Je=nn.pendingActionData,Ze=nn.pendingActionError,Fe=j0($,J.submission),tt=new Request(tt.url,{signal:tt.signal})}let{shortCircuited:Rt,loaderData:Zt,errors:kt}=await Re(tt,$,De,Fe,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,Je,Ze);Rt||(R=null,Te($,Rn({matches:De},Je?{actionData:Je}:{},{loaderData:Zt,errors:kt})))}async function Le(j,$,J,be,Fe){Fe===void 0&&(Fe={}),U();let De=zhe($,J);re({navigation:De});let tt,Je=m9(be,$);if(!Je.route.action&&!Je.route.lazy)tt={type:Jn.error,error:ia(405,{method:j.method,pathname:$.pathname,routeId:Je.route.id})};else if(tt=await nd("action",j,Je,be,a,i,u),j.signal.aborted)return{shortCircuited:!0};if($1(tt)){let Ze;return Fe&&Fe.replace!=null?Ze=Fe.replace:Ze=tt.location===A.location.pathname+A.location.search,await Ge(A,tt,{submission:J,replace:Ze}),{shortCircuited:!0}}if(Ud(tt)){let Ze=x1(be,Je.route.id);return(Fe&&Fe.replace)!==!0&&(D=Vn.Push),{pendingActionData:{},pendingActionError:{[Ze.route.id]:tt.error}}}if(eu(tt))throw ia(400,{type:"defer-action"});return{pendingActionData:{[Je.route.id]:tt.data}}}async function Re(j,$,J,be,Fe,De,tt,Je,Ze){let Rt=be||j0($,Fe),Zt=Fe||De||jI(Rt),kt=s||o,[nn,Yt]=LI(e.history,A,J,Zt,$,W,P,Q,Z,fe,kt,u,Je,Ze);if(ye(Wt=>!(J&&J.some(Rr=>Rr.route.id===Wt))||nn&&nn.some(Rr=>Rr.route.id===Wt)),he=++le,nn.length===0&&Yt.length===0){let Wt=Se();return Te($,Rn({matches:J,loaderData:{},errors:Ze||null},Je?{actionData:Je}:{},Wt?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!B){Yt.forEach(Rr=>{let _i=A.fetchers.get(Rr.key),Al=id(void 0,_i?_i.data:void 0);A.fetchers.set(Rr.key,Al)});let Wt=Je||A.actionData;re(Rn({navigation:Rt},Wt?Object.keys(Wt).length===0?{actionData:null}:{actionData:Wt}:{},Yt.length>0?{fetchers:new Map(A.fetchers)}:{}))}Yt.forEach(Wt=>{z.has(Wt.key)&&ke(Wt.key),Wt.controller&&z.set(Wt.key,Wt.controller)});let jr=()=>Yt.forEach(Wt=>ke(Wt.key));R&&R.signal.addEventListener("abort",jr);let{results:Gr,loaderResults:Vr,fetcherResults:Ta}=await pt(A.matches,J,nn,Yt,j);if(j.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",jr),Yt.forEach(Wt=>z.delete(Wt.key));let ii=zI(Gr);if(ii){if(ii.idx>=nn.length){let Wt=Yt[ii.idx-nn.length].key;fe.add(Wt)}return await Ge(A,ii.result,{replace:tt}),{shortCircuited:!0}}let{loaderData:Ir,errors:ps}=BI(A,J,nn,Vr,Ze,Yt,Ta,V);V.forEach((Wt,Rr)=>{Wt.subscribe(_i=>{(_i||Wt.done)&&V.delete(Rr)})});let fs=Se(),Wr=Me(he),hs=fs||Wr||Yt.length>0;return Rn({loaderData:Ir,errors:ps},hs?{fetchers:new Map(A.fetchers)}:{})}function Xe(j){return A.fetchers.get(j)||Ihe}function Ve(j,$,J,be){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(j)&&ke(j);let Fe=s||o,De=h9(A.location,A.matches,u,c.v7_prependBasename,J,$,be==null?void 0:be.relative),tt=C1(Fe,De,u);if(!tt){ie(j,$,ia(404,{pathname:De}));return}let{path:Je,submission:Ze,error:Rt}=DI(c.v7_normalizeFormMethod,!0,De,be);if(Rt){ie(j,$,Rt);return}let Zt=m9(tt,Je);if(k=(be&&be.preventScrollReset)===!0,Ze&&Ma(Ze.formMethod)){dt(j,$,Je,Zt,tt,Ze);return}Z.set(j,{routeId:$,path:Je}),ot(j,$,Je,Zt,tt,Ze)}async function dt(j,$,J,be,Fe,De){if(U(),Z.delete(j),!be.route.action&&!be.route.lazy){let qe=ia(405,{method:De.formMethod,pathname:J,routeId:$});ie(j,$,qe);return}let tt=A.fetchers.get(j),Je=Hhe(De,tt);A.fetchers.set(j,Je),re({fetchers:new Map(A.fetchers)});let Ze=new AbortController,Rt=rd(e.history,J,Ze.signal,De);z.set(j,Ze);let Zt=le,kt=await nd("action",Rt,be,Fe,a,i,u);if(Rt.signal.aborted){z.get(j)===Ze&&z.delete(j);return}if($1(kt))if(z.delete(j),he>Zt){let qe=i1(void 0);A.fetchers.set(j,qe),re({fetchers:new Map(A.fetchers)});return}else{fe.add(j);let qe=id(De);return A.fetchers.set(j,qe),re({fetchers:new Map(A.fetchers)}),Ge(A,kt,{submission:De,isFetchActionRedirect:!0})}if(Ud(kt)){ie(j,$,kt.error);return}if(eu(kt))throw ia(400,{type:"defer-action"});let nn=A.navigation.location||A.location,Yt=rd(e.history,nn,Ze.signal),jr=s||o,Gr=A.navigation.state!=="idle"?C1(jr,A.navigation.location,u):A.matches;$t(Gr,"Didn't find any matches after fetcher action");let Vr=++le;de.set(j,Vr);let Ta=id(De,kt.data);A.fetchers.set(j,Ta);let[ii,Ir]=LI(e.history,A,Gr,De,nn,W,P,Q,Z,fe,jr,u,{[be.route.id]:kt.data},void 0);Ir.filter(qe=>qe.key!==j).forEach(qe=>{let ee=qe.key,Be=A.fetchers.get(ee),it=id(void 0,Be?Be.data:void 0);A.fetchers.set(ee,it),z.has(ee)&&ke(ee),qe.controller&&z.set(ee,qe.controller)}),re({fetchers:new Map(A.fetchers)});let ps=()=>Ir.forEach(qe=>ke(qe.key));Ze.signal.addEventListener("abort",ps);let{results:fs,loaderResults:Wr,fetcherResults:hs}=await pt(A.matches,Gr,ii,Ir,Yt);if(Ze.signal.aborted)return;Ze.signal.removeEventListener("abort",ps),de.delete(j),z.delete(j),Ir.forEach(qe=>z.delete(qe.key));let Wt=zI(fs);if(Wt){if(Wt.idx>=ii.length){let qe=Ir[Wt.idx-ii.length].key;fe.add(qe)}return Ge(A,Wt.result)}let{loaderData:Rr,errors:_i}=BI(A,A.matches,ii,Wr,void 0,Ir,hs,V);if(A.fetchers.has(j)){let qe=i1(kt.data);A.fetchers.set(j,qe)}let Al=Me(Vr);A.navigation.state==="loading"&&Vr>he?($t(D,"Expected pending action"),R&&R.abort(),Te(A.navigation.location,{matches:Gr,loaderData:Rr,errors:_i,fetchers:new Map(A.fetchers)})):(re(Rn({errors:_i,loaderData:UI(A.loaderData,Rr,Gr,_i)},Al||Ir.length>0?{fetchers:new Map(A.fetchers)}:{})),W=!1)}async function ot(j,$,J,be,Fe,De){let tt=A.fetchers.get(j),Je=id(De,tt?tt.data:void 0);A.fetchers.set(j,Je),re({fetchers:new Map(A.fetchers)});let Ze=new AbortController,Rt=rd(e.history,J,Ze.signal);z.set(j,Ze);let Zt=le,kt=await nd("loader",Rt,be,Fe,a,i,u);if(eu(kt)&&(kt=await qF(kt,Rt.signal,!0)||kt),z.get(j)===Ze&&z.delete(j),Rt.signal.aborted)return;if($1(kt))if(he>Zt){let Yt=i1(void 0);A.fetchers.set(j,Yt),re({fetchers:new Map(A.fetchers)});return}else{fe.add(j),await Ge(A,kt);return}if(Ud(kt)){let Yt=x1(A.matches,$);A.fetchers.delete(j),re({fetchers:new Map(A.fetchers),errors:{[Yt.route.id]:kt.error}});return}$t(!eu(kt),"Unhandled fetcher deferred data");let nn=i1(kt.data);A.fetchers.set(j,nn),re({fetchers:new Map(A.fetchers)})}async function Ge(j,$,J){let{submission:be,replace:Fe,isFetchActionRedirect:De}=J===void 0?{}:J;$.revalidate&&(W=!0);let tt=p9(j.location,$.location,Rn({_isRedirect:!0},De?{_isFetchActionRedirect:!0}:{}));if($t(tt,"Expected a location on the redirect navigation"),GF.test($.location)&&n){let Rt=e.history.createURL($.location),Zt=Qp(Rt.pathname,u)==null;if(t.location.origin!==Rt.origin||Zt){Fe?t.location.replace($.location):t.location.assign($.location);return}}R=null;let Je=Fe===!0?Vn.Replace:Vn.Push,Ze=be||jI(j.navigation);if(khe.has($.status)&&Ze&&Ma(Ze.formMethod))await ne(Je,tt,{submission:Rn({},Ze,{formAction:$.location}),preventScrollReset:k});else if(De)await ne(Je,tt,{overrideNavigation:j0(tt),fetcherSubmission:Ze,preventScrollReset:k});else{let Rt=j0(tt,Ze);await ne(Je,tt,{overrideNavigation:Rt,preventScrollReset:k})}}async function pt(j,$,J,be,Fe){let De=await Promise.all([...J.map(Ze=>nd("loader",Fe,Ze,$,a,i,u)),...be.map(Ze=>Ze.matches&&Ze.match&&Ze.controller?nd("loader",rd(e.history,Ze.path,Ze.controller.signal),Ze.match,Ze.matches,a,i,u):{type:Jn.error,error:ia(404,{pathname:Ze.path})})]),tt=De.slice(0,J.length),Je=De.slice(J.length);return await Promise.all([HI(j,J,tt,tt.map(()=>Fe.signal),!1,A.loaderData),HI(j,be.map(Ze=>Ze.match),Je,be.map(Ze=>Ze.controller?Ze.controller.signal:null),!0)]),{results:De,loaderResults:tt,fetcherResults:Je}}function U(){W=!0,P.push(...ye()),Z.forEach((j,$)=>{z.has($)&&(Q.push($),ke($))})}function ie(j,$,J){let be=x1(A.matches,$);pe(j),re({errors:{[be.route.id]:J},fetchers:new Map(A.fetchers)})}function pe(j){let $=A.fetchers.get(j);z.has(j)&&!($&&$.state==="loading"&&de.has(j))&&ke(j),Z.delete(j),de.delete(j),fe.delete(j),A.fetchers.delete(j)}function ke(j){let $=z.get(j);$t($,"Expected fetch controller: "+j),$.abort(),z.delete(j)}function ve(j){for(let $ of j){let J=Xe($),be=i1(J.data);A.fetchers.set($,be)}}function Se(){let j=[],$=!1;for(let J of fe){let be=A.fetchers.get(J);$t(be,"Expected fetcher: "+J),be.state==="loading"&&(fe.delete(J),j.push(J),$=!0)}return ve(j),$}function Me(j){let $=[];for(let[J,be]of de)if(be0}function ze(j,$){let J=A.blockers.get(j)||td;return ce.get(j)!==$&&ce.set(j,$),J}function Ke(j){A.blockers.delete(j),ce.delete(j)}function jt(j,$){let J=A.blockers.get(j)||td;$t(J.state==="unblocked"&&$.state==="blocked"||J.state==="blocked"&&$.state==="blocked"||J.state==="blocked"&&$.state==="proceeding"||J.state==="blocked"&&$.state==="unblocked"||J.state==="proceeding"&&$.state==="unblocked","Invalid blocker state transition: "+J.state+" -> "+$.state);let be=new Map(A.blockers);be.set(j,$),re({blockers:be})}function ue(j){let{currentLocation:$,nextLocation:J,historyAction:be}=j;if(ce.size===0)return;ce.size>1&&Eu(!1,"A router only supports one blocker at a time");let Fe=Array.from(ce.entries()),[De,tt]=Fe[Fe.length-1],Je=A.blockers.get(De);if(!(Je&&Je.state==="proceeding")&&tt({currentLocation:$,nextLocation:J,historyAction:be}))return De}function ye(j){let $=[];return V.forEach((J,be)=>{(!j||j(be))&&(J.cancel(),$.push(be),V.delete(be))}),$}function We(j,$,J){if(m=j,E=$,g=J||null,!b&&A.navigation===o4){b=!0;let be=Y(A.location,A.matches);be!=null&&re({restoreScrollPosition:be})}return()=>{m=null,E=null,g=null}}function at(j,$){return g&&g(j,$.map(be=>$he(be,A.loaderData)))||j.key}function Qe(j,$){if(m&&E){let J=at(j,$);m[J]=E()}}function Y(j,$){if(m){let J=at(j,$),be=m[J];if(typeof be=="number")return be}return null}function se(j){a={},s=f9(j,i,void 0,a)}return w={get basename(){return u},get state(){return A},get routes(){return o},initialize:me,subscribe:O,enableScrollRestoration:We,navigate:K,fetch:Ve,revalidate:xe,createHref:j=>e.history.createHref(j),encodeLocation:j=>e.history.encodeLocation(j),getFetcher:Xe,deleteFetcher:pe,dispose:oe,getBlocker:ze,deleteBlocker:Ke,_internalFetchControllers:z,_internalActiveDeferreds:V,_internalSetRoutes:se},w}function Ohe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function h9(e,t,n,r,i,a,o){let s,u;if(a!=null&&o!=="path"){s=[];for(let p of t)if(s.push(p),p.route.id===a){u=p;break}}else s=t,u=t[t.length-1];let c=$F(i||".",N7(s).map(p=>p.pathnameBase),Qp(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!O7(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:sl([n,c.pathname])),lm(c)}function DI(e,t,n,r){if(!r||!Ohe(r))return{path:n};if(r.formMethod&&!Uhe(r.formMethod))return{path:n,error:ia(405,{method:r.formMethod})};let i=()=>({path:n,error:ia(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=WF(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ma(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,E)=>{let[b,T]=E;return""+g+b+"="+T+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ma(o))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}$t(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=g9(r.formData),c=r.formData;else if(r.body instanceof FormData)u=g9(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=PI(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=PI(u)}catch{return i()}let p={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Ma(p.formMethod))return{path:n,submission:p};let f=So(n);return t&&f.search&&O7(f.search)&&u.append("index",""),f.search="?"+u,{path:lm(f),submission:p}}function Dhe(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function LI(e,t,n,r,i,a,o,s,u,c,p,f,m,g){let E=g?Object.values(g)[0]:m?Object.values(m)[0]:void 0,b=e.createURL(t.location),T=e.createURL(i),v=g?Object.keys(g)[0]:void 0,w=Dhe(n,v).filter((D,k)=>{if(D.route.lazy)return!0;if(D.route.loader==null)return!1;if(Lhe(t.loaderData,t.matches[k],D)||o.some(W=>W===D.route.id))return!0;let R=t.matches[k],B=D;return MI(D,Rn({currentUrl:b,currentParams:R.params,nextUrl:T,nextParams:B.params},r,{actionResult:E,defaultShouldRevalidate:a||b.pathname+b.search===T.pathname+T.search||b.search!==T.search||VF(R,B)}))}),A=[];return u.forEach((D,k)=>{if(!n.some(Q=>Q.route.id===D.routeId))return;let R=C1(p,D.path,f);if(!R){A.push({key:k,routeId:D.routeId,path:D.path,matches:null,match:null,controller:null});return}let B=t.fetchers.get(k),W=m9(R,D.path),P=!1;c.has(k)?P=!1:s.includes(k)?P=!0:B&&B.state!=="idle"&&B.data===void 0?P=a:P=MI(W,Rn({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:T,nextParams:n[n.length-1].params},r,{actionResult:E,defaultShouldRevalidate:a})),P&&A.push({key:k,routeId:D.routeId,path:D.path,matches:R,match:W,controller:new AbortController})}),[w,A]}function Lhe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function VF(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function MI(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function FI(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];$t(i,"No route found in manifest");let a={};for(let o in r){let u=i[o]!==void 0&&o!=="hasErrorBoundary";Eu(!u,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!u&&!rhe.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Rn({},t(i),{lazy:void 0}))}async function nd(e,t,n,r,i,a,o,s){s===void 0&&(s={});let u,c,p,f=E=>{let b,T=new Promise((v,y)=>b=y);return p=()=>b(),t.signal.addEventListener("abort",p),Promise.race([E({request:t,params:n.params,context:s.requestContext}),T])};try{let E=n.route[e];if(n.route.lazy)if(E)c=(await Promise.all([f(E),FI(n.route,a,i)]))[0];else if(await FI(n.route,a,i),E=n.route[e],E)c=await f(E);else if(e==="action"){let b=new URL(t.url),T=b.pathname+b.search;throw ia(405,{method:t.method,pathname:T,routeId:n.route.id})}else return{type:Jn.data,data:void 0};else if(E)c=await f(E);else{let b=new URL(t.url),T=b.pathname+b.search;throw ia(404,{pathname:T})}$t(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(E){u=Jn.error,c=E}finally{p&&t.signal.removeEventListener("abort",p)}if(Bhe(c)){let E=c.status;if(xhe.has(E)){let v=c.headers.get("Location");if($t(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!GF.test(v))v=h9(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,v);else if(!s.isStaticRequest){let y=new URL(t.url),w=v.startsWith("//")?new URL(y.protocol+v):new URL(v),A=Qp(w.pathname,o)!=null;w.origin===y.origin&&A&&(v=w.pathname+w.search+w.hash)}if(s.isStaticRequest)throw c.headers.set("Location",v),c;return{type:Jn.redirect,status:E,location:v,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(s.isRouteRequest)throw{type:u||Jn.data,response:c};let b,T=c.headers.get("Content-Type");return T&&/\bapplication\/json\b/.test(T)?b=await c.json():b=await c.text(),u===Jn.error?{type:u,error:new zF(E,c.statusText,b),headers:c.headers}:{type:Jn.data,data:b,statusCode:c.status,headers:c.headers}}if(u===Jn.error)return{type:u,error:c};if(Phe(c)){var m,g;return{type:Jn.deferred,deferredData:c,statusCode:(m=c.init)==null?void 0:m.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:Jn.data,data:c}}function rd(e,t,n,r){let i=e.createURL(WF(t)).toString(),a={signal:n};if(r&&Ma(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=g9(r.formData):a.body=r.formData}return new Request(i,a)}function g9(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function PI(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Mhe(e,t,n,r,i){let a={},o=null,s,u=!1,c={};return n.forEach((p,f)=>{let m=t[f].route.id;if($t(!$1(p),"Cannot handle redirect results in processLoaderData"),Ud(p)){let g=x1(e,m),E=p.error;r&&(E=Object.values(r)[0],r=void 0),o=o||{},o[g.route.id]==null&&(o[g.route.id]=E),a[m]=void 0,u||(u=!0,s=HF(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else eu(p)?(i.set(m,p.deferredData),a[m]=p.deferredData.data):a[m]=p.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(s=p.statusCode),p.headers&&(c[m]=p.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function BI(e,t,n,r,i,a,o,s){let{loaderData:u,errors:c}=Mhe(t,n,r,i,s);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function $I(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ia(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new zF(e||500,o,new Error(s),!0)}function zI(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if($1(n))return{result:n,idx:t}}}function WF(e){let t=typeof e=="string"?So(e):e;return lm(Rn({},t,{hash:""}))}function Fhe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function eu(e){return e.type===Jn.deferred}function Ud(e){return e.type===Jn.error}function $1(e){return(e&&e.type)===Jn.redirect}function Phe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Bhe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Uhe(e){return Che.has(e.toLowerCase())}function Ma(e){return whe.has(e.toLowerCase())}async function HI(e,t,n,r,i,a){for(let o=0;of.route.id===u.route.id),p=c!=null&&!VF(c,u)&&(a&&a[u.route.id])!==void 0;if(eu(s)&&(i||p)){let f=r[o];$t(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await qF(s,f,i).then(m=>{m&&(n[o]=m||n[o])})}}}async function qF(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Jn.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Jn.error,error:i}}return{type:Jn.data,data:e.deferredData.data}}}function O7(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function $he(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function m9(e,t){let n=typeof t=="string"?So(t).search:t.search;if(e[e.length-1].route.index&&O7(n||""))return e[e.length-1];let r=N7(e);return r[r.length-1]}function jI(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function j0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function zhe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function id(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Hhe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function i1(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + * React Router v6.14.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),o=C.useRef(!1);return XF(()=>{o.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){n.go(u);return}let p=$F(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:sl([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,i,e])}const Ghe=C.createContext(null);function Vhe(e){let t=C.useContext(Sl).outlet;return t&&C.createElement(Ghe.Provider,{value:e},t)}function Whe(){let{matches:e}=C.useContext(Sl),t=e[e.length-1];return t?t.params:{}}function qhe(e,t,n){pm()||$t(!1);let{navigator:r}=C.useContext(cm),{matches:i}=C.useContext(Sl),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=D7(),c;if(t){var p;let b=typeof t=="string"?So(t):t;s==="/"||(p=b.pathname)!=null&&p.startsWith(s)||$t(!1),c=b}else c=u;let f=c.pathname||"/",m=s==="/"?f:f.slice(s.length)||"/",g=C1(e,{pathname:m}),E=Qhe(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:sl([s,r.encodeLocation?r.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:sl([s,r.encodeLocation?r.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n);return t&&E?C.createElement(dm.Provider,{value:{location:mp({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Vn.Pop}},E):E}function Khe(){let e=QF(),t=HF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}const Yhe=C.createElement(Khe,null);class Xhe extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement(Sl.Provider,{value:this.props.routeContext},C.createElement(YF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Zhe(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(um);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Sl.Provider,{value:t},r)}function Qhe(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id]));s>=0||$t(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,u,c)=>{let p=u.route.id?o==null?void 0:o[u.route.id]:null,f=null;n&&(f=u.route.errorElement||Yhe);let m=t.concat(a.slice(0,c+1)),g=()=>{let E;return p?E=f:u.route.Component?E=C.createElement(u.route.Component,null):u.route.element?E=u.route.element:E=s,C.createElement(Zhe,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:E})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?C.createElement(Xhe,{location:n.location,revalidation:n.revalidation,component:f,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var b9;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(b9||(b9={}));var bp;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(bp||(bp={}));function Jhe(e){let t=C.useContext(um);return t||$t(!1),t}function ege(e){let t=C.useContext(KF);return t||$t(!1),t}function tge(e){let t=C.useContext(Sl);return t||$t(!1),t}function ZF(e){let t=tge(),n=t.matches[t.matches.length-1];return n.route.id||$t(!1),n.route.id}function QF(){var e;let t=C.useContext(YF),n=ege(bp.UseRouteError),r=ZF(bp.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function nge(){let{router:e}=Jhe(b9.UseNavigateStable),t=ZF(bp.UseNavigateStable),n=C.useRef(!1);return XF(()=>{n.current=!0}),C.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,mp({fromRouteId:t},a)))},[e,t])}const rge="startTransition",GI=v4[rge];function ige(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=C.useState(n.state),{v7_startTransition:o}=r||{},s=C.useCallback(f=>{o&&GI?GI(()=>a(f)):a(f)},[a,o]);C.useLayoutEffect(()=>n.subscribe(s),[n,s]);let u=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,m,g)=>n.navigate(f,{state:m,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,m,g)=>n.navigate(f,{replace:!0,state:m,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[n]),c=n.basename||"/",p=C.useMemo(()=>({router:n,navigator:u,static:!1,basename:c}),[n,u,c]);return C.createElement(C.Fragment,null,C.createElement(um.Provider,{value:p},C.createElement(KF.Provider,{value:i},C.createElement(sge,{basename:c,location:i.location,navigationType:i.historyAction,navigator:u},i.initialized?C.createElement(age,{routes:n.routes,state:i}):t))),null)}function age(e){let{routes:t,state:n}=e;return qhe(t,void 0,n)}function oge(e){return Vhe(e.context)}function sge(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Vn.Pop,navigator:a,static:o=!1}=e;pm()&&$t(!1);let s=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=So(r));let{pathname:c="/",search:p="",hash:f="",state:m=null,key:g="default"}=r,E=C.useMemo(()=>{let b=Qp(c,s);return b==null?null:{location:{pathname:b,search:p,hash:f,state:m,key:g},navigationType:i}},[s,c,p,f,m,g,i]);return E==null?null:C.createElement(cm.Provider,{value:u},C.createElement(dm.Provider,{children:n,value:E}))}var VI;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(VI||(VI={}));new Promise(()=>{});function lge(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function uge(e,t){return Nhe({basename:t==null?void 0:t.basename,future:mp({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:the({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:lge}).initialize()}const cge=He.div` + display: grid; + grid-template-columns: 1fr 1fr; + grid-gap: 8px; + align-items: center; +`;function dge(){const e=cs(),[t,n]=ut.useState(""),r=C.useContext(Ya),i=us();return I.jsxs("div",{className:"p-4",children:[I.jsx("h3",{children:"Free Trial Limit Reached"}),I.jsxs("p",{children:["You've reached the free trial limit of 250 free inputs with Continue's OpenAI API key. To keep using Continue, you can either use your own API key, or use a local LLM. To read more about the options, see our"," ",I.jsx("a",{href:"https://continue.dev/docs/customization/models",target:"_blank",children:"documentation"}),". If you're just looking for fastest way to keep going, type '/config' to open your Continue config file and paste your API key into the OpenAIFreeTrial object."]}),I.jsx(ng,{type:"text",placeholder:"Enter your OpenAI API key",value:t,onChange:a=>n(a.target.value)}),I.jsxs(cge,{children:[I.jsx(op,{onClick:()=>{i(Q1(!1)),e("/models")},children:"Select model"}),I.jsx(op,{disabled:!t,onClick:()=>{r==null||r.addModelForRole("*","OpenAI",{model:"gpt-4",api_key:t,title:"GPT-4"}),i(Q1(!1))},children:"Use my API key"})]})]})}const pge=He.div` + border-radius: ${wt}; + cursor: ${e=>e.isDisabled?"not-allowed":"pointer"}; + padding: 8px 8px; + background-color: ${Lt}; + border: 1px solid transparent; + + display: flex; + justify-content: space-between; + align-items: center; + + color: ${e=>e.isDisabled?vt:Ht}; + + &:hover { + border: ${e=>e.isDisabled?"1px solid transparent":`1px solid ${vt}`}; + } +`,fge=He.p` + font-size: ${e=>e.fontSize}px; + margin: 0; +`;function hge(e){const[t,n]=C.useState(!1);return I.jsxs(I.Fragment,{children:[I.jsxs(pge,{"data-tooltip-id":`suggestion-disabled-${e.textInput.replace(" ","")}`,onClick:e.onClick,onMouseEnter:()=>{e.disabled||n(!0)},onMouseLeave:()=>n(!1),isDisabled:e.disabled,children:[I.jsx(fge,{fontSize:nr(),children:e.description}),I.jsx(ZY,{width:"1.6em",height:"1.6em",style:{opacity:t?1:0,backgroundColor:Lt,boxShadow:`1px 1px 10px ${Lt}`,borderRadius:wt}})]}),I.jsx(Gs,{id:`suggestion-disabled-${e.textInput.replace(" ","")}`,place:"bottom",hidden:!e.disabled,children:"Must highlight code first"})]})}const G0=[I.jsx("p",{children:"Ask a question"}),I.jsxs("p",{children:["1. Highlight code in the editor",I.jsx("br",{}),"2. Press ",localStorage.getItem("ide")==="jetbrains"?"cmd+J":"cmd+M"," ","to select the code",I.jsx("br",{}),"3. Ask a question"]}),I.jsxs("p",{children:["1. Highlight code in the editor",I.jsx("br",{}),"2. Press"," ",localStorage.getItem("ide")==="jetbrains"?"cmd+shift+J":"cmd+shift+M"," ","to select the code",I.jsx("br",{}),"3. Request an edit"]})],wh=[[{title:G0[1],description:"Is there any way to make this code more efficient?",textInput:"Is there any way to make this code more efficient?"},{title:G0[1],description:"What does this function do?",textInput:"What does this function do?"}],[{title:G0[2],description:"/edit write comments for this code",textInput:"/edit write comments for this code"},{title:G0[2],description:"/edit make this code more efficient",textInput:"/edit make this code more efficient"}]],WI=wh.length,gge=He.div` + margin: 4px; + margin-left: 8px; + margin-right: 8px; + position: relative; + background-color: #ff02; + border-radius: ${wt}; + padding: 8px 4px; +`;function mge(e){var m,g;const t=R7(),[n,r]=C.useState(parseInt(localStorage.getItem("stage")||"0")),i=zt(E=>E.serverState.history.timeline),a=zt(E=>{var b;return(b=E.serverState.session_info)==null?void 0:b.session_id}),o=zt(E=>E.serverState.selected_context_items.some(b=>b.description.id.provider_title==="code")),[s,u]=C.useState(!1);C.useEffect(()=>{u(!1)},[a]);const[c,p]=C.useState(0),f=C.useCallback(()=>i.filter(b=>!b.step.hide&&b.step.name==="User Input").length-c<=0,[i,c]);return I.jsx(I.Fragment,{children:s||n>WI-1||!f()||parseInt(localStorage.getItem("tutorialClosedCount")||"0")>0||I.jsxs(gge,{children:[I.jsxs("div",{className:"flex",children:[I.jsx(dD,{width:"1.3em",height:"1.3em",color:"yellow"}),I.jsxs("b",{className:"ml-1",children:["Tutorial (",n+1,"/",WI,")"]})]}),I.jsx("div",{style:{color:Ht,paddingLeft:"4px"},children:n{u(!0);const E=parseInt(localStorage.getItem("tutorialClosedCount")||"0");localStorage.setItem("tutorialClosedCount",(E+1).toString()),t==null||t.capture("tutorial_closed",{stage:n,tutorialClosedCount:E})},children:I.jsx(T2,{width:"1.2em",height:"1.2em"})}),I.jsx("div",{className:"grid grid-cols-2 gap-2 mt-2",children:(g=wh[n])==null?void 0:g.map((E,b)=>I.jsx(hge,{disabled:!o,...E,onClick:()=>{o&&(e.onClick(E.textInput),t==null||t.capture("tutorial_stage_complete",{stage:n}),r(n+1),localStorage.setItem("stage",(n+1).toString()),u(!0),p(T=>T+1))}},b))})]})})}const bge=He.div` + overflow-y: scroll; + + scrollbar-width: none; /* Firefox */ + + /* Hide scrollbar for Chrome, Safari and Opera */ + &::-webkit-scrollbar { + display: none; + } +`,Ege=He(ng)` + border: none; + outline: none; + + font-size: 16px; + font-weight: bold; + margin: 0; + margin-right: 8px; + padding-top: 6px; + padding-bottom: 6px; + + &:focus { + outline: none; + } +`,vge=He.div` + position: relative; + background-color: transparent; + + & > * { + position: relative; + } + + &::before { + content: ""; + position: absolute; + height: calc(100% - 12px); + border-left: 2px solid ${vt}; + left: 28px; + z-index: 0; + bottom: 12px; + } +`,yge=He.div` + border-radius: ${wt}; + color: gray; + padding: 8px; + margin: 8px; + text-align: center; +`,_ge=He.div` + display: flex; + justify-content: space-between; + align-items: center; + padding: 4px; + padding-left: 8px; + padding-right: 8px; + border-bottom: 0.5px solid ${vt}; + position: sticky; + top: 0; + z-index: 100; + background-color: ${Kt}; +`;function qI(e){var de,fe;const t=C.useContext(Ya),n=R7(),r=us(),i=cs(),a=zt(Z=>Z.serverState.history),o=zt(Z=>{var V;return(V=Z.serverState.config.models)==null?void 0:V.default}),s=zt(Z=>Z.misc.serverStatusMessage),u=zt(Z=>Z.serverState.user_input_queue),c=zt(Z=>{var V;return(V=Z.serverState.session_info)==null?void 0:V.title}),[p,f]=C.useState(!1),[m,g]=C.useState([]),[E,b]=C.useState(!0),[T,v]=C.useState(!0),y=C.useRef(null),w=C.useRef(null),A=C.useRef(null),D=zt(Z=>Z.uiState.bottomMessage),k=zt(Z=>Z.misc.takenAction);C.useEffect(()=>{A.current&&r(hpe(A.current.getBoundingClientRect().top{var V;const Z=()=>{var O,re;const N=((O=w.current)==null?void 0:O.scrollTop)||0,me=((re=w.current)==null?void 0:re.scrollHeight)||0,oe=window.innerHeight||0;N+oe+-25>=me?B(!1):B(!0)};return(V=w.current)==null||V.addEventListener("scroll",Z),()=>{window.removeEventListener("scroll",Z)}},[w.current]),C.useLayoutEffect(()=>{var Z,V;R||(V=w.current)==null||V.scrollTo({top:(Z=w.current)==null?void 0:Z.scrollHeight,behavior:"instant"})},[(de=w.current)==null?void 0:de.scrollHeight,a.timeline]),C.useEffect(()=>{const Z=V=>{var ce;V.key==="Backspace"&&tg(V)&&!V.shiftKey&&typeof(a==null?void 0:a.current_index)<"u"&&((ce=a.timeline[a.current_index])!=null&&ce.active)?t==null||t.deleteAtIndex(a.current_index):V.key==="Escape"&&r(au(void 0))};return window.addEventListener("keydown",Z),()=>{window.removeEventListener("keydown",Z)}},[t,a]),C.useEffect(()=>{t==null||t.onStateUpdate(Z=>{var ce;const V=Z.active&&Z.history.current_index{const me=[...N];for(let oe=me.length;oe{if(t&&E){b(!1);for(const Z of u)t.sendMainInput(Z)}},[t,u,E]);const W=Z=>{var V,ce;if(r(pd(null)),y.current){let N=y.current.inputValue;if(N.trim()==="")return;if(N.startsWith("#")&&(N.length===7||N.length===4)){localStorage.setItem("continueButtonColor",N),y.current.setInputValue("");return}if(Z&&tg(Z)&&(N=`/edit ${N}`),y.current.setInputValue(""),!t){r(efe(N));return}if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!N.startsWith("/")||N.startsWith("/edit"))){const oe=localStorage.getItem("ftc");if(oe){const O=parseInt(oe);if(localStorage.setItem("ftc",(O+1).toString()),O>=250){r(Q1(!0)),r(X3(I.jsx(dge,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}if(f(!0),a&&a.current_index>=0&&a.current_index{O.preventDefault(),n==null||n.capture("user_interest_form",{name:O.target.elements[0].value,email:O.target.elements[1].value}),r(X3(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(fpe(!1)),r(Q1(!0)))}else localStorage.setItem("mainTextEntryCounter","1")}},P=(Z,V)=>{t&&t.sendStepUserInput(Z,V)},Q=C.useCallback(Z=>{const V=[];let ce=-1;for(let N=Z;N>=0;N--)if((a==null?void 0:a.timeline.length)>N&&a.timeline[N].step.name==="User Input"&&a.timeline[N].step.hide===!1){V.push(N),ce=N;break}if(V.length===0)return[];for(let N=ce+1;N<(a==null?void 0:a.timeline.length)&&!((a==null?void 0:a.timeline.length)>N&&a.timeline[N].step.name==="User Input"&&a.timeline[N].step.hide===!1);N++)V.push(N);return V},[a.timeline]),z=C.useCallback(Z=>{const V=Q(Z),ce=V[0];g(N=>{const me=[...N];return me[Z]=!me[Z],!V.some((O,re)=>re>0&&me[O])?me[ce]=!1:!V.some((re,Te)=>Te>0&&!me[re])&&(me[ce]=!0),me})},[Q]);C.useEffect(()=>{c&&he(c)},[c]);const[le,he]=C.useState(c||"New Session");return I.jsxs(bge,{ref:w,onKeyDown:Z=>{Z.key==="Enter"&&Z.ctrlKey&&W()},children:[I.jsxs(_ge,{children:[I.jsx(Ege,{onClick:Z=>{Z.target.setSelectionRange(0,Z.target.value.length)},value:le,onChange:Z=>he(Z.target.value),onBlur:Z=>{Z.target.value===c||typeof c>"u"&&Z.target.value==="New Session"||t==null||t.setCurrentSessionTitle(Z.target.value)},onKeyDown:Z=>{Z.key==="Enter"?(Z.preventDefault(),Z.target.blur()):Z.key==="Escape"&&(he(c||"New Session"),Z.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[a.timeline.filter(Z=>!Z.step.hide).length>0&&I.jsx(vi,{onClick:()=>{a.timeline.filter(Z=>!Z.step.hide).length>0&&(r(sm(!1)),t==null||t.loadSession(void 0))},text:"New Session (⌥⌘N)",children:I.jsx(cD,{width:"1.4em",height:"1.4em"})}),I.jsx(vi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(UY,{width:"1.4em",height:"1.4em"})})]})]}),(k||T)&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(Y0e,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{rl("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(mge,{onClick:Z=>{t==null||t.sendMainInput(Z)}}),I.jsx(vge,{children:a==null?void 0:a.timeline.map((Z,V)=>{var ce,N,me;return Z.step.hide?null:I.jsx(C.Fragment,{children:Z.step.name==="User Input"?Z.step.hide||I.jsx(Zk,{isMainInput:!1,value:Z.step.description,active:Q(V).some(oe=>a.timeline[oe].active)||a.timeline[V].active,onEnter:(oe,O)=>{O&&(t==null||t.editStepAtIndex(O,V)),oe==null||oe.stopPropagation(),oe==null||oe.preventDefault()},groupIndices:Q(V),onToggle:oe=>{g(O=>{const re=[...O];return Q(V).forEach(Te=>{re[Te]=oe}),re})},onToggleAll:oe=>{g(O=>O.map(re=>oe))},isToggleOpen:typeof m[V]>"u"?!0:m[V],index:V,onDelete:()=>{Q(V).forEach(oe=>{t==null||t.deleteAtIndex(oe)})}}):I.jsx(Q0e,{historyNode:Z,iconElement:Z.step.class_name==="DefaultModelEditCodeStep"?I.jsx(NY,{width:"16px",height:"16px"}):(ce=Z.observation)!=null&&ce.error?I.jsx(lD,{width:"16px",height:"16px",color:"red"}):I.jsx(sD,{width:"16px",height:"16px"}),open:typeof m[V]>"u"?!((N=Z.observation)!=null&&N.error):m[V],onToggle:()=>z(V),children:(me=Z.observation)!=null&&me.error?I.jsx(ehe,{onClose:()=>z(V),historyNode:Z,onDelete:()=>t==null?void 0:t.deleteAtIndex(V)}):I.jsx(Kse,{index:V,isLast:V===a.timeline.length-1,isFirst:V===0,open:typeof m[V]>"u"?!0:m[V],onUserInput:oe=>{P(oe,V)},inFuture:V>(a==null?void 0:a.current_index),historyNode:Z,onReverse:()=>{t==null||t.reverseToIndex(V)},onRetry:()=>{t==null||t.retryAtIndex(V),f(!0)},onDelete:()=>{t==null||t.deleteAtIndex(V)},noUserInputParent:Q(V).length===0},V)})},V)})}),I.jsx("div",{children:(fe=u==null?void 0:u.map)==null?void 0:fe.call(u,(Z,V)=>I.jsx(yge,{children:Z},V))}),I.jsx("div",{ref:A}),I.jsx(Zk,{isMainInput:!0,ref:y,onEnter:(Z,V)=>{W(Z),Z==null||Z.stopPropagation(),Z==null||Z.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const Tge=He.div` + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + padding: 0.5rem; + border-radius: ${wt}; + cursor: pointer; + border: 1px solid ${Ht}; + + color: ${Ht}; + background-color: ${Kt}; + + &:hover { + background-color: ${Ht}; + color: ${Kt}; + } + width: fit-content; + + margin: 0.5rem; + height: 1.4em; + + overflow: hidden; + text-overflow: ellipsis; +`;function Sge(e){const{title:t,checked:n,onClick:r}=e;return I.jsxs(Tge,{onClick:r,checked:n,children:[n&&I.jsx(vY,{width:"1.4em",height:"1.4em"}),t]})}const wge=He.tr` + &:hover { + background-color: ${Lt}; + } + + overflow-wrap: anywhere; + + border-bottom: 1px solid ${Lt}; + border-top: 1px solid ${Lt}; +`,V0=e=>{let t=new Date(e);return isNaN(t.getTime())&&(t=new Date(parseInt(e)*1e3)),t},s4=He.tr` + padding: 4px; + padding-left: 16px; + padding-right: 16px; + background-color: ${Lt}; + width: 100%; + font-weight: bold; + text-align: center; + margin: 0; +`,Age=He.div` + cursor: pointer; + padding-left: 1rem; + padding-right: 1rem; + padding-top: 0.5rem; + padding-bottom: 0.5rem; +`;function KI(e){const t=e.includes("/")?"/":"\\";return e.split(t).pop()||e}function Cge(){const e=cs(),t=us(),[n,r]=C.useState([]),[i,a]=C.useState([]),o=C.useContext(Ya),s=zt(b=>b.config.apiUrl),u=zt(b=>b.config.workspacePaths),[c,p]=C.useState(!1);C.useEffect(()=>{(async()=>{if(!s)return;const T=await fetch(`${s}/sessions/list`);if(!T.ok)throw new Error(`HTTP error! status: ${T.status}`);const v=await T.json();r(v)})()},[o]),C.useEffect(()=>{a(n.filter(b=>!c||typeof u>"u"||typeof b.workspace_directory>"u"?!0:u.includes(b.workspace_directory)).sort((b,T)=>V0(T.date_created).getTime()-V0(b.date_created).getTime()))},[c,n]);const f=new Date(Date.now()-1e3*60*60*24),m=new Date(Date.now()-1e3*60*60*24*7),g=new Date(Date.now()-1e3*60*60*24*30),E=new Date(0);return I.jsxs("div",{className:"overflow-y-scroll",style:{fontSize:nr()},children:[I.jsxs("div",{className:"sticky top-0",style:{backgroundColor:Kt},children:[I.jsxs("div",{className:"items-center flex m-0 p-0",style:{borderBottom:`0.5px solid ${vt}`},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"History"})]}),u&&u.length>0&&I.jsx(Sge,{checked:c,onClick:()=>p(b=>!b),title:`Show only sessions from ${KI(u[u.length-1])}/`})]}),n.filter(b=>!c||typeof u>"u"||typeof b.workspace_directory>"u"?!0:u.includes(b.workspace_directory)).length===0&&I.jsxs("div",{className:"text-center m-4",children:['No past sessions found. To start a new session, either click the "+" button or use the keyboard shortcut: ',I.jsx("b",{children:"Option + Command + N"})]}),I.jsxs("div",{children:[I.jsx("table",{className:"w-full border-spacing-0 border-collapse",children:I.jsx("tbody",{children:i.map((b,T)=>{const v=T>0?V0(i[T-1].date_created):E,y=V0(b.date_created);return I.jsxs(C.Fragment,{children:[T===0&&y>f&&I.jsx(s4,{children:"Today"}),ym&&v>f&&I.jsx(s4,{children:"This Week"}),yg&&v>m&&I.jsx(s4,{children:"This Month"}),I.jsx(wge,{children:I.jsx("td",{children:I.jsxs(Age,{onClick:()=>{o==null||o.loadSession(b.session_id),t(sm(!0)),e("/")},children:[I.jsx("div",{className:"text-md",children:b.title}),I.jsxs("div",{className:"text-gray-400",children:[y.toLocaleString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit",hour12:!0})," | ",KI(b.workspace_directory||""),"/"]})]})})},T)]},T)})})}),I.jsx("br",{}),I.jsx("i",{className:"text-sm ml-4",children:"All session data is saved in ~/.continue/sessions"})]})]})}const xge=He.div` + display: grid; + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); + grid-gap: 2rem; + padding: 1rem; + justify-items: center; + align-items: center; + + border-top: 0.5px solid ${vt}; +`,kge=He.div` + border: 0.5px solid ${vt}; + border-radius: ${wt}; + padding: 4px; + color: ${Ht}; + + width: 16px; + height: 16px; + + display: flex; + justify-content: center; + align-items: center; +`;function Ige(e){const t=_2()==="windows"?e.windows:e.mac;return I.jsxs("div",{className:"flex justify-between w-full items-center",children:[I.jsx("span",{style:{color:Ht},children:e.description}),I.jsx("div",{className:"flex gap-2 float-right",children:t.split(" ").map(n=>I.jsx(kge,{children:n}))})]})}const Rge=[{mac:"⌘ M",windows:"⌃ M",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ M",windows:"⌃ ⇧ M",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌘ ⇧ L",windows:"⌃ ⇧ L",description:"Quick Text Entry"},{mac:"⌥ ⌘ M",windows:"⌥ ⌃ M",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⇧ R",windows:"⌃ ⇧ R",description:"Debug Terminal"},{mac:"⌥ ⌘ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}],Nge=[{mac:"⌘ J",windows:"⌃ J",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ J",windows:"⌃ ⇧ J",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌥ ⇧ J",windows:"⌥ ⇧ J",description:"Quick Text Entry"},{mac:"⌥ ⌘ J",windows:"⌥ ⌃ J",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⌃ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}];function Oge(){return I.jsxs("div",{className:"p-2",children:[I.jsx("h3",{className:"my-3 mx-auto text-center",children:"Keyboard Shortcuts"}),I.jsx(xge,{children:(localStorage.getItem("ide")==="jetbrains"?Nge:Rge).map(e=>I.jsx(Ige,{mac:e.mac,windows:e.windows,description:e.description}))})]})}const W0=He.div` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + + height: 100%; + padding: 0 4px; + + &:hover { + background-color: ${e=>e.backgroundColor||vt}; + } +`;function YI(){const e=cs();return I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Help Center"})]}),I.jsxs("div",{className:"grid grid-cols-2 grid-rows-2",children:[I.jsx(W0,{backgroundColor:"rgb(234, 51, 35)",children:I.jsx("a",{href:"https://youtu.be/3Ocrc-WX4iQ?si=eDLYtkc6CXQoHsEc",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5.2 -4.5 60 60",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M 44.898438 14.5 C 44.5 12.300781 42.601563 10.699219 40.398438 10.199219 C 37.101563 9.5 31 9 24.398438 9 C 17.800781 9 11.601563 9.5 8.300781 10.199219 C 6.101563 10.699219 4.199219 12.199219 3.800781 14.5 C 3.398438 17 3 20.5 3 25 C 3 29.5 3.398438 33 3.898438 35.5 C 4.300781 37.699219 6.199219 39.300781 8.398438 39.800781 C 11.898438 40.5 17.898438 41 24.5 41 C 31.101563 41 37.101563 40.5 40.601563 39.800781 C 42.800781 39.300781 44.699219 37.800781 45.101563 35.5 C 45.5 33 46 29.398438 46.101563 25 C 45.898438 20.5 45.398438 17 44.898438 14.5 Z M 19 32 L 19 18 L 31.199219 25 Z"})})})}),I.jsx(W0,{backgroundColor:da,children:I.jsx("a",{href:"https://continue.dev/docs/how-to-use-continue",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2.2 -2 28 28",fill:Ht,className:"w-full h-full flex items-center justify-center",children:I.jsx("path",{d:"M11.25 4.533A9.707 9.707 0 006 3a9.735 9.735 0 00-3.25.555.75.75 0 00-.5.707v14.25a.75.75 0 001 .707A8.237 8.237 0 016 18.75c1.995 0 3.823.707 5.25 1.886V4.533zM12.75 20.636A8.214 8.214 0 0118 18.75c.966 0 1.89.166 2.75.47a.75.75 0 001-.708V4.262a.75.75 0 00-.5-.707A9.735 9.735 0 0018 3a9.707 9.707 0 00-5.25 1.533v16.103z"})})})}),I.jsx(W0,{backgroundColor:"rgb(88, 98, 227)",children:I.jsx("a",{href:"https://discord.gg/vapESyrFmJ",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5 -5.5 60 60",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M 41.625 10.769531 C 37.644531 7.566406 31.347656 7.023438 31.078125 7.003906 C 30.660156 6.96875 30.261719 7.203125 30.089844 7.589844 C 30.074219 7.613281 29.9375 7.929688 29.785156 8.421875 C 32.417969 8.867188 35.652344 9.761719 38.578125 11.578125 C 39.046875 11.867188 39.191406 12.484375 38.902344 12.953125 C 38.710938 13.261719 38.386719 13.429688 38.050781 13.429688 C 37.871094 13.429688 37.6875 13.378906 37.523438 13.277344 C 32.492188 10.15625 26.210938 10 25 10 C 23.789063 10 17.503906 10.15625 12.476563 13.277344 C 12.007813 13.570313 11.390625 13.425781 11.101563 12.957031 C 10.808594 12.484375 10.953125 11.871094 11.421875 11.578125 C 14.347656 9.765625 17.582031 8.867188 20.214844 8.425781 C 20.0625 7.929688 19.925781 7.617188 19.914063 7.589844 C 19.738281 7.203125 19.34375 6.960938 18.921875 7.003906 C 18.652344 7.023438 12.355469 7.566406 8.320313 10.8125 C 6.214844 12.761719 2 24.152344 2 34 C 2 34.175781 2.046875 34.34375 2.132813 34.496094 C 5.039063 39.605469 12.972656 40.941406 14.78125 41 C 14.789063 41 14.800781 41 14.8125 41 C 15.132813 41 15.433594 40.847656 15.621094 40.589844 L 17.449219 38.074219 C 12.515625 36.800781 9.996094 34.636719 9.851563 34.507813 C 9.4375 34.144531 9.398438 33.511719 9.765625 33.097656 C 10.128906 32.683594 10.761719 32.644531 11.175781 33.007813 C 11.234375 33.0625 15.875 37 25 37 C 34.140625 37 38.78125 33.046875 38.828125 33.007813 C 39.242188 32.648438 39.871094 32.683594 40.238281 33.101563 C 40.601563 33.515625 40.5625 34.144531 40.148438 34.507813 C 40.003906 34.636719 37.484375 36.800781 32.550781 38.074219 L 34.378906 40.589844 C 34.566406 40.847656 34.867188 41 35.1875 41 C 35.199219 41 35.210938 41 35.21875 41 C 37.027344 40.941406 44.960938 39.605469 47.867188 34.496094 C 47.953125 34.34375 48 34.175781 48 34 C 48 24.152344 43.785156 12.761719 41.625 10.769531 Z M 18.5 30 C 16.566406 30 15 28.210938 15 26 C 15 23.789063 16.566406 22 18.5 22 C 20.433594 22 22 23.789063 22 26 C 22 28.210938 20.433594 30 18.5 30 Z M 31.5 30 C 29.566406 30 28 28.210938 28 26 C 28 23.789063 29.566406 22 31.5 22 C 33.433594 22 35 23.789063 35 26 C 35 28.210938 33.433594 30 31.5 30 Z"})})})}),I.jsx(W0,{children:I.jsx("a",{href:"https://github.com/continuedev/continue/issues/new/choose",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1.2 -1.2 32 32",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})})})})]}),I.jsx(Oge,{})]})}const Dge=He.div` + position: fixed; + width: 100%; + height: 100%; + background-color: rgba(168, 168, 168, 0.5); + z-index: 100; +`,Lge=He.div` + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 75%; +`,Mge=He.div` + color: ${Ht}; + background-color: ${Kt}; + border-radius: 8px; + display: flex; + flex-direction: column; + box-shadow: 0 0 10px 0 ${Ht}; + margin: auto; + word-wrap: break-word; + overflow: hidden; +`;He.textarea` + border: 1px solid #ccc; + border-radius: 8px; + padding: 8px; + outline: 1px solid black; + resize: none; + background-color: ${Lt}; + color: ${Ht}; + + &:focus { + outline: 1px solid ${Ht}; + } +`;He.p` + color: ${Ht}; + margin: 8px auto; +`;const Fge=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(Dge,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(Lge,{onClick:t=>{t.stopPropagation()},children:I.jsx(Mge,{children:typeof e.message=="string"?I.jsx(HE,{children:e.message||""}):e.message})})}));var Pge=Object.defineProperty,Bge=(e,t,n)=>t in e?Pge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l4=(e,t,n)=>(Bge(e,typeof t!="symbol"?t+"":t,n),n);let Uge=class{constructor(){l4(this,"current",this.detect()),l4(this,"handoffState","pending"),l4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},su=new Uge,zi=(e,t)=>{su.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function Eo(e){let t=C.useRef(e);return zi(()=>{t.current=e},[e]),t}function JF(e,t){let[n,r]=C.useState(e),i=Eo(e);return zi(()=>r(i.current),[i,r,...t]),n}function $ge(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function hl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return $ge(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=hl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function tc(){let[e]=C.useState(hl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Xt=function(e){let t=Eo(e);return ut.useCallback((...n)=>t.current(...n),[t])};function zge(){let e=typeof document>"u";return"useSyncExternalStore"in v4?(t=>t.useSyncExternalStore)(v4)(()=>()=>{},()=>!1,()=>!e):!1}function L7(){let e=zge(),[t,n]=C.useState(su.isHandoffComplete);return t&&su.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>su.handoff(),[]),e?!1:t}var XI;let fm=(XI=ut.useId)!=null?XI:function(){let e=L7(),[t,n]=ut.useState(e?()=>su.nextId():null);return zi(()=>{t===null&&n(su.nextId())},[t]),t!=null?""+t:void 0};function Sr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Sr),r}function eP(e){return su.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZI=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Hge=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Hge||{}),jge=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(jge||{}),Gge=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Gge||{}),M7=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(M7||{});function tP(e,t=0){var n;return e===((n=eP(e))==null?void 0:n.body)?!1:Sr(t,{0(){return e.matches(ZI)},1(){let r=e;for(;r!==null;){if(r.matches(ZI))return!0;r=r.parentElement}return!1}})}var Vge=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Vge||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Wge(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function q0(e,t,n){let r=Eo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function qge(e,t,n){let r=Eo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function Kge(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!tP(u,M7.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);q0("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),q0("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),q0("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),q0("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),qge("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QI(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Yge(e,t){let[n,r]=C.useState(()=>QI(e));return zi(()=>{r(QI(e))},[e.type,e.as]),zi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let Xge=Symbol();function Ru(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Xt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Xge]))?void 0:n}function Zge(e){throw new Error("Unexpected object: "+e)}var gi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(gi||{});function Qge(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:Zge(e)}})();return a===-1?r:a}function kg(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Ig=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ig||{}),Vs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Vs||{});function wl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=nP(t,e);if(a)return K0(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return K0(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Sr(c?0:1,{0(){return null},1(){return K0({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return K0(s,n,r,o)}function K0(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=u4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,E]of Object.entries(t))typeof E=="boolean"&&(f=!0),E===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(E9(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(E=>` - ${E}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(E=>` - ${E}`).join(` +`)].join(` +`));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...E)=>kg(f==null?void 0:f.className(...E),s.className):kg(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},nP(c.props,E9(u4(s,["ref"]))),p,u,Jge(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},u4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function Jge(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function nP(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ds(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function E9(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function u4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function e2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&t2e(n)?!1:r}function t2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function rP(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))aP(n,iP(t,r),i);return n}function iP(e,t){return e?e+"["+t+"]":t}function aP(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())aP(e,iP(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):rP(n,t,e)}let n2e="div";var oP=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(oP||{});function r2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return wl({ourProps:i,theirProps:r,slot:{},defaultTag:n2e,name:"Hidden"})}let i2e=ds(r2e),F7=C.createContext(null);F7.displayName="OpenClosedContext";var Oi=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Oi||{});function P7(){return C.useContext(F7)}function sP({value:e,children:t}){return ut.createElement(F7.Provider,{value:e},t)}var lr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(lr||{});function a2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Xt(c=>(a||i(c),t==null?void 0:t(c)))]}function JI(e){return[e.screenX,e.screenY]}function o2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JI(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JI(t)}}}function B7(){let e=C.useRef(!1);return zi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eR=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tR(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eR.test(o)&&(o=o.replace(eR,"")),o}function s2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tR(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tR(e).trim()}function l2e(e){let t=C.useRef(""),n=C.useRef("");return Xt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=s2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var u2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(u2e||{}),c2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(c2e||{}),d2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(d2e||{}),p2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(p2e||{});function c4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Wge(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let f2e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=c4(e),i=Qge(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=c4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=c4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},U7=C.createContext(null);U7.displayName="ListboxActionsContext";function Jp(e){let t=C.useContext(U7);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jp),n}return t}let $7=C.createContext(null);$7.displayName="ListboxDataContext";function ef(e){let t=C.useContext($7);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ef),n}return t}function h2e(e,t){return Sr(t.type,f2e,e,t)}let g2e=C.Fragment;function m2e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(re,Te)=>re===Te,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Ru(t),[E=p?[]:void 0,b]=a2e(n,o,r),[T,v]=C.useReducer(h2e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),y=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),D=C.useRef(null),k=Xt(typeof s=="string"?(re,Te)=>{let K=s;return(re==null?void 0:re[K])===(Te==null?void 0:Te[K])}:s),R=C.useCallback(re=>Sr(B.mode,{1:()=>E.some(Te=>k(Te,re)),0:()=>k(E,re)}),[E]),B=C.useMemo(()=>({...T,value:E,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:R,optionsPropsRef:y,labelRef:w,buttonRef:A,optionsRef:D}),[E,u,p,T]);zi(()=>{T.dataRef.current=B},[B]),Kge([B.buttonRef,B.optionsRef],(re,Te)=>{var K;v({type:1}),tP(Te,M7.Loose)||(re.preventDefault(),(K=B.buttonRef.current)==null||K.focus())},B.listboxState===0);let W=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:E}),[B,u,E]),P=Xt(re=>{let Te=B.options.find(K=>K.id===re);Te&&Z(Te.dataRef.current.value)}),Q=Xt(()=>{if(B.activeOptionIndex!==null){let{dataRef:re,id:Te}=B.options[B.activeOptionIndex];Z(re.current.value),v({type:2,focus:gi.Specific,id:Te})}}),z=Xt(()=>v({type:0})),le=Xt(()=>v({type:1})),he=Xt((re,Te,K)=>re===gi.Specific?v({type:2,focus:gi.Specific,id:Te,trigger:K}):v({type:2,focus:re,trigger:K})),de=Xt((re,Te)=>(v({type:5,id:re,dataRef:Te}),()=>v({type:6,id:re}))),fe=Xt(re=>(v({type:7,id:re}),()=>v({type:7,id:null}))),Z=Xt(re=>Sr(B.mode,{0(){return b==null?void 0:b(re)},1(){let Te=B.value.slice(),K=Te.findIndex(xe=>k(xe,re));return K===-1?Te.push(re):Te.splice(K,1),b==null?void 0:b(Te)}})),V=Xt(re=>v({type:3,value:re})),ce=Xt(()=>v({type:4})),N=C.useMemo(()=>({onChange:Z,registerOption:de,registerLabel:fe,goToOption:he,closeListbox:le,openListbox:z,selectActiveOption:Q,selectOption:P,search:V,clearSearch:ce}),[]),me={ref:g},oe=C.useRef(null),O=tc();return C.useEffect(()=>{oe.current&&r!==void 0&&O.addEventListener(oe.current,"reset",()=>{b==null||b(r)})},[oe,b]),ut.createElement(U7.Provider,{value:N},ut.createElement($7.Provider,{value:B},ut.createElement(sP,{value:Sr(B.listboxState,{0:Oi.Open,1:Oi.Closed})},a!=null&&E!=null&&rP({[a]:E}).map(([re,Te],K)=>ut.createElement(i2e,{features:oP.Hidden,ref:K===0?xe=>{var ne;oe.current=(ne=xe==null?void 0:xe.closest("form"))!=null?ne:null}:void 0,...E9({key:re,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:re,value:Te})})),wl({ourProps:me,theirProps:f,slot:W,defaultTag:g2e,name:"Listbox"}))))}let b2e="button";function E2e(e,t){var n;let r=fm(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=ef("Listbox.Button"),s=Jp("Listbox.Button"),u=Ru(o.buttonRef,t),c=tc(),p=Xt(T=>{switch(T.key){case lr.Space:case lr.Enter:case lr.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(gi.First)});break;case lr.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(gi.Last)});break}}),f=Xt(T=>{switch(T.key){case lr.Space:T.preventDefault();break}}),m=Xt(T=>{if(e2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=JF(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),E=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),b={ref:u,id:i,type:Yge(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return wl({ourProps:b,theirProps:a,slot:E,defaultTag:b2e,name:"Listbox.Button"})}let v2e="label";function y2e(e,t){let n=fm(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=ef("Listbox.Label"),o=Jp("Listbox.Label"),s=Ru(a.labelRef,t);zi(()=>o.registerLabel(r),[r]);let u=Xt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return wl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:v2e,name:"Listbox.Label"})}let _2e="ul",T2e=Ig.RenderStrategy|Ig.Static;function S2e(e,t){var n;let r=fm(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=ef("Listbox.Options"),s=Jp("Listbox.Options"),u=Ru(o.optionsRef,t),c=tc(),p=tc(),f=P7(),m=(()=>f!==null?(f&Oi.Open)===Oi.Open:o.listboxState===0)();C.useEffect(()=>{var v;let y=o.optionsRef.current;y&&o.listboxState===0&&y!==((v=eP(y))==null?void 0:v.activeElement)&&y.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Xt(v=>{switch(p.dispose(),v.key){case lr.Space:if(o.searchQuery!=="")return v.preventDefault(),v.stopPropagation(),s.search(v.key);case lr.Enter:if(v.preventDefault(),v.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:y}=o.options[o.activeOptionIndex];s.onChange(y.current.value)}o.mode===0&&(s.closeListbox(),hl().nextFrame(()=>{var y;return(y=o.buttonRef.current)==null?void 0:y.focus({preventScroll:!0})}));break;case Sr(o.orientation,{vertical:lr.ArrowDown,horizontal:lr.ArrowRight}):return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Next);case Sr(o.orientation,{vertical:lr.ArrowUp,horizontal:lr.ArrowLeft}):return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Previous);case lr.Home:case lr.PageUp:return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.First);case lr.End:case lr.PageDown:return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Last);case lr.Escape:return v.preventDefault(),v.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var y;return(y=o.buttonRef.current)==null?void 0:y.focus({preventScroll:!0})});case lr.Tab:v.preventDefault(),v.stopPropagation();break;default:v.key.length===1&&(s.search(v.key),p.setTimeout(()=>s.clearSearch(),350));break}}),E=JF(()=>{var v,y,w;return(w=(v=o.labelRef.current)==null?void 0:v.id)!=null?w:(y=o.buttonRef.current)==null?void 0:y.id},[o.labelRef.current,o.buttonRef.current]),b=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":E,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return wl({ourProps:T,theirProps:a,slot:b,defaultTag:_2e,features:T2e,visible:m,name:"Listbox.Options"})}let w2e="li";function A2e(e,t){let n=fm(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=ef("Listbox.Option"),u=Jp("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=l2e(f),g=Eo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),E=Ru(t,f);zi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=hl();return k.requestAnimationFrame(()=>{var R,B;(B=(R=f.current)==null?void 0:R.scrollIntoView)==null||B.call(R,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),zi(()=>u.registerOption(r,g),[g,r]);let b=Xt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),hl().nextFrame(()=>{var R;return(R=s.buttonRef.current)==null?void 0:R.focus({preventScroll:!0})}))}),T=Xt(()=>{if(i)return u.goToOption(gi.Nothing);u.goToOption(gi.Specific,r)}),v=o2e(),y=Xt(k=>v.update(k)),w=Xt(k=>{v.wasMoved(k)&&(i||c||u.goToOption(gi.Specific,r,0))}),A=Xt(k=>{v.wasMoved(k)&&(i||c&&u.goToOption(gi.Nothing))}),D=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return wl({ourProps:{id:r,ref:E,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:b,onFocus:T,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:D,defaultTag:w2e,name:"Listbox.Option"})}let C2e=ds(m2e),x2e=ds(E2e),k2e=ds(y2e),I2e=ds(S2e),R2e=ds(A2e),hm=Object.assign(C2e,{Button:x2e,Label:k2e,Options:I2e,Option:R2e});function N2e(e=0){let[t,n]=C.useState(e),r=B7(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function O2e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function d4(e,...t){e&&t.length>0&&e.classList.add(...t)}function p4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function D2e(e,t){let n=hl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function L2e(e,t,n,r){let i=n?"enter":"leave",a=hl(),o=r!==void 0?O2e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Sr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Sr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Sr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return p4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),d4(e,...t.base,...s,...c),a.nextFrame(()=>{p4(e,...t.base,...s,...c),d4(e,...t.base,...s,...u),D2e(e,()=>(p4(e,...t.base,...s),d4(e,...t.base,...t.entered),o()))}),a.dispose}function M2e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=B7(),s=tc(),u=Eo(n);zi(()=>{e&&(u.current="enter")},[e]),zi(()=>{let c=hl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(L2e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Rs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let gm=C.createContext(null);gm.displayName="TransitionContext";var F2e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(F2e||{});function P2e(){let e=C.useContext(gm);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function B2e(){let e=C.useContext(mm);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let mm=C.createContext(null);mm.displayName="NestingContext";function bm(e){return"children"in e?bm(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function lP(e,t){let n=Eo(e),r=C.useRef([]),i=B7(),a=tc(),o=Xt((g,E=Vs.Hidden)=>{let b=r.current.findIndex(({el:T})=>T===g);b!==-1&&(Sr(E,{[Vs.Unmount](){r.current.splice(b,1)},[Vs.Hidden](){r.current[b].state="hidden"}}),a.microTask(()=>{var T;!bm(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Xt(g=>{let E=r.current.find(({el:b})=>b===g);return E?E.state!=="visible"&&(E.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Vs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Xt((g,E,b)=>{u.current.splice(0),t&&(t.chains.current[E]=t.chains.current[E].filter(([T])=>T!==g)),t==null||t.chains.current[E].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[E].push([g,new Promise(T=>{Promise.all(p.current[E].map(([v,y])=>y)).then(()=>T())})]),E==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>b(E)):b(E)}),m=Xt((g,E,b)=>{Promise.all(p.current[E].splice(0).map(([T,v])=>v)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>b(E))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function U2e(){}let $2e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nR(e){var t;let n={};for(let r of $2e)n[r]=(t=e[r])!=null?t:U2e;return n}function z2e(e){let t=C.useRef(nR(e));return C.useEffect(()=>{t.current=nR(e)},[e]),t}let H2e="div",uP=Ig.RenderStrategy;function j2e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:E,...b}=e,T=C.useRef(null),v=Ru(T,t),y=(n=b.unmount)==null||n?Vs.Unmount:Vs.Hidden,{show:w,appear:A,initial:D}=P2e(),[k,R]=C.useState(w?"visible":"hidden"),B=B2e(),{register:W,unregister:P}=B;C.useEffect(()=>W(T),[W,T]),C.useEffect(()=>{if(y===Vs.Hidden&&T.current){if(w&&k!=="visible"){R("visible");return}return Sr(k,{hidden:()=>P(T),visible:()=>W(T)})}},[k,T,W,P,w,y]);let Q=Eo({base:Rs(b.className),enter:Rs(u),enterFrom:Rs(c),enterTo:Rs(p),entered:Rs(f),leave:Rs(m),leaveFrom:Rs(g),leaveTo:Rs(E)}),z=z2e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),le=L7();C.useEffect(()=>{if(le&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,le]);let he=D&&!A,de=A&&w&&D,fe=(()=>!le||he?"idle":w?"enter":"leave")(),Z=N2e(0),V=Xt(O=>Sr(O,{enter:()=>{Z.addFlag(Oi.Opening),z.current.beforeEnter()},leave:()=>{Z.addFlag(Oi.Closing),z.current.beforeLeave()},idle:()=>{}})),ce=Xt(O=>Sr(O,{enter:()=>{Z.removeFlag(Oi.Opening),z.current.afterEnter()},leave:()=>{Z.removeFlag(Oi.Closing),z.current.afterLeave()},idle:()=>{}})),N=lP(()=>{R("hidden"),P(T)},B);M2e({immediate:de,container:T,classes:Q,direction:fe,onStart:Eo(O=>{N.onStart(T,O,V)}),onStop:Eo(O=>{N.onStop(T,O,ce),O==="leave"&&!bm(N)&&(R("hidden"),P(T))})});let me=b,oe={ref:v};return de?me={...me,className:kg(b.className,...Q.current.enter,...Q.current.enterFrom)}:(me.className=kg(b.className,(r=T.current)==null?void 0:r.className),me.className===""&&delete me.className),ut.createElement(mm.Provider,{value:N},ut.createElement(sP,{value:Sr(k,{visible:Oi.Open,hidden:Oi.Closed})|Z.flags},wl({ourProps:oe,theirProps:me,defaultTag:H2e,features:uP,visible:k==="visible",name:"Transition.Child"})))}function G2e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Ru(o,t);L7();let u=P7();if(n===void 0&&u!==null&&(n=(u&Oi.Open)===Oi.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=lP(()=>{p("hidden")}),[m,g]=C.useState(!0),E=C.useRef([n]);zi(()=>{m!==!1&&E.current[E.current.length-1]!==n&&(E.current.push(n),g(!1))},[E,n]);let b=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!bm(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},v=Xt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),y=Xt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return ut.createElement(mm.Provider,{value:f},ut.createElement(gm.Provider,{value:b},wl({ourProps:{...T,as:C.Fragment,children:ut.createElement(cP,{ref:s,...T,...a,beforeEnter:v,beforeLeave:y})},theirProps:{},defaultTag:C.Fragment,features:uP,visible:c==="visible",name:"Transition"})))}function V2e(e,t){let n=C.useContext(gm)!==null,r=P7()!==null;return ut.createElement(ut.Fragment,null,!n&&r?ut.createElement(v9,{ref:t,...e}):ut.createElement(cP,{ref:t,...e}))}let v9=ds(G2e),cP=ds(j2e),W2e=ds(V2e),q2e=Object.assign(v9,{Child:W2e,Root:v9});const K2e=He.div` + display: grid; + grid-template-columns: 1fr auto; + align-items: center; + border: 0.5px solid ${vt}; + border-radius: ${wt}; + overflow: hidden; +`;He.select` + border: none; + max-width: 50vw; + background-color: ${Kt}; + color: ${Ht}; + padding: 6px; + max-height: 35vh; + overflow: scroll; + cursor: pointer; + + &:focus { + outline: none; + } + &:hover { + background-color: ${Lt}; + } +`;const Y2e=He(cD)` + background-color: ${Kt}; + cursor: pointer; + margin: 0px; + padding-left: 4px; + padding-right: 4px; + height: 100%; + + &:hover { + background-color: ${Lt}; + } + border-left: 0.5px solid ${vt}; +`;He.div` + cursor: pointer; + padding: 8px; + padding-left: 16px; + padding-right: 16px; + border-top: 0.5px solid ${vt}; + + &:hover { + background-color: ${Lt}; + } +`;const X2e=He(hm)` + background-color: ${Kt}; + padding: 0; + min-width: 80px; +`,Z2e=He(hm.Button)` + position: relative; + cursor: pointer; + background-color: ${Kt}; + text-align: left; + border: none; + margin: 0; + height: 100%; + width: 100%; + max-width: 180px; + white-space: nowrap; + overflow: hidden; + + display: grid; + grid-template-columns: 1fr auto; + align-items: center; + + color: ${Ht}; + + padding: 4px 8px; + + &:focus { + outline: none; + } + + &:hover { + background-color: ${Lt}; + } +`,Q2e=He(hm.Options)` + background-color: ${Lt}; + padding: 0; + + position: absolute; + bottom: calc(100% - 16px); + max-width: 100%; + + border-radius: ${wt}; + overflow: hidden; +`,J2e=He(hm.Option)` + background-color: ${({selected:e})=>e?`${da}88`:Lt}; + cursor: pointer; + padding: 6px 8px; + + &:hover { + background-color: ${da}44; + } +`;function f4(e){return e!=null&&e.title?e==null?void 0:e.title:(e==null?void 0:e.model)!==void 0&&(e==null?void 0:e.model.trim())!==""?e!=null&&e.class_name?`${e==null?void 0:e.class_name} - ${e==null?void 0:e.model}`:e==null?void 0:e.model:e==null?void 0:e.class_name}function eme(e){const t=C.useContext(Ya),n=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.default}),r=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.saved}),i=cs(),a={value:JSON.stringify({t:"default",idx:-1}),title:"GPT-4"},[o,s]=C.useState([a]);C.useEffect(()=>{if(!n&&!r){s([a]);return}const c=[];n&&c.push({value:JSON.stringify({t:"default",idx:-1}),title:f4(n)}),r==null||r.forEach((p,f)=>{c.push({value:JSON.stringify({t:"saved",idx:f}),title:f4(p)})}),s(c)},[n,r]);const u=document.getElementById("model-select-top-div");return I.jsx(I.Fragment,{children:I.jsxs(K2e,{children:[I.jsx(X2e,{value:JSON.stringify({t:"default",idx:-1}),onChange:c=>{const p=JSON.parse(c);p.t==="saved"&&(t==null||t.setModelForRoleFromIndex("*",p.idx))},defaultValue:"0",children:I.jsxs("div",{className:"relative",children:[I.jsxs(Z2e,{children:[I.jsx("div",{children:f4(n)||"GPT-4"}),I.jsx("div",{className:"pointer-events-none flex items-center",children:I.jsx(kY,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),u&&_E.createPortal(I.jsx(q2e,{as:C.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:I.jsx(Q2e,{children:o.map((c,p)=>I.jsx(J2e,{selected:c.value===JSON.stringify({t:"default",idx:-1}),value:c.value,children:I.jsx("span",{children:c.title})},p))})}),u)]})}),I.jsx(Y2e,{width:"1.3em",height:"1.3em",onClick:()=>{i("/models")}})]})})}const tme=He.div` + width: 100px; + height: 6px; + border-radius: 6px; + border: 0.5px solid ${vt}; + margin-top: 6px; +`,nme=He.div` + height: 100%; + background-color: ${e=>e.color||Ht}; + border-radius: inherit; + transition: width 0.2s ease-in-out; + width: ${e=>e.completed}%; +`,rme=He.div` + display: grid; + grid-template-rows: 1fr auto; + align-items: center; + justify-items: center; +`,ime=He.p` + margin: 0; + margin-top: 2px; + font-size: 11.5px; + color: ${vt}; + text-align: center; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +`,ame=({completed:e,total:t})=>{const n=Math.min(100,Math.max(0,e/t*100));return I.jsxs(I.Fragment,{children:[I.jsx("a",{href:"https://continue.dev/docs/customization/models",className:"no-underline ml-2",children:I.jsxs(rme,{"data-tooltip-id":"usage_progress_bar",children:[I.jsx(tme,{children:I.jsx(nme,{completed:n,color:e/t>.75?e/t>.95?"#f00":"#fc0":void 0})}),I.jsxs(ime,{children:["Free Uses: ",e," / ",t]})]})}),I.jsx(Gs,{id:"usage_progress_bar",place:"bottom",children:"Continue allows you to use our OpenAI API key for up to 250 inputs. After this, you can either use your own API key, or use a local LLM. Click the progress bar to go to the docs and learn more."})]})},ome="1.8em",sme=He.div` + height: 100%; + border-radius: ${wt}; + scrollbar-base-color: transparent; + scrollbar-width: thin; + + & * { + ::-webkit-scrollbar { + width: 4px; + } + + ::-webkit-scrollbar:horizontal { + height: 4px; + } + + ::-webkit-scrollbar-thumb { + border-radius: 2px; + } + } +`,lme=He.div` + position: fixed; + bottom: ${e=>e.displayOnBottom?"50px":void 0}; + top: ${e=>e.displayOnBottom?void 0:"50px"}; + left: 0; + right: 0; + margin: 8px; + margin-top: 0; + background-color: ${Lt}; + color: ${Ht}; + border-radius: ${wt}; + padding: 12px; + z-index: 100; + box-shadow: 0px 0px 2px 0px ${Ht}; + max-height: 35vh; +`,ume=He.footer` + display: flex; + flex-direction: row; + gap: 8px; + justify-content: right; + padding: 8px; + align-items: center; + width: calc(100% - 16px); + height: ${ome}; + + overflow: hidden; +`,cme=He.div` + display: grid; + grid-template-rows: 1fr auto; + height: 100vh; + overflow-x: visible; +`,dme=He.div` + background-color: ${Lt}; + position: relative; + margin-left: 8px; + z-index: 200; + font-size: ${nr()}; +`,pme=()=>{const e=cs(),t=D7(),n=C.useContext(Ya),r=us(),i=zt(p=>p.uiState.dialogMessage),a=zt(p=>p.uiState.showDialog),o=zt(p=>{var f;return(f=p.serverState.config.models)==null?void 0:f.default}),s=zt(p=>p.uiState.bottomMessage),u=zt(p=>p.uiState.displayBottomMessageOnBottom),c=zt(p=>p.serverState.history.timeline);return C.useEffect(()=>{const p=f=>{var m;if(f.metaKey&&f.altKey&&f.code==="KeyN"&&c.filter(g=>!g.step.hide).length>0&&(r(sm(!1)),n==null||n.loadSession(void 0)),(f.metaKey||f.ctrlKey)&&f.code==="KeyC"){const g=(m=window.getSelection())==null?void 0:m.toString();g&&setTimeout(()=>{navigator.clipboard.writeText(g)},100)}};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p)}},[n,c]),C.useEffect(()=>{const p=f=>{f.data.type==="addModel"?e("/models"):f.data.type==="openSettings"&&e("/settings")};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p)}},[]),I.jsxs(sme,{children:[I.jsxs("div",{style:{scrollbarGutter:"stable both-edges",minHeight:"100%",display:"grid",gridTemplateRows:"1fr auto"},children:[I.jsx(Fge,{showDialog:a,onEnter:()=>{r(Q1(!1))},onClose:()=>{r(Q1(!1))},message:i}),I.jsxs(cme,{children:[I.jsx(oge,{}),I.jsx(dme,{id:"model-select-top-div"}),I.jsxs(ume,{children:[I.jsxs("div",{className:"mr-auto flex gap-2 items-center",children:[localStorage.getItem("ide")==="jetbrains"||localStorage.getItem("hideFeature")==="true"||I.jsx(dD,{className:"cursor-pointer",onClick:()=>{localStorage.setItem("hideFeature","true")},onMouseEnter:()=>{r(au("🎁 New Feature: Use ⌘⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)"))},onMouseLeave:()=>{r(Wk(setTimeout(()=>{r(au(void 0))},2e3)))},width:"1.3em",height:"1.3em",color:"yellow"}),I.jsx(eme,{}),(o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(t.pathname==="/settings"||parseInt(localStorage.getItem("ftc")||"0")>=125)&&I.jsx(ame,{completed:parseInt(localStorage.getItem("ftc")||"0"),total:250})]}),I.jsx(vi,{text:"Help",onClick:()=>{e("/help")},children:I.jsx(iX,{width:"1.4em",height:"1.4em"})}),I.jsx(vi,{onClick:()=>{e("/settings")},text:"Settings",children:I.jsx(LY,{width:"1.4em",height:"1.4em"})})]})]}),I.jsx(lme,{displayOnBottom:u,onMouseEnter:()=>{r(Wk(void 0))},onMouseLeave:p=>{p.buttons||r(au(void 0))},hidden:!s,children:s})]}),I.jsx("div",{className:"text-sm",id:"tooltip-portal-div"})]})};class fme{}class dP{}class hme extends dP{constructor(n){super();ea(this,"websocket");ea(this,"onMessageListeners",{});ea(this,"onErrorListeners",[]);ea(this,"onOpenListeners",[]);ea(this,"onCloseListeners",[]);ea(this,"serverUrl");this.serverUrl=n,this.websocket=this._newWebsocket()}_newWebsocket(){const n=new WebSocket(this.serverUrl);for(const r of this.onOpenListeners)this.onOpen(r);for(const r of this.onCloseListeners)this.onClose(r);for(const r in this.onMessageListeners)for(const i of this.onMessageListeners[r])this.onMessageType(r,i);for(const r of this.onErrorListeners)this.onError(r);return n}send(n,r){const i=JSON.stringify({messageType:n,data:r});this.websocket.readyState===this.websocket.OPEN?this.websocket.send(i):(this.websocket.readyState!==this.websocket.CONNECTING&&(this.websocket=this._newWebsocket()),this.websocket.addEventListener("open",()=>{this.websocket.send(i)}))}sendAndReceive(n,r){return new Promise((i,a)=>{const o=s=>{i(s),this.websocket.removeEventListener("message",o)};this.websocket.addEventListener("message",s=>{const u=JSON.parse(s.data);u.messageType===n&&o(u.data)}),this.send(n,r)})}onMessageType(n,r){this.websocket.addEventListener("message",i=>{const a=JSON.parse(i.data);a.messageType===n&&r(a.data)}),this.onMessageListeners[n]=[...this.onMessageListeners[n]||[],r]}onMessage(n){this.websocket.addEventListener("message",r=>{const i=JSON.parse(r.data);n(i.messageType,i.data)})}onOpen(n){this.websocket.addEventListener("open",n),this.onOpenListeners.push(n)}onClose(n){this.websocket.addEventListener("close",n),this.onCloseListeners.push(n)}onError(n){this.websocket.addEventListener("error",n),this.onErrorListeners.push(n)}close(){this.websocket.close()}}class gme extends dP{constructor(n){super();ea(this,"serverUrl");this.serverUrl=n,rl("websocketForwardingOpen",{url:this.serverUrl})}send(n,r){rl("websocketForwardingMessage",{message:{messageType:n,data:r},url:this.serverUrl})}onMessageType(n,r){window.addEventListener("message",i=>{if(i.data.type==="websocketForwardingMessage"){const a=JSON.parse(i.data.data);a.messageType===n&&r(a.data)}})}onMessage(n){window.addEventListener("message",r=>{if(r.data.type==="websocketForwardingMessage"){const i=JSON.parse(r.data.data);n(i.messageType,i.data)}})}onError(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingError"&&n(r.data.error)})}sendAndReceive(n,r){return new Promise(i=>{const a=o=>{if(o.data.type==="websocketForwardingMessage"){const s=JSON.parse(o.data.data);s.messageType===n&&(window.removeEventListener("message",a),i(s.data))}};window.addEventListener("message",a),this.send(n,r)})}onOpen(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingOpen"&&n()})}onClose(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingClose"&&n()})}close(){rl("websocketForwardingClose",{url:this.serverUrl})}}class mme extends fme{constructor(n,r){super();ea(this,"messenger");ea(this,"serverUrlWithSessionId");ea(this,"useVscodeMessagePassing");ea(this,"onStateUpdateCallbacks",[]);this.serverUrlWithSessionId=n,this.useVscodeMessagePassing=r,this.connectMessenger(n,r)}connectMessenger(n,r){this.messenger&&(console.log("Closing session: ",this.serverUrlWithSessionId),this.messenger.close()),this.serverUrlWithSessionId=n,this.useVscodeMessagePassing=r,this.messenger=r?new gme(n):new hme(n),this.messenger.onClose(()=>{console.log("GUI Connection closed: ",n)}),this.messenger.onError(i=>{console.log("GUI Connection error: ",i)}),this.messenger.onOpen(()=>{console.log("GUI Connection opened: ",n)}),this.messenger.onMessageType("reconnect_at_session",i=>{i.session_id&&this.onReconnectAtSession(i.session_id)}),this.messenger.onMessageType("state_update",i=>{if(i.state)for(const a of this.onStateUpdateCallbacks)a(i.state)})}loadSession(n){var r;(r=this.messenger)==null||r.send("load_session",{session_id:n})}onReconnectAtSession(n){const r=`${this.serverUrlWithSessionId.split("?")[0]}?session_id=${n}`;console.log("Reconnecting at session: ",r),this.connectMessenger(r,this.useVscodeMessagePassing)}sendMainInput(n){var r;(r=this.messenger)==null||r.send("main_input",{input:n})}reverseToIndex(n){var r;(r=this.messenger)==null||r.send("reverse_to_index",{index:n})}sendRefinementInput(n,r){var i;(i=this.messenger)==null||i.send("refinement_input",{input:n,index:r})}sendStepUserInput(n,r){var i;(i=this.messenger)==null||i.send("step_user_input",{input:n,index:r})}onStateUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("state_update",i=>{i.state&&n(i.state)}),this.onStateUpdateCallbacks.push(n)}onAvailableSlashCommands(n){var r;(r=this.messenger)==null||r.onMessageType("available_slash_commands",i=>{i.commands&&n(i.commands)})}sendClear(){var n;(n=this.messenger)==null||n.send("clear_history",{})}retryAtIndex(n){var r;(r=this.messenger)==null||r.send("retry_at_index",{index:n})}deleteAtIndex(n){var r;(r=this.messenger)==null||r.send("delete_at_index",{index:n})}deleteContextWithIds(n,r){var i;(i=this.messenger)==null||i.send("delete_context_with_ids",{ids:n.map(a=>`${a.provider_title}-${a.item_id}`),index:r})}setEditingAtIds(n){var r;(r=this.messenger)==null||r.send("set_editing_at_ids",{ids:n})}toggleAddingHighlightedCode(){var n;(n=this.messenger)==null||n.send("toggle_adding_highlighted_code",{})}showLogsAtIndex(n){var r;(r=this.messenger)==null||r.send("show_logs_at_index",{index:n})}showContextVirtualFile(n){var r;(r=this.messenger)==null||r.send("show_context_virtual_file",{index:n})}selectContextItem(n,r){var i;(i=this.messenger)==null||i.send("select_context_item",{id:n,query:r})}selectContextItemAtIndex(n,r,i){var a;(a=this.messenger)==null||a.send("select_context_item_at_index",{id:n,query:r,index:i})}editStepAtIndex(n,r){var i;(i=this.messenger)==null||i.send("edit_step_at_index",{user_input:n,index:r})}setSystemMessage(n){var r;(r=this.messenger)==null||r.send("set_system_message",{message:n})}setTemperature(n){var r;(r=this.messenger)==null||r.send("set_temperature",{temperature:n})}addModelForRole(n,r,i){var a;(a=this.messenger)==null||a.send("add_model_for_role",{role:n,model:i,model_class:r})}setModelForRoleFromIndex(n,r){var i;(i=this.messenger)==null||i.send("set_model_for_role_from_index",{role:n,index:r})}saveContextGroup(n,r){var i;(i=this.messenger)==null||i.send("save_context_group",{context_items:r,title:n})}selectContextGroup(n){var r;(r=this.messenger)==null||r.send("select_context_group",{id:n})}deleteContextGroup(n){var r;(r=this.messenger)==null||r.send("delete_context_group",{id:n})}setCurrentSessionTitle(n){var r;(r=this.messenger)==null||r.send("set_current_session_title",{title:n})}previewContextItem(n){var r;(r=this.messenger)==null||r.send("preview_context_item",{id:n})}}function bme(e=!0){const t=zt(a=>a.config.sessionId),n=zt(a=>a.config.apiUrl),[r,i]=C.useState(void 0);return C.useEffect(()=>{if(console.log(r,t,n),!t||!n){e&&rl("onLoad",{}),i(void 0);return}const a=n.replace("http","ws")+"/gui/ws?session_id="+encodeURIComponent(t);console.log("Creating GUI websocket",a,e);const o=new mme(a,e);console.log(o),i(o)},[t,n]),r}const pP=Zp({name:"config",initialState:{apiUrl:"http://localhost:8000",vscMediaUrl:localStorage.getItem("vscMediaUrl")||void 0},reducers:{setWorkspacePaths:(e,t)=>({...e,workspacePaths:t.payload}),setApiUrl:(e,t)=>({...e,apiUrl:t.payload}),setVscMachineId:(e,t)=>({...e,vscMachineId:t.payload}),setSessionId:(e,t)=>({...e,sessionId:t.payload}),setVscMediaUrl:(e,t)=>(localStorage.setItem("vscMediaUrl",t.payload),{...e,vscMediaUrl:t.payload}),setDataSwitchOn:(e,t)=>({...e,dataSwitchOn:t.payload})}}),{setVscMachineId:Eme,setApiUrl:vme,setWorkspacePaths:yme,setSessionId:_me,setVscMediaUrl:Tme,setDataSwitchOn:Sme}=pP.actions,wme=pP.reducer;function Ame(){const e=QF();return console.error(e),I.jsxs("div",{id:"error-page",className:"text-center",children:[I.jsx("h1",{children:"Error in Continue React App"}),I.jsx("p",{children:I.jsx("i",{children:e.statusText||e.message})}),I.jsx("br",{}),I.jsx("pre",{className:"text-left m-4",children:e.stack})]})}const fP="28px",Cme=He.div` + margin-top: 16px; + margin: auto; + width: ${fP}; + animation: flash 1.2s infinite ease-in-out; + @keyframes flash { + 0% { + opacity: 0.4; + } + 50% { + opacity: 1; + } + 100% { + opacity: 0.4; + } + } +`;function xme(e){const t=zt(n=>n.config.vscMediaUrl);return I.jsx(Cme,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(uD,{width:e.size||fP})})}const y9=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(HY,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&_E.createPortal(I.jsx(Gs,{id:t,place:"bottom",children:e}),n)]})};var tf=e=>e.type==="checkbox",k1=e=>e instanceof Date,Zr=e=>e==null;const hP=e=>typeof e=="object";var rr=e=>!Zr(e)&&!Array.isArray(e)&&hP(e)&&!k1(e),kme=e=>rr(e)&&e.target?tf(e.target)?e.target.checked:e.target.value:e,Ime=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Rme=(e,t)=>e.has(Ime(t)),Nme=e=>{const t=e.constructor&&e.constructor.prototype;return rr(t)&&t.hasOwnProperty("isPrototypeOf")},z7=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function jo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(z7&&(e instanceof Blob||e instanceof FileList))&&(n||rr(e)))if(t=n?[]:{},!n&&!Nme(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=jo(e[r]));else return e;return t}var nf=e=>Array.isArray(e)?e.filter(Boolean):[],Wn=e=>e===void 0,lt=(e,t,n)=>{if(!t||!rr(e))return n;const r=nf(t.split(/[,[\].]+?/)).reduce((i,a)=>Zr(i)?i:i[a],e);return Wn(r)||r===e?Wn(e[t])?n:e[t]:r},tu=e=>typeof e=="boolean";const rR={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ba={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},zo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ome=ut.createContext(null),gP=e=>{const{children:t,...n}=e;return ut.createElement(Ome.Provider,{value:n},t)};var Dme=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ba.all&&(t._proxyFormState[o]=!r||Ba.all),n&&(n[o]=!0),e[o]}});return i},aa=e=>rr(e)&&!Object.keys(e).length,Lme=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return aa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ba.all))},h4=e=>Array.isArray(e)?e:[e];function Mme(e){const t=ut.useRef(e);t.current=e,ut.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var fo=e=>typeof e=="string",Fme=(e,t,n,r,i)=>fo(e)?(r&&t.watch.add(e),lt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),lt(n,a))):(r&&(t.watchAll=!0),n),H7=e=>/^\w*$/.test(e),mP=e=>nf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function An(e,t,n){let r=-1;const i=H7(t)?[t]:mP(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const _9=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=lt(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else rr(o)&&_9(o,t)}}};var iR=e=>({isOnSubmit:!e||e===Ba.onSubmit,isOnBlur:e===Ba.onBlur,isOnChange:e===Ba.onChange,isOnAll:e===Ba.all,isOnTouch:e===Ba.onTouched}),aR=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),Bme=(e,t,n)=>{const r=nf(lt(e,n));return An(r,"root",t[n]),An(e,n,r),e},j7=e=>e.type==="file",Ws=e=>typeof e=="function",Rg=e=>{if(!z7)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ah=e=>fo(e),G7=e=>e.type==="radio",Ng=e=>e instanceof RegExp;const oR={value:!1,isValid:!1},sR={value:!0,isValid:!0};var bP=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Wn(e[0].attributes.value)?Wn(e[0].value)||e[0].value===""?sR:{value:e[0].value,isValid:!0}:sR:oR}return oR};const lR={isValid:!1,value:null};var EP=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,lR):lR;function uR(e,t,n="validate"){if(Ah(e)||Array.isArray(e)&&e.every(Ah)||tu(e)&&!e)return{type:n,message:Ah(e)?e:"",ref:t}}var Qu=e=>rr(e)&&!Ng(e)?e:{value:e,message:""},cR=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:E,valueAsNumber:b,mount:T,disabled:v}=e._f,y=lt(t,E);if(!T||v)return{};const w=o?o[0]:a,A=z=>{r&&w.reportValidity&&(w.setCustomValidity(tu(z)?"":z||""),w.reportValidity())},D={},k=G7(a),R=tf(a),B=k||R,W=(b||j7(a))&&Wn(a.value)&&Wn(y)||Rg(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,P=Pme.bind(null,E,n,D),Q=(z,le,he,de=zo.maxLength,fe=zo.minLength)=>{const Z=z?le:he;D[E]={type:z?de:fe,message:Z,ref:a,...P(z?de:fe,Z)}};if(i?!Array.isArray(y)||!y.length:s&&(!B&&(W||Zr(y))||tu(y)&&!y||R&&!bP(o).isValid||k&&!EP(o).isValid)){const{value:z,message:le}=Ah(s)?{value:!!s,message:s}:Qu(s);if(z&&(D[E]={type:zo.required,message:le,ref:w,...P(zo.required,le)},!n))return A(le),D}if(!W&&(!Zr(p)||!Zr(f))){let z,le;const he=Qu(f),de=Qu(p);if(!Zr(y)&&!isNaN(y)){const fe=a.valueAsNumber||y&&+y;Zr(he.value)||(z=fe>he.value),Zr(de.value)||(le=fenew Date(new Date().toDateString()+" "+N),V=a.type=="time",ce=a.type=="week";fo(he.value)&&y&&(z=V?Z(y)>Z(he.value):ce?y>he.value:fe>new Date(he.value)),fo(de.value)&&y&&(le=V?Z(y)+z.value,de=!Zr(le.value)&&y.length<+le.value;if((he||de)&&(Q(he,z.message,le.message),!n))return A(D[E].message),D}if(m&&!W&&fo(y)){const{value:z,message:le}=Qu(m);if(Ng(z)&&!y.match(z)&&(D[E]={type:zo.pattern,message:le,ref:a,...P(zo.pattern,le)},!n))return A(le),D}if(g){if(Ws(g)){const z=await g(y,t),le=uR(z,w);if(le&&(D[E]={...le,...P(zo.validate,le.message)},!n))return A(le.message),D}else if(rr(g)){let z={};for(const le in g){if(!aa(z)&&!n)break;const he=uR(await g[le](y,t),w,le);he&&(z={...he,...P(le,he.message)},A(he.message),n&&(D[E]=z))}if(!aa(z)&&(D[E]={ref:w,...z},!n))return D}}return A(!0),D};function Ume(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var Og=e=>Zr(e)||!hP(e);function nu(e,t){if(Og(e)||Og(t))return e===t;if(k1(e)&&k1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(k1(a)&&k1(o)||rr(a)&&rr(o)||Array.isArray(a)&&Array.isArray(o)?!nu(a,o):a!==o)return!1}}return!0}var vP=e=>e.type==="select-multiple",zme=e=>G7(e)||tf(e),m4=e=>Rg(e)&&e.isConnected,yP=e=>{for(const t in e)if(Ws(e[t]))return!0;return!1};function Dg(e,t={}){const n=Array.isArray(e);if(rr(e)||n)for(const r in e)Array.isArray(e[r])||rr(e[r])&&!yP(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Dg(e[r],t[r])):Zr(e[r])||(t[r]=!0);return t}function _P(e,t,n){const r=Array.isArray(e);if(rr(e)||r)for(const i in e)Array.isArray(e[i])||rr(e[i])&&!yP(e[i])?Wn(t)||Og(n[i])?n[i]=Array.isArray(e[i])?Dg(e[i],[]):{...Dg(e[i])}:_P(e[i],Zr(t)?{}:t[i],n[i]):n[i]=!nu(e[i],t[i]);return n}var b4=(e,t)=>_P(e,t,Dg(t)),TP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Wn(e)?e:t?e===""?NaN:e&&+e:n&&fo(e)?new Date(e):r?r(e):e;function E4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return j7(t)?t.files:G7(t)?EP(e.refs).value:vP(t)?[...t.selectedOptions].map(({value:n})=>n):tf(t)?bP(e.refs).value:TP(Wn(t.value)?e.ref.value:t.value,e)}var Hme=(e,t,n,r)=>{const i={};for(const a of e){const o=lt(t,a);o&&An(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ad=e=>Wn(e)?e:Ng(e)?e.source:rr(e)?Ng(e.value)?e.value.source:e.value:e,jme=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function dR(e,t,n){const r=lt(e,n);if(r||H7(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=lt(t,a),s=lt(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var Gme=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Vme=(e,t)=>!nf(lt(e,t)).length&&br(e,t);const Wme={mode:Ba.onSubmit,reValidateMode:Ba.onChange,shouldFocusError:!0};function qme(e={},t){let n={...Wme,...e},r={submitCount:0,isDirty:!1,isLoading:Ws(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=rr(n.defaultValues)||rr(n.values)?jo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:jo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:g4(),array:g4(),state:g4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,E=iR(n.mode),b=iR(n.reValidateMode),T=n.criteriaMode===Ba.all,v=U=>ie=>{clearTimeout(p),p=setTimeout(U,ie)},y=async U=>{if(f.isValid||U){const ie=n.resolver?aa((await W()).errors):await Q(i,!0);ie!==r.isValid&&m.state.next({isValid:ie})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,ie=[],pe,ke,ve=!0,Se=!0)=>{if(ke&&pe){if(s.action=!0,Se&&Array.isArray(lt(i,U))){const Me=pe(lt(i,U),ke.argA,ke.argB);ve&&An(i,U,Me)}if(Se&&Array.isArray(lt(r.errors,U))){const Me=pe(lt(r.errors,U),ke.argA,ke.argB);ve&&An(r.errors,U,Me),Vme(r.errors,U)}if(f.touchedFields&&Se&&Array.isArray(lt(r.touchedFields,U))){const Me=pe(lt(r.touchedFields,U),ke.argA,ke.argB);ve&&An(r.touchedFields,U,Me)}f.dirtyFields&&(r.dirtyFields=b4(a,o)),m.state.next({name:U,isDirty:le(U,ie),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else An(o,U,ie)},D=(U,ie)=>{An(r.errors,U,ie),m.state.next({errors:r.errors})},k=(U,ie,pe,ke)=>{const ve=lt(i,U);if(ve){const Se=lt(o,U,Wn(pe)?lt(a,U):pe);Wn(Se)||ke&&ke.defaultChecked||ie?An(o,U,ie?Se:E4(ve._f)):fe(U,Se),s.mount&&y()}},R=(U,ie,pe,ke,ve)=>{let Se=!1,Me=!1;const ze={name:U};if(!pe||ke){f.isDirty&&(Me=r.isDirty,r.isDirty=ze.isDirty=le(),Se=Me!==ze.isDirty);const Ke=nu(lt(a,U),ie);Me=lt(r.dirtyFields,U),Ke?br(r.dirtyFields,U):An(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Se=Se||f.dirtyFields&&Me!==!Ke}if(pe){const Ke=lt(r.touchedFields,U);Ke||(An(r.touchedFields,U,pe),ze.touchedFields=r.touchedFields,Se=Se||f.touchedFields&&Ke!==pe)}return Se&&ve&&m.state.next(ze),Se?ze:{}},B=(U,ie,pe,ke)=>{const ve=lt(r.errors,U),Se=f.isValid&&tu(ie)&&r.isValid!==ie;if(e.delayError&&pe?(c=v(()=>D(U,pe)),c(e.delayError)):(clearTimeout(p),c=null,pe?An(r.errors,U,pe):br(r.errors,U)),(pe?!nu(ve,pe):ve)||!aa(ke)||Se){const Me={...ke,...Se&&tu(ie)?{isValid:ie}:{},errors:r.errors,name:U};r={...r,...Me},m.state.next(Me)}w(!1)},W=async U=>n.resolver(o,n.context,Hme(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:ie}=await W(U);if(U)for(const pe of U){const ke=lt(ie,pe);ke?An(r.errors,pe,ke):br(r.errors,pe)}else r.errors=ie;return ie},Q=async(U,ie,pe={valid:!0})=>{for(const ke in U){const ve=U[ke];if(ve){const{_f:Se,...Me}=ve;if(Se){const ze=u.array.has(Se.name),Ke=await cR(ve,o,T,n.shouldUseNativeValidation&&!ie,ze);if(Ke[Se.name]&&(pe.valid=!1,ie))break;!ie&&(lt(Ke,Se.name)?ze?Bme(r.errors,Ke,Se.name):An(r.errors,Se.name,Ke[Se.name]):br(r.errors,Se.name))}Me&&await Q(Me,ie,pe)}}return pe.valid},z=()=>{for(const U of u.unMount){const ie=lt(i,U);ie&&(ie._f.refs?ie._f.refs.every(pe=>!m4(pe)):!m4(ie._f.ref))&&K(U)}u.unMount=new Set},le=(U,ie)=>(U&&ie&&An(o,U,ie),!nu(me(),a)),he=(U,ie,pe)=>Fme(U,u,{...s.mount?o:Wn(ie)?a:fo(U)?{[U]:ie}:ie},pe,ie),de=U=>nf(lt(s.mount?o:a,U,e.shouldUnregister?lt(a,U,[]):[])),fe=(U,ie,pe={})=>{const ke=lt(i,U);let ve=ie;if(ke){const Se=ke._f;Se&&(!Se.disabled&&An(o,U,TP(ie,Se)),ve=Rg(Se.ref)&&Zr(ie)?"":ie,vP(Se.ref)?[...Se.ref.options].forEach(Me=>Me.selected=ve.includes(Me.value)):Se.refs?tf(Se.ref)?Se.refs.length>1?Se.refs.forEach(Me=>(!Me.defaultChecked||!Me.disabled)&&(Me.checked=Array.isArray(ve)?!!ve.find(ze=>ze===Me.value):ve===Me.value)):Se.refs[0]&&(Se.refs[0].checked=!!ve):Se.refs.forEach(Me=>Me.checked=Me.value===ve):j7(Se.ref)?Se.ref.value="":(Se.ref.value=ve,Se.ref.type||m.values.next({name:U,values:{...o}})))}(pe.shouldDirty||pe.shouldTouch)&&R(U,ve,pe.shouldTouch,pe.shouldDirty,!0),pe.shouldValidate&&N(U)},Z=(U,ie,pe)=>{for(const ke in ie){const ve=ie[ke],Se=`${U}.${ke}`,Me=lt(i,Se);(u.array.has(U)||!Og(ve)||Me&&!Me._f)&&!k1(ve)?Z(Se,ve,pe):fe(Se,ve,pe)}},V=(U,ie,pe={})=>{const ke=lt(i,U),ve=u.array.has(U),Se=jo(ie);An(o,U,Se),ve?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&pe.shouldDirty&&m.state.next({name:U,dirtyFields:b4(a,o),isDirty:le(U,Se)})):ke&&!ke._f&&!Zr(Se)?Z(U,Se,pe):fe(U,Se,pe),aR(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},ce=async U=>{const ie=U.target;let pe=ie.name,ke=!0;const ve=lt(i,pe),Se=()=>ie.type?E4(ve._f):kme(U);if(ve){let Me,ze;const Ke=Se(),jt=U.type===rR.BLUR||U.type===rR.FOCUS_OUT,ue=!jme(ve._f)&&!n.resolver&&!lt(r.errors,pe)&&!ve._f.deps||Gme(jt,lt(r.touchedFields,pe),r.isSubmitted,b,E),ye=aR(pe,u,jt);An(o,pe,Ke),jt?(ve._f.onBlur&&ve._f.onBlur(U),c&&c(0)):ve._f.onChange&&ve._f.onChange(U);const We=R(pe,Ke,jt,!1),at=!aa(We)||ye;if(!jt&&m.values.next({name:pe,type:U.type,values:{...o}}),ue)return f.isValid&&y(),at&&m.state.next({name:pe,...ye?{}:We});if(!jt&&ye&&m.state.next({...r}),w(!0),n.resolver){const{errors:Qe}=await W([pe]),Y=dR(r.errors,i,pe),se=dR(Qe,i,Y.name||pe);Me=se.error,pe=se.name,ze=aa(Qe)}else Me=(await cR(ve,o,T,n.shouldUseNativeValidation))[pe],ke=Number.isNaN(Ke)||Ke===lt(o,pe,Ke),ke&&(Me?ze=!1:f.isValid&&(ze=await Q(i,!0)));ke&&(ve._f.deps&&N(ve._f.deps),B(pe,ze,Me,We))}},N=async(U,ie={})=>{let pe,ke;const ve=h4(U);if(w(!0),n.resolver){const Se=await P(Wn(U)?U:ve);pe=aa(Se),ke=U?!ve.some(Me=>lt(Se,Me)):pe}else U?(ke=(await Promise.all(ve.map(async Se=>{const Me=lt(i,Se);return await Q(Me&&Me._f?{[Se]:Me}:Me)}))).every(Boolean),!(!ke&&!r.isValid)&&y()):ke=pe=await Q(i);return m.state.next({...!fo(U)||f.isValid&&pe!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:pe}:{},errors:r.errors,isValidating:!1}),ie.shouldFocus&&!ke&&_9(i,Se=>Se&<(r.errors,Se),U?ve:u.mount),ke},me=U=>{const ie={...a,...s.mount?o:{}};return Wn(U)?ie:fo(U)?lt(ie,U):U.map(pe=>lt(ie,pe))},oe=(U,ie)=>({invalid:!!lt((ie||r).errors,U),isDirty:!!lt((ie||r).dirtyFields,U),isTouched:!!lt((ie||r).touchedFields,U),error:lt((ie||r).errors,U)}),O=U=>{U&&h4(U).forEach(ie=>br(r.errors,ie)),m.state.next({errors:U?r.errors:{}})},re=(U,ie,pe)=>{const ke=(lt(i,U,{_f:{}})._f||{}).ref;An(r.errors,U,{...ie,ref:ke}),m.state.next({name:U,errors:r.errors,isValid:!1}),pe&&pe.shouldFocus&&ke&&ke.focus&&ke.focus()},Te=(U,ie)=>Ws(U)?m.values.subscribe({next:pe=>U(he(void 0,ie),pe)}):he(U,ie,!0),K=(U,ie={})=>{for(const pe of U?h4(U):u.mount)u.mount.delete(pe),u.array.delete(pe),ie.keepValue||(br(i,pe),br(o,pe)),!ie.keepError&&br(r.errors,pe),!ie.keepDirty&&br(r.dirtyFields,pe),!ie.keepTouched&&br(r.touchedFields,pe),!n.shouldUnregister&&!ie.keepDefaultValue&&br(a,pe);m.values.next({values:{...o}}),m.state.next({...r,...ie.keepDirty?{isDirty:le()}:{}}),!ie.keepIsValid&&y()},xe=({disabled:U,name:ie,field:pe,fields:ke})=>{if(tu(U)){const ve=U?void 0:lt(o,ie,E4(pe?pe._f:lt(ke,ie)._f));An(o,ie,ve),R(ie,ve,!1,!1,!0)}},ne=(U,ie={})=>{let pe=lt(i,U);const ke=tu(ie.disabled);return An(i,U,{...pe||{},_f:{...pe&&pe._f?pe._f:{ref:{name:U}},name:U,mount:!0,...ie}}),u.mount.add(U),pe?xe({field:pe,disabled:ie.disabled,name:U}):k(U,!0,ie.value),{...ke?{disabled:ie.disabled}:{},...n.progressive?{required:!!ie.required,min:ad(ie.min),max:ad(ie.max),minLength:ad(ie.minLength),maxLength:ad(ie.maxLength),pattern:ad(ie.pattern)}:{},name:U,onChange:ce,onBlur:ce,ref:ve=>{if(ve){ne(U,ie),pe=lt(i,U);const Se=Wn(ve.value)&&ve.querySelectorAll&&ve.querySelectorAll("input,select,textarea")[0]||ve,Me=zme(Se),ze=pe._f.refs||[];if(Me?ze.find(Ke=>Ke===Se):Se===pe._f.ref)return;An(i,U,{_f:{...pe._f,...Me?{refs:[...ze.filter(m4),Se,...Array.isArray(lt(a,U))?[{}]:[]],ref:{type:Se.type,name:U}}:{ref:Se}}}),k(U,!1,void 0,Se)}else pe=lt(i,U,{}),pe._f&&(pe._f.mount=!1),(n.shouldUnregister||ie.shouldUnregister)&&!(Rme(u.array,U)&&s.action)&&u.unMount.add(U)}}},Le=()=>n.shouldFocusError&&_9(i,U=>U&<(r.errors,U),u.mount),Re=(U,ie)=>async pe=>{pe&&(pe.preventDefault&&pe.preventDefault(),pe.persist&&pe.persist());let ke=jo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ve,values:Se}=await W();r.errors=ve,ke=Se}else await Q(i);br(r.errors,"root"),aa(r.errors)?(m.state.next({errors:{}}),await U(ke,pe)):(ie&&await ie({...r.errors},pe),Le(),setTimeout(Le)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:aa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Xe=(U,ie={})=>{lt(i,U)&&(Wn(ie.defaultValue)?V(U,lt(a,U)):(V(U,ie.defaultValue),An(a,U,ie.defaultValue)),ie.keepTouched||br(r.touchedFields,U),ie.keepDirty||(br(r.dirtyFields,U),r.isDirty=ie.defaultValue?le(U,lt(a,U)):le()),ie.keepError||(br(r.errors,U),f.isValid&&y()),m.state.next({...r}))},Ve=(U,ie={})=>{const pe=U?jo(U):a,ke=jo(pe),ve=U&&!aa(U)?ke:a;if(ie.keepDefaultValues||(a=pe),!ie.keepValues){if(ie.keepDirtyValues||g)for(const Se of u.mount)lt(r.dirtyFields,Se)?An(ve,Se,lt(o,Se)):V(Se,lt(ve,Se));else{if(z7&&Wn(U))for(const Se of u.mount){const Me=lt(i,Se);if(Me&&Me._f){const ze=Array.isArray(Me._f.refs)?Me._f.refs[0]:Me._f.ref;if(Rg(ze)){const Ke=ze.closest("form");if(Ke){Ke.reset();break}}}}i={}}o=e.shouldUnregister?ie.keepDefaultValues?jo(a):{}:jo(ve),m.array.next({values:{...ve}}),m.values.next({values:{...ve}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!ie.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:ie.keepSubmitCount?r.submitCount:0,isDirty:ie.keepDirty?r.isDirty:!!(ie.keepDefaultValues&&!nu(U,a)),isSubmitted:ie.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie.keepDirtyValues?r.dirtyFields:ie.keepDefaultValues&&U?b4(a,U):{},touchedFields:ie.keepTouched?r.touchedFields:{},errors:ie.keepErrors?r.errors:{},isSubmitSuccessful:ie.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,ie)=>Ve(Ws(U)?U(o):U,ie);return{control:{register:ne,unregister:K,getFieldState:oe,handleSubmit:Re,setError:re,_executeSchema:W,_getWatch:he,_getDirty:le,_updateValid:y,_removeUnmounted:z,_updateFieldArray:A,_updateDisabledField:xe,_getFieldArray:de,_reset:Ve,_resetDefaultValues:()=>Ws(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:N,register:ne,handleSubmit:Re,watch:Te,setValue:V,getValues:me,reset:dt,resetField:Xe,clearErrors:O,unregister:K,setError:re,setFocus:(U,ie={})=>{const pe=lt(i,U),ke=pe&&pe._f;if(ke){const ve=ke.refs?ke.refs[0]:ke.ref;ve.focus&&(ve.focus(),ie.shouldSelect&&ve.select())}},getFieldState:oe}}function SP(e={}){const t=ut.useRef(),n=ut.useRef(),[r,i]=ut.useState({isDirty:!1,isValidating:!1,isLoading:Ws(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Ws(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...qme(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,Mme({subject:a._subjects.state,next:o=>{Lme(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),ut.useEffect(()=>{e.values&&!nu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),ut.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Dme(r,a),t.current}const pR=He.hr` + border: 0.5px solid ${vt}; +`,Kme=He(op)` + background-color: transparent; + color: ${vt}; + border: 1px solid ${vt}; + &:hover { + background-color: ${vt}; + color: black; + } +`,Yme=He(op)` + &:hover { + opacity: 0.8; + } +`,Xme=He.input.attrs({type:"range"})` + --webkit-appearance: none; + width: 100%; + background-color: ${Lt}; + outline: none; + border: none; + opacity: 0.7; + -webkit-transition: 0.2s; + transition: opacity 0.2s; + &:hover { + opacity: 1; + } + &::-webkit-slider-runnable-track { + width: 100%; + height: 8px; + cursor: pointer; + background: ${vt}; + border-radius: 4px; + } + &::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: 8px; + height: 8px; + cursor: pointer; + margin-top: -3px; + } + &::-moz-range-thumb { + width: 8px; + height: 8px; + cursor: pointer; + margin-top: -3px; + } + + &:focus { + outline: none; + border: none; + } +`;function Zme(){const e=SP(),t=s=>console.log(s),n=cs(),r=C.useContext(Ya),i=zt(s=>s.serverState.config);us();const a=()=>{if(!r)return;const s=e.watch("system_message"),u=e.watch("temperature");r.setSystemMessage(s||""),u&&r.setTemperature(u)},o=()=>{a(),n("/")};return C.useEffect(()=>{i&&(e.setValue("system_message",i.system_message),e.setValue("temperature",i.temperature))},[i]),I.jsx(gP,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:o,className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Settings"})]}),I.jsx("form",{onSubmit:e.handleSubmit(t),children:i?I.jsxs("div",{className:"p-2",children:[I.jsxs("h3",{className:"flex gap-1",children:["System Message",I.jsx(y9,{msg:`Set a system message with information that the LLM should always + keep in mind (e.g. "Please give concise answers. Always respond in + Spanish.")`})]}),I.jsx(QK,{placeholder:"Enter a system message (e.g. 'Always respond in German')",...e.register("system_message")}),I.jsx(pR,{}),I.jsxs("h3",{className:"flex gap-1",children:["Temperature",I.jsx(y9,{msg:`Set temperature to any value between 0 and 1. Higher values will + make the LLM more creative, while lower values will make it more + predictable.`})]}),I.jsxs("div",{className:"flex justify-between mx-16 gap-1",children:[I.jsx("p",{children:"0"}),I.jsx(Xme,{type:"range",min:"0",max:"1",step:"0.01",...e.register("temperature")}),I.jsx("p",{children:"1"})]}),I.jsx("div",{className:"text-center",style:{marginTop:"-25px"},children:I.jsx("p",{className:"text-sm text-gray-500",children:e.watch("temperature")||i.temperature||"-"})}),I.jsx(pR,{})]}):I.jsx(xme,{})}),I.jsx("hr",{}),I.jsxs("div",{className:"px-2",children:[I.jsx("h3",{children:"Appearance"}),I.jsx("p",{children:"Font Size"}),I.jsx(JK,{type:"number",min:"8",max:"48",step:"1",defaultValue:nr(),onChange:s=>{localStorage.setItem("fontSize",s.target.value)}})]}),I.jsxs("div",{className:"flex gap-2 justify-end px-4",children:[I.jsx(Kme,{onClick:()=>{n("/")},children:"Cancel"}),I.jsx(Yme,{onClick:o,children:"Save"})]})]})})}var Lg={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Lg.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,E=1,b=2,T=1,v=2,y=4,w=8,A=16,D=32,k=64,R=128,B=256,W=512,P=30,Q="...",z=800,le=16,he=1,de=2,fe=3,Z=1/0,V=9007199254740991,ce=17976931348623157e292,N=0/0,me=4294967295,oe=me-1,O=me>>>1,re=[["ary",R],["bind",T],["bindKey",v],["curry",w],["curryRight",A],["flip",W],["partial",D],["partialRight",k],["rearg",B]],Te="[object Arguments]",K="[object Array]",xe="[object AsyncFunction]",ne="[object Boolean]",Le="[object Date]",Re="[object DOMException]",Xe="[object Error]",Ve="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",Ge="[object Number]",pt="[object Null]",U="[object Object]",ie="[object Promise]",pe="[object Proxy]",ke="[object RegExp]",ve="[object Set]",Se="[object String]",Me="[object Symbol]",ze="[object Undefined]",Ke="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",ye="[object DataView]",We="[object Float32Array]",at="[object Float64Array]",Qe="[object Int8Array]",Y="[object Int16Array]",se="[object Int32Array]",j="[object Uint8Array]",$="[object Uint8ClampedArray]",J="[object Uint16Array]",be="[object Uint32Array]",Fe=/\b__p \+= '';/g,De=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Je=/&(?:amp|lt|gt|quot|#39);/g,Ze=/[&<>"']/g,Rt=RegExp(Je.source),Zt=RegExp(Ze.source),kt=/<%-([\s\S]+?)%>/g,nn=/<%([\s\S]+?)%>/g,Yt=/<%=([\s\S]+?)%>/g,jr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gr=/^\w*$/,Vr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,ii=RegExp(Ta.source),Ir=/^\s+/,ps=/\s/,fs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wr=/\{\n\/\* \[wrapped with (.+)\] \*/,hs=/,? & /,Wt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rr=/[()=,{}\[\]\/\s]/,_i=/\\(\\)?/g,Al=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,ee=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,ln=/^0o[0-7]+$/i,ir=/^(?:0|[1-9]\d*)$/,ar=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yn=/($^)/,wo=/['\n\r\u2028\u2029\\]/g,Xa="\\ud800-\\udfff",Nr="\\u0300-\\u036f",rf="\\ufe20-\\ufe2f",af="\\u20d0-\\u20ff",V7=Nr+rf+af,W7="\\u2700-\\u27bf",q7="a-z\\xdf-\\xf6\\xf8-\\xff",kP="\\xac\\xb1\\xd7\\xf7",IP="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",RP="\\u2000-\\u206f",NP=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",K7="A-Z\\xc0-\\xd6\\xd8-\\xde",Y7="\\ufe0e\\ufe0f",X7=kP+IP+RP+NP,Em="['’]",OP="["+Xa+"]",Z7="["+X7+"]",of="["+V7+"]",Q7="\\d+",DP="["+W7+"]",J7="["+q7+"]",eT="[^"+Xa+X7+Q7+W7+q7+K7+"]",vm="\\ud83c[\\udffb-\\udfff]",LP="(?:"+of+"|"+vm+")",tT="[^"+Xa+"]",ym="(?:\\ud83c[\\udde6-\\uddff]){2}",_m="[\\ud800-\\udbff][\\udc00-\\udfff]",Nu="["+K7+"]",nT="\\u200d",rT="(?:"+J7+"|"+eT+")",MP="(?:"+Nu+"|"+eT+")",iT="(?:"+Em+"(?:d|ll|m|re|s|t|ve))?",aT="(?:"+Em+"(?:D|LL|M|RE|S|T|VE))?",oT=LP+"?",sT="["+Y7+"]?",FP="(?:"+nT+"(?:"+[tT,ym,_m].join("|")+")"+sT+oT+")*",PP="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",BP="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lT=sT+oT+FP,UP="(?:"+[DP,ym,_m].join("|")+")"+lT,$P="(?:"+[tT+of+"?",of,ym,_m,OP].join("|")+")",zP=RegExp(Em,"g"),HP=RegExp(of,"g"),Tm=RegExp(vm+"(?="+vm+")|"+$P+lT,"g"),jP=RegExp([Nu+"?"+J7+"+"+iT+"(?="+[Z7,Nu,"$"].join("|")+")",MP+"+"+aT+"(?="+[Z7,Nu+rT,"$"].join("|")+")",Nu+"?"+rT+"+"+iT,Nu+"+"+aT,BP,PP,Q7,UP].join("|"),"g"),GP=RegExp("["+nT+Xa+V7+Y7+"]"),VP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,WP=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qP=-1,En={};En[We]=En[at]=En[Qe]=En[Y]=En[se]=En[j]=En[$]=En[J]=En[be]=!0,En[Te]=En[K]=En[ue]=En[ne]=En[ye]=En[Le]=En[Xe]=En[Ve]=En[ot]=En[Ge]=En[U]=En[ke]=En[ve]=En[Se]=En[Ke]=!1;var gn={};gn[Te]=gn[K]=gn[ue]=gn[ye]=gn[ne]=gn[Le]=gn[We]=gn[at]=gn[Qe]=gn[Y]=gn[se]=gn[ot]=gn[Ge]=gn[U]=gn[ke]=gn[ve]=gn[Se]=gn[Me]=gn[j]=gn[$]=gn[J]=gn[be]=!0,gn[Xe]=gn[Ve]=gn[Ke]=!1;var KP={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},YP={"&":"&","<":"<",">":">",'"':""","'":"'"},XP={"&":"&","<":"<",">":">",""":'"',"'":"'"},ZP={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QP=parseFloat,JP=parseInt,uT=typeof ql=="object"&&ql&&ql.Object===Object&&ql,eB=typeof self=="object"&&self&&self.Object===Object&&self,hr=uT||eB||Function("return this")(),Sm=t&&!t.nodeType&&t,Cl=Sm&&!0&&e&&!e.nodeType&&e,cT=Cl&&Cl.exports===Sm,wm=cT&&uT.process,Wi=function(){try{var te=Cl&&Cl.require&&Cl.require("util").types;return te||wm&&wm.binding&&wm.binding("util")}catch{}}(),dT=Wi&&Wi.isArrayBuffer,pT=Wi&&Wi.isDate,fT=Wi&&Wi.isMap,hT=Wi&&Wi.isRegExp,gT=Wi&&Wi.isSet,mT=Wi&&Wi.isTypedArray;function Ti(te,_e,ge){switch(ge.length){case 0:return te.call(_e);case 1:return te.call(_e,ge[0]);case 2:return te.call(_e,ge[0],ge[1]);case 3:return te.call(_e,ge[0],ge[1],ge[2])}return te.apply(_e,ge)}function tB(te,_e,ge,et){for(var _t=-1,Qt=te==null?0:te.length;++_t-1}function Am(te,_e,ge){for(var et=-1,_t=te==null?0:te.length;++et<_t;)if(ge(_e,te[et]))return!0;return!1}function wn(te,_e){for(var ge=-1,et=te==null?0:te.length,_t=Array(et);++ge-1;);return ge}function wT(te,_e){for(var ge=te.length;ge--&&Ou(_e,te[ge],0)>-1;);return ge}function cB(te,_e){for(var ge=te.length,et=0;ge--;)te[ge]===_e&&++et;return et}var dB=Im(KP),pB=Im(YP);function fB(te){return"\\"+ZP[te]}function hB(te,_e){return te==null?n:te[_e]}function Du(te){return GP.test(te)}function gB(te){return VP.test(te)}function mB(te){for(var _e,ge=[];!(_e=te.next()).done;)ge.push(_e.value);return ge}function Dm(te){var _e=-1,ge=Array(te.size);return te.forEach(function(et,_t){ge[++_e]=[_t,et]}),ge}function AT(te,_e){return function(ge){return te(_e(ge))}}function bs(te,_e){for(var ge=-1,et=te.length,_t=0,Qt=[];++ge-1}function rU(l,d){var h=this.__data__,_=wf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Ao.prototype.clear=JB,Ao.prototype.delete=eU,Ao.prototype.get=tU,Ao.prototype.has=nU,Ao.prototype.set=rU;function Co(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Xi(l,d,h,_,x,F){var H,X=d&f,ae=d&m,we=d&g;if(h&&(H=x?h(l,_,x,F):h(l)),H!==n)return H;if(!In(l))return l;var Ce=Tt(l);if(Ce){if(H=s$(l),!X)return ai(l,H)}else{var Ie=Dr(l),Ye=Ie==Ve||Ie==dt;if(Ss(l))return sS(l,X);if(Ie==U||Ie==Te||Ye&&!x){if(H=ae||Ye?{}:CS(l),!X)return ae?XU(l,vU(H,l)):YU(l,PT(H,l))}else{if(!gn[Ie])return x?l:{};H=l$(l,Ie,X)}}F||(F=new wa);var st=F.get(l);if(st)return st;F.set(l,H),tw(l)?l.forEach(function(Et){H.add(Xi(Et,d,h,Et,l,F))}):JS(l)&&l.forEach(function(Et,Nt){H.set(Nt,Xi(Et,d,h,Nt,l,F))});var bt=we?ae?a5:i5:ae?si:or,At=Ce?n:bt(l);return qi(At||l,function(Et,Nt){At&&(Nt=Et,Et=l[Nt]),Ac(H,Nt,Xi(Et,d,h,Nt,l,F))}),H}function yU(l){var d=or(l);return function(h){return BT(h,l,d)}}function BT(l,d,h){var _=h.length;if(l==null)return!_;for(l=dn(l);_--;){var x=h[_],F=d[x],H=l[x];if(H===n&&!(x in l)||!F(H))return!1}return!0}function UT(l,d,h){if(typeof l!="function")throw new Ki(o);return Oc(function(){l.apply(n,h)},d)}function Cc(l,d,h,_){var x=-1,F=sf,H=!0,X=l.length,ae=[],we=d.length;if(!X)return ae;h&&(d=wn(d,Si(h))),_?(F=Am,H=!1):d.length>=i&&(F=vc,H=!1,d=new Il(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:rw(_);h<_;)l[h++]=d;return l}function zT(l,d){var h=[];return vs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function gr(l,d,h,_,x){var F=-1,H=l.length;for(h||(h=c$),x||(x=[]);++F0&&h(X)?d>1?gr(X,d-1,h,_,x):ms(x,X):_||(x[x.length]=X)}return x}var $m=fS(),HT=fS(!0);function Za(l,d){return l&&$m(l,d,or)}function zm(l,d){return l&&HT(l,d,or)}function Cf(l,d){return gs(d,function(h){return No(l[h])})}function Nl(l,d){d=_s(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[Ja(d[h++])];return h&&h==_?l:n}function jT(l,d,h){var _=d(l);return Tt(l)?_:ms(_,h(l))}function qr(l){return l==null?l===n?ze:pt:xl&&xl in dn(l)?i$(l):b$(l)}function Hm(l,d){return l>d}function SU(l,d){return l!=null&&rn.call(l,d)}function wU(l,d){return l!=null&&d in dn(l)}function AU(l,d,h){return l>=Or(d,h)&&l=120&&Ce.length>=120)?new Il(H&&Ce):n}Ce=l[0];var Ie=-1,Ye=X[0];e:for(;++Ie-1;)X!==l&&bf.call(X,ae,1),bf.call(l,ae,1);return l}function JT(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Ro(x)?bf.call(l,x,1):Zm(l,x)}}return l}function Km(l,d){return l+yf(DT()*(d-l+1))}function BU(l,d,h,_){for(var x=-1,F=Zn(vf((d-l)/(h||1)),0),H=ge(F);F--;)H[_?F:++x]=l,l+=h;return H}function Ym(l,d){var h="";if(!l||d<1||d>V)return h;do d%2&&(h+=l),d=yf(d/2),d&&(l+=l);while(d);return h}function It(l,d){return p5(IS(l,d,li),l+"")}function UU(l){return FT(Gu(l))}function $U(l,d){var h=Gu(l);return Pf(h,Rl(d,0,h.length))}function Ic(l,d,h,_){if(!In(l))return l;d=_s(d,l);for(var x=-1,F=d.length,H=F-1,X=l;X!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=ge(x);++_>>1,H=l[F];H!==null&&!Ai(H)&&(h?H<=d:H=i){var we=d?null:e$(l);if(we)return uf(we);H=!1,x=vc,ae=new Il}else ae=d?[]:X;e:for(;++_=_?l:Zi(l,d,h)}var oS=NB||function(l){return hr.clearTimeout(l)};function sS(l,d){if(d)return l.slice();var h=l.length,_=kT?kT(h):new l.constructor(h);return l.copy(_),_}function t5(l){var d=new l.constructor(l.byteLength);return new gf(d).set(new gf(l)),d}function VU(l,d){var h=d?t5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function WU(l){var d=new l.constructor(l.source,qe.exec(l));return d.lastIndex=l.lastIndex,d}function qU(l){return wc?dn(wc.call(l)):{}}function lS(l,d){var h=d?t5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function uS(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=Ai(l),H=d!==n,X=d===null,ae=d===d,we=Ai(d);if(!X&&!we&&!F&&l>d||F&&H&&ae&&!X&&!we||_&&H&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=X)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function cS(l,d,h,_){for(var x=-1,F=l.length,H=h.length,X=-1,ae=d.length,we=Zn(F-H,0),Ce=ge(ae+we),Ie=!_;++X1?h[x-1]:n,H=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,H&&Kr(h[0],h[1],H)&&(F=x<3?n:F,x=1),d=dn(d);++_-1?x[F?d[H]:H]:n}}function mS(l){return Io(function(d){var h=d.length,_=h,x=Yi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Ki(o);if(x&&!H&&Mf(F)=="wrapper")var H=new Yi([],!0)}for(_=H?_:h;++_1&&Ut.reverse(),Ce&&aeX))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Ye=!0,st=h&b?new Il:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(fs,`{ +/* [wrapped with `+d+`] */ +`)}function c$(l){return Tt(l)||Ll(l)||!!(NT&&l&&l[NT])}function Ro(l,d){var h=typeof l;return d=d??V,!!d&&(h=="number"||h!="symbol"&&ir.test(l))&&l>-1&&l%1==0&&l0){if(++d>=z)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Pf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,zS(l,h)});function HS(l){var d=M(l);return d.__chain__=!0,d}function _z(l,d){return d(l),l}function Bf(l,d){return d(l)}var Tz=Io(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return Um(F,l)};return d>1||this.__actions__.length||!(_ instanceof Ft)||!Ro(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Bf,args:[x],thisArg:n}),new Yi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function Sz(){return HS(this)}function wz(){return new Yi(this.value(),this.__chain__)}function Az(){this.__values__===n&&(this.__values__=nw(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function Cz(){return this}function xz(l){for(var d,h=this;h instanceof Sf;){var _=MS(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function kz(){var l=this.__wrapped__;if(l instanceof Ft){var d=l;return this.__actions__.length&&(d=new Ft(this)),d=d.reverse(),d.__actions__.push({func:Bf,args:[f5],thisArg:n}),new Yi(d,this.__chain__)}return this.thru(f5)}function Iz(){return iS(this.__wrapped__,this.__actions__)}var Rz=Rf(function(l,d,h){rn.call(l,h)?++l[h]:xo(l,h,1)});function Nz(l,d,h){var _=Tt(l)?bT:_U;return h&&Kr(l,d,h)&&(d=n),_(l,mt(d,3))}function Oz(l,d){var h=Tt(l)?gs:zT;return h(l,mt(d,3))}var Dz=gS(FS),Lz=gS(PS);function Mz(l,d){return gr(Uf(l,d),1)}function Fz(l,d){return gr(Uf(l,d),Z)}function Pz(l,d,h){return h=h===n?1:St(h),gr(Uf(l,d),h)}function jS(l,d){var h=Tt(l)?qi:vs;return h(l,mt(d,3))}function GS(l,d){var h=Tt(l)?nB:$T;return h(l,mt(d,3))}var Bz=Rf(function(l,d,h){rn.call(l,h)?l[h].push(d):xo(l,h,[d])});function Uz(l,d,h,_){l=oi(l)?l:Gu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Zn(x+h,0)),Gf(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Ou(l,d,h)>-1}var $z=It(function(l,d,h){var _=-1,x=typeof d=="function",F=oi(l)?ge(l.length):[];return vs(l,function(H){F[++_]=x?Ti(d,H,h):xc(H,d,h)}),F}),zz=Rf(function(l,d,h){xo(l,h,d)});function Uf(l,d){var h=Tt(l)?wn:qT;return h(l,mt(d,3))}function Hz(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),ZT(l,d,h))}var jz=Rf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Gz(l,d,h){var _=Tt(l)?Cm:_T,x=arguments.length<3;return _(l,mt(d,4),h,x,vs)}function Vz(l,d,h){var _=Tt(l)?rB:_T,x=arguments.length<3;return _(l,mt(d,4),h,x,$T)}function Wz(l,d){var h=Tt(l)?gs:zT;return h(l,Hf(mt(d,3)))}function qz(l){var d=Tt(l)?FT:UU;return d(l)}function Kz(l,d,h){(h?Kr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?mU:$U;return _(l,d)}function Yz(l){var d=Tt(l)?bU:HU;return d(l)}function Xz(l){if(l==null)return 0;if(oi(l))return Gf(l)?Lu(l):l.length;var d=Dr(l);return d==ot||d==ve?l.size:Vm(l).length}function Zz(l,d,h){var _=Tt(l)?xm:jU;return h&&Kr(l,d,h)&&(d=n),_(l,mt(d,3))}var Qz=It(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Kr(l,d[0],d[1])?d=[]:h>2&&Kr(d[0],d[1],d[2])&&(d=[d[0]]),ZT(l,gr(d,1),[])}),$f=OB||function(){return hr.Date.now()};function Jz(l,d){if(typeof d!="function")throw new Ki(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function VS(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,ko(l,R,n,n,n,n,d)}function WS(l,d){var h;if(typeof d!="function")throw new Ki(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var g5=It(function(l,d,h){var _=T;if(h.length){var x=bs(h,Hu(g5));_|=D}return ko(l,_,d,h,x)}),qS=It(function(l,d,h){var _=T|v;if(h.length){var x=bs(h,Hu(qS));_|=D}return ko(d,_,l,h,x)});function KS(l,d,h){d=h?n:d;var _=ko(l,w,n,n,n,n,n,d);return _.placeholder=KS.placeholder,_}function YS(l,d,h){d=h?n:d;var _=ko(l,A,n,n,n,n,n,d);return _.placeholder=YS.placeholder,_}function XS(l,d,h){var _,x,F,H,X,ae,we=0,Ce=!1,Ie=!1,Ye=!0;if(typeof l!="function")throw new Ki(o);d=Ji(d)||0,In(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Zn(Ji(h.maxWait)||0,d):F,Ye="trailing"in h?!!h.trailing:Ye);function st(zn){var Ca=_,Do=x;return _=x=n,we=zn,H=l.apply(Do,Ca),H}function bt(zn){return we=zn,X=Oc(Nt,d),Ce?st(zn):H}function At(zn){var Ca=zn-ae,Do=zn-we,gw=d-Ca;return Ie?Or(gw,F-Do):gw}function Et(zn){var Ca=zn-ae,Do=zn-we;return ae===n||Ca>=d||Ca<0||Ie&&Do>=F}function Nt(){var zn=$f();if(Et(zn))return Ut(zn);X=Oc(Nt,At(zn))}function Ut(zn){return X=n,Ye&&_?st(zn):(_=x=n,H)}function Ci(){X!==n&&oS(X),we=0,_=ae=x=X=n}function Yr(){return X===n?H:Ut($f())}function xi(){var zn=$f(),Ca=Et(zn);if(_=arguments,x=this,ae=zn,Ca){if(X===n)return bt(ae);if(Ie)return oS(X),X=Oc(Nt,d),st(ae)}return X===n&&(X=Oc(Nt,d)),H}return xi.cancel=Ci,xi.flush=Yr,xi}var eH=It(function(l,d){return UT(l,1,d)}),tH=It(function(l,d,h){return UT(l,Ji(d)||0,h)});function nH(l){return ko(l,W)}function zf(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Ki(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var H=l.apply(this,_);return h.cache=F.set(x,H)||F,H};return h.cache=new(zf.Cache||Co),h}zf.Cache=Co;function Hf(l){if(typeof l!="function")throw new Ki(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function rH(l){return WS(2,l)}var iH=GU(function(l,d){d=d.length==1&&Tt(d[0])?wn(d[0],Si(mt())):wn(gr(d,1),Si(mt()));var h=d.length;return It(function(_){for(var x=-1,F=Or(_.length,h);++x=d}),Ll=GT(function(){return arguments}())?GT:function(l){return Ln(l)&&rn.call(l,"callee")&&!RT.call(l,"callee")},Tt=ge.isArray,vH=dT?Si(dT):xU;function oi(l){return l!=null&&jf(l.length)&&!No(l)}function $n(l){return Ln(l)&&oi(l)}function yH(l){return l===!0||l===!1||Ln(l)&&qr(l)==ne}var Ss=LB||x5,_H=pT?Si(pT):kU;function TH(l){return Ln(l)&&l.nodeType===1&&!Dc(l)}function SH(l){if(l==null)return!0;if(oi(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Ss(l)||ju(l)||Ll(l)))return!l.length;var d=Dr(l);if(d==ot||d==ve)return!l.size;if(Nc(l))return!Vm(l).length;for(var h in l)if(rn.call(l,h))return!1;return!0}function wH(l,d){return kc(l,d)}function AH(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?kc(l,d,n,h):!!_}function b5(l){if(!Ln(l))return!1;var d=qr(l);return d==Xe||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Dc(l)}function CH(l){return typeof l=="number"&&OT(l)}function No(l){if(!In(l))return!1;var d=qr(l);return d==Ve||d==dt||d==xe||d==pe}function QS(l){return typeof l=="number"&&l==St(l)}function jf(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=V}function In(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ln(l){return l!=null&&typeof l=="object"}var JS=fT?Si(fT):RU;function xH(l,d){return l===d||Gm(l,d,s5(d))}function kH(l,d,h){return h=typeof h=="function"?h:n,Gm(l,d,s5(d),h)}function IH(l){return ew(l)&&l!=+l}function RH(l){if(f$(l))throw new _t(a);return VT(l)}function NH(l){return l===null}function OH(l){return l==null}function ew(l){return typeof l=="number"||Ln(l)&&qr(l)==Ge}function Dc(l){if(!Ln(l)||qr(l)!=U)return!1;var d=mf(l);if(d===null)return!0;var h=rn.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&pf.call(h)==kB}var E5=hT?Si(hT):NU;function DH(l){return QS(l)&&l>=-V&&l<=V}var tw=gT?Si(gT):OU;function Gf(l){return typeof l=="string"||!Tt(l)&&Ln(l)&&qr(l)==Se}function Ai(l){return typeof l=="symbol"||Ln(l)&&qr(l)==Me}var ju=mT?Si(mT):DU;function LH(l){return l===n}function MH(l){return Ln(l)&&Dr(l)==Ke}function FH(l){return Ln(l)&&qr(l)==jt}var PH=Lf(Wm),BH=Lf(function(l,d){return l<=d});function nw(l){if(!l)return[];if(oi(l))return Gf(l)?Sa(l):ai(l);if(yc&&l[yc])return mB(l[yc]());var d=Dr(l),h=d==ot?Dm:d==ve?uf:Gu;return h(l)}function Oo(l){if(!l)return l===0?l:0;if(l=Ji(l),l===Z||l===-Z){var d=l<0?-1:1;return d*ce}return l===l?l:0}function St(l){var d=Oo(l),h=d%1;return d===d?h?d-h:d:0}function rw(l){return l?Rl(St(l),0,me):0}function Ji(l){if(typeof l=="number")return l;if(Ai(l))return N;if(In(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=In(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=TT(l);var h=Be.test(l);return h||ln.test(l)?JP(l.slice(2),h?2:8):ee.test(l)?N:+l}function iw(l){return Qa(l,si(l))}function UH(l){return l?Rl(St(l),-V,V):l===0?l:0}function Jt(l){return l==null?"":wi(l)}var $H=$u(function(l,d){if(Nc(d)||oi(d)){Qa(d,or(d),l);return}for(var h in d)rn.call(d,h)&&Ac(l,h,d[h])}),aw=$u(function(l,d){Qa(d,si(d),l)}),Vf=$u(function(l,d,h,_){Qa(d,si(d),l,_)}),zH=$u(function(l,d,h,_){Qa(d,or(d),l,_)}),HH=Io(Um);function jH(l,d){var h=Uu(l);return d==null?h:PT(h,d)}var GH=It(function(l,d){l=dn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Kr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],H=si(F),X=-1,ae=H.length;++X1),F}),Qa(l,a5(l),h),_&&(h=Xi(h,f|m|g,t$));for(var x=d.length;x--;)Zm(h,d[x]);return h});function lj(l,d){return sw(l,Hf(mt(d)))}var uj=Io(function(l,d){return l==null?{}:FU(l,d)});function sw(l,d){if(l==null)return{};var h=wn(a5(l),function(_){return[_]});return d=mt(d),QT(l,h,function(_,x){return d(_,x[0])})}function cj(l,d,h){d=_s(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=DT();return Or(l+x*(d-l+QP("1e-"+((x+"").length-1))),d)}return Km(l,d)}var _j=zu(function(l,d,h){return d=d.toLowerCase(),l+(h?cw(d):d)});function cw(l){return _5(Jt(l).toLowerCase())}function dw(l){return l=Jt(l),l&&l.replace(ar,dB).replace(HP,"")}function Tj(l,d,h){l=Jt(l),d=wi(d);var _=l.length;h=h===n?_:Rl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function Sj(l){return l=Jt(l),l&&Zt.test(l)?l.replace(Ze,pB):l}function wj(l){return l=Jt(l),l&&ii.test(l)?l.replace(Ta,"\\$&"):l}var Aj=zu(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),Cj=zu(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),xj=hS("toLowerCase");function kj(l,d,h){l=Jt(l),d=St(d);var _=d?Lu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Df(yf(x),h)+l+Df(vf(x),h)}function Ij(l,d,h){l=Jt(l),d=St(d);var _=d?Lu(l):0;return d&&_>>0,h?(l=Jt(l),l&&(typeof d=="string"||d!=null&&!E5(d))&&(d=wi(d),!d&&Du(l))?Ts(Sa(l),0,h):l.split(d,h)):[]}var Fj=zu(function(l,d,h){return l+(h?" ":"")+_5(d)});function Pj(l,d,h){return l=Jt(l),h=h==null?0:Rl(St(h),0,l.length),d=wi(d),l.slice(h,h+d.length)==d}function Bj(l,d,h){var _=M.templateSettings;h&&Kr(l,d,h)&&(d=n),l=Jt(l),d=Vf({},d,_,_S);var x=Vf({},d.imports,_.imports,_S),F=or(x),H=Om(x,F),X,ae,we=0,Ce=d.interpolate||Yn,Ie="__p += '",Ye=Lm((d.escape||Yn).source+"|"+Ce.source+"|"+(Ce===Yt?Al:Yn).source+"|"+(d.evaluate||Yn).source+"|$","g"),st="//# sourceURL="+(rn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qP+"]")+` +`;l.replace(Ye,function(Et,Nt,Ut,Ci,Yr,xi){return Ut||(Ut=Ci),Ie+=l.slice(we,xi).replace(wo,fB),Nt&&(X=!0,Ie+=`' + +__e(`+Nt+`) + +'`),Yr&&(ae=!0,Ie+=`'; +`+Yr+`; +__p += '`),Ut&&(Ie+=`' + +((__t = (`+Ut+`)) == null ? '' : __t) + +'`),we=xi+Et.length,Et}),Ie+=`'; +`;var bt=rn.call(d,"variable")&&d.variable;if(!bt)Ie=`with (obj) { +`+Ie+` +} +`;else if(Rr.test(bt))throw new _t(s);Ie=(ae?Ie.replace(Fe,""):Ie).replace(De,"$1").replace(tt,"$1;"),Ie="function("+(bt||"obj")+`) { +`+(bt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Ie+`return __p +}`;var At=fw(function(){return Qt(F,st+"return "+Ie).apply(n,H)});if(At.source=Ie,b5(At))throw At;return At}function Uj(l){return Jt(l).toLowerCase()}function $j(l){return Jt(l).toUpperCase()}function zj(l,d,h){if(l=Jt(l),l&&(h||d===n))return TT(l);if(!l||!(d=wi(d)))return l;var _=Sa(l),x=Sa(d),F=ST(_,x),H=wT(_,x)+1;return Ts(_,F,H).join("")}function Hj(l,d,h){if(l=Jt(l),l&&(h||d===n))return l.slice(0,CT(l)+1);if(!l||!(d=wi(d)))return l;var _=Sa(l),x=wT(_,Sa(d))+1;return Ts(_,0,x).join("")}function jj(l,d,h){if(l=Jt(l),l&&(h||d===n))return l.replace(Ir,"");if(!l||!(d=wi(d)))return l;var _=Sa(l),x=ST(_,Sa(d));return Ts(_,x).join("")}function Gj(l,d){var h=P,_=Q;if(In(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?wi(d.omission):_}l=Jt(l);var F=l.length;if(Du(l)){var H=Sa(l);F=H.length}if(h>=F)return l;var X=h-Lu(_);if(X<1)return _;var ae=H?Ts(H,0,X).join(""):l.slice(0,X);if(x===n)return ae+_;if(H&&(X+=ae.length-X),E5(x)){if(l.slice(X).search(x)){var we,Ce=ae;for(x.global||(x=Lm(x.source,Jt(qe.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?X:Ie)}}else if(l.indexOf(wi(x),X)!=X){var Ye=ae.lastIndexOf(x);Ye>-1&&(ae=ae.slice(0,Ye))}return ae+_}function Vj(l){return l=Jt(l),l&&Rt.test(l)?l.replace(Je,yB):l}var Wj=zu(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),_5=hS("toUpperCase");function pw(l,d,h){return l=Jt(l),d=h?n:d,d===n?gB(l)?SB(l):oB(l):l.match(d)||[]}var fw=It(function(l,d){try{return Ti(l,n,d)}catch(h){return b5(h)?h:new _t(h)}}),qj=Io(function(l,d){return qi(d,function(h){h=Ja(h),xo(l,h,g5(l[h],l))}),l});function Kj(l){var d=l==null?0:l.length,h=mt();return l=d?wn(l,function(_){if(typeof _[1]!="function")throw new Ki(o);return[h(_[0]),_[1]]}):[],It(function(_){for(var x=-1;++xV)return[];var h=me,_=Or(l,me);d=mt(d),l-=me;for(var x=Nm(_,d);++h0||d<0)?new Ft(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Ft.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Ft.prototype.toArray=function(){return this.take(me)},Za(Ft.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var H=this.__wrapped__,X=_?[1]:arguments,ae=H instanceof Ft,we=X[0],Ce=ae||Tt(H),Ie=function(Nt){var Ut=x.apply(M,ms([Nt],X));return _&&Ye?Ut[0]:Ut};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Ye=this.__chain__,st=!!this.__actions__.length,bt=F&&!Ye,At=ae&&!st;if(!F&&Ce){H=At?H:new Ft(this);var Et=l.apply(H,X);return Et.__actions__.push({func:Bf,args:[Ie],thisArg:n}),new Yi(Et,Ye)}return bt&&At?l.apply(this,X):(Et=this.thru(Ie),bt?_?Et.value()[0]:Et.value():Et)})}),qi(["pop","push","shift","sort","splice","unshift"],function(l){var d=cf[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(H){return d.apply(Tt(H)?H:[],x)})}}),Za(Ft.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";rn.call(Bu,_)||(Bu[_]=[]),Bu[_].push({name:d,func:h})}}),Bu[Nf(n,v).name]=[{name:"wrapper",func:n}],Ft.prototype.clone=VB,Ft.prototype.reverse=WB,Ft.prototype.value=qB,M.prototype.at=Tz,M.prototype.chain=Sz,M.prototype.commit=wz,M.prototype.next=Az,M.prototype.plant=xz,M.prototype.reverse=kz,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Iz,M.prototype.first=M.prototype.head,yc&&(M.prototype[yc]=Cz),M},Mu=wB();Cl?((Cl.exports=Mu)._=Mu,Sm._=Mu):hr._=Mu}).call(ql)})(Lg,Lg.exports);var Qme=Lg.exports;const qs=Hi(Qme);function ro(e,t){const n=qs.cloneDeep(e);for(const r in t)typeof t[r]=="function"?qs.updateWith(n,r,t[r]):qs.updateWith(n,r,i=>t[r]);return n}const Ec={};Ec["Requires API Key"]="#FF0000";Ec.Local="#00bb00";Ec["Open-Source"]="#0033FF";Ec.Free="#ffff00";const Jme={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},e5e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},t5e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},n5e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},r5e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},i5e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Ra=[Jme,e5e,n5e,t5e,r5e,i5e],fR={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},T9={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},S9={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},w9={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},wP={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},A9={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},AP={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},a5e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},Ju=[T9,S9,w9,wP,AP,A9,a5e],hR={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},gR={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},o5e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function mR(e){return o5e[e]||e}const CP={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[hR,gR],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Ra]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Ra],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: +1. Obtain an API key from [here](https://together.ai) +2. Paste below +3. Select a model preset`,tags:["Requires API Key","Open-Source"],params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your TogetherAI API key",required:!0},...Ra],packages:[ro(S9,{"dimensions[0].options":e=>qs.mapValues(e,t=>qs.assign({},t,{model:"togethercomputer/"+t.model.replace("llama2","llama-2").replace(":","-")}))}),ro(T9,{"dimensions[0].options":e=>qs.mapValues(e,t=>qs.assign({},t,{model:"togethercomputer/"+t.model.replace("codellama","CodeLlama").replace(":","-").replace("instruct","Instruct")}))}),ro(w9,{"params.model":"WizardLM/WizardCoder-15B-V1.0","params.title":"WizardCoder-15b","dimensions[0].options":{"15b":{model:"WizardLM/WizardCoder-15B-V1.0",title:"WizardCoder-15b"},"34b (Python)":{model:"WizardLM/WizardCoder-Python-34B-V1.0",title:"WizardCoder-34b-Python"}}}),ro(wP,{"params.model":"Phind/Phind-CodeLlama-34B-Python-v1"}),ro(A9,{"params.model":"mistralai/Mistral-7B-Instruct-v0.1"})].map(e=>(e.params.context_length=4096,e))},lmstudio:{title:"LM Studio",class:"GGML",description:"One of the fastest ways to get started with local models on Mac or Windows",longDescription:`LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started: +1. Download from [lmstudio.ai](https://lmstudio.ai/) and open the application +2. Search for and download the desired model from the home screen of LMStudio. +3. In the left-bar, click the '<->' icon to open the Local Inference Server and press 'Start Server'. +4. Once your model is loaded and the server has started, you can begin using Continue.`,icon:"lmstudio.png",tags:["Local","Open-Source"],params:{server_url:"http://localhost:1234"},packages:Ju,collectInputFor:[...Ra]},replicate:{title:"Replicate",class:"ReplicateLLM",description:"Use the Replicate API to run open-source models",longDescription:`Replicate is a hosted service that makes it easy to run ML models. To get started with Replicate: +1. Obtain an API key from [here](https://replicate.com) +2. Paste below +3. Select a model preset`,params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Replicate API key",required:!0},...Ra],icon:"replicate.png",tags:["Requires API Key","Open-Source"],packages:[...[T9,S9].map(e=>e.title==="Llama2 Chat"?ro(e,{"dimensions[0].options.34b":void 0,"dimensions[0].options.70b":{model:"meta/llama-2-70b-chat:02e509c789964a7ea8736978a43525956ef40397be9033abf9fd2badfe68c9e3",title:"Llama2-70b-Chat"}}):e).map(e=>ro(e,{"params.model":t=>mR(t),"dimensions[0].options":t=>{var r;const n={};for(const i in t)n[i]={...t[i],model:mR((r=t[i])==null?void 0:r.model)};return n}})),ro(w9,{title:"WizardCoder (15b)","params.model":"andreasjansson/wizardcoder-python-34b-v1-gguf:67eed332a5389263b8ede41be3ee7dc119fa984e2bde287814c4abed19a45e54",dimensions:void 0}),ro(AP,{dimensions:void 0,title:"SQLCoder (15b)","params.model":"gregwdata/defog-sqlcoder-q8:0a9abc0d143072fd5d8920ad90b8fbaafaf16b10ffdad24bd897b5bffacfce0b"}),ro(A9,{"params.model":"a16z-infra/mistral-7b-instruct-v0.1:83b6a56e7c828e667f21fd596c338fd4f0039b46bcfa18d973e8e70e455fda70"})]},llamacpp:{title:"llama.cpp",class:"LlamaCpp",description:"If you are running the llama.cpp server from source",longDescription:"llama.cpp comes with a [built-in server](https://github.com/ggerganov/llama.cpp/tree/master/examples/server#llamacppexampleserver) that can be run from source. To do this:\n \n1. Clone the repository with `git clone https://github.com/ggerganov/llama.cpp`.\n2. `cd llama.cpp`\n3. Download the model you'd like to use and place it in the `llama.cpp/models` directory (the best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke))\n4. Run the llama.cpp server with the command below (replacing with the model you downloaded):\n\n```shell\n.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf\n```\n\nAfter it's up and running, you can start using Continue.",icon:"llamacpp.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},textgenwebui:{title:"text-generation-webui",class:"TextGenWebUI",description:"A popular open-source front-end for serving LLMs locally",longDescription:'text-generation-webui is a comprehensive, open-source language model UI and local server. You can also set it up with an [OpenAI-compatible server extension](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#an-openedai-api-openai-like), but this model provider is made to interface with the built-in server, which has a different format. To setup the text-generation-webui server, take the following steps:\n\n1. Clone the repository: `git clone https://github.com/oobabooga/text-generation-webui/tree/main`\n2. Change into the directory: `cd text-generation-webui`\n3. Run the one-click installer script for your operating system, using the --api flag:\n - Mac: `sh start_macos.sh --api`\n - Linux: `sh start_linux.sh --api`\n - Windows: `. start_windows.bat --api`\n - WSL: `. start_wsl.bat --api`\n4. Find a model to run and download its weights into the folder `text-generation-webui/models`. The best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke)\n5. Navigate to [the UI](http://127.0.0.1:7860), click the "Model" tab, and load the model you\'ve downloaded\n6. Once the model is loaded, you can start using Continue',icon:void 0,tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},palm:{title:"Google PaLM API",class:"GooglePaLMAPI",description:"Try out the Google PaLM API, which is currently in public preview, using an API key from Google Makersuite",longDescription:`To get started with Google Makersuite, obtain your API key from [here](https://developers.generativeai.google/products/makersuite) and paste it below. +> Note: Google's PaLM language models do not support streaming, so the response will appear all at once after a few seconds.`,icon:"google-palm.png",tags:["Requires API Key"],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your MakerSpace API key",required:!0}],packages:[{title:"chat-bison-001",description:"Google PaLM's chat-bison-001 model, fine-tuned for chatting about code",params:{model:"chat-bison-001",context_length:8e3}}]},hftgi:{title:"HuggingFace TGI",class:"HuggingFaceTGI",description:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people",longDescription:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people. To get started, follow the [Quick Tour](https://huggingface.co/docs/text-generation-inference/quicktour) on their website to set up the Docker container. Make sure to enter the server URL below that corresponds to the host and port you set up for the Docker container.",icon:"hf.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra,{...fR,defaultValue:"http://localhost:8080"}]},ggml:{title:"Other OpenAI-compatible API",class:"GGML",description:"If you are using any other OpenAI-compatible API, for example text-gen-webui, FastChat, LocalAI, or llama-cpp-python, you can simply enter your server URL",longDescription:`If you are using any other OpenAI-compatible API, you can simply enter your server URL. If you still need to set up your model server, you can follow a guide below: + +- [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation) +- [LocalAI](https://localai.io/basics/getting_started/) +- [llama-cpp-python](https://github.com/continuedev/ggml-server-example) +- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)`,params:{server_url:""},collectInputFor:[{...fR,defaultValue:"http://localhost:8000"},...Ra],icon:"openai.png",tags:["Local","Open-Source"],packages:Ju},freetrial:{title:"GPT-4 limited free trial",class:"OpenAIFreeTrial",description:"New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key",longDescription:'New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key. If you are ready to use your own API key or have used all 250 free uses, you can enter your API key in config.py where it says `api_key=""` or select another model provider.',icon:"openai.png",tags:["Free"],packages:[hR,gR],collectInputFor:[...Ra]}},s5e=He.div` + border: 1px solid ${vt}; + border-radius: ${wt}; + position: relative; + width: 100%; + transition: all 0.5s; + + ${e=>e.disabled?` + opacity: 0.5; + `:e.hovered?` + border: 1px solid ${e.color}; + background-color: ${e.color}22; + cursor: pointer;`:""} +`,l5e=He.div` + display: flex; + justify-content: flex-end; + margin-left: auto; + padding: 4px; + /* width: fit-content; */ + + border-top: 1px solid ${vt}; +`,u5e=He.div` + display: flex; + flex-direction: column; + align-items: center; + margin-right: 8px; + background-color: ${vt}; + padding: 4px; + border-radius: ${wt}; + outline: 0.5px solid ${vt}; + + ${e=>e.selected&&` + background-color: ${da}; + color: white; + `} + + &:hover { + cursor: pointer; + outline: 1px solid ${da}; + } +`;function xP(e){var o,s,u,c;const t=zt(p=>p.config.vscMediaUrl),[n,r]=C.useState(((o=e.dimensions)==null?void 0:o.map(p=>Object.keys(p.options)[0]))||[]),[i,a]=C.useState(!1);return I.jsxs(s5e,{disabled:e.disabled||!1,color:da,hovered:i,children:[I.jsxs("div",{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),className:"px-2 py-1",onClick:e.disabled?void 0:p=>{p.target.closest("a")||e.onClick(p,n)},children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[t&&e.icon&&I.jsx("img",{src:`${t}/logos/${e.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h3",{children:e.title})]}),(s=e.tags)==null?void 0:s.map(p=>I.jsx("span",{style:{backgroundColor:`${Ec[p]}55`,color:"white",padding:"2px 4px",borderRadius:wt,marginRight:"4px"},children:p})),I.jsx("p",{children:e.description}),e.refUrl&&I.jsx("a",{style:{position:"absolute",right:"8px",top:"8px"},href:e.refUrl,target:"_blank",children:I.jsx(vi,{text:"Read the docs",children:I.jsx(hY,{width:"1.6em",height:"1.6em"})})})]}),((u=e.dimensions)==null?void 0:u.length)&&I.jsx(l5e,{children:(c=e.dimensions)==null?void 0:c.map((p,f)=>I.jsxs("div",{className:"flex items-center",children:[I.jsx(y9,{msg:p.description}),I.jsx("p",{className:"mx-2 text-sm my-0 py-0",children:p.name}),Object.keys(p.options).map(m=>I.jsx(u5e,{onClick:g=>{g.stopPropagation();const E=[...n];E[f]=m,r(E)},selected:n[f]===m,children:m}))]}))})]})}const c5e=He.div` + display: grid; + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); + grid-gap: 2rem; + padding: 1rem; + justify-items: center; + align-items: center; +`;function d5e(){const e=cs();return C.useContext(Ya),us(),I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt,zIndex:2},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Select LLM Provider"})]}),I.jsx(c5e,{children:Object.entries(CP).map(([t,n])=>I.jsx(xP,{title:n.title,description:n.description,tags:n.tags,icon:n.icon,refUrl:`https://continue.dev/docs/reference/Models/${n.class.toLowerCase()}`,onClick:r=>{e(`/modelconfig/${t}`)}}))})]})}const p5e=He.div` + display: grid; + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); + grid-gap: 2rem; + padding: 1rem; + justify-items: center; + align-items: center; +`,f5e=He.div` + border: 1px solid ${vt}; + border-radius: ${wt}; + padding: 4px 8px; + display: flex; + justify-content: center; + align-items: center; + width: 100%; + transition: all 0.5s; + + ${e=>e.disabled?` + opacity: 0.5; + `:` + &:hover { + border: 1px solid #be1b55; + background-color: #be1b5522; + cursor: pointer; + } + `} +`;function h5e(){var u,c,p,f,m;const e=SP(),{modelName:t}=Whe(),[n,r]=C.useState(void 0);C.useEffect(()=>{t&&r(CP[t])},[t]);const i=C.useContext(Ya);us();const a=cs(),o=zt(g=>g.config.vscMediaUrl),s=C.useCallback(()=>{var g;return((g=n==null?void 0:n.collectInputFor)==null?void 0:g.some(E=>{if(!E.required)return!1;const b=e.watch(E.key);return typeof b>"u"||typeof b=="string"&&b===""}))||!1},[n,e]);return I.jsx(gP,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt,zIndex:2},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>a("/models"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Configure Model"})]}),I.jsxs("div",{className:"px-2",children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&(n==null?void 0:n.icon)&&I.jsx("img",{src:`${o}/logos/${n==null?void 0:n.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h2",{children:n==null?void 0:n.title})]}),(u=n==null?void 0:n.tags)==null?void 0:u.map(g=>I.jsx("span",{style:{backgroundColor:`${Ec[g]}55`,color:"white",padding:"2px 4px",borderRadius:wt,marginRight:"4px"},children:g})),I.jsx(pg,{className:"mt-2",source:(n==null?void 0:n.longDescription)||(n==null?void 0:n.description),maxHeight:200}),I.jsx("br",{}),(((c=n==null?void 0:n.collectInputFor)==null?void 0:c.filter(g=>g.required).length)||0)>0&&I.jsxs(I.Fragment,{children:[I.jsx("h3",{className:"mb-2",children:"Enter required parameters"}),(p=n==null?void 0:n.collectInputFor)==null?void 0:p.filter(g=>g.required).map(g=>I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(ng,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!0})})]}))]}),(((f=n==null?void 0:n.collectInputFor)==null?void 0:f.filter(g=>!g.required).length)||0)>0&&I.jsxs("details",{children:[I.jsx("summary",{className:"mb-2",children:I.jsx("b",{children:"Advanced (optional)"})}),(m=n==null?void 0:n.collectInputFor)==null?void 0:m.map(g=>g.required?null:I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(ng,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!1})})]}))]}),I.jsx("h3",{className:"mb-2",children:"Select a model preset"})]}),I.jsxs(p5e,{children:[n==null?void 0:n.packages.map(g=>I.jsx(xP,{disabled:s(),title:g.title,description:g.description,tags:g.tags,refUrl:g.refUrl,icon:g.icon||n.icon,dimensions:g.dimensions,onClick:(E,b)=>{var v;if(s())return;const T={};for(const y of n.collectInputFor||[])T[y.key]=y.inputType==="text"?e.watch(y.key):parseFloat(e.watch(y.key));i==null||i.addModelForRole("*",n.class,{...g.params,...n.params,...qs.merge({},...((v=g.dimensions)==null?void 0:v.map((y,w)=>b!=null&&b[w]?{...y.options[b[w]]}:{}))||[]),...T}),a("/")}})),I.jsx(f5e,{disabled:s(),onClick:g=>{var b;if(!n||s())return;const E={};for(const T of n.collectInputFor||[])E[T.key]=T.inputType==="text"?e.watch(T.key):parseFloat(e.watch(T.key));i==null||i.addModelForRole("*",n.class,{...(b=n.packages[0])==null?void 0:b.params,...n.params,...E}),a("/")},children:I.jsx("h3",{className:"text-center my-2",children:"Configure Model in config.py"})})]})]})})}const g5e=uge([{path:"/",element:I.jsx(pme,{}),errorElement:I.jsx(Ame,{}),children:[{path:"/index.html",element:I.jsx(qI,{})},{path:"/",element:I.jsx(qI,{})},{path:"/history",element:I.jsx(Cge,{})},{path:"/help",element:I.jsx(YI,{})},{path:"/settings",element:I.jsx(Zme,{})},{path:"/models",element:I.jsx(d5e,{})},{path:"/help",element:I.jsx(YI,{})},{path:"/modelconfig/:modelName",element:I.jsx(h5e,{})}]}]),Ya=C.createContext(void 0);function m5e(){const e=bme(!1),t=R7(),n=us();return C.useEffect(()=>{const r=i=>{switch(i.data.type){case"onLoad":n(vme(i.data.apiUrl)),n(Eme(i.data.vscMachineId)),n(_me(i.data.sessionId)),n(Tme(i.data.vscMediaUrl)),n(Sme(i.data.dataSwitchOn)),i.data.uniqueId&&(t==null||t.identify(i.data.vscMachineId)),n(yme(i.data.workspacePaths));break;case"highlightedCode":n(rfe(i.data.rangeInFile));break;case"serverStatus":n(ife(i.data.message));break}};return window.addEventListener("message",r),rl("onLoad",{}),()=>window.removeEventListener("message",r)},[]),C.useEffect(()=>{document.body.style.getPropertyValue("--vscode-editor-foreground")&&localStorage.setItem("--vscode-editor-foreground",document.body.style.getPropertyValue("--vscode-editor-foreground")),document.body.style.getPropertyValue("--vscode-editor-background")&&localStorage.setItem("--vscode-editor-background",document.body.style.getPropertyValue("--vscode-editor-background")),document.body.style.getPropertyValue("--vscode-list-hoverBackground")&&localStorage.setItem("--vscode-list-hoverBackground",document.body.style.getPropertyValue("--vscode-list-hoverBackground"))},[]),I.jsx(Ya.Provider,{value:e,children:I.jsx(ige,{router:g5e})})}const b5e=Zp({name:"chat",initialState:{messages:[],isStreaming:!1},reducers:{addMessage:(e,t)=>({...e,messages:[...e.messages,t.payload]}),setIsStreaming:(e,t)=>({...e,isStreaming:t.payload}),streamUpdate:(e,t)=>{if(e.isStreaming){let n=e.messages[e.messages.length-1];return n.role!=="assistant"?{...e,messages:[...e.messages,{role:"assistant",content:t.payload}],isStreaming:!0}:{...e,messages:[...e.messages.slice(0,e.messages.length-1),{...n,content:n.content+t.payload}],isStreaming:!0}}else return{...e,messages:[...e.messages,{role:"assistant",content:t.payload}],isStreaming:!0}},closeStream:e=>({...e,isStreaming:!1}),clearChat:e=>({...e,messages:[],isStreaming:!1})}}),E5e=b5e.reducer,v5e=rpe({reducer:{chat:E5e,config:wme,misc:afe,uiState:gpe,serverState:nfe}});const y5e=({children:e})=>{const t=zt(i=>{var a,o;return(o=(a=i==null?void 0:i.serverState)==null?void 0:a.config)==null?void 0:o.allow_anonymous_telemetry}),[n,r]=ut.useState(void 0);return C.useEffect(()=>{t?(Bd.init("phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs",{api_host:"https://app.posthog.com",disable_session_recording:!0}),r(n)):r(void 0)},[t]),t?I.jsx(W0e,{client:n,children:e}):I.jsx(I.Fragment,{children:e})};y4.createRoot(document.getElementById("root")).render(I.jsx(ut.StrictMode,{children:I.jsx(qpe,{store:v5e,children:I.jsx(y5e,{children:I.jsx(m5e,{})})})})); diff --git a/extension/media/continue-dev-square.png b/extensions/intellij/src/main/resources/webview/continue-dev-square.png similarity index 100% rename from extension/media/continue-dev-square.png rename to extensions/intellij/src/main/resources/webview/continue-dev-square.png diff --git a/extension/react-app/public/continue.gif b/extensions/intellij/src/main/resources/webview/continue.gif similarity index 100% rename from extension/react-app/public/continue.gif rename to extensions/intellij/src/main/resources/webview/continue.gif diff --git a/extensions/intellij/src/main/resources/webview/index.html b/extensions/intellij/src/main/resources/webview/index.html new file mode 100644 index 000000000..5f6818c14 --- /dev/null +++ b/extensions/intellij/src/main/resources/webview/index.html @@ -0,0 +1,29 @@ + + + + + + + Continue + + + + + + + + + +
+ + + + diff --git a/extension/react-app/public/logos/anthropic.png b/extensions/intellij/src/main/resources/webview/logos/anthropic.png similarity index 100% rename from extension/react-app/public/logos/anthropic.png rename to extensions/intellij/src/main/resources/webview/logos/anthropic.png diff --git a/extension/react-app/public/logos/google-palm.png b/extensions/intellij/src/main/resources/webview/logos/google-palm.png similarity index 100% rename from extension/react-app/public/logos/google-palm.png rename to extensions/intellij/src/main/resources/webview/logos/google-palm.png diff --git a/extension/react-app/public/logos/hf.png b/extensions/intellij/src/main/resources/webview/logos/hf.png similarity index 100% rename from extension/react-app/public/logos/hf.png rename to extensions/intellij/src/main/resources/webview/logos/hf.png diff --git a/extension/react-app/public/logos/llamacpp.png b/extensions/intellij/src/main/resources/webview/logos/llamacpp.png similarity index 100% rename from extension/react-app/public/logos/llamacpp.png rename to extensions/intellij/src/main/resources/webview/logos/llamacpp.png diff --git a/extension/react-app/public/logos/lmstudio.png b/extensions/intellij/src/main/resources/webview/logos/lmstudio.png similarity index 100% rename from extension/react-app/public/logos/lmstudio.png rename to extensions/intellij/src/main/resources/webview/logos/lmstudio.png diff --git a/extensions/intellij/src/main/resources/webview/logos/meta.png b/extensions/intellij/src/main/resources/webview/logos/meta.png new file mode 100644 index 000000000..84a15698e Binary files /dev/null and b/extensions/intellij/src/main/resources/webview/logos/meta.png differ diff --git a/extension/react-app/public/logos/mistral.png b/extensions/intellij/src/main/resources/webview/logos/mistral.png similarity index 100% rename from extension/react-app/public/logos/mistral.png rename to extensions/intellij/src/main/resources/webview/logos/mistral.png diff --git a/extension/react-app/public/logos/ollama.png b/extensions/intellij/src/main/resources/webview/logos/ollama.png similarity index 100% rename from extension/react-app/public/logos/ollama.png rename to extensions/intellij/src/main/resources/webview/logos/ollama.png diff --git a/extensions/intellij/src/main/resources/webview/logos/openai.png b/extensions/intellij/src/main/resources/webview/logos/openai.png new file mode 100644 index 000000000..0f237a226 Binary files /dev/null and b/extensions/intellij/src/main/resources/webview/logos/openai.png differ diff --git a/extension/react-app/public/logos/replicate.png b/extensions/intellij/src/main/resources/webview/logos/replicate.png similarity index 100% rename from extension/react-app/public/logos/replicate.png rename to extensions/intellij/src/main/resources/webview/logos/replicate.png diff --git a/extension/react-app/public/logos/together.png b/extensions/intellij/src/main/resources/webview/logos/together.png similarity index 100% rename from extension/react-app/public/logos/together.png rename to extensions/intellij/src/main/resources/webview/logos/together.png diff --git a/extension/react-app/public/logos/wizardlm.png b/extensions/intellij/src/main/resources/webview/logos/wizardlm.png similarity index 100% rename from extension/react-app/public/logos/wizardlm.png rename to extensions/intellij/src/main/resources/webview/logos/wizardlm.png diff --git a/extension/react-app/public/play_button.png b/extensions/intellij/src/main/resources/webview/play_button.png similarity index 100% rename from extension/react-app/public/play_button.png rename to extensions/intellij/src/main/resources/webview/play_button.png diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/MyPluginTest.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/MyPluginTest.kt new file mode 100644 index 000000000..0e3bf10bf --- /dev/null +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/MyPluginTest.kt @@ -0,0 +1,43 @@ +package com.github.continuedev.continueintellijextension + +import com.github.continuedev.continueintellijextension.services.ContinuePluginService +import com.intellij.ide.highlighter.XmlFileType +import com.intellij.openapi.components.service +import com.intellij.psi.xml.XmlFile +import com.intellij.testFramework.TestDataPath +import com.intellij.testFramework.fixtures.BasePlatformTestCase +import com.intellij.util.PsiErrorElementUtil + +@TestDataPath("\$CONTENT_ROOT/src/test/testData") +class MyPluginTest : BasePlatformTestCase() { + + fun testXMLFile() { + val psiFile = + myFixture.configureByText(XmlFileType.INSTANCE, "bar") + val xmlFile = assertInstanceOf(psiFile, XmlFile::class.java) + + assertFalse(PsiErrorElementUtil.hasErrors(project, xmlFile.virtualFile)) + + assertNotNull(xmlFile.rootTag) + + xmlFile.rootTag?.let { + assertEquals("foo", it.name) + assertEquals("bar", it.value.text) + } + } + + fun testRename() { + myFixture.testRename("foo.xml", "foo_after.xml", "a2") + } + + fun testProjectService() { + val projectService = project.service() + +// assertNotSame( +// projectService.getRandomNumber(), +// projectService.getRandomNumber() +// ) + } + + override fun getTestDataPath() = "src/test/testData/rename" +} diff --git a/extensions/intellij/src/test/testData/rename/foo.xml b/extensions/intellij/src/test/testData/rename/foo.xml new file mode 100644 index 000000000..1e4c39f29 --- /dev/null +++ b/extensions/intellij/src/test/testData/rename/foo.xml @@ -0,0 +1,4 @@ + + 1>Foo + diff --git a/extensions/intellij/src/test/testData/rename/foo_after.xml b/extensions/intellij/src/test/testData/rename/foo_after.xml new file mode 100644 index 000000000..980ca960f --- /dev/null +++ b/extensions/intellij/src/test/testData/rename/foo_after.xml @@ -0,0 +1,3 @@ + + Foo + diff --git a/extension/.eslintrc.json b/extensions/vscode/.eslintrc.json similarity index 100% rename from extension/.eslintrc.json rename to extensions/vscode/.eslintrc.json diff --git a/extension/.gitignore b/extensions/vscode/.gitignore similarity index 89% rename from extension/.gitignore rename to extensions/vscode/.gitignore index 43b108895..45d3b3d67 100644 --- a/extension/.gitignore +++ b/extensions/vscode/.gitignore @@ -5,3 +5,6 @@ out/ data/ src/client .continue + +gui +exe \ No newline at end of file diff --git a/extension/.vscodeignore b/extensions/vscode/.vscodeignore similarity index 81% rename from extension/.vscodeignore rename to extensions/vscode/.vscodeignore index 51d665850..836f4474f 100644 --- a/extension/.vscodeignore +++ b/extensions/vscode/.vscodeignore @@ -15,10 +15,6 @@ scripts/.env **/env **/node_modules -react-app/node_modules -react-app/public -react-app/src - **/.pytest_cache **/__pycache__ diff --git a/extension/CHANGELOG.md b/extensions/vscode/CHANGELOG.md similarity index 100% rename from extension/CHANGELOG.md rename to extensions/vscode/CHANGELOG.md diff --git a/extension/CONTRIBUTING.md b/extensions/vscode/CONTRIBUTING.md similarity index 89% rename from extension/CONTRIBUTING.md rename to extensions/vscode/CONTRIBUTING.md index 953b5e487..e88a18983 100644 --- a/extension/CONTRIBUTING.md +++ b/extensions/vscode/CONTRIBUTING.md @@ -3,7 +3,7 @@ This is the Continue VS Code Extension. Its primary jobs are 1. Implement the IDE side of the Continue IDE protocol, allowing a Continue server to interact natively in an IDE. This happens in `src/continueIdeClient.ts`. -2. Open the Continue React app in a side panel. The React app's source code lives in the `react-app` directory. The panel is opened by the `continue.openContinueGUI` command, as defined in `src/commands.ts`. +2. Open the Continue React app in a side panel. The React app's source code lives in the `gui` directory. The panel is opened by the `continue.openContinueGUI` command, as defined in `src/commands.ts`. 3. Run a Continue server in the background, which connects to both the IDE protocol and the React app. The server is launched in `src/activation/environmentSetup.ts` by calling Python code that lives in `server/` (unless extension settings define a server URL other than localhost:65432, in which case the extension will just connect to that). # How to run the extension diff --git a/extension/LICENSE.txt b/extensions/vscode/LICENSE.txt similarity index 100% rename from extension/LICENSE.txt rename to extensions/vscode/LICENSE.txt diff --git a/extension/README.md b/extensions/vscode/README.md similarity index 100% rename from extension/README.md rename to extensions/vscode/README.md diff --git a/extensions/vscode/continue_tutorial.py b/extensions/vscode/continue_tutorial.py new file mode 100644 index 000000000..164bf3025 --- /dev/null +++ b/extensions/vscode/continue_tutorial.py @@ -0,0 +1,79 @@ +""" +Welcome to Continue! + +This is a 2 minute tutorial. + +It will walk you through the basic features: +1. Ask a question +2. Edit code +3. Debug + +You can either +- follow the instructions on your own, or +- follow along by clicking the gray CodeLens buttons above the lines, in order, starting with "Begin Section" +""" + +# region —————————————————————————— Part 1: Ask a question about code [⌘ M] —————————————————————————— + + +"""Step 1: Highlight the function below""" + + +def mysterious_function(x): + for i in range(len(x)): + for j in range(len(x) - 1): + if x[j] > x[j + 1]: + x[j], x[j + 1] = x[j + 1], x[j] + + return x + + +"""Step 2: Use the keyboard shortcut [⌘ M] to +select the code and toggle the Continue input box""" + +"""Step 3: Ask a question and press Enter""" + +# endregion + +# region ————————————————————————————————— Part 2: Edit code [⌘ ⇧ M] ————————————————————————————————— + + +# Step 1: Highlight this code +def mysterious_function(x): + n = len(x) + for i in range(n): + swapped = False + for j in range(0, n - i - 1): + if x[j] > x[j + 1]: + x[j], x[j + 1] = x[j + 1], x[j] + swapped = True + if swapped == False: + break + return x + + +"""Step 2: Use the keyboard shortcut [⌘ ⇧ M] to +select the code and toggle the /edit slash command""" + +"""Step 3: Request an edit and press Enter""" + +"""Step 4: Use keyboard shortcuts to +accept [⌘ ⇧ ↵] or reject [⌘ ⇧ ⌫] the edit""" + +# endregion + +# region ———————————————————————————— Part 3: Debug automatically [⌘ ⇧ R] ———————————————————————————— + + +"""Step 1: Run this Python file""" + + +def print_sum(list_to_print): + print(sum(list_to_print)) + + +"""Step 2: Use the keyboard shortcut [⌘ ⇧ R] +to automatically debug the error""" +print_sum(["a", "b", "c"]) + +# endregion diff --git a/extension/esbuild.mjs b/extensions/vscode/esbuild.mjs similarity index 100% rename from extension/esbuild.mjs rename to extensions/vscode/esbuild.mjs diff --git a/extension/esbuild.test.mjs b/extensions/vscode/esbuild.test.mjs similarity index 100% rename from extension/esbuild.test.mjs rename to extensions/vscode/esbuild.test.mjs diff --git a/extensions/vscode/gui/assets/index.css b/extensions/vscode/gui/assets/index.css new file mode 100644 index 000000000..74dd66fa4 --- /dev/null +++ b/extensions/vscode/gui/assets/index.css @@ -0,0 +1 @@ +@media (prefers-color-scheme: dark){.wmde-markdown,.wmde-markdown-var{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}}@media (prefers-color-scheme: light){.wmde-markdown,.wmde-markdown-var{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}}[data-color-mode*=dark] .wmde-markdown,[data-color-mode*=dark] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=dark],.wmde-markdown[data-color-mode*=dark],body[data-color-mode*=dark]{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}[data-color-mode*=light] .wmde-markdown,[data-color-mode*=light] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=light],.wmde-markdown[data-color-mode*=light],body[data-color-mode*=light]{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}.wmde-markdown{-webkit-text-size-adjust:100%;font-family:-apple-system,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word;color:var(--color-fg-default);background-color:var(--color-canvas-default)}.wmde-markdown details,.wmde-markdown figcaption,.wmde-markdown figure{display:block}.wmde-markdown summary{display:list-item}.wmde-markdown [hidden]{display:none!important}.wmde-markdown a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.wmde-markdown a:active,.wmde-markdown a:hover{outline-width:0}.wmde-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wmde-markdown b,.wmde-markdown strong{font-weight:600}.wmde-markdown dfn{font-style:italic}.wmde-markdown h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}.wmde-markdown small{font-size:90%}.wmde-markdown sub,.wmde-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.wmde-markdown sub{bottom:-.25em}.wmde-markdown sup{top:-.5em}.wmde-markdown img{display:inline-block;border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.wmde-markdown code,.wmde-markdown kbd,.wmde-markdown pre,.wmde-markdown samp{font-family:monospace,monospace;font-size:1em}.wmde-markdown figure{margin:1em 40px}.wmde-markdown hr{box-sizing:content-box;overflow:hidden;background:transparent;border:0;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default)}.wmde-markdown input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.wmde-markdown [type=button],.wmde-markdown [type=reset],.wmde-markdown [type=submit]{-webkit-appearance:button}.wmde-markdown [type=button]::-moz-focus-inner,.wmde-markdown [type=reset]::-moz-focus-inner,.wmde-markdown [type=submit]::-moz-focus-inner{border-style:none;padding:0}.wmde-markdown [type=button]:-moz-focusring,.wmde-markdown [type=reset]:-moz-focusring,.wmde-markdown [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.wmde-markdown [type=checkbox],.wmde-markdown [type=radio]{box-sizing:border-box;padding:0}.wmde-markdown [type=number]::-webkit-inner-spin-button,.wmde-markdown [type=number]::-webkit-outer-spin-button{height:auto}.wmde-markdown [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.wmde-markdown [type=search]::-webkit-search-cancel-button,.wmde-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none}.wmde-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}.wmde-markdown ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.wmde-markdown a:hover{text-decoration:underline}.wmde-markdown hr:before{display:table;content:""}.wmde-markdown hr:after{display:table;clear:both;content:""}.wmde-markdown table{border-spacing:0;border-collapse:collapse;display:block;width:-moz-max-content;width:max-content;max-width:100%}.wmde-markdown td,.wmde-markdown th{padding:0}.wmde-markdown details summary{cursor:pointer}.wmde-markdown details:not([open])>*:not(summary){display:none!important}.wmde-markdown kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.wmde-markdown h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown h3{font-weight:600;font-size:1.25em}.wmde-markdown h4{font-weight:600;font-size:1em}.wmde-markdown h5{font-weight:600;font-size:.875em}.wmde-markdown h6{font-weight:600;font-size:.85em;color:var(--color-fg-muted)}.wmde-markdown p{margin-top:0;margin-bottom:10px}.wmde-markdown blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.wmde-markdown ul,.wmde-markdown ol{margin-top:0;margin-bottom:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ul ul ol,.wmde-markdown ul ol ol,.wmde-markdown ol ul ol,.wmde-markdown ol ol ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown tt,.wmde-markdown code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.wmde-markdown .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.wmde-markdown ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-outer-spin-button,.wmde-markdown input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:before{display:table;content:""}.wmde-markdown:after{display:table;clear:both;content:""}.wmde-markdown>*:first-child{margin-top:0!important}.wmde-markdown>*:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown p,.wmde-markdown blockquote,.wmde-markdown ul,.wmde-markdown ol,.wmde-markdown dl,.wmde-markdown table,.wmde-markdown pre,.wmde-markdown details{margin-top:0;margin-bottom:16px}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 tt,.wmde-markdown h1 code,.wmde-markdown h2 tt,.wmde-markdown h2 code,.wmde-markdown h3 tt,.wmde-markdown h3 code,.wmde-markdown h4 tt,.wmde-markdown h4 code,.wmde-markdown h5 tt,.wmde-markdown h5 code,.wmde-markdown h6 tt,.wmde-markdown h6 code{padding:0 .2em;font-size:inherit}.wmde-markdown ul.no-list,.wmde-markdown ol.no-list{padding:0;list-style-type:none}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ul ul,.wmde-markdown ul ol,.wmde-markdown ol ol,.wmde-markdown ol ul{margin-top:0;margin-bottom:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.wmde-markdown dl dd{padding:0 16px;margin-bottom:16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table th,.wmde-markdown table td{padding:6px 13px;border:1px solid var(--color-border-default)}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:transparent}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.wmde-markdown span.frame span img{display:block;float:left}.wmde-markdown span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.wmde-markdown span.align-center{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.wmde-markdown span.align-center span img{margin:0 auto;text-align:center}.wmde-markdown span.align-right{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.wmde-markdown span.align-right span img{margin:0;text-align:right}.wmde-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.wmde-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.wmde-markdown code,.wmde-markdown tt{padding:.2em .4em;margin:0;font-size:85%;background-color:var(--color-neutral-muted);border-radius:6px}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.wmde-markdown pre{font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}.wmde-markdown pre code,.wmde-markdown pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.wmde-markdown pre>code{padding:16px;overflow:auto;display:block}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.wmde-markdown .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{font-weight:600;background:var(--color-canvas-subtle);border-top:0}.wmde-markdown .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .task-list-item-checkbox,.wmde-markdown .contains-task-list input[type=checkbox]{margin:0 .2em .25em -1.6em;vertical-align:middle}.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,.wmde-markdown .contains-task-list:dir(rtl) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{visibility:hidden;display:flex;position:absolute;cursor:pointer;color:var(--color-fg-defaul);top:6px;right:6px;border-radius:5px;background:var(--color-border-default);padding:6px;font-size:12px;transition:all .3s}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre:hover .copied:active,.wmde-markdown pre .copied.active{background:#2e9b33;color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.highlight-line{background-color:var(--color-neutral-muted)}.code-line.line-number:before{display:inline-block;width:1rem;text-align:right;margin-right:16px;color:var(--color-fg-subtle);content:attr(line);white-space:nowrap}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--color-prettylights-syntax-comment)}.token.namespace{opacity:.7}.token.property,.token.tag,.token.selector,.token.constant,.token.symbol,.token.deleted{color:var(--color-prettylights-syntax-entity-tag)}.token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.token.property-access,.token.operator,.token.boolean,.token.number,.token.selector .token.class,.token.attr-name,.token.string,.token.char,.token.builtin{color:var(--color-prettylights-syntax-constant)}.token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.token.variable{color:var(--color-prettylights-syntax-constant)}.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.color,.token.atrule,.token.attr-value,.token.function,.token.class-name{color:var(--color-prettylights-syntax-string)}.token.rule,.token.regex,.token.important,.token.keyword{color:var(--color-prettylights-syntax-keyword)}.token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.right-1{right:.25rem}.top-0{top:0}.top-1{top:.25rem}.z-10{z-index:10}.float-right{float:right}.m-0{margin:0}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.mx-16{margin-left:4rem;margin-right:4rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-6{margin-right:1.5rem}.mr-auto{margin-right:auto}.mt-2{margin-top:.5rem}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-2{height:.5rem}.h-5{height:1.25rem}.h-full{height:100%}.w-5{width:1.25rem}.w-full{width:100%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.border-spacing-0{--tw-border-spacing-x: 0px;--tw-border-spacing-y: 0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.overflow-scroll{overflow:scroll}.overflow-y-scroll{overflow-y:scroll}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:root{--secondary-dark: rgb(37, 37, 38);--vsc-background: rgb(30, 30, 30);--button-color: rgb(113, 28, 59);--button-color-hover: rgba(113, 28, 59, .667);--def-border-radius: 5px;--vscode-editor-background: rgb(30, 30, 30);--vscode-editor-foreground: rgb(197, 200, 198);--vscode-textBlockQuote-background: rgba(255, 255, 255, 1)}html,body,#root{height:100%;background-color:var(--vscode-editor-background);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}body{color:var(--vscode-editor-foreground);padding:0;margin:0;height:100%}.press-start-2p{font-family:"Press Start 2P",sans-serif}a:focus{outline:none}.hover\:underline:hover{text-decoration-line:underline} diff --git a/extensions/vscode/gui/assets/index.js b/extensions/vscode/gui/assets/index.js new file mode 100644 index 000000000..6e1370660 --- /dev/null +++ b/extensions/vscode/gui/assets/index.js @@ -0,0 +1,1267 @@ +var OG=Object.defineProperty;var DG=(e,t,n)=>t in e?OG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ea=(e,t,n)=>(DG(e,typeof t!="symbol"?t+"":t,n),n);function LG(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var ql=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bR={exports:{}},Mg={},ER={exports:{}},Bt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ep=Symbol.for("react.element"),MG=Symbol.for("react.portal"),FG=Symbol.for("react.fragment"),PG=Symbol.for("react.strict_mode"),BG=Symbol.for("react.profiler"),UG=Symbol.for("react.provider"),$G=Symbol.for("react.context"),zG=Symbol.for("react.forward_ref"),HG=Symbol.for("react.suspense"),jG=Symbol.for("react.memo"),GG=Symbol.for("react.lazy"),mw=Symbol.iterator;function VG(e){return e===null||typeof e!="object"?null:(e=mw&&e[mw]||e["@@iterator"],typeof e=="function"?e:null)}var vR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yR=Object.assign,_R={};function nc(e,t,n){this.props=e,this.context=t,this.refs=_R,this.updater=n||vR}nc.prototype.isReactComponent={};nc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};nc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TR(){}TR.prototype=nc.prototype;function C9(e,t,n){this.props=e,this.context=t,this.refs=_R,this.updater=n||vR}var x9=C9.prototype=new TR;x9.constructor=C9;yR(x9,nc.prototype);x9.isPureReactComponent=!0;var bw=Array.isArray,SR=Object.prototype.hasOwnProperty,k9={current:null},wR={key:!0,ref:!0,__self:!0,__source:!0};function AR(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)SR.call(t,r)&&!wR.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,oe=V[me];if(0>>1;mei(Te,N))Ki(xe,Te)?(V[me]=xe,V[K]=N,me=K):(V[me]=Te,V[re]=N,me=re);else if(Ki(xe,N))V[me]=xe,V[K]=N,me=K;else break e}}return ce}function i(V,ce){var N=V.sortIndex-ce.sortIndex;return N!==0?N:V.id-ce.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],c=[],p=1,f=null,m=3,g=!1,E=!1,b=!1,T=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(V){for(var ce=n(c);ce!==null;){if(ce.callback===null)r(c);else if(ce.startTime<=V)r(c),ce.sortIndex=ce.expirationTime,t(u,ce);else break;ce=n(c)}}function A(V){if(b=!1,w(V),!E)if(n(u)!==null)E=!0,fe(D);else{var ce=n(c);ce!==null&&Z(A,ce.startTime-V)}}function D(V,ce){E=!1,b&&(b=!1,v(B),B=-1),g=!0;var N=m;try{for(w(ce),f=n(u);f!==null&&(!(f.expirationTime>ce)||V&&!Q());){var me=f.callback;if(typeof me=="function"){f.callback=null,m=f.priorityLevel;var oe=me(f.expirationTime<=ce);ce=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===n(u)&&r(u),w(ce)}else r(u);f=n(u)}if(f!==null)var O=!0;else{var re=n(c);re!==null&&Z(A,re.startTime-ce),O=!1}return O}finally{f=null,m=N,g=!1}}var k=!1,R=null,B=-1,W=5,P=-1;function Q(){return!(e.unstable_now()-PV||125me?(V.sortIndex=N,t(c,V),n(u)===null&&V===n(c)&&(b?(v(B),B=-1):b=!0,Z(A,N-me))):(V.sortIndex=oe,t(u,V),E||g||(E=!0,fe(D))),V},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(V){var ce=m;return function(){var N=m;m=ce;try{return V.apply(this,arguments)}finally{m=N}}}})(IR);kR.exports=IR;var nV=kR.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var RR=C,Bi=nV;function Pe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_4=Object.prototype.hasOwnProperty,rV=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vw={},yw={};function iV(e){return _4.call(yw,e)?!0:_4.call(vw,e)?!1:rV.test(e)?yw[e]=!0:(vw[e]=!0,!1)}function aV(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oV(e,t,n,r){if(t===null||typeof t>"u"||aV(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ri(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Cr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Cr[e]=new ri(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Cr[t]=new ri(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Cr[e]=new ri(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Cr[e]=new ri(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Cr[e]=new ri(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Cr[e]=new ri(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Cr[e]=new ri(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Cr[e]=new ri(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Cr[e]=new ri(e,5,!1,e.toLowerCase(),null,!1,!1)});var R9=/[\-:]([a-z])/g;function N9(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(R9,N9);Cr[t]=new ri(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Cr[e]=new ri(e,1,!1,e.toLowerCase(),null,!1,!1)});Cr.xlinkHref=new ri("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Cr[e]=new ri(e,1,!1,e.toLowerCase(),null,!0,!0)});function O9(e,t,n,r){var i=Cr.hasOwnProperty(t)?Cr[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var u=` +`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{R5=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?od(e):""}function sV(e){switch(e.tag){case 5:return od(e.type);case 16:return od("Lazy");case 13:return od("Suspense");case 19:return od("SuspenseList");case 0:case 2:case 15:return e=N5(e.type,!1),e;case 11:return e=N5(e.type.render,!1),e;case 1:return e=N5(e.type,!0),e;default:return""}}function A4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o1:return"Fragment";case a1:return"Portal";case T4:return"Profiler";case D9:return"StrictMode";case S4:return"Suspense";case w4:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case DR:return(e.displayName||"Context")+".Consumer";case OR:return(e._context.displayName||"Context")+".Provider";case L9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M9:return t=e.displayName||null,t!==null?t:A4(e.type)||"Memo";case Ls:t=e._payload,e=e._init;try{return A4(e(t))}catch{}}return null}function lV(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return A4(t);case 8:return t===D9?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ll(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function MR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uV(e){var t=MR(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kf(e){e._valueTracker||(e._valueTracker=uV(e))}function FR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=MR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ch(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function C4(e,t){var n=t.checked;return Dn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Tw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ll(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function PR(e,t){t=t.checked,t!=null&&O9(e,"checked",t,!1)}function x4(e,t){PR(e,t);var n=ll(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?k4(e,t.type,n):t.hasOwnProperty("defaultValue")&&k4(e,t.type,ll(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function k4(e,t,n){(t!=="number"||Ch(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sd=Array.isArray;function I1(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Yf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cV=["Webkit","ms","Moz","O"];Object.keys(hd).forEach(function(e){cV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hd[t]=hd[e]})});function zR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hd.hasOwnProperty(e)&&hd[e]?(""+t).trim():t+"px"}function HR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=zR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var dV=Dn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function N4(e,t){if(t){if(dV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function O4(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var D4=null;function F9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var L4=null,R1=null,N1=null;function Cw(e){if(e=_p(e)){if(typeof L4!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=$g(t),L4(e.stateNode,e.type,t))}}function jR(e){R1?N1?N1.push(e):N1=[e]:R1=e}function GR(){if(R1){var e=R1,t=N1;if(N1=R1=null,Cw(e),t)for(e=0;e>>=0,e===0?32:31-(TV(e)/SV|0)|0}var Xf=64,Zf=4194304;function ld(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=ld(s):(a&=o,a!==0&&(r=ld(a)))}else o=n&~i,o!==0?r=ld(o):a!==0&&(r=ld(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$a(t),e[t]=n}function xV(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=md),Mw=String.fromCharCode(32),Fw=!1;function cN(e,t){switch(e){case"keyup":return tW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dN(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var s1=!1;function rW(e,t){switch(e){case"compositionend":return dN(t);case"keypress":return t.which!==32?null:(Fw=!0,Mw);case"textInput":return e=t.data,e===Mw&&Fw?null:e;default:return null}}function iW(e,t){if(s1)return e==="compositionend"||!G9&&cN(e,t)?(e=lN(),Q0=z9=Hs=null,s1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$w(n)}}function gN(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gN(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mN(){for(var e=window,t=Ch();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ch(e.document)}return t}function V9(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fW(e){var t=mN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gN(n.ownerDocument.documentElement,n)){if(r!==null&&V9(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=zw(n,a);var o=zw(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,l1=null,$4=null,Ed=null,z4=!1;function Hw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;z4||l1==null||l1!==Ch(r)||(r=l1,"selectionStart"in r&&V9(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ed&&qd(Ed,r)||(Ed=r,r=Dh($4,"onSelect"),0d1||(e.current=q4[d1],q4[d1]=null,d1--)}function mn(e,t){d1++,q4[d1]=e.current,e.current=t}var ul={},zr=ml(ul),mi=ml(!1),lu=ul;function H1(e,t){var n=e.type.contextTypes;if(!n)return ul;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bi(e){return e=e.childContextTypes,e!=null}function Mh(){Sn(mi),Sn(zr)}function Yw(e,t,n){if(zr.current!==ul)throw Error(Pe(168));mn(zr,t),mn(mi,n)}function AN(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Pe(108,lV(e)||"Unknown",i));return Dn({},n,r)}function Fh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ul,lu=zr.current,mn(zr,e),mn(mi,mi.current),!0}function Xw(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=AN(e,t,lu),r.__reactInternalMemoizedMergedChildContext=e,Sn(mi),Sn(zr),mn(zr,e)):Sn(mi),mn(mi,n)}var Vo=null,zg=!1,V5=!1;function CN(e){Vo===null?Vo=[e]:Vo.push(e)}function AW(e){zg=!0,CN(e)}function bl(){if(!V5&&Vo!==null){V5=!0;var e=0,t=an;try{var n=Vo;for(an=1;e>=o,i-=o,qo=1<<32-$a(t)+i|n<B?(W=R,R=null):W=R.sibling;var P=m(v,R,w[B],A);if(P===null){R===null&&(R=W);break}e&&R&&P.alternate===null&&t(v,R),y=a(P,y,B),k===null?D=P:k.sibling=P,k=P,R=W}if(B===w.length)return n(v,R),xn&&Hl(v,B),D;if(R===null){for(;BB?(W=R,R=null):W=R.sibling;var Q=m(v,R,P.value,A);if(Q===null){R===null&&(R=W);break}e&&R&&Q.alternate===null&&t(v,R),y=a(Q,y,B),k===null?D=Q:k.sibling=Q,k=Q,R=W}if(P.done)return n(v,R),xn&&Hl(v,B),D;if(R===null){for(;!P.done;B++,P=w.next())P=f(v,P.value,A),P!==null&&(y=a(P,y,B),k===null?D=P:k.sibling=P,k=P);return xn&&Hl(v,B),D}for(R=r(v,R);!P.done;B++,P=w.next())P=g(R,v,B,P.value,A),P!==null&&(e&&P.alternate!==null&&R.delete(P.key===null?B:P.key),y=a(P,y,B),k===null?D=P:k.sibling=P,k=P);return e&&R.forEach(function(z){return t(v,z)}),xn&&Hl(v,B),D}function T(v,y,w,A){if(typeof w=="object"&&w!==null&&w.type===o1&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case qf:e:{for(var D=w.key,k=y;k!==null;){if(k.key===D){if(D=w.type,D===o1){if(k.tag===7){n(v,k.sibling),y=i(k,w.props.children),y.return=v,v=y;break e}}else if(k.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Ls&&rA(D)===k.type){n(v,k.sibling),y=i(k,w.props),y.ref=Uc(v,k,w),y.return=v,v=y;break e}n(v,k);break}else t(v,k);k=k.sibling}w.type===o1?(y=iu(w.props.children,v.mode,A,w.key),y.return=v,v=y):(A=oh(w.type,w.key,w.props,null,v.mode,A),A.ref=Uc(v,y,w),A.return=v,v=A)}return o(v);case a1:e:{for(k=w.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(v,y.sibling),y=i(y,w.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=J5(w,v.mode,A),y.return=v,v=y}return o(v);case Ls:return k=w._init,T(v,y,k(w._payload),A)}if(sd(w))return E(v,y,w,A);if(Lc(w))return b(v,y,w,A);i0(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(v,y.sibling),y=i(y,w),y.return=v,v=y):(n(v,y),y=Q5(w,v.mode,A),y.return=v,v=y),o(v)):n(v,y)}return T}var G1=LN(!0),MN=LN(!1),Tp={},go=ml(Tp),Zd=ml(Tp),Qd=ml(Tp);function Ql(e){if(e===Tp)throw Error(Pe(174));return e}function eE(e,t){switch(mn(Qd,t),mn(Zd,e),mn(go,Tp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:R4(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=R4(t,e)}Sn(go),mn(go,t)}function V1(){Sn(go),Sn(Zd),Sn(Qd)}function FN(e){Ql(Qd.current);var t=Ql(go.current),n=R4(t,e.type);t!==n&&(mn(Zd,e),mn(go,n))}function tE(e){Zd.current===e&&(Sn(go),Sn(Zd))}var Nn=ml(0);function Hh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var W5=[];function nE(){for(var e=0;en?n:4,e(!0);var r=q5.transition;q5.transition={};try{e(!1),t()}finally{an=n,q5.transition=r}}function QN(){return ga().memoizedState}function IW(e,t,n){var r=el(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},JN(e))eO(t,n);else if(n=RN(e,t,n,r),n!==null){var i=ei();za(n,e,r,i),tO(n,t,r)}}function RW(e,t,n){var r=el(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(JN(e))eO(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,ja(s,o)){var u=t.interleaved;u===null?(i.next=i,Q9(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=RN(e,t,i,r),n!==null&&(i=ei(),za(n,e,r,i),tO(n,t,r))}}function JN(e){var t=e.alternate;return e===On||t!==null&&t===On}function eO(e,t){vd=jh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tO(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,B9(e,n)}}var Gh={readContext:ha,useCallback:Lr,useContext:Lr,useEffect:Lr,useImperativeHandle:Lr,useInsertionEffect:Lr,useLayoutEffect:Lr,useMemo:Lr,useReducer:Lr,useRef:Lr,useState:Lr,useDebugValue:Lr,useDeferredValue:Lr,useTransition:Lr,useMutableSource:Lr,useSyncExternalStore:Lr,useId:Lr,unstable_isNewReconciler:!1},NW={readContext:ha,useCallback:function(e,t){return io().memoizedState=[e,t===void 0?null:t],e},useContext:ha,useEffect:aA,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nh(4194308,4,qN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nh(4194308,4,e,t)},useInsertionEffect:function(e,t){return nh(4,2,e,t)},useMemo:function(e,t){var n=io();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=IW.bind(null,On,e),[r.memoizedState,e]},useRef:function(e){var t=io();return e={current:e},t.memoizedState=e},useState:iA,useDebugValue:sE,useDeferredValue:function(e){return io().memoizedState=e},useTransition:function(){var e=iA(!1),t=e[0];return e=kW.bind(null,e[1]),io().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=On,i=io();if(xn){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),dr===null)throw Error(Pe(349));cu&30||UN(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,aA(zN.bind(null,r,a,e),[e]),r.flags|=2048,tp(9,$N.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=io(),t=dr.identifierPrefix;if(xn){var n=Ko,r=qo;n=(r&~(1<<32-$a(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jd++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[lo]=t,e[Xd]=r,cO(e,t,!1,!1),t.stateNode=e;e:{switch(o=O4(n,r),n){case"dialog":yn("cancel",e),yn("close",e),i=r;break;case"iframe":case"object":case"embed":yn("load",e),i=r;break;case"video":case"audio":for(i=0;iq1&&(t.flags|=128,r=!0,$c(a,!1),t.lanes=4194304)}else{if(!r)if(e=Hh(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$c(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!xn)return Mr(t),null}else 2*jn()-a.renderingStartTime>q1&&n!==1073741824&&(t.flags|=128,r=!0,$c(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=jn(),t.sibling=null,n=Nn.current,mn(Nn,r?n&1|2:n&1),t):(Mr(t),null);case 22:case 23:return fE(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ni&1073741824&&(Mr(t),t.subtreeFlags&6&&(t.flags|=8192)):Mr(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function UW(e,t){switch(q9(t),t.tag){case 1:return bi(t.type)&&Mh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return V1(),Sn(mi),Sn(zr),nE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tE(t),null;case 13:if(Sn(Nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));j1()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Sn(Nn),null;case 4:return V1(),null;case 10:return Z9(t.type._context),null;case 22:case 23:return fE(),null;case 24:return null;default:return null}}var o0=!1,Br=!1,$W=typeof WeakSet=="function"?WeakSet:Set,nt=null;function g1(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pn(e,t,r)}else n.current=null}function ab(e,t,n){try{n()}catch(r){Pn(e,t,r)}}var hA=!1;function zW(e,t){if(H4=Nh,e=mN(),V9(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,c=0,p=0,f=e,m=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==a||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++c===i&&(s=o),m===a&&++p===r&&(u=o),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(j4={focusedElem:e,selectionRange:n},Nh=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){t=nt;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var b=E.memoizedProps,T=E.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:Da(t.type,b),T);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(A){Pn(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}return E=hA,hA=!1,E}function yd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&ab(t,n,a)}i=i.next}while(i!==r)}}function Gg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ob(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function fO(e){var t=e.alternate;t!==null&&(e.alternate=null,fO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lo],delete t[Xd],delete t[W4],delete t[SW],delete t[wW])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hO(e){return e.tag===5||e.tag===3||e.tag===4}function gA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hO(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Lh));else if(r!==4&&(e=e.child,e!==null))for(sb(e,t,n),e=e.sibling;e!==null;)sb(e,t,n),e=e.sibling}function lb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lb(e,t,n),e=e.sibling;e!==null;)lb(e,t,n),e=e.sibling}var Er=null,La=!1;function ws(e,t,n){for(n=n.child;n!==null;)gO(e,t,n),n=n.sibling}function gO(e,t,n){if(ho&&typeof ho.onCommitFiberUnmount=="function")try{ho.onCommitFiberUnmount(Fg,n)}catch{}switch(n.tag){case 5:Br||g1(n,t);case 6:var r=Er,i=La;Er=null,ws(e,t,n),Er=r,La=i,Er!==null&&(La?(e=Er,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Er.removeChild(n.stateNode));break;case 18:Er!==null&&(La?(e=Er,n=n.stateNode,e.nodeType===8?G5(e.parentNode,n):e.nodeType===1&&G5(e,n),Vd(e)):G5(Er,n.stateNode));break;case 4:r=Er,i=La,Er=n.stateNode.containerInfo,La=!0,ws(e,t,n),Er=r,La=i;break;case 0:case 11:case 14:case 15:if(!Br&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&ab(n,t,o),i=i.next}while(i!==r)}ws(e,t,n);break;case 1:if(!Br&&(g1(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pn(n,t,s)}ws(e,t,n);break;case 21:ws(e,t,n);break;case 22:n.mode&1?(Br=(r=Br)||n.memoizedState!==null,ws(e,t,n),Br=r):ws(e,t,n);break;default:ws(e,t,n)}}function mA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $W),t.forEach(function(r){var i=XW.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xa(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=jn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jW(r/1960))-r,10e?16:e,js===null)var r=!1;else{if(e=js,js=null,qh=0,qt&6)throw Error(Pe(331));var i=qt;for(qt|=4,nt=e.current;nt!==null;){var a=nt,o=a.child;if(nt.flags&16){var s=a.deletions;if(s!==null){for(var u=0;ujn()-dE?ru(e,0):cE|=n),Ei(e,t)}function SO(e,t){t===0&&(e.mode&1?(t=Zf,Zf<<=1,!(Zf&130023424)&&(Zf=4194304)):t=1);var n=ei();e=es(e,t),e!==null&&(vp(e,t,n),Ei(e,n))}function YW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),SO(e,n)}function XW(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Pe(314))}r!==null&&r.delete(t),SO(e,n)}var wO;wO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mi.current)hi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return hi=!1,PW(e,t,n);hi=!!(e.flags&131072)}else hi=!1,xn&&t.flags&1048576&&xN(t,Bh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rh(e,t),e=t.pendingProps;var i=H1(t,zr.current);D1(t,n),i=iE(null,t,r,e,i,n);var a=aE();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bi(r)?(a=!0,Fh(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,J9(t),i.updater=Hg,t.stateNode=i,i._reactInternals=t,Q4(t,r,e,n),t=tb(null,t,r,!0,a,n)):(t.tag=0,xn&&a&&W9(t),Xr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=QW(r),e=Da(r,e),i){case 0:t=eb(null,t,r,e,n);break e;case 1:t=dA(null,t,r,e,n);break e;case 11:t=uA(null,t,r,e,n);break e;case 14:t=cA(null,t,r,Da(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),eb(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),dA(e,t,r,i,n);case 3:e:{if(sO(t),e===null)throw Error(Pe(387));r=t.pendingProps,a=t.memoizedState,i=a.element,NN(e,t),zh(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=W1(Error(Pe(423)),t),t=pA(e,t,r,n,i);break e}else if(r!==i){i=W1(Error(Pe(424)),t),t=pA(e,t,r,n,i);break e}else for(Di=Zs(t.stateNode.containerInfo.firstChild),Li=t,xn=!0,Fa=null,n=MN(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(j1(),r===i){t=ts(e,t,n);break e}Xr(e,t,r,n)}t=t.child}return t;case 5:return FN(t),e===null&&Y4(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,G4(r,i)?o=null:a!==null&&G4(r,a)&&(t.flags|=32),oO(e,t),Xr(e,t,o,n),t.child;case 6:return e===null&&Y4(t),null;case 13:return lO(e,t,n);case 4:return eE(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=G1(t,null,r,n):Xr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),uA(e,t,r,i,n);case 7:return Xr(e,t,t.pendingProps,n),t.child;case 8:return Xr(e,t,t.pendingProps.children,n),t.child;case 12:return Xr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,mn(Uh,r._currentValue),r._currentValue=o,a!==null)if(ja(a.value,o)){if(a.children===i.children&&!mi.current){t=ts(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(a.tag===1){u=Xo(-1,n&-n),u.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),X4(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Pe(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),X4(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Xr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,D1(t,n),i=ha(i),r=r(i),t.flags|=1,Xr(e,t,r,n),t.child;case 14:return r=t.type,i=Da(r,t.pendingProps),i=Da(r.type,i),cA(e,t,r,i,n);case 15:return iO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Da(r,i),rh(e,t),t.tag=1,bi(r)?(e=!0,Fh(t)):e=!1,D1(t,n),DN(t,r,i),Q4(t,r,i,n),tb(null,t,r,!0,e,n);case 19:return uO(e,t,n);case 22:return aO(e,t,n)}throw Error(Pe(156,t.tag))};function AO(e,t){return ZR(e,t)}function ZW(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ua(e,t,n,r){return new ZW(e,t,n,r)}function gE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QW(e){if(typeof e=="function")return gE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===L9)return 11;if(e===M9)return 14}return 2}function tl(e,t){var n=e.alternate;return n===null?(n=ua(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function oh(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")gE(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case o1:return iu(n.children,i,a,t);case D9:o=8,i|=8;break;case T4:return e=ua(12,n,t,i|2),e.elementType=T4,e.lanes=a,e;case S4:return e=ua(13,n,t,i),e.elementType=S4,e.lanes=a,e;case w4:return e=ua(19,n,t,i),e.elementType=w4,e.lanes=a,e;case LR:return Wg(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case OR:o=10;break e;case DR:o=9;break e;case L9:o=11;break e;case M9:o=14;break e;case Ls:o=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=ua(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function iu(e,t,n,r){return e=ua(7,e,r,t),e.lanes=n,e}function Wg(e,t,n,r){return e=ua(22,e,r,t),e.elementType=LR,e.lanes=n,e.stateNode={isHidden:!1},e}function Q5(e,t,n){return e=ua(6,e,null,t),e.lanes=n,e}function J5(e,t,n){return t=ua(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JW(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=D5(0),this.expirationTimes=D5(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=D5(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mE(e,t,n,r,i,a,o,s,u){return e=new JW(e,t,n,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ua(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},J9(a),e}function eq(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IO)}catch(e){console.error(e)}}IO(),xR.exports=ji;var yE=xR.exports;const _E=Hi(yE);var wA=yE;y4.createRoot=wA.createRoot,y4.hydrateRoot=wA.hydrateRoot;var RO={exports:{}},on={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var TE=Symbol.for("react.element"),SE=Symbol.for("react.portal"),Zg=Symbol.for("react.fragment"),Qg=Symbol.for("react.strict_mode"),Jg=Symbol.for("react.profiler"),e2=Symbol.for("react.provider"),t2=Symbol.for("react.context"),aq=Symbol.for("react.server_context"),n2=Symbol.for("react.forward_ref"),r2=Symbol.for("react.suspense"),i2=Symbol.for("react.suspense_list"),a2=Symbol.for("react.memo"),o2=Symbol.for("react.lazy"),oq=Symbol.for("react.offscreen"),NO;NO=Symbol.for("react.module.reference");function Ea(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case TE:switch(e=e.type,e){case Zg:case Jg:case Qg:case r2:case i2:return e;default:switch(e=e&&e.$$typeof,e){case aq:case t2:case n2:case o2:case a2:case e2:return e;default:return t}}case SE:return t}}}on.ContextConsumer=t2;on.ContextProvider=e2;on.Element=TE;on.ForwardRef=n2;on.Fragment=Zg;on.Lazy=o2;on.Memo=a2;on.Portal=SE;on.Profiler=Jg;on.StrictMode=Qg;on.Suspense=r2;on.SuspenseList=i2;on.isAsyncMode=function(){return!1};on.isConcurrentMode=function(){return!1};on.isContextConsumer=function(e){return Ea(e)===t2};on.isContextProvider=function(e){return Ea(e)===e2};on.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===TE};on.isForwardRef=function(e){return Ea(e)===n2};on.isFragment=function(e){return Ea(e)===Zg};on.isLazy=function(e){return Ea(e)===o2};on.isMemo=function(e){return Ea(e)===a2};on.isPortal=function(e){return Ea(e)===SE};on.isProfiler=function(e){return Ea(e)===Jg};on.isStrictMode=function(e){return Ea(e)===Qg};on.isSuspense=function(e){return Ea(e)===r2};on.isSuspenseList=function(e){return Ea(e)===i2};on.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zg||e===Jg||e===Qg||e===r2||e===i2||e===oq||typeof e=="object"&&e!==null&&(e.$$typeof===o2||e.$$typeof===a2||e.$$typeof===e2||e.$$typeof===t2||e.$$typeof===n2||e.$$typeof===NO||e.getModuleId!==void 0)};on.typeOf=Ea;RO.exports=on;var wE=RO.exports;const sq=Hi(wE);function lq(e){function t(oe,O,re,Te,K){for(var xe=0,ne=0,Le=0,Re=0,Xe,Ve,dt=0,ot=0,Ge,pt=Ge=Xe=0,U=0,ie=0,pe=0,ke=0,ve=re.length,Se=ve-1,Me,ze="",Ke="",jt="",ue="",ye;UXe)&&(ke=(ze=ze.replace(" ",":")).length),0Te&&(Te=(O=O.trim()).charCodeAt(0)),Te){case 38:return O.replace(v,"$1"+oe.trim());case 58:return oe.trim()+O.replace(v,"$1"+oe.trim());default:if(0<1*re&&0ne.charCodeAt(8))break;case 115:K=K.replace(ne,"-webkit-"+ne)+";"+K;break;case 207:case 102:K=K.replace(ne,"-webkit-"+(102re.charCodeAt(0)&&(re=re.trim()),me=re,re=[me],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var kq=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Sp(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=Sd&&(Sd=t+1),sh.set(e,t),Zh.set(t,e)},Nq="style["+K1+'][data-styled-version="5.3.11"]',Oq=new RegExp("^"+K1+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Dq=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;c--){var p=u[c];if(p&&p.nodeType===1&&p.hasAttribute(K1))return p}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(K1,"active"),r.setAttribute("data-styled-version","5.3.11");var o=Mq();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},Fq=function(){function e(n){var r=this.element=FO(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(f+=m+",")}),a+=""+c+p+'{content:"'+f+`"}/*!sc*/ +`}}}return a}(this)},e}(),$q=/(a)(d)/gi,OA=function(e){return String.fromCharCode(e+(e>25?39:97))};function hb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=OA(t%52)+n;return(OA(t%52)+n).replace($q,"$1-$2")}var b1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},BO=function(e){return b1(5381,e)};function zq(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var u=r(o,"."+s,void 0,i);n.insertRules(i,s,u)}a.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,p=b1(this.baseHash,r.hash),f="",m=0;m>>0);if(!n.hasNameForId(i,T)){var v=r(f,"."+T,void 0,i);n.insertRules(i,T,v)}a.push(T)}}return a.join(" ")},e}(),Gq=/^\s*\/\/.*$/gm,Vq=[":","[",".","#"];function Wq(e){var t,n,r,i,a=e===void 0?nl:e,o=a.options,s=o===void 0?nl:o,u=a.plugins,c=u===void 0?Xh:u,p=new lq(s),f=[],m=function(b){function T(v){if(v)try{b(v+"}")}catch{}}return function(v,y,w,A,D,k,R,B,W,P){switch(v){case 1:if(W===0&&y.charCodeAt(0)===64)return b(y+";"),"";break;case 2:if(B===0)return y+"/*|*/";break;case 3:switch(B){case 102:case 112:return b(w[0]+y),"";default:return y+(P===0?"/*|*/":"")}case-2:y.split("/*|*/}").forEach(T)}}}(function(b){f.push(b)}),g=function(b,T,v){return T===0&&Vq.indexOf(v[n.length])!==-1||v.match(i)?b:"."+t};function E(b,T,v,y){y===void 0&&(y="&");var w=b.replace(Gq,""),A=T&&v?v+" "+T+" { "+w+" }":w;return t=y,n=T,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(v||!T?"":T,A)}return p.use([].concat(c,[function(b,T,v){b===2&&v.length&&v[0].lastIndexOf(n)>0&&(v[0]=v[0].replace(r,g))},m,function(b){if(b===-2){var T=f;return f=[],T}}])),E.hash=c.length?c.reduce(function(b,T){return T.name||Sp(15),b1(b,T.name)},5381).toString():"",E}var UO=ut.createContext();UO.Consumer;var $O=ut.createContext(),qq=($O.Consumer,new PO),gb=Wq();function Kq(){return C.useContext(UO)||qq}function Yq(){return C.useContext($O)||gb}var zO=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=gb);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Sp(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=gb),this.name+t.hash},e}(),Xq=/([A-Z])/,Zq=/([A-Z])/g,Qq=/^ms-/,Jq=function(e){return"-"+e.toLowerCase()};function DA(e){return Xq.test(e)?e.replace(Zq,Jq).replace(Qq,"-ms-"):e}var LA=function(e){return e==null||e===!1||e===""};function Y1(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,nK=/(^-|-$)/g;function e3(e){return e.replace(tK,"-").replace(nK,"")}var jO=function(e){return hb(BO(e)>>>0)};function c0(e){return typeof e=="string"&&!0}var mb=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},rK=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function iK(e,t,n){var r=e[n];mb(t)&&mb(r)?GO(r,t):e[n]=t}function GO(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(P[B]=k[B]);return P}(t,["componentId"]),D=w&&w+"-"+(c0(y)?y:e3(RA(y)));return WO(y,Yo({},A,{attrs:m,componentId:D}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(y){this._foldedDefaultProps=r?GO({},e.defaultProps,y):y}}),Object.defineProperty(E,"toString",{value:function(){return"."+E.styledComponentId}}),i&&Cq(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var bb=function(e){return function t(n,r,i){if(i===void 0&&(i=nl),!wE.isValidElementType(r))return Sp(1,String(r));var a=function(){return n(r,i,HO.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,Yo({},i,{},o))},a.attrs=function(o){return t(n,r,Yo({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(WO,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){bb[e]=bb(e)});function b2(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r({x:e,y:e}),oK={left:"right",right:"left",bottom:"top",top:"bottom"},sK={start:"end",end:"start"};function Eb(e,t,n){return M1(e,ip(t,n))}function wp(e,t){return typeof e=="function"?e(t):e}function fu(e){return e.split("-")[0]}function Ap(e){return e.split("-")[1]}function KO(e){return e==="x"?"y":"x"}function OE(e){return e==="y"?"height":"width"}function E2(e){return["top","bottom"].includes(fu(e))?"y":"x"}function DE(e){return KO(E2(e))}function lK(e,t,n){n===void 0&&(n=!1);const r=Ap(e),i=DE(e),a=OE(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Jh(o)),[o,Jh(o)]}function uK(e){const t=Jh(e);return[vb(e),t,vb(t)]}function vb(e){return e.replace(/start|end/g,t=>sK[t])}function cK(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function dK(e,t,n,r){const i=Ap(e);let a=cK(fu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(vb)))),a}function Jh(e){return e.replace(/left|right|bottom|top/g,t=>oK[t])}function pK(e){return{top:0,right:0,bottom:0,left:0,...e}}function YO(e){return typeof e!="number"?pK(e):{top:e,right:e,bottom:e,left:e}}function eg(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function PA(e,t,n){let{reference:r,floating:i}=e;const a=E2(t),o=DE(t),s=OE(o),u=fu(t),c=a==="y",p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let g;switch(u){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Ap(t)){case"start":g[o]-=m*(n&&c?-1:1);break;case"end":g[o]+=m*(n&&c?-1:1);break}return g}const fK=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:f}=PA(c,r,u),m=r,g={},E=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:s}=t,{element:u,padding:c=0}=wp(e,t)||{};if(u==null)return{};const p=YO(c),f={x:n,y:r},m=DE(i),g=OE(m),E=await o.getDimensions(u),b=m==="y",T=b?"top":"left",v=b?"bottom":"right",y=b?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[m]-f[m]-a.floating[g],A=f[m]-a.reference[m],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let k=D?D[y]:0;(!k||!await(o.isElement==null?void 0:o.isElement(D)))&&(k=s.floating[y]||a.floating[g]);const R=w/2-A/2,B=k/2-E[g]/2-1,W=ip(p[T],B),P=ip(p[v],B),Q=W,z=k-E[g]-P,le=k/2-E[g]/2+R,he=Eb(Q,le,z),fe=Ap(i)!=null&&le!=he&&a.reference[g]/2-(leQ<=0)){var B,W;const Q=(((B=i.flip)==null?void 0:B.index)||0)+1,z=A[Q];if(z)return{data:{index:Q,overflows:R},reset:{placement:z}};let le=(W=R.filter(he=>he.overflows[0]<=0).sort((he,de)=>he.overflows[1]-de.overflows[1])[0])==null?void 0:W.placement;if(!le)switch(m){case"bestFit":{var P;const he=(P=R.map(de=>[de.placement,de.overflows.filter(fe=>fe>0).reduce((fe,Z)=>fe+Z,0)]).sort((de,fe)=>de[1]-fe[1])[0])==null?void 0:P[0];he&&(le=he);break}case"initialPlacement":le=o;break}if(r!==le)return{reset:{placement:le}}}return{}}}};async function mK(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=fu(n),s=Ap(n),u=E2(n)==="y",c=["left","top"].includes(o)?-1:1,p=a&&u?-1:1,f=wp(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:E}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof E=="number"&&(g=s==="end"?E*-1:E),u?{x:g*p,y:m*c}:{x:m*c,y:g*p}}const bK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await mK(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},EK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:T=>{let{x:v,y}=T;return{x:v,y}}},...u}=wp(e,t),c={x:n,y:r},p=await XO(t,u),f=E2(fu(i)),m=KO(f);let g=c[m],E=c[f];if(a){const T=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=g+p[T],w=g-p[v];g=Eb(y,g,w)}if(o){const T=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=E+p[T],w=E-p[v];E=Eb(y,E,w)}const b=s.fn({...t,[m]:g,[f]:E});return{...b,data:{x:b.x-n,y:b.y-r}}}}};function dl(e){return ZO(e)?(e.nodeName||"").toLowerCase():"#document"}function Mi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function El(e){var t;return(t=(ZO(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ZO(e){return e instanceof Node||e instanceof Mi(e).Node}function ns(e){return e instanceof Element||e instanceof Mi(e).Element}function vo(e){return e instanceof HTMLElement||e instanceof Mi(e).HTMLElement}function BA(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mi(e).ShadowRoot}function Cp(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function vK(e){return["table","td","th"].includes(dl(e))}function LE(e){const t=ME(),n=ma(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function yK(e){let t=X1(e);for(;vo(t)&&!v2(t);){if(LE(t))return t;t=X1(t)}return null}function ME(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function v2(e){return["html","body","#document"].includes(dl(e))}function ma(e){return Mi(e).getComputedStyle(e)}function y2(e){return ns(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function X1(e){if(dl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||BA(e)&&e.host||El(e);return BA(t)?t.host:t}function QO(e){const t=X1(e);return v2(t)?e.ownerDocument?e.ownerDocument.body:e.body:vo(t)&&Cp(t)?t:QO(t)}function JO(e,t){var n;t===void 0&&(t=[]);const r=QO(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Mi(r);return i?t.concat(a,a.visualViewport||[],Cp(r)?r:[]):t.concat(r,JO(r))}function eD(e){const t=ma(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Qh(n)!==a||Qh(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function tD(e){return ns(e)?e:e.contextElement}function F1(e){const t=tD(e);if(!vo(t))return cl(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=eD(t);let o=(a?Qh(n.width):n.width)/r,s=(a?Qh(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const _K=cl(0);function nD(e){const t=Mi(e);return!ME()||!t.visualViewport?_K:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mi(e)?!1:t}function ap(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=tD(e);let o=cl(1);t&&(r?ns(r)&&(o=F1(r)):o=F1(e));const s=TK(a,n,r)?nD(a):cl(0);let u=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,p=i.width/o.x,f=i.height/o.y;if(a){const m=Mi(a),g=r&&ns(r)?Mi(r):r;let E=m.frameElement;for(;E&&r&&g!==m;){const b=F1(E),T=E.getBoundingClientRect(),v=ma(E),y=T.left+(E.clientLeft+parseFloat(v.paddingLeft))*b.x,w=T.top+(E.clientTop+parseFloat(v.paddingTop))*b.y;u*=b.x,c*=b.y,p*=b.x,f*=b.y,u+=y,c+=w,E=Mi(E).frameElement}}return eg({width:p,height:f,x:u,y:c})}function SK(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=vo(n),a=El(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s=cl(1);const u=cl(0);if((i||!i&&r!=="fixed")&&((dl(n)!=="body"||Cp(a))&&(o=y2(n)),vo(n))){const c=ap(n);s=F1(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+u.x,y:t.y*s.y-o.scrollTop*s.y+u.y}}function wK(e){return Array.from(e.getClientRects())}function rD(e){return ap(El(e)).left+y2(e).scrollLeft}function AK(e){const t=El(e),n=y2(e),r=e.ownerDocument.body,i=M1(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=M1(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+rD(e);const s=-n.scrollTop;return ma(r).direction==="rtl"&&(o+=M1(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function CK(e,t){const n=Mi(e),r=El(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;const c=ME();(!c||c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}function xK(e,t){const n=ap(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vo(e)?F1(e):cl(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,u=i*a.x,c=r*a.y;return{width:o,height:s,x:u,y:c}}function UA(e,t,n){let r;if(t==="viewport")r=CK(e,n);else if(t==="document")r=AK(El(e));else if(ns(t))r=xK(t,n);else{const i=nD(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return eg(r)}function iD(e,t){const n=X1(e);return n===t||!ns(n)||v2(n)?!1:ma(n).position==="fixed"||iD(n,t)}function kK(e,t){const n=t.get(e);if(n)return n;let r=JO(e).filter(s=>ns(s)&&dl(s)!=="body"),i=null;const a=ma(e).position==="fixed";let o=a?X1(e):e;for(;ns(o)&&!v2(o);){const s=ma(o),u=LE(o);!u&&s.position==="fixed"&&(i=null),(a?!u&&!i:!u&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Cp(o)&&!u&&iD(e,o))?r=r.filter(p=>p!==o):i=s,o=X1(o)}return t.set(e,r),r}function IK(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?kK(t,this._c):[].concat(n),r],s=o[0],u=o.reduce((c,p)=>{const f=UA(t,p,i);return c.top=M1(f.top,c.top),c.right=ip(f.right,c.right),c.bottom=ip(f.bottom,c.bottom),c.left=M1(f.left,c.left),c},UA(t,s,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function RK(e){return eD(e)}function NK(e,t,n){const r=vo(t),i=El(t),a=n==="fixed",o=ap(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=cl(0);if(r||!r&&!a)if((dl(t)!=="body"||Cp(i))&&(s=y2(t)),r){const c=ap(t,!0,a,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else i&&(u.x=rD(i));return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function $A(e,t){return!vo(e)||ma(e).position==="fixed"?null:t?t(e):e.offsetParent}function aD(e,t){const n=Mi(e);if(!vo(e))return n;let r=$A(e,t);for(;r&&vK(r)&&ma(r).position==="static";)r=$A(r,t);return r&&(dl(r)==="html"||dl(r)==="body"&&ma(r).position==="static"&&!LE(r))?n:r||yK(e)||n}const OK=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||aD,a=this.getDimensions;return{reference:NK(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}};function DK(e){return ma(e).direction==="rtl"}const LK={convertOffsetParentRelativeRectToViewportRelativeRect:SK,getDocumentElement:El,getClippingRect:IK,getOffsetParent:aD,getElementRects:OK,getClientRects:wK,getDimensions:RK,getScale:F1,isElement:ns,isRTL:DK},zA=(e,t,n)=>{const r=new Map,i={platform:LK,...n},a={...i.platform,_c:r};return fK(e,t,{...i,platform:a})};/* +* React Tooltip +* {@link https://github.com/ReactTooltip/react-tooltip} +* @copyright ReactTooltip Team +* @license MIT +*/const MK="react-tooltip-core-styles",FK="react-tooltip-base-styles",HA={core:!1,base:!1};function jA({css:e,id:t=FK,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||HA[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=MK),r||(r={});const{insertAt:o}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);const s=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css",o==="top"&&s.firstChild?s.insertBefore(u,s.firstChild):s.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),HA[n]=!0}const GA=(e,t,n)=>{let r=null;return function(...i){const a=()=>{r=null,n||e.apply(this,i)};n&&!r&&(e.apply(this,i),r=setTimeout(a,t)),n||(r&&clearTimeout(r),r=setTimeout(a,t))}},PK="DEFAULT_TOOLTIP_ID",BK={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},UK=C.createContext({getTooltipData:()=>BK});function oD(e=PK){return C.useContext(UK).getTooltipData(e)}const $K=typeof window<"u"?C.useLayoutEffect:C.useEffect,zK=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},VA=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(zK(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},WA=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:o=[bK(Number(i)),gK(),EK({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const u=o;return n?(u.push(hK({element:n,padding:5})),zA(e,t,{placement:r,strategy:a,middleware:u}).then(({x:c,y:p,placement:f,middlewareData:m})=>{var g,E;const b={left:`${c}px`,top:`${p}px`,border:s},{x:T,y:v}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},y=(E={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&E!==void 0?E:"bottom",w=s&&{top:{borderBottom:s,borderRight:s},right:{borderBottom:s,borderLeft:s},bottom:{borderTop:s,borderLeft:s},left:{borderTop:s,borderRight:s}}[f.split("-")[0]];let A=0;if(s){const D=`${s}`.match(/(\d+)px/);A=D!=null&&D[1]?Number(D[1]):1}return{tooltipStyles:b,tooltipArrowStyles:{left:T!=null?`${T}px`:"",top:v!=null?`${v}px`:"",right:"",bottom:"",...w,[y]:`-${4+A}px`},place:f}})):zA(e,t,{placement:"bottom",strategy:a,middleware:u}).then(({x:c,y:p,placement:f})=>({tooltipStyles:{left:`${c}px`,top:`${p}px`},tooltipArrowStyles:{},place:f}))};var HK="core-styles-module_tooltip__3vRRp",jK="core-styles-module_fixed__pcSol",GK="core-styles-module_arrow__cvMwQ",VK="core-styles-module_noArrow__xock6",WK="core-styles-module_clickable__ZuTTB",qK="core-styles-module_show__Nt9eE",n3={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const KK=({id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:i,anchorSelect:a,place:o="top",offset:s=10,events:u=["hover"],openOnClick:c=!1,positionStrategy:p="absolute",middlewares:f,wrapper:m,delayShow:g=0,delayHide:E=0,float:b=!1,hidden:T=!1,noArrow:v=!1,clickable:y=!1,closeOnEsc:w=!1,closeOnScroll:A=!1,closeOnResize:D=!1,style:k,position:R,afterShow:B,afterHide:W,content:P,contentWrapperRef:Q,isOpen:z,setIsOpen:le,activeAnchor:he,setActiveAnchor:de,border:fe,opacity:Z})=>{const V=C.useRef(null),ce=C.useRef(null),N=C.useRef(null),me=C.useRef(null),[oe,O]=C.useState(o),[re,Te]=C.useState({}),[K,xe]=C.useState({}),[ne,Le]=C.useState(!1),[Re,Xe]=C.useState(!1),Ve=C.useRef(!1),dt=C.useRef(null),{anchorRefs:ot,setActiveAnchor:Ge}=oD(e),pt=C.useRef(!1),[U,ie]=C.useState([]),pe=C.useRef(!1),ke=c||u.includes("click");$K(()=>(pe.current=!0,()=>{pe.current=!1}),[]),C.useEffect(()=>{if(!ne){const se=setTimeout(()=>{Xe(!1)},150);return()=>{clearTimeout(se)}}return()=>null},[ne]);const ve=se=>{pe.current&&(se&&Xe(!0),setTimeout(()=>{pe.current&&(le==null||le(se),z===void 0&&Le(se))},10))};C.useEffect(()=>{if(z===void 0)return()=>null;z&&Xe(!0);const se=setTimeout(()=>{Le(z)},10);return()=>{clearTimeout(se)}},[z]),C.useEffect(()=>{ne!==Ve.current&&(Ve.current=ne,ne?B==null||B():W==null||W())},[ne]);const Se=(se=E)=>{me.current&&clearTimeout(me.current),me.current=setTimeout(()=>{pt.current||ve(!1)},se)},Me=se=>{var j;if(!se)return;const $=(j=se.currentTarget)!==null&&j!==void 0?j:se.target;if(!($!=null&&$.isConnected))return de(null),void Ge({current:null});g?(N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{ve(!0)},g)):ve(!0),de($),Ge({current:$}),me.current&&clearTimeout(me.current)},ze=()=>{y?Se(E||100):E?Se():ve(!1),N.current&&clearTimeout(N.current)},Ke=({x:se,y:j})=>{WA({place:o,offset:s,elementReference:{getBoundingClientRect:()=>({x:se,y:j,width:0,height:0,top:j,left:se,right:se,bottom:j})},tooltipReference:V.current,tooltipArrowReference:ce.current,strategy:p,middlewares:f,border:fe}).then($=>{Object.keys($.tooltipStyles).length&&Te($.tooltipStyles),Object.keys($.tooltipArrowStyles).length&&xe($.tooltipArrowStyles),O($.place)})},jt=se=>{if(!se)return;const j=se,$={x:j.clientX,y:j.clientY};Ke($),dt.current=$},ue=se=>{Me(se),E&&Se()},ye=se=>{var j;[document.querySelector(`[id='${i}']`),...U].some($=>$==null?void 0:$.contains(se.target))||!((j=V.current)===null||j===void 0)&&j.contains(se.target)||(ve(!1),N.current&&clearTimeout(N.current))},We=GA(Me,50,!0),at=GA(ze,50,!0);C.useEffect(()=>{var se,j;const $=new Set(ot);U.forEach(Zt=>{$.add({current:Zt})});const J=document.querySelector(`[id='${i}']`);J&&$.add({current:J});const be=()=>{ve(!1)},Fe=VA(he),De=VA(V.current);A&&(window.addEventListener("scroll",be),Fe==null||Fe.addEventListener("scroll",be),De==null||De.addEventListener("scroll",be)),D&&window.addEventListener("resize",be);const tt=Zt=>{Zt.key==="Escape"&&ve(!1)};w&&window.addEventListener("keydown",tt);const Je=[];ke?(window.addEventListener("click",ye),Je.push({event:"click",listener:ue})):(Je.push({event:"mouseenter",listener:We},{event:"mouseleave",listener:at},{event:"focus",listener:We},{event:"blur",listener:at}),b&&Je.push({event:"mousemove",listener:jt}));const Ze=()=>{pt.current=!0},Rt=()=>{pt.current=!1,ze()};return y&&!ke&&((se=V.current)===null||se===void 0||se.addEventListener("mouseenter",Ze),(j=V.current)===null||j===void 0||j.addEventListener("mouseleave",Rt)),Je.forEach(({event:Zt,listener:kt})=>{$.forEach(nn=>{var Yt;(Yt=nn.current)===null||Yt===void 0||Yt.addEventListener(Zt,kt)})}),()=>{var Zt,kt;A&&(window.removeEventListener("scroll",be),Fe==null||Fe.removeEventListener("scroll",be),De==null||De.removeEventListener("scroll",be)),D&&window.removeEventListener("resize",be),ke&&window.removeEventListener("click",ye),w&&window.removeEventListener("keydown",tt),y&&!ke&&((Zt=V.current)===null||Zt===void 0||Zt.removeEventListener("mouseenter",Ze),(kt=V.current)===null||kt===void 0||kt.removeEventListener("mouseleave",Rt)),Je.forEach(({event:nn,listener:Yt})=>{$.forEach(jr=>{var Gr;(Gr=jr.current)===null||Gr===void 0||Gr.removeEventListener(nn,Yt)})})}},[Re,ot,U,w,u]),C.useEffect(()=>{let se=a??"";!se&&e&&(se=`[data-tooltip-id='${e}']`);const j=new MutationObserver($=>{const J=[];$.forEach(be=>{if(be.type==="attributes"&&be.attributeName==="data-tooltip-id"&&be.target.getAttribute("data-tooltip-id")===e&&J.push(be.target),be.type==="childList"&&(he&&[...be.removedNodes].some(Fe=>{var De;return!!(!((De=Fe==null?void 0:Fe.contains)===null||De===void 0)&&De.call(Fe,he))&&(Xe(!1),ve(!1),de(null),N.current&&clearTimeout(N.current),me.current&&clearTimeout(me.current),!0)}),se))try{const Fe=[...be.addedNodes].filter(De=>De.nodeType===1);J.push(...Fe.filter(De=>De.matches(se))),J.push(...Fe.flatMap(De=>[...De.querySelectorAll(se)]))}catch{}}),J.length&&ie(be=>[...be,...J])});return j.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{j.disconnect()}},[e,a,he]);const Qe=()=>{R?Ke(R):b?dt.current&&Ke(dt.current):WA({place:o,offset:s,elementReference:he,tooltipReference:V.current,tooltipArrowReference:ce.current,strategy:p,middlewares:f,border:fe}).then(se=>{pe.current&&(Object.keys(se.tooltipStyles).length&&Te(se.tooltipStyles),Object.keys(se.tooltipArrowStyles).length&&xe(se.tooltipArrowStyles),O(se.place))})};C.useEffect(()=>{Qe()},[ne,he,P,k,o,s,p,R]),C.useEffect(()=>{if(!(Q!=null&&Q.current))return()=>null;const se=new ResizeObserver(()=>{Qe()});return se.observe(Q.current),()=>{se.disconnect()}},[P,Q==null?void 0:Q.current]),C.useEffect(()=>{var se;const j=document.querySelector(`[id='${i}']`),$=[...U,j];he&&$.includes(he)||de((se=U[0])!==null&&se!==void 0?se:j)},[i,U,he]),C.useEffect(()=>()=>{N.current&&clearTimeout(N.current),me.current&&clearTimeout(me.current)},[]),C.useEffect(()=>{let se=a;if(!se&&e&&(se=`[data-tooltip-id='${e}']`),se)try{const j=Array.from(document.querySelectorAll(se));ie(j)}catch{ie([])}},[e,a]);const Y=!T&&P&&ne&&Object.keys(re).length>0;return Re?ut.createElement(m,{id:e,role:"tooltip",className:FA("react-tooltip",HK,n3.tooltip,n3[r],t,`react-tooltip__place-${oe}`,{[qK]:Y,[jK]:p==="fixed",[WK]:y}),style:{...k,...re,opacity:Z!==void 0&&Y?Z:void 0},ref:V},P,ut.createElement(m,{className:FA("react-tooltip-arrow",GK,n3.arrow,n,{[VK]:v}),style:K,ref:ce})):null},YK=({content:e})=>ut.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),XK=({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:o,classNameArrow:s,variant:u="dark",place:c="top",offset:p=10,wrapper:f="div",children:m=null,events:g=["hover"],openOnClick:E=!1,positionStrategy:b="absolute",middlewares:T,delayShow:v=0,delayHide:y=0,float:w=!1,hidden:A=!1,noArrow:D=!1,clickable:k=!1,closeOnEsc:R=!1,closeOnScroll:B=!1,closeOnResize:W=!1,style:P,position:Q,isOpen:z,disableStyleInjection:le=!1,border:he,opacity:de,setIsOpen:fe,afterShow:Z,afterHide:V})=>{const[ce,N]=C.useState(r),[me,oe]=C.useState(i),[O,re]=C.useState(c),[Te,K]=C.useState(u),[xe,ne]=C.useState(p),[Le,Re]=C.useState(v),[Xe,Ve]=C.useState(y),[dt,ot]=C.useState(w),[Ge,pt]=C.useState(A),[U,ie]=C.useState(f),[pe,ke]=C.useState(g),[ve,Se]=C.useState(b),[Me,ze]=C.useState(null),Ke=C.useRef(le),{anchorRefs:jt,activeAnchor:ue}=oD(e),ye=se=>se==null?void 0:se.getAttributeNames().reduce((j,$)=>{var J;return $.startsWith("data-tooltip-")&&(j[$.replace(/^data-tooltip-/,"")]=(J=se==null?void 0:se.getAttribute($))!==null&&J!==void 0?J:null),j},{}),We=se=>{const j={place:$=>{var J;re((J=$)!==null&&J!==void 0?J:c)},content:$=>{N($??r)},html:$=>{oe($??i)},variant:$=>{var J;K((J=$)!==null&&J!==void 0?J:u)},offset:$=>{ne($===null?p:Number($))},wrapper:$=>{var J;ie((J=$)!==null&&J!==void 0?J:f)},events:$=>{const J=$==null?void 0:$.split(" ");ke(J??g)},"position-strategy":$=>{var J;Se((J=$)!==null&&J!==void 0?J:b)},"delay-show":$=>{Re($===null?v:Number($))},"delay-hide":$=>{Ve($===null?y:Number($))},float:$=>{ot($===null?w:$==="true")},hidden:$=>{pt($===null?A:$==="true")}};Object.values(j).forEach($=>$(null)),Object.entries(se).forEach(([$,J])=>{var be;(be=j[$])===null||be===void 0||be.call(j,J)})};C.useEffect(()=>{N(r)},[r]),C.useEffect(()=>{oe(i)},[i]),C.useEffect(()=>{re(c)},[c]),C.useEffect(()=>{K(u)},[u]),C.useEffect(()=>{ne(p)},[p]),C.useEffect(()=>{Re(v)},[v]),C.useEffect(()=>{Ve(y)},[y]),C.useEffect(()=>{ot(w)},[w]),C.useEffect(()=>{pt(A)},[A]),C.useEffect(()=>{Se(b)},[b]),C.useEffect(()=>{Ke.current!==le&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[le]),C.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:le==="core",disableBase:le}}))},[]),C.useEffect(()=>{var se;const j=new Set(jt);let $=n;if(!$&&e&&($=`[data-tooltip-id='${e}']`),$)try{document.querySelectorAll($).forEach(tt=>{j.add({current:tt})})}catch{console.warn(`[react-tooltip] "${$}" is not a valid CSS selector`)}const J=document.querySelector(`[id='${t}']`);if(J&&j.add({current:J}),!j.size)return()=>null;const be=(se=Me??J)!==null&&se!==void 0?se:ue.current,Fe=new MutationObserver(tt=>{tt.forEach(Je=>{var Ze;if(!be||Je.type!=="attributes"||!(!((Ze=Je.attributeName)===null||Ze===void 0)&&Ze.startsWith("data-tooltip-")))return;const Rt=ye(be);We(Rt)})}),De={attributes:!0,childList:!1,subtree:!1};if(be){const tt=ye(be);We(tt),Fe.observe(be,De)}return()=>{Fe.disconnect()}},[jt,ue,Me,t,n]),C.useEffect(()=>{P!=null&&P.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),he&&!CSS.supports("border",`${he}`)&&console.warn(`[react-tooltip] "${he}" is not a valid \`border\`.`),P!=null&&P.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),de&&!CSS.supports("opacity",`${de}`)&&console.warn(`[react-tooltip] "${de}" is not a valid \`opacity\`.`)},[]);let at=m;const Qe=C.useRef(null);if(a){const se=a({content:ce??null,activeAnchor:Me});at=se?ut.createElement("div",{ref:Qe,className:"react-tooltip-content-wrapper"},se):null}else ce&&(at=ce);me&&(at=ut.createElement(YK,{content:me}));const Y={id:e,anchorId:t,anchorSelect:n,className:o,classNameArrow:s,content:at,contentWrapperRef:Qe,place:O,variant:Te,offset:xe,wrapper:U,events:pe,openOnClick:E,positionStrategy:ve,middlewares:T,delayShow:Le,delayHide:Xe,float:dt,hidden:Ge,noArrow:D,clickable:k,closeOnEsc:R,closeOnScroll:B,closeOnResize:W,style:P,position:Q,isOpen:z,border:he,opacity:de,setIsOpen:fe,afterShow:Z,afterHide:V,activeAnchor:Me,setActiveAnchor:se=>ze(se)};return ut.createElement(KK,{...Y})};typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||jA({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}",type:"core"}),e.detail.disableBase||jA({css:` +.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px;transform:rotate(45deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});function _2(){const e=window.navigator.platform.toUpperCase();return e.indexOf("MAC")>=0?"mac":e.indexOf("LINUX")>=0?"linux":e.indexOf("WIN")>=0?"windows":"unknown"}function tg(e){switch(_2()){case"mac":return e.metaKey;case"linux":case"windows":return e.ctrlKey;default:return e.metaKey}}function ZK(){switch(_2()){case"mac":return"⌘";case"linux":case"windows":return"^";default:return"⌘"}}function nr(){const e=localStorage.getItem("fontSize");return e?parseInt(e):14}function qA(e){switch(e.split(".").pop()){case"py":return"python";case"js":return"javascript";case"ts":return"typescript";case"java":return"java";case"go":return"go";case"rb":return"ruby";case"rs":return"rust";case"c":return"c";case"cpp":return"cpp";case"cs":return"csharp";case"php":return"php";case"scala":return"scala";case"swift":return"swift";case"kt":return"kotlin";case"md":return"markdown";case"json":return"json";case"html":return"html";case"css":return"css";case"sh":return"shell";case"yaml":return"yaml";case"toml":return"toml";case"tex":return"latex";case"sql":return"sql";default:return""}}const wt="5px",vt="#646464",da="#1bbe84",Lt="var(--vscode-list-hoverBackground, rgb(45 45 45))",Kt="var(--vscode-editor-background, rgb(30 30 30))",Ht="var(--vscode-editor-foreground, #fff)";if(typeof document<"u"){const e=localStorage.getItem("--vscode-editor-foreground"),t=localStorage.getItem("--vscode-editor-background"),n=localStorage.getItem("--vscode-list-hoverBackground");e&&document.body.style.setProperty("--vscode-editor-foreground",e),t&&document.body.style.setProperty("--vscode-editor-background",t),n&&document.body.style.setProperty("--vscode-list-hoverBackground",n)}const op=He.button` + padding: 10px 12px; + margin: 8px 0; + border-radius: ${wt}; + + border: none; + color: white; + background-color: ${da}; + + &:disabled { + color: gray; + } + + &:hover:enabled { + cursor: pointer; + } +`,Gs=He(XK)` + font-size: 12px; + background-color: rgb(60 60 60); + border-radius: ${wt}; + padding: 6px; + padding-left: 12px; + padding-right: 12px; + z-index: 1000; + + max-width: 80vw; +`,QK=He.textarea` + padding: 8px; + font-family: inherit; + border-radius: ${wt}; + margin: 16px auto; + height: auto; + width: calc(100% - 32px); + background-color: ${Lt}; + color: ${Ht}; + z-index: 1; + border: 1px solid transparent; + + resize: vertical; + + &:focus { + outline: 1px solid ${vt}; + border: 1px solid transparent; + } + + &::placeholder { + color: ${vt}80; + } +`;He.pre` + border-radius: ${wt}; + padding: 8px; + max-height: 150px; + overflow-y: scroll; + margin: 0; + background-color: ${Kt}; + border: none; + + /* text wrapping */ + white-space: pre-wrap; /* Since CSS 2.1 */ + white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + word-wrap: break-word; /* Internet Explorer 5.5+ */ +`;He.h3` + background-color: ${Lt}; + border-radius: ${wt}; + padding: 4px 8px; + width: fit-content; +`;const ng=He.input` + width: 100%; + padding: 8px 12px; + margin: 8px 0; + box-sizing: border-box; + border-radius: ${wt}; + outline: 1px solid ${vt}; + border: none; + background-color: ${Kt}; + color: ${Ht}; + + &:focus { + background: ${Lt}; + } + + &:invalid { + outline: 1px solid red; + } +`,JK=He.input.attrs({type:"number"})` + padding: 8px 12px; + margin: 8px 4px; + box-sizing: border-box; + border-radius: ${wt}; + outline: 1px solid ${vt}; + border: none; + background-color: ${Kt}; + color: ${Ht}; + + &:focus { + background: ${Lt}; + } +`;He.select` + padding: 8px 12px; + margin: 8px 0; + box-sizing: border-box; + border-radius: ${wt}; + outline: 1px solid ${vt}; + border: none; + background-color: ${Kt}; + color: ${Ht}; +`;He.label` + font-size: ${e=>e.fontSize||nr()}px; +`;const KA=b2` + from { + -webkit-transform: rotate(0deg); + } + to { + -webkit-transform: rotate(360deg); + } +`;He.div` + border: 4px solid transparent; + border-radius: 50%; + border-top: 4px solid white; + width: 36px; + height: 36px; + -webkit-animation: ${KA} 1s ease-in-out infinite; + animation: ${KA} 1s ease-in-out infinite; + margin: auto; +`;He.div` + border-radius: ${wt}; + padding: ${e=>e.borderWidth||"1px"}; + background-color: white; +`;He.textarea` + padding: 8px; + font-size: 16px; + border-radius: ${wt}; + border: 1px solid #ccc; + margin: 8px 8px; + background-color: ${Kt}; + color: ${Ht}; + outline: 1px solid orange; + resize: none; +`;b2` + from { + opacity: 0; + transform: translateY(-10px); + } + to { + opacity: 1; + transform: translateY(0px); + } +`;const eY=He.button` + background-color: ${({inverted:e})=>e?Ht:"transparent"}; + color: ${({inverted:e})=>e?Kt:Ht}; + + border: none; + border-radius: ${wt}; + cursor: ${({disabled:e})=>e?"default":"pointer"}; + + &:focus { + outline: none; + border: none; + } + + &:hover { + background-color: ${({inverted:e})=>typeof e>"u"||e?Lt:"transparent"}; + } + display: flex; + align-items: center; + justify-content: center; + gap: 4px; + padding: 2px; +`;function tY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18"}))}const nY=C.forwardRef(tY),ac=nY;function rY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"}))}const iY=C.forwardRef(rY),aY=iY;function oY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"}))}const sY=C.forwardRef(oY),lY=sY;function uY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 19.5l-15-15m0 0v11.25m0-11.25h11.25"}))}const cY=C.forwardRef(uY),dY=cY;function pY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}const fY=C.forwardRef(pY),hY=fY;function gY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"}))}const mY=C.forwardRef(gY),sD=mY;function bY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))}const EY=C.forwardRef(bY),vY=EY;function yY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}const _Y=C.forwardRef(yY),TY=_Y;function SY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))}const wY=C.forwardRef(SY),AY=wY;function CY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const xY=C.forwardRef(CY),kY=xY;function IY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75L16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0020.25 18V6A2.25 2.25 0 0018 3.75H6A2.25 2.25 0 003.75 6v12A2.25 2.25 0 006 20.25z"}))}const RY=C.forwardRef(IY),NY=RY;function OY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const DY=C.forwardRef(OY),LY=DY;function MY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}const FY=C.forwardRef(MY),lD=FY;function PY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"}))}const BY=C.forwardRef(PY),UY=BY;function $Y({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"}))}const zY=C.forwardRef($Y),HY=zY;function jY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}const GY=C.forwardRef(jY),VY=GY;function WY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}))}const qY=C.forwardRef(WY),KY=qY;function YY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"}))}const XY=C.forwardRef(YY),ZY=XY;function QY({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"}))}const JY=C.forwardRef(QY),uD=JY;function eX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const tX=C.forwardRef(eX),cD=tX;function nX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"}))}const rX=C.forwardRef(nX),iX=rX;function aX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"}))}const oX=C.forwardRef(aX),dD=oX;function sX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"}))}const lX=C.forwardRef(sX),uX=lX;function cX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const dX=C.forwardRef(cX),pD=dX;function pX({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}const fX=C.forwardRef(pX),T2=fX,vi=ut.forwardRef((e,t)=>{const[n,r]=C.useState(!1),i=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(eY,{"data-tooltip-id":`header_button_${e.text}`,inverted:e.inverted,disabled:e.disabled,onMouseEnter:()=>{e.disabled||r(!0)},onMouseLeave:()=>{r(!1)},onClick:e.onClick,onKeyDown:e.onKeyDown,className:e.className,ref:t,tabIndex:e.tabIndex,children:e.children}),i&&_E.createPortal(I.jsx(Gs,{id:`header_button_${e.text}`,place:"bottom",children:e.text}),i)]})});function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}const YA=["http","https","mailto","tel"];function hX(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */var gX=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const fD=Hi(gX);function wd(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?XA(e.position):"start"in e||"end"in e?XA(e):"line"in e||"column"in e?yb(e):""}function yb(e){return ZA(e&&e.line)+":"+ZA(e&&e.column)}function XA(e){return yb(e&&e.start)+"-"+yb(e&&e.end)}function ZA(e){return e&&typeof e=="number"?e:1}class va extends Error{constructor(t,n,r){const i=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=wd(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}va.prototype.file="";va.prototype.name="";va.prototype.reason="";va.prototype.message="";va.prototype.stack="";va.prototype.fatal=null;va.prototype.column=null;va.prototype.line=null;va.prototype.source=null;va.prototype.ruleId=null;va.prototype.position=null;const ao={basename:mX,dirname:bX,extname:EX,join:vX,sep:"/"};function mX(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xp(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function bX(e){if(xp(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function EX(e){xp(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function vX(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function _X(e,t){let n="",r=0,i=-1,a=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function xp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const TX={cwd:SX};function SX(){return"/"}function _b(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function wX(e){if(typeof e=="string")e=new URL(e);else if(!_b(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return AX(e)}function AX(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n"u"||lh.call(t,i)},iC=function(t,n){eC&&n.name==="__proto__"?eC(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},aC=function(t,n){if(n==="__proto__")if(lh.call(t,n)){if(tC)return tC(t,n).value}else return;return t[n]},xX=function e(){var t,n,r,i,a,o,s=arguments[0],u=1,c=arguments.length,p=!1;for(typeof s=="boolean"&&(p=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(c){const p=c;if(s&&n)throw p;return i(p)}s||(u instanceof Promise?u.then(a,i):u instanceof Error?i(u):a(u))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const RX=bD().freeze(),mD={}.hasOwnProperty;function bD(){const e=kX(),t=[];let n={},r,i=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=t,a.use=u,a.parse=c,a.stringify=p,a.run=f,a.runSync=m,a.process=g,a.processSync=E,a;function a(){const b=bD();let T=-1;for(;++T{if(k||!R||!B)D(k);else{const W=a.stringify(R,B);W==null||(DX(W)?B.value=W:B.result=W),D(k,B)}});function D(k,R){k||!R?w(k):y?y(R):T(null,R)}}}function E(b){let T;a.freeze(),o3("processSync",a.Parser),s3("processSync",a.Compiler);const v=Hc(b);return a.process(v,y),lC("processSync","process",T),v;function y(w){T=!0,JA(w)}}}function oC(e,t){return typeof e=="function"&&e.prototype&&(NX(e.prototype)||t in e.prototype)}function NX(e){let t;for(t in e)if(mD.call(e,t))return!0;return!1}function o3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function s3(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function l3(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sC(e){if(!Tb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function lC(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Hc(e){return OX(e)?e:new hD(e)}function OX(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function DX(e){return typeof e=="string"||fD(e)}const LX={};function MX(e,t){const n=t||LX,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ED(e,r,i)}function ED(e,t,n){if(FX(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return uC(e.children,t,n)}return Array.isArray(e)?uC(e,t,n):""}function uC(e,t,n){const r=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Fi(e,e.length,0,t),e):t}const cC={}.hasOwnProperty;function vD(e){const t={};let n=-1;for(;++no))return;const R=t.events.length;let B=R,W,P;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(W){P=t.events[B][1].end;break}W=!0}for(v(r),k=R;kw;){const D=n[A];t.containerState=D[1],D[0].exit.call(t,e)}n.length=w}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function qX(e,t,n){return Gt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ig(e){if(e===null||hn(e)||hu(e))return 1;if(S2(e))return 2}function w2(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);pC(f,-u),pC(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},s={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=la(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=la(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=la(c,w2(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=la(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,c=la(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Fi(e,r-1,n-r+3,c),n=r+c.length-p-2;break}}for(n=-1;++n0&&Dt(k)?Gt(e,y,"linePrefix",a+1)(k):y(k)}function y(k){return k===null||gt(k)?e.check(hC,b,A)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||gt(k)?(e.exit("codeFlowValue"),y(k)):(e.consume(k),w)}function A(k){return e.exit("codeFenced"),t(k)}function D(k,R,B){let W=0;return P;function P(de){return k.enter("lineEnding"),k.consume(de),k.exit("lineEnding"),Q}function Q(de){return k.enter("codeFencedFence"),Dt(de)?Gt(k,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(de):z(de)}function z(de){return de===s?(k.enter("codeFencedFenceSequence"),le(de)):B(de)}function le(de){return de===s?(W++,k.consume(de),le):W>=o?(k.exit("codeFencedFenceSequence"),Dt(de)?Gt(k,he,"whitespace")(de):he(de)):B(de)}function he(de){return de===null||gt(de)?(k.exit("codeFencedFence"),R(de)):B(de)}}}function aZ(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const u3={name:"codeIndented",tokenize:sZ},oZ={tokenize:lZ,partial:!0};function sZ(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Gt(e,a,"linePrefix",4+1)(c)}function a(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?u(c):gt(c)?e.attempt(oZ,o,u)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||gt(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function u(c){return e.exit("codeIndented"),t(c)}}function lZ(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Gt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):gt(o)?i(o):n(o)}}const uZ={name:"codeText",tokenize:pZ,resolve:cZ,previous:dZ};function cZ(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function wD(e,t,n,r,i,a,o,s,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return f;function f(v){return v===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(v),e.exit(a),m):v===null||v===32||v===41||rg(v)?n(v):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(v))}function m(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===62?(e.exit("chunkString"),e.exit(s),m(v)):v===null||v===60||gt(v)?n(v):(e.consume(v),v===92?E:g)}function E(v){return v===60||v===62||v===92?(e.consume(v),g):g(v)}function b(v){return!p&&(v===null||v===41||hn(v))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(v)):p999||g===null||g===91||g===93&&!u||g===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):gt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||gt(g)||s++>999?(e.exit("chunkString"),p(g)):(e.consume(g),u||(u=!Dt(g)),g===92?m:f)}function m(g){return g===91||g===92||g===93?(e.consume(g),s++,f):f(g)}}function CD(e,t,n,r,i,a){let o;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):n(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),c(m))}function c(m){return m===o?(e.exit(a),u(o)):m===null?n(m):gt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Gt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===o||m===null||gt(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:p)}function f(m){return m===o||m===92?(e.consume(m),p):p(m)}}function Ad(e,t){let n;return r;function r(i){return gt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Dt(i)?Gt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Ha(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vZ={name:"definition",tokenize:_Z},yZ={tokenize:TZ,partial:!0};function _Z(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return AD.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Ha(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):n(g)}function u(g){return hn(g)?Ad(e,c)(g):c(g)}function c(g){return wD(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(yZ,f,f)(g)}function f(g){return Dt(g)?Gt(e,m,"whitespace")(g):m(g)}function m(g){return g===null||gt(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function TZ(e,t,n){return r;function r(s){return hn(s)?Ad(e,i)(s):n(s)}function i(s){return CD(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Dt(s)?Gt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||gt(s)?t(s):n(s)}}const SZ={name:"hardBreakEscape",tokenize:wZ};function wZ(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return gt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const AZ={name:"headingAtx",tokenize:xZ,resolve:CZ};function CZ(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Fi(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function xZ(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),a(p)}function a(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||hn(p)?(e.exit("atxHeadingSequence"),s(p)):n(p)}function s(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||gt(p)?(e.exit("atxHeading"),t(p)):Dt(p)?Gt(e,s,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),s(p))}function c(p){return p===null||p===35||hn(p)?(e.exit("atxHeadingText"),s(p)):(e.consume(p),c)}}const kZ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],mC=["pre","script","style","textarea"],IZ={name:"htmlFlow",tokenize:DZ,resolveTo:OZ,concrete:!0},RZ={tokenize:MZ,partial:!0},NZ={tokenize:LZ,partial:!0};function OZ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function DZ(e,t,n){const r=this;let i,a,o,s,u;return c;function c(O){return p(O)}function p(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),f}function f(O){return O===33?(e.consume(O),m):O===47?(e.consume(O),a=!0,b):O===63?(e.consume(O),i=3,r.interrupt?t:N):Qr(O)?(e.consume(O),o=String.fromCharCode(O),T):n(O)}function m(O){return O===45?(e.consume(O),i=2,g):O===91?(e.consume(O),i=5,s=0,E):Qr(O)?(e.consume(O),i=4,r.interrupt?t:N):n(O)}function g(O){return O===45?(e.consume(O),r.interrupt?t:N):n(O)}function E(O){const re="CDATA[";return O===re.charCodeAt(s++)?(e.consume(O),s===re.length?r.interrupt?t:z:E):n(O)}function b(O){return Qr(O)?(e.consume(O),o=String.fromCharCode(O),T):n(O)}function T(O){if(O===null||O===47||O===62||hn(O)){const re=O===47,Te=o.toLowerCase();return!re&&!a&&mC.includes(Te)?(i=1,r.interrupt?t(O):z(O)):kZ.includes(o.toLowerCase())?(i=6,re?(e.consume(O),v):r.interrupt?t(O):z(O)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(O):a?y(O):w(O))}return O===45||$r(O)?(e.consume(O),o+=String.fromCharCode(O),T):n(O)}function v(O){return O===62?(e.consume(O),r.interrupt?t:z):n(O)}function y(O){return Dt(O)?(e.consume(O),y):P(O)}function w(O){return O===47?(e.consume(O),P):O===58||O===95||Qr(O)?(e.consume(O),A):Dt(O)?(e.consume(O),w):P(O)}function A(O){return O===45||O===46||O===58||O===95||$r(O)?(e.consume(O),A):D(O)}function D(O){return O===61?(e.consume(O),k):Dt(O)?(e.consume(O),D):w(O)}function k(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),u=O,R):Dt(O)?(e.consume(O),k):B(O)}function R(O){return O===u?(e.consume(O),u=null,W):O===null||gt(O)?n(O):(e.consume(O),R)}function B(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||hn(O)?D(O):(e.consume(O),B)}function W(O){return O===47||O===62||Dt(O)?w(O):n(O)}function P(O){return O===62?(e.consume(O),Q):n(O)}function Q(O){return O===null||gt(O)?z(O):Dt(O)?(e.consume(O),Q):n(O)}function z(O){return O===45&&i===2?(e.consume(O),fe):O===60&&i===1?(e.consume(O),Z):O===62&&i===4?(e.consume(O),me):O===63&&i===3?(e.consume(O),N):O===93&&i===5?(e.consume(O),ce):gt(O)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(RZ,oe,le)(O)):O===null||gt(O)?(e.exit("htmlFlowData"),le(O)):(e.consume(O),z)}function le(O){return e.check(NZ,he,oe)(O)}function he(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),de}function de(O){return O===null||gt(O)?le(O):(e.enter("htmlFlowData"),z(O))}function fe(O){return O===45?(e.consume(O),N):z(O)}function Z(O){return O===47?(e.consume(O),o="",V):z(O)}function V(O){if(O===62){const re=o.toLowerCase();return mC.includes(re)?(e.consume(O),me):z(O)}return Qr(O)&&o.length<8?(e.consume(O),o+=String.fromCharCode(O),V):z(O)}function ce(O){return O===93?(e.consume(O),N):z(O)}function N(O){return O===62?(e.consume(O),me):O===45&&i===2?(e.consume(O),N):z(O)}function me(O){return O===null||gt(O)?(e.exit("htmlFlowData"),oe(O)):(e.consume(O),me)}function oe(O){return e.exit("htmlFlow"),t(O)}}function LZ(e,t,n){const r=this;return i;function i(o){return gt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function MZ(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(kp,t,n)}}const FZ={name:"htmlText",tokenize:PZ};function PZ(e,t,n){const r=this;let i,a,o;return s;function s(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),u}function u(N){return N===33?(e.consume(N),c):N===47?(e.consume(N),D):N===63?(e.consume(N),w):Qr(N)?(e.consume(N),B):n(N)}function c(N){return N===45?(e.consume(N),p):N===91?(e.consume(N),a=0,E):Qr(N)?(e.consume(N),y):n(N)}function p(N){return N===45?(e.consume(N),g):n(N)}function f(N){return N===null?n(N):N===45?(e.consume(N),m):gt(N)?(o=f,Z(N)):(e.consume(N),f)}function m(N){return N===45?(e.consume(N),g):f(N)}function g(N){return N===62?fe(N):N===45?m(N):f(N)}function E(N){const me="CDATA[";return N===me.charCodeAt(a++)?(e.consume(N),a===me.length?b:E):n(N)}function b(N){return N===null?n(N):N===93?(e.consume(N),T):gt(N)?(o=b,Z(N)):(e.consume(N),b)}function T(N){return N===93?(e.consume(N),v):b(N)}function v(N){return N===62?fe(N):N===93?(e.consume(N),v):b(N)}function y(N){return N===null||N===62?fe(N):gt(N)?(o=y,Z(N)):(e.consume(N),y)}function w(N){return N===null?n(N):N===63?(e.consume(N),A):gt(N)?(o=w,Z(N)):(e.consume(N),w)}function A(N){return N===62?fe(N):w(N)}function D(N){return Qr(N)?(e.consume(N),k):n(N)}function k(N){return N===45||$r(N)?(e.consume(N),k):R(N)}function R(N){return gt(N)?(o=R,Z(N)):Dt(N)?(e.consume(N),R):fe(N)}function B(N){return N===45||$r(N)?(e.consume(N),B):N===47||N===62||hn(N)?W(N):n(N)}function W(N){return N===47?(e.consume(N),fe):N===58||N===95||Qr(N)?(e.consume(N),P):gt(N)?(o=W,Z(N)):Dt(N)?(e.consume(N),W):fe(N)}function P(N){return N===45||N===46||N===58||N===95||$r(N)?(e.consume(N),P):Q(N)}function Q(N){return N===61?(e.consume(N),z):gt(N)?(o=Q,Z(N)):Dt(N)?(e.consume(N),Q):W(N)}function z(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,le):gt(N)?(o=z,Z(N)):Dt(N)?(e.consume(N),z):(e.consume(N),he)}function le(N){return N===i?(e.consume(N),i=void 0,de):N===null?n(N):gt(N)?(o=le,Z(N)):(e.consume(N),le)}function he(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||hn(N)?W(N):(e.consume(N),he)}function de(N){return N===47||N===62||hn(N)?W(N):n(N)}function fe(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function Z(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),V}function V(N){return Dt(N)?Gt(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):ce(N)}function ce(N){return e.enter("htmlTextData"),o(N)}}const FE={name:"labelEnd",tokenize:jZ,resolveTo:HZ,resolveAll:zZ},BZ={tokenize:GZ},UZ={tokenize:VZ},$Z={tokenize:WZ};function zZ(e){let t=-1;for(;++t=3&&(c===null||gt(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Dt(c)?Gt(e,s,"whitespace")(c):s(c))}}const ui={name:"list",tokenize:tQ,continuation:{tokenize:nQ},exit:iQ},JZ={tokenize:aQ,partial:!0},eQ={tokenize:rQ,partial:!0};function tQ(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(g){const E=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:Sb(g)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(uh,n,c)(g):c(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return n(g)}function u(g){return Sb(g)&&++o<10?(e.consume(g),u):(!r.interrupt||o<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),c(g)):n(g)}function c(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(kp,r.interrupt?n:p,e.attempt(JZ,m,f))}function p(g){return r.containerState.initialBlankLine=!0,a++,m(g)}function f(g){return Dt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function nQ(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(kp,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Gt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!Dt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eQ,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Gt(e,e.attempt(ui,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function rQ(e,t,n){const r=this;return Gt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function iQ(e){e.exit(this.containerState.type)}function aQ(e,t,n){const r=this;return Gt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!Dt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const bC={name:"setextUnderline",tokenize:sQ,resolveTo:oQ};function oQ(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function sQ(e,t,n){const r=this;let i;return a;function a(c){let p=r.events.length,f;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){f=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Dt(c)?Gt(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||gt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const lQ={tokenize:uQ};function uQ(e){const t=this,n=e.attempt(kp,r,e.attempt(this.parser.constructs.flowInitial,i,Gt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(hZ,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const cQ={resolveAll:kD()},dQ=xD("string"),pQ=xD("text");function xD(e){return{tokenize:t,resolveAll:kD(e==="text"?fQ:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(p){return c(p)?a(p):s(p)}function s(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),u}function u(p){return c(p)?(n.exit("data"),a(p)):(n.consume(p),u)}function c(p){if(p===null)return!0;const f=i[p];let m=-1;if(f)for(;++m-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function mQ(e,t){let n=-1;const r=[];let i;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const RQ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function RD(e){return e.replace(RQ,NQ)}function NQ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return ID(n.slice(a?2:1),a?16:10)}return sp(n)||e}const ND={}.hasOwnProperty,OQ=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),DQ(n)(IQ(xQ(n).document().write(kQ()(e,t,!0))))};function DQ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ke),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(pt),blockQuote:s(Xe),characterEscape:Q,characterReference:Q,codeFenced:s(Ve),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(Ve,u),codeText:s(dt,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(ot),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Ge),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(ie,u),htmlFlowData:Q,htmlText:s(ie,u),htmlTextData:Q,image:s(pe),label:u,link:s(ke),listItem:s(Se),listItemValue:E,listOrdered:s(ve,g),listUnordered:s(ve),paragraph:s(Me),reference:Te,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(pt),strong:s(ze),thematicBreak:s(jt)},exit:{atxHeading:p(),atxHeadingSequence:R,autolink:p(),autolinkEmail:Re,autolinkProtocol:Le,blockQuote:p(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:ne,codeFenced:p(y),codeFencedFence:v,codeFencedFenceInfo:b,codeFencedFenceMeta:T,codeFlowValue:z,codeIndented:p(w),codeText:p(Z),codeTextData:z,data:z,definition:p(),definitionDestinationString:k,definitionLabelString:A,definitionTitleString:D,emphasis:p(),hardBreakEscape:p(he),hardBreakTrailing:p(he),htmlFlow:p(de),htmlFlowData:z,htmlText:p(fe),htmlTextData:z,image:p(ce),label:me,labelText:N,lineEnding:le,link:p(V),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:K,resourceDestinationString:oe,resourceTitleString:O,resource:re,setextHeading:p(P),setextHeadingLineSequence:W,setextHeadingText:B,strong:p(),thematicBreak:p()}};OD(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let ye={type:"root",children:[]};const We={stack:[ye],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:m,setData:a,getData:o},at=[];let Qe=-1;for(;++Qe0){const Y=We.tokenStack[We.tokenStack.length-1];(Y[1]||vC).call(We,void 0,Y[0])}for(ye.position={start:As(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:As(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Qe=-1;++Qe{const r=this.data("settings");return OQ(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function FQ(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function PQ(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` +`}]}function BQ(e,t){const n=t.value?t.value+` +`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function UQ(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $Q(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oc(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function DD(e,t){const n=String(t.identifier).toUpperCase(),r=oc(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let a;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=i+1);const o=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function zQ(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},DD(e,{type:"footnoteReference",identifier:i,position:t.position})}function HQ(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jQ(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function LD(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function GQ(e,t){const n=e.definition(t.identifier);if(!n)return LD(e,t);const r={src:oc(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function VQ(e,t){const n={src:oc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function WQ(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function qQ(e,t){const n=e.definition(t.identifier);if(!n)return LD(e,t);const r={href:oc(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function KQ(e,t){const n={href:oc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function YQ(e,t,n){const r=e.all(t),i=n?XQ(n):MD(t),a={},o=[];if(typeof t.checked=="boolean"){const p=r[0];let f;p&&p.type==="element"&&p.tagName==="p"?f=p:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function ZQ(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i-1?r.offset:null}}}function nJ(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Ip(t.children[1]),u=A2(t.children[t.children.length-1]);s.line&&u.line&&(o.position={start:s,end:u}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function rJ(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let u=-1;const c=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(TC(t.slice(i),i>0,!1)),a.join("")}function TC(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===yC||a===_C;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===yC||a===_C;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function oJ(e,t){const n={type:"text",value:aJ(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function sJ(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const lJ={blockquote:FQ,break:PQ,code:BQ,delete:UQ,emphasis:$Q,footnoteReference:DD,footnote:zQ,heading:HQ,html:jQ,imageReference:GQ,image:VQ,inlineCode:WQ,linkReference:qQ,link:KQ,listItem:YQ,list:ZQ,paragraph:QQ,root:JQ,strong:eJ,table:nJ,tableCell:iJ,tableRow:rJ,text:oJ,thematicBreak:sJ,toml:d0,yaml:d0,definition:d0,footnoteDefinition:d0};function d0(){return null}const C2=function(e){if(e==null)return pJ;if(typeof e=="string")return dJ(e);if(typeof e=="object")return Array.isArray(e)?uJ(e):cJ(e);if(typeof e=="function")return x2(e);throw new Error("Expected function, string, or object as test")};function uJ(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let m=[],g,E,b;if((!t||i(s,u,c[c.length-1]||null))&&(m=hJ(n(s,c)),m[0]===Ab))return m;if(s.children&&m[0]!==Cd)for(E=(r?s.children.length:-1)+a,b=c.concat(s);E>-1&&E{const i=wC(r.identifier);i&&!SC.call(t,i)&&(t[i]=r)}),n;function n(r){const i=wC(r);return i&&SC.call(t,i)?t[i]:null}}function wC(e){return String(e||"").toUpperCase()}const ag={}.hasOwnProperty;function bJ(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteLabelTagName=n.footnoteLabelTagName||"h2",o.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,o.handlers={...lJ,...n.handlers},o.definition=mJ(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=EJ,o.applyData=vJ,o.one=s,o.all=u,o.wrap=_J,o.augment=a,Ui(e,"footnoteDefinition",c=>{const p=String(c.identifier).toUpperCase();ag.call(i,p)||(i[p]=c)}),o;function a(c,p){if(c&&"data"in c&&c.data){const f=c.data;f.hName&&(p.type!=="element"&&(p={type:"element",tagName:"",properties:{},children:[]}),p.tagName=f.hName),p.type==="element"&&f.hProperties&&(p.properties={...p.properties,...f.hProperties}),"children"in p&&p.children&&f.hChildren&&(p.children=f.hChildren)}if(c){const f="type"in c?c:{position:c};gJ(f)||(p.position={start:Ip(f),end:A2(f)})}return p}function o(c,p,f,m){return Array.isArray(f)&&(m=f,f={}),a(c,{type:"element",tagName:p,properties:f||{},children:m||[]})}function s(c,p){return BD(o,c,p)}function u(c){return PE(o,c)}}function EJ(e,t){e.position&&(t.position=tJ(e))}function vJ(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&a&&(n.properties={...n.properties,...a}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function BD(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return ag.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:PE(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):yJ(e,t)}function PE(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i0&&n.push({type:"text",value:` +`}),n}function TJ(e){const t=[];let n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&f.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(f)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const f=c.children[c.children.length-1];f&&f.type==="text"?f.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);const p={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,p),t.push(p)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:` +`}]}}function UD(e,t){const n=bJ(e,t),r=n.one(e,null),i=TJ(n);return i&&r.children.push({type:"text",value:` +`},i),Array.isArray(r)?{type:"root",children:r}:r}const SJ=function(e,t){return e&&"run"in e?AJ(e,t):CJ(e||t)},wJ=SJ;function AJ(e,t){return(n,r,i)=>{e.run(UD(n,t),r,a=>{i(a)})}}function CJ(e){return t=>UD(t,e)}var $D={exports:{}},xJ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kJ=xJ,IJ=kJ;function zD(){}function HD(){}HD.resetWarningCache=zD;var RJ=function(){function e(r,i,a,o,s,u){if(u!==IJ){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:HD,resetWarningCache:zD};return n.PropTypes=n,n};$D.exports=RJ();var NJ=$D.exports;const Ee=Hi(NJ);class Rp{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Rp.prototype.property={};Rp.prototype.normal={};Rp.prototype.space=null;function jD(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&FJ.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(CC,UJ);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!CC.test(a)){let o=a.replace(PJ,BJ);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=BE}return new i(r,t)}function BJ(e){return"-"+e.toLowerCase()}function UJ(e){return e.charAt(1).toUpperCase()}const xC={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Tu=jD([WD,VD,YD,XD,LJ],"html"),yl=jD([WD,VD,YD,XD,MJ],"svg");function $J(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Ui(t,"element",(n,r,i)=>{const a=i;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(n,r,a)),o&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}function ZD(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function og(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function UE(e){return e.join(" ").trim()}function lp(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function $E(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var zE={exports:{}},kC=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zJ=/\n/g,HJ=/^\s*/,jJ=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,GJ=/^:\s*/,VJ=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,WJ=/^[;\s]*/,qJ=/^\s+|\s+$/g,KJ=` +`,IC="/",RC="*",Kl="",YJ="comment",XJ="declaration",ZJ=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(E){var b=E.match(zJ);b&&(n+=b.length);var T=E.lastIndexOf(KJ);r=~T?E.length-T:r+E.length}function a(){var E={line:n,column:r};return function(b){return b.position=new o(E),c(),b}}function o(E){this.start=E,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(E){var b=new Error(t.source+":"+n+":"+r+": "+E);if(b.reason=E,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function u(E){var b=E.exec(e);if(b){var T=b[0];return i(T),e=e.slice(T.length),b}}function c(){u(HJ)}function p(E){var b;for(E=E||[];b=f();)b!==!1&&E.push(b);return E}function f(){var E=a();if(!(IC!=e.charAt(0)||RC!=e.charAt(1))){for(var b=2;Kl!=e.charAt(b)&&(RC!=e.charAt(b)||IC!=e.charAt(b+1));)++b;if(b+=2,Kl===e.charAt(b-1))return s("End of comment missing");var T=e.slice(2,b-2);return r+=2,i(T),e=e.slice(b),r+=2,E({type:YJ,comment:T})}}function m(){var E=a(),b=u(jJ);if(b){if(f(),!u(GJ))return s("property missing ':'");var T=u(VJ),v=E({type:XJ,property:NC(b[0].replace(kC,Kl)),value:T?NC(T[0].replace(kC,Kl)):Kl});return u(WJ),v}}function g(){var E=[];p(E);for(var b;b=m();)b!==!1&&(E.push(b),p(E));return E}return c(),g()};function NC(e){return e?e.replace(qJ,Kl):Kl}var QJ=ZJ;function QD(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=QJ(e),a=typeof t=="function",o,s,u=0,c=i.length;u0?ut.createElement(g,u,f):ut.createElement(g,u)}function ree(e){let t=-1;for(;++t for more info)`),delete p0[a]}const t=RX().use(MQ).use(e.remarkPlugins||[]).use(wJ,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use($J,e),n=new hD;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=ut.createElement(ut.Fragment,{},JD({options:e,schema:Tu,listDepth:0},r));return e.className&&(i=ut.createElement("div",{className:e.className},i)),i}HE.propTypes={children:Ee.string,className:Ee.string,allowElement:Ee.func,allowedElements:Ee.arrayOf(Ee.string),disallowedElements:Ee.arrayOf(Ee.string),unwrapDisallowed:Ee.bool,remarkPlugins:Ee.arrayOf(Ee.oneOfType([Ee.object,Ee.func,Ee.arrayOf(Ee.oneOfType([Ee.bool,Ee.string,Ee.object,Ee.func,Ee.arrayOf(Ee.any)]))])),rehypePlugins:Ee.arrayOf(Ee.oneOfType([Ee.object,Ee.func,Ee.arrayOf(Ee.oneOfType([Ee.bool,Ee.string,Ee.object,Ee.func,Ee.arrayOf(Ee.any)]))])),sourcePos:Ee.bool,rawSourcePos:Ee.bool,skipHtml:Ee.bool,includeElementIndex:Ee.bool,transformLinkUri:Ee.oneOfType([Ee.func,Ee.bool]),linkTarget:Ee.oneOfType([Ee.func,Ee.string]),transformImageUri:Ee.func,components:Ee.object};const uee={tokenize:gee,partial:!0},eL={tokenize:mee,partial:!0},tL={tokenize:bee,partial:!0},nL={tokenize:Eee,partial:!0},cee={tokenize:vee,partial:!0},rL={tokenize:fee,previous:aL},iL={tokenize:hee,previous:oL},ss={tokenize:pee,previous:sL},_o={},dee={text:_o};let Ml=48;for(;Ml<123;)_o[Ml]=ss,Ml++,Ml===58?Ml=65:Ml===91&&(Ml=97);_o[43]=ss;_o[45]=ss;_o[46]=ss;_o[95]=ss;_o[72]=[ss,iL];_o[104]=[ss,iL];_o[87]=[ss,rL];_o[119]=[ss,rL];function pee(e,t,n){const r=this;let i,a;return o;function o(f){return!kb(f)||!sL.call(r,r.previous)||jE(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return kb(f)?(e.consume(f),s):f===64?(e.consume(f),u):n(f)}function u(f){return f===46?e.check(cee,p,c)(f):f===45||f===95||$r(f)?(a=!0,e.consume(f),u):p(f)}function c(f){return e.consume(f),i=!0,u}function p(f){return a&&i&&Qr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function fee(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!aL.call(r,r.previous)||jE(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(uee,e.attempt(eL,e.attempt(tL,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function hee(e,t,n){const r=this;let i="",a=!1;return o;function o(f){return(f===72||f===104)&&oL.call(r,r.previous)&&!jE(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(Qr(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return n(f)}function u(f){return f===47?(e.consume(f),a?c:(a=!0,u)):n(f)}function c(f){return f===null||rg(f)||hn(f)||hu(f)||S2(f)?n(f):e.attempt(eL,e.attempt(tL,p),n)(f)}function p(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function gee(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function mee(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(nL,u,s)(c):c===null||hn(c)||hu(c)||c!==45&&S2(c)?u(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function u(c){return i||r||!a?n(c):t(c)}}function bee(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const yee={tokenize:kee,partial:!0};function _ee(){return{document:{91:{tokenize:Aee,continuation:{tokenize:Cee},exit:xee}},text:{91:{tokenize:wee},93:{add:"after",tokenize:Tee,resolveTo:See}}}}function Tee(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){o=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return s;function s(u){if(!o||!o._balanced)return n(u);const c=Ha(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function See(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function wee(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(a>999||f===93&&!o||f===null||f===91||hn(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Ha(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return hn(f)||(o=!0),a++,e.consume(f),f===92?p:c}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function Aee(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return u;function u(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(E)}function p(E){if(o>999||E===93&&!s||E===null||E===91||hn(E))return n(E);if(E===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Ha(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return hn(E)||(s=!0),o++,e.consume(E),E===92?f:p}function f(E){return E===91||E===92||E===93?(e.consume(E),o++,p):p(E)}function m(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),i.includes(a)||i.push(a),Gt(e,g,"gfmFootnoteDefinitionWhitespace")):n(E)}function g(E){return t(E)}}function Cee(e,t,n){return e.check(kp,t,e.attempt(yee,t,n))}function xee(e){e.exit("gfmFootnoteDefinition")}function kee(e,t,n){const r=this;return Gt(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function Iee(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let u=-1;for(;++u1?u(E):(o.consume(E),f++,g);if(f<2&&!n)return u(E);const T=o.exit("strikethroughSequenceTemporary"),v=ig(E);return T._open=!v||v===2&&!!b,T._close=!b||b===2&&!!v,s(E)}}}class Ree{constructor(){this.map=[]}add(t,n,r){Nee(this,t,n,r)}consume(t){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Nee(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const he=r.events[Q][1].type;if(he==="lineEnding"||he==="linePrefix")Q--;else break}const z=Q>-1?r.events[Q][1].type:null,le=z==="tableHead"||z==="tableRow"?k:u;return le===k&&r.parser.lazy[r.now().line]?n(P):le(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),p(P)}function p(P){return P===null?n(P):gt(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):n(P):Dt(P)?Gt(e,p,"whitespace")(P):(a+=1,o&&(o=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),f(P)))}function f(P){return P===null||P===124||hn(P)?(e.exit("data"),p(P)):(e.consume(P),P===92?m:f)}function m(P){return P===92||P===124?(e.consume(P),f):f(P)}function g(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),o=!1,Dt(P)?Gt(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):E(P))}function E(P){return P===45||P===58?T(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),b):D(P)}function b(P){return Dt(P)?Gt(e,T,"whitespace")(P):T(P)}function T(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),v):P===45?(a+=1,v(P)):P===null||gt(P)?A(P):D(P)}function v(P){return P===45?(e.enter("tableDelimiterFiller"),y(P)):D(P)}function y(P){return P===45?(e.consume(P),y):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(P))}function w(P){return Dt(P)?Gt(e,A,"whitespace")(P):A(P)}function A(P){return P===124?E(P):P===null||gt(P)?!o||i!==a?D(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):D(P)}function D(P){return n(P)}function k(P){return e.enter("tableRow"),R(P)}function R(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),R):P===null||gt(P)?(e.exit("tableRow"),t(P)):Dt(P)?Gt(e,R,"whitespace")(P):(e.enter("data"),B(P))}function B(P){return P===null||P===124||hn(P)?(e.exit("data"),R(P)):(e.consume(P),P===92?W:B)}function W(P){return P===92||P===124?(e.consume(P),B):B(P)}}function Mee(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,u=0,c,p,f;const m=new Ree;for(;++nn[2]+1){const E=n[2]+1,b=n[3]-n[2]-1;e.add(E,b,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},e1(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function DC(e,t,n,r,i){const a=[],o=e1(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function e1(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Fee={tokenize:Bee},Pee={text:{91:Fee}};function Bee(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return hn(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):n(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(u)}function s(u){return gt(u)?t(u):Dt(u)?e.check({tokenize:Uee},t,n)(u):n(u)}}function Uee(e,t,n){return Gt(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function $ee(e){return vD([dee,_ee(),Iee(e),Dee,Pee])}function LC(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function zee(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Hee={}.hasOwnProperty,jee=function(e,t,n,r){let i,a;typeof t=="string"||t instanceof RegExp?(a=[[t,n]],i=r):(a=t,i=n),i||(i={});const o=C2(i.ignore||[]),s=Gee(a);let u=-1;for(;++u0?{type:"text",value:R}:void 0),R!==!1&&(T!==D&&w.push({type:"text",value:f.value.slice(T,D)}),Array.isArray(R)?w.push(...R):R&&w.push(R),T=D+A[0].length,y=!0),!E.global)break;A=E.exec(f.value)}return y?(Te}const f3="phrasing",h3=["autolink","link","image","label"],Vee={transforms:[Qee],enter:{literalAutolink:qee,literalAutolinkEmail:g3,literalAutolinkHttp:g3,literalAutolinkWww:g3},exit:{literalAutolink:Zee,literalAutolinkEmail:Xee,literalAutolinkHttp:Kee,literalAutolinkWww:Yee}},Wee={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:f3,notInConstruct:h3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:f3,notInConstruct:h3},{character:":",before:"[ps]",after:"\\/",inConstruct:f3,notInConstruct:h3}]};function qee(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function g3(e){this.config.enter.autolinkProtocol.call(this,e)}function Kee(e){this.config.exit.autolinkProtocol.call(this,e)}function Yee(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function Xee(e){this.config.exit.autolinkEmail.call(this,e)}function Zee(e){this.exit(e)}function Qee(e){jee(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Jee],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ete]],{ignore:["link","linkReference"]})}function Jee(e,t,n,r,i){let a="";if(!lL(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!tte(n)))return!1;const o=nte(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function ete(e,t,n,r){return!lL(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function tte(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function nte(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=LC(e,"(");let a=LC(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function lL(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||hu(n)||S2(n))&&(!t||n!==47)}function uL(e){return e.label||!e.identifier?e.label||"":RD(e.identifier)}function rte(e,t,n){const r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[];let s=-1;for(r.push(-1);++s + +`}return` + +`}const ate=/\r?\n|\r/g;function ote(e,t){const n=[];let r=0,i=0,a;for(;a=ate.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join("");function o(s){n.push(t(s,i,!s))}}function cL(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function ste(e,t){return PC(e,t.inConstruct,!0)&&!PC(e,t.notInConstruct,!1)}function PC(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r=c||p+10?" ":"")),i.shift(4),a+=i.move(ote(rte(e,n,i.current()),_te)),o(),a}function _te(e,t,n){return t===0?e:(n?"":" ")+e}function fL(e,t,n){const r=t.indexStack,i=e.children||[],a=[];let o=-1,s=n.before;r.push(-1);let u=t.createTracker(n);for(;++o0&&(s==="\r"||s===` +`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",u=t.createTracker(n),u.move(a.join(""))),a.push(u.move(t.handle(c,e,t,{...u.current(),before:s,after:p}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}const Tte=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];hL.peek=xte;const Ste={canContainEols:["delete"],enter:{strikethrough:Ate},exit:{strikethrough:Cte}},wte={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Tte}],handlers:{delete:hL}};function Ate(e){this.enter({type:"delete",children:[]},e)}function Cte(e){this.exit(e)}function hL(e,t,n,r){const i=k2(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=fL(e,n,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function xte(){return"~"}gL.peek=kte;function gL(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++au&&(u=e[c].length);++Ts[T])&&(s[T]=y)}E.push(v)}a[c]=E,o[c]=b}let p=-1;if(typeof n=="object"&&"length"in n)for(;++ps[p]&&(s[p]=v),m[p]=v),f[p]=y}a.splice(1,0,f),o.splice(1,0,m),c=-1;const g=[];for(;++cn==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Lte(e){this.exit(e),this.setData("inTable")}function Mte(e){this.enter({type:"tableRow",children:[]},e)}function m3(e){this.exit(e)}function $C(e){this.enter({type:"tableCell",children:[]},e)}function Fte(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Pte));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function Pte(e,t){return t==="|"?t:e}function Bte(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:o,tableRow:s,tableCell:u,inlineCode:m}};function o(g,E,b,T){return c(p(g,b,T),g.align)}function s(g,E,b,T){const v=f(g,b,T),y=c([v]);return y.slice(0,y.indexOf(` +`))}function u(g,E,b,T){const v=b.enter("tableCell"),y=b.enter("phrasing"),w=fL(g,b,{...T,before:a,after:a});return y(),v(),w}function c(g,E){return Ite(g,{align:E,alignDelimiters:r,padding:n,stringLength:i})}function p(g,E,b){const T=g.children;let v=-1;const y=[],w=E.enter("table");for(;++v-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),p);return u(),c;function p(f,m,g){return m?(g?"":" ".repeat(o))+f:(g?a:a+" ".repeat(o-a.length))+f}}const Hte={exit:{taskListCheckValueChecked:zC,taskListCheckValueUnchecked:zC,paragraph:Gte}},jte={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Vte}};function zC(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Gte(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a=55296&&e<=57343};Va.isSurrogatePair=function(e){return e>=56320&&e<=57343};Va.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};Va.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};Va.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||Yte.indexOf(e)>-1};var GE={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const t1=Va,b3=GE,Fl=t1.CODE_POINTS,Xte=65536;let Zte=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Xte}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(t1.isSurrogatePair(n))return this.pos++,this._addGap(),t1.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Fl.EOF;return this._err(b3.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Fl.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Fl.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Fl.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Fl.LINE_FEED):(this.skipNextNewLine=!1,t1.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Fl.LINE_FEED||t===Fl.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){t1.isControlCodePoint(t)?this._err(b3.controlCharacterInInputStream):t1.isUndefinedCodePoint(t)&&this._err(b3.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var Qte=Zte,Jte=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const ene=Qte,un=Va,Jl=Jte,Ae=GE,G=un.CODE_POINTS,Pl=un.CODE_POINT_SEQUENCES,tne={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},mL=1,bL=2,EL=4,nne=mL|bL|EL,Ot="DATA_STATE",n1="RCDATA_STATE",cd="RAWTEXT_STATE",Ho="SCRIPT_DATA_STATE",vL="PLAINTEXT_STATE",HC="TAG_OPEN_STATE",jC="END_TAG_OPEN_STATE",E3="TAG_NAME_STATE",GC="RCDATA_LESS_THAN_SIGN_STATE",VC="RCDATA_END_TAG_OPEN_STATE",WC="RCDATA_END_TAG_NAME_STATE",qC="RAWTEXT_LESS_THAN_SIGN_STATE",KC="RAWTEXT_END_TAG_OPEN_STATE",YC="RAWTEXT_END_TAG_NAME_STATE",XC="SCRIPT_DATA_LESS_THAN_SIGN_STATE",ZC="SCRIPT_DATA_END_TAG_OPEN_STATE",QC="SCRIPT_DATA_END_TAG_NAME_STATE",JC="SCRIPT_DATA_ESCAPE_START_STATE",ex="SCRIPT_DATA_ESCAPE_START_DASH_STATE",ka="SCRIPT_DATA_ESCAPED_STATE",tx="SCRIPT_DATA_ESCAPED_DASH_STATE",v3="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",h0="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",nx="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",rx="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",ix="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Lo="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ax="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",ox="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",g0="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",sx="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",to="BEFORE_ATTRIBUTE_NAME_STATE",m0="ATTRIBUTE_NAME_STATE",y3="AFTER_ATTRIBUTE_NAME_STATE",_3="BEFORE_ATTRIBUTE_VALUE_STATE",b0="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",E0="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",v0="ATTRIBUTE_VALUE_UNQUOTED_STATE",T3="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Cs="SELF_CLOSING_START_TAG_STATE",jc="BOGUS_COMMENT_STATE",lx="MARKUP_DECLARATION_OPEN_STATE",ux="COMMENT_START_STATE",cx="COMMENT_START_DASH_STATE",xs="COMMENT_STATE",dx="COMMENT_LESS_THAN_SIGN_STATE",px="COMMENT_LESS_THAN_SIGN_BANG_STATE",fx="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",hx="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",y0="COMMENT_END_DASH_STATE",_0="COMMENT_END_STATE",gx="COMMENT_END_BANG_STATE",mx="DOCTYPE_STATE",T0="BEFORE_DOCTYPE_NAME_STATE",S0="DOCTYPE_NAME_STATE",bx="AFTER_DOCTYPE_NAME_STATE",Ex="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",vx="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",S3="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",w3="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",A3="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",yx="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",_x="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Tx="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Gc="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Vc="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",C3="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Mo="BOGUS_DOCTYPE_STATE",w0="CDATA_SECTION_STATE",Sx="CDATA_SECTION_BRACKET_STATE",wx="CDATA_SECTION_END_STATE",Wu="CHARACTER_REFERENCE_STATE",Ax="NAMED_CHARACTER_REFERENCE_STATE",Cx="AMBIGUOS_AMPERSAND_STATE",xx="NUMERIC_CHARACTER_REFERENCE_STATE",kx="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Ix="DECIMAL_CHARACTER_REFERENCE_START_STATE",Rx="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Nx="DECIMAL_CHARACTER_REFERENCE_STATE",Wc="NUMERIC_CHARACTER_REFERENCE_END_STATE";function vn(e){return e===G.SPACE||e===G.LINE_FEED||e===G.TABULATION||e===G.FORM_FEED}function xd(e){return e>=G.DIGIT_0&&e<=G.DIGIT_9}function Na(e){return e>=G.LATIN_CAPITAL_A&&e<=G.LATIN_CAPITAL_Z}function Gl(e){return e>=G.LATIN_SMALL_A&&e<=G.LATIN_SMALL_Z}function Ns(e){return Gl(e)||Na(e)}function x3(e){return Ns(e)||xd(e)}function yL(e){return e>=G.LATIN_CAPITAL_A&&e<=G.LATIN_CAPITAL_F}function _L(e){return e>=G.LATIN_SMALL_A&&e<=G.LATIN_SMALL_F}function rne(e){return xd(e)||yL(e)||_L(e)}function ch(e){return e+32}function Mn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function ks(e){return String.fromCharCode(ch(e))}function Ox(e,t){const n=Jl[++e];let r=++e,i=r+n-1;for(;r<=i;){const a=r+i>>>1,o=Jl[a];if(ot)i=a-1;else return Jl[a+n]}return-1}let _a=class ci{constructor(){this.preprocessor=new ene,this.tokenQueue=[],this.allowCDATA=!1,this.state=Ot,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:ci.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,a=!0;const o=t.length;let s=0,u=n,c;for(;s0&&(u=this._consume(),i++),u===G.EOF){a=!1;break}if(c=t[s],u!==c&&(r||u!==ch(c))){a=!1;break}}if(!a)for(;i--;)this._unconsume();return a}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Pl.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err(Ae.endTagWithAttributes),t.selfClosing&&this._err(Ae.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=ci.CHARACTER_TOKEN;vn(t)?n=ci.WHITESPACE_CHARACTER_TOKEN:t===G.NULL&&(n=ci.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Mn(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const a=Jl[i],o=a")):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=ka,this._emitChars(un.REPLACEMENT_CHARACTER)):t===G.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ka,this._emitCodePoint(t))}[h0](t){t===G.SOLIDUS?(this.tempBuff=[],this.state=nx):Ns(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(ix)):(this._emitChars("<"),this._reconsumeInState(ka))}[nx](t){Ns(t)?(this._createEndTagToken(),this._reconsumeInState(rx)):(this._emitChars("")):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.state=Lo,this._emitChars(un.REPLACEMENT_CHARACTER)):t===G.EOF?(this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Lo,this._emitCodePoint(t))}[g0](t){t===G.SOLIDUS?(this.tempBuff=[],this.state=sx,this._emitChars("/")):this._reconsumeInState(Lo)}[sx](t){vn(t)||t===G.SOLIDUS||t===G.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ka:Lo,this._emitCodePoint(t)):Na(t)?(this.tempBuff.push(ch(t)),this._emitCodePoint(t)):Gl(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Lo)}[to](t){vn(t)||(t===G.SOLIDUS||t===G.GREATER_THAN_SIGN||t===G.EOF?this._reconsumeInState(y3):t===G.EQUALS_SIGN?(this._err(Ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=m0):(this._createAttr(""),this._reconsumeInState(m0)))}[m0](t){vn(t)||t===G.SOLIDUS||t===G.GREATER_THAN_SIGN||t===G.EOF?(this._leaveAttrName(y3),this._unconsume()):t===G.EQUALS_SIGN?this._leaveAttrName(_3):Na(t)?this.currentAttr.name+=ks(t):t===G.QUOTATION_MARK||t===G.APOSTROPHE||t===G.LESS_THAN_SIGN?(this._err(Ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=Mn(t)):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.name+=un.REPLACEMENT_CHARACTER):this.currentAttr.name+=Mn(t)}[y3](t){vn(t)||(t===G.SOLIDUS?this.state=Cs:t===G.EQUALS_SIGN?this.state=_3:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(m0)))}[_3](t){vn(t)||(t===G.QUOTATION_MARK?this.state=b0:t===G.APOSTROPHE?this.state=E0:t===G.GREATER_THAN_SIGN?(this._err(Ae.missingAttributeValue),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(v0))}[b0](t){t===G.QUOTATION_MARK?this.state=T3:t===G.AMPERSAND?(this.returnState=b0,this.state=Wu):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[E0](t){t===G.APOSTROPHE?this.state=T3:t===G.AMPERSAND?(this.returnState=E0,this.state=Wu):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[v0](t){vn(t)?this._leaveAttrValue(to):t===G.AMPERSAND?(this.returnState=v0,this.state=Wu):t===G.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentAttr.value+=un.REPLACEMENT_CHARACTER):t===G.QUOTATION_MARK||t===G.APOSTROPHE||t===G.LESS_THAN_SIGN||t===G.EQUALS_SIGN||t===G.GRAVE_ACCENT?(this._err(Ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Mn(t)):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Mn(t)}[T3](t){vn(t)?this._leaveAttrValue(to):t===G.SOLIDUS?this._leaveAttrValue(Cs):t===G.GREATER_THAN_SIGN?(this._leaveAttrValue(Ot),this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBetweenAttributes),this._reconsumeInState(to))}[Cs](t){t===G.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInTag),this._emitEOFToken()):(this._err(Ae.unexpectedSolidusInTag),this._reconsumeInState(to))}[jc](t){t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=un.REPLACEMENT_CHARACTER):this.currentToken.data+=Mn(t)}[lx](t){this._consumeSequenceIfMatch(Pl.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=ux):this._consumeSequenceIfMatch(Pl.DOCTYPE_STRING,t,!1)?this.state=mx:this._consumeSequenceIfMatch(Pl.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=w0:(this._err(Ae.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=jc):this._ensureHibernation()||(this._err(Ae.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(jc))}[ux](t){t===G.HYPHEN_MINUS?this.state=cx:t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):this._reconsumeInState(xs)}[cx](t){t===G.HYPHEN_MINUS?this.state=_0:t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptClosingOfEmptyComment),this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(xs))}[xs](t){t===G.HYPHEN_MINUS?this.state=y0:t===G.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=dx):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.data+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Mn(t)}[dx](t){t===G.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=px):t===G.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(xs)}[px](t){t===G.HYPHEN_MINUS?this.state=fx:this._reconsumeInState(xs)}[fx](t){t===G.HYPHEN_MINUS?this.state=hx:this._reconsumeInState(y0)}[hx](t){t!==G.GREATER_THAN_SIGN&&t!==G.EOF&&this._err(Ae.nestedComment),this._reconsumeInState(_0)}[y0](t){t===G.HYPHEN_MINUS?this.state=_0:t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(xs))}[_0](t){t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EXCLAMATION_MARK?this.state=gx:t===G.HYPHEN_MINUS?this.currentToken.data+="-":t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(xs))}[gx](t){t===G.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=y0):t===G.GREATER_THAN_SIGN?(this._err(Ae.incorrectlyClosedComment),this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(xs))}[mx](t){vn(t)?this.state=T0:t===G.GREATER_THAN_SIGN?this._reconsumeInState(T0):t===G.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(T0))}[T0](t){vn(t)||(Na(t)?(this._createDoctypeToken(ks(t)),this.state=S0):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this._createDoctypeToken(un.REPLACEMENT_CHARACTER),this.state=S0):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Mn(t)),this.state=S0))}[S0](t){vn(t)?this.state=bx:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):Na(t)?this.currentToken.name+=ks(t):t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.name+=un.REPLACEMENT_CHARACTER):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Mn(t)}[bx](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Pl.PUBLIC_STRING,t,!1)?this.state=Ex:this._consumeSequenceIfMatch(Pl.SYSTEM_STRING,t,!1)?this.state=_x:this._ensureHibernation()||(this._err(Ae.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[Ex](t){vn(t)?this.state=vx:t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=S3):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=w3):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[vx](t){vn(t)||(t===G.QUOTATION_MARK?(this.currentToken.publicId="",this.state=S3):t===G.APOSTROPHE?(this.currentToken.publicId="",this.state=w3):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[S3](t){t===G.QUOTATION_MARK?this.state=A3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Mn(t)}[w3](t){t===G.APOSTROPHE?this.state=A3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.publicId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Mn(t)}[A3](t){vn(t)?this.state=yx:t===G.GREATER_THAN_SIGN?(this.state=Ot,this._emitCurrentToken()):t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Vc):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[yx](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this.currentToken.systemId="",this.state=Vc):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[_x](t){vn(t)?this.state=Tx:t===G.QUOTATION_MARK?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this._err(Ae.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Vc):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo))}[Tx](t){vn(t)||(t===G.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Gc):t===G.APOSTROPHE?(this.currentToken.systemId="",this.state=Vc):t===G.GREATER_THAN_SIGN?(this._err(Ae.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Ot,this._emitCurrentToken()):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Mo)))}[Gc](t){t===G.QUOTATION_MARK?this.state=C3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Mn(t)}[Vc](t){t===G.APOSTROPHE?this.state=C3:t===G.NULL?(this._err(Ae.unexpectedNullCharacter),this.currentToken.systemId+=un.REPLACEMENT_CHARACTER):t===G.GREATER_THAN_SIGN?(this._err(Ae.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Mn(t)}[C3](t){vn(t)||(t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.EOF?(this._err(Ae.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Mo)))}[Mo](t){t===G.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Ot):t===G.NULL?this._err(Ae.unexpectedNullCharacter):t===G.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[w0](t){t===G.RIGHT_SQUARE_BRACKET?this.state=Sx:t===G.EOF?(this._err(Ae.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Sx](t){t===G.RIGHT_SQUARE_BRACKET?this.state=wx:(this._emitChars("]"),this._reconsumeInState(w0))}[wx](t){t===G.GREATER_THAN_SIGN?this.state=Ot:t===G.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(w0))}[Wu](t){this.tempBuff=[G.AMPERSAND],t===G.NUMBER_SIGN?(this.tempBuff.push(t),this.state=xx):x3(t)?this._reconsumeInState(Ax):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ax](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[G.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===G.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(Ae.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Cx}[Cx](t){x3(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Mn(t):this._emitCodePoint(t):(t===G.SEMICOLON&&this._err(Ae.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[xx](t){this.charRefCode=0,t===G.LATIN_SMALL_X||t===G.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=kx):this._reconsumeInState(Ix)}[kx](t){rne(t)?this._reconsumeInState(Rx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ix](t){xd(t)?this._reconsumeInState(Nx):(this._err(Ae.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Rx](t){yL(t)?this.charRefCode=this.charRefCode*16+t-55:_L(t)?this.charRefCode=this.charRefCode*16+t-87:xd(t)?this.charRefCode=this.charRefCode*16+t-48:t===G.SEMICOLON?this.state=Wc:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(Wc))}[Nx](t){xd(t)?this.charRefCode=this.charRefCode*10+t-48:t===G.SEMICOLON?this.state=Wc:(this._err(Ae.missingSemicolonAfterCharacterReference),this._reconsumeInState(Wc))}[Wc](){if(this.charRefCode===G.NULL)this._err(Ae.nullCharacterReference),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ae.characterReferenceOutsideUnicodeRange),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(un.isSurrogate(this.charRefCode))this._err(Ae.surrogateCharacterReference),this.charRefCode=G.REPLACEMENT_CHARACTER;else if(un.isUndefinedCodePoint(this.charRefCode))this._err(Ae.noncharacterCharacterReference);else if(un.isControlCodePoint(this.charRefCode)||this.charRefCode===G.CARRIAGE_RETURN){this._err(Ae.controlCharacterReference);const t=tne[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};_a.CHARACTER_TOKEN="CHARACTER_TOKEN";_a.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";_a.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";_a.START_TAG_TOKEN="START_TAG_TOKEN";_a.END_TAG_TOKEN="END_TAG_TOKEN";_a.COMMENT_TOKEN="COMMENT_TOKEN";_a.DOCTYPE_TOKEN="DOCTYPE_TOKEN";_a.EOF_TOKEN="EOF_TOKEN";_a.HIBERNATION_TOKEN="HIBERNATION_TOKEN";_a.MODE={DATA:Ot,RCDATA:n1,RAWTEXT:cd,SCRIPT_DATA:Ho,PLAINTEXT:vL};_a.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var I2=_a,Wa={};const k3=Wa.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};Wa.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Wa.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const $e=Wa.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};Wa.SPECIAL_ELEMENTS={[k3.HTML]:{[$e.ADDRESS]:!0,[$e.APPLET]:!0,[$e.AREA]:!0,[$e.ARTICLE]:!0,[$e.ASIDE]:!0,[$e.BASE]:!0,[$e.BASEFONT]:!0,[$e.BGSOUND]:!0,[$e.BLOCKQUOTE]:!0,[$e.BODY]:!0,[$e.BR]:!0,[$e.BUTTON]:!0,[$e.CAPTION]:!0,[$e.CENTER]:!0,[$e.COL]:!0,[$e.COLGROUP]:!0,[$e.DD]:!0,[$e.DETAILS]:!0,[$e.DIR]:!0,[$e.DIV]:!0,[$e.DL]:!0,[$e.DT]:!0,[$e.EMBED]:!0,[$e.FIELDSET]:!0,[$e.FIGCAPTION]:!0,[$e.FIGURE]:!0,[$e.FOOTER]:!0,[$e.FORM]:!0,[$e.FRAME]:!0,[$e.FRAMESET]:!0,[$e.H1]:!0,[$e.H2]:!0,[$e.H3]:!0,[$e.H4]:!0,[$e.H5]:!0,[$e.H6]:!0,[$e.HEAD]:!0,[$e.HEADER]:!0,[$e.HGROUP]:!0,[$e.HR]:!0,[$e.HTML]:!0,[$e.IFRAME]:!0,[$e.IMG]:!0,[$e.INPUT]:!0,[$e.LI]:!0,[$e.LINK]:!0,[$e.LISTING]:!0,[$e.MAIN]:!0,[$e.MARQUEE]:!0,[$e.MENU]:!0,[$e.META]:!0,[$e.NAV]:!0,[$e.NOEMBED]:!0,[$e.NOFRAMES]:!0,[$e.NOSCRIPT]:!0,[$e.OBJECT]:!0,[$e.OL]:!0,[$e.P]:!0,[$e.PARAM]:!0,[$e.PLAINTEXT]:!0,[$e.PRE]:!0,[$e.SCRIPT]:!0,[$e.SECTION]:!0,[$e.SELECT]:!0,[$e.SOURCE]:!0,[$e.STYLE]:!0,[$e.SUMMARY]:!0,[$e.TABLE]:!0,[$e.TBODY]:!0,[$e.TD]:!0,[$e.TEMPLATE]:!0,[$e.TEXTAREA]:!0,[$e.TFOOT]:!0,[$e.TH]:!0,[$e.THEAD]:!0,[$e.TITLE]:!0,[$e.TR]:!0,[$e.TRACK]:!0,[$e.UL]:!0,[$e.WBR]:!0,[$e.XMP]:!0},[k3.MATHML]:{[$e.MI]:!0,[$e.MO]:!0,[$e.MN]:!0,[$e.MS]:!0,[$e.MTEXT]:!0,[$e.ANNOTATION_XML]:!0},[k3.SVG]:{[$e.TITLE]:!0,[$e.FOREIGN_OBJECT]:!0,[$e.DESC]:!0}};const TL=Wa,je=TL.TAG_NAMES,cn=TL.NAMESPACES;function Dx(e){switch(e.length){case 1:return e===je.P;case 2:return e===je.RB||e===je.RP||e===je.RT||e===je.DD||e===je.DT||e===je.LI;case 3:return e===je.RTC;case 6:return e===je.OPTION;case 8:return e===je.OPTGROUP}return!1}function ine(e){switch(e.length){case 1:return e===je.P;case 2:return e===je.RB||e===je.RP||e===je.RT||e===je.DD||e===je.DT||e===je.LI||e===je.TD||e===je.TH||e===je.TR;case 3:return e===je.RTC;case 5:return e===je.TBODY||e===je.TFOOT||e===je.THEAD;case 6:return e===je.OPTION;case 7:return e===je.CAPTION;case 8:return e===je.OPTGROUP||e===je.COLGROUP}return!1}function A0(e,t){switch(e.length){case 2:if(e===je.TD||e===je.TH)return t===cn.HTML;if(e===je.MI||e===je.MO||e===je.MN||e===je.MS)return t===cn.MATHML;break;case 4:if(e===je.HTML)return t===cn.HTML;if(e===je.DESC)return t===cn.SVG;break;case 5:if(e===je.TABLE)return t===cn.HTML;if(e===je.MTEXT)return t===cn.MATHML;if(e===je.TITLE)return t===cn.SVG;break;case 6:return(e===je.APPLET||e===je.OBJECT)&&t===cn.HTML;case 7:return(e===je.CAPTION||e===je.MARQUEE)&&t===cn.HTML;case 8:return e===je.TEMPLATE&&t===cn.HTML;case 13:return e===je.FOREIGN_OBJECT&&t===cn.SVG;case 14:return e===je.ANNOTATION_XML&&t===cn.MATHML}return!1}let ane=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===je.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===cn.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===cn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===je.H1||t===je.H2||t===je.H3||t===je.H4||t===je.H5||t===je.H6&&n===cn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===je.TD||t===je.TH&&n===cn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==je.TABLE&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==je.TBODY&&this.currentTagName!==je.TFOOT&&this.currentTagName!==je.THEAD&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==je.TR&&this.currentTagName!==je.TEMPLATE&&this.currentTagName!==je.HTML||this.treeAdapter.getNamespaceURI(this.current)!==cn.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===je.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===je.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if(A0(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===je.H1||n===je.H2||n===je.H3||n===je.H4||n===je.H5||n===je.H6)&&r===cn.HTML)return!0;if(A0(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if((r===je.UL||r===je.OL)&&i===cn.HTML||A0(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===cn.HTML)return!0;if(r===je.BUTTON&&i===cn.HTML||A0(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===cn.HTML){if(r===t)return!0;if(r===je.TABLE||r===je.TEMPLATE||r===je.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===cn.HTML){if(n===je.TBODY||n===je.THEAD||n===je.TFOOT)return!0;if(n===je.TABLE||n===je.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===cn.HTML){if(r===t)return!0;if(r!==je.OPTION&&r!==je.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Dx(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ine(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Dx(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var one=ane;const C0=3;let VE=class Os{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=C0){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const s=this.entries[o];if(s.type===Os.MARKER_ENTRY)break;const u=s.element,c=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===a&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length=C0-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:Os.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Os.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Os.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Os.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Os.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Os.ELEMENT_ENTRY&&r.element===t)return r}return null}};VE.MARKER_ENTRY="MARKER_ENTRY";VE.ELEMENT_ENTRY="ELEMENT_ENTRY";var sne=VE;let SL=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};SL.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i{const a=I3.MODE[i];r[a]=function(o){t.ctLoc=t._getCurrentLocation(),n[a].call(this,o)}}),r}};var AL=dne;const pne=ls;let fne=class extends pne{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var hne=fne;const R3=ls,Mx=I2,gne=AL,mne=hne,bne=Wa,N3=bne.TAG_NAMES;let Ene=class extends R3{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===Mx.END_TAG_TOKEN&&a===n.tagName,s={};o?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const a=R3.install(this.tokenizer,gne);t.posTracker=a.posTracker,R3.install(this.openElements,mne,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Mx.END_TAG_TOKEN&&(r.tagName===N3.HTML||r.tagName===N3.BODY&&this.openElements.hasInScope(N3.BODY)))for(let a=this.openElements.stackTop;a>=0;a--){const o=this.openElements.items[a];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),a=i.length;for(let o=0;o(Object.keys(i).forEach(a=>{r[a]=i[a]}),r),Object.create(null))},R2={};const{DOCUMENT_MODE:qu}=Wa,kL="html",$ne="about:legacy-compat",zne="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",IL=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Hne=IL.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),jne=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],RL=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Gne=RL.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Px(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Bx(e,t){for(let n=0;n-1)return qu.QUIRKS;let r=t===null?Hne:IL;if(Bx(n,r))return qu.QUIRKS;if(r=t===null?RL:Gne,Bx(n,r))return qu.LIMITED_QUIRKS}return qu.NO_QUIRKS};R2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Px(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Px(n)),r};var _l={};const O3=I2,qE=Wa,ft=qE.TAG_NAMES,vr=qE.NAMESPACES,dh=qE.ATTRS,Ux={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Vne="definitionurl",Wne="definitionURL",qne={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},Kne={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:vr.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:vr.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:vr.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:vr.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:vr.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:vr.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:vr.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:vr.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:vr.XML},"xml:space":{prefix:"xml",name:"space",namespace:vr.XML},xmlns:{prefix:"",name:"xmlns",namespace:vr.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:vr.XMLNS}},Yne=_l.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},Xne={[ft.B]:!0,[ft.BIG]:!0,[ft.BLOCKQUOTE]:!0,[ft.BODY]:!0,[ft.BR]:!0,[ft.CENTER]:!0,[ft.CODE]:!0,[ft.DD]:!0,[ft.DIV]:!0,[ft.DL]:!0,[ft.DT]:!0,[ft.EM]:!0,[ft.EMBED]:!0,[ft.H1]:!0,[ft.H2]:!0,[ft.H3]:!0,[ft.H4]:!0,[ft.H5]:!0,[ft.H6]:!0,[ft.HEAD]:!0,[ft.HR]:!0,[ft.I]:!0,[ft.IMG]:!0,[ft.LI]:!0,[ft.LISTING]:!0,[ft.MENU]:!0,[ft.META]:!0,[ft.NOBR]:!0,[ft.OL]:!0,[ft.P]:!0,[ft.PRE]:!0,[ft.RUBY]:!0,[ft.S]:!0,[ft.SMALL]:!0,[ft.SPAN]:!0,[ft.STRONG]:!0,[ft.STRIKE]:!0,[ft.SUB]:!0,[ft.SUP]:!0,[ft.TABLE]:!0,[ft.TT]:!0,[ft.U]:!0,[ft.UL]:!0,[ft.VAR]:!0};_l.causesExit=function(e){const t=e.tagName;return t===ft.FONT&&(O3.getTokenAttr(e,dh.COLOR)!==null||O3.getTokenAttr(e,dh.SIZE)!==null||O3.getTokenAttr(e,dh.FACE)!==null)?!0:Xne[t]};_l.adjustTokenMathMLAttrs=function(e){for(let t=0;t0);for(let i=n;i=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),a=lre[i];if(a){this.insertionMode=a;break}else if(!n&&(i===S.TD||i===S.TH)){this.insertionMode=L2;break}else if(!n&&i===S.HEAD){this.insertionMode=uc;break}else if(i===S.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===S.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===S.HTML){this.insertionMode=this.headElement?O2:N2;break}else if(n){this.insertionMode=mo;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===S.TEMPLATE)break;if(i===S.TABLE){this.insertionMode=XE;return}}this.insertionMode=YE}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),a=this.treeAdapter.getNamespaceURI(r);if(i===S.TEMPLATE&&a===rt.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===S.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Su.SPECIAL_ELEMENTS[r][n]}}var dre=cre;function pre(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Oa(e,t),n}function fre(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function hre(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),u=s&&a>=sre;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=gre(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function gre(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function mre(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===S.TEMPLATE&&i===rt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function bre(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Fs(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==S.TEMPLATE&&e._err(Ar.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Ar.endTagWithoutMatchingOpenElement)}function Rd(e,t){e.openElements.pop(),e.insertionMode=O2,e._processToken(t)}function wre(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.BASEFONT||n===S.BGSOUND||n===S.HEAD||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.STYLE?cr(e,t):n===S.NOSCRIPT?e._err(Ar.nestedNoscriptInHead):Nd(e,t)}function Are(e,t){const n=t.tagName;n===S.NOSCRIPT?(e.openElements.pop(),e.insertionMode=uc):n===S.BR?Nd(e,t):e._err(Ar.endTagWithoutMatchingOpenElement)}function Nd(e,t){const n=t.type===q.EOF_TOKEN?Ar.openElementsLeftAfterEof:Ar.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=uc,e._processToken(t)}function Cre(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.BODY?(e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode=mo):n===S.FRAMESET?(e._insertElement(t,rt.HTML),e.insertionMode=M2):n===S.BASE||n===S.BASEFONT||n===S.BGSOUND||n===S.LINK||n===S.META||n===S.NOFRAMES||n===S.SCRIPT||n===S.STYLE||n===S.TEMPLATE||n===S.TITLE?(e._err(Ar.abandonedHeadElementChild),e.openElements.push(e.headElement),cr(e,t),e.openElements.remove(e.headElement)):n===S.HEAD?e._err(Ar.misplacedStartTagForHeadElement):Od(e,t)}function xre(e,t){const n=t.tagName;n===S.BODY||n===S.HTML||n===S.BR?Od(e,t):n===S.TEMPLATE?wu(e,t):e._err(Ar.endTagWithoutMatchingOpenElement)}function Od(e,t){e._insertFakeElement(S.BODY),e.insertionMode=mo,e._processToken(t)}function Bl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function k0(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function kre(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Ire(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Rre(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,rt.HTML),e.insertionMode=M2)}function Fo(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Nre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6)&&e.openElements.pop(),e._insertElement(t,rt.HTML)}function Vx(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Ore(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),n||(e.formElement=e.openElements.current))}function Dre(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],a=e.treeAdapter.getTagName(i);let o=null;if(n===S.LI&&a===S.LI?o=S.LI:(n===S.DD||n===S.DT)&&(a===S.DD||a===S.DT)&&(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==S.ADDRESS&&a!==S.DIV&&a!==S.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Lre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.tokenizer.state=q.MODE.PLAINTEXT}function Mre(e,t){e.openElements.hasInScope(S.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(S.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.framesetOk=!1}function Fre(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(S.A);n&&(Fs(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ku(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Pre(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(S.NOBR)&&(Fs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,rt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Wx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Bre(e,t){e.treeAdapter.getDocumentMode(e.document)!==Su.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode=Ur}function r1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ure(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,rt.HTML);const n=q.getTokenAttr(t,NL.TYPE);(!n||n.toLowerCase()!==OL)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function qx(e,t){e._appendElement(t,rt.HTML),t.ackSelfClosing=!0}function $re(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._appendElement(t,rt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function zre(e,t){t.tagName=S.IMG,r1(e,t)}function Hre(e,t){e._insertElement(t,rt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=q.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=sg}function jre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Gre(e,t){e.framesetOk=!1,e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Kx(e,t){e._switchToTextParsing(t,q.MODE.RAWTEXT)}function Vre(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML),e.framesetOk=!1,e.insertionMode===Ur||e.insertionMode===D2||e.insertionMode===pa||e.insertionMode===rs||e.insertionMode===L2?e.insertionMode=XE:e.insertionMode=YE}function Yx(e,t){e.openElements.currentTagName===S.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML)}function Xx(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,rt.HTML)}function Wre(e,t){e.openElements.hasInScope(S.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(S.RTC),e._insertElement(t,rt.HTML)}function qre(e,t){e.openElements.hasInButtonScope(S.P)&&e._closePElement(),e._insertElement(t,rt.HTML)}function Kre(e,t){e._reconstructActiveFormattingElements(),uo.adjustTokenMathMLAttrs(t),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,rt.MATHML):e._insertElement(t,rt.MATHML),t.ackSelfClosing=!0}function Yre(e,t){e._reconstructActiveFormattingElements(),uo.adjustTokenSVGAttrs(t),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,rt.SVG):e._insertElement(t,rt.SVG),t.ackSelfClosing=!0}function ta(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,rt.HTML)}function yi(e,t){const n=t.tagName;switch(n.length){case 1:n===S.I||n===S.S||n===S.B||n===S.U?Ku(e,t):n===S.P?Fo(e,t):n===S.A?Fre(e,t):ta(e,t);break;case 2:n===S.DL||n===S.OL||n===S.UL?Fo(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?Nre(e,t):n===S.LI||n===S.DD||n===S.DT?Dre(e,t):n===S.EM||n===S.TT?Ku(e,t):n===S.BR?r1(e,t):n===S.HR?$re(e,t):n===S.RB?Xx(e,t):n===S.RT||n===S.RP?Wre(e,t):n!==S.TH&&n!==S.TD&&n!==S.TR&&ta(e,t);break;case 3:n===S.DIV||n===S.DIR||n===S.NAV?Fo(e,t):n===S.PRE?Vx(e,t):n===S.BIG?Ku(e,t):n===S.IMG||n===S.WBR?r1(e,t):n===S.XMP?jre(e,t):n===S.SVG?Yre(e,t):n===S.RTC?Xx(e,t):n!==S.COL&&ta(e,t);break;case 4:n===S.HTML?kre(e,t):n===S.BASE||n===S.LINK||n===S.META?cr(e,t):n===S.BODY?Ire(e,t):n===S.MAIN||n===S.MENU?Fo(e,t):n===S.FORM?Ore(e,t):n===S.CODE||n===S.FONT?Ku(e,t):n===S.NOBR?Pre(e,t):n===S.AREA?r1(e,t):n===S.MATH?Kre(e,t):n===S.MENU?qre(e,t):n!==S.HEAD&&ta(e,t);break;case 5:n===S.STYLE||n===S.TITLE?cr(e,t):n===S.ASIDE?Fo(e,t):n===S.SMALL?Ku(e,t):n===S.TABLE?Bre(e,t):n===S.EMBED?r1(e,t):n===S.INPUT?Ure(e,t):n===S.PARAM||n===S.TRACK?qx(e,t):n===S.IMAGE?zre(e,t):n!==S.FRAME&&n!==S.TBODY&&n!==S.TFOOT&&n!==S.THEAD&&ta(e,t);break;case 6:n===S.SCRIPT?cr(e,t):n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Fo(e,t):n===S.BUTTON?Mre(e,t):n===S.STRIKE||n===S.STRONG?Ku(e,t):n===S.APPLET||n===S.OBJECT?Wx(e,t):n===S.KEYGEN?r1(e,t):n===S.SOURCE?qx(e,t):n===S.IFRAME?Gre(e,t):n===S.SELECT?Vre(e,t):n===S.OPTION?Yx(e,t):ta(e,t);break;case 7:n===S.BGSOUND?cr(e,t):n===S.DETAILS||n===S.ADDRESS||n===S.ARTICLE||n===S.SECTION||n===S.SUMMARY?Fo(e,t):n===S.LISTING?Vx(e,t):n===S.MARQUEE?Wx(e,t):n===S.NOEMBED?Kx(e,t):n!==S.CAPTION&&ta(e,t);break;case 8:n===S.BASEFONT?cr(e,t):n===S.FRAMESET?Rre(e,t):n===S.FIELDSET?Fo(e,t):n===S.TEXTAREA?Hre(e,t):n===S.TEMPLATE?cr(e,t):n===S.NOSCRIPT?e.options.scriptingEnabled?Kx(e,t):ta(e,t):n===S.OPTGROUP?Yx(e,t):n!==S.COLGROUP&&ta(e,t);break;case 9:n===S.PLAINTEXT?Lre(e,t):ta(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Fo(e,t):ta(e,t);break;default:ta(e,t)}}function Xre(e){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=ZE)}function Zre(e,t){e.openElements.hasInScope(S.BODY)&&(e.insertionMode=ZE,e._processToken(t))}function Is(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Qre(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(S.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(S.FORM):e.openElements.remove(n))}function Jre(e){e.openElements.hasInButtonScope(S.P)||e._insertFakeElement(S.P),e._closePElement()}function eie(e){e.openElements.hasInListItemScope(S.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(S.LI),e.openElements.popUntilTagNamePopped(S.LI))}function tie(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function nie(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Zx(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function rie(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(S.BR),e.openElements.pop(),e.framesetOk=!1}function Oa(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function QE(e,t){const n=t.tagName;switch(n.length){case 1:n===S.A||n===S.B||n===S.I||n===S.S||n===S.U?Fs(e,t):n===S.P?Jre(e):Oa(e,t);break;case 2:n===S.DL||n===S.UL||n===S.OL?Is(e,t):n===S.LI?eie(e):n===S.DD||n===S.DT?tie(e,t):n===S.H1||n===S.H2||n===S.H3||n===S.H4||n===S.H5||n===S.H6?nie(e):n===S.BR?rie(e):n===S.EM||n===S.TT?Fs(e,t):Oa(e,t);break;case 3:n===S.BIG?Fs(e,t):n===S.DIR||n===S.DIV||n===S.NAV||n===S.PRE?Is(e,t):Oa(e,t);break;case 4:n===S.BODY?Xre(e):n===S.HTML?Zre(e,t):n===S.FORM?Qre(e):n===S.CODE||n===S.FONT||n===S.NOBR?Fs(e,t):n===S.MAIN||n===S.MENU?Is(e,t):Oa(e,t);break;case 5:n===S.ASIDE?Is(e,t):n===S.SMALL?Fs(e,t):Oa(e,t);break;case 6:n===S.CENTER||n===S.FIGURE||n===S.FOOTER||n===S.HEADER||n===S.HGROUP||n===S.DIALOG?Is(e,t):n===S.APPLET||n===S.OBJECT?Zx(e,t):n===S.STRIKE||n===S.STRONG?Fs(e,t):Oa(e,t);break;case 7:n===S.ADDRESS||n===S.ARTICLE||n===S.DETAILS||n===S.SECTION||n===S.SUMMARY||n===S.LISTING?Is(e,t):n===S.MARQUEE?Zx(e,t):Oa(e,t);break;case 8:n===S.FIELDSET?Is(e,t):n===S.TEMPLATE?wu(e,t):Oa(e,t);break;case 10:n===S.BLOCKQUOTE||n===S.FIGCAPTION?Is(e,t):Oa(e,t);break;default:Oa(e,t)}}function Po(e,t){e.tmplInsertionModeStackTop>-1?zL(e,t):e.stopped=!0}function iie(e,t){t.tagName===S.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function aie(e,t){e._err(Ar.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Bo(e,t){const n=e.openElements.currentTagName;n===S.TABLE||n===S.TBODY||n===S.TFOOT||n===S.THEAD||n===S.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ML,e._processToken(t)):na(e,t)}function oie(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,rt.HTML),e.insertionMode=D2}function sie(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,rt.HTML),e.insertionMode=Np}function lie(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.COLGROUP),e.insertionMode=Np,e._processToken(t)}function uie(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,rt.HTML),e.insertionMode=pa}function cie(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(S.TBODY),e.insertionMode=pa,e._processToken(t)}function die(e,t){e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode(),e._processToken(t))}function pie(e,t){const n=q.getTokenAttr(t,NL.TYPE);n&&n.toLowerCase()===OL?e._appendElement(t,rt.HTML):na(e,t),t.ackSelfClosing=!0}function fie(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,rt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function JE(e,t){const n=t.tagName;switch(n.length){case 2:n===S.TD||n===S.TH||n===S.TR?cie(e,t):na(e,t);break;case 3:n===S.COL?lie(e,t):na(e,t);break;case 4:n===S.FORM?fie(e,t):na(e,t);break;case 5:n===S.TABLE?die(e,t):n===S.STYLE?cr(e,t):n===S.TBODY||n===S.TFOOT||n===S.THEAD?uie(e,t):n===S.INPUT?pie(e,t):na(e,t);break;case 6:n===S.SCRIPT?cr(e,t):na(e,t);break;case 7:n===S.CAPTION?oie(e,t):na(e,t);break;case 8:n===S.COLGROUP?sie(e,t):n===S.TEMPLATE?cr(e,t):na(e,t);break;default:na(e,t)}}function ev(e,t){const n=t.tagName;n===S.TABLE?e.openElements.hasInTableScope(S.TABLE)&&(e.openElements.popUntilTagNamePopped(S.TABLE),e._resetInsertionMode()):n===S.TEMPLATE?wu(e,t):n!==S.BODY&&n!==S.CAPTION&&n!==S.COL&&n!==S.COLGROUP&&n!==S.HTML&&n!==S.TBODY&&n!==S.TD&&n!==S.TFOOT&&n!==S.TH&&n!==S.THEAD&&n!==S.TR&&na(e,t)}function na(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function hie(e,t){e.pendingCharacterTokens.push(t)}function gie(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Yc(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(S.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Rie(e,t){t.tagName===S.HTML?yi(e,t):cg(e,t)}function Nie(e,t){t.tagName===S.HTML?e.fragmentContext||(e.insertionMode=PL):cg(e,t)}function cg(e,t){e.insertionMode=mo,e._processToken(t)}function Oie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.FRAMESET?e._insertElement(t,rt.HTML):n===S.FRAME?(e._appendElement(t,rt.HTML),t.ackSelfClosing=!0):n===S.NOFRAMES&&cr(e,t)}function Die(e,t){t.tagName===S.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==S.FRAMESET&&(e.insertionMode=FL))}function Lie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.NOFRAMES&&cr(e,t)}function Mie(e,t){t.tagName===S.HTML&&(e.insertionMode=BL)}function Fie(e,t){t.tagName===S.HTML?yi(e,t):ph(e,t)}function ph(e,t){e.insertionMode=mo,e._processToken(t)}function Pie(e,t){const n=t.tagName;n===S.HTML?yi(e,t):n===S.NOFRAMES&&cr(e,t)}function Bie(e,t){t.chars=ire.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Uie(e,t){e._insertCharacters(t),e.framesetOk=!1}function $ie(e,t){if(uo.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==rt.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===rt.MATHML?uo.adjustTokenMathMLAttrs(t):r===rt.SVG&&(uo.adjustTokenSVGTagName(t),uo.adjustTokenSVGAttrs(t)),uo.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function zie(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===rt.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const Hie=Hi(dre),Qx=/[#.]/g;function jie(e,t){const n=e||"",r={};let i=0,a,o;for(;i-1&&oo)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function a(o){const s=o&&o.line,u=o&&o.column;if(typeof s=="number"&&typeof u=="number"&&!Number.isNaN(s)&&!Number.isNaN(u)&&s-1 in n){const c=(n[s-2]||0)+u-1||0;if(c>-1&&c{const P=R;if(P.value.stitch&&W!==null&&B!==null)return W.children[B]=P.value.stitch,B}),e.type!=="root"&&f.type==="root"&&f.children.length===1)return f.children[0];return f;function m(){const R={nodeName:"template",tagName:"template",attrs:[],namespaceURI:up.html,childNodes:[]},B={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:up.html,childNodes:[]},W={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(B,R),i._pushTmplInsertionMode(hae),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),i._adoptNodes(B.childNodes[0],W),W}function g(){const R=i.treeAdapter.createDocument();if(i._bootstrap(R,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return u=s.preprocessor,p=s.__mixins[0],c=p.posTracker,a(e),k(),R}function E(R){let B=-1;if(R)for(;++BWL(t,n,e)}const Iae=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Rae=Object.hasOwnProperty;class Nae{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Oae(t,n===!0);const a=i;for(;Rae.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Oae(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Iae,"").replace(/ /g,"-"))}const Dae={}.hasOwnProperty;function Hr(e,t){const n=typeof t=="string"&&Lae(e)&&e.type==="element"&&e.properties&&Dae.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}function Lae(e){return!!(e&&typeof e=="object"&&"type"in e)}function qL(e){const t=e&&e.type==="element"&&e.tagName.toLowerCase()||"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function T1(e){return"children"in e?KL(e):"value"in e?e.value:""}function Mae(e){return e.type==="text"?e.value:"children"in e?KL(e):""}function KL(e){let t=-1;const n=[];for(;++t{nk.reset(),Ui(n,"element",r=>{qL(r)&&r.properties&&!Hr(r,"id")&&(r.properties.id=t+nk.slug(T1(r)))})}}const YL=function(e){if(e==null)return rv;if(typeof e=="string")return Bae(e);if(typeof e=="object")return Pae(e);if(typeof e=="function")return XL(e);throw new Error("Expected function, string, or array as test")};function Pae(e){const t=[];let n=-1;for(;++n{Ui(g,"element",(E,b,T)=>{if(qL(E)&&Hr(E,"id")&&a(E,b,T))return o(E,b,T)})};function s(g){return g.children[n==="prepend"?"unshift":"push"](m(g,v1(!0,{},t),p(r,g))),[Cd]}function u(g,E,b){if(typeof E!="number"||!b)return;const T=m(g,v1(!0,{},t),p(r,g));let v=n==="before"?[T,g]:[g,T];if(i){const y=f(i,g);y&&!Array.isArray(y)&&y.type==="element"&&(y.children=v,v=[y])}return b.children.splice(E,1,...v),[Cd,E+v.length]}function c(g){return g.children=[m(g,v1(!0,{},t),g.children)],[Cd]}function p(g,E){const b=f(g,E);return Array.isArray(b)?b:[b]}function f(g,E){return typeof g=="function"?g(E):v1(!0,Array.isArray(g)?[]:{},g)}function m(g,E,b){return{type:"element",tagName:"a",properties:Object.assign({},E,{href:"#"+(g.properties||{}).id}),children:b}}}const zae=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Hae=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},ZL=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?ZL(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},rk=({value:e=""})=>{const t=zae(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},ik=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},jae=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Ui(r,"element",(i,a,o)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof a=="number"){const u=Hae(o.children,a);if(u){const c=rk(u);Object.keys(c).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=ik(s.properties,c,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&o&&Array.isArray(o.children)&&typeof a=="number"){const s=ZL(o.children,a,"",n);if(s){const u=rk(s);Object.keys(u).length>0&&(i.properties=ik(i.properties,u,t))}}})}},Gae=jae,Vae=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Ui(r,(i,a,o)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(u=>{if(u.type==="raw"||u.type==="comment"){let c=(u.value||"").trim();if(c=c.replace(/^/,"$1"),c===t)return s=!0,!1;if(c===n)return s=!1,!1}return!s})}})}},Wae=Vae,qae={}.hasOwnProperty,Kae=function(e,t,n){const r=C2(n||t),i=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,a=i??!0;return o(e);function o(s,u,c){const p=[];if(!r(s,u,c))return null;if(s.children){let g=-1;for(;++g0&&p.length===0)return null}const f={};let m;for(m in s)qae.call(s,m)&&(f[m]=m==="children"?p:s[m]);return f}};var Nb={exports:{}};(function(e,t){function n(r){let i=[],a;for(let o of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(o))i.push(parseInt(o,10));else if(a=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,u,c,p]=a;if(u&&p){u=parseInt(u),p=parseInt(p);const f=u]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}qa.displayName="c";qa.aliases=[];function qa(e){e.register(Mt),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Au.displayName="cpp";Au.aliases=[];function Au(e){e.register(qa),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}P2.displayName="arduino";P2.aliases=["ino"];function P2(e){e.register(Au),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}Op.displayName="bash";Op.aliases=["sh","shell"];function Op(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=i.variable[1].inside,s=0;s>/g,function(oe,O){return"(?:"+me[+O]+")"})}function r(N,me,oe){return RegExp(n(N,me),oe||"")}function i(N,me){for(var oe=0;oe>/g,function(){return"(?:"+N+")"});return N.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(N){return"\\b(?:"+N.trim().replace(/ /g,"|")+")\\b"}var s=o(a.typeDeclaration),u=RegExp(o(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),c=o(a.typeDeclaration+" "+a.contextual+" "+a.other),p=o(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,E=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),b=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,E]),T=/\[\s*(?:,\s*)*\]/.source,v=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,T]),y=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,m,T]),w=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),A=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,b,T]),D={keyword:u,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,A]),lookbehind:!0,inside:D},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,E]),lookbehind:!0,inside:D},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:D},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,g]),inside:D}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,b]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:D}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,E,g,A,u.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[E,m]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(A),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var W=R+"|"+k,P=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[W]),Q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),z=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,le=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,Q]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[z,le]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[z]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[Q]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var he=/:[^}\r\n]+/.source,de=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[P]),2),fe=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[de,he]),Z=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[W]),2),V=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,he]);function ce(N,me){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[N]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[me,he]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[fe]),lookbehind:!0,greedy:!0,inside:ce(fe,de)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[V]),lookbehind:!0,greedy:!0,inside:ce(V,Z)}],char:{pattern:RegExp(k),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}fr.displayName="markup";fr.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function fr(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Tl.displayName="css";Tl.aliases=[];function Tl(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}B2.displayName="diff";B2.aliases=[];function B2(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +?| +|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}U2.displayName="go";U2.aliases=[];function U2(e){e.register(Mt),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}$2.displayName="ini";$2.aliases=[];function $2(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}xu.displayName="java";xu.aliases=[];function xu(e){e.register(Mt),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}z2.displayName="regex";z2.aliases=[];function z2(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}dc.displayName="json";dc.aliases=["webmanifest"];function dc(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}H2.displayName="kotlin";H2.aliases=["kt","kts"];function H2(e){e.register(Mt),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}j2.displayName="less";j2.aliases=[];function j2(e){e.register(Tl),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}Dp.displayName="lua";Dp.aliases=[];function Dp(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}G2.displayName="makefile";G2.aliases=[];function G2(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}Lp.displayName="yaml";Lp.aliases=["yml"];function Lp(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}V2.displayName="markdown";V2.aliases=["md"];function V2(e){e.register(fr),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(u){s!==u&&(t.languages.markdown[s].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function u(c){if(!(!c||typeof c=="string"))for(var p=0,f=c.length;p]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}q2.displayName="perl";q2.aliases=[];function q2(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}kr.displayName="markup-templating";kr.aliases=[];function kr(e){e.register(fr),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,o){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(a,function(u){if(typeof o=="function"&&!o(u))return u;for(var c=s.length,p;r.code.indexOf(p=n(i,c))!==-1;)++c;return s[c]=u,p}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,o=Object.keys(r.tokenStack);function s(u){for(var c=0;c=o.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var f=o[a],m=r.tokenStack[f],g=typeof p=="string"?p:p.content,E=n(i,f),b=g.indexOf(E);if(b>-1){++a;var T=g.substring(0,b),v=new t.Token(i,t.tokenize(m,r.grammar),"language-"+i,m),y=g.substring(b+E.length),w=[];T&&w.push.apply(w,s([T])),w.push(v),y&&w.push.apply(w,s([y])),typeof p=="string"?u.splice.apply(u,[c,1].concat(w)):p.content=w}}else p.content&&s(p.content)}return u}s(r.tokens)}}})}(e)}ku.displayName="php";ku.aliases=[];function ku(e){e.register(kr),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(c){if(/<\?/.test(c.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(c,"php",p)}}),t.hooks.add("after-tokenize",function(c){t.languages["markup-templating"].tokenizePlaceholders(c,"php")})}(e)}Mp.displayName="python";Mp.aliases=["py"];function Mp(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}K2.displayName="r";K2.aliases=[];function K2(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}Iu.displayName="ruby";Iu.aliases=["rb"];function Iu(e){e.register(Mt),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}Y2.displayName="rust";Y2.aliases=[];function Y2(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}X2.displayName="sass";X2.aliases=[];function X2(e){e.register(Tl),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}Z2.displayName="scss";Z2.aliases=[];function Z2(e){e.register(Tl),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}pc.displayName="sql";pc.aliases=[];function pc(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}Q2.displayName="swift";Q2.aliases=[];function Q2(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}fc.displayName="typescript";fc.aliases=["ts"];function fc(e){e.register(xr),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}Fp.displayName="basic";Fp.aliases=[];function Fp(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Pp.displayName="vbnet";Pp.aliases=[];function Pp(e){e.register(Fp),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const ak=/[#.]/g;function Zae(e,t){const n=e||"",r={};let i=0,a,o;for(;i=48&&t<=57}function ooe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function soe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function lk(e){return soe(e)||QL(e)}const Yu=String.fromCharCode,loe=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function uoe(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,o="",s,u;t.position&&("start"in t.position||"indent"in t.position?(u=t.position.indent,s=t.position.start):s=t.position);let c=(s?s.line:0)||1,p=(s?s.column:0)||1,f=g(),m;for(i--;++i<=e.length;)if(m===10&&(p=(u?u[a]:0)||1),m=e.charCodeAt(i),m===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){o+=Yu(m),p++;continue}const v=i+1;let y=v,w=v,A;if(T===35){w=++y;const z=e.charCodeAt(w);z===88||z===120?(A="hexadecimal",w=++y):A="decimal"}else A="named";let D="",k="",R="";const B=A==="named"?lk:A==="decimal"?QL:ooe;for(w--;++w<=e.length;){const z=e.charCodeAt(w);if(!B(z))break;R+=Yu(z),A==="named"&&aoe.includes(R)&&(D=R,k=sp(R))}let W=e.charCodeAt(w)===59;if(W){w++;const z=A==="named"?sp(R):!1;z&&(D=R,k=z)}let P=1+w-v,Q="";if(!(!W&&t.nonTerminated===!1))if(!R)A!=="named"&&E(4,P);else if(A==="named"){if(W&&!k)E(5,1);else if(D!==R&&(w=y+D.length,P=1+w-y,W=!1),!W){const z=D?1:3;if(t.attribute){const le=e.charCodeAt(w);le===61?(E(z,P),k=""):lk(le)?k="":E(z,P)}else E(z,P)}Q=k}else{W||E(2,P);let z=Number.parseInt(R,A==="hexadecimal"?16:10);if(coe(z))E(7,P),Q=Yu(65533);else if(z in sk)E(6,P),Q=sk[z];else{let le="";doe(z)&&E(6,P),z>65535&&(z-=65536,le+=Yu(z>>>10|55296),z=56320|z&1023),Q=le+Yu(z)}}if(Q){b(),f=g(),i=w-1,p+=w-v+1,r.push(Q);const z=g();z.offset++,t.reference&&t.reference.call(t.referenceContext,Q,{start:f,end:z},e.slice(v-1,w)),f=z}else R=e.slice(v-1,w),o+=R,p+=R.length,i=w-1}else m===10&&(c++,a++,p=0),Number.isNaN(m)?b():(o+=Yu(m),p++);return r.join("");function g(){return{line:c,column:p,offset:i+((s?s.offset:0)||0)}}function E(T,v){let y;t.warning&&(y=g(),y.column+=v,y.offset+=v,t.warning.call(t.warningContext,loe[T],y,T))}function b(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:f,end:g()}),o="")}}function coe(e){return e>=55296&&e<=57343||e>1114111}function doe(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var poe=0,I0={},sr={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++poe}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(sr.util.type(t)){case"Object":if(i=sr.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=sr.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:I0,plaintext:I0,text:I0,txt:I0,extend:function(e,t){var n=sr.util.clone(sr.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||sr.languages;var i=r[e],a={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(o)||(a[o]=i[o])}var u=r[e];return r[e]=a,sr.languages.DFS(sr.languages,function(c,p){p===u&&c!=e&&(this[c]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=sr.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],u=sr.util.type(s);u==="Object"&&!i[a(s)]?(i[a(s)]=!0,e(s,n,null,i)):u==="Array"&&!i[a(s)]&&(i[a(s)]=!0,e(s,n,o,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(sr.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=sr.tokenize(r.code,r.grammar),sr.hooks.run("after-tokenize",r),Dd.stringify(sr.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new foe;return hh(i,i.head,e),JL(e,i,t,i.head,0),goe(i)},hooks:{all:{},add:function(e,t){var n=sr.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=sr.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:Dd};function Dd(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function uk(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function JL(e,t,n,r,i,a){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var u=0;u=a.reach);v+=T.value.length,T=T.next){var y=T.value;if(t.length>e.length)return;if(!(y instanceof Dd)){var w=1,A;if(m){if(A=uk(b,v,e,f),!A||A.index>=e.length)break;var B=A.index,D=A.index+A[0].length,k=v;for(k+=T.value.length;B>=k;)T=T.next,k+=T.value.length;if(k-=T.value.length,v=k,T.value instanceof Dd)continue;for(var R=T;R!==t.tail&&(ka.reach&&(a.reach=z);var le=T.prev;P&&(le=hh(t,le,P),v+=P.length),hoe(t,le,w);var he=new Dd(o,p?sr.tokenize(W,p):W,g,W);if(T=hh(t,le,he),Q&&hh(t,T,Q),w>1){var de={cause:o+","+u,reach:z};JL(e,t,n,T.prev,v,de),a&&de.reach>a.reach&&(a.reach=de.reach)}}}}}}function foe(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function hh(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function hoe(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}av.displayName="abnf";av.aliases=[];function av(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}ov.displayName="actionscript";ov.aliases=[];function ov(e){e.register(xr),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}sv.displayName="ada";sv.aliases=[];function sv(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}lv.displayName="agda";lv.aliases=[];function lv(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}uv.displayName="al";uv.aliases=[];function uv(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}cv.displayName="antlr4";cv.aliases=["g4"];function cv(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}dv.displayName="apacheconf";dv.aliases=[];function dv(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}pv.displayName="apex";pv.aliases=[];function pv(e){e.register(Mt),e.register(pc),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(o){return RegExp(o.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}fv.displayName="apl";fv.aliases=[];function fv(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}hv.displayName="applescript";hv.aliases=[];function hv(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}gv.displayName="aql";gv.aliases=[];function gv(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}mv.displayName="arff";mv.aliases=[];function mv(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}bv.displayName="armasm";bv.aliases=["arm-asm"];function bv(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}Ev.displayName="arturo";Ev.aliases=["art"];function Ev(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}vv.displayName="asciidoc";vv.aliases=["adoc"];function vv(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var o={},s=0,u=a.length;s/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}_v.displayName="asm6502";_v.aliases=[];function _v(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}Tv.displayName="asmatmel";Tv.aliases=[];function Tv(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}Sv.displayName="autohotkey";Sv.aliases=[];function Sv(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}wv.displayName="autoit";wv.aliases=[];function wv(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}Av.displayName="avisynth";Av.aliases=["avs"];function Av(e){(function(t){function n(c,p){return c.replace(/<<(\d+)>>/g,function(f,m){return p[+m]})}function r(c,p,f){return RegExp(n(c,p),f||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[a,o,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}Cv.displayName="avro-idl";Cv.aliases=["avdl"];function Cv(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}xv.displayName="awk";xv.aliases=["gawk"];function xv(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}kv.displayName="batch";kv.aliases=[];function kv(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}Iv.displayName="bbcode";Iv.aliases=["shortcode"];function Iv(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Rv.displayName="bbj";Rv.aliases=[];function Rv(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}Nv.displayName="bicep";Nv.aliases=[];function Nv(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}Ov.displayName="birb";Ov.aliases=[];function Ov(e){e.register(Mt),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}Dv.displayName="bison";Dv.aliases=[];function Dv(e){e.register(qa),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Lv.displayName="bnf";Lv.aliases=["rbnf"];function Lv(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}Mv.displayName="bqn";Mv.aliases=[];function Mv(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}Fv.displayName="brainfuck";Fv.aliases=[];function Fv(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}Pv.displayName="brightscript";Pv.aliases=[];function Pv(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}Bv.displayName="bro";Bv.aliases=[];function Bv(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}Uv.displayName="bsl";Uv.aliases=["oscript"];function Uv(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}$v.displayName="cfscript";$v.aliases=["cfc"];function $v(e){e.register(Mt),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}zv.displayName="chaiscript";zv.aliases=[];function zv(e){e.register(Mt),e.register(Au),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}Hv.displayName="cil";Hv.aliases=[];function Hv(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}jv.displayName="cilkc";jv.aliases=["cilk-c"];function jv(e){e.register(qa),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}Gv.displayName="cilkcpp";Gv.aliases=["cilk","cilk-cpp"];function Gv(e){e.register(Au),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}Vv.displayName="clojure";Vv.aliases=[];function Vv(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}Wv.displayName="cmake";Wv.aliases=[];function Wv(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}qv.displayName="cobol";qv.aliases=[];function qv(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}Kv.displayName="coffeescript";Kv.aliases=["coffee"];function Kv(e){e.register(xr),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}Yv.displayName="concurnas";Yv.aliases=["conc"];function Yv(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}Xv.displayName="csp";Xv.aliases=[];function Xv(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}Zv.displayName="cooklang";Zv.aliases=[];function Zv(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,o=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+o+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}Qv.displayName="coq";Qv.aliases=[];function Qv(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}Jv.displayName="crystal";Jv.aliases=[];function Jv(e){e.register(Iu),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}ey.displayName="css-extras";ey.aliases=[];function ey(e){e.register(Tl),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}ty.displayName="csv";ty.aliases=[];function ty(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}ny.displayName="cue";ny.aliases=[];function ny(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}ry.displayName="cypher";ry.aliases=[];function ry(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}iy.displayName="d";iy.aliases=[];function iy(e){e.register(Mt),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}ay.displayName="dart";ay.aliases=[];function ay(e){e.register(Mt),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}oy.displayName="dataweave";oy.aliases=[];function oy(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}sy.displayName="dax";sy.aliases=[];function sy(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}ly.displayName="dhall";ly.aliases=[];function ly(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}uy.displayName="django";uy.aliases=["jinja2"];function uy(e){e.register(kr),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}cy.displayName="dns-zone-file";cy.aliases=["dns-zone"];function cy(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}dy.displayName="docker";dy.aliases=["dockerfile"];function dy(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),o={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,p){return c=c.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(c,p)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}py.displayName="dot";py.aliases=["gv"];function py(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,o){return RegExp(a.replace(//g,function(){return n}),o)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}fy.displayName="ebnf";fy.aliases=[];function fy(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}hy.displayName="editorconfig";hy.aliases=[];function hy(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}gy.displayName="eiffel";gy.aliases=[];function gy(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}my.displayName="ejs";my.aliases=["eta"];function my(e){e.register(xr),e.register(kr),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}by.displayName="elixir";by.aliases=[];function by(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}Ey.displayName="elm";Ey.aliases=[];function Ey(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}vy.displayName="etlua";vy.aliases=[];function vy(e){e.register(Dp),e.register(kr),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}yy.displayName="erb";yy.aliases=[];function yy(e){e.register(kr),e.register(Iu),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}_y.displayName="erlang";_y.aliases=[];function _y(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}Ty.displayName="excel-formula";Ty.aliases=["xls","xlsx"];function Ty(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}Sy.displayName="fsharp";Sy.aliases=[];function Sy(e){e.register(Mt),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}wy.displayName="factor";wy.aliases=[];function wy(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(c){return new RegExp("(^|\\s)(?:"+c.map(a).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(c){i[c].pattern=o(s[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=o(u),t.languages.factor=i})(e)}Ay.displayName="false";Ay.aliases=[];function Ay(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}xy.displayName="flow";xy.aliases=[];function xy(e){e.register(xr),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}ky.displayName="fortran";ky.aliases=[];function ky(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}Iy.displayName="ftl";Iy.aliases=[];function Iy(e){e.register(kr),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",o)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}Ry.displayName="gml";Ry.aliases=["gamemakerlanguage"];function Ry(e){e.register(Mt),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}Ny.displayName="gap";Ny.aliases=[];function Ny(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}Oy.displayName="gcode";Oy.aliases=[];function Oy(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}Dy.displayName="gdscript";Dy.aliases=[];function Dy(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}Ly.displayName="gedcom";Ly.aliases=[];function Ly(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}My.displayName="gettext";My.aliases=["po"];function My(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}Fy.displayName="gherkin";Fy.aliases=[];function Fy(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}Py.displayName="git";Py.aliases=[];function Py(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}By.displayName="glsl";By.aliases=[];function By(e){e.register(qa),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}Uy.displayName="gn";Uy.aliases=["gni"];function Uy(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}$y.displayName="linker-script";$y.aliases=["ld"];function $y(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}zy.displayName="go-module";zy.aliases=["go-mod"];function zy(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}Hy.displayName="gradle";Hy.aliases=[];function Hy(e){e.register(Mt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}jy.displayName="graphql";jy.aliases=[];function jy(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function o(T,v){v=v||0;for(var y=0;y0)){var g=s(/^\{$/,/^\}$/);if(g===-1)continue;for(var E=i;E=0&&u(b,"variable-input")}}}}})}Gy.displayName="groovy";Gy.aliases=[];function Gy(e){e.register(Mt),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}Vy.displayName="textile";Vy.aliases=[];function Vy(e){e.register(fr),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,m){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),m||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=o.phrase.inside,u={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=s.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=s.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark}(e)}Wy.displayName="haml";Wy.aliases=[];function Wy(e){e.register(Iu),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,o=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}Bp.displayName="haskell";Bp.aliases=["hs"];function Bp(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Ky.displayName="haxe";Ky.aliases=[];function Ky(e){e.register(Mt),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}Yy.displayName="hcl";Yy.aliases=[];function Yy(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}Xy.displayName="hlsl";Xy.aliases=[];function Xy(e){e.register(qa),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}Zy.displayName="hoon";Zy.aliases=[];function Zy(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Qy.displayName="hpkp";Qy.aliases=[];function Qy(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Jy.displayName="hsts";Jy.aliases=[];function Jy(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e6.displayName="uri";e6.aliases=["url"];function e6(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}t6.displayName="http";t6.aliases=[];function t6(e){(function(t){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function o(p){var f=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var s;for(var u in i)if(i[u]){s=s||{};var c=a[u]?o(u):u;s[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}s&&t.languages.insertBefore("http","header",s)})(e)}n6.displayName="ichigojam";n6.aliases=[];function n6(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}r6.displayName="icon";r6.aliases=[];function r6(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}i6.displayName="icu-message-format";i6.aliases=[];function i6(e){(function(t){function n(u,c){return c<=0?/[]/.source:u.replace(//g,function(){return n(u,c-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},o=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}a6.displayName="idris";a6.aliases=["idr"];function a6(e){e.register(Bp),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}o6.displayName="ignore";o6.aliases=["gitignore","hgignore","npmignore"];function o6(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}s6.displayName="inform7";s6.aliases=[];function s6(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}l6.displayName="io";l6.aliases=[];function l6(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}gc.displayName="javadoclike";gc.aliases=[];function gc(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,o){var s="doc-comment",u=t.languages[a];if(u){var c=u[s];if(!c){var p={};p[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=t.languages.insertBefore(a,"comment",p),c=u[s]}if(c instanceof RegExp&&(c=u[s]={pattern:c}),Array.isArray(c))for(var f=0,m=c.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}d6.displayName="javadoc";d6.aliases=[];function d6(e){e.register(xu),e.register(gc),e.register(fr),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}p6.displayName="javastacktrace";p6.aliases=[];function p6(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}f6.displayName="jexl";f6.aliases=[];function f6(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}h6.displayName="jolie";h6.aliases=[];function h6(e){e.register(Mt),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}g6.displayName="jq";g6.aliases=[];function g6(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}m6.displayName="js-templates";m6.aliases=[];function m6(e){e.register(xr),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],o=i.pattern.source;function s(E,b){if(t.languages[E])return{pattern:RegExp("((?:"+b+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:E}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function u(E,b){return"___"+b.toUpperCase()+"_"+E+"___"}function c(E,b,T){var v={code:E,grammar:b,language:T};return t.hooks.run("before-tokenize",v),v.tokens=t.tokenize(v.code,v.grammar),t.hooks.run("after-tokenize",v),v.tokens}function p(E){var b={};b["interpolation-punctuation"]=a;var T=t.tokenize(E,b);if(T.length===3){var v=[1,1];v.push.apply(v,c(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,v)}return new t.Token("interpolation",T,i.alias,E)}function f(E,b,T){var v=t.tokenize(E,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),y=0,w={},A=v.map(function(B){if(typeof B=="string")return B;for(var W=B.content,P;E.indexOf(P=u(y++,T))!==-1;);return w[P]=W,P}).join(""),D=c(A,b,T),k=Object.keys(w);y=0;function R(B){for(var W=0;W=k.length)return;var P=B[W];if(typeof P=="string"||typeof P.content=="string"){var Q=k[y],z=typeof P=="string"?P:P.content,le=z.indexOf(Q);if(le!==-1){++y;var he=z.substring(0,le),de=p(w[Q]),fe=z.substring(le+Q.length),Z=[];if(he&&Z.push(he),Z.push(de),fe){var V=[fe];R(V),Z.push.apply(Z,V)}typeof P=="string"?(B.splice.apply(B,[W,1].concat(Z)),W+=Z.length-1):P.content=Z}}else{var ce=P.content;Array.isArray(ce)?R(ce):R([ce])}}}return R(D),new t.Token(T,D,"language-"+T,E)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(E){if(!(E.language in m))return;function b(T){for(var v=0,y=T.length;v\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}E6.displayName="n4js";E6.aliases=["n4jsd"];function E6(e){e.register(xr),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}v6.displayName="js-extras";v6.aliases=[];function v6(e){e.register(xr),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(u,c){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}S6.displayName="julia";S6.aliases=[];function S6(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}w6.displayName="keepalived";w6.aliases=[];function w6(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}A6.displayName="keyman";A6.aliases=[];function A6(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}C6.displayName="kumir";C6.aliases=["kum"];function C6(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}x6.displayName="kusto";x6.aliases=[];function x6(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}k6.displayName="latex";k6.aliases=["context","tex"];function k6(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}I6.displayName="latte";I6.aliases=[];function I6(e){e.register(Mt),e.register(kr),e.register(ku),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}Up.displayName="scheme";Up.aliases=[];function Up(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}R6.displayName="lilypond";R6.aliases=["ly"];function R6(e){e.register(Up),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}N6.displayName="liquid";N6.aliases=[];function N6(e){e.register(kr),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var o=a[1];if(o==="raw"&&!r)return r=!0,!0;if(o==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}O6.displayName="lisp";O6.aliases=["elisp","emacs","emacs-lisp"];function O6(e){(function(t){function n(E){return RegExp(/(\()/.source+"(?:"+E+")"+/(?=[\s\)])/.source)}function r(E){return RegExp(/([\s([])/.source+"(?:"+E+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,o="(\\()",s="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(o+c+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:f},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=g,p.defun.inside.arguments=t.util.clone(g),p.defun.inside.arguments.inside.sublist=g,t.languages.lisp=p,t.languages.elisp=p,t.languages.emacs=p,t.languages["emacs-lisp"]=p})(e)}D6.displayName="livescript";D6.aliases=[];function D6(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}L6.displayName="llvm";L6.aliases=[];function L6(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}M6.displayName="log";M6.aliases=[];function M6(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}F6.displayName="lolcode";F6.aliases=[];function F6(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}P6.displayName="magma";P6.aliases=[];function P6(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}J2.displayName="mata";J2.aliases=[];function J2(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}B6.displayName="matlab";B6.aliases=[];function B6(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}U6.displayName="maxscript";U6.aliases=[];function U6(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}$6.displayName="mel";$6.aliases=[];function $6(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}z6.displayName="mermaid";z6.aliases=[];function z6(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}H6.displayName="metafont";H6.aliases=[];function H6(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}j6.displayName="mizar";j6.aliases=[];function j6(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}G6.displayName="mongodb";G6.aliases=[];function G6(e){e.register(xr),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}V6.displayName="monkey";V6.aliases=[];function V6(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}W6.displayName="moonscript";W6.aliases=["moon"];function W6(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}q6.displayName="n1ql";q6.aliases=[];function q6(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}K6.displayName="nand2tetris-hdl";K6.aliases=[];function K6(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}Y6.displayName="naniscript";Y6.aliases=["nani"];function Y6(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(o){var s=o.tokens;s.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=a(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(o){for(var s="[]{}",u=[],c=0;c=&|$!]/}}Z6.displayName="neon";Z6.aliases=[];function Z6(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}Q6.displayName="nevod";Q6.aliases=[];function Q6(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}J6.displayName="nginx";J6.aliases=[];function J6(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}e8.displayName="nim";e8.aliases=[];function e8(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}t8.displayName="nix";t8.aliases=[];function t8(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}n8.displayName="nsis";n8.aliases=[];function n8(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}r8.displayName="ocaml";r8.aliases=[];function r8(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}i8.displayName="odin";i8.aliases=[];function i8(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}a8.displayName="opencl";a8.aliases=[];function a8(e){e.register(qa),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}o8.displayName="openqasm";o8.aliases=["qasm"];function o8(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}s8.displayName="oz";s8.aliases=[];function s8(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}l8.displayName="parigp";l8.aliases=[];function l8(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}u8.displayName="parser";u8.aliases=[];function u8(e){e.register(fr),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}c8.displayName="pascal";c8.aliases=["objectpascal"];function c8(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}d8.displayName="pascaligo";d8.aliases=[];function d8(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,s){return o[s]=i[s],o},{});i["class-name"].forEach(function(o){o.inside=a})})(e)}p8.displayName="psl";p8.aliases=[];function p8(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}f8.displayName="pcaxis";f8.aliases=["px"];function f8(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}h8.displayName="peoplecode";h8.aliases=["pcode"];function h8(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}g8.displayName="phpdoc";g8.aliases=[];function g8(e){e.register(gc),e.register(ku),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}m8.displayName="php-extras";m8.aliases=[];function m8(e){e.register(ku),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}b8.displayName="plant-uml";b8.aliases=["plantuml"];function b8(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,u=/[[?]?[ox]?/.source,c=/[ox]?[\]?]?/.source,p=u+"(?:"+a+s+"|"+o+a+"(?:"+s+")?)"+c;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+p+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}E8.displayName="plsql";E8.aliases=[];function E8(e){e.register(pc),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}v8.displayName="powerquery";v8.aliases=["mscript","pq"];function v8(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}y8.displayName="powershell";y8.aliases=[];function y8(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}_8.displayName="processing";_8.aliases=[];function _8(e){e.register(Mt),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}T8.displayName="prolog";T8.aliases=[];function T8(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}S8.displayName="promql";S8.aliases=[];function S8(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}w8.displayName="properties";w8.aliases=[];function w8(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}A8.displayName="protobuf";A8.aliases=[];function A8(e){e.register(Mt),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}C8.displayName="stylus";C8.aliases=[];function C8(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}x8.displayName="twig";x8.aliases=[];function x8(e){e.register(kr),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}k8.displayName="pug";k8.aliases=[];function k8(e){e.register(xr),e.register(fr),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,o=r.length;a",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}I8.displayName="puppet";I8.aliases=[];function I8(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}R8.displayName="pure";R8.aliases=[];function R8(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var o={};o["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}N8.displayName="purebasic";N8.aliases=["pbfasm"];function N8(e){e.register(Mt),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}O8.displayName="purescript";O8.aliases=["purs"];function O8(e){e.register(Bp),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}D8.displayName="qsharp";D8.aliases=["qs"];function D8(e){e.register(Mt),function(t){function n(g,E){return g.replace(/<<(\d+)>>/g,function(b,T){return"(?:"+E[+T]+")"})}function r(g,E,b){return RegExp(n(g,E),b||"")}function i(g,E){for(var b=0;b>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(o(a.type+" "+a.other)),u=/\b[A-Za-z_]\w*\b/.source,c=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:s,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:p}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}L8.displayName="q";L8.aliases=[];function L8(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}M8.displayName="qml";M8.aliases=[];function M8(e){e.register(xr),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}F8.displayName="qore";F8.aliases=[];function F8(e){e.register(Mt),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}P8.displayName="racket";P8.aliases=["rkt"];function P8(e){e.register(Up),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}B8.displayName="cshtml";B8.aliases=["razor"];function B8(e){e.register(Cu),e.register(fr),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(y,w){for(var A=0;A/g,function(){return"(?:"+y+")"});return y.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),o=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),u=i(/<(?:[^<>'"@/]||)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+u+")?"+a+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,p=/@(?![\w()])/.source+"|"+c,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+p+`)[^"'@]*)+["'])`,m=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+m+/\s*\/?>/.source,E=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+m+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function o(c,p){return c=c.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(c,p)}a=o(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(s).join(""):""},u=function(c){for(var p=[],f=0;f0&&p[p.length-1].tagName===s(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:s(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:g=!0),(g||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var E=s(m);f0&&(typeof c[f-1]=="string"||c[f-1].type==="plain-text")&&(E=s(c[f-1])+E,c.splice(f-1,1),f--),c[f]=new t.Token("plain-text",E,null,E)}m.content&&typeof m.content!="string"&&u(m.content)}};t.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})}(e)}U8.displayName="tsx";U8.aliases=[];function U8(e){e.register(em),e.register(fc),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}$8.displayName="reason";$8.aliases=[];function $8(e){e.register(Mt),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}z8.displayName="rego";z8.aliases=[];function z8(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}H8.displayName="renpy";H8.aliases=["rpy"];function H8(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}j8.displayName="rescript";j8.aliases=["res"];function j8(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}G8.displayName="rest";G8.aliases=[];function G8(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}V8.displayName="rip";V8.aliases=[];function V8(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}W8.displayName="roboconf";W8.aliases=[];function W8(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}q8.displayName="robotframework";q8.aliases=["robot"];function q8(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in c)p[f]=c[f];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=r,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:p}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":o,documentation:a,property:s}),keywords:i("Keywords",{"keyword-name":o,documentation:a,property:s}),tasks:i("Tasks",{"task-name":o,documentation:a,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}K8.displayName="sas";K8.aliases=[];function K8(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},E={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},v=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,y={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return v}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return v}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:f,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:r,"numeric-constant":i,punctuation:p,string:c}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":b,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:w,"submit-statement":T,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:w,"submit-statement":T,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":y,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:s,keyword:w,function:f,format:g,altformat:E,"global-statements":b,number:r,"numeric-constant":i,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":o,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":y,comment:u,function:f,format:g,altformat:E,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:c,step:s,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(e)}Y8.displayName="shell-session";Y8.aliases=["sh-session","shellsession"];function Y8(e){e.register(Op),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}X8.displayName="smali";X8.aliases=[];function X8(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}Z8.displayName="smalltalk";Z8.aliases=[];function Z8(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}Q8.displayName="smarty";Q8.aliases=[];function Q8(e){e.register(kr),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",o="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(u){return u===o&&(s=!1),s?!1:(u===a&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}J8.displayName="sml";J8.aliases=["smlnj"];function J8(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}e_.displayName="solidity";e_.aliases=["sol"];function e_(e){e.register(Mt),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}t_.displayName="solution-file";t_.aliases=["sln"];function t_(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}n_.displayName="soy";n_.aliases=[];function n_(e){e.register(kr),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",s="{/literal}",u=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(c){return c===s&&(u=!1),u?!1:(c===o&&(u=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}tm.displayName="turtle";tm.aliases=["trig"];function tm(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}r_.displayName="sparql";r_.aliases=["rq"];function r_(e){e.register(tm),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}i_.displayName="splunk-spl";i_.aliases=[];function i_(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}a_.displayName="sqf";a_.aliases=[];function a_(e){e.register(Mt),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}o_.displayName="squirrel";o_.aliases=[];function o_(e){e.register(Mt),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}s_.displayName="stan";s_.aliases=[];function s_(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}l_.displayName="stata";l_.aliases=[];function l_(e){e.register(xu),e.register(J2),e.register(Mp),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}u_.displayName="iecst";u_.aliases=[];function u_(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}c_.displayName="supercollider";c_.aliases=["sclang"];function c_(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}d_.displayName="systemd";d_.aliases=[];function d_(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}$p.displayName="t4-templating";$p.aliases=[];function $p(e){(function(t){function n(i,a,o){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:o}}}}function r(i){var a=t.languages[i],o="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,o),"class-feature":n("\\+",a,o),standard:n("",a,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}p_.displayName="t4-cs";p_.aliases=["t4"];function p_(e){e.register(Cu),e.register($p),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}f_.displayName="t4-vb";f_.aliases=[];function f_(e){e.register($p),e.register(Pp),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}h_.displayName="tap";h_.aliases=[];function h_(e){e.register(Lp),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}g_.displayName="tcl";g_.aliases=[];function g_(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}m_.displayName="tt2";m_.aliases=[];function m_(e){e.register(Mt),e.register(kr),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}b_.displayName="toml";b_.aliases=[];function b_(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}E_.displayName="tremor";E_.aliases=["trickle","troy"];function E_(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}v_.displayName="typoscript";v_.aliases=["tsconfig"];function v_(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}y_.displayName="unrealscript";y_.aliases=["uc","uscript"];function y_(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}__.displayName="uorazor";__.aliases=[];function __(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}T_.displayName="v";T_.aliases=[];function T_(e){e.register(Mt),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}S_.displayName="vala";S_.aliases=[];function S_(e){e.register(Mt),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}w_.displayName="velocity";w_.aliases=[];function w_(e){e.register(fr),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}A_.displayName="verilog";A_.aliases=[];function A_(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}C_.displayName="vhdl";C_.aliases=[];function C_(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}x_.displayName="vim";x_.aliases=[];function x_(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}k_.displayName="visual-basic";k_.aliases=["vb","vba"];function k_(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}I_.displayName="warpscript";I_.aliases=[];function I_(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}R_.displayName="wasm";R_.aliases=[];function R_(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}N_.displayName="web-idl";N_.aliases=["webidl"];function N_(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}O_.displayName="wgsl";O_.aliases=[];function O_(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}D_.displayName="wiki";D_.aliases=[];function D_(e){e.register(fr),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}L_.displayName="wolfram";L_.aliases=["mathematica","nb","wl"];function L_(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}M_.displayName="wren";M_.aliases=[];function M_(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}F_.displayName="xeora";F_.aliases=["xeoracube"];function F_(e){e.register(fr),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}P_.displayName="xml-doc";P_.aliases=[];function P_(e){e.register(fr),function(t){function n(o,s){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}B_.displayName="xojo";B_.aliases=[];function B_(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}U_.displayName="xquery";U_.aliases=[];function U_(e){e.register(fr),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],o=0;o0&&a[a.length-1].tagName===n(s.content[0].content[1])&&a.pop():s.content[s.content.length-1].content==="/>"||a.push({tagName:n(s.content[0].content[1]),openedBraces:0}):a.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[o+1]||i[o+1].type!=="punctuation"||i[o+1].content!=="{")&&(!i[o-1]||i[o-1].type!=="plain-text"||i[o-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?a[a.length-1].openedBraces--:s.type!=="comment"&&(u=!0)),(u||typeof s=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var c=n(s);o0&&(typeof i[o-1]=="string"||i[o-1].type==="plain-text")&&(c=n(i[o-1])+c,i.splice(o-1,1),o--),/^\s+$/.test(c)?i[o]=c:i[o]=new t.Token("plain-text",c,null,c)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}$_.displayName="yang";$_.aliases=[];function $_(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}z_.displayName="zig";z_.aliases=[];function z_(e){(function(t){function n(c){return function(){return c}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),u="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(u)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=t.languages.zig)})})(e)}L.register(fr);L.register(Tl);L.register(Mt);L.register(z2);L.register(xr);L.register(iv);L.register(av);L.register(ov);L.register(sv);L.register(lv);L.register(uv);L.register(cv);L.register(dv);L.register(pc);L.register(pv);L.register(fv);L.register(hv);L.register(gv);L.register(qa);L.register(Au);L.register(P2);L.register(mv);L.register(bv);L.register(Op);L.register(Lp);L.register(V2);L.register(Ev);L.register(vv);L.register(Cu);L.register(yv);L.register(_v);L.register(Tv);L.register(Sv);L.register(wv);L.register(Av);L.register(Cv);L.register(xv);L.register(Fp);L.register(kv);L.register(Iv);L.register(Rv);L.register(Nv);L.register(Ov);L.register(Dv);L.register(Lv);L.register(Mv);L.register(Fv);L.register(Pv);L.register(Bv);L.register(Uv);L.register($v);L.register(zv);L.register(Hv);L.register(jv);L.register(Gv);L.register(Vv);L.register(Wv);L.register(qv);L.register(Kv);L.register(Yv);L.register(Xv);L.register(Zv);L.register(Qv);L.register(Iu);L.register(Jv);L.register(ey);L.register(ty);L.register(ny);L.register(ry);L.register(iy);L.register(ay);L.register(oy);L.register(sy);L.register(ly);L.register(B2);L.register(kr);L.register(uy);L.register(cy);L.register(dy);L.register(py);L.register(fy);L.register(hy);L.register(gy);L.register(my);L.register(by);L.register(Ey);L.register(Dp);L.register(vy);L.register(yy);L.register(_y);L.register(Ty);L.register(Sy);L.register(wy);L.register(Ay);L.register(Cy);L.register(xy);L.register(ky);L.register(Iy);L.register(Ry);L.register(Ny);L.register(Oy);L.register(Dy);L.register(Ly);L.register(My);L.register(Fy);L.register(Py);L.register(By);L.register(Uy);L.register($y);L.register(U2);L.register(zy);L.register(Hy);L.register(jy);L.register(Gy);L.register(j2);L.register(Z2);L.register(Vy);L.register(Wy);L.register(qy);L.register(Bp);L.register(Ky);L.register(Yy);L.register(Xy);L.register(Zy);L.register(Qy);L.register(Jy);L.register(dc);L.register(e6);L.register(t6);L.register(n6);L.register(r6);L.register(i6);L.register(a6);L.register(o6);L.register(s6);L.register($2);L.register(l6);L.register(u6);L.register(xu);L.register(ku);L.register(gc);L.register(c6);L.register(d6);L.register(p6);L.register(f6);L.register(h6);L.register(g6);L.register(m6);L.register(fc);L.register(b6);L.register(E6);L.register(v6);L.register(y6);L.register(_6);L.register(T6);L.register(S6);L.register(w6);L.register(A6);L.register(H2);L.register(C6);L.register(x6);L.register(k6);L.register(I6);L.register(Up);L.register(R6);L.register(N6);L.register(O6);L.register(D6);L.register(L6);L.register(M6);L.register(F6);L.register(P6);L.register(G2);L.register(J2);L.register(B6);L.register(U6);L.register($6);L.register(z6);L.register(H6);L.register(j6);L.register(G6);L.register(V6);L.register(W6);L.register(q6);L.register(K6);L.register(Y6);L.register(X6);L.register(Z6);L.register(Q6);L.register(J6);L.register(e8);L.register(t8);L.register(n8);L.register(W2);L.register(r8);L.register(i8);L.register(a8);L.register(o8);L.register(s8);L.register(l8);L.register(u8);L.register(c8);L.register(d8);L.register(p8);L.register(f8);L.register(h8);L.register(q2);L.register(g8);L.register(m8);L.register(b8);L.register(E8);L.register(v8);L.register(y8);L.register(_8);L.register(T8);L.register(S8);L.register(w8);L.register(A8);L.register(C8);L.register(x8);L.register(k8);L.register(I8);L.register(R8);L.register(N8);L.register(O8);L.register(Mp);L.register(D8);L.register(L8);L.register(M8);L.register(F8);L.register(K2);L.register(P8);L.register(B8);L.register(em);L.register(U8);L.register($8);L.register(z8);L.register(H8);L.register(j8);L.register(G8);L.register(V8);L.register(W8);L.register(q8);L.register(Y2);L.register(K8);L.register(X2);L.register(Y8);L.register(X8);L.register(Z8);L.register(Q8);L.register(J8);L.register(e_);L.register(t_);L.register(n_);L.register(tm);L.register(r_);L.register(i_);L.register(a_);L.register(o_);L.register(s_);L.register(l_);L.register(u_);L.register(c_);L.register(Q2);L.register(d_);L.register($p);L.register(p_);L.register(Pp);L.register(f_);L.register(h_);L.register(g_);L.register(m_);L.register(b_);L.register(E_);L.register(v_);L.register(y_);L.register(__);L.register(T_);L.register(S_);L.register(w_);L.register(A_);L.register(C_);L.register(x_);L.register(k_);L.register(I_);L.register(R_);L.register(N_);L.register(O_);L.register(D_);L.register(L_);L.register(M_);L.register(F_);L.register(P_);L.register(B_);L.register(U_);L.register($_);L.register(z_);function Mb(){Mb=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,o){var s=new RegExp(i,a);return t.set(s,o||t.get(i)),dg(s,n.prototype)}function r(i,a){var o=t.get(a);return Object.keys(o).reduce(function(s,u){return s[u]=i[o[u]],s},Object.create(null))}return Soe(n,RegExp),n.prototype.exec=function(i){var a=e.exec.call(this,i);return a&&(a.groups=r(a,this)),a},n.prototype[Symbol.replace]=function(i,a){if(typeof a=="string"){var o=t.get(this);return e[Symbol.replace].call(this,i,a.replace(/\$<([^>]+)>/g,function(u,c){return"$"+o[c]}))}if(typeof a=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,s)),a.apply(this,u)})}return e[Symbol.replace].call(this,i,a)},Mb.apply(this,arguments)}function Soe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dg(e,t)}function dg(e,t){return dg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},dg(e,t)}function ck(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var woe=function(e){return function(t){return t===void 0&&(t={}),function(r){Ui(r,"element",n)};function n(r,i,a){var o,s;if(a&&a.tagName==="pre"&&r.tagName==="code"){var u=(r==null||(o=r.data)==null?void 0:o.meta)||(r==null||(s=r.properties)==null?void 0:s.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[],r.properties.className.push("code-highlight");var c,p,f=function(A){for(var D,k=D3(A.properties.className);!(D=k()).done;){var R=D.value;if(R.slice(0,9)==="language-")return R.slice(9).toLowerCase()}return null}(r);if(f)try{var m;m=f!=null&&f.includes("diff-")?f.split("-")[1]:f,c=e.highlight(T1(r),m),a.properties.className=(a.properties.className||[]).concat("language-"+m)}catch(A){if(!t.ignoreMissing||!/Unknown language/.test(A.message))throw A;c=r}else c=r;c.children=(p=1,function A(D){return D.reduce(function(k,R){if(R.type==="text"){var B=R.value,W=(B.match(/\n/g)||"").length;if(W===0)R.position={start:{line:p,column:1},end:{line:p,column:1}},k.push(R);else for(var P,Q=B.split(` +`),z=D3(Q.entries());!(P=z()).done;){var le=P.value,he=le[0],de=le[1];k.push({type:"text",value:he===Q.length-1?de:de+` +`,position:{start:{line:p+he,column:1},end:{line:p+he,column:1}}})}return p+=W,k}if(Object.prototype.hasOwnProperty.call(R,"children")){var fe=p;return R.children=A(R.children),k.push(R),R.position={start:{line:fe,column:1},end:{line:p,column:1}},k}return k.push(R),k},[])})(c.children),c.position=c.children.length>0?{start:{line:c.children[0].position.start.line,column:0},end:{line:c.children[c.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var g,E=function(A){var D=/{([\d,-]+)}/,k=A.split(",").map(function(W){return W.trim()}).join();if(D.test(k)){var R=D.exec(k)[1],B=Xae(R);return function(W){return B.includes(W+1)}}return function(){return!1}}(u),b=function(A){var D=Mb(/showLineNumbers=([0-9]+)/i,{lines:1});if(D.test(A)){var k=D.exec(A);return Number(k.groups.lines)}return 1}(u),T=function(A){for(var D=new Array(A),k=0;k=D+1});k.children=R.children,!u.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some(function(B){return u.toLowerCase().includes(B)})||(k.properties.line=[(D+b).toString()],k.properties.className.push("line-number")),E(D)&&k.properties.className.push("highlight-line"),(f==="diff"||f!=null&&f.includes("diff-"))&&T1(k).substring(0,1)==="-"?k.properties.className.push("deleted"):(f==="diff"||f!=null&&f.includes("diff-"))&&T1(k).substring(0,1)==="+"&&k.properties.className.push("inserted")},w=D3(T.entries());!(g=w()).done;)y();T.length>0&&T1(T[T.length-1]).trim()===""&&T.pop(),r.children=T}}}},Aoe=woe(L);const nM="֑-߿יִ-﷽ﹰ-ﻼ",rM="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",Coe=new RegExp("^[^"+rM+"]*["+nM+"]"),xoe=new RegExp("^[^"+nM+"]*["+rM+"]");function koe(e){const t=String(e||"");return Coe.test(t)?"rtl":xoe.test(t)?"ltr":"neutral"}function Ioe(e,t){const n=e.schema,r=e.language,i=e.direction,a=e.editableOrEditingHost;let o;if(t.type==="element"&&t.properties){const c=t.properties.xmlLang||t.properties.lang,p=t.properties.type||"text",f=dk(t);c!=null&&(e.language=String(c)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=yl),f==="rtl"?o=f:f==="ltr"||f!=="auto"&&t.tagName==="html"||f!=="auto"&&t.tagName==="input"&&p==="tel"?o="ltr":(f==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?o=L3(T1(t)):t.tagName==="input"&&(p==="email"||p==="search"||p==="tel"||p==="text")?o=t.properties.value?L3(t.properties.value):"ltr":Ui(t,u)),o&&(e.direction=o)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return s;function s(){e.schema=n,e.language=r,e.direction=i,e.editableOrEditingHost=a}function u(c){if(c.type==="text")return o=L3(c.value),o?Ab:void 0;if(c!==t&&c.type==="element"&&(c.tagName==="bdi"||c.tagName==="script"||c.tagName==="style"||c.tagName==="textare"||dk(c)))return Cd}}function L3(e){const t=koe(e);return t==="neutral"?void 0:t}function dk(e){const t=e.type==="element"&&e.properties&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}const Roe=F2("operator",{unknown:Uoe,invalid:Ooe,handlers:{"=":Doe,"~=":Loe,"|=":Moe,"^=":Foe,"$=":Poe,"*=":Boe}});function Noe(e,t,n){const r=e.attrs;let i=-1;for(;++i=fk&&e.charCodeAt(t)<=Woe;)c=c*10+(e.charCodeAt(t)-fk),t++;return t===u?null:c}function s(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?hk.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function gk(e){return Yoe(qoe(e))}const Xoe=gk.default||gk,Zoe=F2("name",{unknown:Tse,invalid:_se,handlers:{any:Fb,"any-link":Qoe,blank:Joe,checked:ese,dir:tse,disabled:aM,empty:nse,enabled:rse,"first-child":ise,"first-of-type":ase,has:ose,lang:sse,"last-child":lse,"last-of-type":use,matches:Fb,not:cse,"nth-child":dse,"nth-last-child":pse,"nth-of-type":hse,"nth-last-of-type":fse,"only-child":gse,"only-of-type":mse,optional:bse,"read-only":Ese,"read-write":oM,required:sM,root:vse,scope:yse}});iM.needsIndex=["any","first-child","first-of-type","last-child","last-of-type","matches","not","nth-child","nth-last-child","nth-of-type","nth-last-of-type","only-child","only-of-type"];function iM(e,t,n,r,i){const a=e.pseudos;let o=-1;for(;++o0}function sse(e,t,n,r,i){return i.language!==""&&i.language!==void 0&&Goe(i.language,lp(e.value)).length>0}function lse(e,t,n,r,i){return To(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function use(e,t,n,r,i){return To(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function Fb(e,t,n,r,i){const a={...i,found:!1,shallow:!1,one:!0,scopeElements:[t],results:[],rootQuery:H_(e.value)};return j_(a,t),a.results[0]===t}function cse(e,t,n,r,i){return!Fb(e,t,n,r,i)}function dse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function pse(e,t,n,r,i){const a=nm(e);return To(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function fse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function hse(e,t,n,r,i){const a=nm(e);return To(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function gse(e,t,n,r,i){return To(i,e),i.elementCount===1}function mse(e,t,n,r,i){return To(i,e),i.typeCount===1}function bse(e,t){return!sM(e,t)}function Ese(e,t,n,r,i){return!oM(e,t,n,r,i)}function oM(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Hr(t,"readOnly")&&!Hr(t,"disabled"):!!i.editableOrEditingHost}function sM(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Hr(t,"required")}function vse(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function yse(e,t,n,r,i){return i.scopeElements.includes(t)}function _se(){throw new Error("Invalid pseudo-selector")}function Tse(e){throw e.name?new Error("Unknown pseudo-selector `"+e.name+"`"):new Error("Unexpected pseudo-element or empty pseudo-class")}function lM(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";M3(a,p,c)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.rule.nestingOperator===null?M3(a,"descendant",s):s.rule.nestingOperator==="~"&&M3(a,"generalSibling",s)}return a}function gh(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:wse}function M3(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function mk(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}var cM={},G_={},V_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o==="-"||o==="_"}e.isIdentStart=t;function n(o){return o>="a"&&o<="z"||o>="A"&&o<="Z"||o>="0"&&o<="9"||o==="-"||o==="_"}e.isIdent=n;function r(o){return o>="a"&&o<="f"||o>="A"&&o<="F"||o>="0"&&o<="9"}e.isHex=r;function i(o){for(var s=o.length,u="",c=0;c="A"&&p<="Z"||p>="a"&&p<="z"||c!==0&&p>="0"&&p<="9")u+=p;else{var f=p.charCodeAt(0);if((f&63488)===55296){var m=o.charCodeAt(c++);if((f&64512)!==55296||(m&64512)!==56320)throw Error("UCS-2(decode): illegal sequence");f=((f&1023)<<10)+(m&1023)+65536}u+="\\"+f.toString(16)+" "}c++}return u}e.escapeIdentifier=i;function a(o){for(var s=o.length,u="",c=0,p;c":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},e.strReplacementsRev={"\n":"\\n","\r":"\\r"," ":"\\t","\f":"\\f","\v":"\\v"},e.singleQuoteEscapeChars={n:` +`,r:"\r",t:" ",f:"\f","\\":"\\","'":"'"},e.doubleQuotesEscapeChars={n:` +`,r:"\r",t:" ",f:"\f","\\":"\\",'"':'"'}})(V_);Object.defineProperty(G_,"__esModule",{value:!0});var Ia=V_;function xse(e,t,n,r,i,a){var o=e.length,s="";function u(b,T){var v="";for(t++,s=e.charAt(t);t=o)throw Error("Expected symbol but end of file reached.");if(s=e.charAt(t),Ia.identSpecialChars[s])b+=s;else if(Ia.isHex(s)){var T=s;for(t++,s=e.charAt(t);Ia.isHex(s);)T+=s,t++,s=e.charAt(t);s===" "&&(t++,s=e.charAt(t)),b+=String.fromCharCode(parseInt(T,16));continue}else b+=s}else return b;t++,s=e.charAt(t)}return b}function p(){s=e.charAt(t);for(var b=!1;s===" "||s===" "||s===` +`||s==="\r"||s==="\f";)b=!0,t++,s=e.charAt(t);return b}function f(){var b=m();if(t=o||s===","||s===")"));)if(i[s]){var y=s;if(t++,p(),T=E(),!T)throw Error('Rule expected after "'+y+'".');T.nestingOperator=y}else T=E(),T&&(T.nestingOperator=null);return b}function E(){for(var b=null;t=o)throw Error('Expected "=" but end of file reached.');if(s!=="=")throw Error('Expected "=" but "'+s+'" found.');T.operator=v+"=",t++,p();var y="";if(T.valueType="string",s==='"')y=u('"',Ia.doubleQuotesEscapeChars);else if(s==="'")y=u("'",Ia.singleQuoteEscapeChars);else if(a&&s==="$")t++,y=c(),T.valueType="substitute";else{for(;t=o)throw Error('Expected "]" but end of file reached.');if(s!=="]")throw Error('Expected "]" but "'+s+'" found.');t++,T.value=y}b=b||{},(b.attrs=b.attrs||[]).push(T)}else if(s===":"){t++;var w=c(),A={name:w};if(s==="("){t++;var D="";if(p(),n[w]==="selector")A.valueType="selector",D=m();else{if(A.valueType=n[w]||"string",s==='"')D=u('"',Ia.doubleQuotesEscapeChars);else if(s==="'")D=u("'",Ia.singleQuoteEscapeChars);else if(a&&s==="$")t++,D=c(),A.valueType="substitute";else{for(;t=o)throw Error('Expected ")" but end of file reached.');if(s!==")")throw Error('Expected ")" but "'+s+'" found.');t++,A.value=D}b=b||{},(b.pseudos=b.pseudos||[]).push(A)}else break;return b}return f()}G_.parseCssSelector=xse;var W_={};Object.defineProperty(W_,"__esModule",{value:!0});var ki=V_;function mh(e){var t="";switch(e.type){case"ruleSet":for(var n=e.rule,r=[];n;)n.nestingOperator&&r.push(n.nestingOperator),r.push(mh(n)),n=n.rule;t=r.join(" ");break;case"selectors":t=e.selectors.map(mh).join(", ");break;case"rule":e.tagName&&(e.tagName==="*"?t="*":t=ki.escapeIdentifier(e.tagName)),e.id&&(t+="#"+ki.escapeIdentifier(e.id)),e.classNames&&(t+=e.classNames.map(function(i){return"."+ki.escapeIdentifier(i)}).join("")),e.attrs&&(t+=e.attrs.map(function(i){return"operator"in i?i.valueType==="substitute"?"["+ki.escapeIdentifier(i.name)+i.operator+"$"+i.value+"]":"["+ki.escapeIdentifier(i.name)+i.operator+ki.escapeStr(i.value)+"]":"["+ki.escapeIdentifier(i.name)+"]"}).join("")),e.pseudos&&(t+=e.pseudos.map(function(i){return i.valueType?i.valueType==="selector"?":"+ki.escapeIdentifier(i.name)+"("+mh(i.value)+")":i.valueType==="substitute"?":"+ki.escapeIdentifier(i.name)+"($"+i.value+")":i.valueType==="numeric"?":"+ki.escapeIdentifier(i.name)+"("+i.value+")":":"+ki.escapeIdentifier(i.name)+"("+ki.escapeIdentifier(i.value)+")":":"+ki.escapeIdentifier(i.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return t}W_.renderEntity=mh;Object.defineProperty(cM,"__esModule",{value:!0});var kse=G_,Ise=W_,Rse=function(){function e(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}return e.prototype.registerSelectorPseudos=function(){for(var t=[],n=0;n","+","~");function Ose(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return rm.parse(e)}function Dse(e,t,n){const r=Lse(e,t,n);return j_(r,t||void 0),r.results}function Lse(e,t,n){return{rootQuery:H_(Ose(e)),results:[],scopeElements:t?t.type==="root"?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:n==="svg"?yl:Tu,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}const dM=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=dM(n.children))}),t),Mse=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Dse(t,r);i&&i.length>0&&Ui(r,i,(a,o,s)=>{n(a,o,s)});return}Ui(r,(i,a,o)=>{n(i,a,o)})}}},Fse=Mse;var Pse={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function Bse(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}function Use(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function pM(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?pM(t.parentElement):null}function $se(e){var t=n=>{var r=pM(n.target);r&&(r.classList.add("active"),Use(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};C.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var zse=function(t){return n=>{Ui(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=tn({},r.properties,{"data-meta":String(r.data.meta)}))})}},Hse=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"];const jse=ut.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:o=!1,skipHtml:s=!0,onScroll:u,onMouseOver:c,pluginsFilter:p,rehypeRewrite:f,wrapperElement:m={},warpperElement:g={}}=e,E=E1(e,Hse),b=ut.useRef(null);C.useImperativeHandle(t,()=>tn({},e,{mdp:b}),[b,e]);var T=(n||"")+" "+(r||"");$se(b);var v=(k,R,B)=>{if(k.type==="element"&&B&&B.type==="root"&&/h(1|2|3|4|5|6)/.test(k.tagName)){var W=k.children&&k.children[0];W&&W.properties&&W.properties.ariaHidden==="true"&&(W.properties=tn({class:"anchor"},W.properties),W.children=[Pse])}if(k.type==="element"&&k.tagName==="pre"&&!o){var P=dM(k.children);k.children.push(Bse(P))}f&&f(k,R,B)},y=[zse,[Aoe,{ignoreMissing:!0}],Fae,$ae,Wae,[Fse,{rewrite:v}],[Gae,{properties:"attr"}],...E.rehypePlugins||[]],w={allowElement:(k,R,B)=>E.allowElement?E.allowElement(k,R,B):/^[A-Za-z0-9]+$/.test(k.tagName)};s&&y.push(kae);var A=[...E.remarkPlugins||[],Kte],D=tn({},g,m);return I.jsx("div",tn({ref:b,onScroll:u,onMouseOver:c},D,{className:T,style:a,children:I.jsx(HE,tn({},w,E,{skipHtml:s,rehypePlugins:p?p("rehype",y):y,remarkPlugins:p?p("remark",A):A,children:i||""}))}))}),Gse=He(jse)` + pre { + background-color: ${e=>e.light?Kt:Lt}; + border-radius: ${wt}; + /* border: 0.5px solid ${vt}; */ + + max-width: calc(100vw - 24px); + } + + code { + color: #f78383; + word-wrap: break-word; + border-radius: ${wt}; + background-color: ${Lt}; + } + + pre > code { + background-color: ${e=>e.light?Kt:Lt}; + color: ${Ht}; + padding: 12px; + + ${e=>{if(e.maxHeight)return` + max-height: ${e.maxHeight}px; + overflow-y: auto; + `}} + } + + background-color: ${e=>e.light?"transparent":Kt}; + font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, + Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; + font-size: ${e=>e.fontSize||nr()}px; + padding: 8px; + color: ${Ht}; +`;function pg(e){return I.jsx(Gse,{components:{a:({node:t,...n})=>I.jsx("a",{...n,target:"_blank",children:n.children})},className:e.className,maxHeight:e.maxHeight,fontSize:nr(),source:e.source||"",wrapperElement:{"data-color-mode":"dark"}})}const Vse=He.div``,Wse=He.div` + display: flex; + gap: 2px; + align-items: center; + background-color: ${Kt}; + box-shadow: 1px 1px 10px ${Kt}; + border-radius: ${wt}; + z-index: 100; + position: absolute; + right: 8px; + top: 16px; + height: 0; +`,qse=He.div` + padding: 2px; + padding-right: 0px; + background-color: ${e=>e.isUserInput?Lt:Kt}; + font-size: ${e=>e.fontSize||nr()}px; + border-radius: ${wt}; + overflow: hidden; +`;function Kse(e){var o,s;const[t,n]=C.useState(!1),r=C.useRef(null),i=C.useRef(null),a=e.historyNode.step.name==="UserInputStep";return C.useEffect(()=>{i!=null&&i.current&&i.current.focus()},[i]),C.useEffect(()=>{var u;t&&((u=r.current)==null||u.focus())},[t]),I.jsx(Vse,{stepDepth:e.historyNode.depth||0,inFuture:e.inFuture,onMouseEnter:()=>{n(!0)},onMouseLeave:()=>{n(!1)},hidden:e.historyNode.step.hide,children:I.jsxs("div",{children:[t&&(((o=e.historyNode.observation)==null?void 0:o.error)||e.noUserInputParent)&&I.jsxs(Wse,{children:[((s=e.historyNode.observation)==null?void 0:s.error)&&I.jsx(vi,{text:"Retry",onClick:u=>{u.stopPropagation(),e.onRetry()},children:I.jsx(aY,{width:"1.4em",height:"1.4em",onClick:e.onRetry})}),e.noUserInputParent&&I.jsx(vi,{text:"Delete",onClick:u=>{u.stopPropagation(),e.onDelete()},children:I.jsx(T2,{width:"1.4em",height:"1.4em",onClick:e.onRetry})})]}),I.jsx(qse,{hidden:!e.open,isUserInput:a,fontSize:nr(),children:I.jsx(pg,{source:e.historyNode.step.description})})]})})}var bn={};/** @license React v17.0.2 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var im=60103,am=60106,zp=60107,Hp=60108,jp=60114,Gp=60109,Vp=60110,Wp=60112,qp=60113,q_=60120,Kp=60115,Yp=60116,fM=60121,hM=60122,gM=60117,mM=60129,bM=60131;if(typeof Symbol=="function"&&Symbol.for){var mr=Symbol.for;im=mr("react.element"),am=mr("react.portal"),zp=mr("react.fragment"),Hp=mr("react.strict_mode"),jp=mr("react.profiler"),Gp=mr("react.provider"),Vp=mr("react.context"),Wp=mr("react.forward_ref"),qp=mr("react.suspense"),q_=mr("react.suspense_list"),Kp=mr("react.memo"),Yp=mr("react.lazy"),fM=mr("react.block"),hM=mr("react.server.block"),gM=mr("react.fundamental"),mM=mr("react.debug_trace_mode"),bM=mr("react.legacy_hidden")}function Ka(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case im:switch(e=e.type,e){case zp:case jp:case Hp:case qp:case q_:return e;default:switch(e=e&&e.$$typeof,e){case Vp:case Wp:case Yp:case Kp:case Gp:return e;default:return t}}case am:return t}}}var Yse=Gp,Xse=im,Zse=Wp,Qse=zp,Jse=Yp,ele=Kp,tle=am,nle=jp,rle=Hp,ile=qp;bn.ContextConsumer=Vp;bn.ContextProvider=Yse;bn.Element=Xse;bn.ForwardRef=Zse;bn.Fragment=Qse;bn.Lazy=Jse;bn.Memo=ele;bn.Portal=tle;bn.Profiler=nle;bn.StrictMode=rle;bn.Suspense=ile;bn.isAsyncMode=function(){return!1};bn.isConcurrentMode=function(){return!1};bn.isContextConsumer=function(e){return Ka(e)===Vp};bn.isContextProvider=function(e){return Ka(e)===Gp};bn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===im};bn.isForwardRef=function(e){return Ka(e)===Wp};bn.isFragment=function(e){return Ka(e)===zp};bn.isLazy=function(e){return Ka(e)===Yp};bn.isMemo=function(e){return Ka(e)===Kp};bn.isPortal=function(e){return Ka(e)===am};bn.isProfiler=function(e){return Ka(e)===jp};bn.isStrictMode=function(e){return Ka(e)===Hp};bn.isSuspense=function(e){return Ka(e)===qp};bn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zp||e===jp||e===mM||e===Hp||e===qp||e===q_||e===bM||typeof e=="object"&&e!==null&&(e.$$typeof===Yp||e.$$typeof===Kp||e.$$typeof===Gp||e.$$typeof===Vp||e.$$typeof===Wp||e.$$typeof===gM||e.$$typeof===fM||e[0]===hM)};bn.typeOf=Ka;let bk=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ek=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",F3=(e,t)=>{if(e.clientHeight{let i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,ale=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var ole=(e,t)=>{var n,r,i,a,o,s;if(typeof document>"u")return[];let{scrollMode:u,block:c,inline:p,boundary:f,skipOverflowHiddenElements:m}=t,g=typeof f=="function"?f:he=>he!==f;if(!bk(e))throw new TypeError("Invalid target");let E=document.scrollingElement||document.documentElement,b=[],T=e;for(;bk(T)&&g(T);){if(T=ale(T),T===E){b.push(T);break}T!=null&&T===document.body&&F3(T)&&!F3(document.documentElement)||T!=null&&F3(T,m)&&b.push(T)}let v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,w=(o=window.scrollX)!=null?o:pageXOffset,A=(s=window.scrollY)!=null?s:pageYOffset,{height:D,width:k,top:R,right:B,bottom:W,left:P}=e.getBoundingClientRect(),Q=c==="start"||c==="nearest"?R:c==="end"?W:R+D/2,z=p==="center"?P+k/2:p==="end"?B:P,le=[];for(let he=0;he=0&&P>=0&&W<=y&&B<=v&&R>=V&&W<=N&&P>=me&&B<=ce)return le;let oe=getComputedStyle(de),O=parseInt(oe.borderLeftWidth,10),re=parseInt(oe.borderTopWidth,10),Te=parseInt(oe.borderRightWidth,10),K=parseInt(oe.borderBottomWidth,10),xe=0,ne=0,Le="offsetWidth"in de?de.offsetWidth-de.clientWidth-O-Te:0,Re="offsetHeight"in de?de.offsetHeight-de.clientHeight-re-K:0,Xe="offsetWidth"in de?de.offsetWidth===0?0:Z/de.offsetWidth:0,Ve="offsetHeight"in de?de.offsetHeight===0?0:fe/de.offsetHeight:0;if(E===de)xe=c==="start"?Q:c==="end"?Q-y:c==="nearest"?R0(A,A+y,y,re,K,A+Q,A+Q+D,D):Q-y/2,ne=p==="start"?z:p==="center"?z-v/2:p==="end"?z-v:R0(w,w+v,v,O,Te,w+z,w+z+k,k),xe=Math.max(0,xe+A),ne=Math.max(0,ne+w);else{xe=c==="start"?Q-V-re:c==="end"?Q-N+K+Re:c==="nearest"?R0(V,N,fe,re,K+Re,Q,Q+D,D):Q-(V+fe/2)+Re/2,ne=p==="start"?z-me-O:p==="center"?z-(me+Z/2)+Le/2:p==="end"?z-ce+Te+Le:R0(me,ce,Z,O,Te+Le,z,z+k,k);let{scrollLeft:dt,scrollTop:ot}=de;xe=Math.max(0,Math.min(ot+xe/Ve,de.scrollHeight-fe/Ve+Re)),ne=Math.max(0,Math.min(dt+ne/Xe,de.scrollWidth-Z/Xe+Le)),Q+=ot-xe,z+=dt-ne}le.push({el:de,top:xe,left:ne})}return le},fg=function(){return fg=Object.assign||function(t){for(var n,r=1,i=arguments.length;r1?i-1:0),o=1;o=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function O0(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=cp(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function cp(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?cp(1,0,n,r,!1):cp(-1,n-1,n,r,!1):-1}function yk(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(vk(i,e,n)||r&&vk(i,n.document.activeElement,n))})}var ple=vM(function(e){_M(e).textContent=""},500);function fle(e,t){var n=_M(t);e&&(n.textContent=e,ple(t))}function _M(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var hle=["isInitialMount","highlightedIndex","items","environment"],TM={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function gle(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){mle(o,e,t,n),n[o]!==t[o]&&(a[o]=n[o])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(tn({type:i},a))}function mle(e,t,n,r){var i=t.props,a=t.type,o="on"+K_(e)+"Change";i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](tn({type:a},r))}function ble(e,t){return t.changes}function Ele(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var vle=vM(function(e,t){fle(e(),t)},200),yle=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function _le(e){var t=e.id,n=t===void 0?"downshift-"+ule():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(c){return n+"-item-"+c},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"});return u.current}function Tle(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw new Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function Sle(e){return e?String(e):""}function K_(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function SM(e){var t=C.useRef(e);return t.current=e,t}function wle(e,t,n){var r=C.useRef(),i=C.useRef(),a=C.useCallback(function(m,g){i.current=g,m=Pb(m,g.props);var E=e(m,g),b=g.props.stateReducer(m,tn({},g,{changes:E}));return b},[e]),o=C.useReducer(a,t),s=o[0],u=o[1],c=SM(n),p=C.useCallback(function(m){return u(tn({props:c.current},m))},[c]),f=i.current;return C.useEffect(function(){f&&r.current&&r.current!==s&&gle(f,Pb(r.current,f.props),s),r.current=s},[s,n,f]),[s,p]}var Ld={itemToString:Sle,stateReducer:ble,getA11ySelectionMessage:Ele,scrollIntoView:lle,environment:typeof window>"u"?{}:window};function co(e,t,n){n===void 0&&(n=TM);var r=e["default"+K_(t)];return r!==void 0?r:n[t]}function D0(e,t,n){n===void 0&&(n=TM);var r=e[t];if(r!==void 0)return r;var i=e["initial"+K_(t)];return i!==void 0?i:co(e,t,n)}function Ale(e){var t=D0(e,"selectedItem"),n=D0(e,"isOpen"),r=D0(e,"highlightedIndex"),i=D0(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Md(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a!==void 0?a:o?r.indexOf(o):n===0?-1:n<0?r.length-1:0}function Cle(e,t,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if((n==null?void 0:n.addEventListener)!=null){var a=function(){i.current.isMouseDown=!0},o=function(f){i.current.isMouseDown=!1,e&&!yk(f.target,t.map(function(m){return m.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},c=function(f){e&&!i.current.isTouchMove&&!yk(f.target,t.map(function(m){return m.current}),n,!1)&&r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}},[e,n]),i}var xle=function(){return EM};function _k(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=E1(n,hle);C.useEffect(function(){r||vle(function(){return e(tn({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function kle(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=C.useRef(!0);return yle(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var Ile=EM;function Tk(e,t,n){var r;n===void 0&&(n=!0);var i=((r=e.items)==null?void 0:r.length)&&t>=0;return tn({isOpen:!1,highlightedIndex:-1},i&&tn({selectedItem:e.items[t],isOpen:co(e,"isOpen"),highlightedIndex:co(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Rle(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Md(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Md(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:co(i,"highlightedIndex"),isOpen:co(i,"isOpen"),selectedItem:co(i,"selectedItem"),inputValue:co(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return tn({},e,a)}Ee.array.isRequired,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.bool,Ee.bool,Ee.bool,Ee.any,Ee.any,Ee.any,Ee.string,Ee.string,Ee.string,Ee.func,Ee.string,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});function Nle(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}fg(fg({},Ld),{getA11yStatusMessage:Nle});var Y_=0,X_=1,Z_=2,Q_=3,J_=4,e7=5,t7=6,n7=7,r7=8,hg=9,i7=10,wM=11,AM=12,a7=13,CM=14,xM=15,kM=16,IM=17,RM=18,o7=19,NM=20,OM=21,s7=22,DM=Object.freeze({__proto__:null,InputKeyDownArrowDown:Y_,InputKeyDownArrowUp:X_,InputKeyDownEscape:Z_,InputKeyDownHome:Q_,InputKeyDownEnd:J_,InputKeyDownPageUp:e7,InputKeyDownPageDown:t7,InputKeyDownEnter:n7,InputChange:r7,InputBlur:hg,InputFocus:i7,MenuMouseLeave:wM,ItemMouseMove:AM,ItemClick:a7,ToggleButtonClick:CM,FunctionToggleMenu:xM,FunctionOpenMenu:kM,FunctionCloseMenu:IM,FunctionSetHighlightedIndex:RM,FunctionSelectItem:o7,FunctionSetInputValue:NM,FunctionReset:OM,ControlledPropUpdatedSelectedItem:s7});function Ole(e){var t=Ale(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),tn({},t,{inputValue:r})}Ee.array.isRequired,Ee.func,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.bool,Ee.bool,Ee.bool,Ee.any,Ee.any,Ee.any,Ee.string,Ee.string,Ee.string,Ee.string,Ee.string,Ee.string,Ee.func,Ee.string,Ee.string,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.func,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});function Dle(e,t,n){var r=C.useRef(),i=wle(e,t,n),a=i[0],o=i[1];return C.useEffect(function(){yM(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:s7,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[Pb(a,n),o]}var Lle=tn({},Ld,{selectedItemChanged:function(t,n){return t!==n},getA11yStatusMessage:cle});function Mle(e,t){var n,r=t.type,i=t.props,a=t.altKey,o;switch(r){case a7:o={isOpen:co(i,"isOpen"),highlightedIndex:co(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Y_:e.isOpen?o={highlightedIndex:O0(1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:a&&e.selectedItem==null?-1:Md(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case X_:e.isOpen?a?o=Tk(i,e.highlightedIndex):o={highlightedIndex:O0(-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Md(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case n7:o=Tk(i,e.highlightedIndex);break;case Z_:o=tn({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case e7:o={highlightedIndex:O0(-10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case t7:o={highlightedIndex:O0(10,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,!1)};break;case Q_:o={highlightedIndex:cp(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case J_:o={highlightedIndex:cp(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case hg:o=tn({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case r7:o={isOpen:!0,highlightedIndex:co(i,"highlightedIndex"),inputValue:t.inputValue};break;case i7:o={isOpen:!0,highlightedIndex:Md(i,e,0)};break;case o7:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case s7:o={inputValue:t.inputValue};break;default:return Rle(e,t,DM)}return tn({},e,o)}var Fle=["onMouseLeave","refKey","ref"],Ple=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],Ble=["onClick","onPress","refKey","ref"],Ule=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];LM.stateChangeTypes=DM;function LM(e){e===void 0&&(e={});var t=tn({},Lle,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,c=t.itemToString,p=Ole(t),f=Dle(Mle,p,t),m=f[0],g=f[1],E=m.isOpen,b=m.highlightedIndex,T=m.selectedItem,v=m.inputValue,y=C.useRef(null),w=C.useRef({}),A=C.useRef(null),D=C.useRef(null),k=C.useRef(!0),R=_le(t),B=C.useRef(),W=SM({state:m,props:t}),P=C.useCallback(function(xe){return w.current[R.getItemId(xe)]},[R]);_k(s,[E,b,v,i],tn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m)),_k(u,[T],tn({isInitialMount:k.current,previousResultCount:B.current,items:i,environment:o,itemToString:c},m));var Q=kle({menuElement:y.current,highlightedIndex:b,isOpen:E,itemRefs:w,scrollIntoView:a,getItemNodeFromIndex:P});Ile({isInitialMount:k.current,props:t,state:m}),C.useEffect(function(){var xe=n||r||E;xe&&A.current&&A.current.focus()},[]),C.useEffect(function(){k.current||(B.current=i.length)});var z=Cle(E,[A,y,D],o,function(){g({type:hg,selectItem:!1})}),le=xle();C.useEffect(function(){return k.current=!1,function(){k.current=!0}},[]),C.useEffect(function(){var xe;if(!E)w.current={};else if(((xe=o.document)==null?void 0:xe.activeElement)!==A.current){var ne;A==null||(ne=A.current)==null||ne.focus()}},[E,o]);var he=C.useMemo(function(){return{ArrowDown:function(ne){ne.preventDefault(),g({type:Y_,altKey:ne.altKey,getItemNodeFromIndex:P})},ArrowUp:function(ne){ne.preventDefault(),g({type:X_,altKey:ne.altKey,getItemNodeFromIndex:P})},Home:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:Q_,getItemNodeFromIndex:P}))},End:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:J_,getItemNodeFromIndex:P}))},Escape:function(ne){var Le=W.current.state;(Le.isOpen||Le.inputValue||Le.selectedItem||Le.highlightedIndex>-1)&&(ne.preventDefault(),g({type:Z_}))},Enter:function(ne){var Le=W.current.state;!Le.isOpen||ne.which===229||(ne.preventDefault(),g({type:n7,getItemNodeFromIndex:P}))},PageUp:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:e7,getItemNodeFromIndex:P}))},PageDown:function(ne){W.current.state.isOpen&&(ne.preventDefault(),g({type:t7,getItemNodeFromIndex:P}))}}},[g,W,P]),de=C.useCallback(function(xe){return tn({id:R.labelId,htmlFor:R.inputId},xe)},[R]),fe=C.useCallback(function(xe,ne){var Le,Re=xe===void 0?{}:xe,Xe=Re.onMouseLeave,Ve=Re.refKey,dt=Ve===void 0?"ref":Ve,ot=Re.ref,Ge=E1(Re,Fle),pt=ne===void 0?{}:ne;return pt.suppressRefError,tn((Le={},Le[dt]=N0(ot,function(U){y.current=U}),Le.id=R.menuId,Le.role="listbox",Le["aria-labelledby"]=Ge&&Ge["aria-label"]?void 0:""+R.labelId,Le.onMouseLeave=Uo(Xe,function(){g({type:wM})}),Le),Ge)},[g,le,R]),Z=C.useCallback(function(xe){var ne,Le,Re=xe===void 0?{}:xe,Xe=Re.item,Ve=Re.index,dt=Re.refKey,ot=dt===void 0?"ref":dt,Ge=Re.ref,pt=Re.onMouseMove,U=Re.onMouseDown,ie=Re.onClick;Re.onPress;var pe=Re.disabled,ke=E1(Re,Ple),ve=W.current,Se=ve.props,Me=ve.state,ze=Tle(Xe,Ve,Se.items,"Pass either item or index to getItemProps!"),Ke=ze[1],jt="onClick",ue=ie,ye=function(){Ke!==Me.highlightedIndex&&(Q.current=!1,g({type:AM,index:Ke,disabled:pe}))},We=function(){g({type:a7,index:Ke})},at=function(Y){return Y.preventDefault()};return tn((ne={},ne[ot]=N0(Ge,function(Qe){Qe&&(w.current[R.getItemId(Ke)]=Qe)}),ne.disabled=pe,ne.role="option",ne["aria-selected"]=""+(Ke===Me.highlightedIndex),ne.id=R.getItemId(Ke),ne),!pe&&(Le={},Le[jt]=Uo(ue,We),Le),{onMouseMove:Uo(pt,ye),onMouseDown:Uo(U,at)},ke)},[g,W,Q,R]),V=C.useCallback(function(xe){var ne,Le=xe===void 0?{}:xe,Re=Le.onClick;Le.onPress;var Xe=Le.refKey,Ve=Xe===void 0?"ref":Xe,dt=Le.ref,ot=E1(Le,Ble),Ge=W.current.state,pt=function(){g({type:CM})};return tn((ne={},ne[Ve]=N0(dt,function(U){D.current=U}),ne["aria-controls"]=R.menuId,ne["aria-expanded"]=Ge.isOpen,ne.id=R.toggleButtonId,ne.tabIndex=-1,ne),!ot.disabled&&tn({},{onClick:Uo(Re,pt)}),ot)},[g,W,R]),ce=C.useCallback(function(xe,ne){var Le,Re=xe===void 0?{}:xe,Xe=Re.onKeyDown,Ve=Re.onChange,dt=Re.onInput,ot=Re.onFocus,Ge=Re.onBlur;Re.onChangeText;var pt=Re.refKey,U=pt===void 0?"ref":pt,ie=Re.ref,pe=E1(Re,Ule),ke=ne===void 0?{}:ne;ke.suppressRefError;var ve=W.current.state,Se=function(at){var Qe=dle(at);Qe&&he[Qe]&&he[Qe](at)},Me=function(at){g({type:r7,inputValue:at.target.value})},ze=function(at){if(ve.isOpen&&!z.current.isMouseDown){var Qe=at.relatedTarget===null&&o.document.activeElement!==o.document.body;g({type:hg,selectItem:!Qe})}},Ke=function(){ve.isOpen||g({type:i7})},jt="onChange",ue={};if(!pe.disabled){var ye;ue=(ye={},ye[jt]=Uo(Ve,dt,Me),ye.onKeyDown=Uo(Xe,Se),ye.onBlur=Uo(Ge,ze),ye.onFocus=Uo(ot,Ke),ye)}return tn((Le={},Le[U]=N0(ie,function(We){A.current=We}),Le["aria-activedescendant"]=ve.isOpen&&ve.highlightedIndex>-1?R.getItemId(ve.highlightedIndex):"",Le["aria-autocomplete"]="list",Le["aria-controls"]=R.menuId,Le["aria-expanded"]=ve.isOpen,Le["aria-labelledby"]=pe&&pe["aria-label"]?void 0:""+R.labelId,Le.autoComplete="off",Le.id=R.inputId,Le.role="combobox",Le.value=ve.inputValue,Le),ue,pe)},[le,W,R,he,g,z,o]),N=C.useCallback(function(){g({type:xM})},[g]),me=C.useCallback(function(){g({type:IM})},[g]),oe=C.useCallback(function(){g({type:kM})},[g]),O=C.useCallback(function(xe){g({type:RM,highlightedIndex:xe})},[g]),re=C.useCallback(function(xe){g({type:o7,selectedItem:xe})},[g]),Te=C.useCallback(function(xe){g({type:NM,inputValue:xe})},[g]),K=C.useCallback(function(){g({type:OM})},[g]);return{getItemProps:Z,getLabelProps:de,getMenuProps:fe,getInputProps:ce,getToggleButtonProps:V,toggleMenu:N,openMenu:oe,closeMenu:me,setHighlightedIndex:O,setInputValue:Te,selectItem:re,reset:K,highlightedIndex:b,isOpen:E,selectedItem:T,inputValue:v}}function $le(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}Ee.array,Ee.array,Ee.array,Ee.func,Ee.func,Ee.func,Ee.number,Ee.number,Ee.number,Ee.func,Ee.func,Ee.string,Ee.string,Ee.shape({addEventListener:Ee.func,removeEventListener:Ee.func,document:Ee.shape({getElementById:Ee.func,activeElement:Ee.any,body:Ee.any})});Ld.itemToString,Ld.stateReducer,Ld.environment;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:MM,setPrototypeOf:Sk,isFrozen:zle,getPrototypeOf:Hle,getOwnPropertyDescriptor:FM}=Object;let{freeze:ti,seal:Ga,create:PM}=Object,{apply:Bb,construct:Ub}=typeof Reflect<"u"&&Reflect;ti||(ti=function(t){return t});Ga||(Ga=function(t){return t});Bb||(Bb=function(t,n,r){return t.apply(n,r)});Ub||(Ub=function(t,n){return new t(...n)});const L0=ba(Array.prototype.forEach),wk=ba(Array.prototype.pop),Xc=ba(Array.prototype.push),bh=ba(String.prototype.toLowerCase),P3=ba(String.prototype.toString),jle=ba(String.prototype.match),Zc=ba(String.prototype.replace),Gle=ba(String.prototype.indexOf),Vle=ba(String.prototype.trim),Ii=ba(RegExp.prototype.test),Qc=Wle(TypeError);function ba(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:bh;Sk&&Sk(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const a=n(i);a!==i&&(zle(t)||(t[r]=a),i=a)}e[i]=!0}return e}function Xu(e){const t=PM(null);for(const[n,r]of MM(e))FM(e,n)!==void 0&&(t[n]=r);return t}function M0(e,t){for(;e!==null;){const r=FM(e,t);if(r){if(r.get)return ba(r.get);if(typeof r.value=="function")return ba(r.value)}e=Hle(e)}function n(r){return console.warn("fallback value for",r),null}return n}const Ak=ti(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),B3=ti(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),U3=ti(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),qle=ti(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$3=ti(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Kle=ti(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ck=ti(["#text"]),xk=ti(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z3=ti(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),kk=ti(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F0=ti(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Yle=Ga(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xle=Ga(/<%[\w\W]*|[\w\W]*%>/gm),Zle=Ga(/\${[\w\W]*}/gm),Qle=Ga(/^data-[\-\w.\u00B7-\uFFFF]/),Jle=Ga(/^aria-[\-\w]+$/),BM=Ga(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eue=Ga(/^(?:\w+script|data):/i),tue=Ga(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),UM=Ga(/^html$/i);var Ik=Object.freeze({__proto__:null,MUSTACHE_EXPR:Yle,ERB_EXPR:Xle,TMPLIT_EXPR:Zle,DATA_ATTR:Qle,ARIA_ATTR:Jle,IS_ALLOWED_URI:BM,IS_SCRIPT_OR_DATA:eue,ATTR_WHITESPACE:tue,DOCTYPE_NAME:UM});const nue=function(){return typeof window>"u"?null:window},rue=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function $M(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nue();const t=qe=>$M(qe);if(t.version="3.0.6",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:u,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,E=u.prototype,b=M0(E,"cloneNode"),T=M0(E,"nextSibling"),v=M0(E,"childNodes"),y=M0(E,"parentNode");if(typeof o=="function"){const qe=n.createElement("template");qe.content&&qe.content.ownerDocument&&(n=qe.content.ownerDocument)}let w,A="";const{implementation:D,createNodeIterator:k,createDocumentFragment:R,getElementsByTagName:B}=n,{importNode:W}=r;let P={};t.isSupported=typeof MM=="function"&&typeof y=="function"&&D&&D.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:z,TMPLIT_EXPR:le,DATA_ATTR:he,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:Z}=Ik;let{IS_ALLOWED_URI:V}=Ik,ce=null;const N=Ct({},[...Ak,...B3,...U3,...$3,...Ck]);let me=null;const oe=Ct({},[...xk,...z3,...kk,...F0]);let O=Object.seal(PM(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,Te=null,K=!0,xe=!0,ne=!1,Le=!0,Re=!1,Xe=!1,Ve=!1,dt=!1,ot=!1,Ge=!1,pt=!1,U=!0,ie=!1;const pe="user-content-";let ke=!0,ve=!1,Se={},Me=null;const ze=Ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ke=null;const jt=Ct({},["audio","video","img","source","image","track"]);let ue=null;const ye=Ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),We="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Y=Qe,se=!1,j=null;const $=Ct({},[We,at,Qe],P3);let J=null;const be=["application/xhtml+xml","text/html"],Fe="text/html";let De=null,tt=null;const Je=n.createElement("form"),Ze=function(ee){return ee instanceof RegExp||ee instanceof Function},Rt=function(){let ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(tt&&tt===ee)){if((!ee||typeof ee!="object")&&(ee={}),ee=Xu(ee),J=be.indexOf(ee.PARSER_MEDIA_TYPE)===-1?J=Fe:J=ee.PARSER_MEDIA_TYPE,De=J==="application/xhtml+xml"?P3:bh,ce="ALLOWED_TAGS"in ee?Ct({},ee.ALLOWED_TAGS,De):N,me="ALLOWED_ATTR"in ee?Ct({},ee.ALLOWED_ATTR,De):oe,j="ALLOWED_NAMESPACES"in ee?Ct({},ee.ALLOWED_NAMESPACES,P3):$,ue="ADD_URI_SAFE_ATTR"in ee?Ct(Xu(ye),ee.ADD_URI_SAFE_ATTR,De):ye,Ke="ADD_DATA_URI_TAGS"in ee?Ct(Xu(jt),ee.ADD_DATA_URI_TAGS,De):jt,Me="FORBID_CONTENTS"in ee?Ct({},ee.FORBID_CONTENTS,De):ze,re="FORBID_TAGS"in ee?Ct({},ee.FORBID_TAGS,De):{},Te="FORBID_ATTR"in ee?Ct({},ee.FORBID_ATTR,De):{},Se="USE_PROFILES"in ee?ee.USE_PROFILES:!1,K=ee.ALLOW_ARIA_ATTR!==!1,xe=ee.ALLOW_DATA_ATTR!==!1,ne=ee.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=ee.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=ee.SAFE_FOR_TEMPLATES||!1,Xe=ee.WHOLE_DOCUMENT||!1,ot=ee.RETURN_DOM||!1,Ge=ee.RETURN_DOM_FRAGMENT||!1,pt=ee.RETURN_TRUSTED_TYPE||!1,dt=ee.FORCE_BODY||!1,U=ee.SANITIZE_DOM!==!1,ie=ee.SANITIZE_NAMED_PROPS||!1,ke=ee.KEEP_CONTENT!==!1,ve=ee.IN_PLACE||!1,V=ee.ALLOWED_URI_REGEXP||BM,Y=ee.NAMESPACE||Qe,O=ee.CUSTOM_ELEMENT_HANDLING||{},ee.CUSTOM_ELEMENT_HANDLING&&Ze(ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(O.tagNameCheck=ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&Ze(ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(O.attributeNameCheck=ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ee.CUSTOM_ELEMENT_HANDLING&&typeof ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(O.allowCustomizedBuiltInElements=ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(xe=!1),Ge&&(ot=!0),Se&&(ce=Ct({},[...Ck]),me=[],Se.html===!0&&(Ct(ce,Ak),Ct(me,xk)),Se.svg===!0&&(Ct(ce,B3),Ct(me,z3),Ct(me,F0)),Se.svgFilters===!0&&(Ct(ce,U3),Ct(me,z3),Ct(me,F0)),Se.mathMl===!0&&(Ct(ce,$3),Ct(me,kk),Ct(me,F0))),ee.ADD_TAGS&&(ce===N&&(ce=Xu(ce)),Ct(ce,ee.ADD_TAGS,De)),ee.ADD_ATTR&&(me===oe&&(me=Xu(me)),Ct(me,ee.ADD_ATTR,De)),ee.ADD_URI_SAFE_ATTR&&Ct(ue,ee.ADD_URI_SAFE_ATTR,De),ee.FORBID_CONTENTS&&(Me===ze&&(Me=Xu(Me)),Ct(Me,ee.FORBID_CONTENTS,De)),ke&&(ce["#text"]=!0),Xe&&Ct(ce,["html","head","body"]),ce.table&&(Ct(ce,["tbody"]),delete re.tbody),ee.TRUSTED_TYPES_POLICY){if(typeof ee.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ee.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=ee.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=rue(g,i)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));ti&&ti(ee),tt=ee}},Zt=Ct({},["mi","mo","mn","ms","mtext"]),kt=Ct({},["foreignobject","desc","title","annotation-xml"]),nn=Ct({},["title","style","font","a","script"]),Yt=Ct({},B3);Ct(Yt,U3),Ct(Yt,qle);const jr=Ct({},$3);Ct(jr,Kle);const Gr=function(ee){let Be=y(ee);(!Be||!Be.tagName)&&(Be={namespaceURI:Y,tagName:"template"});const it=bh(ee.tagName),ln=bh(Be.tagName);return j[ee.namespaceURI]?ee.namespaceURI===at?Be.namespaceURI===Qe?it==="svg":Be.namespaceURI===We?it==="svg"&&(ln==="annotation-xml"||Zt[ln]):!!Yt[it]:ee.namespaceURI===We?Be.namespaceURI===Qe?it==="math":Be.namespaceURI===at?it==="math"&&kt[ln]:!!jr[it]:ee.namespaceURI===Qe?Be.namespaceURI===at&&!kt[ln]||Be.namespaceURI===We&&!Zt[ln]?!1:!jr[it]&&(nn[it]||!Yt[it]):!!(J==="application/xhtml+xml"&&j[ee.namespaceURI]):!1},Vr=function(ee){Xc(t.removed,{element:ee});try{ee.parentNode.removeChild(ee)}catch{ee.remove()}},Ta=function(ee,Be){try{Xc(t.removed,{attribute:Be.getAttributeNode(ee),from:Be})}catch{Xc(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(ee),ee==="is"&&!me[ee])if(ot||Ge)try{Vr(Be)}catch{}else try{Be.setAttribute(ee,"")}catch{}},ii=function(ee){let Be=null,it=null;if(dt)ee=""+ee;else{const ar=jle(ee,/^[\r\n\t ]+/);it=ar&&ar[0]}J==="application/xhtml+xml"&&Y===Qe&&(ee=''+ee+"");const ln=w?w.createHTML(ee):ee;if(Y===Qe)try{Be=new m().parseFromString(ln,J)}catch{}if(!Be||!Be.documentElement){Be=D.createDocument(Y,"template",null);try{Be.documentElement.innerHTML=se?A:ln}catch{}}const ir=Be.body||Be.documentElement;return ee&&it&&ir.insertBefore(n.createTextNode(it),ir.childNodes[0]||null),Y===Qe?B.call(Be,Xe?"html":"body")[0]:Xe?Be.documentElement:ir},Ir=function(ee){return k.call(ee.ownerDocument||ee,ee,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},ps=function(ee){return ee instanceof f&&(typeof ee.nodeName!="string"||typeof ee.textContent!="string"||typeof ee.removeChild!="function"||!(ee.attributes instanceof p)||typeof ee.removeAttribute!="function"||typeof ee.setAttribute!="function"||typeof ee.namespaceURI!="string"||typeof ee.insertBefore!="function"||typeof ee.hasChildNodes!="function")},fs=function(ee){return typeof s=="function"&&ee instanceof s},Wr=function(ee,Be,it){P[ee]&&L0(P[ee],ln=>{ln.call(t,Be,it,tt)})},hs=function(ee){let Be=null;if(Wr("beforeSanitizeElements",ee,null),ps(ee))return Vr(ee),!0;const it=De(ee.nodeName);if(Wr("uponSanitizeElement",ee,{tagName:it,allowedTags:ce}),ee.hasChildNodes()&&!fs(ee.firstElementChild)&&Ii(/<[/\w]/g,ee.innerHTML)&&Ii(/<[/\w]/g,ee.textContent))return Vr(ee),!0;if(!ce[it]||re[it]){if(!re[it]&&Rr(it)&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,it)||O.tagNameCheck instanceof Function&&O.tagNameCheck(it)))return!1;if(ke&&!Me[it]){const ln=y(ee)||ee.parentNode,ir=v(ee)||ee.childNodes;if(ir&&ln){const ar=ir.length;for(let Yn=ar-1;Yn>=0;--Yn)ln.insertBefore(b(ir[Yn],!0),T(ee))}}return Vr(ee),!0}return ee instanceof u&&!Gr(ee)||(it==="noscript"||it==="noembed"||it==="noframes")&&Ii(/<\/no(script|embed|frames)/i,ee.innerHTML)?(Vr(ee),!0):(Re&&ee.nodeType===3&&(Be=ee.textContent,L0([Q,z,le],ln=>{Be=Zc(Be,ln," ")}),ee.textContent!==Be&&(Xc(t.removed,{element:ee.cloneNode()}),ee.textContent=Be)),Wr("afterSanitizeElements",ee,null),!1)},Wt=function(ee,Be,it){if(U&&(Be==="id"||Be==="name")&&(it in n||it in Je))return!1;if(!(xe&&!Te[Be]&&Ii(he,Be))){if(!(K&&Ii(de,Be))){if(!me[Be]||Te[Be]){if(!(Rr(ee)&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,ee)||O.tagNameCheck instanceof Function&&O.tagNameCheck(ee))&&(O.attributeNameCheck instanceof RegExp&&Ii(O.attributeNameCheck,Be)||O.attributeNameCheck instanceof Function&&O.attributeNameCheck(Be))||Be==="is"&&O.allowCustomizedBuiltInElements&&(O.tagNameCheck instanceof RegExp&&Ii(O.tagNameCheck,it)||O.tagNameCheck instanceof Function&&O.tagNameCheck(it))))return!1}else if(!ue[Be]){if(!Ii(V,Zc(it,Z,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&ee!=="script"&&Gle(it,"data:")===0&&Ke[ee])){if(!(ne&&!Ii(fe,Zc(it,Z,"")))){if(it)return!1}}}}}}return!0},Rr=function(ee){return ee.indexOf("-")>0},_i=function(ee){Wr("beforeSanitizeAttributes",ee,null);const{attributes:Be}=ee;if(!Be)return;const it={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};let ln=Be.length;for(;ln--;){const ir=Be[ln],{name:ar,namespaceURI:Yn,value:wo}=ir,Xa=De(ar);let Nr=ar==="value"?wo:Vle(wo);if(it.attrName=Xa,it.attrValue=Nr,it.keepAttr=!0,it.forceKeepAttr=void 0,Wr("uponSanitizeAttribute",ee,it),Nr=it.attrValue,it.forceKeepAttr||(Ta(ar,ee),!it.keepAttr))continue;if(!Le&&Ii(/\/>/i,Nr)){Ta(ar,ee);continue}Re&&L0([Q,z,le],af=>{Nr=Zc(Nr,af," ")});const rf=De(ee.nodeName);if(Wt(rf,Xa,Nr)){if(ie&&(Xa==="id"||Xa==="name")&&(Ta(ar,ee),Nr=pe+Nr),w&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Yn)switch(g.getAttributeType(rf,Xa)){case"TrustedHTML":{Nr=w.createHTML(Nr);break}case"TrustedScriptURL":{Nr=w.createScriptURL(Nr);break}}try{Yn?ee.setAttributeNS(Yn,ar,Nr):ee.setAttribute(ar,Nr),wk(t.removed)}catch{}}}Wr("afterSanitizeAttributes",ee,null)},Al=function qe(ee){let Be=null;const it=Ir(ee);for(Wr("beforeSanitizeShadowDOM",ee,null);Be=it.nextNode();)Wr("uponSanitizeShadowNode",Be,null),!hs(Be)&&(Be.content instanceof a&&qe(Be.content),_i(Be));Wr("afterSanitizeShadowDOM",ee,null)};return t.sanitize=function(qe){let ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,it=null,ln=null,ir=null;if(se=!qe,se&&(qe=""),typeof qe!="string"&&!fs(qe))if(typeof qe.toString=="function"){if(qe=qe.toString(),typeof qe!="string")throw Qc("dirty is not a string, aborting")}else throw Qc("toString is not a function");if(!t.isSupported)return qe;if(Ve||Rt(ee),t.removed=[],typeof qe=="string"&&(ve=!1),ve){if(qe.nodeName){const wo=De(qe.nodeName);if(!ce[wo]||re[wo])throw Qc("root node is forbidden and cannot be sanitized in-place")}}else if(qe instanceof s)Be=ii(""),it=Be.ownerDocument.importNode(qe,!0),it.nodeType===1&&it.nodeName==="BODY"||it.nodeName==="HTML"?Be=it:Be.appendChild(it);else{if(!ot&&!Re&&!Xe&&qe.indexOf("<")===-1)return w&&pt?w.createHTML(qe):qe;if(Be=ii(qe),!Be)return ot?null:pt?A:""}Be&&dt&&Vr(Be.firstChild);const ar=Ir(ve?qe:Be);for(;ln=ar.nextNode();)hs(ln)||(ln.content instanceof a&&Al(ln.content),_i(ln));if(ve)return qe;if(ot){if(Ge)for(ir=R.call(Be.ownerDocument);Be.firstChild;)ir.appendChild(Be.firstChild);else ir=Be;return(me.shadowroot||me.shadowrootmode)&&(ir=W.call(r,ir,!0)),ir}let Yn=Xe?Be.outerHTML:Be.innerHTML;return Xe&&ce["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&Ii(UM,Be.ownerDocument.doctype.name)&&(Yn=" +`+Yn),Re&&L0([Q,z,le],wo=>{Yn=Zc(Yn,wo," ")}),w&&pt?w.createHTML(Yn):Yn},t.setConfig=function(){let qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(qe),Ve=!0},t.clearConfig=function(){tt=null,Ve=!1},t.isValidAttribute=function(qe,ee,Be){tt||Rt({});const it=De(qe),ln=De(ee);return Wt(it,ln,Be)},t.addHook=function(qe,ee){typeof ee=="function"&&(P[qe]=P[qe]||[],Xc(P[qe],ee))},t.removeHook=function(qe){if(P[qe])return wk(P[qe])},t.removeHooks=function(qe){P[qe]&&(P[qe]=[])},t.removeAllHooks=function(){P={}},t}var iue=$M(),l7={};const aue={folder:["folder","white"],"karma.conf.js":["karma","green"],"karma.conf.coffee":["karma","green"],"README.md":["info","blue"],"CHANGELOG.md":["clock","blue"],CHANGELOG:["clock","blue"],"CHANGES.md":["clock","blue"],"VERSION.md":["clock","blue"],VERSION:["clock","blue"],mvnw:["maven","red"],"tsconfig.json":["tsconfig","blue"],"swagger.json":["json","green"],"swagger.yml":["json","green"],"swagger.yaml":["json","green"],"mime.types":["config","grey-light"],Jenkinsfile:["jenkins","red"],"babel.config.js":["babel","yellow"],"babel.config.json":["babel","yellow"],"babel.config.cjs":["babel","yellow"],"bower.json":["bower","orange"],"Bower.json":["bower","orange"],"firebase.json":["firebase","orange"],geckodriver:["firefox","orange"],"Gruntfile.js":["grunt","orange"],"gruntfile.babel.js":["grunt","orange"],"Gruntfile.babel.js":["grunt","orange"],"gruntfile.js":["grunt","orange"],"Gruntfile.coffee":["grunt","orange"],"gruntfile.coffee":["grunt","orange"],"ionic.config.json":["ionic","blue"],"Ionic.config.json":["ionic","blue"],"ionic.project":["ionic","blue"],"Ionic.project":["ionic","blue"],"platformio.ini":["platformio","orange"],"rollup.config.js":["rollup","red"],"sass-lint.yml":["sass","pink"],"stylelint.config.js":["stylelint","white"],"stylelint.config.cjs":["stylelint","white"],"yarn.clean":["yarn","blue"],"yarn.lock":["yarn","blue"],"webpack.config.js":["webpack","blue"],"webpack.config.build.js":["webpack","blue"],"webpack.common.js":["webpack","blue"],"webpack.dev.js":["webpack","blue"],"webpack.prod.js":["webpack","blue"],"npm-debug.log":["npm_ignored","ignore"]},oue={".bsl":["bsl","red"],".mdo":["mdo","red"],".cls":["salesforce","blue"],".apex":["salesforce","blue"],".asm":["asm","red"],".s":["asm","red"],".bicep":["bicep","blue"],".c":["c","blue"],".h":["c","purple"],".m":["c","yellow"],".cs":["c-sharp","blue"],".cshtml":["html","blue"],".aspx":["html","blue"],".ascx":["html","green"],".asax":["html","yellow"],".master":["html","yellow"],".cc":["cpp","blue"],".cpp":["cpp","blue"],".cxx":["cpp","blue"],".c++":["cpp","blue"],".hh":["cpp","purple"],".hpp":["cpp","purple"],".hxx":["cpp","purple"],".h++":["cpp","purple"],".mm":["cpp","yellow"],".clj":["clojure","green"],".cljs":["clojure","green"],".cljc":["clojure","green"],".edn":["clojure","blue"],".cfc":["coldfusion","blue"],".cfm":["coldfusion","blue"],".coffee":["coffee","yellow"],".litcoffee":["coffee","yellow"],".config":["config","grey-light"],".cfg":["config","grey-light"],".conf":["config","grey-light"],".cr":["crystal","white"],".ecr":["crystal_embedded","white"],".slang":["crystal_embedded","white"],".cson":["json","yellow"],".css":["css","blue"],".css.map":["css","blue"],".sss":["css","blue"],".csv":["csv","green"],".xls":["xls","green"],".xlsx":["xls","green"],".cu":["cu","green"],".cuh":["cu","purple"],".hu":["cu","purple"],".cake":["cake","red"],".ctp":["cake_php","red"],".d":["d","red"],".doc":["word","blue"],".docx":["word","blue"],".ejs":["ejs","yellow"],".ex":["elixir","purple"],".exs":["elixir_script","purple"],".elm":["elm","blue"],".ico":["favicon","yellow"],".fs":["f-sharp","blue"],".fsx":["f-sharp","blue"],".gitignore":["git","ignore"],".gitconfig":["git","ignore"],".gitkeep":["git","ignore"],".gitattributes":["git","ignore"],".gitmodules":["git","ignore"],".go":["go2","blue"],".slide":["go","blue"],".article":["go","blue"],".gd":["godot","blue"],".godot":["godot","red"],".tres":["godot","yellow"],".tscn":["godot","purple"],".gradle":["gradle","blue"],".groovy":["grails","green"],".gsp":["grails","green"],".gql":["graphql","pink"],".graphql":["graphql","pink"],".graphqls":["graphql","pink"],".hack":["hacklang","orange"],".haml":["haml","red"],".handlebars":["mustache","orange"],".hbs":["mustache","orange"],".hjs":["mustache","orange"],".hs":["haskell","purple"],".lhs":["haskell","purple"],".hx":["haxe","orange"],".hxs":["haxe","yellow"],".hxp":["haxe","blue"],".hxml":["haxe","purple"],".html":["html","orange"],".jade":["jade","red"],".java":["java","red"],".class":["java","red"],".classpath":["java","red"],".properties":["java","red"],".js":["javascript","yellow"],".js.map":["javascript","yellow"],".spec.js":["javascript","orange"],".test.js":["javascript","orange"],".es":["javascript","yellow"],".es5":["javascript","yellow"],".es6":["javascript","yellow"],".es7":["javascript","yellow"],".jinja":["jinja","red"],".jinja2":["jinja","red"],".json":["json","yellow"],".jl":["julia","purple"],".kt":["kotlin","orange"],".kts":["kotlin","orange"],".dart":["dart","blue"],".less":["less","blue"],".liquid":["liquid","green"],".ls":["livescript","blue"],".lua":["lua","blue"],".markdown":["markdown","blue"],".md":["markdown","blue"],".argdown":["argdown","blue"],".ad":["argdown","blue"],".mustache":["mustache","orange"],".stache":["mustache","orange"],".nim":["nim","yellow"],".nims":["nim","yellow"],".github-issues":["github","white"],".ipynb":["notebook","blue"],".njk":["nunjucks","green"],".nunjucks":["nunjucks","green"],".nunjs":["nunjucks","green"],".nunj":["nunjucks","green"],".njs":["nunjucks","green"],".nj":["nunjucks","green"],".npm-debug.log":["npm","ignore"],".npmignore":["npm","red"],".npmrc":["npm","red"],".ml":["ocaml","orange"],".mli":["ocaml","orange"],".cmx":["ocaml","orange"],".cmxa":["ocaml","orange"],".odata":["odata","orange"],".pl":["perl","blue"],".php":["php","purple"],".php.inc":["php","purple"],".pipeline":["pipeline","orange"],".pddl":["pddl","purple"],".plan":["plan","green"],".happenings":["happenings","blue"],".ps1":["powershell","blue"],".psd1":["powershell","blue"],".psm1":["powershell","blue"],".prisma":["prisma","blue"],".pug":["pug","red"],".pp":["puppet","yellow"],".epp":["puppet","yellow"],".purs":["purescript","white"],".py":["python","blue"],".jsx":["react","blue"],".spec.jsx":["react","orange"],".test.jsx":["react","orange"],".cjsx":["react","blue"],".spec.tsx":["react","orange"],".test.tsx":["react","orange"],".re":["reasonml","red"],".res":["rescript","red"],".resi":["rescript","pink"],".R":["R","blue"],".rmd":["R","blue"],".rb":["ruby","red"],".erb":["html_erb","red"],".erb.html":["html_erb","red"],".html.erb":["html_erb","red"],".rs":["rust","grey-light"],".sass":["sass","pink"],".scss":["sass","pink"],".springBeans":["spring","green"],".slim":["slim","orange"],".smarty.tpl":["smarty","yellow"],".tpl":["smarty","yellow"],".sbt":["sbt","blue"],".scala":["scala","red"],".sol":["ethereum","blue"],".styl":["stylus","green"],".svelte":["svelte","red"],".swift":["swift","orange"],".sql":["db","pink"],".soql":["db","blue"],".tf":["terraform","purple"],".tf.json":["terraform","purple"],".tfvars":["terraform","purple"],".tex":["tex","blue"],".sty":["tex","yellow"],".dtx":["tex","orange"],".ins":["tex","white"],".txt":["default","white"],".toml":["config","grey-light"],".twig":["twig","green"],".ts":["typescript","blue"],".tsx":["typescript","blue"],".spec.ts":["typescript","orange"],".test.ts":["typescript","orange"],".vala":["vala","grey-light"],".vapi":["vala","grey-light"],".component":["html","orange"],".vue":["vue","green"],".wasm":["wasm","purple"],".wat":["wat","purple"],".xml":["xml","orange"],".yml":["yml","purple"],".yaml":["yml","purple"],".pro":["prolog","orange"],".jar":["zip","red"],".zip":["zip","grey-light"],".wgt":["wgt","blue"],".ai":["illustrator","yellow"],".psd":["photoshop","blue"],".pdf":["pdf","red"],".eot":["font","red"],".ttf":["font","red"],".woff":["font","red"],".woff2":["font","red"],".gif":["image","purple"],".jpg":["image","purple"],".jpeg":["image","purple"],".png":["image","purple"],".pxm":["image","purple"],".svg":["svg","purple"],".svgx":["image","purple"],".tiff":["image","purple"],".webp":["image","purple"],".sublime-project":["sublime","orange"],".sublime-workspace":["sublime","orange"],".code-search":["code-search","purple"],".sh":["shell","green"],".zsh":["shell","green"],".fish":["shell","green"],".zshrc":["shell","green"],".bashrc":["shell","green"],".mov":["video","pink"],".ogv":["video","pink"],".webm":["video","pink"],".avi":["video","pink"],".mpg":["video","pink"],".mp4":["video","pink"],".mp3":["audio","purple"],".ogg":["audio","purple"],".wav":["audio","purple"],".flac":["audio","purple"],".3ds":["svg","blue"],".3dm":["svg","blue"],".stl":["svg","blue"],".obj":["svg","blue"],".dae":["svg","blue"],".bat":["windows","blue"],".cmd":["windows","blue"],".babelrc":["babel","yellow"],".babelrc.js":["babel","yellow"],".babelrc.cjs":["babel","yellow"],".bowerrc":["bower","orange"],".codeclimate.yml":["code-climate","green"],".eslintrc":["eslint","purple"],".eslintrc.js":["eslint","purple"],".eslintrc.cjs":["eslint","purple"],".eslintrc.yaml":["eslint","purple"],".eslintrc.yml":["eslint","purple"],".eslintrc.json":["eslint","purple"],".eslintignore":["eslint","grey"],".firebaserc":["firebase","orange"],".jshintrc":["javascript","blue"],".jscsrc":["javascript","blue"],".stylelintrc":["stylelint","white"],".stylelintrc.json":["stylelint","white"],".stylelintrc.yaml":["stylelint","white"],".stylelintrc.yml":["stylelint","white"],".stylelintrc.js":["stylelint","white"],".stylelintignore":["stylelint","grey"],".direnv":["config","grey-light"],".env":["config","grey-light"],".static":["config","grey-light"],".editorconfig":["config","grey-light"],".slugignore":["config","grey-light"],".tmp":["clock","grey-light"],".htaccess":["config","grey-light"],".key":["lock","green"],".cert":["lock","green"],".cer":["lock","green"],".crt":["lock","green"],".pem":["lock","green"],".DS_Store":["ignored","ignore"]},sue=[["TODO",["todo","blue"]],["Procfile",["heroku","purple"]],["cmakelists.txt",["makefile","blue"]],["CMakeLists.txt",["makefile","blue"]],["CMAKELISTS.txt",["makefile","blue"]],["CMAKELISTS.TXT",["makefile","blue"]],["omakefile",["makefile","grey-light"]],["OMakefile",["makefile","grey-light"]],["OMAKEFILE",["makefile","grey-light"]],["qmakefile",["makefile","purple"]],["QMakefile",["makefile","purple"]],["QMAKEFILE",["makefile","purple"]],["makefile",["makefile","orange"]],["Makefile",["makefile","orange"]],["MAKEFILE",["makefile","orange"]],["CONTRIBUTING",["license","red"]],["COMPILING",["license","orange"]],["COPYING",["license","yellow"]],["LICENCE.md",["license","yellow"]],["LICENSE.md",["license","yellow"]],["LICENCE",["license","yellow"]],["LICENSE",["license","yellow"]],["gulpfile.js",["gulp","red"]],["gulpfile",["gulp","red"]],["Gulpfile",["gulp","red"]],["GULPFILE",["gulp","red"]],["docker-compose.override.yaml",["docker","pink"]],["docker-compose.override.yml",["docker","pink"]],["docker-compose.yaml",["docker","pink"]],["docker-compose.yml",["docker","pink"]],["docker-healthcheck",["docker","green"]],[".dockerignore",["docker","grey"]],["DOCKERFILE",["docker","blue"]],["Dockerfile",["docker","blue"]],["dockerfile",["docker","blue"]],["gemfile",["ruby","red"]],["Gemfile",["ruby","red"]],["mix",["hex","red"]]],lue={files:aue,extensions:oue,partials:sue,default:["default","white"]},uue='',cue='',due='',pue='',fue='',hue='',gue='',mue='',bue='',Eue='',vue='',yue='',_ue='',Tue='',Sue='',wue='',Aue='',Cue='',xue='',kue='',Iue='',Rue='',Nue='',Oue='',Due='',Lue='',Mue='',Fue='',Pue='',Bue='',Uue='',$ue='',zue='',Hue='',jue='',Gue='',Vue='',Wue='',que='',Kue='',Yue='',Xue='',Zue='',Que='',Jue='',e1e='',t1e='',n1e='',r1e='',i1e='',a1e='',o1e='',s1e='',l1e='',u1e='',c1e='',d1e='',p1e='',f1e='',h1e='',g1e='',m1e='',b1e='',E1e='',v1e='',y1e='',_1e='',T1e='',S1e='',w1e='',A1e='',C1e='',x1e='',k1e='',I1e='',R1e='',N1e='',O1e='',D1e='',L1e='',M1e='',F1e='',P1e='',B1e='',U1e='',$1e='',z1e='',H1e='',j1e='',G1e='',V1e='',W1e='',q1e='',K1e='',Y1e='',X1e='',Z1e='',Q1e='',J1e='',ece='',tce='',nce='',rce='',ice='',ace='',oce='',sce='',lce='',uce='',cce='',dce='',pce='',fce='',hce='',gce='',mce='',bce='',Ece='',vce='',yce='',_ce='',Tce='',Sce='',wce='',Ace='',Cce='',xce='',kce='',Ice='',Rce='',Nce='',Oce='',Dce='',Lce='',Mce='',Fce='',Pce='',Bce='',Uce='',$ce='',zce='',Hce='',jce='',Gce={folder:uue,bsl:cue,mdo:due,salesforce:pue,asm:fue,bicep:hue,c:gue,"c-sharp":'',html:mue,cpp:bue,clojure:Eue,coldfusion:vue,coffee:yue,config:_ue,crystal:Tue,crystal_embedded:Sue,json:wue,css:Aue,csv:Cue,xls:xue,cu:kue,cake:Iue,cake_php:Rue,d:Nue,word:Oue,ejs:Due,elixir:Lue,elixir_script:Mue,hex:Fue,elm:Pue,favicon:Bue,"f-sharp":'',git:Uue,go2:$ue,go:zue,godot:Hue,gradle:jue,grails:Gue,graphql:Vue,hacklang:Wue,haml:que,mustache:Kue,haskell:Yue,haxe:Xue,jade:Zue,java:Que,javascript:Jue,jinja:e1e,julia:t1e,karma:n1e,kotlin:r1e,dart:i1e,less:a1e,liquid:o1e,livescript:s1e,lua:l1e,markdown:u1e,argdown:c1e,info:d1e,clock:p1e,maven:f1e,nim:h1e,github:g1e,notebook:m1e,nunjucks:b1e,npm:E1e,ocaml:v1e,odata:y1e,perl:_1e,php:T1e,pipeline:S1e,pddl:w1e,plan:A1e,happenings:C1e,powershell:x1e,prisma:k1e,pug:I1e,puppet:R1e,purescript:N1e,python:O1e,react:D1e,reasonml:L1e,rescript:M1e,R:F1e,ruby:P1e,html_erb:B1e,rust:U1e,sass:$1e,spring:z1e,slim:H1e,smarty:j1e,sbt:G1e,scala:V1e,ethereum:W1e,stylus:q1e,svelte:K1e,swift:Y1e,db:X1e,terraform:Z1e,tex:Q1e,default:'',twig:J1e,typescript:ece,tsconfig:tce,vala:nce,vue:rce,wasm:ice,wat:ace,xml:oce,yml:sce,prolog:lce,zip:uce,wgt:cce,illustrator:dce,photoshop:pce,pdf:fce,font:hce,image:gce,svg:mce,sublime:bce,"code-search":'',shell:Ece,video:vce,audio:yce,windows:_ce,jenkins:Tce,babel:Sce,bower:wce,docker:Ace,"code-climate":'',eslint:Cce,firebase:xce,firefox:kce,grunt:Ice,gulp:Rce,ionic:Nce,platformio:Oce,rollup:Dce,stylelint:Lce,yarn:Mce,webpack:Fce,lock:Pce,license:Bce,makefile:Uce,heroku:$ce,todo:zce,npm_ignored:Hce,ignored:jce};var gg=ql&&ql.__assign||function(){return gg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return i[1]}return Zu.default},zM=function(e){var t=Kce(e),n=t[0],r=t[1];return{svg:qce[n],color:r}};l7.getIcon=zM;var Yce=function(e){return function(t){var n=zM(t);return gg(gg({},n),{color:e[n.color]})}},Xce=l7.themeIcons=Yce;const $b=({filename:e,height:t,width:n})=>{const r=Xce({blue:"#268bd2",grey:"#657b83","grey-light":"#839496",green:"#859900",orange:"#cb4b16",pink:"#d33682",purple:"#6c71c4",red:"#dc322f",white:"#fdf6e3",yellow:"#b58900",ignore:"#586e75"}),{svg:i,color:a}=r(e),o=iue.sanitize(i);return I.jsx("div",{dangerouslySetInnerHTML:{__html:o},style:{width:n,height:t,fill:a}})},Zce=He.button` + border: none; + color: ${Ht}; + background-color: ${Lt}; + border-radius: ${wt}; + padding: 4px; + padding-left: 8px; + padding-right: 8px; + overflow: hidden; + font-size: ${e=>e.fontSize||nr()}px; + + cursor: pointer; +`;He.div` + position: absolute; + left: 0px; + top: 0px; + width: 100%; + height: 100%; + display: grid; + grid-gap: 0; + align-items: center; + border-radius: ${wt}; + + background-color: ${Lt}; +`;He.div` + background-color: ${Lt}; + height: 100%; + display: flex; + align-items: center; + + &:hover { + background-color: ${e=>e.backgroundColor}; + } +`;const Qce=He.div` + position: absolute; + top: -10px; + right: -10px; + width: 20px; + height: 20px; + border-radius: 50%; + background-color: red; + color: white; + display: flex; + align-items: center; + justify-content: center; + padding: 2px; +`,Jce=He.div` + border-radius: ${wt}; + background-color: ${Lt}; + display: flex; + align-items: center; + justify-content: center; +`,ede=He(Zce)` + position: relative; + border-color: ${e=>e.borderColor||"transparent"}; + border-width: 1px; + border-style: solid; + + &:focus { + outline: none; + /* border-color: ${vt}; */ + text-decoration: underline; + } +`,tde=He(vi)` + &:hover { + background-color: ${e=>e.color}; + } +`,nde=He(vi)` + ${e=>e.selected&&` + background-color: ${e.color}; + + &:hover { + background-color: ${e.color}; + } + `} +`,rde=e=>{const[t,n]=C.useState(!1),r=C.useContext(Ya),[i,a]=C.useState(void 0);C.useEffect(()=>{e.editing&&e.item.content.length>4e3?a("Editing such a large range may be slow"):a(void 0)},[e.editing,e.item]);const o=C.useRef(null),s=C.useRef(null);return I.jsxs("div",{style:{position:"relative"},children:[I.jsxs(Jce,{previewing:e.previewing,ref:o,children:[I.jsx(ede,{fontSize:nr(),borderColor:e.editing&&i?"red":void 0,ref:s,onMouseEnter:()=>{n(!0),e.onHover&&e.onHover(!0)},onMouseLeave:()=>{n(!1),e.onHover&&e.onHover(!1)},className:`pill-button-${e.stepIndex||"main"}`,onKeyDown:u=>{var c,p;u.key==="Backspace"?(c=e.onDelete)==null||c.call(e,e.stepIndex):u.key==="v"?(p=e.toggleViewContent)==null||p.call(e):u.key==="e"&&(r==null||r.setEditingAtIds([e.item.description.id.item_id]))},onClick:u=>{var c;(c=e.onClick)==null||c.call(e,u),r==null||r.previewContextItem(`${e.item.description.id.provider_title}-${e.item.description.id.item_id}`)},onBlur:u=>{var c,p;(c=o.current)!=null&&c.contains(u.relatedTarget)&&(u.preventDefault(),(p=s.current)==null||p.focus())},children:I.jsxs("span",{className:(t?"underline":"")+" flex",children:[["file","code"].includes(e.item.description.id.provider_title)&&I.jsx($b,{height:"16px",width:"16px",filename:e.item.description.name.split(" ").at(0)}),e.item.description.name]})}),(e.editingAny||e.focusing&&e.item.editable||e.editing&&e.editingAny)&&I.jsxs(I.Fragment,{children:[I.jsx(nde,{"data-tooltip-id":`circle-div-${e.item.description.name}`,text:e.editing?"Editing this range":"Edit this range (e)",onClick:()=>{var u,c;e.editing||r==null||r.setEditingAtIds([e.item.description.id.item_id]),e.editingAny||(u=e.prefixInputWithEdit)==null||u.call(e,!0),e.editingAny&&e.editing&&((c=e.prefixInputWithEdit)==null||c.call(e,!1))},tabIndex:-1,color:"#f0f4",selected:e.editing,children:I.jsx(KY,{width:"1.4em",height:"1.4em"})}),I.jsx(Gs,{id:`circle-div-${e.item.description.name}`,children:"Editing this range"})]}),e.focusing&&I.jsx(tde,{text:"Delete (⌫)",onClick:()=>{var u;return(u=e.onDelete)==null?void 0:u.call(e,e.stepIndex)},tabIndex:-1,color:"#f004",children:I.jsx(pD,{width:"1.4em",height:"1.4em"})})]}),I.jsx(Gs,{id:`edit-${e.index}`,children:e.item.editing?"Editing this section (with entire file as context)":"Edit this section"}),I.jsx(Gs,{id:`delete-${e.index}`,children:"Delete"}),e.editing&&i&&I.jsxs(I.Fragment,{children:[I.jsx(Qce,{"data-tooltip-id":`circle-div-${e.item.description.name}`,className:"z-10",children:I.jsx(lD,{style:{margin:"auto"},width:"1.0em",strokeWidth:2})}),I.jsx(Gs,{id:`circle-div-${e.item.description.name}`,children:i})]})]})};var u7={};Object.defineProperty(u7,"__esModule",{value:!0});u7.testFunc=void 0;var ide=function(){console.log("test")};u7.testFunc=ide;function ade(e,t){var n;if(typeof vscode>"u"){if(localStorage.getItem("ide"),window.postIntellijMessage===void 0)throw console.log("Unable to send message: postIntellijMessage is undefined. ",e,t),new Error("postIntellijMessage is undefined");(n=window.postIntellijMessage)==null||n.call(window,e,t);return}vscode.postMessage({type:e,...t})}function rl(e,t,n=0){try{ade(e,t)}catch(r){n<5?(console.log(`Attempt ${n} failed. Retrying...`),setTimeout(()=>rl(e,t,n+1),Math.pow(2,n)*1e3)):console.error("Max attempts reached. Message could not be sent.",r)}}const ode={};var zb=function(e,t){return zb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},zb(e,t)};function Xp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var en=function(){return en=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]"u"&&require("cross-fetch/polyfill"),c=new URL(i,this.url),a&&(p=new URLSearchParams,Object.keys(a).filter(function(w){return a[w]!==null}).map(function(w){return p.set(w,a[w])}),c.search=p.toString()),!((n=u.headers)===null||n===void 0)&&n["Content-Type"]||(o=JSON.stringify(o)),f=en(en({},this.headers),u.headers),y.label=1;case 1:return y.trys.push([1,6,,7]),m=this.httpClient?this.httpClient:fetch,g=m(c.toString(),en(en(en({},u),this.requestConfig),{method:r,body:o,headers:f})),this.httpClient?[4,g]:[3,3];case 2:return[2,y.sent()];case 3:return[4,g.then(function(w){return sde(w)})];case 4:return E=y.sent(),[4,E.json().catch(function(){})];case 5:return b=y.sent(),[2,b];case 6:return T=y.sent(),v=T.stack,lde(T,v,c.toString()),[3,7];case 7:return[2]}})})},e.prototype.get=function(t,n,r){return Ne(this,void 0,void 0,function(){return Oe(this,function(i){switch(i.label){case 0:return[4,this.request({method:"GET",url:t,params:n,config:r})];case 1:return[2,i.sent()]}})})},e.prototype.post=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"POST",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.put=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PUT",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.patch=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"PATCH",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e.prototype.delete=function(t,n,r,i){return Ne(this,void 0,void 0,function(){return Oe(this,function(a){switch(a.label){case 0:return[4,this.request({method:"DELETE",url:t,body:n,params:r,config:i})];case 1:return[2,a.sent()]}})})},e}(),Fn=function(){function e(t){this.taskUid=t.taskUid,this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.enqueuedAt=new Date(t.enqueuedAt)}return e}(),Rk=function(){function e(t){this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.uid=t.uid,this.details=t.details,this.canceledBy=t.canceledBy,this.error=t.error,this.duration=t.duration,this.startedAt=new Date(t.startedAt),this.enqueuedAt=new Date(t.enqueuedAt),this.finishedAt=new Date(t.finishedAt)}return e}(),HM=function(){function e(t){this.httpRequest=new bg(t)}return e.prototype.getTask=function(t){return Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks/".concat(t),[4,this.httpRequest.get(n)];case 1:return r=i.sent(),[2,new Rk(r)]}})})},e.prototype.getTasks=function(t){return t===void 0&&(t={}),Ne(this,void 0,void 0,function(){var n,r;return Oe(this,function(i){switch(i.label){case 0:return n="tasks",[4,this.httpRequest.get(n,H3(t))];case 1:return r=i.sent(),[2,en(en({},r),{results:r.results.map(function(a){return new Rk(a)})})]}})})},e.prototype.waitForTask=function(t,n){var r=n===void 0?{}:n,i=r.timeOutMs,a=i===void 0?5e3:i,o=r.intervalMs,s=o===void 0?50:o;return Ne(this,void 0,void 0,function(){var u,c;return Oe(this,function(p){switch(p.label){case 0:u=Date.now(),p.label=1;case 1:return Date.now()-u"u"?this.tokens.generateTenantToken(n,r,i):e.prototype.generateTenantToken.call(this,n,r,i)},t}(Ede);function Pa(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:c7(e)?2:d7(e)?3:0}function B1(e,t){return bc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ade(e,t){return bc(e)===2?e.get(t):e[t]}function GM(e,t,n){var r=bc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function VM(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function c7(e){return Nde&&e instanceof Map}function d7(e){return Ode&&e instanceof Set}function Vl(e){return e.o||e.t}function p7(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=qM(e);delete t[Cn];for(var n=U1(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Cde),Object.freeze(e),t&&mu(e,function(n,r){return f7(r,!0)},!0)),e}function Cde(){Pa(2)}function h7(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function bo(e){var t=Vb[e];return t||Pa(18,e),t}function xde(e,t){Vb[e]||(Vb[e]=t)}function Hb(){return pp}function j3(e,t){t&&(bo("Patches"),e.u=[],e.s=[],e.v=t)}function Eg(e){jb(e),e.p.forEach(kde),e.p=null}function jb(e){e===pp&&(pp=e.l)}function Nk(e){return pp={p:[],l:pp,h:e,m:!0,_:0}}function kde(e){var t=e[Cn];t.i===0||t.i===1?t.j():t.g=!0}function G3(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||bo("ES5").S(t,e,r),r?(n[Cn].P&&(Eg(t),Pa(4)),is(e)&&(e=vg(t,e),t.l||yg(t,e)),t.u&&bo("Patches").M(n[Cn].t,e,t.u,t.s)):e=vg(t,n,[]),Eg(t),t.u&&t.v(t.u,t.s),e!==WM?e:void 0}function vg(e,t,n){if(h7(t))return t;var r=t[Cn];if(!r)return mu(t,function(s,u){return Ok(e,r,t,s,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return yg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=p7(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),mu(a,function(s,u){return Ok(e,r,i,s,u,n,o)}),yg(e,i,!1),n&&e.u&&bo("Patches").N(r,n,e.u,e.s)}return r.o}function Ok(e,t,n,r,i,a,o){if(pl(i)){var s=vg(e,i,a&&t&&t.i!==3&&!B1(t.R,r)?a.concat(r):void 0);if(GM(n,r,s),!pl(s))return;e.m=!1}else o&&n.add(i);if(is(i)&&!h7(i)){if(!e.h.D&&e._<1)return;vg(e,i),t&&t.A.l||yg(e,i)}}function yg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&f7(t,n)}function V3(e,t){var n=e[Cn];return(n?Vl(n):e)[t]}function Dk(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function $s(e){e.P||(e.P=!0,e.l&&$s(e.l))}function W3(e){e.o||(e.o=p7(e.t))}function Gb(e,t,n){var r=c7(t)?bo("MapSet").F(t,n):d7(t)?bo("MapSet").T(t,n):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:Hb(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=fp;o&&(u=[s],c=dd);var p=Proxy.revocable(u,c),f=p.revoke,m=p.proxy;return s.k=m,s.j=f,m}(t,n):bo("ES5").J(t,n);return(n?n.A:Hb()).p.push(r),r}function Ide(e){return pl(e)||Pa(22,e),function t(n){if(!is(n))return n;var r,i=n[Cn],a=bc(n);if(i){if(!i.P&&(i.i<4||!bo("ES5").K(i)))return i.t;i.I=!0,r=Lk(n,a),i.I=!1}else r=Lk(n,a);return mu(r,function(o,s){i&&Ade(i.t,o)===s||GM(r,o,t(s))}),a===3?new Set(r):r}(e)}function Lk(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p7(e)}function Rde(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[Cn];return fp.get(u,a)},set:function(u){var c=this[Cn];fp.set(c,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Cn];if(!s.P)switch(s.i){case 5:r(s)&&$s(s);break;case 4:n(s)&&$s(s)}}}function n(a){for(var o=a.t,s=a.k,u=U1(s),c=u.length-1;c>=0;c--){var p=u[c];if(p!==Cn){var f=o[p];if(f===void 0&&!B1(o,p))return!0;var m=s[p],g=m&&m[Cn];if(g?g.t!==f:!VM(m,f))return!0}}var E=!!o[Cn];return u.length!==U1(o).length+(E?0:1)}function r(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?v-1:0),w=1;w1?p-1:0),m=1;m=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=bo("Patches").$;return pl(n)?o(n,r):this.produce(n,function(s){return o(s,r)})},e}(),$i=new Lde,KM=$i.produce;$i.produceWithPatches.bind($i);$i.setAutoFreeze.bind($i);$i.setUseProxies.bind($i);$i.applyPatches.bind($i);$i.createDraft.bind($i);$i.finishDraft.bind($i);function hp(e){"@babel/helpers - typeof";return hp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hp(e)}function Mde(e,t){if(hp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fde(e){var t=Mde(e,"string");return hp(t)==="symbol"?t:String(t)}function Pde(e,t,n){return t=Fde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uk(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fr(1));return n(YM)(e,t)}if(typeof e!="function")throw new Error(Fr(2));var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function p(){if(u)throw new Error(Fr(3));return a}function f(b){if(typeof b!="function")throw new Error(Fr(4));if(u)throw new Error(Fr(5));var T=!0;return c(),s.push(b),function(){if(T){if(u)throw new Error(Fr(6));T=!1,c();var y=s.indexOf(b);s.splice(y,1),o=null}}}function m(b){if(!Bde(b))throw new Error(Fr(7));if(typeof b.type>"u")throw new Error(Fr(8));if(u)throw new Error(Fr(9));try{u=!0,a=i(a,b)}finally{u=!1}for(var T=o=s,v=0;v"u")throw new Error(Fr(12));if(typeof n(void 0,{type:_g.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fr(13))})}function $de(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Fr(14));f[g]=T,p=p||T!==b}return p=p||a.length!==Object.keys(u).length,p?f:u}}function Tg(){for(var e=arguments.length,t=new Array(e),n=0;n0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{e.bottomMessage=t.payload},setBottomMessageCloseTimeout:(e,t)=>{e.bottomMessageCloseTimeout&&clearTimeout(e.bottomMessageCloseTimeout),e.bottomMessageCloseTimeout=t.payload},setDialogMessage:(e,t)=>{e.dialogMessage=t.payload},setDialogEntryOn:(e,t)=>{e.dialogEntryOn=t.payload},setShowDialog:(e,t)=>{e.showDialog=t.payload},setDisplayBottomMessageOnBottom:(e,t)=>{e.displayBottomMessageOnBottom=t.payload}}}),{setBottomMessage:au,setBottomMessageCloseTimeout:Wk,setDialogMessage:X3,setDialogEntryOn:fpe,setShowDialog:Q1,setDisplayBottomMessageOnBottom:hpe}=eF.actions,gpe=eF.reducer;var tF={exports:{}},nF={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var J1=C;function mpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bpe=typeof Object.is=="function"?Object.is:mpe,Epe=J1.useState,vpe=J1.useEffect,ype=J1.useLayoutEffect,_pe=J1.useDebugValue;function Tpe(e,t){var n=t(),r=Epe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return ype(function(){i.value=n,i.getSnapshot=t,Z3(i)&&a({inst:i})},[e,n,t]),vpe(function(){return Z3(i)&&a({inst:i}),e(function(){Z3(i)&&a({inst:i})})},[e]),_pe(n),n}function Z3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bpe(e,n)}catch{return!0}}function Spe(e,t){return t()}var wpe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Spe:Tpe;nF.useSyncExternalStore=J1.useSyncExternalStore!==void 0?J1.useSyncExternalStore:wpe;tF.exports=nF;var Ape=tF.exports,rF={exports:{}},iF={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var om=C,Cpe=Ape;function xpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kpe=typeof Object.is=="function"?Object.is:xpe,Ipe=Cpe.useSyncExternalStore,Rpe=om.useRef,Npe=om.useEffect,Ope=om.useMemo,Dpe=om.useDebugValue;iF.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=Rpe(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=Ope(function(){function u(g){if(!c){if(c=!0,p=g,g=r(g),i!==void 0&&o.hasValue){var E=o.value;if(i(E,g))return f=E}return f=g}if(E=f,kpe(p,g))return E;var b=r(g);return i!==void 0&&i(E,b)?E:(p=g,f=b)}var c=!1,p,f,m=n===void 0?null:n;return[function(){return u(t())},m===null?void 0:function(){return u(m())}]},[t,n,r,i]);var s=Ipe(e,a[0],a[1]);return Npe(function(){o.hasValue=!0,o.value=s},[s]),Dpe(s),s};rF.exports=iF;var Lpe=rF.exports;function Mpe(e){e()}let aF=Mpe;const Fpe=e=>aF=e,Ppe=()=>aF,qk=Symbol.for("react-redux-context"),Kk=typeof globalThis<"u"?globalThis:{};function Bpe(){var e;if(!C.createContext)return{};const t=(e=Kk[qk])!=null?e:Kk[qk]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const fl=Bpe();function b7(e=fl){return function(){return C.useContext(e)}}const oF=b7(),Upe=()=>{throw new Error("uSES not initialized!")};let sF=Upe;const $pe=e=>{sF=e},zpe=(e,t)=>e===t;function Hpe(e=fl){const t=e===fl?oF:b7(e);return function(r,i={}){const{equalityFn:a=zpe,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:p,stabilityCheck:f,noopCheck:m}=t();C.useRef(!0);const g=C.useCallback({[r.name](b){return r(b)}}[r.name],[r,f,o]),E=sF(c.addNestedSub,u.getState,p||u.getState,g,a);return C.useDebugValue(E),E}}const zt=Hpe();function jpe(){const e=Ppe();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const Yk={notify(){},get:()=>[]};function Gpe(e,t){let n,r=Yk;function i(f){return u(),r.subscribe(f)}function a(){r.notify()}function o(){p.onStateChange&&p.onStateChange()}function s(){return!!n}function u(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=jpe())}function c(){n&&(n(),n=void 0,r.clear(),r=Yk)}const p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>r};return p}const Vpe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wpe=Vpe?C.useLayoutEffect:C.useEffect;function qpe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const c=Gpe(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:a}},[e,r,i,a]),s=C.useMemo(()=>e.getState(),[e]);Wpe(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const u=t||fl;return C.createElement(u.Provider,{value:o},n)}function lF(e=fl){const t=e===fl?oF:b7(e);return function(){const{store:r}=t();return r}}const Kpe=lF();function Ype(e=fl){const t=e===fl?Kpe:lF(e);return function(){return t().dispatch}}const us=Ype();$pe(Lpe.useSyncExternalStoreWithSelector);Fpe(yE.unstable_batchedUpdates);const Xpe=He(op)` + margin: auto; + margin-top: 8px; + margin-bottom: 16px; + display: grid; + width: 130px; + grid-template-columns: 22px 1fr; + align-items: center; + background-color: ${e=>`${e.color||"#be1b55"}${e.showStop?"33":""}`}; + + opacity: ${e=>e.isDisabled?.5:1}; + + border: 1px solid + ${e=>e.showStop?e.color||"#be1b55":"transparent"}; + + cursor: ${e=>e.isDisabled?"default":"pointer"}; + + &:hover:enabled { + background-color: ${e=>`${e.color||"#be1b55"}${e.showStop?"33":""}`}; + ${e=>e.isDisabled?"cursor: default;":` + opacity: 0.7; + `} + } +`;function Zpe(e){const t=zt(i=>i.config.vscMediaUrl),[n,r]=C.useState(localStorage.getItem("continueButtonColor"));return C.useEffect(()=>{const i=a=>{a.key==="continueButtonColor"&&r(a.newValue)};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]),I.jsx(Xpe,{showStop:e.showStop,color:n,hidden:e.hidden,style:{fontSize:"10px"},className:"m-auto press-start-2p",onClick:e.disabled?void 0:e.onClick,isDisabled:e.disabled,children:e.showStop?I.jsxs(I.Fragment,{children:[I.jsx(uX,{width:"18px",height:"18px"}),"STOP"]}):I.jsxs(I.Fragment,{children:[t?I.jsx("img",{src:`${t}/play_button.png`,height:"18px"}):I.jsx(uD,{width:"18px",height:"18px"}),"CONTINUE"]})})}const Qpe={history:{timeline:[],current_index:3},user_input_queue:[],active:!1,slash_commands:[],adding_highlighted_code:!1,selected_context_items:[],config:{system_message:"",temperature:.5}},uF=Zp({name:"serverState",initialState:Qpe,reducers:{setServerState:(e,t)=>{e.selected_context_items=[],e.user_input_queue=[],e.slash_commands=[],Object.assign(e,t.payload)},temporarilyPushToUserInputQueue:(e,t)=>{e.user_input_queue=[...e.user_input_queue,t.payload]},temporarilyCreateNewUserInput:(e,t)=>{e.history.timeline=[...e.history.timeline,{step:{description:t.payload,name:"User Input",hide:!1},depth:0,active:!1,context_used:e.selected_context_items}]},temporarilyClearSession:(e,t)=>{e.history.timeline=[],e.selected_context_items=[],e.session_info={title:t.payload?"Loading session...":"New Session",session_id:"",date_created:""}}}}),{setServerState:Jpe,temporarilyPushToUserInputQueue:efe,temporarilyClearSession:sm,temporarilyCreateNewUserInput:tfe}=uF.actions,nfe=uF.reducer,cF=Zp({name:"misc",initialState:{highlightedCode:"",takenAction:!1,serverStatusMessage:"Continue Server Starting"},reducers:{setHighlightedCode:(e,t)=>{e.highlightedCode=t.payload},setTakenActionTrue:(e,t)=>{e.takenAction=!0},setServerStatusMessage:(e,t)=>{e.serverStatusMessage=t.payload}}}),{setHighlightedCode:rfe,setTakenActionTrue:pd,setServerStatusMessage:ife}=cF.actions,afe=cF.reducer,ofe=(e,t,n)=>{const r=tg(e);if(r&&e.key==="Backspace"){e.preventDefault();const i=e.target.selectionStart,a=e.target.selectionEnd;if(i!==a){const o=t.slice(0,i)+t.slice(a);n(o),e.target.selectionStart=i,e.target.selectionEnd=i}else{const o=t.lastIndexOf(` +`,i-1),s=t.slice(0,o+1)+t.slice(i);n(s),e.target.selectionStart=o+1,e.target.selectionEnd=o+1}}else if(r){const i=e.target.selectionStart,a=e.target.selectionEnd;let o=i,s=a;const u=e.shiftKey;if(e.key==="ArrowLeft"){const c=t.lastIndexOf(` +`,i-1);o=c===-1?0:c+1,s=u?a:o}else if(e.key==="ArrowRight"){const c=t.indexOf(` +`,i);s=c===-1?t.length:c,o=u?o:s}e.target.selectionStart=o,e.target.selectionEnd=s,e.preventDefault()}},sfe=(e,t,n)=>{const r=e.target.selectionStart,i=e.target.selectionEnd,a=tg(e);if(a&&e.key==="Backspace")if(e.preventDefault(),r!==i){const o=t.slice(0,r)+t.slice(i);n(o),e.target.selectionStart=r,e.target.selectionEnd=r}else{const o=t.slice(0,r).trimEnd().lastIndexOf(" "),s=t.slice(0,o+1)+t.slice(r);n(s),console.log(o),setTimeout(()=>{e.target.selectionStart=o+1,e.target.selectionEnd=o+1},10)}else if(a&&e.key==="c"){if(e.preventDefault(),e.stopPropagation(),r!==i){const o=t.slice(r,i);navigator.clipboard.writeText(o)}}else a&&e.key==="v"&&(e.preventDefault(),e.stopPropagation(),navigator.clipboard.readText().then(o=>{const s=t.slice(0,r)+o+t.slice(i);n(s);const u=r+o.length;setTimeout(()=>{e.target.selectionStart=u,e.target.selectionEnd=u},10)}))},lfe="continue_context_items",ufe=b2` + 0% { + background-position: 0px 0; + } + 100% { + background-position: 100em 0; + } +`,cfe=He.div` + border-radius: ${e=>e.borderRadius||"0"}; + padding: 1px; + background: ${e=>e.borderColor?e.borderColor:`repeating-linear-gradient( + 101.79deg, + #1BBE84 0%, + #331BBE 16%, + #BE1B55 33%, + #A6BE1B 55%, + #BE1B55 67%, + #331BBE 85%, + #1BBE84 99% + )`}; + animation: ${e=>e.loading?ufe:""} 6s linear infinite; + background-size: 200% 200%; + width: 100%; + display: flex; + flex-direction: row; + align-items: center; + margin-top: 8px; +`,dfe=He.button` + opacity: 0; + background-color: transparent; + border: none; + outline: none; + color: ${Ht}; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + height: 0; + aspect-ratio: 1; + padding: 0; + margin-left: -8px; + + border-radius: ${wt}; + + &:focus { + margin-left: 1px; + height: fit-content; + padding: 3px; + opacity: 1; + outline: 1px solid ${vt}; + } +`,qb=nr(),pfe=He.div` + padding: 0px; + background-color: ${Lt}; + border-radius: ${wt}; + margin: 8px; + overflow: hidden; + + & div { + background-color: ${Lt}; + } +`,ffe=He.p` + margin: 0; + padding: 4px 8px; + border-bottom: 1px solid ${vt}; + word-break: break-all; + font-size: ${nr()}px; + display: flex; + align-items: center; +`,hfe=He.textarea` + resize: none; + + padding: 8px; + font-size: ${e=>e.fontSize||qb}px; + font-family: inherit; + border-radius: ${wt}; + margin: 0; + height: auto; + width: 100%; + background-color: ${Lt}; + color: ${Ht}; + z-index: 1; + border: 0.5px solid + ${e=>e.inQueryForDynamicProvider?da:"transparent"}; + + &:focus { + outline: 0.5px solid + ${e=>e.inQueryForDynamicProvider?da:vt}; + border: 0.5px solid transparent; + background-color: ${e=>e.inQueryForDynamicProvider?`${da}22`:Lt}; + } + + &::placeholder { + color: ${vt}cc; + } +`,gfe=He.div` + position: absolute; + top: 14px; + right: 12px; + background-color: ${Lt}; + border-radius: ${wt}; + z-index: 100; +`,mfe=He.div` + position: absolute; + right: 0px; + top: 0px; + height: fit-content; + padding: 2px 4px; + border-radius: ${wt}; + z-index: 2; + color: white; + font-size: 12px; + + background-color: ${da}; +`,dF=300,bfe=He.ul` + ${e=>e.showAbove?`transform: translateY(-${e.ulHeightPixels+8}px);`:`transform: translateY(${(e.isMainInput?5:4)*(e.fontSize||qb)-(e.isMainInput?2:4)}px);`} + position: absolute; + background: ${Kt}; + color: ${Ht}; + max-height: ${dF}px; + margin-left: 1px; + width: calc(100% - 18px); + overflow-y: scroll; + overflow-x: hidden; + padding: 0; + ${({hidden:e})=>e&&"display: none;"} + border-radius: ${wt}; + outline: 0.5px solid ${vt}; + -ms-overflow-style: none; + font-size: ${e=>e.fontSize||qb}px; + + scrollbar-width: none; /* Firefox */ + z-index: 500; + + /* Hide scrollbar for Chrome, Safari and Opera */ + &::-webkit-scrollbar { + display: none; + } +`,Xk=He.li` + background-color: ${({highlighted:e})=>e?da+"66":Lt}; + ${({selected:e})=>e&&"font-weight: bold;"} + padding: 0.5rem 0.5rem; + display: flex; + flex-direction: row; + align-items: center; + ${({isLastItem:e})=>e&&"border-bottom: 1px solid gray;"} + cursor: pointer; + z-index: 500; +`,Zk=ut.forwardRef((e,t)=>{var Se,Me,ze,Ke,jt,ue,ye,We,at,Qe;const n=zt(Y=>Y.serverState.meilisearch_url||"http://127.0.0.1:7700"),[r,i]=C.useState(void 0);C.useEffect(()=>{const Y=new wde({host:n});i(Y)},[n]);const a=C.useContext(Ya),o=us(),s=zt(Y=>Y.config.workspacePaths),u=zt(Y=>Y.serverState.history),[c,p]=ut.useState([]),[f,m]=ut.useState(0),[g,E]=ut.useState([]),b=ut.useRef(null);C.useEffect(()=>{b.current&&(b.current.style.height="auto",b.current.style.height=Math.min(b.current.scrollHeight,300)+"px")},[(Se=b.current)==null?void 0:Se.scrollHeight,(Me=b.current)==null?void 0:Me.clientHeight,(ze=b.current)==null?void 0:ze.value]);const[T,v]=C.useState(!1),[y,w]=C.useState(void 0),[A,D]=C.useState(void 0),k=zt(Y=>Y.serverState.slash_commands).map(Y=>({name:`/${Y.name}`,description:Y.description})),R=zt(Y=>e.index?Y.serverState.history.timeline[e.index].context_used||[]:Y.serverState.selected_context_items),B=zt(Y=>Y.serverState.history.timeline);C.useEffect(()=>{T||(w(void 0),D(void 0))},[T]);const W=zt(Y=>Y.serverState.context_providers),P=()=>{v(!1),w(void 0),D(void 0),fe.setInputValue("@")};C.useEffect(()=>{y||E((W==null?void 0:W.map(Y=>({name:Y.display_title,description:Y.description,id:Y.title})).sort((Y,se)=>Y.id==="file"?-1:1))||[])},[y]);const[Q,z]=C.useState(""),le=C.useCallback(({inputValue:Y,highlightedIndex:se})=>{var j;if(!Y){E([]),w(void 0),v(!1);return}if(Q===""&&(W!=null&&W.some($=>$.display_title===Y))){fe.setInputValue(""),z("");return}if(z(Y),A&&!Y.startsWith(`@${A.title}`)&&D(void 0),(j=e.onInputValueChange)==null||j.call(e,Y),Y.endsWith("@")||T){const $=(Y==null?void 0:Y.split("@"))||[];if($.length>1){v(!0);const J=$[$.length-1]||"";if(y&&!Y.endsWith("@")){const be=J.split(" ");he(y.title,be.length>1?be[1]:"").then(Fe=>{E(Fe)})}else{const be=(W==null?void 0:W.filter(Fe=>`@${Fe.title}`.toLowerCase().startsWith(Y.toLowerCase())||`@${Fe.display_title}`.toLowerCase().startsWith(Y.toLowerCase())).map(Fe=>({name:Fe.display_title,description:Fe.description,id:Fe.title})).sort((Fe,De)=>Fe.id==="file"?-1:1))||[];E(be),v(!0)}return}else v(!1),w(void 0)}w(void 0),E((k==null?void 0:k.filter($=>{const J=$.name.toLowerCase(),be=Y.toLowerCase();return J.startsWith(be)&&J!==be}))||[]),(Y.startsWith("/")||Y.startsWith("@"))&&o(pd(null))},[k,T,y,A]),he=async(Y,se)=>{const j=s&&s.length>0?`workspace_dir IN [ ${s.map($=>`"${$}"`).join(", ")} ] AND provider_name = '${Y}'`:void 0;try{const $=await(r==null?void 0:r.index(lfe).search(se,{filter:j}));return($==null?void 0:$.hits.map(J=>({name:J.name,description:J.description,id:J.id,content:J.content})))||[]}catch($){return console.log("Error searching context items",$),[]}},{getInputProps:de,...fe}=LM({onInputValueChange:le,items:g,itemToString(Y){return Y?Y.name:""}});C.useEffect(()=>{fe.highlightedIndex<0&&fe.setHighlightedIndex(0)},[fe.inputValue]);const Z=ut.useRef(null),V=ut.useRef(null),ce=()=>{var Y;return(((Y=Z.current)==null?void 0:Y.getBoundingClientRect().top)||Number.MAX_SAFE_INTEGER)>dF};C.useImperativeHandle(t,()=>fe,[fe]);const N=ut.useRef(null),me=C.useCallback(()=>{var $;if(ve(!0),!N.current)return;const Y=N.current.querySelectorAll(`.pill-button-${e.index||"main"}`),se=Array.from(Y),j=se.findIndex(J=>J===document.activeElement);if(j===se.length-1)($=b.current)==null||$.focus();else if(j!==-1){const J=se[(j+1)%se.length];J==null||J.focus()}else{const J=se[0];J==null||J.focus()}},[e.index]);C.useEffect(()=>{if(b.current){const Y=se=>{se.key==="Tab"&&(se.preventDefault(),me())};return b.current.addEventListener("keydown",Y),()=>{var se;(se=b.current)==null||se.removeEventListener("keydown",Y)}}},[b.current]),C.useEffect(()=>{e.value&&fe.setInputValue(e.value)},[e.value,fe.setInputValue]);const[oe,O]=C.useState(!1);C.useLayoutEffect(()=>{V.current&&fe.setHighlightedIndex(0)},[g,fe.setHighlightedIndex,V.current]);const[re,Te]=C.useState(!1),[K,xe]=C.useState(!1);C.useEffect(()=>{const Y=j=>{j.key==="Meta"&&Te(!0)},se=j=>{j.key==="Meta"&&Te(!1)};return window.addEventListener("keydown",Y),window.addEventListener("keyup",se),()=>{window.removeEventListener("keydown",Y),window.removeEventListener("keyup",se)}},[]),C.useEffect(()=>{if(!b.current||!e.isMainInput)return;e.isMainInput&&b.current.focus();const Y=se=>{var j;se.data.type==="focusContinueInput"?(b.current.focus(),o(pd(null))):se.data.type==="focusContinueInputWithEdit"?(b.current.focus(),(j=b.current)!=null&&j.value.startsWith("/edit")||fe.setInputValue("/edit "),o(pd(null))):se.data.type==="focusContinueInputWithNewSession"&&(o(sm(!1)),a==null||a.loadSession(void 0),o(pd(null)))};return window.addEventListener("message",Y),()=>{window.removeEventListener("message",Y)}},[b.current,e.isMainInput]);const ne=ut.useRef(null),Le=C.useCallback((Y,se)=>{e.isMainInput?a==null||a.selectContextItem(Y,se):e.index&&(a==null||a.selectContextItemAtIndex(Y,se,e.index))},[a,e.index]),Re=C.useCallback(Y=>{const se=g[fe.highlightedIndex],j=se==null?void 0:se.name,$=W.find(J=>J.display_title===j);if($){if($.dynamic&&$.requires_query){D($),fe.setInputValue(`@${$.title} `),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}else if($.dynamic){if(!se.id)return;const J=fe.inputValue.split("@"),be=J[J.length-1];if(Le(se.id,be),fe.inputValue.includes("@")){const Fe=W.find(De=>De.title===se.id);!y&&!(Fe!=null&&Fe.dynamic)?(fe.setInputValue(`@${se.id} `),w(Fe)):fe.setInputValue("")}fe.setInputValue(""),v(!1),w(void 0),D(void 0),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}}else{if(y&&se.id){Le(se.id,""),fe.setInputValue(""),v(!1),w(void 0),D(void 0),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault();return}w($),fe.setInputValue(`@${$.title} `),Y.nativeEvent.preventDownshiftDefault=!0,Y.preventDefault(),he($.title,"").then(J=>E(J))},[g,fe.highlightedIndex,W,y,fe.inputValue,Le]),[Xe,Ve]=C.useState(!1),[dt,ot]=C.useState(!1),[Ge,pt]=C.useState(void 0),[U,ie]=C.useState(void 0),pe=ut.useRef(null),[ke,ve]=C.useState(!1);return C.useEffect(()=>{K||ve(!1)},[K]),I.jsxs("div",{ref:pe,children:[R.length===0&&e.isMainInput&&I.jsxs("div",{style:{color:vt,fontSize:"10px",backgroundColor:Kt,paddingLeft:"12px",paddingTop:nr(),width:"calc(100% - 24px)"},children:[I.jsx("span",{onClick:()=>{var Y;fe.setInputValue("@"),(Y=b.current)==null||Y.focus()},className:"hover:underline cursor-pointer",children:"+ Add Context"}),(((Ke=fe.inputValue)==null?void 0:Ke.startsWith("/edit"))||K&&re&&((jt=fe.inputValue)==null?void 0:jt.length)>0)&&I.jsx("span",{className:"float-right",children:"Inserting at cursor"})]}),e.isMainInput||R.length>0&&ke?I.jsxs("div",{className:"px-2 flex gap-2 items-center flex-wrap",ref:N,style:{backgroundColor:Kt},children:[R.length>0&&I.jsx("div",{className:"cursor-pointer",onClick:Y=>{ot(se=>!se)},id:"toggle-context-div",children:dt?I.jsx(TY,{width:"14px",height:"14px",color:vt}):I.jsx(AY,{width:"14px",height:"14px",color:vt})}),I.jsx(dfe,{className:R.length>0?`pill-button-${e.index||"main"}`:"",onClick:()=>{var Y;a==null||a.deleteContextWithIds(R.map(se=>se.description.id),e.index),(Y=b.current)==null||Y.focus(),pt(void 0),ie(void 0)},onKeyDown:Y=>{var se;Y.key==="Backspace"&&(a==null||a.deleteContextWithIds(R.map(j=>j.description.id),e.index),(se=b.current)==null||se.focus(),pt(void 0),ie(void 0))},children:I.jsx(pD,{width:"1.4em",height:"1.4em"})}),(e.isMainInput?R:B[e.index].context_used||[]).map((Y,se)=>{var j,$,J,be;return I.jsx(rde,{areMultipleItems:R.length>1,item:Y,editing:Y.editing&&(($=(j=b.current)==null?void 0:j.value)==null?void 0:$.startsWith("/edit")),editingAny:(be=(J=b.current)==null?void 0:J.value)==null?void 0:be.startsWith("/edit"),stepIndex:e.index,index:se,onDelete:()=>{var Fe;a==null||a.deleteContextWithIds([Y.description.id],e.index),(Fe=b.current)==null||Fe.focus(),(Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name||Y.description.id.item_id===(Ge==null?void 0:Ge.description.id.item_id)&&(Ge==null?void 0:Ge.description.id.provider_name)===Y.description.id.provider_name)&&(pt(void 0),ie(void 0))},onClick:Fe=>{Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name?ie(void 0):ie(Y)},onBlur:()=>{ie(void 0)},toggleViewContent:()=>{pt(Fe=>{if(!Fe)return Y;if(!(Fe.description.id.item_id===Y.description.id.item_id&&Fe.description.id.provider_name===Y.description.id.provider_name))return Y})},previewing:Y.description.id.item_id===(Ge==null?void 0:Ge.description.id.item_id)&&(Ge==null?void 0:Ge.description.id.provider_name)===Y.description.id.provider_name,focusing:Y.description.id.item_id===(U==null?void 0:U.description.id.item_id)&&(U==null?void 0:U.description.id.provider_name)===Y.description.id.provider_name,prefixInputWithEdit:Fe=>{var De,tt,Je;!Fe&&((De=b.current)!=null&&De.value.startsWith("/edit"))&&fe.setInputValue((tt=b.current)==null?void 0:tt.value.replace("/edit ","")),!fe.inputValue.startsWith("/edit")&&(fe.setInputValue(`/edit ${fe.inputValue}`),(Je=b.current)==null||Je.focus())}},`${Y.description.id.item_id}${se}`)})]}):R.length>0&&I.jsxs("div",{onClick:()=>{var Y;(Y=b.current)==null||Y.focus(),ve(!0)},style:{color:vt,fontSize:"10px",backgroundColor:Kt,paddingLeft:"12px",cursor:"default",paddingTop:nr(),width:"fit-content"},children:[e.active?"Using":"Used"," ",R.length," ","context item",R.length===1?"":"s"]}),Ge&&I.jsx("pre",{className:"m-0",children:I.jsx(pg,{source:`\`\`\`${qA(Ge.description.description)} +${Ge.content} +\`\`\``,maxHeight:200})}),dt&&I.jsx("div",{children:R.map(Y=>I.jsxs(pfe,{children:[I.jsxs(ffe,{children:[I.jsx($b,{height:"20px",width:"20px",filename:Y.description.name}),Y.description.description]}),I.jsx("pre",{className:"m-0",children:I.jsx(pg,{source:`\`\`\`${qA(Y.description.description)} +${Y.content} +\`\`\``,maxHeight:200})})]}))}),I.jsxs("div",{className:"flex px-2 relative",style:{backgroundColor:Kt},ref:Z,children:[I.jsxs(cfe,{loading:e.active||!1,isFirst:!1,isLast:!1,borderColor:e.active?void 0:Kt,borderRadius:wt,children:[I.jsx(hfe,{onClick:()=>{var Y;(Y=b.current)==null||Y.focus()},onMouseEnter:()=>O(!0),onMouseLeave:Y=>{var se;Y.relatedTarget===ne.current||(se=ne.current)!=null&&se.contains(Y.relatedTarget)||O(!1)},rows:e.isMainInput?void 0:1,inQueryForDynamicProvider:typeof A<"u",fontSize:nr(),disabled:e.disabled,placeholder:"Ask a question, '/' for slash commands, '@' to add context",...de({onCompositionStart:()=>Ve(!0),onCompositionEnd:()=>Ve(!1),onChange:Y=>{},onFocus:Y=>{xe(!0),o(au(void 0))},onBlur:Y=>{var se,j;(se=pe.current)!=null&&se.contains(Y.relatedTarget)||(j=document.getElementById("toggle-context-div"))!=null&&j.contains(Y.relatedTarget)||xe(!1)},onKeyDown:Y=>{var se,j;if(o(au(void 0)),Y.key==="Enter"&&Y.shiftKey)Y.nativeEvent.preventDownshiftDefault=!0,v(!1);else if(Y.key==="Enter"&&(!fe.isOpen||g.length===0)&&!Xe){const $=fe.inputValue;if(A){const J=$.split("@");Le(A.title,J[J.length-1]),v(!1),fe.setInputValue("");return}else $!==""&&(m(c.length+1),p([...c,$])),Y.nativeEvent.preventDownshiftDefault=!0,e.onEnter&&e.onEnter(Y,$);v(!1)}else if(Y.key==="Enter"&&T)Re(Y);else if(Y.key==="Tab"&&fe.isOpen&&g.length>0&&((se=g[fe.highlightedIndex])!=null&&se.name.startsWith("/")))fe.setInputValue(g[0].name),Y.preventDefault();else if(Y.key==="Tab")Y.nativeEvent.preventDownshiftDefault=!0;else{if((Y.key==="ArrowUp"||Y.key==="ArrowDown")&&g.length>0)return;if(Y.key==="ArrowUp"){if(f==0||Y.currentTarget.selectionStart!==0){Y.nativeEvent.preventDownshiftDefault=!0;return}else f==c.length&&(c.length===0||c[c.length-1]!==Y.currentTarget.value)&&p([...c,Y.currentTarget.value]);fe.setInputValue(c[f-1]),m($=>$-1),v(!1)}else if(Y.key==="ArrowDown"){if(f===c.length||Y.currentTarget.selectionStart!==Y.currentTarget.value.length){Y.nativeEvent.preventDownshiftDefault=!0;return}fMath.min($+1,c.length)),v(!1)}else if(Y.key==="Escape"){if(y){P(),Y.nativeEvent.preventDownshiftDefault=!0;return}else if(A){P(),Y.nativeEvent.preventDownshiftDefault=!0;return}v(!1),fe.isOpen&&g.length>0?(fe.closeMenu(),Y.nativeEvent.preventDownshiftDefault=!0):(Y.nativeEvent.preventDownshiftDefault=!0,(j=b.current)==null||j.blur(),rl("focusEditor",{}))}else Y.key==="Home"||Y.key==="End"?Y.nativeEvent.preventDownshiftDefault=!0:localStorage.getItem("ide")==="jetbrains"&&(_2()==="mac"?ofe(Y,fe.inputValue,fe.setInputValue):sfe(Y,fe.inputValue,fe.setInputValue))}},onClick:()=>{o(au(void 0))},ref:b})}),e.isMainInput||I.jsx(gfe,{ref:ne,children:oe&&I.jsx("div",{className:"flex",children:I.jsxs(I.Fragment,{children:[B.filter((Y,se)=>{var j;return((j=e.groupIndices)==null?void 0:j.includes(se))&&Y.logs}).some(Y=>Y.logs.length>0)&&I.jsx(vi,{onClick:Y=>{Y.stopPropagation(),e.groupIndices&&(a==null||a.showLogsAtIndex(e.groupIndices[1]))},text:"Inspect Prompt",children:I.jsx(dY,{width:"1.3em",height:"1.3em"})}),I.jsx(vi,{onClick:Y=>{var se;Y.stopPropagation(),e.active&&e.groupIndices?a==null||a.deleteAtIndex(e.groupIndices[1]):(se=e.onDelete)==null||se.call(e)},text:e.active?`Stop (${ZK()}⌫)`:"Delete",children:e.active?null:I.jsx(T2,{width:"1.4em",height:"1.4em"})})]})})})]}),A&&I.jsxs(mfe,{children:["Enter ",A.display_title," Query"]}),I.jsxs(bfe,{...fe.getMenuProps({ref:V}),isMainInput:e.isMainInput,showAbove:ce(),ulHeightPixels:((ue=V.current)==null?void 0:ue.getBoundingClientRect().height)||0,hidden:!fe.isOpen||g.length===0||((ye=b.current)==null?void 0:ye.value)==="",fontSize:nr(),children:[y&&I.jsxs("div",{style:{backgroundColor:Lt,borderBottom:`0.5px solid ${vt}`,display:"flex",gap:"4px",position:"sticky",top:"0px"},className:"py-2 px-4 my-0",children:[I.jsx(ac,{width:"1.4em",height:"1.4em",className:"cursor-pointer",onClick:Y=>{var se;P(),(se=b.current)==null||se.focus()}}),y.display_title," -"," ",y.description]}),fe.isOpen&&g.map((Y,se)=>I.jsxs(Xk,{style:{borderTop:se===0?"none":`0.5px solid ${vt}`},...fe.getItemProps({item:Y,index:se}),highlighted:fe.highlightedIndex===se,selected:fe.selectedItem===Y,onClick:j=>{var $;Re(j),j.stopPropagation(),j.preventDefault(),($=b.current)==null||$.focus()},children:[I.jsxs("span",{className:"flex justify-between w-full items-center",children:[I.jsxs("div",{className:"flex items-center justify-center",children:[y&&I.jsx($b,{height:"20px",width:"20px",filename:Y.name}),Y.name," "]}),I.jsx("span",{style:{color:vt,float:"right",textAlign:"right"},children:Y.description})]}),(W==null?void 0:W.filter(j=>!j.dynamic||j.requires_query).find(j=>j.title===Y.id))&&I.jsx(lY,{width:"1.2em",height:"1.2em",color:vt,className:"ml-2 flex-shrink-0"})]},`${Y.name}${se}`)),fe.isOpen&&g.length===0&&I.jsx(Xk,{highlighted:!1,selected:!1,isLastItem:!1,children:I.jsx("span",{style:{color:vt,float:"right",textAlign:"right",display:"flex",width:"100%",cursor:"default"},children:"No items found"})},"empty-items-li")]})]}),e.isMainInput&&I.jsx(Zpe,{disabled:!((We=b.current)!=null&&We.value)&&!(typeof(u==null?void 0:u.current_index)<"u"&&((at=u.timeline[u.current_index])!=null&&at.active)),onClick:()=>{var Y,se;typeof(u==null?void 0:u.current_index)<"u"&&((Y=u.timeline[u.current_index])!=null&&Y.active)?a==null||a.deleteAtIndex(u.current_index):(se=e.onEnter)==null||se.call(e,void 0)},showStop:typeof(u==null?void 0:u.current_index)<"u"&&((Qe=u.timeline[u.current_index])==null?void 0:Qe.active)||!1})]})});function Qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t=0||(p[u]=o[u]);return p}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vfe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e)}function fF(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Sg(e);if(t){var i=Sg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vfe(this,n)}}function yo(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var a,o,s=[],u=!0,c=!1;try{for(i=i.call(n);!(u=(a=i.next()).done)&&(s.push(a.value),!r||s.length!==r);u=!0);}catch(p){c=!0,o=p}finally{try{u||i.return==null||i.return()}finally{if(c)throw o}}return s}}(e,t)||E7(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yb(e){return function(t){if(Array.isArray(t))return Xb(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||E7(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E7(e,t){if(e){if(typeof e=="string")return Xb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xb(e,t):void 0}}function Xb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}var fa={DEBUG:!1,LIB_VERSION:"1.75.2"};/** + * uuidv7: An experimental implementation of the proposed UUID Version 7 + * + * @license Apache-2.0 + * @copyright 2021-2023 LiosK + * @packageDocumentation + * + * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts + */Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});var eI="0123456789abcdef",yfe=function(){function e(t){if(Bn(this,e),this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}return Un(e,[{key:"toString",value:function(){for(var t="",n=0;n>>4)+eI.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(t){return this.compareTo(t)===0}},{key:"compareTo",value:function(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=t/Math.pow(2,40),a[1]=t/Math.pow(2,32),a[2]=t/Math.pow(2,24),a[3]=t/Math.pow(2,16),a[4]=t/Math.pow(2,8),a[5]=t,a[6]=112|n>>>8,a[7]=n,a[8]=128|r>>>24,a[9]=r>>>16,a[10]=r>>>8,a[11]=r,a[12]=i>>>24,a[13]=i>>>16,a[14]=i>>>8,a[15]=i,new e(a)}}]),e}(),_fe=function(){function e(){Bn(this,e),ct(this,"timestamp",0),ct(this,"counter",0),ct(this,"random",new Tfe)}return Un(e,[{key:"generate",value:function(){var t=this.generateOrAbort();if(t!==void 0)return t;this.timestamp=0;var n=this.generateOrAbort();if(n===void 0)throw new Error("Could not generate UUID after timestamp reset");return n}},{key:"generateOrAbort",value:function(){var t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return yfe.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),hF=function(e){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t=this.buffer.length&&(hF(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),Sfe=function(){return(tI||(tI=new _fe)).generate()},gF=Array.prototype,mF=Object.prototype,v7=mF.toString,wfe=mF.hasOwnProperty,ht=typeof window<"u"?window:{},Wl=ht.navigator||{userAgent:""},Hn=ht.document||{},ra=Wl.userAgent,Afe=["localhost","127.0.0.1"],nI=gF.forEach,rI=gF.indexOf,Cfe=Array.isArray,y7={},kn={log:function(){if(fa.DEBUG&&!Ua(window.console)&&window.console){for(var e=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r0&&(t[r]=n)}),t},kfe=["$performance_raw"];function Ife(e,t){return n=e,r=function(a,o){return o&&kfe.indexOf(o)>-1?a:typeof a=="string"&&t!==null?a.slice(0,t):a},i=new Set,function a(o,s){return o!==Object(o)?r?r(o,s):o:i.has(o)?void 0:(i.add(o),Wo(o)?(u=[],Zo(o,function(c){u.push(a(c))})):(u={},fn(o,function(c,p){i.has(c)||(u[p]=a(c,p))})),u);var u}(n);var n,r,i}function _7(e){var t,n,r,i,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",p=[];if(!e)return e;e=Rfe(e);do t=(a=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,p[u++]=o.charAt(t)+o.charAt(n)+o.charAt(r)+o.charAt(i);while(s127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),s!==null&&(n>t&&(a+=e.substring(t,n)),a+=s,t=n=i+1)}return n>t&&(a+=e.substring(t,e.length)),a},iI=function(e){var t=function(){var n=new Date().valueOf(),r=0;if(ht.performance&&ht.performance.now)r=1e4*ht.performance.now();else for(;n==new Date().valueOf();)r++;return n.toString(16)+Math.floor(r).toString(16)};return function(n){if(n==="og"||e==="og"){var r=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return t()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var i,a,o=ra,s=0,u=[];function c(p,f){var m,g=0;for(m=0;m=4&&(s=c(s,u),u=[]);return u.length>0&&(s=c(s,u)),s.toString(16)}()+"-"+r+"-"+t()}return Sfe().toString()}},Nfe=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler|prerender)/i.test(e)},aI=function(e,t){var n=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{kn.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},oI=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Fd=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,a){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!a);else{var o="on"+n,s=t[o];t[o]=function(u,c,p){return function(f){if(f=f||e(window.event)){var m,g=!0;bF(p)&&(m=p(f));var E=c.call(u,f);return m!==!1&&E!==!1||(g=!1),g}}}(t,r,s)}else kn.error("No valid element provided to register_event")}}();function T7(e,t){var n=function(){var r=Hn.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(o){return t(void 0,o)},r.onerror=function(o){return t(o)};var i,a=Hn.querySelectorAll("body > script");a.length>0?(i=a[0].parentNode)===null||i===void 0||i.insertBefore(r,a[0]):Hn.body.appendChild(r)};Hn.body?n():Hn.addEventListener("DOMContentLoaded",n)}var yr={campaignParams:function(e){var t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(e||[]),n={};return fn(t,function(r){var i=aI(Hn.URL,r);i.length&&(n[r]=i)}),n},searchEngine:function(){var e=Hn.referrer;return e?e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var e=yr.searchEngine(),t=e!="yahoo"?"q":"p",n={};if(e!==null){n.$search_engine=e;var r=aI(Hn.referrer,t);r.length&&(n.ph_keyword=r)}return n},browser:function(e,t,n){return t=t||"",n||pn(e," OPR/")?pn(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":pn(e,"IEMobile")||pn(e,"WPDesktop")?"Internet Explorer Mobile":pn(e,"SamsungBrowser/")?"Samsung Internet":pn(e,"Edge")||pn(e,"Edg/")?"Microsoft Edge":pn(e,"FBIOS")?"Facebook Mobile":pn(e,"Chrome")?"Chrome":pn(e,"CriOS")?"Chrome iOS":pn(e,"UCWEB")||pn(e,"UCBrowser")?"UC Browser":pn(e,"FxiOS")?"Firefox iOS":pn(t,"Apple")?pn(e,"Mobile")?"Mobile Safari":"Safari":pn(e,"Android")?"Android Mobile":pn(e,"Konqueror")?"Konqueror":pn(e,"Firefox")?"Firefox":pn(e,"MSIE")||pn(e,"Trident/")?"Internet Explorer":pn(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[yr.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},browserLanguage:function(){return Wl.language||Wl.userLanguage},os:function(e){if(/Windows/i.test(e)){if(/Phone/.test(e)||/WPDesktop/.test(e))return{os_name:"Windows Phone",os_version:""};var t=/Windows NT ([0-9.]+)/i.exec(e);return t&&t[1]?{os_name:"Windows",os_version:t[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(e)){var n=/OS (\d+)_(\d+)_?(\d+)?/i.exec(e);return n&&n[1]?{os_name:"iOS",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(e)){var r=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(e);return r&&r[1]?{os_name:"Android",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(e))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(e)){var i=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(e);return i&&i[1]?{os_name:"Mac OS X",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(e)?{os_name:"Linux",os_version:""}:/CrOS/.test(e)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)&&!/Mobile/.test(e)?"Android Tablet":/Android/.test(e)?"Android":""},deviceType:function(e){var t=this.device(e);return t==="iPad"||t==="Android Tablet"?"Tablet":t?"Mobile":"Desktop"},referrer:function(){return Hn.referrer||"$direct"},referringDomain:function(){if(!Hn.referrer)return"$direct";var e=Hn.createElement("a");return e.href=Hn.referrer,e.host},properties:function(){var e=yr.os(ra),t=e.os_name,n=e.os_version;return Pr(Jb({$os:t,$os_version:n,$browser:yr.browser(ra,Wl.vendor,ht.opera),$device:yr.device(ra),$device_type:yr.deviceType(ra)}),{$current_url:ht==null?void 0:ht.location.href,$host:ht==null?void 0:ht.location.host,$pathname:ht==null?void 0:ht.location.pathname,$browser_version:yr.browserVersion(ra,Wl.vendor,ht.opera),$browser_language:yr.browserLanguage(),$screen_height:ht==null?void 0:ht.screen.height,$screen_width:ht==null?void 0:ht.screen.width,$viewport_height:ht==null?void 0:ht.innerHeight,$viewport_width:ht==null?void 0:ht.innerWidth,$lib:"web",$lib_version:fa.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:vF()/1e3})},people_properties:function(){var e=yr.os(ra),t=e.os_name,n=e.os_version;return Pr(Jb({$os:t,$os_version:n,$browser:yr.browser(ra,Wl.vendor,ht.opera)}),{$browser_version:yr.browserVersion(ra,Wl.vendor,ht.opera)})}};function wg(e){switch(ol(e.className)){case"string":return e.className;case"object":return("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";default:return""}}function Ag(e){var t="";return Eh(e)&&!TF(e)&&e.childNodes&&e.childNodes.length&&fn(e.childNodes,function(n){_F(n)&&n.textContent&&(t+=Zb(n.textContent).split(/(\s+)/).filter(S1).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Zb(t)}function sI(e){return!!e&&e.nodeType===1}function ou(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function _F(e){return!!e&&e.nodeType===3}function lI(e){return!!e&&e.nodeType===11}var Q3=["a","button","form","input","select","textarea","label"];function Eh(e){for(var t=e;t.parentNode&&!ou(t,"body");t=t.parentNode){var n=wg(t).split(" ");if(pn(n,"ph-sensitive")||pn(n,"ph-no-capture"))return!1}if(pn(wg(e).split(" "),"ph-include"))return!0;var r=e.type||"";if(typeof r=="string")switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(typeof i=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function TF(e){return!!(ou(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||ou(e,"select")||ou(e,"textarea")||e.getAttribute("contenteditable")==="true")}function S1(e){return!(e===null||Ua(e)||typeof e=="string"&&(e=Zb(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function uI(e){var t=Ag(e);return S1(t="".concat(t," ").concat(SF(e)).trim())?t:""}function SF(e){var t="";return e&&e.childNodes&&e.childNodes.length&&fn(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{var i=Ag(n);t="".concat(t," ").concat(i).trim(),n.childNodes&&n.childNodes.length&&(t="".concat(t," ").concat(SF(n)).trim())}catch(a){console.error(a)}}),t}var Ofe=function(){function e(t){Bn(this,e),this.clicks=[],this.enabled=t}return Un(e,[{key:"isRageClick",value:function(t,n,r){if(!this.enabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}]),e}(),Dfe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,po={is_supported:function(){return!0},error:function(e){kn.error("cookieStore error: "+e)},get:function(e){try{for(var t=e+"=",n=document.cookie.split(";"),r=0;r-1&&!n&&(r.toLowerCase()==="a"||r.toLowerCase()==="button"?i.$el_text=uI(e):i.$el_text=Ag(e));var a=wg(e);a.length>0&&(i.classes=a.split(" ").filter(function(c){return c!==""})),fn(e.attributes,function(c){var p;TF(e)&&["name","id","class"].indexOf(c.name)===-1||!t&&S1(c.value)&&(typeof(p=c.name)!="string"||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")&&(i["attr__"+c.name]=c.value)});for(var o=1,s=1,u=e;u=this._previousElementSibling(u);)o++,u.tagName===e.tagName&&s++;return i.nth_child=o,i.nth_of_type=s,i},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1}},_extractCustomPropertyValue:function(e){var t=[];return fn(document.querySelectorAll(e.css_selector),function(n){var r;["input","select"].indexOf(n.tagName.toLowerCase())>-1?r=n.value:n.textContent&&(r=n.textContent),S1(r)&&t.push(r)}),t.join(", ")},_getCustomProperties:function(e){var t=this,n={};return fn(this._customProperties,function(r){fn(r.event_selectors,function(i){fn(document.querySelectorAll(i),function(a){pn(e,a)&&Eh(a)&&(n[r.name]=t._extractCustomPropertyValue(r))})})}),n},_getEventTarget:function(e){return e.target===void 0?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t},_captureEvent:function(e,t){var n,r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",a=this._getEventTarget(e);if(_F(a)&&(a=a.parentNode||null),i==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this._captureEvent(e,t,"$rageclick"),a&&function(g,E){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!g||ou(g,"html")||!sI(g))return!1;if(b!=null&&b.url_allowlist){var T=window.location.href,v=b.url_allowlist;if(v&&!v.some(function(z){return T.match(z)}))return!1}if(b!=null&&b.dom_event_allowlist){var y=b.dom_event_allowlist;if(y&&!y.some(function(z){return E.type===z}))return!1}if(b!=null&&b.element_allowlist){var w=b.element_allowlist;if(w&&!w.some(function(z){return g.tagName.toLowerCase()===z}))return!1}if(b!=null&&b.css_selector_allowlist){var A=b.css_selector_allowlist;if(A&&!A.some(function(z){return g.matches(z)}))return!1}for(var D=!1,k=[g],R=!0,B=g;B.parentNode&&!ou(B,"body");)if(lI(B.parentNode))k.push(B.parentNode.host),B=B.parentNode.host;else{if(!(R=B.parentNode||!1))break;if(Q3.indexOf(R.tagName.toLowerCase())>-1)D=!0;else{var W=window.getComputedStyle(R);W&&W.getPropertyValue("cursor")==="pointer"&&(D=!0)}k.push(R),B=R}var P=window.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&E.type==="click")return!0;var Q=g.tagName.toLowerCase();switch(Q){case"html":return!1;case"form":return E.type==="submit";case"input":case"select":case"textarea":return E.type==="change"||E.type==="click";default:return D?E.type==="click":E.type==="click"&&(Q3.indexOf(Q)>-1||g.getAttribute("contenteditable")==="true")}}(a,e,this.config)){for(var o=[a],s=a;s.parentNode&&!ou(s,"body");)lI(s.parentNode)?(o.push(s.parentNode.host),s=s.parentNode.host):(o.push(s.parentNode),s=s.parentNode);var u,c=[],p={},f=!1;if(fn(o,function(g){var E=Eh(g);g.tagName.toLowerCase()==="a"&&(u=g.getAttribute("href"),u=E&&S1(u)&&u),pn(wg(g).split(" "),"ph-no-capture")&&(f=!0),c.push(r._getPropertiesFromElement(g,t.get_config("mask_all_element_attributes"),t.get_config("mask_all_text")));var b=r._getAugmentPropertiesFromElement(g);Pr(p,b)}),t.get_config("mask_all_text")||(a.tagName.toLowerCase()==="a"||a.tagName.toLowerCase()==="button"?c[0].$el_text=uI(a):c[0].$el_text=Ag(a)),u&&(c[0].attr__href=u),f)return!1;var m=Pr(this._getDefaultProperties(e.type),{$elements:c},this._getCustomProperties(o),p);return t.capture(i,m),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=this,n=function(r){r=r||window.event,t._captureEvent(r,e)};Fd(document,"submit",n,!1,!0),Fd(document,"change",n,!1,!0),Fd(document,"click",n,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(e){var t;typeof e.__autocapture!="boolean"&&(this.config=e.__autocapture),(t=this.config)!==null&&t!==void 0&&t.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(n){return new RegExp(n)})),this.rageclicks=new Ofe(e.get_config("rageclick"))},afterDecideResponse:function(e,t){var n=t.get_config("token");this._initializedTokens.indexOf(n)>-1?kn.log('autocapture already initialized for token "'+n+'"'):(t.persistence&&t.persistence.register(ct({},cI,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this._setIsAutocaptureEnabled(t),this._initializedTokens.push(n),e&&e.config&&e.config.enable_collect_everything&&this._isAutocaptureEnabled?(e.custom_properties&&(this._customProperties=e.custom_properties),this._addDomEventHandlers(t)):t.__autocapture=!1)},enabledForProject:function(e,t,n){if(!e)return!0;t=Ua(t)?10:t,n=Ua(n)?10:n;for(var r=0,i=0;i1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i="".concat(r),a=this.instance.get_property(Cg)||{};return!n.send_event&&"send_event"in n||t in a&&a[t].includes(i)||(Array.isArray(a[t])?a[t].push(i):a[t]=[i],this.instance.persistence.register(ct({},Cg,a)),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}console.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(t){return this.getFlagPayloads()[t]}},{key:"isFeatureEnabled",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);console.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers.push(t)}},{key:"removeFeatureFlagsHandler",value:function(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(n){return n!==t})}},{key:"receivedFeatureFlags",value:function(t){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads();(function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=i.featureFlags,c=i.featureFlagPayloads;if(u)if(Array.isArray(u)){var p,f={};if(u)for(var m=0;m1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(r9);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.earlyAccessFeatures;return n.instance.persistence.register(ct({},r9,o)),t(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(function(r){return n[r]}),flagVariants:Object.keys(n).filter(function(r){return n[r]}).reduce(function(r,i){return r[i]=n[i],r},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,r=t.flagVariants;this.featureFlagEventHandlers.forEach(function(i){return i(n,r)})}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(A1)||{};this.instance.register(ct({},A1,yt(yt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(A1)}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r=this.instance.get_property(Ps)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(function(i){r[i]=yt(yt({},r[i]),t[i]),delete t[i]}),this.instance.register(ct({},Ps,yt(yt({},r),t))),n&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(t){if(t){var n=this.instance.get_property(Ps)||{};this.instance.register(ct({},Ps,yt(yt({},n),{},ct({},t,{}))))}else this.instance.unregister(Ps)}}]),e}(),Bfe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",mI=2,Ufe=4,AF=3,$fe=6,zfe=0,Hfe=5e6,jfe="rrweb/console@1",oo,Gfe=Un(function e(t){var n,r,i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bn(this,e),ct(this,"bucketSize",100),ct(this,"refillRate",10),ct(this,"mutationBuckets",{}),ct(this,"loggedTracker",{}),ct(this,"refillBuckets",function(){Object.keys(i.mutationBuckets).forEach(function(o){i.mutationBuckets[o]=i.mutationBuckets[o]+i.refillRate,i.mutationBuckets[o]>=i.bucketSize&&delete i.mutationBuckets[o]})}),ct(this,"getNodeOrRelevantParent",function(o){var s=i.rrweb.mirror.getNode(o);if((s==null?void 0:s.nodeName)!=="svg"&&s instanceof Element){var u=s.closest("svg");if(u)return[i.rrweb.mirror.getId(u),u]}return[o,s]}),ct(this,"numberOfChanges",function(o){var s,u,c,p,f,m,g,E;return((s=(u=o.removes)===null||u===void 0?void 0:u.length)!==null&&s!==void 0?s:0)+((c=(p=o.attributes)===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0)+((f=(m=o.texts)===null||m===void 0?void 0:m.length)!==null&&f!==void 0?f:0)+((g=(E=o.adds)===null||E===void 0?void 0:E.length)!==null&&g!==void 0?g:0)}),ct(this,"throttleMutations",function(o){if(o.type!==AF||o.data.source!==zfe)return o;var s=o.data,u=i.numberOfChanges(s);s.attributes&&(s.attributes=s.attributes.filter(function(p){var f,m,g,E=yo(i.getNodeOrRelevantParent(p.id),2),b=E[0],T=E[1];return i.mutationBuckets[b]===0?!1:(i.mutationBuckets[b]=(f=i.mutationBuckets[b])!==null&&f!==void 0?f:i.bucketSize,i.mutationBuckets[b]=Math.max(i.mutationBuckets[b]-1,0),i.mutationBuckets[b]===0&&(i.loggedTracker[b]||(i.loggedTracker[b]=!0,(m=(g=i.options).onBlockedNode)===null||m===void 0||m.call(g,b,T))),p)}));var c=i.numberOfChanges(s);return c!==0||u===c?o:void 0}),this.rrweb=t,this.options=a,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(function(){i.refillBuckets()},1e3)}),Vfe="/s/",CF="sessionRecording";(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(oo||(oo={}));var Wfe=[oo.MouseMove,oo.MouseInteraction,oo.Scroll,oo.ViewportResize,oo.Input,oo.TouchMove,oo.MediaInteraction,oo.Drag],qfe=function(){function e(t){var n=this;Bn(this,e),ct(this,"lastActivityTimestamp",Date.now()),ct(this,"isIdle",!1),this.instance=t,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=Vfe,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1,window.addEventListener("beforeunload",function(){n._flushBuffer()})}return Un(e,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var t=!!this.instance.get_property(t9),n=!this.instance.get_config("disable_session_recording");return t&&n}},{key:"isConsoleLogCaptureEnabled",value:function(){var t=!!this.instance.get_property(dI),n=this.instance.get_config("enable_recording_console_log");return n??t}},{key:"getRecordingVersion",value:function(){var t,n=this.instance.get_property(pI);return((t=this.instance.get_config("session_recording"))===null||t===void 0?void 0:t.recorderVersion)||n||"v1"}},{key:"afterDecideResponse",value:function(t){var n,r,i,a,o,s;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((ct(o={},t9,!!t.sessionRecording),ct(o,dI,(i=t.sessionRecording)===null||i===void 0?void 0:i.consoleLogRecordingEnabled),ct(o,pI,(a=t.sessionRecording)===null||a===void 0?void 0:a.recorderVersion),o)),(n=t.sessionRecording)!==null&&n!==void 0&&n.endpoint&&(this.endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),(r=t.sessionRecording)!==null&&r!==void 0&&r.recorderVersion&&(this.recorderVersion=t.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"log",value:function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:vF()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var t=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(n){return t._captureSnapshotBuffered(n)})),this._startCapture()}},{key:"_startCapture",value:function(){var t=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var n=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?T7(this.instance.get_config("api_host")+"/static/".concat(n,"?v=").concat(fa.LIB_VERSION),function(r){if(r)return kn.error("Could not load ".concat(n),r);t._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(t){var n;return t.type===AF&&Wfe.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(t){var n=this._isInteractiveEvent(t);if(n||this.isIdle||t.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),n&&(this.lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var r=this.instance.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),i=r.windowId,a=r.sessionId;[mI,Ufe].indexOf(t.type)!==-1||this.windowId===i&&this.sessionId===a||this._tryTakeFullSnapshot(),this.windowId=i,this.sessionId=a}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var t;return(t=this.rrwebRecord)===null||t===void 0||t.takeFullSnapshot(),!0}catch(n){return kn.error("Error taking full snapshot.",n),!1}}},{key:"_onScriptLoaded",value:function(){var t,n=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),a=0,o=Object.entries(i||{});aHfe){var c,p=as(u.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(p.s();!(c=p.n()).done;){var f=c.value;u=f[1].toLocaleLowerCase().slice(0,6)==="image/"?u.replace(f[0],Bfe):u.replace(f[0],"")}}catch(m){p.e(m)}finally{p.f()}}return{event:JSON.parse(u),size:u.length}}(function(s){var u=s;if(u&&ol(u)==="object"&&u.type===$fe&&ol(u.data)==="object"&&u.data.plugin===jfe){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));for(var c=[],p=0;p2e3?c.push(u.data.payload.payload[p].slice(0,2e3)+"...[truncated]"):c.push(u.data.payload.payload[p]);return u.data.payload.payload=c,s}return s}(n)),i=r.event,a=r.size;if(this._updateWindowAndSessionIds(i),!this.isIdle){var o={$snapshot_bytes:a,$snapshot_data:i,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(i.type)),this.emit?this._captureSnapshotBuffered(o):this.snapshots.push(o)}}}}},{key:"_flushBuffer",value:function(){return this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0),this.buffer&&this.buffer.data.length!==0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_captureSnapshotBuffered",value:function(t){var n,r=this,i=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);(!this.buffer||this.buffer.size+t.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){r._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(t){this.instance.capture("$snapshot",t,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:CF,_metrics:{rrweb_full_snapshot:t.$snapshot_data.type===mI}})}}]),e}(),no={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Kfe=["first-input","navigation","paint","resource"],Yfe=["/s/","/e/"],Xfe=function(){function e(t){Bn(this,e),ct(this,"_forceAllowLocalhost",!1),this.instance=t}return Un(e,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var t,n,r=this;if(!this.observer)if(((t=window)===null||t===void 0||(n=t.PerformanceObserver)===null||n===void 0?void 0:n.supportedEntryTypes)!==void 0)if(!Afe.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(a){a.getEntries().forEach(function(o){r._capturePerformanceEvent(o)})});var i=PerformanceObserver.supportedEntryTypes.filter(function(a){return Kfe.includes(a)});i.forEach(function(a){var o;(o=r.observer)===null||o===void 0||o.observe({type:a,buffered:!0})})}catch(a){console.error("PostHog failed to start performance observer",a),this.stopObserving()}else kn.log("PostHog Peformance observer not started because we are on localhost.");else kn.log("PostHog Performance observer not started because PerformanceObserver is not supported by this browser.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var t,n;return(t=(n=this.instance.get_config("capture_performance"))!==null&&n!==void 0?n:this.remoteEnabled)!==null&&t!==void 0&&t}},{key:"afterDecideResponse",value:function(t){this.remoteEnabled=t.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(t){if(t.name.indexOf(this.instance.get_config("api_host"))===0){var n=t.name.replace(this.instance.get_config("api_host"),"");if(Yfe.find(function(g){return n.indexOf(g)===0}))return}var r={url:t.name},i=this.instance.get_config("session_recording");if(i.maskNetworkRequestFn&&(r=i.maskNetworkRequestFn(r)),r){var a=t.toJSON();a.name=r.url;var o={},s=Math.floor(Date.now()-performance.now());for(var u in o[no.timeOrigin]=s,o[no.timestamp]=Math.floor(s+t.startTime),no)a[u]!==void 0&&(o[no[u]]=a[u]);if(this.capturePerformanceEvent(o),Zfe(t)){var c,p=as(t.serverTiming||[]);try{for(p.s();!(c=p.n()).done;){var f,m=c.value;this.capturePerformanceEvent((ct(f={},no.timeOrigin,s),ct(f,no.timestamp,Math.floor(s+t.startTime)),ct(f,no.name,m.name),ct(f,no.duration,m.duration),ct(f,no.entryType,"serverTiming"),f))}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"capturePerformanceEvent",value:function(t){var n,r=t[no.timestamp];(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:t},timestamp:r})}}]),e}(),Zfe=function(e){return e.entryType==="navigation"||e.entryType==="resource"},Qfe=function(){function e(t){Bn(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return Un(e,[{key:"call",value:function(){var t=this,n=_7(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(A1),group_properties:this.instance.get_property(Ps),disable_flags:this.instance.get_config("advanced_disable_feature_flags")||this.instance.get_config("advanced_disable_feature_flags_on_first_load")||void 0}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:n,verbose:!0},{method:"POST"},function(r){return t.parseDecideResponse(r)})}},{key:"parseDecideResponse",value:function(t){var n,r,i,a=this;if((t==null?void 0:t.status)!==0){if(!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){a.parseDecideResponse(t)},500);if(this.instance.toolbar.afterDecideResponse(t),(n=this.instance.sessionRecording)===null||n===void 0||n.afterDecideResponse(t),zs.afterDecideResponse(t,this.instance),(r=this.instance.webPerformance)===null||r===void 0||r.afterDecideResponse(t),(i=this.instance.exceptionAutocapture)===null||i===void 0||i.afterDecideResponse(t),this.instance.get_config("advanced_disable_feature_flags_on_first_load")||this.instance.featureFlags.receivedFeatureFlags(t),this.instance.compression={},t.supportedCompression&&!this.instance.get_config("disable_compression")){var o,s={},u=as(t.supportedCompression);try{for(u.s();!(o=u.n()).done;)s[o.value]=!0}catch(g){u.e(g)}finally{u.f()}this.instance.compression=s}if(t.siteApps)if(this.instance.get_config("opt_in_site_apps")){var c,p=this.instance.get_config("api_host"),f=as(t.siteApps);try{var m=function(){var g=c.value,E=g.id,b=g.url,T=[p,p[p.length-1]==="/"&&b[0]==="/"?b.substring(1):b].join("");window["__$$ph_site_app_".concat(E)]=a.instance,T7(T,function(v){v&&console.error("Error while initializing PostHog app with config id ".concat(E),v)})};for(f.s();!(c=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}}else t.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),e}(),Jfe=["https://app.posthog.com","https://eu.posthog.com"],e0e=["source"],t0e=function(){function e(t){Bn(this,e),this.instance=t}return Un(e,[{key:"afterDecideResponse",value:function(t){var n=t.toolbarParams||t.editorParams||(t.toolbarVersion?{toolbarVersion:t.toolbarVersion}:{});t.isAuthenticated&&n.toolbarVersion&&n.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(yt({},n))}},{key:"maybeLoadToolbar",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!n){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}n=window.localStorage}var i,a=oI(t.hash,"__posthog")||oI(t.hash,"state"),o=a?JSON.parse(decodeURIComponent(a)):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState("",document.title,t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.get_config("token")!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}},{key:"loadToolbar",value:function(t){var n=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var r=this.instance.get_config("api_host"),i=3e4*Math.floor(Date.now()/3e4),a="".concat(r).concat(r.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(i),o=!Jfe.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),s=yt(yt({token:this.instance.get_config("token")},t),{},{apiURL:r},o?{instrument:!1}:{});s.source;var u=Efe(s,e0e);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(u)),T7(a,function(c){c?kn.error("Failed to load toolbar",c):(window.ph_load_toolbar||window.ph_load_editor)(s,n.instance)}),Fd(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,n.loadToolbar(s)}),!0}},{key:"_loadEditor",value:function(t){return this.loadToolbar(t)}},{key:"maybeLoadEditor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(t,n,r)}}]),e}(),n0e="__ph_opt_in_out_";function r0e(e,t){kF(!0,e,t)}function i0e(e,t){kF(!1,e,t)}function a0e(e,t){return xF(e,t)==="1"}function bI(e,t){return!!function(n){if(n&&n.respectDnt){var r=n&&n.window||ht,i=r.navigator||{},a=!1;return fn([i.doNotTrack,i.msDoNotTrack,r.doNotTrack],function(o){pn([!0,1,"1","yes"],o)&&(a=!0)}),a}return!1}(t)||xF(e,t)==="0"}function o0e(e,t){S7(t=t||{}).remove(w7(e,t),!!t.crossSubdomainCookie)}function S7(e){return(e=e||{}).persistenceType==="localStorage"?qn:e.persistenceType==="localStorage+cookie"?e9:po}function w7(e,t){return((t=t||{}).persistencePrefix||n0e)+e}function xF(e,t){return S7(t).get(w7(e,t))}function kF(e,t,n){EF(t)&&t.length?(S7(n=n||{}).set(w7(t,n),e?1:0,xfe(n.cookieExpiration)?n.cookieExpiration:null,n.crossSubdomainCookie,n.secureCookie),n.capture&&e&&n.capture(n.captureEventName||"$opt_in",n.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}var IF=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Bn(this,e),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=t}return Un(e,[{key:"setPollInterval",value:function(t){this._pollInterval=t,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),e}(),s0e=function(e){pF(n,IF);var t=fF(n);function n(r,i){var a,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Bn(this,n),(a=t.call(this,o)).handlePollRequest=i,a.captureMetrics=r,a}return Un(n,[{key:"enqueue",value:function(r,i,a){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:r,data:i,options:a}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var r=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(r._event_queue.length>0){var i=r.formatQueue(),a=function(s){var u=i[s],c=u.url,p=u.data,f=u.options;fn(p,function(m,g){p[g].offset=Math.abs(p[g].timestamp-r.getTime()),delete p[g].timestamp}),r.handlePollRequest(c,p,f),r.captureMetrics.incr("batch-requests"),r.captureMetrics.incr("batch-requests-".concat(c.slice(c.length-2))),r.captureMetrics.incr("batch-handle",p.length),r.captureMetrics.incr("batch-handle-".concat(c.slice(c.length-2)),p.length)};for(var o in i)a(o);r._event_queue.length=0,r._empty_queue_count=0}else r._empty_queue_count++;r._empty_queue_count>4&&(r.isPolling=!1,r._empty_queue_count=0),r.isPolling&&r.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var r=this.formatQueue();for(var i in r){var a=r[i],o=a.url,s=a.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",s.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),s.length)}}},{key:"unload",value:function(){var r=this;clearTimeout(this._poller);var i=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var a=Object.values(i);[].concat(Yb(a.filter(function(o){return o.url.indexOf("/e")===0})),Yb(a.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var s=o.url,u=o.data,c=o.options;r.handlePollRequest(s,u,yt(yt({},c),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var r={};return fn(this._event_queue,function(i){var a=i.url,o=i.data,s=i.options,u=(s?s._batchKey:null)||a;r[u]===void 0&&(r[u]={data:[],url:a,options:s}),s&&r[u].options&&r[u].options._metrics&&!r[u].options._metrics.rrweb_full_snapshot&&(r[u].options._metrics.rrweb_full_snapshot=s._metrics.rrweb_full_snapshot),r[u].data.push(o)}),r}}]),n}(),l0e=function(){function e(t){Bn(this,e),this.enabled=t,this.metrics={}}return Un(e,[{key:"incr",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)+n)}},{key:"decr",value:function(t){this.enabled&&(t="phjs-".concat(t),this.metrics[t]=(this.metrics[t]||0)-1)}}]),e}(),Pi=Uint8Array,Jr=Uint16Array,ec=Uint32Array,A7=new Pi([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),C7=new Pi([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),EI=new Pi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),RF=function(e,t){for(var n=new Jr(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&Tn)<<1;zl=(61680&(zl=(52428&zl)>>>2|(13107&zl)<<2))>>>4|(3855&zl)<<4,l9[Tn]=((65280&zl)>>>8|(255&zl)<<8)>>>1}var Pd=function(e,t,n){for(var r=e.length,i=0,a=new Jr(t);i>>u]=c}else for(o=new Jr(r),i=0;i>>15-e[i];return o},bu=new Pi(288);for(Tn=0;Tn<144;++Tn)bu[Tn]=8;for(Tn=144;Tn<256;++Tn)bu[Tn]=9;for(Tn=256;Tn<280;++Tn)bu[Tn]=7;for(Tn=280;Tn<288;++Tn)bu[Tn]=8;var xg=new Pi(32);for(Tn=0;Tn<32;++Tn)xg[Tn]=5;var Yl,c0e=Pd(bu,9,0),d0e=Pd(xg,5,0),OF=function(e){return(e/8>>0)+(7&e&&1)},DF=function(e,t,n){(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof Jr?Jr:e instanceof ec?ec:Pi)(n-t);return r.set(e.subarray(t,n)),r},$o=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},Jc=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},t4=function(e,t){for(var n=[],r=0;rm&&(m=a[r].s);var g=new Jr(m+1),E=p0e(n[p-1],g,0);if(E>t){r=0;var b=0,T=E-t,v=1<t))break;b+=v-(1<>>=T;b>0;){var w=a[r].s;g[w]=0&&b;--r){var A=a[r].s;g[A]==t&&(--g[A],++b)}E=t}return[new Pi(g),E]},p0e=function e(t,n,r){return t.s==-1?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},yI=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Jr(++t),r=0,i=e[0],a=1,o=function(u){n[r++]=u},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return[n.subarray(0,r),t]},ed=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a4&&!P[EI[z-1]];--z);var le,he,de,fe,Z=c+5<<3,V=ed(i,bu)+ed(a,xg)+o,ce=ed(i,m)+ed(a,b)+o+14+3*z+ed(R,P)+(2*R[16]+3*R[17]+7*R[18]);if(Z<=V&&Z<=ce)return yh(t,p,e.subarray(u,u+c));if($o(t,p,1+(ce15&&($o(t,p,O[B]>>>5&127),p+=O[B]>>>12)}}}else le=c0e,he=bu,de=d0e,fe=xg;for(B=0;B255){re=r[B]>>>18&31,Jc(t,p,le[re+257]),p+=he[re+257],re>7&&($o(t,p,r[B]>>>23&31),p+=A7[re]);var Te=31&r[B];Jc(t,p,de[Te]),p+=fe[Te],Te>3&&(Jc(t,p,r[B]>>>5&8191),p+=C7[Te])}else Jc(t,p,le[r[B]]),p+=he[r[B]];return Jc(t,p,le[256]),p+he[256]},f0e=new ec([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),h0e=new Pi(0),g0e=function(){for(var e=new ec(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),m0e=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r>>8;e=n},d:function(){return 4294967295^e}}},b0e=function(e,t,n,r,i){return function(a,o,s,u,c,p){var f=a.length,m=new Pi(u+f+5*(1+Math.floor(f/7e3))+c),g=m.subarray(u,m.length-c),E=0;if(!o||f<8)for(var b=0;b<=f;b+=65535){var T=b+65535;T>>13,w=8191&v,A=(1<7e3||de>24576)&&me>423){E=_I(a,g,0,P,Q,z,he,de,Z,b-Z,E),de=le=he=0,Z=b;for(var oe=0;oe<286;++oe)Q[oe]=0;for(oe=0;oe<30;++oe)z[oe]=0}var O=2,re=0,Te=w,K=ce-N&32767;if(me>2&&V==W(b-K))for(var xe=Math.min(y,me)-1,ne=Math.min(32767,b),Le=Math.min(258,me);K<=ne&&--Te&&ce!=N;){if(a[b+O]==a[b+O-K]){for(var Re=0;ReO){if(O=Re,re=K,Re>xe)break;var Xe=Math.min(K,Re-2),Ve=0;for(oe=0;oeVe&&(Ve=ot,N=dt)}}}K+=(ce=N)-(N=D[ce])+32768&32767}if(re){P[de++]=268435456|s9[O]<<18|vI[re];var Ge=31&s9[O],pt=31&vI[re];he+=A7[Ge]+C7[pt],++Q[257+Ge],++z[pt],fe=b+O,++le}else P[de++]=a[b],++Q[a[b]]}}E=_I(a,g,p,P,Q,z,he,de,Z,b-Z,E),p||(E=yh(g,E,h0e))}return DF(m,0,u+OF(E)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},u9=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},E0e=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&u9(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},v0e=function(e){return 10+(e.filename&&e.filename.length+1||0)};function y0e(e,t){t===void 0&&(t={});var n=m0e(),r=e.length;n.p(e);var i=b0e(e,t,v0e(t),8),a=i.length;return E0e(i,t),u9(i,a-8,n.d()),u9(i,a-4,r),i}function _0e(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Pi(e.length+(e.length>>>1)),i=0,a=function(c){r[i++]=c},o=0;or.length){var s=new Pi(i+8+(n-o<<1));s.set(r),r=s}var u=e.charCodeAt(o);u<128||t?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return DF(r,0,i)}(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(Yl||(Yl={}));var T0e=function(e,t,n){var r=t||{};r.ip=n.ip?1:0,r._=new Date().getTime().toString(),r.ver=fa.LIB_VERSION;var i=e.split("?");if(i.length>1){var a,o=as(i[1].split("&"));try{for(o.s();!(a=o.n()).done;){var s=a.value.split("=")[0];r[s]&&delete r[s]}}catch(c){o.e(c)}finally{o.f()}}var u=e.indexOf("?")>-1?"&":"?";return e+u+function(c){var p,f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",g=[];return fn(c,function(E,b){p=encodeURIComponent(E.toString()),f=encodeURIComponent(b),g[g.length]=f+"="+p}),g.join(m)}(r)},x7=function e(t,n){if(n.blob&&t.buffer)return new Blob([t.buffer],{type:"text/plain"});if(n.sendBeacon||n.blob){var r=e(t,{method:"POST"});return new Blob([r],{type:"application/x-www-form-urlencoded"})}if(n.method!=="POST")return null;var i,a;return i=Array.isArray(t)||(a=t,Object.prototype.toString.call(a)==="[object Uint8Array]")?"data="+encodeURIComponent(t):"data="+encodeURIComponent(t.data),"compression"in t&&t.compression&&(i+="&compression="+t.compression),i},LF=function(e){var t=e.url,n=e.data,r=e.headers,i=e.options,a=e.captureMetrics,o=e.callback,s=e.retriesPerformedSoFar,u=e.retryQueue,c=e.onXHRError,p=e.timeout,f=p===void 0?1e4:p,m=e.onRateLimited,g=new XMLHttpRequest;g.open(i.method||"GET",t,!0);var E=x7(n,i);a.incr("_send_request"),a.incr("_send_request_inflight"),fn(r,function(b,T){g.setRequestHeader(T,b)}),i.method!=="POST"||i.blob||g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.timeout=f,g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState===4)if(a.incr("xhr-response"),a.incr("xhr-response-".concat(g.status)),a.decr("_send_request_inflight"),g.status===200){if(o){var b;try{b=JSON.parse(g.responseText)}catch(T){return void kn.error(T)}o(b)}}else typeof c=="function"&&c(g),[401,403,404,500].indexOf(g.status)<0&&u.enqueue({url:t,data:n,options:i,headers:r,retriesPerformedSoFar:(s||0)+1,callback:o}),g.status===429&&(m==null||m(g)),o&&o({status:0})},g.send(E)},S0e=18e5,w0e=function(e){pF(n,IF);var t=fF(n);function n(r,i,a){var o;return Bn(this,n),(o=t.call(this)).captureMetrics=r,o.isPolling=!1,o.queue=[],o.areWeOnline=!0,o.onXHRError=i,o.rateLimiter=a,typeof window<"u"&&"onLine"in window.navigator&&(o.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){o._handleWeAreNowOnline()}),window.addEventListener("offline",function(){o.areWeOnline=!1})),o}return Un(n,[{key:"enqueue",value:function(r){var i=r.retriesPerformedSoFar||0;if(!(i>=10)){var a=function(s){var u=3e3*Math.pow(2,s),c=u/2,p=Math.min(S0e,u),f=(Math.random()-.5)*(p-c);return Math.ceil(p+f)}(i),o=new Date(Date.now()+a);this.queue.push({retryAt:o,requestData:r}),console.warn("Enqueued failed request for retry in ".concat(a)),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var r=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){r.areWeOnline&&r.queue.length>0&&r.flush(),r.poll()},this._pollInterval)}},{key:"flush",value:function(){var r=new Date(Date.now()),i=this.queue.filter(function(u){return u.retryAt0){this.queue=this.queue.filter(function(u){return u.retryAt>=r});var a,o=as(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.requestData;this._executeXhrRequest(s)}}catch(u){o.e(u)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var r,i=as(this.queue);try{for(i.s();!(r=i.n()).done;){var a=r.value.requestData,o=a.url,s=a.data,u=a.options;if(this.rateLimiter.isRateLimited(u._batchKey))fa.DEBUG&&console.warn("[PostHog RetryQueue] is quota limited. Dropping request.");else try{window.navigator.sendBeacon(o,x7(s,yt(yt({},u),{},{sendBeacon:!0})))}catch(c){fa.DEBUG&&console.error(c)}}}catch(c){i.e(c)}finally{i.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(r){var i=r.url,a=r.data,o=r.options,s=r.headers,u=r.callback,c=r.retriesPerformedSoFar;this.rateLimiter.isRateLimited(o._batchKey)?fa.DEBUG&&console.warn("[PostHog RetryQueue] in quota limited mode. Dropping request."):LF({url:i,data:a||{},options:o||{},headers:s||{},retriesPerformedSoFar:c||0,callback:u,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError,onRateLimited:this.rateLimiter.on429Response})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),n}(),z0=1800,TI=60,A0e=864e5,C0e=function(){function e(t,n,r){Bn(this,e),ct(this,"_sessionIdChangedHandlers",[]),this.uuidFn=r,this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||z0;if(typeof a!="number"?(console.warn("[PostHog] session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=z0):a>z0?console.warn("[PostHog] session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a0&&arguments[0]!==void 0&&arguments[0],n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),r=yo(this._getSessionId(),3),i=r[0],a=r[1],o=r[2],s=this._getWindowId(),u=o&&o>0&&Math.abs(n-o)>A0e,c=!1;!a||!t&&Math.abs(n-i)>this._sessionTimeoutMs||u?(a=this.uuidFn(),s=this.uuidFn(),o=n,c=!0):s||(s=this.uuidFn(),c=!0);var p=i===0||!t||u?n:i,f=o===0?new Date().getTime():o;return this._setWindowId(s),this._setSessionId(a,p,f),c&&this._sessionIdChangedHandlers.forEach(function(m){return m(a,s)}),{sessionId:a,windowId:s,sessionStartTimestamp:f}}}]),e}(),x0e=Un(function e(t,n,r,i){Bn(this,e),this.name="posthog-js",this.setupOnce=function(a){a(function(o){var s,u,c,p,f;if(o.level!=="error"||!t.__loaded)return o;o.tags||(o.tags={});var m=t.config.ui_host||t.config.api_host;o.tags["PostHog Person URL"]=m+"/person/"+t.get_distinct_id(),t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var g=((s=o.exception)===null||s===void 0?void 0:s.values)||[],E={$exception_message:(u=g[0])===null||u===void 0?void 0:u.value,$exception_type:(c=g[0])===null||c===void 0?void 0:c.type,$exception_personURL:m+"/person/"+t.get_distinct_id(),$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(p=g[0])===null||p===void 0?void 0:p.value,$sentry_exception_type:(f=g[0])===null||f===void 0?void 0:f.type,$sentry_tags:o.tags};return n&&r&&(E.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),t.capture("$exception",E),o})}}),k0e=function(e){Promise&&Promise.resolve||console.warn("This browser does not have Promise support, and can not use the segment integration");var t=function(n,r){n.event.userId||n.event.anonymousId===e.get_distinct_id()||e.reset(),n.event.userId&&n.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:n.event.userId}),e.reloadFeatureFlags());var i=e._calculate_event_properties(r,n.event.properties);return n.event.properties=Object.assign({},i,n.event.properties),n};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(n){return t(n,n.event.event)},page:function(n){return t(n,"$pageview")},identify:function(n){return t(n,"$identify")},screen:function(n){return t(n,"$screen")}}},I0e=function(){function e(t){Bn(this,e),ct(this,"_seenFirstPageView",!1),this.uuidFn=t}return Un(e,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=this.uuidFn()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=this.uuidFn()),this._pageViewId}}]),e}();function SI(e){return typeof Event<"u"&&MF(e,Event)}function MF(e,t){try{return e instanceof t}catch{return!1}}function wI(e){return e===null||ol(e)!=="object"&&typeof e!="function"}function _h(e,t){return Object.prototype.toString.call(e)==="[object ".concat(t,"]")}function n4(e){return _h(e,"DOMError")}var AI=/\(error: (.*)\)/,CI=50,Th="?";function r4(e,t,n,r){var i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var R0e=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,N0e=/\((\S*)(?::(\d+))(?::(\d+))\)/,O0e=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,D0e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,L0e=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,M0e=(function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:0,o=[],s=i.split(` +`),u=a;u1024)){var p=AI.test(c)?c.replace(AI,"$1"):c;if(!p.match(/\S*Error: /)){var f,m=as(r);try{for(m.s();!(f=m.n()).done;){var g=(0,f.value)(p);if(g){o.push(g);break}}}catch(E){m.e(E)}finally{m.f()}if(o.length>=CI)break}}}return function(E){if(!E.length)return[];var b=E.slice(0,CI);return b.reverse(),b.map(function(T){return yt(yt({},T),{},{filename:T.filename||b[b.length-1].filename,function:T.function||"?"})})}(o)}}).apply(void 0,[[30,function(e){var t=R0e.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){var n=N0e.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=yo(xI(t[1]||Th,t[2]),2),i=r[0];return r4(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,function(e){var t=O0e.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=D0e.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],i=t[1]||Th,a=yo(xI(i,r),2);return i=a[0],r4(r=a[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,function(e){var t=L0e.exec(e);return t?r4(t[2],t[1]||Th,+t[3],t[4]?+t[4]:void 0):void 0}]]),xI=function(e,t){var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Th,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},F0e=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,P0e=/Minified React error #\d+;/i;function B0e(e){var t=e.stacktrace||e.stack||"",n=function(r){if(r){if(typeof r.framesToPop=="number")return r.framesToPop;if(P0e.test(r.message))return 1}return 0}(e);try{return M0e(t,n)}catch{}return[]}function i4(e){var t=B0e(e);return{$exception_type:e.name,$exception_message:e.message,$exception_stack_trace_raw:JSON.stringify(t)}}function U0e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:40,n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:"".concat(i.slice(0,t),"...")}return""}function kI(e){var t=yo(e,5),n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s={};if(o===void 0&&typeof n=="string"){var u="Error",c=n,p=n.match(F0e);p&&(u=p[1],c=p[2]),s={$exception_type:u,$exception_message:c}}var f=o||n;if(n4(f)||function(b){return _h(b,"DOMException")}(f)){var m=f;if(function(b){return"stack"in b}(f))s=i4(f);else{var g=m.name||(n4(m)?"DOMError":"DOMException"),E=m.message?"".concat(g,": ").concat(m.message):g;s=function(b){return{$exception_type:"Error",$exception_message:b}}(E),s.$exception_type=n4(m)?"DOMError":"DOMException",s.$exception_message=s.$exception_message||E}"code"in m&&(s.$exception_DOMException_code="".concat(m.code))}else(function(b){return _h(b,"ErrorEvent")})(f)&&f.error?s=i4(f.error):function(b){switch(Object.prototype.toString.call(b)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return MF(b,Error)}}(f)?s=i4(f):function(b){return _h(b,"Object")}(f)||SI(f)?(s=function(b){return{$exception_type:SI(b)?b.constructor.name:"Error",$exception_message:"Non-Error ".concat("exception"," captured with keys: ",U0e(b))}}(f),s.$exception_is_synthetic=!0):(s.$exception_type=s.$exception_type||"Error",s.$exception_message=s.$exception_message||f,s.$exception_is_synthetic=!0);return yt(yt(yt(yt({},s),{},{$exception_type:s.$exception_type||"UnknownErrorType",$exception_message:s.$exception_message||""},r?{$exception_source:r}:{}),i?{$exception_lineno:i}:{}),a?{$exception_colno:a}:{})}var II,RI,$0e=function(){function e(t){Bn(this,e),ct(this,"originalOnErrorHandler",void 0),ct(this,"originalOnUnhandledRejectionHandler",void 0),ct(this,"errorsToIgnore",[]),this.instance=t}return Un(e,[{key:"debugLog",value:function(){if(this.instance.get_config("debug")){for(var t,n=arguments.length,r=new Array(n),i=0;i1&&arguments[1]!==void 0&&arguments[1],i=this.instance.get_property(i9);if(i&&!r)return t(i);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/surveys/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(a){var o=a.surveys;return n.instance.persistence.register(ct({},i9,o)),t(o)})}},{key:"getActiveMatchingSurveys",value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(i){var a=i.filter(function(o){return!(!o.start_date||o.end_date)}).filter(function(o){var s,u;if(!o.conditions)return!0;var c=(s=o.conditions)===null||s===void 0||!s.url||window.location.href.indexOf(o.conditions.url)>-1,p=(u=o.conditions)===null||u===void 0||!u.selector||document.querySelector(o.conditions.selector);return c&&p}).filter(function(o){if(!o.linked_flag_key&&!o.targeting_flag_key)return!0;var s=!o.linked_flag_key||n.instance.featureFlags.isFeatureEnabled(o.linked_flag_key),u=!o.targeting_flag_key||n.instance.featureFlags.isFeatureEnabled(o.targeting_flag_key);return s&&u});return t(a)},r)}}]),e}(),H0e={"X-PostHog-Retry-After-Recordings":CF,"X-PostHog-Retry-After-Events":"events"},j0e=function(){function e(){Bn(this,e),ct(this,"limits",{})}return Un(e,[{key:"isRateLimited",value:function(t){var n=this.limits[t||"events"]||!1;return n!==!1&&new Date().getTime()1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var u,c={segmentRegister:!1,syncCode:!1},p=function(A){return function(){c[A]||(c[A]=!0,c.segmentRegister&&c.syncCode&&(s==null||s(i)))}};if(this.set_config(Pr({},NI(),a,{name:o,token:t,callback_fn:(o===pi?o:pi+"."+o)+"._jsc"})),this.uuidFn=iI(this.config.uuid_version||"og"),this._jsc=function(){},(ht!=null&&(n=ht.rrweb)!==null&&n!==void 0&&n.record||ht!=null&&ht.rrwebRecord)&&(this.__loaded_recorder_version=ht==null||(u=ht.rrweb)===null||u===void 0?void 0:u.version),this.persistence=new fI(this.config),this._captureMetrics=new l0e(this.get_config("_capture_metrics")),this._requestQueue=new s0e(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new w0e(this._captureMetrics,this.get_config("on_xhr_error"),this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new C0e(this.config,this.persistence,this.uuidFn),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new fI(yt(yt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(p("segmentRegister"))):p("segmentRegister")(),((r=a.bootstrap)===null||r===void 0?void 0:r.distinctID)!==void 0){var f,m,g=this.get_config("get_device_id")(this.uuidFn()),E=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?g:a.bootstrap.distinctID;this.persistence.set_user_state((m=a.bootstrap)!==null&&m!==void 0&&m.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:E})}if(this._hasBootstrappedFeatureFlags()){var b,T,v=Object.keys(((b=a.bootstrap)===null||b===void 0?void 0:b.featureFlags)||{}).filter(function(A){var D,k;return!((D=a.bootstrap)===null||D===void 0||(k=D.featureFlags)===null||k===void 0||!k[A])}).reduce(function(A,D){var k,R;return A[D]=((k=a.bootstrap)===null||k===void 0||(R=k.featureFlags)===null||R===void 0?void 0:R[D])||!1,A},{}),y=Object.keys(((T=a.bootstrap)===null||T===void 0?void 0:T.featureFlagPayloads)||{}).filter(function(A){return v[A]}).reduce(function(A,D){var k,R,B,W;return(k=a.bootstrap)!==null&&k!==void 0&&(R=k.featureFlagPayloads)!==null&&R!==void 0&&R[D]&&(A[D]=(B=a.bootstrap)===null||B===void 0||(W=B.featureFlagPayloads)===null||W===void 0?void 0:W[D]),A},{});this.featureFlags.receivedFeatureFlags({featureFlags:v,featureFlagPayloads:y})}if(!this.get_distinct_id()){var w=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_user_state("anonymous")}ht.addEventListener&&ht.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),p("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(t){console.error("`loaded` function failed",t)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{title:Hn.title},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new Qfe(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var t=this;this.has_opted_out_capturing()||Zo(this.__request_queue,function(n){t._send_request.apply(t,Yb(n))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(t,n){if(Ua(t))return null;if(Sh)return function(o){t(o,n)};var r=this._jsc,i=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],t(o,n)},a}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(t,n,r){var i=JSON.stringify(n);this.__compress_and_send_json_request(t,i,r||H0,c9)}},{key:"__compress_and_send_json_request",value:function(t,n,r,i){var a=function(c,p,f){return c===Yl.GZipJS?[y0e(_0e(p),{mtime:0}),yt(yt({},f),{},{blob:!0,urlQueryArgs:{compression:Yl.GZipJS}})]:[{data:_7(p)},f]}(this.compression[Yl.GZipJS]?Yl.GZipJS:Yl.Base64,n,r),o=yo(a,2),s=o[0],u=o[1];this._send_request(t,s,u,i)}},{key:"_send_request",value:function(t,n,r,i){if(this.rateLimiter.isRateLimited(r._batchKey))this.get_config("debug")&&console.warn("[PostHog SendRequest] is quota limited. Dropping request.");else if(FF)this.__request_queue.push([t,n,r,i]);else{var a={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};r=Pr(a,r||{}),Sh||(r.method="GET");var o="sendBeacon"in ht.navigator&&r.transport==="sendBeacon";if(t=T0e(t,r.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{ht.navigator.sendBeacon(t,x7(n,yt(yt({},r),{},{sendBeacon:!0})))}catch{}else if(Sh)try{LF({url:t,data:n,headers:this.get_config("xhr_headers"),options:r,captureMetrics:this._captureMetrics,callback:i,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error"),onRateLimited:this.rateLimiter.on429Response})}catch(p){console.error(p)}else{var s,u=Hn.createElement("script");u.type="text/javascript",u.async=!0,u.defer=!0,u.src=t;var c=Hn.getElementsByTagName("script")[0];(s=c.parentNode)===null||s===void 0||s.insertBefore(u,c)}}}},{key:"_execute_array",value:function(t){var n,r=this,i=[],a=[],o=[];Zo(t,function(u){u&&(n=u[0],Wo(n)?o.push(u):typeof u=="function"?u.call(r):Wo(u)&&n==="alias"?i.push(u):Wo(u)&&n.indexOf("capture")!==-1&&typeof r[n]=="function"?o.push(u):a.push(u))});var s=function(u,c){Zo(u,function(p){if(Wo(p[0])){var f=c;fn(p,function(m){f=f[m[0]].apply(f,m.slice(1))})}else this[p[0]].apply(this,p.slice(1))},c)};s(i,this),s(a,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}},{key:"push",value:function(t){this._execute_array([t])}},{key:"captureException",value:function(t,n){var r;(r=this.exceptionAutocapture)===null||r===void 0||r.captureException([t.name,void 0,void 0,void 0,t],n)}},{key:"capture",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:H0;if(this.__loaded&&!function(c,p){var f=!1;try{var m=c.get_config("token"),g=c.get_config("respect_dnt"),E=c.get_config("opt_out_capturing_persistence_type"),b=c.get_config("opt_out_capturing_cookie_prefix")||void 0,T=c.get_config("window");m&&(f=bI(m,{respectDnt:g,persistenceType:E,persistencePrefix:b,window:T}))}catch(v){p||console.error("Unexpected error when checking capturing opt-out status: "+v)}return f}(this,!1)){this._captureMetrics.incr("capture"),t==="$snapshot"&&this._captureMetrics.incr("snapshot");var i=(r=r||H0).transport;if(i&&(r.transport=i),Ua(t)||typeof t!="string")console.error("No event name provided to posthog.capture");else if(!Nfe(ra)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var a={uuid:this.uuidFn("v7"),event:t,properties:this._calculate_event_properties(t,n||{})};t==="$identify"&&(a.$set=r.$set,a.$set_once=r.$set_once),(a=Ife(a,r._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=r.timestamp||new Date,this.get_config("debug")&&kn.log("PostHog.js send",a);var o=JSON.stringify(a),s=this.get_config("api_host")+(r.endpoint||"/e/"),u=r!==H0;return!this.get_config("request_batching")||u&&!r._batchKey||r.send_instantly?this.__compress_and_send_json_request(s,o,r):this._requestQueue.enqueue(s,a,r),this._invokeCaptureHooks(t,a),a}}}},{key:"_addCaptureHook",value:function(t){this.__captureHooks.push(t)}},{key:"_invokeCaptureHooks",value:function(t,n){this.config._onCapture(t,n),fn(this.__captureHooks,function(r){return r(t)})}},{key:"_calculate_event_properties",value:function(t,n){var r,i=this.persistence.remove_event_timer(t),a=yt({},n);if(a.token=this.get_config("token"),t==="$snapshot"){var o=yt(yt({},this.persistence.properties()),this.sessionPersistence.properties());return a.distinct_id=o.distinct_id,a}var s=yr.properties();if(this.sessionManager){var u=this.sessionManager.checkAndGetSessionAndWindowId(),c=u.sessionId,p=u.windowId;a.$session_id=c,a.$window_id=p}if((r=this.webPerformance)!==null&&r!==void 0&&r.isEnabled&&(t==="$pageview"&&this.pageViewIdManager.onPageview(),a=Pr(a,{$pageview_id:this.pageViewIdManager.getPageViewId()})),t==="$pageview"&&(a.title=Hn.title),t==="$performance_event"){var f=this.persistence.properties();return a.distinct_id=f.distinct_id,a.$current_url=s.$current_url,a}if(i!==void 0){var m=new Date().getTime()-i;a.$duration=parseFloat((m/1e3).toFixed(3))}a=Pr({},yr.properties(),this.persistence.properties(),this.sessionPersistence.properties(),a);var g=this.get_config("property_blacklist");Wo(g)?fn(g,function(b){delete a[b]}):console.error("Invalid value for property_blacklist config: "+g);var E=this.get_config("sanitize_properties");return E&&(a=E(a,t)),a}},{key:"register",value:function(t,n){this.persistence.register(t,n)}},{key:"register_once",value:function(t,n,r){this.persistence.register_once(t,n,r)}},{key:"register_for_session",value:function(t){this.sessionPersistence.register(t)}},{key:"unregister",value:function(t){this.persistence.unregister(t)}},{key:"unregister_for_session",value:function(t){this.sessionPersistence.unregister(t)}},{key:"_register_single",value:function(t,n){this.register(ct({},t,n))}},{key:"getFeatureFlag",value:function(t,n){return this.featureFlags.getFeatureFlag(t,n)}},{key:"getFeatureFlagPayload",value:function(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}},{key:"isFeatureEnabled",value:function(t,n){return this.featureFlags.isFeatureEnabled(t,n)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}},{key:"getEarlyAccessFeatures",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}},{key:"onFeatureFlags",value:function(t){return this.featureFlags.onFeatureFlags(t)}},{key:"onSessionId",value:function(t){return this.sessionManager.onSessionId(t)}},{key:"getSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}},{key:"getActiveMatchingSurveys",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}},{key:"identify",value:function(t,n,r){if(t){this._captureMetrics.incr("identify");var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var a=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:a},"")}t!==i&&t!==this.get_property(vh)&&(this.unregister(vh),this.register({distinct_id:t}));var o=this.persistence.get_user_state()==="anonymous";t!==i&&o?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Cg))}else console.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(t,n){(t||n)&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}},{key:"group",value:function(t,n,r){if(t&&n){this._captureMetrics.incr("group");var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:yt(yt({},i),{},ct({},t,n))}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags(ct({},t,r))),i[t]===n||r||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(t,n)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(t){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(t,n)}},{key:"resetGroupPropertiesForFlags",value:function(t){this.featureFlags.resetGroupPropertiesForFlags(t)}},{key:"reset",value:function(t){var n=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var r=this.get_config("get_device_id")(this.uuidFn());this.register_once({distinct_id:r,$device_id:t?r:n},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(t){var n=this.config.ui_host||this.config.api_host,r=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=r.sessionId,a=r.sessionStartTimestamp,o=n+"/replay/"+i;if(t!=null&&t.withTimestamp&&a){var s,u=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!a)return o;var c=Math.max(Math.floor((new Date().getTime()-a)/1e3)-u,0);o+="?t=".concat(c)}return o}},{key:"alias",value:function(t,n){return t===this.get_property(wF)?(kn.critical("Attempting to create alias for existing People user - aborting."),-2):(Ua(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(vh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(t),-1))}},{key:"set_config",value:function(t){var n=yt({},this.config);Qb(t)&&(Pr(this.config,t),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),qn.is_supported()&&qn.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(fa.DEBUG=!0),this.sessionRecording&&t.disable_session_recording!==void 0&&n.disable_session_recording!==t.disable_session_recording&&(t.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started())}},{key:"loadToolbar",value:function(t){return this.toolbar.loadToolbar(t)}},{key:"get_config",value:function(t){var n;return(n=this.config)===null||n===void 0?void 0:n[t]}},{key:"get_property",value:function(t){return this.persistence.props[t]}},{key:"getSessionProperty",value:function(t){return this.sessionPersistence.props[t]}},{key:"toString",value:function(){var t,n=(t=this.get_config("name"))!==null&&t!==void 0?t:pi;return n!==pi&&(n=pi+"."+n),n}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&qn.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!po.get("ph_optout")||(po.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),this.get_config("disable_persistence")||this.sessionPersistence.disabled===n||this.sessionPersistence.set_disabled(n)}},{key:"_gdpr_call_func",value:function(t,n){return n=Pr({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},n||{}),qn.is_supported()||n.persistence_type!=="localStorage"||(n.persistence_type="cookie"),t(this.get_config("token"),{capture:n.capture,captureEventName:n.capture_event_name,captureProperties:n.capture_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieExpiration:n.cookie_expiration,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie})}},{key:"opt_in_capturing",value:function(t){t=Pr({enable_persistence:!0},t||{}),this._gdpr_call_func(r0e,t),this._gdpr_update_persistence(t)}},{key:"opt_out_capturing",value:function(t){var n=Pr({clear_persistence:!0},t||{});this._gdpr_call_func(i0e,n),this._gdpr_update_persistence(n)}},{key:"has_opted_in_capturing",value:function(t){return this._gdpr_call_func(a0e,t)}},{key:"has_opted_out_capturing",value:function(t){return this._gdpr_call_func(bI,t)}},{key:"clear_opt_in_out_capturing",value:function(t){var n=Pr({enable_persistence:!0},t??{});this._gdpr_call_func(o0e,n),this._gdpr_update_persistence(n)}},{key:"debug",value:function(t){t===!1?(ht.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(ht.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();(function(e,t){for(var n=0;nI.jsx("div",{className:"m-auto w-full text-center mt-2",children:I.jsx(K0e,{viewBox:"0 0 32 32",children:I.jsx("circle",{cx:"16",cy:"16",r:"14"})})}),X0e=He.div` + background-color: ${Kt}; + display: flex; + justify-content: center; + align-items: center; + flex-shrink: 0; + flex-grow: 0; + margin-left: 13px; + cursor: pointer; +`,Z0e=He.div` + margin-top: 8px; + margin-bottom: 8px; + margin-left: 8px; + display: flex; + align-items: center; + gap: 4px; + font-size: ${e=>e.fontSize||nr()}px; + min-height: 16px; +`;function Q0e(e){var t,n;return e.open?e.children:I.jsxs(Z0e,{fontSize:nr(),children:[I.jsx(X0e,{onClick:()=>{e.onToggle()},children:e.iconElement||I.jsx(sD,{width:"16px",height:"16px"})}),I.jsx("span",{style:{color:vt},children:(t=e.historyNode.observation)!=null&&t.error?(n=e.historyNode.observation)==null?void 0:n.title:e.historyNode.step.name})]})}const J0e=He.div` + padding: 8px; + background-color: #ff000011; + border-radius: ${wt}; + border: 1px solid #cc0000; + margin: 8px; +`;function ehe(e){var t;return I.jsxs("div",{style:{backgroundColor:Kt,position:"relative"},children:[I.jsxs("div",{style:{position:"absolute",right:"12px",top:"12px",display:"flex"},children:[I.jsx(vi,{text:"Collapse",onClick:()=>e.onClose(),children:I.jsx(VY,{width:"1.3em",height:"1.3em"})}),I.jsx(vi,{text:"Delete",onClick:()=>e.onDelete(),children:I.jsx(T2,{width:"1.3em",height:"1.3em"})})]}),I.jsx(J0e,{children:I.jsx("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word"},children:(t=e.historyNode.observation)==null?void 0:t.error})})]})}/** + * @remix-run/router v1.7.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;tp(g,typeof g=="string"?null:g.state,E===0?"default":void 0));let a=u(n??i.length-1),o=Vn.Pop,s=null;function u(g){return Math.min(Math.max(g,0),i.length-1)}function c(){return i[a]}function p(g,E,b){E===void 0&&(E=null);let T=p9(i?c().pathname:"/",g,E,b);return Eu(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(g)),T}function f(g){return typeof g=="string"?g:lm(g)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:f,createURL(g){return new URL(f(g),"http://localhost")},encodeLocation(g){let E=typeof g=="string"?So(g):g;return{pathname:E.pathname||"",search:E.search||"",hash:E.hash||""}},push(g,E){o=Vn.Push;let b=p(g,E);a+=1,i.splice(a,i.length,b),r&&s&&s({action:o,location:b,delta:1})},replace(g,E){o=Vn.Replace;let b=p(g,E);i[a]=b,r&&s&&s({action:o,location:b,delta:0})},go(g){o=Vn.Pop;let E=u(a+g),b=i[E];a=E,s&&s({action:o,location:b,delta:g})},listen(g){return s=g,()=>{s=null}}}}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Eu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nhe(){return Math.random().toString(36).substr(2,8)}function p9(e,t,n,r){return n===void 0&&(n=null),Rn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?So(t):t,{state:n,key:t&&t.key||r||nhe()})}function lm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function So(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var Jn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Jn||(Jn={}));const rhe=new Set(["lazy","caseSensitive","path","id","index","children"]);function ihe(e){return e.index===!0}function f9(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let o=[...n,a],s=typeof i.id=="string"?i.id:o.join("-");if($t(i.index!==!0||!i.children,"Cannot specify children on an index route"),$t(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),ihe(i)){let u=Rn({},i,t(i),{id:s});return r[s]=u,u}else{let u=Rn({},i,t(i),{id:s,children:void 0});return r[s]=u,i.children&&(u.children=f9(i.children,t,o,r)),u}})}function C1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?So(t):t,i=Qp(r.pathname||"/",n);if(i==null)return null;let a=BF(e);ahe(a);let o=null;for(let s=0;o==null&&s{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};u.relativePath.startsWith("/")&&($t(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=sl([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&($t(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),BF(a.children,t,p,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:phe(c,a.index),routesMeta:p})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let u of UF(a.path))i(a,o,u)}),t}function UF(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=UF(r.join("/")),s=[];return s.push(...o.map(u=>u===""?a:[a,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function ahe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fhe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ohe=/^:\w+$/,she=3,lhe=2,uhe=1,che=10,dhe=-2,OI=e=>e==="*";function phe(e,t){let n=e.split("/"),r=n.length;return n.some(OI)&&(r+=dhe),t&&(r+=lhe),n.filter(i=>!OI(i)).reduce((i,a)=>i+(ohe.test(a)?she:a===""?uhe:che),r)}function fhe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function hhe(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{if(p==="*"){let m=s[f]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}return c[p]=Ehe(s[f]||"",p),c},{}),pathname:a,pathnameBase:o,pattern:e}}function mhe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Eu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function bhe(e){try{return decodeURI(e)}catch(t){return Eu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ehe(e,t){try{return decodeURIComponent(e)}catch(n){return Eu(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Qp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vhe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?So(e):e;return{pathname:n?n.startsWith("/")?n:yhe(n,t):t,search:The(r),hash:She(i)}}function yhe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function a4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function N7(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $F(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=So(e):(i=Rn({},e),$t(!i.pathname||!i.pathname.includes("?"),a4("?","pathname","search",i)),$t(!i.pathname||!i.pathname.includes("#"),a4("#","pathname","hash",i)),$t(!i.search||!i.search.includes("#"),a4("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(r||o==null)s=n;else{let f=t.length-1;if(o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;i.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=vhe(i,s),c=o&&o!=="/"&&o.endsWith("/"),p=(a||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}const sl=e=>e.join("/").replace(/\/\/+/g,"/"),_he=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),The=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,She=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class zF{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function HF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jF=["post","put","patch","delete"],whe=new Set(jF),Ahe=["get",...jF],Che=new Set(Ahe),xhe=new Set([301,302,303,307,308]),khe=new Set([307,308]),o4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ihe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},td={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},GF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rhe=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Nhe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$t(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let j=e.detectErrorBoundary;i=$=>({hasErrorBoundary:j($)})}else i=Rhe;let a={},o=f9(e.routes,i,void 0,a),s,u=e.basename||"/",c=Rn({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),p=null,f=new Set,m=null,g=null,E=null,b=e.hydrationData!=null,T=C1(o,e.history.location,u),v=null;if(T==null){let j=ia(404,{pathname:e.history.location.pathname}),{matches:$,route:J}=$I(o);T=$,v={[J.id]:j}}let y=!T.some(j=>j.route.lazy)&&(!T.some(j=>j.route.loader)||e.hydrationData!=null),w,A={historyAction:e.history.action,location:e.history.location,matches:T,initialized:y,navigation:o4,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},D=Vn.Pop,k=!1,R,B=!1,W=!1,P=[],Q=[],z=new Map,le=0,he=-1,de=new Map,fe=new Set,Z=new Map,V=new Map,ce=new Map,N=!1;function me(){return p=e.history.listen(j=>{let{action:$,location:J,delta:be}=j;if(N){N=!1;return}Eu(ce.size===0||be!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Fe=ue({currentLocation:A.location,nextLocation:J,historyAction:$});if(Fe&&be!=null){N=!0,e.history.go(be*-1),jt(Fe,{state:"blocked",location:J,proceed(){jt(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:J}),e.history.go(be)},reset(){let De=new Map(A.blockers);De.set(Fe,td),re({blockers:De})}});return}return ne($,J)}),A.initialized||ne(Vn.Pop,A.location),w}function oe(){p&&p(),f.clear(),R&&R.abort(),A.fetchers.forEach((j,$)=>pe($)),A.blockers.forEach((j,$)=>Ke($))}function O(j){return f.add(j),()=>f.delete(j)}function re(j){A=Rn({},A,j),f.forEach($=>$(A))}function Te(j,$){var J,be;let Fe=A.actionData!=null&&A.navigation.formMethod!=null&&Ma(A.navigation.formMethod)&&A.navigation.state==="loading"&&((J=j.state)==null?void 0:J._isRedirect)!==!0,De;$.actionData?Object.keys($.actionData).length>0?De=$.actionData:De=null:Fe?De=A.actionData:De=null;let tt=$.loaderData?UI(A.loaderData,$.loaderData,$.matches||[],$.errors):A.loaderData,Je=A.blockers;Je.size>0&&(Je=new Map(Je),Je.forEach((Rt,Zt)=>Je.set(Zt,td)));let Ze=k===!0||A.navigation.formMethod!=null&&Ma(A.navigation.formMethod)&&((be=j.state)==null?void 0:be._isRedirect)!==!0;s&&(o=s,s=void 0),B||D===Vn.Pop||(D===Vn.Push?e.history.push(j,j.state):D===Vn.Replace&&e.history.replace(j,j.state)),re(Rn({},$,{actionData:De,loaderData:tt,historyAction:D,location:j,initialized:!0,navigation:o4,revalidation:"idle",restoreScrollPosition:Y(j,$.matches||A.matches),preventScrollReset:Ze,blockers:Je})),D=Vn.Pop,k=!1,B=!1,W=!1,P=[],Q=[]}async function K(j,$){if(typeof j=="number"){e.history.go(j);return}let J=h9(A.location,A.matches,u,c.v7_prependBasename,j,$==null?void 0:$.fromRouteId,$==null?void 0:$.relative),{path:be,submission:Fe,error:De}=DI(c.v7_normalizeFormMethod,!1,J,$),tt=A.location,Je=p9(A.location,be,$&&$.state);Je=Rn({},Je,e.history.encodeLocation(Je));let Ze=$&&$.replace!=null?$.replace:void 0,Rt=Vn.Push;Ze===!0?Rt=Vn.Replace:Ze===!1||Fe!=null&&Ma(Fe.formMethod)&&Fe.formAction===A.location.pathname+A.location.search&&(Rt=Vn.Replace);let Zt=$&&"preventScrollReset"in $?$.preventScrollReset===!0:void 0,kt=ue({currentLocation:tt,nextLocation:Je,historyAction:Rt});if(kt){jt(kt,{state:"blocked",location:Je,proceed(){jt(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:Je}),K(j,$)},reset(){let nn=new Map(A.blockers);nn.set(kt,td),re({blockers:nn})}});return}return await ne(Rt,Je,{submission:Fe,pendingError:De,preventScrollReset:Zt,replace:$&&$.replace})}function xe(){if(U(),re({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){ne(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}ne(D||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function ne(j,$,J){R&&R.abort(),R=null,D=j,B=(J&&J.startUninterruptedRevalidation)===!0,Qe(A.location,A.matches),k=(J&&J.preventScrollReset)===!0;let be=s||o,Fe=J&&J.overrideNavigation,De=C1(be,$,u);if(!De){let nn=ia(404,{pathname:$.pathname}),{matches:Yt,route:jr}=$I(be);ye(),Te($,{matches:Yt,loaderData:{},errors:{[jr.id]:nn}});return}if(A.initialized&&!W&&Fhe(A.location,$)&&!(J&&J.submission&&Ma(J.submission.formMethod))){Te($,{matches:De});return}R=new AbortController;let tt=rd(e.history,$,R.signal,J&&J.submission),Je,Ze;if(J&&J.pendingError)Ze={[x1(De).route.id]:J.pendingError};else if(J&&J.submission&&Ma(J.submission.formMethod)){let nn=await Le(tt,$,J.submission,De,{replace:J.replace});if(nn.shortCircuited)return;Je=nn.pendingActionData,Ze=nn.pendingActionError,Fe=j0($,J.submission),tt=new Request(tt.url,{signal:tt.signal})}let{shortCircuited:Rt,loaderData:Zt,errors:kt}=await Re(tt,$,De,Fe,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,Je,Ze);Rt||(R=null,Te($,Rn({matches:De},Je?{actionData:Je}:{},{loaderData:Zt,errors:kt})))}async function Le(j,$,J,be,Fe){Fe===void 0&&(Fe={}),U();let De=zhe($,J);re({navigation:De});let tt,Je=m9(be,$);if(!Je.route.action&&!Je.route.lazy)tt={type:Jn.error,error:ia(405,{method:j.method,pathname:$.pathname,routeId:Je.route.id})};else if(tt=await nd("action",j,Je,be,a,i,u),j.signal.aborted)return{shortCircuited:!0};if($1(tt)){let Ze;return Fe&&Fe.replace!=null?Ze=Fe.replace:Ze=tt.location===A.location.pathname+A.location.search,await Ge(A,tt,{submission:J,replace:Ze}),{shortCircuited:!0}}if(Ud(tt)){let Ze=x1(be,Je.route.id);return(Fe&&Fe.replace)!==!0&&(D=Vn.Push),{pendingActionData:{},pendingActionError:{[Ze.route.id]:tt.error}}}if(eu(tt))throw ia(400,{type:"defer-action"});return{pendingActionData:{[Je.route.id]:tt.data}}}async function Re(j,$,J,be,Fe,De,tt,Je,Ze){let Rt=be||j0($,Fe),Zt=Fe||De||jI(Rt),kt=s||o,[nn,Yt]=LI(e.history,A,J,Zt,$,W,P,Q,Z,fe,kt,u,Je,Ze);if(ye(Wt=>!(J&&J.some(Rr=>Rr.route.id===Wt))||nn&&nn.some(Rr=>Rr.route.id===Wt)),he=++le,nn.length===0&&Yt.length===0){let Wt=Se();return Te($,Rn({matches:J,loaderData:{},errors:Ze||null},Je?{actionData:Je}:{},Wt?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!B){Yt.forEach(Rr=>{let _i=A.fetchers.get(Rr.key),Al=id(void 0,_i?_i.data:void 0);A.fetchers.set(Rr.key,Al)});let Wt=Je||A.actionData;re(Rn({navigation:Rt},Wt?Object.keys(Wt).length===0?{actionData:null}:{actionData:Wt}:{},Yt.length>0?{fetchers:new Map(A.fetchers)}:{}))}Yt.forEach(Wt=>{z.has(Wt.key)&&ke(Wt.key),Wt.controller&&z.set(Wt.key,Wt.controller)});let jr=()=>Yt.forEach(Wt=>ke(Wt.key));R&&R.signal.addEventListener("abort",jr);let{results:Gr,loaderResults:Vr,fetcherResults:Ta}=await pt(A.matches,J,nn,Yt,j);if(j.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",jr),Yt.forEach(Wt=>z.delete(Wt.key));let ii=zI(Gr);if(ii){if(ii.idx>=nn.length){let Wt=Yt[ii.idx-nn.length].key;fe.add(Wt)}return await Ge(A,ii.result,{replace:tt}),{shortCircuited:!0}}let{loaderData:Ir,errors:ps}=BI(A,J,nn,Vr,Ze,Yt,Ta,V);V.forEach((Wt,Rr)=>{Wt.subscribe(_i=>{(_i||Wt.done)&&V.delete(Rr)})});let fs=Se(),Wr=Me(he),hs=fs||Wr||Yt.length>0;return Rn({loaderData:Ir,errors:ps},hs?{fetchers:new Map(A.fetchers)}:{})}function Xe(j){return A.fetchers.get(j)||Ihe}function Ve(j,$,J,be){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");z.has(j)&&ke(j);let Fe=s||o,De=h9(A.location,A.matches,u,c.v7_prependBasename,J,$,be==null?void 0:be.relative),tt=C1(Fe,De,u);if(!tt){ie(j,$,ia(404,{pathname:De}));return}let{path:Je,submission:Ze,error:Rt}=DI(c.v7_normalizeFormMethod,!0,De,be);if(Rt){ie(j,$,Rt);return}let Zt=m9(tt,Je);if(k=(be&&be.preventScrollReset)===!0,Ze&&Ma(Ze.formMethod)){dt(j,$,Je,Zt,tt,Ze);return}Z.set(j,{routeId:$,path:Je}),ot(j,$,Je,Zt,tt,Ze)}async function dt(j,$,J,be,Fe,De){if(U(),Z.delete(j),!be.route.action&&!be.route.lazy){let qe=ia(405,{method:De.formMethod,pathname:J,routeId:$});ie(j,$,qe);return}let tt=A.fetchers.get(j),Je=Hhe(De,tt);A.fetchers.set(j,Je),re({fetchers:new Map(A.fetchers)});let Ze=new AbortController,Rt=rd(e.history,J,Ze.signal,De);z.set(j,Ze);let Zt=le,kt=await nd("action",Rt,be,Fe,a,i,u);if(Rt.signal.aborted){z.get(j)===Ze&&z.delete(j);return}if($1(kt))if(z.delete(j),he>Zt){let qe=i1(void 0);A.fetchers.set(j,qe),re({fetchers:new Map(A.fetchers)});return}else{fe.add(j);let qe=id(De);return A.fetchers.set(j,qe),re({fetchers:new Map(A.fetchers)}),Ge(A,kt,{submission:De,isFetchActionRedirect:!0})}if(Ud(kt)){ie(j,$,kt.error);return}if(eu(kt))throw ia(400,{type:"defer-action"});let nn=A.navigation.location||A.location,Yt=rd(e.history,nn,Ze.signal),jr=s||o,Gr=A.navigation.state!=="idle"?C1(jr,A.navigation.location,u):A.matches;$t(Gr,"Didn't find any matches after fetcher action");let Vr=++le;de.set(j,Vr);let Ta=id(De,kt.data);A.fetchers.set(j,Ta);let[ii,Ir]=LI(e.history,A,Gr,De,nn,W,P,Q,Z,fe,jr,u,{[be.route.id]:kt.data},void 0);Ir.filter(qe=>qe.key!==j).forEach(qe=>{let ee=qe.key,Be=A.fetchers.get(ee),it=id(void 0,Be?Be.data:void 0);A.fetchers.set(ee,it),z.has(ee)&&ke(ee),qe.controller&&z.set(ee,qe.controller)}),re({fetchers:new Map(A.fetchers)});let ps=()=>Ir.forEach(qe=>ke(qe.key));Ze.signal.addEventListener("abort",ps);let{results:fs,loaderResults:Wr,fetcherResults:hs}=await pt(A.matches,Gr,ii,Ir,Yt);if(Ze.signal.aborted)return;Ze.signal.removeEventListener("abort",ps),de.delete(j),z.delete(j),Ir.forEach(qe=>z.delete(qe.key));let Wt=zI(fs);if(Wt){if(Wt.idx>=ii.length){let qe=Ir[Wt.idx-ii.length].key;fe.add(qe)}return Ge(A,Wt.result)}let{loaderData:Rr,errors:_i}=BI(A,A.matches,ii,Wr,void 0,Ir,hs,V);if(A.fetchers.has(j)){let qe=i1(kt.data);A.fetchers.set(j,qe)}let Al=Me(Vr);A.navigation.state==="loading"&&Vr>he?($t(D,"Expected pending action"),R&&R.abort(),Te(A.navigation.location,{matches:Gr,loaderData:Rr,errors:_i,fetchers:new Map(A.fetchers)})):(re(Rn({errors:_i,loaderData:UI(A.loaderData,Rr,Gr,_i)},Al||Ir.length>0?{fetchers:new Map(A.fetchers)}:{})),W=!1)}async function ot(j,$,J,be,Fe,De){let tt=A.fetchers.get(j),Je=id(De,tt?tt.data:void 0);A.fetchers.set(j,Je),re({fetchers:new Map(A.fetchers)});let Ze=new AbortController,Rt=rd(e.history,J,Ze.signal);z.set(j,Ze);let Zt=le,kt=await nd("loader",Rt,be,Fe,a,i,u);if(eu(kt)&&(kt=await qF(kt,Rt.signal,!0)||kt),z.get(j)===Ze&&z.delete(j),Rt.signal.aborted)return;if($1(kt))if(he>Zt){let Yt=i1(void 0);A.fetchers.set(j,Yt),re({fetchers:new Map(A.fetchers)});return}else{fe.add(j),await Ge(A,kt);return}if(Ud(kt)){let Yt=x1(A.matches,$);A.fetchers.delete(j),re({fetchers:new Map(A.fetchers),errors:{[Yt.route.id]:kt.error}});return}$t(!eu(kt),"Unhandled fetcher deferred data");let nn=i1(kt.data);A.fetchers.set(j,nn),re({fetchers:new Map(A.fetchers)})}async function Ge(j,$,J){let{submission:be,replace:Fe,isFetchActionRedirect:De}=J===void 0?{}:J;$.revalidate&&(W=!0);let tt=p9(j.location,$.location,Rn({_isRedirect:!0},De?{_isFetchActionRedirect:!0}:{}));if($t(tt,"Expected a location on the redirect navigation"),GF.test($.location)&&n){let Rt=e.history.createURL($.location),Zt=Qp(Rt.pathname,u)==null;if(t.location.origin!==Rt.origin||Zt){Fe?t.location.replace($.location):t.location.assign($.location);return}}R=null;let Je=Fe===!0?Vn.Replace:Vn.Push,Ze=be||jI(j.navigation);if(khe.has($.status)&&Ze&&Ma(Ze.formMethod))await ne(Je,tt,{submission:Rn({},Ze,{formAction:$.location}),preventScrollReset:k});else if(De)await ne(Je,tt,{overrideNavigation:j0(tt),fetcherSubmission:Ze,preventScrollReset:k});else{let Rt=j0(tt,Ze);await ne(Je,tt,{overrideNavigation:Rt,preventScrollReset:k})}}async function pt(j,$,J,be,Fe){let De=await Promise.all([...J.map(Ze=>nd("loader",Fe,Ze,$,a,i,u)),...be.map(Ze=>Ze.matches&&Ze.match&&Ze.controller?nd("loader",rd(e.history,Ze.path,Ze.controller.signal),Ze.match,Ze.matches,a,i,u):{type:Jn.error,error:ia(404,{pathname:Ze.path})})]),tt=De.slice(0,J.length),Je=De.slice(J.length);return await Promise.all([HI(j,J,tt,tt.map(()=>Fe.signal),!1,A.loaderData),HI(j,be.map(Ze=>Ze.match),Je,be.map(Ze=>Ze.controller?Ze.controller.signal:null),!0)]),{results:De,loaderResults:tt,fetcherResults:Je}}function U(){W=!0,P.push(...ye()),Z.forEach((j,$)=>{z.has($)&&(Q.push($),ke($))})}function ie(j,$,J){let be=x1(A.matches,$);pe(j),re({errors:{[be.route.id]:J},fetchers:new Map(A.fetchers)})}function pe(j){let $=A.fetchers.get(j);z.has(j)&&!($&&$.state==="loading"&&de.has(j))&&ke(j),Z.delete(j),de.delete(j),fe.delete(j),A.fetchers.delete(j)}function ke(j){let $=z.get(j);$t($,"Expected fetch controller: "+j),$.abort(),z.delete(j)}function ve(j){for(let $ of j){let J=Xe($),be=i1(J.data);A.fetchers.set($,be)}}function Se(){let j=[],$=!1;for(let J of fe){let be=A.fetchers.get(J);$t(be,"Expected fetcher: "+J),be.state==="loading"&&(fe.delete(J),j.push(J),$=!0)}return ve(j),$}function Me(j){let $=[];for(let[J,be]of de)if(be0}function ze(j,$){let J=A.blockers.get(j)||td;return ce.get(j)!==$&&ce.set(j,$),J}function Ke(j){A.blockers.delete(j),ce.delete(j)}function jt(j,$){let J=A.blockers.get(j)||td;$t(J.state==="unblocked"&&$.state==="blocked"||J.state==="blocked"&&$.state==="blocked"||J.state==="blocked"&&$.state==="proceeding"||J.state==="blocked"&&$.state==="unblocked"||J.state==="proceeding"&&$.state==="unblocked","Invalid blocker state transition: "+J.state+" -> "+$.state);let be=new Map(A.blockers);be.set(j,$),re({blockers:be})}function ue(j){let{currentLocation:$,nextLocation:J,historyAction:be}=j;if(ce.size===0)return;ce.size>1&&Eu(!1,"A router only supports one blocker at a time");let Fe=Array.from(ce.entries()),[De,tt]=Fe[Fe.length-1],Je=A.blockers.get(De);if(!(Je&&Je.state==="proceeding")&&tt({currentLocation:$,nextLocation:J,historyAction:be}))return De}function ye(j){let $=[];return V.forEach((J,be)=>{(!j||j(be))&&(J.cancel(),$.push(be),V.delete(be))}),$}function We(j,$,J){if(m=j,E=$,g=J||null,!b&&A.navigation===o4){b=!0;let be=Y(A.location,A.matches);be!=null&&re({restoreScrollPosition:be})}return()=>{m=null,E=null,g=null}}function at(j,$){return g&&g(j,$.map(be=>$he(be,A.loaderData)))||j.key}function Qe(j,$){if(m&&E){let J=at(j,$);m[J]=E()}}function Y(j,$){if(m){let J=at(j,$),be=m[J];if(typeof be=="number")return be}return null}function se(j){a={},s=f9(j,i,void 0,a)}return w={get basename(){return u},get state(){return A},get routes(){return o},initialize:me,subscribe:O,enableScrollRestoration:We,navigate:K,fetch:Ve,revalidate:xe,createHref:j=>e.history.createHref(j),encodeLocation:j=>e.history.encodeLocation(j),getFetcher:Xe,deleteFetcher:pe,dispose:oe,getBlocker:ze,deleteBlocker:Ke,_internalFetchControllers:z,_internalActiveDeferreds:V,_internalSetRoutes:se},w}function Ohe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function h9(e,t,n,r,i,a,o){let s,u;if(a!=null&&o!=="path"){s=[];for(let p of t)if(s.push(p),p.route.id===a){u=p;break}}else s=t,u=t[t.length-1];let c=$F(i||".",N7(s).map(p=>p.pathnameBase),Qp(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!O7(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:sl([n,c.pathname])),lm(c)}function DI(e,t,n,r){if(!r||!Ohe(r))return{path:n};if(r.formMethod&&!Uhe(r.formMethod))return{path:n,error:ia(405,{method:r.formMethod})};let i=()=>({path:n,error:ia(400,{type:"invalid-body"})}),a=r.formMethod||"get",o=e?a.toUpperCase():a.toLowerCase(),s=WF(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ma(o))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,E)=>{let[b,T]=E;return""+g+b+"="+T+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Ma(o))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}$t(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=g9(r.formData),c=r.formData;else if(r.body instanceof FormData)u=g9(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=PI(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=PI(u)}catch{return i()}let p={formMethod:o,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Ma(p.formMethod))return{path:n,submission:p};let f=So(n);return t&&f.search&&O7(f.search)&&u.append("index",""),f.search="?"+u,{path:lm(f),submission:p}}function Dhe(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function LI(e,t,n,r,i,a,o,s,u,c,p,f,m,g){let E=g?Object.values(g)[0]:m?Object.values(m)[0]:void 0,b=e.createURL(t.location),T=e.createURL(i),v=g?Object.keys(g)[0]:void 0,w=Dhe(n,v).filter((D,k)=>{if(D.route.lazy)return!0;if(D.route.loader==null)return!1;if(Lhe(t.loaderData,t.matches[k],D)||o.some(W=>W===D.route.id))return!0;let R=t.matches[k],B=D;return MI(D,Rn({currentUrl:b,currentParams:R.params,nextUrl:T,nextParams:B.params},r,{actionResult:E,defaultShouldRevalidate:a||b.pathname+b.search===T.pathname+T.search||b.search!==T.search||VF(R,B)}))}),A=[];return u.forEach((D,k)=>{if(!n.some(Q=>Q.route.id===D.routeId))return;let R=C1(p,D.path,f);if(!R){A.push({key:k,routeId:D.routeId,path:D.path,matches:null,match:null,controller:null});return}let B=t.fetchers.get(k),W=m9(R,D.path),P=!1;c.has(k)?P=!1:s.includes(k)?P=!0:B&&B.state!=="idle"&&B.data===void 0?P=a:P=MI(W,Rn({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:T,nextParams:n[n.length-1].params},r,{actionResult:E,defaultShouldRevalidate:a})),P&&A.push({key:k,routeId:D.routeId,path:D.path,matches:R,match:W,controller:new AbortController})}),[w,A]}function Lhe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function VF(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function MI(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function FI(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];$t(i,"No route found in manifest");let a={};for(let o in r){let u=i[o]!==void 0&&o!=="hasErrorBoundary";Eu(!u,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!u&&!rhe.has(o)&&(a[o]=r[o])}Object.assign(i,a),Object.assign(i,Rn({},t(i),{lazy:void 0}))}async function nd(e,t,n,r,i,a,o,s){s===void 0&&(s={});let u,c,p,f=E=>{let b,T=new Promise((v,y)=>b=y);return p=()=>b(),t.signal.addEventListener("abort",p),Promise.race([E({request:t,params:n.params,context:s.requestContext}),T])};try{let E=n.route[e];if(n.route.lazy)if(E)c=(await Promise.all([f(E),FI(n.route,a,i)]))[0];else if(await FI(n.route,a,i),E=n.route[e],E)c=await f(E);else if(e==="action"){let b=new URL(t.url),T=b.pathname+b.search;throw ia(405,{method:t.method,pathname:T,routeId:n.route.id})}else return{type:Jn.data,data:void 0};else if(E)c=await f(E);else{let b=new URL(t.url),T=b.pathname+b.search;throw ia(404,{pathname:T})}$t(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(E){u=Jn.error,c=E}finally{p&&t.signal.removeEventListener("abort",p)}if(Bhe(c)){let E=c.status;if(xhe.has(E)){let v=c.headers.get("Location");if($t(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!GF.test(v))v=h9(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,v);else if(!s.isStaticRequest){let y=new URL(t.url),w=v.startsWith("//")?new URL(y.protocol+v):new URL(v),A=Qp(w.pathname,o)!=null;w.origin===y.origin&&A&&(v=w.pathname+w.search+w.hash)}if(s.isStaticRequest)throw c.headers.set("Location",v),c;return{type:Jn.redirect,status:E,location:v,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(s.isRouteRequest)throw{type:u||Jn.data,response:c};let b,T=c.headers.get("Content-Type");return T&&/\bapplication\/json\b/.test(T)?b=await c.json():b=await c.text(),u===Jn.error?{type:u,error:new zF(E,c.statusText,b),headers:c.headers}:{type:Jn.data,data:b,statusCode:c.status,headers:c.headers}}if(u===Jn.error)return{type:u,error:c};if(Phe(c)){var m,g;return{type:Jn.deferred,deferredData:c,statusCode:(m=c.init)==null?void 0:m.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:Jn.data,data:c}}function rd(e,t,n,r){let i=e.createURL(WF(t)).toString(),a={signal:n};if(r&&Ma(r.formMethod)){let{formMethod:o,formEncType:s}=r;a.method=o.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=g9(r.formData):a.body=r.formData}return new Request(i,a)}function g9(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function PI(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Mhe(e,t,n,r,i){let a={},o=null,s,u=!1,c={};return n.forEach((p,f)=>{let m=t[f].route.id;if($t(!$1(p),"Cannot handle redirect results in processLoaderData"),Ud(p)){let g=x1(e,m),E=p.error;r&&(E=Object.values(r)[0],r=void 0),o=o||{},o[g.route.id]==null&&(o[g.route.id]=E),a[m]=void 0,u||(u=!0,s=HF(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else eu(p)?(i.set(m,p.deferredData),a[m]=p.deferredData.data):a[m]=p.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(s=p.statusCode),p.headers&&(c[m]=p.headers)}),r&&(o=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:c}}function BI(e,t,n,r,i,a,o,s){let{loaderData:u,errors:c}=Mhe(t,n,r,i,s);for(let p=0;pr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function $I(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ia(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,o="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(o="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",s='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new zF(e||500,o,new Error(s),!0)}function zI(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if($1(n))return{result:n,idx:t}}}function WF(e){let t=typeof e=="string"?So(e):e;return lm(Rn({},t,{hash:""}))}function Fhe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function eu(e){return e.type===Jn.deferred}function Ud(e){return e.type===Jn.error}function $1(e){return(e&&e.type)===Jn.redirect}function Phe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Bhe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Uhe(e){return Che.has(e.toLowerCase())}function Ma(e){return whe.has(e.toLowerCase())}async function HI(e,t,n,r,i,a){for(let o=0;of.route.id===u.route.id),p=c!=null&&!VF(c,u)&&(a&&a[u.route.id])!==void 0;if(eu(s)&&(i||p)){let f=r[o];$t(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await qF(s,f,i).then(m=>{m&&(n[o]=m||n[o])})}}}async function qF(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Jn.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Jn.error,error:i}}return{type:Jn.data,data:e.deferredData.data}}}function O7(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function $he(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function m9(e,t){let n=typeof t=="string"?So(t).search:t.search;if(e[e.length-1].route.index&&O7(n||""))return e[e.length-1];let r=N7(e);return r[r.length-1]}function jI(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function j0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function zhe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function id(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function Hhe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function i1(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + * React Router v6.14.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),o=C.useRef(!1);return XF(()=>{o.current=!0}),C.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){n.go(u);return}let p=$F(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:sl([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,i,e])}const Ghe=C.createContext(null);function Vhe(e){let t=C.useContext(Sl).outlet;return t&&C.createElement(Ghe.Provider,{value:e},t)}function Whe(){let{matches:e}=C.useContext(Sl),t=e[e.length-1];return t?t.params:{}}function qhe(e,t,n){pm()||$t(!1);let{navigator:r}=C.useContext(cm),{matches:i}=C.useContext(Sl),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=D7(),c;if(t){var p;let b=typeof t=="string"?So(t):t;s==="/"||(p=b.pathname)!=null&&p.startsWith(s)||$t(!1),c=b}else c=u;let f=c.pathname||"/",m=s==="/"?f:f.slice(s.length)||"/",g=C1(e,{pathname:m}),E=Qhe(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:sl([s,r.encodeLocation?r.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:sl([s,r.encodeLocation?r.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n);return t&&E?C.createElement(dm.Provider,{value:{location:mp({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Vn.Pop}},E):E}function Khe(){let e=QF(),t=HF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:i},n):null,a)}const Yhe=C.createElement(Khe,null);class Xhe extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?C.createElement(Sl.Provider,{value:this.props.routeContext},C.createElement(YF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Zhe(e){let{routeContext:t,match:n,children:r}=e,i=C.useContext(um);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Sl.Provider,{value:t},r)}function Qhe(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let s=a.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id]));s>=0||$t(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,u,c)=>{let p=u.route.id?o==null?void 0:o[u.route.id]:null,f=null;n&&(f=u.route.errorElement||Yhe);let m=t.concat(a.slice(0,c+1)),g=()=>{let E;return p?E=f:u.route.Component?E=C.createElement(u.route.Component,null):u.route.element?E=u.route.element:E=s,C.createElement(Zhe,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:E})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?C.createElement(Xhe,{location:n.location,revalidation:n.revalidation,component:f,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var b9;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(b9||(b9={}));var bp;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(bp||(bp={}));function Jhe(e){let t=C.useContext(um);return t||$t(!1),t}function ege(e){let t=C.useContext(KF);return t||$t(!1),t}function tge(e){let t=C.useContext(Sl);return t||$t(!1),t}function ZF(e){let t=tge(),n=t.matches[t.matches.length-1];return n.route.id||$t(!1),n.route.id}function QF(){var e;let t=C.useContext(YF),n=ege(bp.UseRouteError),r=ZF(bp.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function nge(){let{router:e}=Jhe(b9.UseNavigateStable),t=ZF(bp.UseNavigateStable),n=C.useRef(!1);return XF(()=>{n.current=!0}),C.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,mp({fromRouteId:t},a)))},[e,t])}const rge="startTransition",GI=v4[rge];function ige(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=C.useState(n.state),{v7_startTransition:o}=r||{},s=C.useCallback(f=>{o&&GI?GI(()=>a(f)):a(f)},[a,o]);C.useLayoutEffect(()=>n.subscribe(s),[n,s]);let u=C.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,m,g)=>n.navigate(f,{state:m,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,m,g)=>n.navigate(f,{replace:!0,state:m,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[n]),c=n.basename||"/",p=C.useMemo(()=>({router:n,navigator:u,static:!1,basename:c}),[n,u,c]);return C.createElement(C.Fragment,null,C.createElement(um.Provider,{value:p},C.createElement(KF.Provider,{value:i},C.createElement(sge,{basename:c,location:i.location,navigationType:i.historyAction,navigator:u},i.initialized?C.createElement(age,{routes:n.routes,state:i}):t))),null)}function age(e){let{routes:t,state:n}=e;return qhe(t,void 0,n)}function oge(e){return Vhe(e.context)}function sge(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Vn.Pop,navigator:a,static:o=!1}=e;pm()&&$t(!1);let s=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof r=="string"&&(r=So(r));let{pathname:c="/",search:p="",hash:f="",state:m=null,key:g="default"}=r,E=C.useMemo(()=>{let b=Qp(c,s);return b==null?null:{location:{pathname:b,search:p,hash:f,state:m,key:g},navigationType:i}},[s,c,p,f,m,g,i]);return E==null?null:C.createElement(cm.Provider,{value:u},C.createElement(dm.Provider,{children:n,value:E}))}var VI;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(VI||(VI={}));new Promise(()=>{});function lge(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:C.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:C.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function uge(e,t){return Nhe({basename:t==null?void 0:t.basename,future:mp({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:the({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:lge}).initialize()}const cge=He.div` + display: grid; + grid-template-columns: 1fr 1fr; + grid-gap: 8px; + align-items: center; +`;function dge(){const e=cs(),[t,n]=ut.useState(""),r=C.useContext(Ya),i=us();return I.jsxs("div",{className:"p-4",children:[I.jsx("h3",{children:"Free Trial Limit Reached"}),I.jsxs("p",{children:["You've reached the free trial limit of 250 free inputs with Continue's OpenAI API key. To keep using Continue, you can either use your own API key, or use a local LLM. To read more about the options, see our"," ",I.jsx("a",{href:"https://continue.dev/docs/customization/models",target:"_blank",children:"documentation"}),". If you're just looking for fastest way to keep going, type '/config' to open your Continue config file and paste your API key into the OpenAIFreeTrial object."]}),I.jsx(ng,{type:"text",placeholder:"Enter your OpenAI API key",value:t,onChange:a=>n(a.target.value)}),I.jsxs(cge,{children:[I.jsx(op,{onClick:()=>{i(Q1(!1)),e("/models")},children:"Select model"}),I.jsx(op,{disabled:!t,onClick:()=>{r==null||r.addModelForRole("*","OpenAI",{model:"gpt-4",api_key:t,title:"GPT-4"}),i(Q1(!1))},children:"Use my API key"})]})]})}const pge=He.div` + border-radius: ${wt}; + cursor: ${e=>e.isDisabled?"not-allowed":"pointer"}; + padding: 8px 8px; + background-color: ${Lt}; + border: 1px solid transparent; + + display: flex; + justify-content: space-between; + align-items: center; + + color: ${e=>e.isDisabled?vt:Ht}; + + &:hover { + border: ${e=>e.isDisabled?"1px solid transparent":`1px solid ${vt}`}; + } +`,fge=He.p` + font-size: ${e=>e.fontSize}px; + margin: 0; +`;function hge(e){const[t,n]=C.useState(!1);return I.jsxs(I.Fragment,{children:[I.jsxs(pge,{"data-tooltip-id":`suggestion-disabled-${e.textInput.replace(" ","")}`,onClick:e.onClick,onMouseEnter:()=>{e.disabled||n(!0)},onMouseLeave:()=>n(!1),isDisabled:e.disabled,children:[I.jsx(fge,{fontSize:nr(),children:e.description}),I.jsx(ZY,{width:"1.6em",height:"1.6em",style:{opacity:t?1:0,backgroundColor:Lt,boxShadow:`1px 1px 10px ${Lt}`,borderRadius:wt}})]}),I.jsx(Gs,{id:`suggestion-disabled-${e.textInput.replace(" ","")}`,place:"bottom",hidden:!e.disabled,children:"Must highlight code first"})]})}const G0=[I.jsx("p",{children:"Ask a question"}),I.jsxs("p",{children:["1. Highlight code in the editor",I.jsx("br",{}),"2. Press ",localStorage.getItem("ide")==="jetbrains"?"cmd+J":"cmd+M"," ","to select the code",I.jsx("br",{}),"3. Ask a question"]}),I.jsxs("p",{children:["1. Highlight code in the editor",I.jsx("br",{}),"2. Press"," ",localStorage.getItem("ide")==="jetbrains"?"cmd+shift+J":"cmd+shift+M"," ","to select the code",I.jsx("br",{}),"3. Request an edit"]})],wh=[[{title:G0[1],description:"Is there any way to make this code more efficient?",textInput:"Is there any way to make this code more efficient?"},{title:G0[1],description:"What does this function do?",textInput:"What does this function do?"}],[{title:G0[2],description:"/edit write comments for this code",textInput:"/edit write comments for this code"},{title:G0[2],description:"/edit make this code more efficient",textInput:"/edit make this code more efficient"}]],WI=wh.length,gge=He.div` + margin: 4px; + margin-left: 8px; + margin-right: 8px; + position: relative; + background-color: #ff02; + border-radius: ${wt}; + padding: 8px 4px; +`;function mge(e){var m,g;const t=R7(),[n,r]=C.useState(parseInt(localStorage.getItem("stage")||"0")),i=zt(E=>E.serverState.history.timeline),a=zt(E=>{var b;return(b=E.serverState.session_info)==null?void 0:b.session_id}),o=zt(E=>E.serverState.selected_context_items.some(b=>b.description.id.provider_title==="code")),[s,u]=C.useState(!1);C.useEffect(()=>{u(!1)},[a]);const[c,p]=C.useState(0),f=C.useCallback(()=>i.filter(b=>!b.step.hide&&b.step.name==="User Input").length-c<=0,[i,c]);return I.jsx(I.Fragment,{children:s||n>WI-1||!f()||parseInt(localStorage.getItem("tutorialClosedCount")||"0")>0||I.jsxs(gge,{children:[I.jsxs("div",{className:"flex",children:[I.jsx(dD,{width:"1.3em",height:"1.3em",color:"yellow"}),I.jsxs("b",{className:"ml-1",children:["Tutorial (",n+1,"/",WI,")"]})]}),I.jsx("div",{style:{color:Ht,paddingLeft:"4px"},children:n{u(!0);const E=parseInt(localStorage.getItem("tutorialClosedCount")||"0");localStorage.setItem("tutorialClosedCount",(E+1).toString()),t==null||t.capture("tutorial_closed",{stage:n,tutorialClosedCount:E})},children:I.jsx(T2,{width:"1.2em",height:"1.2em"})}),I.jsx("div",{className:"grid grid-cols-2 gap-2 mt-2",children:(g=wh[n])==null?void 0:g.map((E,b)=>I.jsx(hge,{disabled:!o,...E,onClick:()=>{o&&(e.onClick(E.textInput),t==null||t.capture("tutorial_stage_complete",{stage:n}),r(n+1),localStorage.setItem("stage",(n+1).toString()),u(!0),p(T=>T+1))}},b))})]})})}const bge=He.div` + overflow-y: scroll; + + scrollbar-width: none; /* Firefox */ + + /* Hide scrollbar for Chrome, Safari and Opera */ + &::-webkit-scrollbar { + display: none; + } +`,Ege=He(ng)` + border: none; + outline: none; + + font-size: 16px; + font-weight: bold; + margin: 0; + margin-right: 8px; + padding-top: 6px; + padding-bottom: 6px; + + &:focus { + outline: none; + } +`,vge=He.div` + position: relative; + background-color: transparent; + + & > * { + position: relative; + } + + &::before { + content: ""; + position: absolute; + height: calc(100% - 12px); + border-left: 2px solid ${vt}; + left: 28px; + z-index: 0; + bottom: 12px; + } +`,yge=He.div` + border-radius: ${wt}; + color: gray; + padding: 8px; + margin: 8px; + text-align: center; +`,_ge=He.div` + display: flex; + justify-content: space-between; + align-items: center; + padding: 4px; + padding-left: 8px; + padding-right: 8px; + border-bottom: 0.5px solid ${vt}; + position: sticky; + top: 0; + z-index: 100; + background-color: ${Kt}; +`;function qI(e){var de,fe;const t=C.useContext(Ya),n=R7(),r=us(),i=cs(),a=zt(Z=>Z.serverState.history),o=zt(Z=>{var V;return(V=Z.serverState.config.models)==null?void 0:V.default}),s=zt(Z=>Z.misc.serverStatusMessage),u=zt(Z=>Z.serverState.user_input_queue),c=zt(Z=>{var V;return(V=Z.serverState.session_info)==null?void 0:V.title}),[p,f]=C.useState(!1),[m,g]=C.useState([]),[E,b]=C.useState(!0),[T,v]=C.useState(!0),y=C.useRef(null),w=C.useRef(null),A=C.useRef(null),D=zt(Z=>Z.uiState.bottomMessage),k=zt(Z=>Z.misc.takenAction);C.useEffect(()=>{A.current&&r(hpe(A.current.getBoundingClientRect().top{var V;const Z=()=>{var O,re;const N=((O=w.current)==null?void 0:O.scrollTop)||0,me=((re=w.current)==null?void 0:re.scrollHeight)||0,oe=window.innerHeight||0;N+oe+-25>=me?B(!1):B(!0)};return(V=w.current)==null||V.addEventListener("scroll",Z),()=>{window.removeEventListener("scroll",Z)}},[w.current]),C.useLayoutEffect(()=>{var Z,V;R||(V=w.current)==null||V.scrollTo({top:(Z=w.current)==null?void 0:Z.scrollHeight,behavior:"instant"})},[(de=w.current)==null?void 0:de.scrollHeight,a.timeline]),C.useEffect(()=>{const Z=V=>{var ce;V.key==="Backspace"&&tg(V)&&!V.shiftKey&&typeof(a==null?void 0:a.current_index)<"u"&&((ce=a.timeline[a.current_index])!=null&&ce.active)?t==null||t.deleteAtIndex(a.current_index):V.key==="Escape"&&r(au(void 0))};return window.addEventListener("keydown",Z),()=>{window.removeEventListener("keydown",Z)}},[t,a]),C.useEffect(()=>{t==null||t.onStateUpdate(Z=>{var ce;const V=Z.active&&Z.history.current_index{const me=[...N];for(let oe=me.length;oe{if(t&&E){b(!1);for(const Z of u)t.sendMainInput(Z)}},[t,u,E]);const W=Z=>{var V,ce;if(r(pd(null)),y.current){let N=y.current.inputValue;if(N.trim()==="")return;if(N.startsWith("#")&&(N.length===7||N.length===4)){localStorage.setItem("continueButtonColor",N),y.current.setInputValue("");return}if(Z&&tg(Z)&&(N=`/edit ${N}`),y.current.setInputValue(""),!t){r(efe(N));return}if((o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(!N.startsWith("/")||N.startsWith("/edit"))){const oe=localStorage.getItem("ftc");if(oe){const O=parseInt(oe);if(localStorage.setItem("ftc",(O+1).toString()),O>=250){r(Q1(!0)),r(X3(I.jsx(dge,{}))),n==null||n.capture("ftc_reached");return}}else localStorage.setItem("ftc","1")}if(f(!0),a&&a.current_index>=0&&a.current_index{O.preventDefault(),n==null||n.capture("user_interest_form",{name:O.target.elements[0].value,email:O.target.elements[1].value}),r(X3(I.jsx("div",{className:"text-center p-4",children:"Thanks! We'll be in touch soon."})))},style:{display:"flex",flexDirection:"column",gap:"10px"},children:[I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"text",name:"name",placeholder:"Name",required:!0}),I.jsx("input",{style:{padding:"10px",borderRadius:"5px"},type:"email",name:"email",placeholder:"Email",required:!0}),I.jsx("button",{style:{padding:"10px",borderRadius:"5px",cursor:"pointer"},type:"submit",children:"Submit"})]})]}))),r(fpe(!1)),r(Q1(!0)))}else localStorage.setItem("mainTextEntryCounter","1")}},P=(Z,V)=>{t&&t.sendStepUserInput(Z,V)},Q=C.useCallback(Z=>{const V=[];let ce=-1;for(let N=Z;N>=0;N--)if((a==null?void 0:a.timeline.length)>N&&a.timeline[N].step.name==="User Input"&&a.timeline[N].step.hide===!1){V.push(N),ce=N;break}if(V.length===0)return[];for(let N=ce+1;N<(a==null?void 0:a.timeline.length)&&!((a==null?void 0:a.timeline.length)>N&&a.timeline[N].step.name==="User Input"&&a.timeline[N].step.hide===!1);N++)V.push(N);return V},[a.timeline]),z=C.useCallback(Z=>{const V=Q(Z),ce=V[0];g(N=>{const me=[...N];return me[Z]=!me[Z],!V.some((O,re)=>re>0&&me[O])?me[ce]=!1:!V.some((re,Te)=>Te>0&&!me[re])&&(me[ce]=!0),me})},[Q]);C.useEffect(()=>{c&&he(c)},[c]);const[le,he]=C.useState(c||"New Session");return I.jsxs(bge,{ref:w,onKeyDown:Z=>{Z.key==="Enter"&&Z.ctrlKey&&W()},children:[I.jsxs(_ge,{children:[I.jsx(Ege,{onClick:Z=>{Z.target.setSelectionRange(0,Z.target.value.length)},value:le,onChange:Z=>he(Z.target.value),onBlur:Z=>{Z.target.value===c||typeof c>"u"&&Z.target.value==="New Session"||t==null||t.setCurrentSessionTitle(Z.target.value)},onKeyDown:Z=>{Z.key==="Enter"?(Z.preventDefault(),Z.target.blur()):Z.key==="Escape"&&(he(c||"New Session"),Z.target.blur())}}),I.jsxs("div",{className:"flex gap-2",children:[a.timeline.filter(Z=>!Z.step.hide).length>0&&I.jsx(vi,{onClick:()=>{a.timeline.filter(Z=>!Z.step.hide).length>0&&(r(sm(!1)),t==null||t.loadSession(void 0))},text:"New Session (⌥⌘N)",children:I.jsx(cD,{width:"1.4em",height:"1.4em"})}),I.jsx(vi,{onClick:()=>{i("/history")},text:"History",children:I.jsx(UY,{width:"1.4em",height:"1.4em"})})]})]}),(k||T)&&typeof t>"u"&&I.jsxs(I.Fragment,{children:[I.jsx(Y0e,{}),I.jsx("p",{style:{textAlign:"center",margin:"0px",fontSize:"14px"},children:s}),I.jsxs("div",{className:"flex mx-8 my-2",children:[I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/troubleshooting",target:"_blank",children:"Troubleshooting help"})})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},onClick:()=>{rl("toggleDevTools",{})},children:I.jsx("u",{children:"View logs"})}),I.jsx("p",{style:{margin:"auto",textAlign:"center",marginTop:"4px",fontSize:"12px",cursor:"pointer",opacity:.7},children:I.jsx("u",{children:I.jsx("a",{style:{color:"inherit"},href:"https://continue.dev/docs/walkthroughs/manually-run-continue#recommended-use-the-continuedev-pypi-package",target:"_blank",children:"Manually start server"})})})]})]}),I.jsx("br",{}),I.jsx(mge,{onClick:Z=>{t==null||t.sendMainInput(Z)}}),I.jsx(vge,{children:a==null?void 0:a.timeline.map((Z,V)=>{var ce,N,me;return Z.step.hide?null:I.jsx(C.Fragment,{children:Z.step.name==="User Input"?Z.step.hide||I.jsx(Zk,{isMainInput:!1,value:Z.step.description,active:Q(V).some(oe=>a.timeline[oe].active)||a.timeline[V].active,onEnter:(oe,O)=>{O&&(t==null||t.editStepAtIndex(O,V)),oe==null||oe.stopPropagation(),oe==null||oe.preventDefault()},groupIndices:Q(V),onToggle:oe=>{g(O=>{const re=[...O];return Q(V).forEach(Te=>{re[Te]=oe}),re})},onToggleAll:oe=>{g(O=>O.map(re=>oe))},isToggleOpen:typeof m[V]>"u"?!0:m[V],index:V,onDelete:()=>{Q(V).forEach(oe=>{t==null||t.deleteAtIndex(oe)})}}):I.jsx(Q0e,{historyNode:Z,iconElement:Z.step.class_name==="DefaultModelEditCodeStep"?I.jsx(NY,{width:"16px",height:"16px"}):(ce=Z.observation)!=null&&ce.error?I.jsx(lD,{width:"16px",height:"16px",color:"red"}):I.jsx(sD,{width:"16px",height:"16px"}),open:typeof m[V]>"u"?!((N=Z.observation)!=null&&N.error):m[V],onToggle:()=>z(V),children:(me=Z.observation)!=null&&me.error?I.jsx(ehe,{onClose:()=>z(V),historyNode:Z,onDelete:()=>t==null?void 0:t.deleteAtIndex(V)}):I.jsx(Kse,{index:V,isLast:V===a.timeline.length-1,isFirst:V===0,open:typeof m[V]>"u"?!0:m[V],onUserInput:oe=>{P(oe,V)},inFuture:V>(a==null?void 0:a.current_index),historyNode:Z,onReverse:()=>{t==null||t.reverseToIndex(V)},onRetry:()=>{t==null||t.retryAtIndex(V),f(!0)},onDelete:()=>{t==null||t.deleteAtIndex(V)},noUserInputParent:Q(V).length===0},V)})},V)})}),I.jsx("div",{children:(fe=u==null?void 0:u.map)==null?void 0:fe.call(u,(Z,V)=>I.jsx(yge,{children:Z},V))}),I.jsx("div",{ref:A}),I.jsx(Zk,{isMainInput:!0,ref:y,onEnter:(Z,V)=>{W(Z),Z==null||Z.stopPropagation(),Z==null||Z.preventDefault()},onInputValueChange:()=>{},onToggleAddContext:()=>{t==null||t.toggleAddingHighlightedCode()}})]})}const Tge=He.div` + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + padding: 0.5rem; + border-radius: ${wt}; + cursor: pointer; + border: 1px solid ${Ht}; + + color: ${Ht}; + background-color: ${Kt}; + + &:hover { + background-color: ${Ht}; + color: ${Kt}; + } + width: fit-content; + + margin: 0.5rem; + height: 1.4em; + + overflow: hidden; + text-overflow: ellipsis; +`;function Sge(e){const{title:t,checked:n,onClick:r}=e;return I.jsxs(Tge,{onClick:r,checked:n,children:[n&&I.jsx(vY,{width:"1.4em",height:"1.4em"}),t]})}const wge=He.tr` + &:hover { + background-color: ${Lt}; + } + + overflow-wrap: anywhere; + + border-bottom: 1px solid ${Lt}; + border-top: 1px solid ${Lt}; +`,V0=e=>{let t=new Date(e);return isNaN(t.getTime())&&(t=new Date(parseInt(e)*1e3)),t},s4=He.tr` + padding: 4px; + padding-left: 16px; + padding-right: 16px; + background-color: ${Lt}; + width: 100%; + font-weight: bold; + text-align: center; + margin: 0; +`,Age=He.div` + cursor: pointer; + padding-left: 1rem; + padding-right: 1rem; + padding-top: 0.5rem; + padding-bottom: 0.5rem; +`;function KI(e){const t=e.includes("/")?"/":"\\";return e.split(t).pop()||e}function Cge(){const e=cs(),t=us(),[n,r]=C.useState([]),[i,a]=C.useState([]),o=C.useContext(Ya),s=zt(b=>b.config.apiUrl),u=zt(b=>b.config.workspacePaths),[c,p]=C.useState(!1);C.useEffect(()=>{(async()=>{if(!s)return;const T=await fetch(`${s}/sessions/list`);if(!T.ok)throw new Error(`HTTP error! status: ${T.status}`);const v=await T.json();r(v)})()},[o]),C.useEffect(()=>{a(n.filter(b=>!c||typeof u>"u"||typeof b.workspace_directory>"u"?!0:u.includes(b.workspace_directory)).sort((b,T)=>V0(T.date_created).getTime()-V0(b.date_created).getTime()))},[c,n]);const f=new Date(Date.now()-1e3*60*60*24),m=new Date(Date.now()-1e3*60*60*24*7),g=new Date(Date.now()-1e3*60*60*24*30),E=new Date(0);return I.jsxs("div",{className:"overflow-y-scroll",style:{fontSize:nr()},children:[I.jsxs("div",{className:"sticky top-0",style:{backgroundColor:Kt},children:[I.jsxs("div",{className:"items-center flex m-0 p-0",style:{borderBottom:`0.5px solid ${vt}`},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"History"})]}),u&&u.length>0&&I.jsx(Sge,{checked:c,onClick:()=>p(b=>!b),title:`Show only sessions from ${KI(u[u.length-1])}/`})]}),n.filter(b=>!c||typeof u>"u"||typeof b.workspace_directory>"u"?!0:u.includes(b.workspace_directory)).length===0&&I.jsxs("div",{className:"text-center m-4",children:['No past sessions found. To start a new session, either click the "+" button or use the keyboard shortcut: ',I.jsx("b",{children:"Option + Command + N"})]}),I.jsxs("div",{children:[I.jsx("table",{className:"w-full border-spacing-0 border-collapse",children:I.jsx("tbody",{children:i.map((b,T)=>{const v=T>0?V0(i[T-1].date_created):E,y=V0(b.date_created);return I.jsxs(C.Fragment,{children:[T===0&&y>f&&I.jsx(s4,{children:"Today"}),ym&&v>f&&I.jsx(s4,{children:"This Week"}),yg&&v>m&&I.jsx(s4,{children:"This Month"}),I.jsx(wge,{children:I.jsx("td",{children:I.jsxs(Age,{onClick:()=>{o==null||o.loadSession(b.session_id),t(sm(!0)),e("/")},children:[I.jsx("div",{className:"text-md",children:b.title}),I.jsxs("div",{className:"text-gray-400",children:[y.toLocaleString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit",hour12:!0})," | ",KI(b.workspace_directory||""),"/"]})]})})},T)]},T)})})}),I.jsx("br",{}),I.jsx("i",{className:"text-sm ml-4",children:"All session data is saved in ~/.continue/sessions"})]})]})}const xge=He.div` + display: grid; + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); + grid-gap: 2rem; + padding: 1rem; + justify-items: center; + align-items: center; + + border-top: 0.5px solid ${vt}; +`,kge=He.div` + border: 0.5px solid ${vt}; + border-radius: ${wt}; + padding: 4px; + color: ${Ht}; + + width: 16px; + height: 16px; + + display: flex; + justify-content: center; + align-items: center; +`;function Ige(e){const t=_2()==="windows"?e.windows:e.mac;return I.jsxs("div",{className:"flex justify-between w-full items-center",children:[I.jsx("span",{style:{color:Ht},children:e.description}),I.jsx("div",{className:"flex gap-2 float-right",children:t.split(" ").map(n=>I.jsx(kge,{children:n}))})]})}const Rge=[{mac:"⌘ M",windows:"⌃ M",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ M",windows:"⌃ ⇧ M",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌘ ⇧ L",windows:"⌃ ⇧ L",description:"Quick Text Entry"},{mac:"⌥ ⌘ M",windows:"⌥ ⌃ M",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⇧ R",windows:"⌃ ⇧ R",description:"Debug Terminal"},{mac:"⌥ ⌘ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}],Nge=[{mac:"⌘ J",windows:"⌃ J",description:"Ask about Highlighted Code"},{mac:"⌘ ⇧ J",windows:"⌃ ⇧ J",description:"Edit Highlighted Code"},{mac:"⌘ ⇧ ↵",windows:"⌃ ⇧ ↵",description:"Accept Diff"},{mac:"⌘ ⇧ ⌫",windows:"⌃ ⇧ ⌫",description:"Reject Diff"},{mac:"⌥ ⇧ J",windows:"⌥ ⇧ J",description:"Quick Text Entry"},{mac:"⌥ ⌘ J",windows:"⌥ ⌃ J",description:"Toggle Auxiliary Bar"},{mac:"⌘ ⌃ N",windows:"⌥ ⌃ N",description:"New Session"},{mac:"⌘ ⌫",windows:"⌃ ⌫",description:"Stop Active Step"}];function Oge(){return I.jsxs("div",{className:"p-2",children:[I.jsx("h3",{className:"my-3 mx-auto text-center",children:"Keyboard Shortcuts"}),I.jsx(xge,{children:(localStorage.getItem("ide")==="jetbrains"?Nge:Rge).map(e=>I.jsx(Ige,{mac:e.mac,windows:e.windows,description:e.description}))})]})}const W0=He.div` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + + height: 100%; + padding: 0 4px; + + &:hover { + background-color: ${e=>e.backgroundColor||vt}; + } +`;function YI(){const e=cs();return I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Help Center"})]}),I.jsxs("div",{className:"grid grid-cols-2 grid-rows-2",children:[I.jsx(W0,{backgroundColor:"rgb(234, 51, 35)",children:I.jsx("a",{href:"https://youtu.be/3Ocrc-WX4iQ?si=eDLYtkc6CXQoHsEc",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5.2 -4.5 60 60",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M 44.898438 14.5 C 44.5 12.300781 42.601563 10.699219 40.398438 10.199219 C 37.101563 9.5 31 9 24.398438 9 C 17.800781 9 11.601563 9.5 8.300781 10.199219 C 6.101563 10.699219 4.199219 12.199219 3.800781 14.5 C 3.398438 17 3 20.5 3 25 C 3 29.5 3.398438 33 3.898438 35.5 C 4.300781 37.699219 6.199219 39.300781 8.398438 39.800781 C 11.898438 40.5 17.898438 41 24.5 41 C 31.101563 41 37.101563 40.5 40.601563 39.800781 C 42.800781 39.300781 44.699219 37.800781 45.101563 35.5 C 45.5 33 46 29.398438 46.101563 25 C 45.898438 20.5 45.398438 17 44.898438 14.5 Z M 19 32 L 19 18 L 31.199219 25 Z"})})})}),I.jsx(W0,{backgroundColor:da,children:I.jsx("a",{href:"https://continue.dev/docs/how-to-use-continue",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2.2 -2 28 28",fill:Ht,className:"w-full h-full flex items-center justify-center",children:I.jsx("path",{d:"M11.25 4.533A9.707 9.707 0 006 3a9.735 9.735 0 00-3.25.555.75.75 0 00-.5.707v14.25a.75.75 0 001 .707A8.237 8.237 0 016 18.75c1.995 0 3.823.707 5.25 1.886V4.533zM12.75 20.636A8.214 8.214 0 0118 18.75c.966 0 1.89.166 2.75.47a.75.75 0 001-.708V4.262a.75.75 0 00-.5-.707A9.735 9.735 0 0018 3a9.707 9.707 0 00-5.25 1.533v16.103z"})})})}),I.jsx(W0,{backgroundColor:"rgb(88, 98, 227)",children:I.jsx("a",{href:"https://discord.gg/vapESyrFmJ",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-5 -5.5 60 60",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M 41.625 10.769531 C 37.644531 7.566406 31.347656 7.023438 31.078125 7.003906 C 30.660156 6.96875 30.261719 7.203125 30.089844 7.589844 C 30.074219 7.613281 29.9375 7.929688 29.785156 8.421875 C 32.417969 8.867188 35.652344 9.761719 38.578125 11.578125 C 39.046875 11.867188 39.191406 12.484375 38.902344 12.953125 C 38.710938 13.261719 38.386719 13.429688 38.050781 13.429688 C 37.871094 13.429688 37.6875 13.378906 37.523438 13.277344 C 32.492188 10.15625 26.210938 10 25 10 C 23.789063 10 17.503906 10.15625 12.476563 13.277344 C 12.007813 13.570313 11.390625 13.425781 11.101563 12.957031 C 10.808594 12.484375 10.953125 11.871094 11.421875 11.578125 C 14.347656 9.765625 17.582031 8.867188 20.214844 8.425781 C 20.0625 7.929688 19.925781 7.617188 19.914063 7.589844 C 19.738281 7.203125 19.34375 6.960938 18.921875 7.003906 C 18.652344 7.023438 12.355469 7.566406 8.320313 10.8125 C 6.214844 12.761719 2 24.152344 2 34 C 2 34.175781 2.046875 34.34375 2.132813 34.496094 C 5.039063 39.605469 12.972656 40.941406 14.78125 41 C 14.789063 41 14.800781 41 14.8125 41 C 15.132813 41 15.433594 40.847656 15.621094 40.589844 L 17.449219 38.074219 C 12.515625 36.800781 9.996094 34.636719 9.851563 34.507813 C 9.4375 34.144531 9.398438 33.511719 9.765625 33.097656 C 10.128906 32.683594 10.761719 32.644531 11.175781 33.007813 C 11.234375 33.0625 15.875 37 25 37 C 34.140625 37 38.78125 33.046875 38.828125 33.007813 C 39.242188 32.648438 39.871094 32.683594 40.238281 33.101563 C 40.601563 33.515625 40.5625 34.144531 40.148438 34.507813 C 40.003906 34.636719 37.484375 36.800781 32.550781 38.074219 L 34.378906 40.589844 C 34.566406 40.847656 34.867188 41 35.1875 41 C 35.199219 41 35.210938 41 35.21875 41 C 37.027344 40.941406 44.960938 39.605469 47.867188 34.496094 C 47.953125 34.34375 48 34.175781 48 34 C 48 24.152344 43.785156 12.761719 41.625 10.769531 Z M 18.5 30 C 16.566406 30 15 28.210938 15 26 C 15 23.789063 16.566406 22 18.5 22 C 20.433594 22 22 23.789063 22 26 C 22 28.210938 20.433594 30 18.5 30 Z M 31.5 30 C 29.566406 30 28 28.210938 28 26 C 28 23.789063 29.566406 22 31.5 22 C 33.433594 22 35 23.789063 35 26 C 35 28.210938 33.433594 30 31.5 30 Z"})})})}),I.jsx(W0,{children:I.jsx("a",{href:"https://github.com/continuedev/continue/issues/new/choose",target:"_blank",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1.2 -1.2 32 32",fill:Ht,className:"w-full h-full",children:I.jsx("path",{d:"M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"})})})})]}),I.jsx(Oge,{})]})}const Dge=He.div` + position: fixed; + width: 100%; + height: 100%; + background-color: rgba(168, 168, 168, 0.5); + z-index: 100; +`,Lge=He.div` + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 75%; +`,Mge=He.div` + color: ${Ht}; + background-color: ${Kt}; + border-radius: 8px; + display: flex; + flex-direction: column; + box-shadow: 0 0 10px 0 ${Ht}; + margin: auto; + word-wrap: break-word; + overflow: hidden; +`;He.textarea` + border: 1px solid #ccc; + border-radius: 8px; + padding: 8px; + outline: 1px solid black; + resize: none; + background-color: ${Lt}; + color: ${Ht}; + + &:focus { + outline: 1px solid ${Ht}; + } +`;He.p` + color: ${Ht}; + margin: 8px auto; +`;const Fge=e=>(C.useEffect(()=>{const t=n=>{n.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[e]),I.jsx(Dge,{onClick:()=>{e.onClose()},hidden:!e.showDialog,children:I.jsx(Lge,{onClick:t=>{t.stopPropagation()},children:I.jsx(Mge,{children:typeof e.message=="string"?I.jsx(HE,{children:e.message||""}):e.message})})}));var Pge=Object.defineProperty,Bge=(e,t,n)=>t in e?Pge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l4=(e,t,n)=>(Bge(e,typeof t!="symbol"?t+"":t,n),n);let Uge=class{constructor(){l4(this,"current",this.detect()),l4(this,"handoffState","pending"),l4(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},su=new Uge,zi=(e,t)=>{su.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function Eo(e){let t=C.useRef(e);return zi(()=>{t.current=e},[e]),t}function JF(e,t){let[n,r]=C.useState(e),i=Eo(e);return zi(()=>r(i.current),[i,r,...t]),n}function $ge(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function hl(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return $ge(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=hl();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function tc(){let[e]=C.useState(hl);return C.useEffect(()=>()=>e.dispose(),[e]),e}let Xt=function(e){let t=Eo(e);return ut.useCallback((...n)=>t.current(...n),[t])};function zge(){let e=typeof document>"u";return"useSyncExternalStore"in v4?(t=>t.useSyncExternalStore)(v4)(()=>()=>{},()=>!1,()=>!e):!1}function L7(){let e=zge(),[t,n]=C.useState(su.isHandoffComplete);return t&&su.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>su.handoff(),[]),e?!1:t}var XI;let fm=(XI=ut.useId)!=null?XI:function(){let e=L7(),[t,n]=ut.useState(e?()=>su.nextId():null);return zi(()=>{t===null&&n(su.nextId())},[t]),t!=null?""+t:void 0};function Sr(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Sr),r}function eP(e){return su.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ZI=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Hge=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Hge||{}),jge=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(jge||{}),Gge=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Gge||{}),M7=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(M7||{});function tP(e,t=0){var n;return e===((n=eP(e))==null?void 0:n.body)?!1:Sr(t,{0(){return e.matches(ZI)},1(){let r=e;for(;r!==null;){if(r.matches(ZI))return!0;r=r.parentElement}return!1}})}var Vge=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Vge||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Wge(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function q0(e,t,n){let r=Eo(t);C.useEffect(()=>{function i(a){r.current(a)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function qge(e,t,n){let r=Eo(t);C.useEffect(()=>{function i(a){r.current(a)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function Kge(e,t,n=!0){let r=C.useRef(!1);C.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,s){if(!r.current||o.defaultPrevented)return;let u=s(o);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let p of c){if(p===null)continue;let f=p instanceof HTMLElement?p:p.current;if(f!=null&&f.contains(u)||o.composed&&o.composedPath().includes(f))return}return!tP(u,M7.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}let a=C.useRef(null);q0("pointerdown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),q0("mousedown",o=>{var s,u;r.current&&(a.current=((u=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:u[0])||o.target)},!0),q0("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),q0("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),qge("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function QI(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Yge(e,t){let[n,r]=C.useState(()=>QI(e));return zi(()=>{r(QI(e))},[e.type,e.as]),zi(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let Xge=Symbol();function Ru(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Xt(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Xge]))?void 0:n}function Zge(e){throw new Error("Unexpected object: "+e)}var gi=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(gi||{});function Qge(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,a=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,u,c)=>i!==-1&&c.length-u-1>=i?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:Zge(e)}})();return a===-1?r:a}function kg(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Ig=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ig||{}),Vs=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Vs||{});function wl({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o}){let s=nP(t,e);if(a)return K0(s,n,r,o);let u=i??0;if(u&2){let{static:c=!1,...p}=s;if(c)return K0(p,n,r,o)}if(u&1){let{unmount:c=!0,...p}=s;return Sr(c?0:1,{0(){return null},1(){return K0({...p,hidden:!0,style:{display:"none"}},n,r,o)}})}return K0(s,n,r,o)}function K0(e,t={},n,r){let{as:i=n,children:a,refName:o="ref",...s}=u4(e,["unmount","static"]),u=e.ref!==void 0?{[o]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let p={};if(t){let f=!1,m=[];for(let[g,E]of Object.entries(t))typeof E=="boolean"&&(f=!0),E===!0&&m.push(g);f&&(p["data-headlessui-state"]=m.join(" "))}if(i===C.Fragment&&Object.keys(E9(s)).length>0){if(!C.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(E=>` - ${E}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(E=>` - ${E}`).join(` +`)].join(` +`));let f=c.props,m=typeof(f==null?void 0:f.className)=="function"?(...E)=>kg(f==null?void 0:f.className(...E),s.className):kg(f==null?void 0:f.className,s.className),g=m?{className:m}:{};return C.cloneElement(c,Object.assign({},nP(c.props,E9(u4(s,["ref"]))),p,u,Jge(c.ref,u.ref),g))}return C.createElement(i,Object.assign({},u4(s,["ref"]),i!==C.Fragment&&u,i!==C.Fragment&&p),c)}function Jge(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function nP(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let s of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...a)}}});return t}function ds(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function E9(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function u4(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function e2e(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&t2e(n)?!1:r}function t2e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function rP(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))aP(n,iP(t,r),i);return n}function iP(e,t){return e?e+"["+t+"]":t}function aP(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())aP(e,iP(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):rP(n,t,e)}let n2e="div";var oP=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(oP||{});function r2e(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return wl({ourProps:i,theirProps:r,slot:{},defaultTag:n2e,name:"Hidden"})}let i2e=ds(r2e),F7=C.createContext(null);F7.displayName="OpenClosedContext";var Oi=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Oi||{});function P7(){return C.useContext(F7)}function sP({value:e,children:t}){return ut.createElement(F7.Provider,{value:e},t)}var lr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(lr||{});function a2e(e,t,n){let[r,i]=C.useState(n),a=e!==void 0,o=C.useRef(a),s=C.useRef(!1),u=C.useRef(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!u.current&&(u.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Xt(c=>(a||i(c),t==null?void 0:t(c)))]}function JI(e){return[e.screenX,e.screenY]}function o2e(){let e=C.useRef([-1,-1]);return{wasMoved(t){let n=JI(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=JI(t)}}}function B7(){let e=C.useRef(!1);return zi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let eR=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tR(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return eR.test(o)&&(o=o.replace(eR,"")),o}function s2e(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():tR(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return tR(e).trim()}function l2e(e){let t=C.useRef(""),n=C.useRef("");return Xt(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=s2e(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var u2e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(u2e||{}),c2e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(c2e||{}),d2e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(d2e||{}),p2e=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(p2e||{});function c4(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Wge(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let f2e={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=c4(e),i=Qge(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var s;return!o.dataRef.current.disabled&&((s=o.dataRef.current.textValue)==null?void 0:s.startsWith(r))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=c4(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=c4(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},U7=C.createContext(null);U7.displayName="ListboxActionsContext";function Jp(e){let t=C.useContext(U7);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jp),n}return t}let $7=C.createContext(null);$7.displayName="ListboxDataContext";function ef(e){let t=C.useContext($7);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ef),n}return t}function h2e(e,t){return Sr(t.type,f2e,e,t)}let g2e=C.Fragment;function m2e(e,t){let{value:n,defaultValue:r,form:i,name:a,onChange:o,by:s=(re,Te)=>re===Te,disabled:u=!1,horizontal:c=!1,multiple:p=!1,...f}=e;const m=c?"horizontal":"vertical";let g=Ru(t),[E=p?[]:void 0,b]=a2e(n,o,r),[T,v]=C.useReducer(h2e,{dataRef:C.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),y=C.useRef({static:!1,hold:!1}),w=C.useRef(null),A=C.useRef(null),D=C.useRef(null),k=Xt(typeof s=="string"?(re,Te)=>{let K=s;return(re==null?void 0:re[K])===(Te==null?void 0:Te[K])}:s),R=C.useCallback(re=>Sr(B.mode,{1:()=>E.some(Te=>k(Te,re)),0:()=>k(E,re)}),[E]),B=C.useMemo(()=>({...T,value:E,disabled:u,mode:p?1:0,orientation:m,compare:k,isSelected:R,optionsPropsRef:y,labelRef:w,buttonRef:A,optionsRef:D}),[E,u,p,T]);zi(()=>{T.dataRef.current=B},[B]),Kge([B.buttonRef,B.optionsRef],(re,Te)=>{var K;v({type:1}),tP(Te,M7.Loose)||(re.preventDefault(),(K=B.buttonRef.current)==null||K.focus())},B.listboxState===0);let W=C.useMemo(()=>({open:B.listboxState===0,disabled:u,value:E}),[B,u,E]),P=Xt(re=>{let Te=B.options.find(K=>K.id===re);Te&&Z(Te.dataRef.current.value)}),Q=Xt(()=>{if(B.activeOptionIndex!==null){let{dataRef:re,id:Te}=B.options[B.activeOptionIndex];Z(re.current.value),v({type:2,focus:gi.Specific,id:Te})}}),z=Xt(()=>v({type:0})),le=Xt(()=>v({type:1})),he=Xt((re,Te,K)=>re===gi.Specific?v({type:2,focus:gi.Specific,id:Te,trigger:K}):v({type:2,focus:re,trigger:K})),de=Xt((re,Te)=>(v({type:5,id:re,dataRef:Te}),()=>v({type:6,id:re}))),fe=Xt(re=>(v({type:7,id:re}),()=>v({type:7,id:null}))),Z=Xt(re=>Sr(B.mode,{0(){return b==null?void 0:b(re)},1(){let Te=B.value.slice(),K=Te.findIndex(xe=>k(xe,re));return K===-1?Te.push(re):Te.splice(K,1),b==null?void 0:b(Te)}})),V=Xt(re=>v({type:3,value:re})),ce=Xt(()=>v({type:4})),N=C.useMemo(()=>({onChange:Z,registerOption:de,registerLabel:fe,goToOption:he,closeListbox:le,openListbox:z,selectActiveOption:Q,selectOption:P,search:V,clearSearch:ce}),[]),me={ref:g},oe=C.useRef(null),O=tc();return C.useEffect(()=>{oe.current&&r!==void 0&&O.addEventListener(oe.current,"reset",()=>{b==null||b(r)})},[oe,b]),ut.createElement(U7.Provider,{value:N},ut.createElement($7.Provider,{value:B},ut.createElement(sP,{value:Sr(B.listboxState,{0:Oi.Open,1:Oi.Closed})},a!=null&&E!=null&&rP({[a]:E}).map(([re,Te],K)=>ut.createElement(i2e,{features:oP.Hidden,ref:K===0?xe=>{var ne;oe.current=(ne=xe==null?void 0:xe.closest("form"))!=null?ne:null}:void 0,...E9({key:re,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:re,value:Te})})),wl({ourProps:me,theirProps:f,slot:W,defaultTag:g2e,name:"Listbox"}))))}let b2e="button";function E2e(e,t){var n;let r=fm(),{id:i=`headlessui-listbox-button-${r}`,...a}=e,o=ef("Listbox.Button"),s=Jp("Listbox.Button"),u=Ru(o.buttonRef,t),c=tc(),p=Xt(T=>{switch(T.key){case lr.Space:case lr.Enter:case lr.ArrowDown:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(gi.First)});break;case lr.ArrowUp:T.preventDefault(),s.openListbox(),c.nextFrame(()=>{o.value||s.goToOption(gi.Last)});break}}),f=Xt(T=>{switch(T.key){case lr.Space:T.preventDefault();break}}),m=Xt(T=>{if(e2e(T.currentTarget))return T.preventDefault();o.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})})):(T.preventDefault(),s.openListbox())}),g=JF(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),E=C.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),b={ref:u,id:i,type:Yge(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":g,disabled:o.disabled,onKeyDown:p,onKeyUp:f,onClick:m};return wl({ourProps:b,theirProps:a,slot:E,defaultTag:b2e,name:"Listbox.Button"})}let v2e="label";function y2e(e,t){let n=fm(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,a=ef("Listbox.Label"),o=Jp("Listbox.Label"),s=Ru(a.labelRef,t);zi(()=>o.registerLabel(r),[r]);let u=Xt(()=>{var p;return(p=a.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),c=C.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return wl({ourProps:{ref:s,id:r,onClick:u},theirProps:i,slot:c,defaultTag:v2e,name:"Listbox.Label"})}let _2e="ul",T2e=Ig.RenderStrategy|Ig.Static;function S2e(e,t){var n;let r=fm(),{id:i=`headlessui-listbox-options-${r}`,...a}=e,o=ef("Listbox.Options"),s=Jp("Listbox.Options"),u=Ru(o.optionsRef,t),c=tc(),p=tc(),f=P7(),m=(()=>f!==null?(f&Oi.Open)===Oi.Open:o.listboxState===0)();C.useEffect(()=>{var v;let y=o.optionsRef.current;y&&o.listboxState===0&&y!==((v=eP(y))==null?void 0:v.activeElement)&&y.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let g=Xt(v=>{switch(p.dispose(),v.key){case lr.Space:if(o.searchQuery!=="")return v.preventDefault(),v.stopPropagation(),s.search(v.key);case lr.Enter:if(v.preventDefault(),v.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:y}=o.options[o.activeOptionIndex];s.onChange(y.current.value)}o.mode===0&&(s.closeListbox(),hl().nextFrame(()=>{var y;return(y=o.buttonRef.current)==null?void 0:y.focus({preventScroll:!0})}));break;case Sr(o.orientation,{vertical:lr.ArrowDown,horizontal:lr.ArrowRight}):return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Next);case Sr(o.orientation,{vertical:lr.ArrowUp,horizontal:lr.ArrowLeft}):return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Previous);case lr.Home:case lr.PageUp:return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.First);case lr.End:case lr.PageDown:return v.preventDefault(),v.stopPropagation(),s.goToOption(gi.Last);case lr.Escape:return v.preventDefault(),v.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var y;return(y=o.buttonRef.current)==null?void 0:y.focus({preventScroll:!0})});case lr.Tab:v.preventDefault(),v.stopPropagation();break;default:v.key.length===1&&(s.search(v.key),p.setTimeout(()=>s.clearSearch(),350));break}}),E=JF(()=>{var v,y,w;return(w=(v=o.labelRef.current)==null?void 0:v.id)!=null?w:(y=o.buttonRef.current)==null?void 0:y.id},[o.labelRef.current,o.buttonRef.current]),b=C.useMemo(()=>({open:o.listboxState===0}),[o]),T={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":E,"aria-orientation":o.orientation,id:i,onKeyDown:g,role:"listbox",tabIndex:0,ref:u};return wl({ourProps:T,theirProps:a,slot:b,defaultTag:_2e,features:T2e,visible:m,name:"Listbox.Options"})}let w2e="li";function A2e(e,t){let n=fm(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:a,...o}=e,s=ef("Listbox.Option"),u=Jp("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===r:!1,p=s.isSelected(a),f=C.useRef(null),m=l2e(f),g=Eo({disabled:i,value:a,domRef:f,get textValue(){return m()}}),E=Ru(t,f);zi(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let k=hl();return k.requestAnimationFrame(()=>{var R,B;(B=(R=f.current)==null?void 0:R.scrollIntoView)==null||B.call(R,{block:"nearest"})}),k.dispose},[f,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),zi(()=>u.registerOption(r,g),[g,r]);let b=Xt(k=>{if(i)return k.preventDefault();u.onChange(a),s.mode===0&&(u.closeListbox(),hl().nextFrame(()=>{var R;return(R=s.buttonRef.current)==null?void 0:R.focus({preventScroll:!0})}))}),T=Xt(()=>{if(i)return u.goToOption(gi.Nothing);u.goToOption(gi.Specific,r)}),v=o2e(),y=Xt(k=>v.update(k)),w=Xt(k=>{v.wasMoved(k)&&(i||c||u.goToOption(gi.Specific,r,0))}),A=Xt(k=>{v.wasMoved(k)&&(i||c&&u.goToOption(gi.Nothing))}),D=C.useMemo(()=>({active:c,selected:p,disabled:i}),[c,p,i]);return wl({ourProps:{id:r,ref:E,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:b,onFocus:T,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:A,onMouseLeave:A},theirProps:o,slot:D,defaultTag:w2e,name:"Listbox.Option"})}let C2e=ds(m2e),x2e=ds(E2e),k2e=ds(y2e),I2e=ds(S2e),R2e=ds(A2e),hm=Object.assign(C2e,{Button:x2e,Label:k2e,Options:I2e,Option:R2e});function N2e(e=0){let[t,n]=C.useState(e),r=B7(),i=C.useCallback(u=>{r.current&&n(c=>c|u)},[t,r]),a=C.useCallback(u=>!!(t&u),[t]),o=C.useCallback(u=>{r.current&&n(c=>c&~u)},[n,r]),s=C.useCallback(u=>{r.current&&n(c=>c^u)},[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:s}}function O2e(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function d4(e,...t){e&&t.length>0&&e.classList.add(...t)}function p4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function D2e(e,t){let n=hl();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,f)=>f-p);return c}),s=a+o;if(s!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",p=>{p.target===p.currentTarget&&c.dispose()})});let u=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function L2e(e,t,n,r){let i=n?"enter":"leave",a=hl(),o=r!==void 0?O2e(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Sr(i,{enter:()=>t.enter,leave:()=>t.leave}),u=Sr(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Sr(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return p4(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),d4(e,...t.base,...s,...c),a.nextFrame(()=>{p4(e,...t.base,...s,...c),d4(e,...t.base,...s,...u),D2e(e,()=>(p4(e,...t.base,...s),d4(e,...t.base,...t.entered),o()))}),a.dispose}function M2e({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=B7(),s=tc(),u=Eo(n);zi(()=>{e&&(u.current="enter")},[e]),zi(()=>{let c=hl();s.add(c.dispose);let p=t.current;if(p&&u.current!=="idle"&&o.current)return c.dispose(),i.current(u.current),c.add(L2e(p,r.current,u.current==="enter",()=>{c.dispose(),a.current(u.current)})),c.dispose},[n])}function Rs(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let gm=C.createContext(null);gm.displayName="TransitionContext";var F2e=(e=>(e.Visible="visible",e.Hidden="hidden",e))(F2e||{});function P2e(){let e=C.useContext(gm);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function B2e(){let e=C.useContext(mm);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let mm=C.createContext(null);mm.displayName="NestingContext";function bm(e){return"children"in e?bm(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function lP(e,t){let n=Eo(e),r=C.useRef([]),i=B7(),a=tc(),o=Xt((g,E=Vs.Hidden)=>{let b=r.current.findIndex(({el:T})=>T===g);b!==-1&&(Sr(E,{[Vs.Unmount](){r.current.splice(b,1)},[Vs.Hidden](){r.current[b].state="hidden"}}),a.microTask(()=>{var T;!bm(r)&&i.current&&((T=n.current)==null||T.call(n))}))}),s=Xt(g=>{let E=r.current.find(({el:b})=>b===g);return E?E.state!=="visible"&&(E.state="visible"):r.current.push({el:g,state:"visible"}),()=>o(g,Vs.Unmount)}),u=C.useRef([]),c=C.useRef(Promise.resolve()),p=C.useRef({enter:[],leave:[],idle:[]}),f=Xt((g,E,b)=>{u.current.splice(0),t&&(t.chains.current[E]=t.chains.current[E].filter(([T])=>T!==g)),t==null||t.chains.current[E].push([g,new Promise(T=>{u.current.push(T)})]),t==null||t.chains.current[E].push([g,new Promise(T=>{Promise.all(p.current[E].map(([v,y])=>y)).then(()=>T())})]),E==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>b(E)):b(E)}),m=Xt((g,E,b)=>{Promise.all(p.current[E].splice(0).map(([T,v])=>v)).then(()=>{var T;(T=u.current.shift())==null||T()}).then(()=>b(E))});return C.useMemo(()=>({children:r,register:s,unregister:o,onStart:f,onStop:m,wait:c,chains:p}),[s,o,r,f,m,p,c])}function U2e(){}let $2e=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nR(e){var t;let n={};for(let r of $2e)n[r]=(t=e[r])!=null?t:U2e;return n}function z2e(e){let t=C.useRef(nR(e));return C.useEffect(()=>{t.current=nR(e)},[e]),t}let H2e="div",uP=Ig.RenderStrategy;function j2e(e,t){var n,r;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s,enter:u,enterFrom:c,enterTo:p,entered:f,leave:m,leaveFrom:g,leaveTo:E,...b}=e,T=C.useRef(null),v=Ru(T,t),y=(n=b.unmount)==null||n?Vs.Unmount:Vs.Hidden,{show:w,appear:A,initial:D}=P2e(),[k,R]=C.useState(w?"visible":"hidden"),B=B2e(),{register:W,unregister:P}=B;C.useEffect(()=>W(T),[W,T]),C.useEffect(()=>{if(y===Vs.Hidden&&T.current){if(w&&k!=="visible"){R("visible");return}return Sr(k,{hidden:()=>P(T),visible:()=>W(T)})}},[k,T,W,P,w,y]);let Q=Eo({base:Rs(b.className),enter:Rs(u),enterFrom:Rs(c),enterTo:Rs(p),entered:Rs(f),leave:Rs(m),leaveFrom:Rs(g),leaveTo:Rs(E)}),z=z2e({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:s}),le=L7();C.useEffect(()=>{if(le&&k==="visible"&&T.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[T,k,le]);let he=D&&!A,de=A&&w&&D,fe=(()=>!le||he?"idle":w?"enter":"leave")(),Z=N2e(0),V=Xt(O=>Sr(O,{enter:()=>{Z.addFlag(Oi.Opening),z.current.beforeEnter()},leave:()=>{Z.addFlag(Oi.Closing),z.current.beforeLeave()},idle:()=>{}})),ce=Xt(O=>Sr(O,{enter:()=>{Z.removeFlag(Oi.Opening),z.current.afterEnter()},leave:()=>{Z.removeFlag(Oi.Closing),z.current.afterLeave()},idle:()=>{}})),N=lP(()=>{R("hidden"),P(T)},B);M2e({immediate:de,container:T,classes:Q,direction:fe,onStart:Eo(O=>{N.onStart(T,O,V)}),onStop:Eo(O=>{N.onStop(T,O,ce),O==="leave"&&!bm(N)&&(R("hidden"),P(T))})});let me=b,oe={ref:v};return de?me={...me,className:kg(b.className,...Q.current.enter,...Q.current.enterFrom)}:(me.className=kg(b.className,(r=T.current)==null?void 0:r.className),me.className===""&&delete me.className),ut.createElement(mm.Provider,{value:N},ut.createElement(sP,{value:Sr(k,{visible:Oi.Open,hidden:Oi.Closed})|Z.flags},wl({ourProps:oe,theirProps:me,defaultTag:H2e,features:uP,visible:k==="visible",name:"Transition.Child"})))}function G2e(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=C.useRef(null),s=Ru(o,t);L7();let u=P7();if(n===void 0&&u!==null&&(n=(u&Oi.Open)===Oi.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,p]=C.useState(n?"visible":"hidden"),f=lP(()=>{p("hidden")}),[m,g]=C.useState(!0),E=C.useRef([n]);zi(()=>{m!==!1&&E.current[E.current.length-1]!==n&&(E.current.push(n),g(!1))},[E,n]);let b=C.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);C.useEffect(()=>{if(n)p("visible");else if(!bm(f))p("hidden");else{let w=o.current;if(!w)return;let A=w.getBoundingClientRect();A.x===0&&A.y===0&&A.width===0&&A.height===0&&p("hidden")}},[n,f]);let T={unmount:i},v=Xt(()=>{var w;m&&g(!1),(w=e.beforeEnter)==null||w.call(e)}),y=Xt(()=>{var w;m&&g(!1),(w=e.beforeLeave)==null||w.call(e)});return ut.createElement(mm.Provider,{value:f},ut.createElement(gm.Provider,{value:b},wl({ourProps:{...T,as:C.Fragment,children:ut.createElement(cP,{ref:s,...T,...a,beforeEnter:v,beforeLeave:y})},theirProps:{},defaultTag:C.Fragment,features:uP,visible:c==="visible",name:"Transition"})))}function V2e(e,t){let n=C.useContext(gm)!==null,r=P7()!==null;return ut.createElement(ut.Fragment,null,!n&&r?ut.createElement(v9,{ref:t,...e}):ut.createElement(cP,{ref:t,...e}))}let v9=ds(G2e),cP=ds(j2e),W2e=ds(V2e),q2e=Object.assign(v9,{Child:W2e,Root:v9});const K2e=He.div` + display: grid; + grid-template-columns: 1fr auto; + align-items: center; + border: 0.5px solid ${vt}; + border-radius: ${wt}; + overflow: hidden; +`;He.select` + border: none; + max-width: 50vw; + background-color: ${Kt}; + color: ${Ht}; + padding: 6px; + max-height: 35vh; + overflow: scroll; + cursor: pointer; + + &:focus { + outline: none; + } + &:hover { + background-color: ${Lt}; + } +`;const Y2e=He(cD)` + background-color: ${Kt}; + cursor: pointer; + margin: 0px; + padding-left: 4px; + padding-right: 4px; + height: 100%; + + &:hover { + background-color: ${Lt}; + } + border-left: 0.5px solid ${vt}; +`;He.div` + cursor: pointer; + padding: 8px; + padding-left: 16px; + padding-right: 16px; + border-top: 0.5px solid ${vt}; + + &:hover { + background-color: ${Lt}; + } +`;const X2e=He(hm)` + background-color: ${Kt}; + padding: 0; + min-width: 80px; +`,Z2e=He(hm.Button)` + position: relative; + cursor: pointer; + background-color: ${Kt}; + text-align: left; + border: none; + margin: 0; + height: 100%; + width: 100%; + max-width: 180px; + white-space: nowrap; + overflow: hidden; + + display: grid; + grid-template-columns: 1fr auto; + align-items: center; + + color: ${Ht}; + + padding: 4px 8px; + + &:focus { + outline: none; + } + + &:hover { + background-color: ${Lt}; + } +`,Q2e=He(hm.Options)` + background-color: ${Lt}; + padding: 0; + + position: absolute; + bottom: calc(100% - 16px); + max-width: 100%; + + border-radius: ${wt}; + overflow: hidden; +`,J2e=He(hm.Option)` + background-color: ${({selected:e})=>e?`${da}88`:Lt}; + cursor: pointer; + padding: 6px 8px; + + &:hover { + background-color: ${da}44; + } +`;function f4(e){return e!=null&&e.title?e==null?void 0:e.title:(e==null?void 0:e.model)!==void 0&&(e==null?void 0:e.model.trim())!==""?e!=null&&e.class_name?`${e==null?void 0:e.class_name} - ${e==null?void 0:e.model}`:e==null?void 0:e.model:e==null?void 0:e.class_name}function eme(e){const t=C.useContext(Ya),n=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.default}),r=zt(c=>{var p,f;return(f=(p=c.serverState.config)==null?void 0:p.models)==null?void 0:f.saved}),i=cs(),a={value:JSON.stringify({t:"default",idx:-1}),title:"GPT-4"},[o,s]=C.useState([a]);C.useEffect(()=>{if(!n&&!r){s([a]);return}const c=[];n&&c.push({value:JSON.stringify({t:"default",idx:-1}),title:f4(n)}),r==null||r.forEach((p,f)=>{c.push({value:JSON.stringify({t:"saved",idx:f}),title:f4(p)})}),s(c)},[n,r]);const u=document.getElementById("model-select-top-div");return I.jsx(I.Fragment,{children:I.jsxs(K2e,{children:[I.jsx(X2e,{value:JSON.stringify({t:"default",idx:-1}),onChange:c=>{const p=JSON.parse(c);p.t==="saved"&&(t==null||t.setModelForRoleFromIndex("*",p.idx))},defaultValue:"0",children:I.jsxs("div",{className:"relative",children:[I.jsxs(Z2e,{children:[I.jsx("div",{children:f4(n)||"GPT-4"}),I.jsx("div",{className:"pointer-events-none flex items-center",children:I.jsx(kY,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),u&&_E.createPortal(I.jsx(q2e,{as:C.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:I.jsx(Q2e,{children:o.map((c,p)=>I.jsx(J2e,{selected:c.value===JSON.stringify({t:"default",idx:-1}),value:c.value,children:I.jsx("span",{children:c.title})},p))})}),u)]})}),I.jsx(Y2e,{width:"1.3em",height:"1.3em",onClick:()=>{i("/models")}})]})})}const tme=He.div` + width: 100px; + height: 6px; + border-radius: 6px; + border: 0.5px solid ${vt}; + margin-top: 6px; +`,nme=He.div` + height: 100%; + background-color: ${e=>e.color||Ht}; + border-radius: inherit; + transition: width 0.2s ease-in-out; + width: ${e=>e.completed}%; +`,rme=He.div` + display: grid; + grid-template-rows: 1fr auto; + align-items: center; + justify-items: center; +`,ime=He.p` + margin: 0; + margin-top: 2px; + font-size: 11.5px; + color: ${vt}; + text-align: center; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +`,ame=({completed:e,total:t})=>{const n=Math.min(100,Math.max(0,e/t*100));return I.jsxs(I.Fragment,{children:[I.jsx("a",{href:"https://continue.dev/docs/customization/models",className:"no-underline ml-2",children:I.jsxs(rme,{"data-tooltip-id":"usage_progress_bar",children:[I.jsx(tme,{children:I.jsx(nme,{completed:n,color:e/t>.75?e/t>.95?"#f00":"#fc0":void 0})}),I.jsxs(ime,{children:["Free Uses: ",e," / ",t]})]})}),I.jsx(Gs,{id:"usage_progress_bar",place:"bottom",children:"Continue allows you to use our OpenAI API key for up to 250 inputs. After this, you can either use your own API key, or use a local LLM. Click the progress bar to go to the docs and learn more."})]})},ome="1.8em",sme=He.div` + height: 100%; + border-radius: ${wt}; + scrollbar-base-color: transparent; + scrollbar-width: thin; + + & * { + ::-webkit-scrollbar { + width: 4px; + } + + ::-webkit-scrollbar:horizontal { + height: 4px; + } + + ::-webkit-scrollbar-thumb { + border-radius: 2px; + } + } +`,lme=He.div` + position: fixed; + bottom: ${e=>e.displayOnBottom?"50px":void 0}; + top: ${e=>e.displayOnBottom?void 0:"50px"}; + left: 0; + right: 0; + margin: 8px; + margin-top: 0; + background-color: ${Lt}; + color: ${Ht}; + border-radius: ${wt}; + padding: 12px; + z-index: 100; + box-shadow: 0px 0px 2px 0px ${Ht}; + max-height: 35vh; +`,ume=He.footer` + display: flex; + flex-direction: row; + gap: 8px; + justify-content: right; + padding: 8px; + align-items: center; + width: calc(100% - 16px); + height: ${ome}; + + overflow: hidden; +`,cme=He.div` + display: grid; + grid-template-rows: 1fr auto; + height: 100vh; + overflow-x: visible; +`,dme=He.div` + background-color: ${Lt}; + position: relative; + margin-left: 8px; + z-index: 200; + font-size: ${nr()}; +`,pme=()=>{const e=cs(),t=D7(),n=C.useContext(Ya),r=us(),i=zt(p=>p.uiState.dialogMessage),a=zt(p=>p.uiState.showDialog),o=zt(p=>{var f;return(f=p.serverState.config.models)==null?void 0:f.default}),s=zt(p=>p.uiState.bottomMessage),u=zt(p=>p.uiState.displayBottomMessageOnBottom),c=zt(p=>p.serverState.history.timeline);return C.useEffect(()=>{const p=f=>{var m;if(f.metaKey&&f.altKey&&f.code==="KeyN"&&c.filter(g=>!g.step.hide).length>0&&(r(sm(!1)),n==null||n.loadSession(void 0)),(f.metaKey||f.ctrlKey)&&f.code==="KeyC"){const g=(m=window.getSelection())==null?void 0:m.toString();g&&setTimeout(()=>{navigator.clipboard.writeText(g)},100)}};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p)}},[n,c]),C.useEffect(()=>{const p=f=>{f.data.type==="addModel"?e("/models"):f.data.type==="openSettings"&&e("/settings")};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p)}},[]),I.jsxs(sme,{children:[I.jsxs("div",{style:{scrollbarGutter:"stable both-edges",minHeight:"100%",display:"grid",gridTemplateRows:"1fr auto"},children:[I.jsx(Fge,{showDialog:a,onEnter:()=>{r(Q1(!1))},onClose:()=>{r(Q1(!1))},message:i}),I.jsxs(cme,{children:[I.jsx(oge,{}),I.jsx(dme,{id:"model-select-top-div"}),I.jsxs(ume,{children:[I.jsxs("div",{className:"mr-auto flex gap-2 items-center",children:[localStorage.getItem("ide")==="jetbrains"||localStorage.getItem("hideFeature")==="true"||I.jsx(dD,{className:"cursor-pointer",onClick:()=>{localStorage.setItem("hideFeature","true")},onMouseEnter:()=>{r(au("🎁 New Feature: Use ⌘⇧R automatically debug errors in the terminal (you can click the sparkle icon to make it go away)"))},onMouseLeave:()=>{r(Wk(setTimeout(()=>{r(au(void 0))},2e3)))},width:"1.3em",height:"1.3em",color:"yellow"}),I.jsx(eme,{}),(o==null?void 0:o.class_name)==="OpenAIFreeTrial"&&(o==null?void 0:o.api_key)===""&&(t.pathname==="/settings"||parseInt(localStorage.getItem("ftc")||"0")>=125)&&I.jsx(ame,{completed:parseInt(localStorage.getItem("ftc")||"0"),total:250})]}),I.jsx(vi,{text:"Help",onClick:()=>{e("/help")},children:I.jsx(iX,{width:"1.4em",height:"1.4em"})}),I.jsx(vi,{onClick:()=>{e("/settings")},text:"Settings",children:I.jsx(LY,{width:"1.4em",height:"1.4em"})})]})]}),I.jsx(lme,{displayOnBottom:u,onMouseEnter:()=>{r(Wk(void 0))},onMouseLeave:p=>{p.buttons||r(au(void 0))},hidden:!s,children:s})]}),I.jsx("div",{className:"text-sm",id:"tooltip-portal-div"})]})};class fme{}class dP{}class hme extends dP{constructor(n){super();ea(this,"websocket");ea(this,"onMessageListeners",{});ea(this,"onErrorListeners",[]);ea(this,"onOpenListeners",[]);ea(this,"onCloseListeners",[]);ea(this,"serverUrl");this.serverUrl=n,this.websocket=this._newWebsocket()}_newWebsocket(){const n=new WebSocket(this.serverUrl);for(const r of this.onOpenListeners)this.onOpen(r);for(const r of this.onCloseListeners)this.onClose(r);for(const r in this.onMessageListeners)for(const i of this.onMessageListeners[r])this.onMessageType(r,i);for(const r of this.onErrorListeners)this.onError(r);return n}send(n,r){const i=JSON.stringify({messageType:n,data:r});this.websocket.readyState===this.websocket.OPEN?this.websocket.send(i):(this.websocket.readyState!==this.websocket.CONNECTING&&(this.websocket=this._newWebsocket()),this.websocket.addEventListener("open",()=>{this.websocket.send(i)}))}sendAndReceive(n,r){return new Promise((i,a)=>{const o=s=>{i(s),this.websocket.removeEventListener("message",o)};this.websocket.addEventListener("message",s=>{const u=JSON.parse(s.data);u.messageType===n&&o(u.data)}),this.send(n,r)})}onMessageType(n,r){this.websocket.addEventListener("message",i=>{const a=JSON.parse(i.data);a.messageType===n&&r(a.data)}),this.onMessageListeners[n]=[...this.onMessageListeners[n]||[],r]}onMessage(n){this.websocket.addEventListener("message",r=>{const i=JSON.parse(r.data);n(i.messageType,i.data)})}onOpen(n){this.websocket.addEventListener("open",n),this.onOpenListeners.push(n)}onClose(n){this.websocket.addEventListener("close",n),this.onCloseListeners.push(n)}onError(n){this.websocket.addEventListener("error",n),this.onErrorListeners.push(n)}close(){this.websocket.close()}}class gme extends dP{constructor(n){super();ea(this,"serverUrl");this.serverUrl=n,rl("websocketForwardingOpen",{url:this.serverUrl})}send(n,r){rl("websocketForwardingMessage",{message:{messageType:n,data:r},url:this.serverUrl})}onMessageType(n,r){window.addEventListener("message",i=>{if(i.data.type==="websocketForwardingMessage"){const a=JSON.parse(i.data.data);a.messageType===n&&r(a.data)}})}onMessage(n){window.addEventListener("message",r=>{if(r.data.type==="websocketForwardingMessage"){const i=JSON.parse(r.data.data);n(i.messageType,i.data)}})}onError(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingError"&&n(r.data.error)})}sendAndReceive(n,r){return new Promise(i=>{const a=o=>{if(o.data.type==="websocketForwardingMessage"){const s=JSON.parse(o.data.data);s.messageType===n&&(window.removeEventListener("message",a),i(s.data))}};window.addEventListener("message",a),this.send(n,r)})}onOpen(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingOpen"&&n()})}onClose(n){window.addEventListener("message",r=>{r.data.type==="websocketForwardingClose"&&n()})}close(){rl("websocketForwardingClose",{url:this.serverUrl})}}class mme extends fme{constructor(n,r){super();ea(this,"messenger");ea(this,"serverUrlWithSessionId");ea(this,"useVscodeMessagePassing");ea(this,"onStateUpdateCallbacks",[]);this.serverUrlWithSessionId=n,this.useVscodeMessagePassing=r,this.connectMessenger(n,r)}connectMessenger(n,r){this.messenger&&(console.log("Closing session: ",this.serverUrlWithSessionId),this.messenger.close()),this.serverUrlWithSessionId=n,this.useVscodeMessagePassing=r,this.messenger=r?new gme(n):new hme(n),this.messenger.onClose(()=>{console.log("GUI Connection closed: ",n)}),this.messenger.onError(i=>{console.log("GUI Connection error: ",i)}),this.messenger.onOpen(()=>{console.log("GUI Connection opened: ",n)}),this.messenger.onMessageType("reconnect_at_session",i=>{i.session_id&&this.onReconnectAtSession(i.session_id)}),this.messenger.onMessageType("state_update",i=>{if(i.state)for(const a of this.onStateUpdateCallbacks)a(i.state)})}loadSession(n){var r;(r=this.messenger)==null||r.send("load_session",{session_id:n})}onReconnectAtSession(n){const r=`${this.serverUrlWithSessionId.split("?")[0]}?session_id=${n}`;console.log("Reconnecting at session: ",r),this.connectMessenger(r,this.useVscodeMessagePassing)}sendMainInput(n){var r;(r=this.messenger)==null||r.send("main_input",{input:n})}reverseToIndex(n){var r;(r=this.messenger)==null||r.send("reverse_to_index",{index:n})}sendRefinementInput(n,r){var i;(i=this.messenger)==null||i.send("refinement_input",{input:n,index:r})}sendStepUserInput(n,r){var i;(i=this.messenger)==null||i.send("step_user_input",{input:n,index:r})}onStateUpdate(n){var r;(r=this.messenger)==null||r.onMessageType("state_update",i=>{i.state&&n(i.state)}),this.onStateUpdateCallbacks.push(n)}onAvailableSlashCommands(n){var r;(r=this.messenger)==null||r.onMessageType("available_slash_commands",i=>{i.commands&&n(i.commands)})}sendClear(){var n;(n=this.messenger)==null||n.send("clear_history",{})}retryAtIndex(n){var r;(r=this.messenger)==null||r.send("retry_at_index",{index:n})}deleteAtIndex(n){var r;(r=this.messenger)==null||r.send("delete_at_index",{index:n})}deleteContextWithIds(n,r){var i;(i=this.messenger)==null||i.send("delete_context_with_ids",{ids:n.map(a=>`${a.provider_title}-${a.item_id}`),index:r})}setEditingAtIds(n){var r;(r=this.messenger)==null||r.send("set_editing_at_ids",{ids:n})}toggleAddingHighlightedCode(){var n;(n=this.messenger)==null||n.send("toggle_adding_highlighted_code",{})}showLogsAtIndex(n){var r;(r=this.messenger)==null||r.send("show_logs_at_index",{index:n})}showContextVirtualFile(n){var r;(r=this.messenger)==null||r.send("show_context_virtual_file",{index:n})}selectContextItem(n,r){var i;(i=this.messenger)==null||i.send("select_context_item",{id:n,query:r})}selectContextItemAtIndex(n,r,i){var a;(a=this.messenger)==null||a.send("select_context_item_at_index",{id:n,query:r,index:i})}editStepAtIndex(n,r){var i;(i=this.messenger)==null||i.send("edit_step_at_index",{user_input:n,index:r})}setSystemMessage(n){var r;(r=this.messenger)==null||r.send("set_system_message",{message:n})}setTemperature(n){var r;(r=this.messenger)==null||r.send("set_temperature",{temperature:n})}addModelForRole(n,r,i){var a;(a=this.messenger)==null||a.send("add_model_for_role",{role:n,model:i,model_class:r})}setModelForRoleFromIndex(n,r){var i;(i=this.messenger)==null||i.send("set_model_for_role_from_index",{role:n,index:r})}saveContextGroup(n,r){var i;(i=this.messenger)==null||i.send("save_context_group",{context_items:r,title:n})}selectContextGroup(n){var r;(r=this.messenger)==null||r.send("select_context_group",{id:n})}deleteContextGroup(n){var r;(r=this.messenger)==null||r.send("delete_context_group",{id:n})}setCurrentSessionTitle(n){var r;(r=this.messenger)==null||r.send("set_current_session_title",{title:n})}previewContextItem(n){var r;(r=this.messenger)==null||r.send("preview_context_item",{id:n})}}function bme(e=!0){const t=zt(a=>a.config.sessionId),n=zt(a=>a.config.apiUrl),[r,i]=C.useState(void 0);return C.useEffect(()=>{if(console.log(r,t,n),!t||!n){e&&rl("onLoad",{}),i(void 0);return}const a=n.replace("http","ws")+"/gui/ws?session_id="+encodeURIComponent(t);console.log("Creating GUI websocket",a,e);const o=new mme(a,e);console.log(o),i(o)},[t,n]),r}const pP=Zp({name:"config",initialState:{apiUrl:"http://localhost:8000",vscMediaUrl:localStorage.getItem("vscMediaUrl")||void 0},reducers:{setWorkspacePaths:(e,t)=>({...e,workspacePaths:t.payload}),setApiUrl:(e,t)=>({...e,apiUrl:t.payload}),setVscMachineId:(e,t)=>({...e,vscMachineId:t.payload}),setSessionId:(e,t)=>({...e,sessionId:t.payload}),setVscMediaUrl:(e,t)=>(localStorage.setItem("vscMediaUrl",t.payload),{...e,vscMediaUrl:t.payload}),setDataSwitchOn:(e,t)=>({...e,dataSwitchOn:t.payload})}}),{setVscMachineId:Eme,setApiUrl:vme,setWorkspacePaths:yme,setSessionId:_me,setVscMediaUrl:Tme,setDataSwitchOn:Sme}=pP.actions,wme=pP.reducer;function Ame(){const e=QF();return console.error(e),I.jsxs("div",{id:"error-page",className:"text-center",children:[I.jsx("h1",{children:"Error in Continue React App"}),I.jsx("p",{children:I.jsx("i",{children:e.statusText||e.message})}),I.jsx("br",{}),I.jsx("pre",{className:"text-left m-4",children:e.stack})]})}const fP="28px",Cme=He.div` + margin-top: 16px; + margin: auto; + width: ${fP}; + animation: flash 1.2s infinite ease-in-out; + @keyframes flash { + 0% { + opacity: 0.4; + } + 50% { + opacity: 1; + } + 100% { + opacity: 0.4; + } + } +`;function xme(e){const t=zt(n=>n.config.vscMediaUrl);return I.jsx(Cme,{children:t?I.jsx("img",{src:`${t}/play_button.png`,width:"22px"}):I.jsx(uD,{width:e.size||fP})})}const y9=({msg:e})=>{const t="info-hover",n=document.getElementById("tooltip-portal-div");return I.jsxs(I.Fragment,{children:[I.jsx(HY,{"data-tooltip-id":t,className:"h-5 w-5 text-gray-500 cursor-help"}),n&&_E.createPortal(I.jsx(Gs,{id:t,place:"bottom",children:e}),n)]})};var tf=e=>e.type==="checkbox",k1=e=>e instanceof Date,Zr=e=>e==null;const hP=e=>typeof e=="object";var rr=e=>!Zr(e)&&!Array.isArray(e)&&hP(e)&&!k1(e),kme=e=>rr(e)&&e.target?tf(e.target)?e.target.checked:e.target.value:e,Ime=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Rme=(e,t)=>e.has(Ime(t)),Nme=e=>{const t=e.constructor&&e.constructor.prototype;return rr(t)&&t.hasOwnProperty("isPrototypeOf")},z7=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function jo(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(z7&&(e instanceof Blob||e instanceof FileList))&&(n||rr(e)))if(t=n?[]:{},!n&&!Nme(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=jo(e[r]));else return e;return t}var nf=e=>Array.isArray(e)?e.filter(Boolean):[],Wn=e=>e===void 0,lt=(e,t,n)=>{if(!t||!rr(e))return n;const r=nf(t.split(/[,[\].]+?/)).reduce((i,a)=>Zr(i)?i:i[a],e);return Wn(r)||r===e?Wn(e[t])?n:e[t]:r},tu=e=>typeof e=="boolean";const rR={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ba={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},zo={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ome=ut.createContext(null),gP=e=>{const{children:t,...n}=e;return ut.createElement(Ome.Provider,{value:n},t)};var Dme=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ba.all&&(t._proxyFormState[o]=!r||Ba.all),n&&(n[o]=!0),e[o]}});return i},aa=e=>rr(e)&&!Object.keys(e).length,Lme=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return aa(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Ba.all))},h4=e=>Array.isArray(e)?e:[e];function Mme(e){const t=ut.useRef(e);t.current=e,ut.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var fo=e=>typeof e=="string",Fme=(e,t,n,r,i)=>fo(e)?(r&&t.watch.add(e),lt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),lt(n,a))):(r&&(t.watchAll=!0),n),H7=e=>/^\w*$/.test(e),mP=e=>nf(e.replace(/["|']|\]/g,"").split(/\.|\[/));function An(e,t,n){let r=-1;const i=H7(t)?[t]:mP(t),a=i.length,o=a-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const _9=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=lt(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else rr(o)&&_9(o,t)}}};var iR=e=>({isOnSubmit:!e||e===Ba.onSubmit,isOnBlur:e===Ba.onBlur,isOnChange:e===Ba.onChange,isOnAll:e===Ba.all,isOnTouch:e===Ba.onTouched}),aR=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),Bme=(e,t,n)=>{const r=nf(lt(e,n));return An(r,"root",t[n]),An(e,n,r),e},j7=e=>e.type==="file",Ws=e=>typeof e=="function",Rg=e=>{if(!z7)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ah=e=>fo(e),G7=e=>e.type==="radio",Ng=e=>e instanceof RegExp;const oR={value:!1,isValid:!1},sR={value:!0,isValid:!0};var bP=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Wn(e[0].attributes.value)?Wn(e[0].value)||e[0].value===""?sR:{value:e[0].value,isValid:!0}:sR:oR}return oR};const lR={isValid:!1,value:null};var EP=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,lR):lR;function uR(e,t,n="validate"){if(Ah(e)||Array.isArray(e)&&e.every(Ah)||tu(e)&&!e)return{type:n,message:Ah(e)?e:"",ref:t}}var Qu=e=>rr(e)&&!Ng(e)?e:{value:e,message:""},cR=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:u,minLength:c,min:p,max:f,pattern:m,validate:g,name:E,valueAsNumber:b,mount:T,disabled:v}=e._f,y=lt(t,E);if(!T||v)return{};const w=o?o[0]:a,A=z=>{r&&w.reportValidity&&(w.setCustomValidity(tu(z)?"":z||""),w.reportValidity())},D={},k=G7(a),R=tf(a),B=k||R,W=(b||j7(a))&&Wn(a.value)&&Wn(y)||Rg(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,P=Pme.bind(null,E,n,D),Q=(z,le,he,de=zo.maxLength,fe=zo.minLength)=>{const Z=z?le:he;D[E]={type:z?de:fe,message:Z,ref:a,...P(z?de:fe,Z)}};if(i?!Array.isArray(y)||!y.length:s&&(!B&&(W||Zr(y))||tu(y)&&!y||R&&!bP(o).isValid||k&&!EP(o).isValid)){const{value:z,message:le}=Ah(s)?{value:!!s,message:s}:Qu(s);if(z&&(D[E]={type:zo.required,message:le,ref:w,...P(zo.required,le)},!n))return A(le),D}if(!W&&(!Zr(p)||!Zr(f))){let z,le;const he=Qu(f),de=Qu(p);if(!Zr(y)&&!isNaN(y)){const fe=a.valueAsNumber||y&&+y;Zr(he.value)||(z=fe>he.value),Zr(de.value)||(le=fenew Date(new Date().toDateString()+" "+N),V=a.type=="time",ce=a.type=="week";fo(he.value)&&y&&(z=V?Z(y)>Z(he.value):ce?y>he.value:fe>new Date(he.value)),fo(de.value)&&y&&(le=V?Z(y)+z.value,de=!Zr(le.value)&&y.length<+le.value;if((he||de)&&(Q(he,z.message,le.message),!n))return A(D[E].message),D}if(m&&!W&&fo(y)){const{value:z,message:le}=Qu(m);if(Ng(z)&&!y.match(z)&&(D[E]={type:zo.pattern,message:le,ref:a,...P(zo.pattern,le)},!n))return A(le),D}if(g){if(Ws(g)){const z=await g(y,t),le=uR(z,w);if(le&&(D[E]={...le,...P(zo.validate,le.message)},!n))return A(le.message),D}else if(rr(g)){let z={};for(const le in g){if(!aa(z)&&!n)break;const he=uR(await g[le](y,t),w,le);he&&(z={...he,...P(le,he.message)},A(he.message),n&&(D[E]=z))}if(!aa(z)&&(D[E]={ref:w,...z},!n))return D}}return A(!0),D};function Ume(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var Og=e=>Zr(e)||!hP(e);function nu(e,t){if(Og(e)||Og(t))return e===t;if(k1(e)&&k1(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(k1(a)&&k1(o)||rr(a)&&rr(o)||Array.isArray(a)&&Array.isArray(o)?!nu(a,o):a!==o)return!1}}return!0}var vP=e=>e.type==="select-multiple",zme=e=>G7(e)||tf(e),m4=e=>Rg(e)&&e.isConnected,yP=e=>{for(const t in e)if(Ws(e[t]))return!0;return!1};function Dg(e,t={}){const n=Array.isArray(e);if(rr(e)||n)for(const r in e)Array.isArray(e[r])||rr(e[r])&&!yP(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Dg(e[r],t[r])):Zr(e[r])||(t[r]=!0);return t}function _P(e,t,n){const r=Array.isArray(e);if(rr(e)||r)for(const i in e)Array.isArray(e[i])||rr(e[i])&&!yP(e[i])?Wn(t)||Og(n[i])?n[i]=Array.isArray(e[i])?Dg(e[i],[]):{...Dg(e[i])}:_P(e[i],Zr(t)?{}:t[i],n[i]):n[i]=!nu(e[i],t[i]);return n}var b4=(e,t)=>_P(e,t,Dg(t)),TP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Wn(e)?e:t?e===""?NaN:e&&+e:n&&fo(e)?new Date(e):r?r(e):e;function E4(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return j7(t)?t.files:G7(t)?EP(e.refs).value:vP(t)?[...t.selectedOptions].map(({value:n})=>n):tf(t)?bP(e.refs).value:TP(Wn(t.value)?e.ref.value:t.value,e)}var Hme=(e,t,n,r)=>{const i={};for(const a of e){const o=lt(t,a);o&&An(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ad=e=>Wn(e)?e:Ng(e)?e.source:rr(e)?Ng(e.value)?e.value.source:e.value:e,jme=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function dR(e,t,n){const r=lt(e,n);if(r||H7(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=lt(t,a),s=lt(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var Gme=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Vme=(e,t)=>!nf(lt(e,t)).length&&br(e,t);const Wme={mode:Ba.onSubmit,reValidateMode:Ba.onChange,shouldFocusError:!0};function qme(e={},t){let n={...Wme,...e},r={submitCount:0,isDirty:!1,isLoading:Ws(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=rr(n.defaultValues)||rr(n.values)?jo(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:jo(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,p=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:g4(),array:g4(),state:g4()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,E=iR(n.mode),b=iR(n.reValidateMode),T=n.criteriaMode===Ba.all,v=U=>ie=>{clearTimeout(p),p=setTimeout(U,ie)},y=async U=>{if(f.isValid||U){const ie=n.resolver?aa((await W()).errors):await Q(i,!0);ie!==r.isValid&&m.state.next({isValid:ie})}},w=U=>f.isValidating&&m.state.next({isValidating:U}),A=(U,ie=[],pe,ke,ve=!0,Se=!0)=>{if(ke&&pe){if(s.action=!0,Se&&Array.isArray(lt(i,U))){const Me=pe(lt(i,U),ke.argA,ke.argB);ve&&An(i,U,Me)}if(Se&&Array.isArray(lt(r.errors,U))){const Me=pe(lt(r.errors,U),ke.argA,ke.argB);ve&&An(r.errors,U,Me),Vme(r.errors,U)}if(f.touchedFields&&Se&&Array.isArray(lt(r.touchedFields,U))){const Me=pe(lt(r.touchedFields,U),ke.argA,ke.argB);ve&&An(r.touchedFields,U,Me)}f.dirtyFields&&(r.dirtyFields=b4(a,o)),m.state.next({name:U,isDirty:le(U,ie),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else An(o,U,ie)},D=(U,ie)=>{An(r.errors,U,ie),m.state.next({errors:r.errors})},k=(U,ie,pe,ke)=>{const ve=lt(i,U);if(ve){const Se=lt(o,U,Wn(pe)?lt(a,U):pe);Wn(Se)||ke&&ke.defaultChecked||ie?An(o,U,ie?Se:E4(ve._f)):fe(U,Se),s.mount&&y()}},R=(U,ie,pe,ke,ve)=>{let Se=!1,Me=!1;const ze={name:U};if(!pe||ke){f.isDirty&&(Me=r.isDirty,r.isDirty=ze.isDirty=le(),Se=Me!==ze.isDirty);const Ke=nu(lt(a,U),ie);Me=lt(r.dirtyFields,U),Ke?br(r.dirtyFields,U):An(r.dirtyFields,U,!0),ze.dirtyFields=r.dirtyFields,Se=Se||f.dirtyFields&&Me!==!Ke}if(pe){const Ke=lt(r.touchedFields,U);Ke||(An(r.touchedFields,U,pe),ze.touchedFields=r.touchedFields,Se=Se||f.touchedFields&&Ke!==pe)}return Se&&ve&&m.state.next(ze),Se?ze:{}},B=(U,ie,pe,ke)=>{const ve=lt(r.errors,U),Se=f.isValid&&tu(ie)&&r.isValid!==ie;if(e.delayError&&pe?(c=v(()=>D(U,pe)),c(e.delayError)):(clearTimeout(p),c=null,pe?An(r.errors,U,pe):br(r.errors,U)),(pe?!nu(ve,pe):ve)||!aa(ke)||Se){const Me={...ke,...Se&&tu(ie)?{isValid:ie}:{},errors:r.errors,name:U};r={...r,...Me},m.state.next(Me)}w(!1)},W=async U=>n.resolver(o,n.context,Hme(U||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),P=async U=>{const{errors:ie}=await W(U);if(U)for(const pe of U){const ke=lt(ie,pe);ke?An(r.errors,pe,ke):br(r.errors,pe)}else r.errors=ie;return ie},Q=async(U,ie,pe={valid:!0})=>{for(const ke in U){const ve=U[ke];if(ve){const{_f:Se,...Me}=ve;if(Se){const ze=u.array.has(Se.name),Ke=await cR(ve,o,T,n.shouldUseNativeValidation&&!ie,ze);if(Ke[Se.name]&&(pe.valid=!1,ie))break;!ie&&(lt(Ke,Se.name)?ze?Bme(r.errors,Ke,Se.name):An(r.errors,Se.name,Ke[Se.name]):br(r.errors,Se.name))}Me&&await Q(Me,ie,pe)}}return pe.valid},z=()=>{for(const U of u.unMount){const ie=lt(i,U);ie&&(ie._f.refs?ie._f.refs.every(pe=>!m4(pe)):!m4(ie._f.ref))&&K(U)}u.unMount=new Set},le=(U,ie)=>(U&&ie&&An(o,U,ie),!nu(me(),a)),he=(U,ie,pe)=>Fme(U,u,{...s.mount?o:Wn(ie)?a:fo(U)?{[U]:ie}:ie},pe,ie),de=U=>nf(lt(s.mount?o:a,U,e.shouldUnregister?lt(a,U,[]):[])),fe=(U,ie,pe={})=>{const ke=lt(i,U);let ve=ie;if(ke){const Se=ke._f;Se&&(!Se.disabled&&An(o,U,TP(ie,Se)),ve=Rg(Se.ref)&&Zr(ie)?"":ie,vP(Se.ref)?[...Se.ref.options].forEach(Me=>Me.selected=ve.includes(Me.value)):Se.refs?tf(Se.ref)?Se.refs.length>1?Se.refs.forEach(Me=>(!Me.defaultChecked||!Me.disabled)&&(Me.checked=Array.isArray(ve)?!!ve.find(ze=>ze===Me.value):ve===Me.value)):Se.refs[0]&&(Se.refs[0].checked=!!ve):Se.refs.forEach(Me=>Me.checked=Me.value===ve):j7(Se.ref)?Se.ref.value="":(Se.ref.value=ve,Se.ref.type||m.values.next({name:U,values:{...o}})))}(pe.shouldDirty||pe.shouldTouch)&&R(U,ve,pe.shouldTouch,pe.shouldDirty,!0),pe.shouldValidate&&N(U)},Z=(U,ie,pe)=>{for(const ke in ie){const ve=ie[ke],Se=`${U}.${ke}`,Me=lt(i,Se);(u.array.has(U)||!Og(ve)||Me&&!Me._f)&&!k1(ve)?Z(Se,ve,pe):fe(Se,ve,pe)}},V=(U,ie,pe={})=>{const ke=lt(i,U),ve=u.array.has(U),Se=jo(ie);An(o,U,Se),ve?(m.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&pe.shouldDirty&&m.state.next({name:U,dirtyFields:b4(a,o),isDirty:le(U,Se)})):ke&&!ke._f&&!Zr(Se)?Z(U,Se,pe):fe(U,Se,pe),aR(U,u)&&m.state.next({...r}),m.values.next({name:U,values:{...o}}),!s.mount&&t()},ce=async U=>{const ie=U.target;let pe=ie.name,ke=!0;const ve=lt(i,pe),Se=()=>ie.type?E4(ve._f):kme(U);if(ve){let Me,ze;const Ke=Se(),jt=U.type===rR.BLUR||U.type===rR.FOCUS_OUT,ue=!jme(ve._f)&&!n.resolver&&!lt(r.errors,pe)&&!ve._f.deps||Gme(jt,lt(r.touchedFields,pe),r.isSubmitted,b,E),ye=aR(pe,u,jt);An(o,pe,Ke),jt?(ve._f.onBlur&&ve._f.onBlur(U),c&&c(0)):ve._f.onChange&&ve._f.onChange(U);const We=R(pe,Ke,jt,!1),at=!aa(We)||ye;if(!jt&&m.values.next({name:pe,type:U.type,values:{...o}}),ue)return f.isValid&&y(),at&&m.state.next({name:pe,...ye?{}:We});if(!jt&&ye&&m.state.next({...r}),w(!0),n.resolver){const{errors:Qe}=await W([pe]),Y=dR(r.errors,i,pe),se=dR(Qe,i,Y.name||pe);Me=se.error,pe=se.name,ze=aa(Qe)}else Me=(await cR(ve,o,T,n.shouldUseNativeValidation))[pe],ke=Number.isNaN(Ke)||Ke===lt(o,pe,Ke),ke&&(Me?ze=!1:f.isValid&&(ze=await Q(i,!0)));ke&&(ve._f.deps&&N(ve._f.deps),B(pe,ze,Me,We))}},N=async(U,ie={})=>{let pe,ke;const ve=h4(U);if(w(!0),n.resolver){const Se=await P(Wn(U)?U:ve);pe=aa(Se),ke=U?!ve.some(Me=>lt(Se,Me)):pe}else U?(ke=(await Promise.all(ve.map(async Se=>{const Me=lt(i,Se);return await Q(Me&&Me._f?{[Se]:Me}:Me)}))).every(Boolean),!(!ke&&!r.isValid)&&y()):ke=pe=await Q(i);return m.state.next({...!fo(U)||f.isValid&&pe!==r.isValid?{}:{name:U},...n.resolver||!U?{isValid:pe}:{},errors:r.errors,isValidating:!1}),ie.shouldFocus&&!ke&&_9(i,Se=>Se&<(r.errors,Se),U?ve:u.mount),ke},me=U=>{const ie={...a,...s.mount?o:{}};return Wn(U)?ie:fo(U)?lt(ie,U):U.map(pe=>lt(ie,pe))},oe=(U,ie)=>({invalid:!!lt((ie||r).errors,U),isDirty:!!lt((ie||r).dirtyFields,U),isTouched:!!lt((ie||r).touchedFields,U),error:lt((ie||r).errors,U)}),O=U=>{U&&h4(U).forEach(ie=>br(r.errors,ie)),m.state.next({errors:U?r.errors:{}})},re=(U,ie,pe)=>{const ke=(lt(i,U,{_f:{}})._f||{}).ref;An(r.errors,U,{...ie,ref:ke}),m.state.next({name:U,errors:r.errors,isValid:!1}),pe&&pe.shouldFocus&&ke&&ke.focus&&ke.focus()},Te=(U,ie)=>Ws(U)?m.values.subscribe({next:pe=>U(he(void 0,ie),pe)}):he(U,ie,!0),K=(U,ie={})=>{for(const pe of U?h4(U):u.mount)u.mount.delete(pe),u.array.delete(pe),ie.keepValue||(br(i,pe),br(o,pe)),!ie.keepError&&br(r.errors,pe),!ie.keepDirty&&br(r.dirtyFields,pe),!ie.keepTouched&&br(r.touchedFields,pe),!n.shouldUnregister&&!ie.keepDefaultValue&&br(a,pe);m.values.next({values:{...o}}),m.state.next({...r,...ie.keepDirty?{isDirty:le()}:{}}),!ie.keepIsValid&&y()},xe=({disabled:U,name:ie,field:pe,fields:ke})=>{if(tu(U)){const ve=U?void 0:lt(o,ie,E4(pe?pe._f:lt(ke,ie)._f));An(o,ie,ve),R(ie,ve,!1,!1,!0)}},ne=(U,ie={})=>{let pe=lt(i,U);const ke=tu(ie.disabled);return An(i,U,{...pe||{},_f:{...pe&&pe._f?pe._f:{ref:{name:U}},name:U,mount:!0,...ie}}),u.mount.add(U),pe?xe({field:pe,disabled:ie.disabled,name:U}):k(U,!0,ie.value),{...ke?{disabled:ie.disabled}:{},...n.progressive?{required:!!ie.required,min:ad(ie.min),max:ad(ie.max),minLength:ad(ie.minLength),maxLength:ad(ie.maxLength),pattern:ad(ie.pattern)}:{},name:U,onChange:ce,onBlur:ce,ref:ve=>{if(ve){ne(U,ie),pe=lt(i,U);const Se=Wn(ve.value)&&ve.querySelectorAll&&ve.querySelectorAll("input,select,textarea")[0]||ve,Me=zme(Se),ze=pe._f.refs||[];if(Me?ze.find(Ke=>Ke===Se):Se===pe._f.ref)return;An(i,U,{_f:{...pe._f,...Me?{refs:[...ze.filter(m4),Se,...Array.isArray(lt(a,U))?[{}]:[]],ref:{type:Se.type,name:U}}:{ref:Se}}}),k(U,!1,void 0,Se)}else pe=lt(i,U,{}),pe._f&&(pe._f.mount=!1),(n.shouldUnregister||ie.shouldUnregister)&&!(Rme(u.array,U)&&s.action)&&u.unMount.add(U)}}},Le=()=>n.shouldFocusError&&_9(i,U=>U&<(r.errors,U),u.mount),Re=(U,ie)=>async pe=>{pe&&(pe.preventDefault&&pe.preventDefault(),pe.persist&&pe.persist());let ke=jo(o);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:ve,values:Se}=await W();r.errors=ve,ke=Se}else await Q(i);br(r.errors,"root"),aa(r.errors)?(m.state.next({errors:{}}),await U(ke,pe)):(ie&&await ie({...r.errors},pe),Le(),setTimeout(Le)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:aa(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Xe=(U,ie={})=>{lt(i,U)&&(Wn(ie.defaultValue)?V(U,lt(a,U)):(V(U,ie.defaultValue),An(a,U,ie.defaultValue)),ie.keepTouched||br(r.touchedFields,U),ie.keepDirty||(br(r.dirtyFields,U),r.isDirty=ie.defaultValue?le(U,lt(a,U)):le()),ie.keepError||(br(r.errors,U),f.isValid&&y()),m.state.next({...r}))},Ve=(U,ie={})=>{const pe=U?jo(U):a,ke=jo(pe),ve=U&&!aa(U)?ke:a;if(ie.keepDefaultValues||(a=pe),!ie.keepValues){if(ie.keepDirtyValues||g)for(const Se of u.mount)lt(r.dirtyFields,Se)?An(ve,Se,lt(o,Se)):V(Se,lt(ve,Se));else{if(z7&&Wn(U))for(const Se of u.mount){const Me=lt(i,Se);if(Me&&Me._f){const ze=Array.isArray(Me._f.refs)?Me._f.refs[0]:Me._f.ref;if(Rg(ze)){const Ke=ze.closest("form");if(Ke){Ke.reset();break}}}}i={}}o=e.shouldUnregister?ie.keepDefaultValues?jo(a):{}:jo(ve),m.array.next({values:{...ve}}),m.values.next({values:{...ve}})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!ie.keepIsValid,s.watch=!!e.shouldUnregister,m.state.next({submitCount:ie.keepSubmitCount?r.submitCount:0,isDirty:ie.keepDirty?r.isDirty:!!(ie.keepDefaultValues&&!nu(U,a)),isSubmitted:ie.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ie.keepDirtyValues?r.dirtyFields:ie.keepDefaultValues&&U?b4(a,U):{},touchedFields:ie.keepTouched?r.touchedFields:{},errors:ie.keepErrors?r.errors:{},isSubmitSuccessful:ie.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},dt=(U,ie)=>Ve(Ws(U)?U(o):U,ie);return{control:{register:ne,unregister:K,getFieldState:oe,handleSubmit:Re,setError:re,_executeSchema:W,_getWatch:he,_getDirty:le,_updateValid:y,_removeUnmounted:z,_updateFieldArray:A,_updateDisabledField:xe,_getFieldArray:de,_reset:Ve,_resetDefaultValues:()=>Ws(n.defaultValues)&&n.defaultValues().then(U=>{dt(U,n.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_subjects:m,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(U){s=U},get _defaultValues(){return a},get _names(){return u},set _names(U){u=U},get _formState(){return r},set _formState(U){r=U},get _options(){return n},set _options(U){n={...n,...U}}},trigger:N,register:ne,handleSubmit:Re,watch:Te,setValue:V,getValues:me,reset:dt,resetField:Xe,clearErrors:O,unregister:K,setError:re,setFocus:(U,ie={})=>{const pe=lt(i,U),ke=pe&&pe._f;if(ke){const ve=ke.refs?ke.refs[0]:ke.ref;ve.focus&&(ve.focus(),ie.shouldSelect&&ve.select())}},getFieldState:oe}}function SP(e={}){const t=ut.useRef(),n=ut.useRef(),[r,i]=ut.useState({isDirty:!1,isValidating:!1,isLoading:Ws(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Ws(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...qme(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,Mme({subject:a._subjects.state,next:o=>{Lme(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),ut.useEffect(()=>{e.values&&!nu(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),ut.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Dme(r,a),t.current}const pR=He.hr` + border: 0.5px solid ${vt}; +`,Kme=He(op)` + background-color: transparent; + color: ${vt}; + border: 1px solid ${vt}; + &:hover { + background-color: ${vt}; + color: black; + } +`,Yme=He(op)` + &:hover { + opacity: 0.8; + } +`,Xme=He.input.attrs({type:"range"})` + --webkit-appearance: none; + width: 100%; + background-color: ${Lt}; + outline: none; + border: none; + opacity: 0.7; + -webkit-transition: 0.2s; + transition: opacity 0.2s; + &:hover { + opacity: 1; + } + &::-webkit-slider-runnable-track { + width: 100%; + height: 8px; + cursor: pointer; + background: ${vt}; + border-radius: 4px; + } + &::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: 8px; + height: 8px; + cursor: pointer; + margin-top: -3px; + } + &::-moz-range-thumb { + width: 8px; + height: 8px; + cursor: pointer; + margin-top: -3px; + } + + &:focus { + outline: none; + border: none; + } +`;function Zme(){const e=SP(),t=s=>console.log(s),n=cs(),r=C.useContext(Ya),i=zt(s=>s.serverState.config);us();const a=()=>{if(!r)return;const s=e.watch("system_message"),u=e.watch("temperature");r.setSystemMessage(s||""),u&&r.setTemperature(u)},o=()=>{a(),n("/")};return C.useEffect(()=>{i&&(e.setValue("system_message",i.system_message),e.setValue("temperature",i.temperature))},[i]),I.jsx(gP,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:o,className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Settings"})]}),I.jsx("form",{onSubmit:e.handleSubmit(t),children:i?I.jsxs("div",{className:"p-2",children:[I.jsxs("h3",{className:"flex gap-1",children:["System Message",I.jsx(y9,{msg:`Set a system message with information that the LLM should always + keep in mind (e.g. "Please give concise answers. Always respond in + Spanish.")`})]}),I.jsx(QK,{placeholder:"Enter a system message (e.g. 'Always respond in German')",...e.register("system_message")}),I.jsx(pR,{}),I.jsxs("h3",{className:"flex gap-1",children:["Temperature",I.jsx(y9,{msg:`Set temperature to any value between 0 and 1. Higher values will + make the LLM more creative, while lower values will make it more + predictable.`})]}),I.jsxs("div",{className:"flex justify-between mx-16 gap-1",children:[I.jsx("p",{children:"0"}),I.jsx(Xme,{type:"range",min:"0",max:"1",step:"0.01",...e.register("temperature")}),I.jsx("p",{children:"1"})]}),I.jsx("div",{className:"text-center",style:{marginTop:"-25px"},children:I.jsx("p",{className:"text-sm text-gray-500",children:e.watch("temperature")||i.temperature||"-"})}),I.jsx(pR,{})]}):I.jsx(xme,{})}),I.jsx("hr",{}),I.jsxs("div",{className:"px-2",children:[I.jsx("h3",{children:"Appearance"}),I.jsx("p",{children:"Font Size"}),I.jsx(JK,{type:"number",min:"8",max:"48",step:"1",defaultValue:nr(),onChange:s=>{localStorage.setItem("fontSize",s.target.value)}})]}),I.jsxs("div",{className:"flex gap-2 justify-end px-4",children:[I.jsx(Kme,{onClick:()=>{n("/")},children:"Cancel"}),I.jsx(Yme,{onClick:o,children:"Save"})]})]})})}var Lg={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */Lg.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",f=1,m=2,g=4,E=1,b=2,T=1,v=2,y=4,w=8,A=16,D=32,k=64,R=128,B=256,W=512,P=30,Q="...",z=800,le=16,he=1,de=2,fe=3,Z=1/0,V=9007199254740991,ce=17976931348623157e292,N=0/0,me=4294967295,oe=me-1,O=me>>>1,re=[["ary",R],["bind",T],["bindKey",v],["curry",w],["curryRight",A],["flip",W],["partial",D],["partialRight",k],["rearg",B]],Te="[object Arguments]",K="[object Array]",xe="[object AsyncFunction]",ne="[object Boolean]",Le="[object Date]",Re="[object DOMException]",Xe="[object Error]",Ve="[object Function]",dt="[object GeneratorFunction]",ot="[object Map]",Ge="[object Number]",pt="[object Null]",U="[object Object]",ie="[object Promise]",pe="[object Proxy]",ke="[object RegExp]",ve="[object Set]",Se="[object String]",Me="[object Symbol]",ze="[object Undefined]",Ke="[object WeakMap]",jt="[object WeakSet]",ue="[object ArrayBuffer]",ye="[object DataView]",We="[object Float32Array]",at="[object Float64Array]",Qe="[object Int8Array]",Y="[object Int16Array]",se="[object Int32Array]",j="[object Uint8Array]",$="[object Uint8ClampedArray]",J="[object Uint16Array]",be="[object Uint32Array]",Fe=/\b__p \+= '';/g,De=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Je=/&(?:amp|lt|gt|quot|#39);/g,Ze=/[&<>"']/g,Rt=RegExp(Je.source),Zt=RegExp(Ze.source),kt=/<%-([\s\S]+?)%>/g,nn=/<%([\s\S]+?)%>/g,Yt=/<%=([\s\S]+?)%>/g,jr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gr=/^\w*$/,Vr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,ii=RegExp(Ta.source),Ir=/^\s+/,ps=/\s/,fs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wr=/\{\n\/\* \[wrapped with (.+)\] \*/,hs=/,? & /,Wt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rr=/[()=,{}\[\]\/\s]/,_i=/\\(\\)?/g,Al=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,ee=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,it=/^\[object .+?Constructor\]$/,ln=/^0o[0-7]+$/i,ir=/^(?:0|[1-9]\d*)$/,ar=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yn=/($^)/,wo=/['\n\r\u2028\u2029\\]/g,Xa="\\ud800-\\udfff",Nr="\\u0300-\\u036f",rf="\\ufe20-\\ufe2f",af="\\u20d0-\\u20ff",V7=Nr+rf+af,W7="\\u2700-\\u27bf",q7="a-z\\xdf-\\xf6\\xf8-\\xff",kP="\\xac\\xb1\\xd7\\xf7",IP="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",RP="\\u2000-\\u206f",NP=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",K7="A-Z\\xc0-\\xd6\\xd8-\\xde",Y7="\\ufe0e\\ufe0f",X7=kP+IP+RP+NP,Em="['’]",OP="["+Xa+"]",Z7="["+X7+"]",of="["+V7+"]",Q7="\\d+",DP="["+W7+"]",J7="["+q7+"]",eT="[^"+Xa+X7+Q7+W7+q7+K7+"]",vm="\\ud83c[\\udffb-\\udfff]",LP="(?:"+of+"|"+vm+")",tT="[^"+Xa+"]",ym="(?:\\ud83c[\\udde6-\\uddff]){2}",_m="[\\ud800-\\udbff][\\udc00-\\udfff]",Nu="["+K7+"]",nT="\\u200d",rT="(?:"+J7+"|"+eT+")",MP="(?:"+Nu+"|"+eT+")",iT="(?:"+Em+"(?:d|ll|m|re|s|t|ve))?",aT="(?:"+Em+"(?:D|LL|M|RE|S|T|VE))?",oT=LP+"?",sT="["+Y7+"]?",FP="(?:"+nT+"(?:"+[tT,ym,_m].join("|")+")"+sT+oT+")*",PP="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",BP="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lT=sT+oT+FP,UP="(?:"+[DP,ym,_m].join("|")+")"+lT,$P="(?:"+[tT+of+"?",of,ym,_m,OP].join("|")+")",zP=RegExp(Em,"g"),HP=RegExp(of,"g"),Tm=RegExp(vm+"(?="+vm+")|"+$P+lT,"g"),jP=RegExp([Nu+"?"+J7+"+"+iT+"(?="+[Z7,Nu,"$"].join("|")+")",MP+"+"+aT+"(?="+[Z7,Nu+rT,"$"].join("|")+")",Nu+"?"+rT+"+"+iT,Nu+"+"+aT,BP,PP,Q7,UP].join("|"),"g"),GP=RegExp("["+nT+Xa+V7+Y7+"]"),VP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,WP=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qP=-1,En={};En[We]=En[at]=En[Qe]=En[Y]=En[se]=En[j]=En[$]=En[J]=En[be]=!0,En[Te]=En[K]=En[ue]=En[ne]=En[ye]=En[Le]=En[Xe]=En[Ve]=En[ot]=En[Ge]=En[U]=En[ke]=En[ve]=En[Se]=En[Ke]=!1;var gn={};gn[Te]=gn[K]=gn[ue]=gn[ye]=gn[ne]=gn[Le]=gn[We]=gn[at]=gn[Qe]=gn[Y]=gn[se]=gn[ot]=gn[Ge]=gn[U]=gn[ke]=gn[ve]=gn[Se]=gn[Me]=gn[j]=gn[$]=gn[J]=gn[be]=!0,gn[Xe]=gn[Ve]=gn[Ke]=!1;var KP={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},YP={"&":"&","<":"<",">":">",'"':""","'":"'"},XP={"&":"&","<":"<",">":">",""":'"',"'":"'"},ZP={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QP=parseFloat,JP=parseInt,uT=typeof ql=="object"&&ql&&ql.Object===Object&&ql,eB=typeof self=="object"&&self&&self.Object===Object&&self,hr=uT||eB||Function("return this")(),Sm=t&&!t.nodeType&&t,Cl=Sm&&!0&&e&&!e.nodeType&&e,cT=Cl&&Cl.exports===Sm,wm=cT&&uT.process,Wi=function(){try{var te=Cl&&Cl.require&&Cl.require("util").types;return te||wm&&wm.binding&&wm.binding("util")}catch{}}(),dT=Wi&&Wi.isArrayBuffer,pT=Wi&&Wi.isDate,fT=Wi&&Wi.isMap,hT=Wi&&Wi.isRegExp,gT=Wi&&Wi.isSet,mT=Wi&&Wi.isTypedArray;function Ti(te,_e,ge){switch(ge.length){case 0:return te.call(_e);case 1:return te.call(_e,ge[0]);case 2:return te.call(_e,ge[0],ge[1]);case 3:return te.call(_e,ge[0],ge[1],ge[2])}return te.apply(_e,ge)}function tB(te,_e,ge,et){for(var _t=-1,Qt=te==null?0:te.length;++_t-1}function Am(te,_e,ge){for(var et=-1,_t=te==null?0:te.length;++et<_t;)if(ge(_e,te[et]))return!0;return!1}function wn(te,_e){for(var ge=-1,et=te==null?0:te.length,_t=Array(et);++ge-1;);return ge}function wT(te,_e){for(var ge=te.length;ge--&&Ou(_e,te[ge],0)>-1;);return ge}function cB(te,_e){for(var ge=te.length,et=0;ge--;)te[ge]===_e&&++et;return et}var dB=Im(KP),pB=Im(YP);function fB(te){return"\\"+ZP[te]}function hB(te,_e){return te==null?n:te[_e]}function Du(te){return GP.test(te)}function gB(te){return VP.test(te)}function mB(te){for(var _e,ge=[];!(_e=te.next()).done;)ge.push(_e.value);return ge}function Dm(te){var _e=-1,ge=Array(te.size);return te.forEach(function(et,_t){ge[++_e]=[_t,et]}),ge}function AT(te,_e){return function(ge){return te(_e(ge))}}function bs(te,_e){for(var ge=-1,et=te.length,_t=0,Qt=[];++ge-1}function rU(l,d){var h=this.__data__,_=wf(h,l);return _<0?(++this.size,h.push([l,d])):h[_][1]=d,this}Ao.prototype.clear=JB,Ao.prototype.delete=eU,Ao.prototype.get=tU,Ao.prototype.has=nU,Ao.prototype.set=rU;function Co(l){var d=-1,h=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function Xi(l,d,h,_,x,F){var H,X=d&f,ae=d&m,we=d&g;if(h&&(H=x?h(l,_,x,F):h(l)),H!==n)return H;if(!In(l))return l;var Ce=Tt(l);if(Ce){if(H=s$(l),!X)return ai(l,H)}else{var Ie=Dr(l),Ye=Ie==Ve||Ie==dt;if(Ss(l))return sS(l,X);if(Ie==U||Ie==Te||Ye&&!x){if(H=ae||Ye?{}:CS(l),!X)return ae?XU(l,vU(H,l)):YU(l,PT(H,l))}else{if(!gn[Ie])return x?l:{};H=l$(l,Ie,X)}}F||(F=new wa);var st=F.get(l);if(st)return st;F.set(l,H),tw(l)?l.forEach(function(Et){H.add(Xi(Et,d,h,Et,l,F))}):JS(l)&&l.forEach(function(Et,Nt){H.set(Nt,Xi(Et,d,h,Nt,l,F))});var bt=we?ae?a5:i5:ae?si:or,At=Ce?n:bt(l);return qi(At||l,function(Et,Nt){At&&(Nt=Et,Et=l[Nt]),Ac(H,Nt,Xi(Et,d,h,Nt,l,F))}),H}function yU(l){var d=or(l);return function(h){return BT(h,l,d)}}function BT(l,d,h){var _=h.length;if(l==null)return!_;for(l=dn(l);_--;){var x=h[_],F=d[x],H=l[x];if(H===n&&!(x in l)||!F(H))return!1}return!0}function UT(l,d,h){if(typeof l!="function")throw new Ki(o);return Oc(function(){l.apply(n,h)},d)}function Cc(l,d,h,_){var x=-1,F=sf,H=!0,X=l.length,ae=[],we=d.length;if(!X)return ae;h&&(d=wn(d,Si(h))),_?(F=Am,H=!1):d.length>=i&&(F=vc,H=!1,d=new Il(d));e:for(;++xx?0:x+h),_=_===n||_>x?x:St(_),_<0&&(_+=x),_=h>_?0:rw(_);h<_;)l[h++]=d;return l}function zT(l,d){var h=[];return vs(l,function(_,x,F){d(_,x,F)&&h.push(_)}),h}function gr(l,d,h,_,x){var F=-1,H=l.length;for(h||(h=c$),x||(x=[]);++F0&&h(X)?d>1?gr(X,d-1,h,_,x):ms(x,X):_||(x[x.length]=X)}return x}var $m=fS(),HT=fS(!0);function Za(l,d){return l&&$m(l,d,or)}function zm(l,d){return l&&HT(l,d,or)}function Cf(l,d){return gs(d,function(h){return No(l[h])})}function Nl(l,d){d=_s(d,l);for(var h=0,_=d.length;l!=null&&h<_;)l=l[Ja(d[h++])];return h&&h==_?l:n}function jT(l,d,h){var _=d(l);return Tt(l)?_:ms(_,h(l))}function qr(l){return l==null?l===n?ze:pt:xl&&xl in dn(l)?i$(l):b$(l)}function Hm(l,d){return l>d}function SU(l,d){return l!=null&&rn.call(l,d)}function wU(l,d){return l!=null&&d in dn(l)}function AU(l,d,h){return l>=Or(d,h)&&l=120&&Ce.length>=120)?new Il(H&&Ce):n}Ce=l[0];var Ie=-1,Ye=X[0];e:for(;++Ie-1;)X!==l&&bf.call(X,ae,1),bf.call(l,ae,1);return l}function JT(l,d){for(var h=l?d.length:0,_=h-1;h--;){var x=d[h];if(h==_||x!==F){var F=x;Ro(x)?bf.call(l,x,1):Zm(l,x)}}return l}function Km(l,d){return l+yf(DT()*(d-l+1))}function BU(l,d,h,_){for(var x=-1,F=Zn(vf((d-l)/(h||1)),0),H=ge(F);F--;)H[_?F:++x]=l,l+=h;return H}function Ym(l,d){var h="";if(!l||d<1||d>V)return h;do d%2&&(h+=l),d=yf(d/2),d&&(l+=l);while(d);return h}function It(l,d){return p5(IS(l,d,li),l+"")}function UU(l){return FT(Gu(l))}function $U(l,d){var h=Gu(l);return Pf(h,Rl(d,0,h.length))}function Ic(l,d,h,_){if(!In(l))return l;d=_s(d,l);for(var x=-1,F=d.length,H=F-1,X=l;X!=null&&++xx?0:x+d),h=h>x?x:h,h<0&&(h+=x),x=d>h?0:h-d>>>0,d>>>=0;for(var F=ge(x);++_>>1,H=l[F];H!==null&&!Ai(H)&&(h?H<=d:H=i){var we=d?null:e$(l);if(we)return uf(we);H=!1,x=vc,ae=new Il}else ae=d?[]:X;e:for(;++_=_?l:Zi(l,d,h)}var oS=NB||function(l){return hr.clearTimeout(l)};function sS(l,d){if(d)return l.slice();var h=l.length,_=kT?kT(h):new l.constructor(h);return l.copy(_),_}function t5(l){var d=new l.constructor(l.byteLength);return new gf(d).set(new gf(l)),d}function VU(l,d){var h=d?t5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.byteLength)}function WU(l){var d=new l.constructor(l.source,qe.exec(l));return d.lastIndex=l.lastIndex,d}function qU(l){return wc?dn(wc.call(l)):{}}function lS(l,d){var h=d?t5(l.buffer):l.buffer;return new l.constructor(h,l.byteOffset,l.length)}function uS(l,d){if(l!==d){var h=l!==n,_=l===null,x=l===l,F=Ai(l),H=d!==n,X=d===null,ae=d===d,we=Ai(d);if(!X&&!we&&!F&&l>d||F&&H&&ae&&!X&&!we||_&&H&&ae||!h&&ae||!x)return 1;if(!_&&!F&&!we&&l=X)return ae;var we=h[_];return ae*(we=="desc"?-1:1)}}return l.index-d.index}function cS(l,d,h,_){for(var x=-1,F=l.length,H=h.length,X=-1,ae=d.length,we=Zn(F-H,0),Ce=ge(ae+we),Ie=!_;++X1?h[x-1]:n,H=x>2?h[2]:n;for(F=l.length>3&&typeof F=="function"?(x--,F):n,H&&Kr(h[0],h[1],H)&&(F=x<3?n:F,x=1),d=dn(d);++_-1?x[F?d[H]:H]:n}}function mS(l){return Io(function(d){var h=d.length,_=h,x=Yi.prototype.thru;for(l&&d.reverse();_--;){var F=d[_];if(typeof F!="function")throw new Ki(o);if(x&&!H&&Mf(F)=="wrapper")var H=new Yi([],!0)}for(_=H?_:h;++_1&&Ut.reverse(),Ce&&aeX))return!1;var we=F.get(l),Ce=F.get(d);if(we&&Ce)return we==d&&Ce==l;var Ie=-1,Ye=!0,st=h&b?new Il:n;for(F.set(l,d),F.set(d,l);++Ie1?"& ":"")+d[_],d=d.join(h>2?", ":" "),l.replace(fs,`{ +/* [wrapped with `+d+`] */ +`)}function c$(l){return Tt(l)||Ll(l)||!!(NT&&l&&l[NT])}function Ro(l,d){var h=typeof l;return d=d??V,!!d&&(h=="number"||h!="symbol"&&ir.test(l))&&l>-1&&l%1==0&&l0){if(++d>=z)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Pf(l,d){var h=-1,_=l.length,x=_-1;for(d=d===n?_:d;++h1?l[d-1]:n;return h=typeof h=="function"?(l.pop(),h):n,zS(l,h)});function HS(l){var d=M(l);return d.__chain__=!0,d}function _z(l,d){return d(l),l}function Bf(l,d){return d(l)}var Tz=Io(function(l){var d=l.length,h=d?l[0]:0,_=this.__wrapped__,x=function(F){return Um(F,l)};return d>1||this.__actions__.length||!(_ instanceof Ft)||!Ro(h)?this.thru(x):(_=_.slice(h,+h+(d?1:0)),_.__actions__.push({func:Bf,args:[x],thisArg:n}),new Yi(_,this.__chain__).thru(function(F){return d&&!F.length&&F.push(n),F}))});function Sz(){return HS(this)}function wz(){return new Yi(this.value(),this.__chain__)}function Az(){this.__values__===n&&(this.__values__=nw(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function Cz(){return this}function xz(l){for(var d,h=this;h instanceof Sf;){var _=MS(h);_.__index__=0,_.__values__=n,d?x.__wrapped__=_:d=_;var x=_;h=h.__wrapped__}return x.__wrapped__=l,d}function kz(){var l=this.__wrapped__;if(l instanceof Ft){var d=l;return this.__actions__.length&&(d=new Ft(this)),d=d.reverse(),d.__actions__.push({func:Bf,args:[f5],thisArg:n}),new Yi(d,this.__chain__)}return this.thru(f5)}function Iz(){return iS(this.__wrapped__,this.__actions__)}var Rz=Rf(function(l,d,h){rn.call(l,h)?++l[h]:xo(l,h,1)});function Nz(l,d,h){var _=Tt(l)?bT:_U;return h&&Kr(l,d,h)&&(d=n),_(l,mt(d,3))}function Oz(l,d){var h=Tt(l)?gs:zT;return h(l,mt(d,3))}var Dz=gS(FS),Lz=gS(PS);function Mz(l,d){return gr(Uf(l,d),1)}function Fz(l,d){return gr(Uf(l,d),Z)}function Pz(l,d,h){return h=h===n?1:St(h),gr(Uf(l,d),h)}function jS(l,d){var h=Tt(l)?qi:vs;return h(l,mt(d,3))}function GS(l,d){var h=Tt(l)?nB:$T;return h(l,mt(d,3))}var Bz=Rf(function(l,d,h){rn.call(l,h)?l[h].push(d):xo(l,h,[d])});function Uz(l,d,h,_){l=oi(l)?l:Gu(l),h=h&&!_?St(h):0;var x=l.length;return h<0&&(h=Zn(x+h,0)),Gf(l)?h<=x&&l.indexOf(d,h)>-1:!!x&&Ou(l,d,h)>-1}var $z=It(function(l,d,h){var _=-1,x=typeof d=="function",F=oi(l)?ge(l.length):[];return vs(l,function(H){F[++_]=x?Ti(d,H,h):xc(H,d,h)}),F}),zz=Rf(function(l,d,h){xo(l,h,d)});function Uf(l,d){var h=Tt(l)?wn:qT;return h(l,mt(d,3))}function Hz(l,d,h,_){return l==null?[]:(Tt(d)||(d=d==null?[]:[d]),h=_?n:h,Tt(h)||(h=h==null?[]:[h]),ZT(l,d,h))}var jz=Rf(function(l,d,h){l[h?0:1].push(d)},function(){return[[],[]]});function Gz(l,d,h){var _=Tt(l)?Cm:_T,x=arguments.length<3;return _(l,mt(d,4),h,x,vs)}function Vz(l,d,h){var _=Tt(l)?rB:_T,x=arguments.length<3;return _(l,mt(d,4),h,x,$T)}function Wz(l,d){var h=Tt(l)?gs:zT;return h(l,Hf(mt(d,3)))}function qz(l){var d=Tt(l)?FT:UU;return d(l)}function Kz(l,d,h){(h?Kr(l,d,h):d===n)?d=1:d=St(d);var _=Tt(l)?mU:$U;return _(l,d)}function Yz(l){var d=Tt(l)?bU:HU;return d(l)}function Xz(l){if(l==null)return 0;if(oi(l))return Gf(l)?Lu(l):l.length;var d=Dr(l);return d==ot||d==ve?l.size:Vm(l).length}function Zz(l,d,h){var _=Tt(l)?xm:jU;return h&&Kr(l,d,h)&&(d=n),_(l,mt(d,3))}var Qz=It(function(l,d){if(l==null)return[];var h=d.length;return h>1&&Kr(l,d[0],d[1])?d=[]:h>2&&Kr(d[0],d[1],d[2])&&(d=[d[0]]),ZT(l,gr(d,1),[])}),$f=OB||function(){return hr.Date.now()};function Jz(l,d){if(typeof d!="function")throw new Ki(o);return l=St(l),function(){if(--l<1)return d.apply(this,arguments)}}function VS(l,d,h){return d=h?n:d,d=l&&d==null?l.length:d,ko(l,R,n,n,n,n,d)}function WS(l,d){var h;if(typeof d!="function")throw new Ki(o);return l=St(l),function(){return--l>0&&(h=d.apply(this,arguments)),l<=1&&(d=n),h}}var g5=It(function(l,d,h){var _=T;if(h.length){var x=bs(h,Hu(g5));_|=D}return ko(l,_,d,h,x)}),qS=It(function(l,d,h){var _=T|v;if(h.length){var x=bs(h,Hu(qS));_|=D}return ko(d,_,l,h,x)});function KS(l,d,h){d=h?n:d;var _=ko(l,w,n,n,n,n,n,d);return _.placeholder=KS.placeholder,_}function YS(l,d,h){d=h?n:d;var _=ko(l,A,n,n,n,n,n,d);return _.placeholder=YS.placeholder,_}function XS(l,d,h){var _,x,F,H,X,ae,we=0,Ce=!1,Ie=!1,Ye=!0;if(typeof l!="function")throw new Ki(o);d=Ji(d)||0,In(h)&&(Ce=!!h.leading,Ie="maxWait"in h,F=Ie?Zn(Ji(h.maxWait)||0,d):F,Ye="trailing"in h?!!h.trailing:Ye);function st(zn){var Ca=_,Do=x;return _=x=n,we=zn,H=l.apply(Do,Ca),H}function bt(zn){return we=zn,X=Oc(Nt,d),Ce?st(zn):H}function At(zn){var Ca=zn-ae,Do=zn-we,gw=d-Ca;return Ie?Or(gw,F-Do):gw}function Et(zn){var Ca=zn-ae,Do=zn-we;return ae===n||Ca>=d||Ca<0||Ie&&Do>=F}function Nt(){var zn=$f();if(Et(zn))return Ut(zn);X=Oc(Nt,At(zn))}function Ut(zn){return X=n,Ye&&_?st(zn):(_=x=n,H)}function Ci(){X!==n&&oS(X),we=0,_=ae=x=X=n}function Yr(){return X===n?H:Ut($f())}function xi(){var zn=$f(),Ca=Et(zn);if(_=arguments,x=this,ae=zn,Ca){if(X===n)return bt(ae);if(Ie)return oS(X),X=Oc(Nt,d),st(ae)}return X===n&&(X=Oc(Nt,d)),H}return xi.cancel=Ci,xi.flush=Yr,xi}var eH=It(function(l,d){return UT(l,1,d)}),tH=It(function(l,d,h){return UT(l,Ji(d)||0,h)});function nH(l){return ko(l,W)}function zf(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Ki(o);var h=function(){var _=arguments,x=d?d.apply(this,_):_[0],F=h.cache;if(F.has(x))return F.get(x);var H=l.apply(this,_);return h.cache=F.set(x,H)||F,H};return h.cache=new(zf.Cache||Co),h}zf.Cache=Co;function Hf(l){if(typeof l!="function")throw new Ki(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function rH(l){return WS(2,l)}var iH=GU(function(l,d){d=d.length==1&&Tt(d[0])?wn(d[0],Si(mt())):wn(gr(d,1),Si(mt()));var h=d.length;return It(function(_){for(var x=-1,F=Or(_.length,h);++x=d}),Ll=GT(function(){return arguments}())?GT:function(l){return Ln(l)&&rn.call(l,"callee")&&!RT.call(l,"callee")},Tt=ge.isArray,vH=dT?Si(dT):xU;function oi(l){return l!=null&&jf(l.length)&&!No(l)}function $n(l){return Ln(l)&&oi(l)}function yH(l){return l===!0||l===!1||Ln(l)&&qr(l)==ne}var Ss=LB||x5,_H=pT?Si(pT):kU;function TH(l){return Ln(l)&&l.nodeType===1&&!Dc(l)}function SH(l){if(l==null)return!0;if(oi(l)&&(Tt(l)||typeof l=="string"||typeof l.splice=="function"||Ss(l)||ju(l)||Ll(l)))return!l.length;var d=Dr(l);if(d==ot||d==ve)return!l.size;if(Nc(l))return!Vm(l).length;for(var h in l)if(rn.call(l,h))return!1;return!0}function wH(l,d){return kc(l,d)}function AH(l,d,h){h=typeof h=="function"?h:n;var _=h?h(l,d):n;return _===n?kc(l,d,n,h):!!_}function b5(l){if(!Ln(l))return!1;var d=qr(l);return d==Xe||d==Re||typeof l.message=="string"&&typeof l.name=="string"&&!Dc(l)}function CH(l){return typeof l=="number"&&OT(l)}function No(l){if(!In(l))return!1;var d=qr(l);return d==Ve||d==dt||d==xe||d==pe}function QS(l){return typeof l=="number"&&l==St(l)}function jf(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=V}function In(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ln(l){return l!=null&&typeof l=="object"}var JS=fT?Si(fT):RU;function xH(l,d){return l===d||Gm(l,d,s5(d))}function kH(l,d,h){return h=typeof h=="function"?h:n,Gm(l,d,s5(d),h)}function IH(l){return ew(l)&&l!=+l}function RH(l){if(f$(l))throw new _t(a);return VT(l)}function NH(l){return l===null}function OH(l){return l==null}function ew(l){return typeof l=="number"||Ln(l)&&qr(l)==Ge}function Dc(l){if(!Ln(l)||qr(l)!=U)return!1;var d=mf(l);if(d===null)return!0;var h=rn.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&pf.call(h)==kB}var E5=hT?Si(hT):NU;function DH(l){return QS(l)&&l>=-V&&l<=V}var tw=gT?Si(gT):OU;function Gf(l){return typeof l=="string"||!Tt(l)&&Ln(l)&&qr(l)==Se}function Ai(l){return typeof l=="symbol"||Ln(l)&&qr(l)==Me}var ju=mT?Si(mT):DU;function LH(l){return l===n}function MH(l){return Ln(l)&&Dr(l)==Ke}function FH(l){return Ln(l)&&qr(l)==jt}var PH=Lf(Wm),BH=Lf(function(l,d){return l<=d});function nw(l){if(!l)return[];if(oi(l))return Gf(l)?Sa(l):ai(l);if(yc&&l[yc])return mB(l[yc]());var d=Dr(l),h=d==ot?Dm:d==ve?uf:Gu;return h(l)}function Oo(l){if(!l)return l===0?l:0;if(l=Ji(l),l===Z||l===-Z){var d=l<0?-1:1;return d*ce}return l===l?l:0}function St(l){var d=Oo(l),h=d%1;return d===d?h?d-h:d:0}function rw(l){return l?Rl(St(l),0,me):0}function Ji(l){if(typeof l=="number")return l;if(Ai(l))return N;if(In(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=In(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=TT(l);var h=Be.test(l);return h||ln.test(l)?JP(l.slice(2),h?2:8):ee.test(l)?N:+l}function iw(l){return Qa(l,si(l))}function UH(l){return l?Rl(St(l),-V,V):l===0?l:0}function Jt(l){return l==null?"":wi(l)}var $H=$u(function(l,d){if(Nc(d)||oi(d)){Qa(d,or(d),l);return}for(var h in d)rn.call(d,h)&&Ac(l,h,d[h])}),aw=$u(function(l,d){Qa(d,si(d),l)}),Vf=$u(function(l,d,h,_){Qa(d,si(d),l,_)}),zH=$u(function(l,d,h,_){Qa(d,or(d),l,_)}),HH=Io(Um);function jH(l,d){var h=Uu(l);return d==null?h:PT(h,d)}var GH=It(function(l,d){l=dn(l);var h=-1,_=d.length,x=_>2?d[2]:n;for(x&&Kr(d[0],d[1],x)&&(_=1);++h<_;)for(var F=d[h],H=si(F),X=-1,ae=H.length;++X1),F}),Qa(l,a5(l),h),_&&(h=Xi(h,f|m|g,t$));for(var x=d.length;x--;)Zm(h,d[x]);return h});function lj(l,d){return sw(l,Hf(mt(d)))}var uj=Io(function(l,d){return l==null?{}:FU(l,d)});function sw(l,d){if(l==null)return{};var h=wn(a5(l),function(_){return[_]});return d=mt(d),QT(l,h,function(_,x){return d(_,x[0])})}function cj(l,d,h){d=_s(d,l);var _=-1,x=d.length;for(x||(x=1,l=n);++_d){var _=l;l=d,d=_}if(h||l%1||d%1){var x=DT();return Or(l+x*(d-l+QP("1e-"+((x+"").length-1))),d)}return Km(l,d)}var _j=zu(function(l,d,h){return d=d.toLowerCase(),l+(h?cw(d):d)});function cw(l){return _5(Jt(l).toLowerCase())}function dw(l){return l=Jt(l),l&&l.replace(ar,dB).replace(HP,"")}function Tj(l,d,h){l=Jt(l),d=wi(d);var _=l.length;h=h===n?_:Rl(St(h),0,_);var x=h;return h-=d.length,h>=0&&l.slice(h,x)==d}function Sj(l){return l=Jt(l),l&&Zt.test(l)?l.replace(Ze,pB):l}function wj(l){return l=Jt(l),l&&ii.test(l)?l.replace(Ta,"\\$&"):l}var Aj=zu(function(l,d,h){return l+(h?"-":"")+d.toLowerCase()}),Cj=zu(function(l,d,h){return l+(h?" ":"")+d.toLowerCase()}),xj=hS("toLowerCase");function kj(l,d,h){l=Jt(l),d=St(d);var _=d?Lu(l):0;if(!d||_>=d)return l;var x=(d-_)/2;return Df(yf(x),h)+l+Df(vf(x),h)}function Ij(l,d,h){l=Jt(l),d=St(d);var _=d?Lu(l):0;return d&&_>>0,h?(l=Jt(l),l&&(typeof d=="string"||d!=null&&!E5(d))&&(d=wi(d),!d&&Du(l))?Ts(Sa(l),0,h):l.split(d,h)):[]}var Fj=zu(function(l,d,h){return l+(h?" ":"")+_5(d)});function Pj(l,d,h){return l=Jt(l),h=h==null?0:Rl(St(h),0,l.length),d=wi(d),l.slice(h,h+d.length)==d}function Bj(l,d,h){var _=M.templateSettings;h&&Kr(l,d,h)&&(d=n),l=Jt(l),d=Vf({},d,_,_S);var x=Vf({},d.imports,_.imports,_S),F=or(x),H=Om(x,F),X,ae,we=0,Ce=d.interpolate||Yn,Ie="__p += '",Ye=Lm((d.escape||Yn).source+"|"+Ce.source+"|"+(Ce===Yt?Al:Yn).source+"|"+(d.evaluate||Yn).source+"|$","g"),st="//# sourceURL="+(rn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qP+"]")+` +`;l.replace(Ye,function(Et,Nt,Ut,Ci,Yr,xi){return Ut||(Ut=Ci),Ie+=l.slice(we,xi).replace(wo,fB),Nt&&(X=!0,Ie+=`' + +__e(`+Nt+`) + +'`),Yr&&(ae=!0,Ie+=`'; +`+Yr+`; +__p += '`),Ut&&(Ie+=`' + +((__t = (`+Ut+`)) == null ? '' : __t) + +'`),we=xi+Et.length,Et}),Ie+=`'; +`;var bt=rn.call(d,"variable")&&d.variable;if(!bt)Ie=`with (obj) { +`+Ie+` +} +`;else if(Rr.test(bt))throw new _t(s);Ie=(ae?Ie.replace(Fe,""):Ie).replace(De,"$1").replace(tt,"$1;"),Ie="function("+(bt||"obj")+`) { +`+(bt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Ie+`return __p +}`;var At=fw(function(){return Qt(F,st+"return "+Ie).apply(n,H)});if(At.source=Ie,b5(At))throw At;return At}function Uj(l){return Jt(l).toLowerCase()}function $j(l){return Jt(l).toUpperCase()}function zj(l,d,h){if(l=Jt(l),l&&(h||d===n))return TT(l);if(!l||!(d=wi(d)))return l;var _=Sa(l),x=Sa(d),F=ST(_,x),H=wT(_,x)+1;return Ts(_,F,H).join("")}function Hj(l,d,h){if(l=Jt(l),l&&(h||d===n))return l.slice(0,CT(l)+1);if(!l||!(d=wi(d)))return l;var _=Sa(l),x=wT(_,Sa(d))+1;return Ts(_,0,x).join("")}function jj(l,d,h){if(l=Jt(l),l&&(h||d===n))return l.replace(Ir,"");if(!l||!(d=wi(d)))return l;var _=Sa(l),x=ST(_,Sa(d));return Ts(_,x).join("")}function Gj(l,d){var h=P,_=Q;if(In(d)){var x="separator"in d?d.separator:x;h="length"in d?St(d.length):h,_="omission"in d?wi(d.omission):_}l=Jt(l);var F=l.length;if(Du(l)){var H=Sa(l);F=H.length}if(h>=F)return l;var X=h-Lu(_);if(X<1)return _;var ae=H?Ts(H,0,X).join(""):l.slice(0,X);if(x===n)return ae+_;if(H&&(X+=ae.length-X),E5(x)){if(l.slice(X).search(x)){var we,Ce=ae;for(x.global||(x=Lm(x.source,Jt(qe.exec(x))+"g")),x.lastIndex=0;we=x.exec(Ce);)var Ie=we.index;ae=ae.slice(0,Ie===n?X:Ie)}}else if(l.indexOf(wi(x),X)!=X){var Ye=ae.lastIndexOf(x);Ye>-1&&(ae=ae.slice(0,Ye))}return ae+_}function Vj(l){return l=Jt(l),l&&Rt.test(l)?l.replace(Je,yB):l}var Wj=zu(function(l,d,h){return l+(h?" ":"")+d.toUpperCase()}),_5=hS("toUpperCase");function pw(l,d,h){return l=Jt(l),d=h?n:d,d===n?gB(l)?SB(l):oB(l):l.match(d)||[]}var fw=It(function(l,d){try{return Ti(l,n,d)}catch(h){return b5(h)?h:new _t(h)}}),qj=Io(function(l,d){return qi(d,function(h){h=Ja(h),xo(l,h,g5(l[h],l))}),l});function Kj(l){var d=l==null?0:l.length,h=mt();return l=d?wn(l,function(_){if(typeof _[1]!="function")throw new Ki(o);return[h(_[0]),_[1]]}):[],It(function(_){for(var x=-1;++xV)return[];var h=me,_=Or(l,me);d=mt(d),l-=me;for(var x=Nm(_,d);++h0||d<0)?new Ft(h):(l<0?h=h.takeRight(-l):l&&(h=h.drop(l)),d!==n&&(d=St(d),h=d<0?h.dropRight(-d):h.take(d-l)),h)},Ft.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Ft.prototype.toArray=function(){return this.take(me)},Za(Ft.prototype,function(l,d){var h=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),x=M[_?"take"+(d=="last"?"Right":""):d],F=_||/^find/.test(d);x&&(M.prototype[d]=function(){var H=this.__wrapped__,X=_?[1]:arguments,ae=H instanceof Ft,we=X[0],Ce=ae||Tt(H),Ie=function(Nt){var Ut=x.apply(M,ms([Nt],X));return _&&Ye?Ut[0]:Ut};Ce&&h&&typeof we=="function"&&we.length!=1&&(ae=Ce=!1);var Ye=this.__chain__,st=!!this.__actions__.length,bt=F&&!Ye,At=ae&&!st;if(!F&&Ce){H=At?H:new Ft(this);var Et=l.apply(H,X);return Et.__actions__.push({func:Bf,args:[Ie],thisArg:n}),new Yi(Et,Ye)}return bt&&At?l.apply(this,X):(Et=this.thru(Ie),bt?_?Et.value()[0]:Et.value():Et)})}),qi(["pop","push","shift","sort","splice","unshift"],function(l){var d=cf[l],h=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var x=arguments;if(_&&!this.__chain__){var F=this.value();return d.apply(Tt(F)?F:[],x)}return this[h](function(H){return d.apply(Tt(H)?H:[],x)})}}),Za(Ft.prototype,function(l,d){var h=M[d];if(h){var _=h.name+"";rn.call(Bu,_)||(Bu[_]=[]),Bu[_].push({name:d,func:h})}}),Bu[Nf(n,v).name]=[{name:"wrapper",func:n}],Ft.prototype.clone=VB,Ft.prototype.reverse=WB,Ft.prototype.value=qB,M.prototype.at=Tz,M.prototype.chain=Sz,M.prototype.commit=wz,M.prototype.next=Az,M.prototype.plant=xz,M.prototype.reverse=kz,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Iz,M.prototype.first=M.prototype.head,yc&&(M.prototype[yc]=Cz),M},Mu=wB();Cl?((Cl.exports=Mu)._=Mu,Sm._=Mu):hr._=Mu}).call(ql)})(Lg,Lg.exports);var Qme=Lg.exports;const qs=Hi(Qme);function ro(e,t){const n=qs.cloneDeep(e);for(const r in t)typeof t[r]=="function"?qs.updateWith(n,r,t[r]):qs.updateWith(n,r,i=>t[r]);return n}const Ec={};Ec["Requires API Key"]="#FF0000";Ec.Local="#00bb00";Ec["Open-Source"]="#0033FF";Ec.Free="#ffff00";const Jme={inputType:"number",key:"context_length",label:"Context Length",defaultValue:2048,required:!1},e5e={inputType:"number",key:"temperature",label:"Temperature",defaultValue:void 0,required:!1,min:0,max:1,step:.01},t5e={inputType:"number",key:"top_p",label:"Top-P",defaultValue:void 0,required:!1,min:0,max:1,step:.01},n5e={inputType:"number",key:"top_k",label:"Top-K",defaultValue:void 0,required:!1,min:0,max:1,step:.01},r5e={inputType:"number",key:"presence_penalty",label:"Presence Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},i5e={inputType:"number",key:"frequency_penalty",label:"Frequency Penalty",defaultValue:void 0,required:!1,min:0,max:1,step:.01},Ra=[Jme,e5e,n5e,t5e,r5e,i5e],fR={inputType:"text",key:"server_url",label:"Server URL",placeholder:"e.g. http://localhost:8080",required:!1},T9={title:"CodeLlama Instruct",description:"A model from Meta, fine-tuned for code generation and conversation",refUrl:"",params:{title:"CodeLlama-7b-Instruct",model:"codellama:7b-instruct",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"codellama:7b-instruct",title:"CodeLlama-7b-Instruct"},"13b":{model:"codellama:13b-instruct",title:"CodeLlama-13b-Instruct"},"34b":{model:"codellama:34b-instruct",title:"CodeLlama-34b-Instruct"}}}]},S9={title:"Llama2 Chat",description:"The latest Llama model from Meta, fine-tuned for chat",refUrl:"",params:{title:"Llama2-7b-Chat",model:"llama2:7b-chat",context_length:2048,template_messages:"llama2_template_messages"},icon:"meta.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"llama2:7b-chat",title:"Llama2-7b-Chat"},"13b":{model:"llama2:13b-chat",title:"Llama2-13b-Chat"},"34b":{model:"llama2:34b-chat",title:"Llama2-34b-Chat"}}}]},w9={title:"WizardCoder",description:"A CodeLlama-based code generation model from WizardLM, focused on Python",refUrl:"",params:{title:"WizardCoder-7b-Python",model:"wizardcoder:7b-python",context_length:2048,template_messages:"template_alpaca_messages",prompt_templates:{edit:"alpaca_edit_prompt"}},icon:"wizardlm.png",dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"wizardcoder:7b-python",title:"WizardCoder-7b-Python"},"13b":{model:"wizardcoder:13b-python",title:"WizardCoder-13b-Python"},"34b":{model:"wizardcoder:34b-python",title:"WizardCoder-34b-Python"}}}]},wP={title:"Phind CodeLlama (34b)",description:"A finetune of CodeLlama by Phind",params:{title:"Phind CodeLlama",model:"phind-codellama",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}}},A9={title:"Mistral (7b)",description:"A 7b parameter base model created by Mistral AI, very competent for code generation and other tasks",params:{title:"Mistral",model:"mistral",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},icon:"mistral.png"},AP={title:"SQLCoder",description:"A finetune of StarCoder by Defog.ai, focused specifically on SQL",params:{title:"SQLCoder",model:"sqlcoder",context_length:2048,template_messages:"sqlcoder_template_messages",prompt_templates:{edit:"codellama_edit_prompt"}},dimensions:[{name:"Parameter Count",description:"The number of parameters in the model",options:{"7b":{model:"sqlcoder:7b",title:"SQLCoder-7b"},"13b":{model:"sqlcoder:15b",title:"SQLCoder-15b"}}}]},a5e={title:"CodeUp (13b)",description:"An open-source coding model based on Llama2",params:{title:"CodeUp",model:"codeup",context_length:2048,template_messages:"llama2_template_messages",prompt_templates:{edit:"alpaca_edit_prompt"}}},Ju=[T9,S9,w9,wP,AP,A9,a5e],hR={title:"GPT-4",description:"The latest model from OpenAI",params:{model:"gpt-4",context_length:8096,api_key:"",title:"GPT-4"}},gR={title:"GPT-3.5-Turbo",description:"A faster, cheaper OpenAI model with slightly lower capabilities",params:{model:"gpt-3.5-turbo",context_length:8096,title:"GPT-3.5-Turbo",api_key:""}},o5e={"codellama:7b-instruct":"meta/codellama-7b-instruct:6527b83e01e41412db37de5110a8670e3701ee95872697481a355e05ce12af0e","codellama:13b-instruct":"meta/codellama-13b-instruct:1f01a52ff933873dff339d5fb5e1fd6f24f77456836f514fa05e91c1a42699c7","codellama:34b-instruct":"meta/codellama-34b-instruct:8281a5c610f6e88237ff3ddaf3c33b56f60809e2bdd19fbec2fda742aa18167e","llama2:7b-chat":"meta/llama-2-7b-chat:8e6975e5ed6174911a6ff3d60540dfd4844201974602551e10e9e87ab143d81e","llama2:13b-chat":"meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"};function mR(e){return o5e[e]||e}const CP={openai:{title:"OpenAI",class:"OpenAI",description:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model",longDescription:"Use gpt-4, gpt-3.5-turbo, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.",icon:"openai.png",tags:["Requires API Key"],packages:[hR,gR],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your OpenAI API key",required:!0},...Ra]},anthropic:{title:"Anthropic",class:"AnthropicLLM",description:"Claude-2 is a highly capable model with a 100k context length",icon:"anthropic.png",tags:["Requires API Key"],longDescription:"To get started with Anthropic models, you first need to sign up for the open beta [here](https://claude.ai/login) to obtain an API key.",collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Anthropic API key",required:!0},...Ra],packages:[{title:"Claude-2",description:"A highly capable model with a 100k context length",params:{model:"claude-2",context_length:1e5,title:"Claude-2"}}]},ollama:{title:"Ollama",class:"Ollama",description:"One of the fastest ways to get started with local models on Mac or Linux",longDescription:'To get started with Ollama, follow these steps:\n1. Download from [ollama.ai](https://ollama.ai/) and open the application\n2. Open a terminal and run `ollama pull `. Example model names are `codellama:7b-instruct` or `llama2:7b-text`. You can find the full list [here](https://ollama.ai/library).\n3. Make sure that the model name used in step 2 is the same as the one in config.py (e.g. `model="codellama:7b-instruct"`)\n4. Once the model has finished downloading, you can start asking questions through Continue.',icon:"ollama.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},together:{title:"TogetherAI",class:"TogetherLLM",description:"Use the TogetherAI API for extremely fast streaming of open-source models",icon:"together.png",longDescription:`Together is a hosted service that provides extremely fast streaming of open-source language models. To get started with Together: +1. Obtain an API key from [here](https://together.ai) +2. Paste below +3. Select a model preset`,tags:["Requires API Key","Open-Source"],params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your TogetherAI API key",required:!0},...Ra],packages:[ro(S9,{"dimensions[0].options":e=>qs.mapValues(e,t=>qs.assign({},t,{model:"togethercomputer/"+t.model.replace("llama2","llama-2").replace(":","-")}))}),ro(T9,{"dimensions[0].options":e=>qs.mapValues(e,t=>qs.assign({},t,{model:"togethercomputer/"+t.model.replace("codellama","CodeLlama").replace(":","-").replace("instruct","Instruct")}))}),ro(w9,{"params.model":"WizardLM/WizardCoder-15B-V1.0","params.title":"WizardCoder-15b","dimensions[0].options":{"15b":{model:"WizardLM/WizardCoder-15B-V1.0",title:"WizardCoder-15b"},"34b (Python)":{model:"WizardLM/WizardCoder-Python-34B-V1.0",title:"WizardCoder-34b-Python"}}}),ro(wP,{"params.model":"Phind/Phind-CodeLlama-34B-Python-v1"}),ro(A9,{"params.model":"mistralai/Mistral-7B-Instruct-v0.1"})].map(e=>(e.params.context_length=4096,e))},lmstudio:{title:"LM Studio",class:"GGML",description:"One of the fastest ways to get started with local models on Mac or Windows",longDescription:`LMStudio provides a professional and well-designed GUI for exploring, configuring, and serving LLMs. It is available on both Mac and Windows. To get started: +1. Download from [lmstudio.ai](https://lmstudio.ai/) and open the application +2. Search for and download the desired model from the home screen of LMStudio. +3. In the left-bar, click the '<->' icon to open the Local Inference Server and press 'Start Server'. +4. Once your model is loaded and the server has started, you can begin using Continue.`,icon:"lmstudio.png",tags:["Local","Open-Source"],params:{server_url:"http://localhost:1234"},packages:Ju,collectInputFor:[...Ra]},replicate:{title:"Replicate",class:"ReplicateLLM",description:"Use the Replicate API to run open-source models",longDescription:`Replicate is a hosted service that makes it easy to run ML models. To get started with Replicate: +1. Obtain an API key from [here](https://replicate.com) +2. Paste below +3. Select a model preset`,params:{api_key:""},collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your Replicate API key",required:!0},...Ra],icon:"replicate.png",tags:["Requires API Key","Open-Source"],packages:[...[T9,S9].map(e=>e.title==="Llama2 Chat"?ro(e,{"dimensions[0].options.34b":void 0,"dimensions[0].options.70b":{model:"meta/llama-2-70b-chat:02e509c789964a7ea8736978a43525956ef40397be9033abf9fd2badfe68c9e3",title:"Llama2-70b-Chat"}}):e).map(e=>ro(e,{"params.model":t=>mR(t),"dimensions[0].options":t=>{var r;const n={};for(const i in t)n[i]={...t[i],model:mR((r=t[i])==null?void 0:r.model)};return n}})),ro(w9,{title:"WizardCoder (15b)","params.model":"andreasjansson/wizardcoder-python-34b-v1-gguf:67eed332a5389263b8ede41be3ee7dc119fa984e2bde287814c4abed19a45e54",dimensions:void 0}),ro(AP,{dimensions:void 0,title:"SQLCoder (15b)","params.model":"gregwdata/defog-sqlcoder-q8:0a9abc0d143072fd5d8920ad90b8fbaafaf16b10ffdad24bd897b5bffacfce0b"}),ro(A9,{"params.model":"a16z-infra/mistral-7b-instruct-v0.1:83b6a56e7c828e667f21fd596c338fd4f0039b46bcfa18d973e8e70e455fda70"})]},llamacpp:{title:"llama.cpp",class:"LlamaCpp",description:"If you are running the llama.cpp server from source",longDescription:"llama.cpp comes with a [built-in server](https://github.com/ggerganov/llama.cpp/tree/master/examples/server#llamacppexampleserver) that can be run from source. To do this:\n \n1. Clone the repository with `git clone https://github.com/ggerganov/llama.cpp`.\n2. `cd llama.cpp`\n3. Download the model you'd like to use and place it in the `llama.cpp/models` directory (the best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke))\n4. Run the llama.cpp server with the command below (replacing with the model you downloaded):\n\n```shell\n.\\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models/codellama-7b-instruct.Q8_0.gguf\n```\n\nAfter it's up and running, you can start using Continue.",icon:"llamacpp.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},textgenwebui:{title:"text-generation-webui",class:"TextGenWebUI",description:"A popular open-source front-end for serving LLMs locally",longDescription:'text-generation-webui is a comprehensive, open-source language model UI and local server. You can also set it up with an [OpenAI-compatible server extension](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#an-openedai-api-openai-like), but this model provider is made to interface with the built-in server, which has a different format. To setup the text-generation-webui server, take the following steps:\n\n1. Clone the repository: `git clone https://github.com/oobabooga/text-generation-webui/tree/main`\n2. Change into the directory: `cd text-generation-webui`\n3. Run the one-click installer script for your operating system, using the --api flag:\n - Mac: `sh start_macos.sh --api`\n - Linux: `sh start_linux.sh --api`\n - Windows: `. start_windows.bat --api`\n - WSL: `. start_wsl.bat --api`\n4. Find a model to run and download its weights into the folder `text-generation-webui/models`. The best place to find models is [The Bloke on HuggingFace](https://huggingface.co/TheBloke)\n5. Navigate to [the UI](http://127.0.0.1:7860), click the "Model" tab, and load the model you\'ve downloaded\n6. Once the model is loaded, you can start using Continue',icon:void 0,tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra]},palm:{title:"Google PaLM API",class:"GooglePaLMAPI",description:"Try out the Google PaLM API, which is currently in public preview, using an API key from Google Makersuite",longDescription:`To get started with Google Makersuite, obtain your API key from [here](https://developers.generativeai.google/products/makersuite) and paste it below. +> Note: Google's PaLM language models do not support streaming, so the response will appear all at once after a few seconds.`,icon:"google-palm.png",tags:["Requires API Key"],collectInputFor:[{inputType:"text",key:"api_key",label:"API Key",placeholder:"Enter your MakerSpace API key",required:!0}],packages:[{title:"chat-bison-001",description:"Google PaLM's chat-bison-001 model, fine-tuned for chatting about code",params:{model:"chat-bison-001",context_length:8e3}}]},hftgi:{title:"HuggingFace TGI",class:"HuggingFaceTGI",description:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people",longDescription:"HuggingFace Text Generation Inference is an advanced, highly-performant option for serving open-source models to multiple people. To get started, follow the [Quick Tour](https://huggingface.co/docs/text-generation-inference/quicktour) on their website to set up the Docker container. Make sure to enter the server URL below that corresponds to the host and port you set up for the Docker container.",icon:"hf.png",tags:["Local","Open-Source"],packages:Ju,collectInputFor:[...Ra,{...fR,defaultValue:"http://localhost:8080"}]},ggml:{title:"Other OpenAI-compatible API",class:"GGML",description:"If you are using any other OpenAI-compatible API, for example text-gen-webui, FastChat, LocalAI, or llama-cpp-python, you can simply enter your server URL",longDescription:`If you are using any other OpenAI-compatible API, you can simply enter your server URL. If you still need to set up your model server, you can follow a guide below: + +- [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation) +- [LocalAI](https://localai.io/basics/getting_started/) +- [llama-cpp-python](https://github.com/continuedev/ggml-server-example) +- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)`,params:{server_url:""},collectInputFor:[{...fR,defaultValue:"http://localhost:8000"},...Ra],icon:"openai.png",tags:["Local","Open-Source"],packages:Ju},freetrial:{title:"GPT-4 limited free trial",class:"OpenAIFreeTrial",description:"New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key",longDescription:'New users can try out Continue for free using a proxy server that securely makes calls to OpenAI using our API key. If you are ready to use your own API key or have used all 250 free uses, you can enter your API key in config.py where it says `api_key=""` or select another model provider.',icon:"openai.png",tags:["Free"],packages:[hR,gR],collectInputFor:[...Ra]}},s5e=He.div` + border: 1px solid ${vt}; + border-radius: ${wt}; + position: relative; + width: 100%; + transition: all 0.5s; + + ${e=>e.disabled?` + opacity: 0.5; + `:e.hovered?` + border: 1px solid ${e.color}; + background-color: ${e.color}22; + cursor: pointer;`:""} +`,l5e=He.div` + display: flex; + justify-content: flex-end; + margin-left: auto; + padding: 4px; + /* width: fit-content; */ + + border-top: 1px solid ${vt}; +`,u5e=He.div` + display: flex; + flex-direction: column; + align-items: center; + margin-right: 8px; + background-color: ${vt}; + padding: 4px; + border-radius: ${wt}; + outline: 0.5px solid ${vt}; + + ${e=>e.selected&&` + background-color: ${da}; + color: white; + `} + + &:hover { + cursor: pointer; + outline: 1px solid ${da}; + } +`;function xP(e){var o,s,u,c;const t=zt(p=>p.config.vscMediaUrl),[n,r]=C.useState(((o=e.dimensions)==null?void 0:o.map(p=>Object.keys(p.options)[0]))||[]),[i,a]=C.useState(!1);return I.jsxs(s5e,{disabled:e.disabled||!1,color:da,hovered:i,children:[I.jsxs("div",{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),className:"px-2 py-1",onClick:e.disabled?void 0:p=>{p.target.closest("a")||e.onClick(p,n)},children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[t&&e.icon&&I.jsx("img",{src:`${t}/logos/${e.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h3",{children:e.title})]}),(s=e.tags)==null?void 0:s.map(p=>I.jsx("span",{style:{backgroundColor:`${Ec[p]}55`,color:"white",padding:"2px 4px",borderRadius:wt,marginRight:"4px"},children:p})),I.jsx("p",{children:e.description}),e.refUrl&&I.jsx("a",{style:{position:"absolute",right:"8px",top:"8px"},href:e.refUrl,target:"_blank",children:I.jsx(vi,{text:"Read the docs",children:I.jsx(hY,{width:"1.6em",height:"1.6em"})})})]}),((u=e.dimensions)==null?void 0:u.length)&&I.jsx(l5e,{children:(c=e.dimensions)==null?void 0:c.map((p,f)=>I.jsxs("div",{className:"flex items-center",children:[I.jsx(y9,{msg:p.description}),I.jsx("p",{className:"mx-2 text-sm my-0 py-0",children:p.name}),Object.keys(p.options).map(m=>I.jsx(u5e,{onClick:g=>{g.stopPropagation();const E=[...n];E[f]=m,r(E)},selected:n[f]===m,children:m}))]}))})]})}const c5e=He.div` + display: grid; + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); + grid-gap: 2rem; + padding: 1rem; + justify-items: center; + align-items: center; +`;function d5e(){const e=cs();return C.useContext(Ya),us(),I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt,zIndex:2},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>e("/"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Select LLM Provider"})]}),I.jsx(c5e,{children:Object.entries(CP).map(([t,n])=>I.jsx(xP,{title:n.title,description:n.description,tags:n.tags,icon:n.icon,refUrl:`https://continue.dev/docs/reference/Models/${n.class.toLowerCase()}`,onClick:r=>{e(`/modelconfig/${t}`)}}))})]})}const p5e=He.div` + display: grid; + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); + grid-gap: 2rem; + padding: 1rem; + justify-items: center; + align-items: center; +`,f5e=He.div` + border: 1px solid ${vt}; + border-radius: ${wt}; + padding: 4px 8px; + display: flex; + justify-content: center; + align-items: center; + width: 100%; + transition: all 0.5s; + + ${e=>e.disabled?` + opacity: 0.5; + `:` + &:hover { + border: 1px solid #be1b55; + background-color: #be1b5522; + cursor: pointer; + } + `} +`;function h5e(){var u,c,p,f,m;const e=SP(),{modelName:t}=Whe(),[n,r]=C.useState(void 0);C.useEffect(()=>{t&&r(CP[t])},[t]);const i=C.useContext(Ya);us();const a=cs(),o=zt(g=>g.config.vscMediaUrl),s=C.useCallback(()=>{var g;return((g=n==null?void 0:n.collectInputFor)==null?void 0:g.some(E=>{if(!E.required)return!1;const b=e.watch(E.key);return typeof b>"u"||typeof b=="string"&&b===""}))||!1},[n,e]);return I.jsx(gP,{...e,children:I.jsxs("div",{className:"overflow-y-scroll",children:[I.jsxs("div",{className:"items-center flex m-0 p-0 sticky top-0",style:{borderBottom:`0.5px solid ${vt}`,backgroundColor:Kt,zIndex:2},children:[I.jsx(ac,{width:"1.2em",height:"1.2em",onClick:()=>a("/models"),className:"inline-block ml-4 cursor-pointer"}),I.jsx("h3",{className:"text-lg font-bold m-2 inline-block",children:"Configure Model"})]}),I.jsxs("div",{className:"px-2",children:[I.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o&&(n==null?void 0:n.icon)&&I.jsx("img",{src:`${o}/logos/${n==null?void 0:n.icon}`,height:"24px",style:{marginRight:"10px"}}),I.jsx("h2",{children:n==null?void 0:n.title})]}),(u=n==null?void 0:n.tags)==null?void 0:u.map(g=>I.jsx("span",{style:{backgroundColor:`${Ec[g]}55`,color:"white",padding:"2px 4px",borderRadius:wt,marginRight:"4px"},children:g})),I.jsx(pg,{className:"mt-2",source:(n==null?void 0:n.longDescription)||(n==null?void 0:n.description),maxHeight:200}),I.jsx("br",{}),(((c=n==null?void 0:n.collectInputFor)==null?void 0:c.filter(g=>g.required).length)||0)>0&&I.jsxs(I.Fragment,{children:[I.jsx("h3",{className:"mb-2",children:"Enter required parameters"}),(p=n==null?void 0:n.collectInputFor)==null?void 0:p.filter(g=>g.required).map(g=>I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(ng,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!0})})]}))]}),(((f=n==null?void 0:n.collectInputFor)==null?void 0:f.filter(g=>!g.required).length)||0)>0&&I.jsxs("details",{children:[I.jsx("summary",{className:"mb-2",children:I.jsx("b",{children:"Advanced (optional)"})}),(m=n==null?void 0:n.collectInputFor)==null?void 0:m.map(g=>g.required?null:I.jsxs("div",{children:[I.jsx("label",{htmlFor:g.key,children:g.key}),I.jsx(ng,{type:g.inputType,id:g.key,className:"border-2 border-gray-200 rounded-md p-2 m-2",placeholder:g.key,defaultValue:g.defaultValue,min:g.min,max:g.max,step:g.step,...e.register(g.key,{required:!1})})]}))]}),I.jsx("h3",{className:"mb-2",children:"Select a model preset"})]}),I.jsxs(p5e,{children:[n==null?void 0:n.packages.map(g=>I.jsx(xP,{disabled:s(),title:g.title,description:g.description,tags:g.tags,refUrl:g.refUrl,icon:g.icon||n.icon,dimensions:g.dimensions,onClick:(E,b)=>{var v;if(s())return;const T={};for(const y of n.collectInputFor||[])T[y.key]=y.inputType==="text"?e.watch(y.key):parseFloat(e.watch(y.key));i==null||i.addModelForRole("*",n.class,{...g.params,...n.params,...qs.merge({},...((v=g.dimensions)==null?void 0:v.map((y,w)=>b!=null&&b[w]?{...y.options[b[w]]}:{}))||[]),...T}),a("/")}})),I.jsx(f5e,{disabled:s(),onClick:g=>{var b;if(!n||s())return;const E={};for(const T of n.collectInputFor||[])E[T.key]=T.inputType==="text"?e.watch(T.key):parseFloat(e.watch(T.key));i==null||i.addModelForRole("*",n.class,{...(b=n.packages[0])==null?void 0:b.params,...n.params,...E}),a("/")},children:I.jsx("h3",{className:"text-center my-2",children:"Configure Model in config.py"})})]})]})})}const g5e=uge([{path:"/",element:I.jsx(pme,{}),errorElement:I.jsx(Ame,{}),children:[{path:"/index.html",element:I.jsx(qI,{})},{path:"/",element:I.jsx(qI,{})},{path:"/history",element:I.jsx(Cge,{})},{path:"/help",element:I.jsx(YI,{})},{path:"/settings",element:I.jsx(Zme,{})},{path:"/models",element:I.jsx(d5e,{})},{path:"/help",element:I.jsx(YI,{})},{path:"/modelconfig/:modelName",element:I.jsx(h5e,{})}]}]),Ya=C.createContext(void 0);function m5e(){const e=bme(!1),t=R7(),n=us();return C.useEffect(()=>{const r=i=>{switch(i.data.type){case"onLoad":n(vme(i.data.apiUrl)),n(Eme(i.data.vscMachineId)),n(_me(i.data.sessionId)),n(Tme(i.data.vscMediaUrl)),n(Sme(i.data.dataSwitchOn)),i.data.uniqueId&&(t==null||t.identify(i.data.vscMachineId)),n(yme(i.data.workspacePaths));break;case"highlightedCode":n(rfe(i.data.rangeInFile));break;case"serverStatus":n(ife(i.data.message));break}};return window.addEventListener("message",r),rl("onLoad",{}),()=>window.removeEventListener("message",r)},[]),C.useEffect(()=>{document.body.style.getPropertyValue("--vscode-editor-foreground")&&localStorage.setItem("--vscode-editor-foreground",document.body.style.getPropertyValue("--vscode-editor-foreground")),document.body.style.getPropertyValue("--vscode-editor-background")&&localStorage.setItem("--vscode-editor-background",document.body.style.getPropertyValue("--vscode-editor-background")),document.body.style.getPropertyValue("--vscode-list-hoverBackground")&&localStorage.setItem("--vscode-list-hoverBackground",document.body.style.getPropertyValue("--vscode-list-hoverBackground"))},[]),I.jsx(Ya.Provider,{value:e,children:I.jsx(ige,{router:g5e})})}const b5e=Zp({name:"chat",initialState:{messages:[],isStreaming:!1},reducers:{addMessage:(e,t)=>({...e,messages:[...e.messages,t.payload]}),setIsStreaming:(e,t)=>({...e,isStreaming:t.payload}),streamUpdate:(e,t)=>{if(e.isStreaming){let n=e.messages[e.messages.length-1];return n.role!=="assistant"?{...e,messages:[...e.messages,{role:"assistant",content:t.payload}],isStreaming:!0}:{...e,messages:[...e.messages.slice(0,e.messages.length-1),{...n,content:n.content+t.payload}],isStreaming:!0}}else return{...e,messages:[...e.messages,{role:"assistant",content:t.payload}],isStreaming:!0}},closeStream:e=>({...e,isStreaming:!1}),clearChat:e=>({...e,messages:[],isStreaming:!1})}}),E5e=b5e.reducer,v5e=rpe({reducer:{chat:E5e,config:wme,misc:afe,uiState:gpe,serverState:nfe}});const y5e=({children:e})=>{const t=zt(i=>{var a,o;return(o=(a=i==null?void 0:i.serverState)==null?void 0:a.config)==null?void 0:o.allow_anonymous_telemetry}),[n,r]=ut.useState(void 0);return C.useEffect(()=>{t?(Bd.init("phc_JS6XFROuNbhJtVCEdTSYk6gl5ArRrTNMpCcguAXlSPs",{api_host:"https://app.posthog.com",disable_session_recording:!0}),r(n)):r(void 0)},[t]),t?I.jsx(W0e,{client:n,children:e}):I.jsx(I.Fragment,{children:e})};y4.createRoot(document.getElementById("root")).render(I.jsx(ut.StrictMode,{children:I.jsx(qpe,{store:v5e,children:I.jsx(y5e,{children:I.jsx(m5e,{})})})})); diff --git a/extension/react-app/public/continue-dev-square.png b/extensions/vscode/gui/continue-dev-square.png similarity index 100% rename from extension/react-app/public/continue-dev-square.png rename to extensions/vscode/gui/continue-dev-square.png diff --git a/extensions/vscode/gui/continue.gif b/extensions/vscode/gui/continue.gif new file mode 100644 index 000000000..daed66637 Binary files /dev/null and b/extensions/vscode/gui/continue.gif differ diff --git a/extensions/vscode/gui/index.html b/extensions/vscode/gui/index.html new file mode 100644 index 000000000..c8053de74 --- /dev/null +++ b/extensions/vscode/gui/index.html @@ -0,0 +1,15 @@ + + + + + + + Continue + + + + +
+ + + diff --git a/extensions/vscode/gui/logos/anthropic.png b/extensions/vscode/gui/logos/anthropic.png new file mode 100644 index 000000000..9adf1b71b Binary files /dev/null and b/extensions/vscode/gui/logos/anthropic.png differ diff --git a/extensions/vscode/gui/logos/google-palm.png b/extensions/vscode/gui/logos/google-palm.png new file mode 100644 index 000000000..0f9dc3451 Binary files /dev/null and b/extensions/vscode/gui/logos/google-palm.png differ diff --git a/extensions/vscode/gui/logos/hf.png b/extensions/vscode/gui/logos/hf.png new file mode 100644 index 000000000..49e2841dd Binary files /dev/null and b/extensions/vscode/gui/logos/hf.png differ diff --git a/extensions/vscode/gui/logos/llamacpp.png b/extensions/vscode/gui/logos/llamacpp.png new file mode 100644 index 000000000..119087b0e Binary files /dev/null and b/extensions/vscode/gui/logos/llamacpp.png differ diff --git a/extensions/vscode/gui/logos/lmstudio.png b/extensions/vscode/gui/logos/lmstudio.png new file mode 100644 index 000000000..b2b73591f Binary files /dev/null and b/extensions/vscode/gui/logos/lmstudio.png differ diff --git a/extensions/vscode/gui/logos/meta.png b/extensions/vscode/gui/logos/meta.png new file mode 100644 index 000000000..84a15698e Binary files /dev/null and b/extensions/vscode/gui/logos/meta.png differ diff --git a/extensions/vscode/gui/logos/mistral.png b/extensions/vscode/gui/logos/mistral.png new file mode 100644 index 000000000..0f535f84e Binary files /dev/null and b/extensions/vscode/gui/logos/mistral.png differ diff --git a/extensions/vscode/gui/logos/ollama.png b/extensions/vscode/gui/logos/ollama.png new file mode 100644 index 000000000..56ef23f4a Binary files /dev/null and b/extensions/vscode/gui/logos/ollama.png differ diff --git a/extensions/vscode/gui/logos/openai.png b/extensions/vscode/gui/logos/openai.png new file mode 100644 index 000000000..0f237a226 Binary files /dev/null and b/extensions/vscode/gui/logos/openai.png differ diff --git a/extensions/vscode/gui/logos/replicate.png b/extensions/vscode/gui/logos/replicate.png new file mode 100644 index 000000000..f71504f59 Binary files /dev/null and b/extensions/vscode/gui/logos/replicate.png differ diff --git a/extensions/vscode/gui/logos/together.png b/extensions/vscode/gui/logos/together.png new file mode 100644 index 000000000..21295358a Binary files /dev/null and b/extensions/vscode/gui/logos/together.png differ diff --git a/extensions/vscode/gui/logos/wizardlm.png b/extensions/vscode/gui/logos/wizardlm.png new file mode 100644 index 000000000..a420cf038 Binary files /dev/null and b/extensions/vscode/gui/logos/wizardlm.png differ diff --git a/extensions/vscode/gui/play_button.png b/extensions/vscode/gui/play_button.png new file mode 100644 index 000000000..af3793758 Binary files /dev/null and b/extensions/vscode/gui/play_button.png differ diff --git a/extension/logging.ini b/extensions/vscode/logging.ini similarity index 100% rename from extension/logging.ini rename to extensions/vscode/logging.ini diff --git a/extension/logging.yaml b/extensions/vscode/logging.yaml similarity index 100% rename from extension/logging.yaml rename to extensions/vscode/logging.yaml diff --git a/extension/manual-testing-sandbox/example.ts b/extensions/vscode/manual-testing-sandbox/example.ts similarity index 100% rename from extension/manual-testing-sandbox/example.ts rename to extensions/vscode/manual-testing-sandbox/example.ts diff --git a/extension/manual-testing-sandbox/nested-folder/helloNested.py b/extensions/vscode/manual-testing-sandbox/nested-folder/helloNested.py similarity index 100% rename from extension/manual-testing-sandbox/nested-folder/helloNested.py rename to extensions/vscode/manual-testing-sandbox/nested-folder/helloNested.py diff --git a/extension/manual-testing-sandbox/readme.md b/extensions/vscode/manual-testing-sandbox/readme.md similarity index 100% rename from extension/manual-testing-sandbox/readme.md rename to extensions/vscode/manual-testing-sandbox/readme.md diff --git a/extension/media/Lexend/Lexend-VariableFont_wght.ttf b/extensions/vscode/media/Lexend/Lexend-VariableFont_wght.ttf similarity index 100% rename from extension/media/Lexend/Lexend-VariableFont_wght.ttf rename to extensions/vscode/media/Lexend/Lexend-VariableFont_wght.ttf diff --git a/extension/media/Lexend/OFL.txt b/extensions/vscode/media/Lexend/OFL.txt similarity index 100% rename from extension/media/Lexend/OFL.txt rename to extensions/vscode/media/Lexend/OFL.txt diff --git a/extension/media/Lexend/README.txt b/extensions/vscode/media/Lexend/README.txt similarity index 100% rename from extension/media/Lexend/README.txt rename to extensions/vscode/media/Lexend/README.txt diff --git a/extension/media/Lexend/static/Lexend-Black.ttf b/extensions/vscode/media/Lexend/static/Lexend-Black.ttf similarity index 100% rename from extension/media/Lexend/static/Lexend-Black.ttf rename to extensions/vscode/media/Lexend/static/Lexend-Black.ttf diff --git a/extension/media/Lexend/static/Lexend-Bold.ttf b/extensions/vscode/media/Lexend/static/Lexend-Bold.ttf similarity index 100% rename from extension/media/Lexend/static/Lexend-Bold.ttf rename to extensions/vscode/media/Lexend/static/Lexend-Bold.ttf diff --git a/extension/media/Lexend/static/Lexend-ExtraBold.ttf b/extensions/vscode/media/Lexend/static/Lexend-ExtraBold.ttf similarity index 100% rename from extension/media/Lexend/static/Lexend-ExtraBold.ttf rename to extensions/vscode/media/Lexend/static/Lexend-ExtraBold.ttf diff --git a/extension/media/Lexend/static/Lexend-ExtraLight.ttf b/extensions/vscode/media/Lexend/static/Lexend-ExtraLight.ttf similarity index 100% rename from extension/media/Lexend/static/Lexend-ExtraLight.ttf rename to extensions/vscode/media/Lexend/static/Lexend-ExtraLight.ttf diff --git a/extension/media/Lexend/static/Lexend-Light.ttf b/extensions/vscode/media/Lexend/static/Lexend-Light.ttf similarity index 100% rename from extension/media/Lexend/static/Lexend-Light.ttf rename to extensions/vscode/media/Lexend/static/Lexend-Light.ttf diff --git a/extension/media/Lexend/static/Lexend-Medium.ttf b/extensions/vscode/media/Lexend/static/Lexend-Medium.ttf similarity index 100% rename from extension/media/Lexend/static/Lexend-Medium.ttf rename to extensions/vscode/media/Lexend/static/Lexend-Medium.ttf diff --git a/extension/media/Lexend/static/Lexend-Regular.ttf b/extensions/vscode/media/Lexend/static/Lexend-Regular.ttf similarity index 100% rename from extension/media/Lexend/static/Lexend-Regular.ttf rename to extensions/vscode/media/Lexend/static/Lexend-Regular.ttf diff --git a/extension/media/Lexend/static/Lexend-SemiBold.ttf b/extensions/vscode/media/Lexend/static/Lexend-SemiBold.ttf similarity index 100% rename from extension/media/Lexend/static/Lexend-SemiBold.ttf rename to extensions/vscode/media/Lexend/static/Lexend-SemiBold.ttf diff --git a/extension/media/Lexend/static/Lexend-Thin.ttf b/extensions/vscode/media/Lexend/static/Lexend-Thin.ttf similarity index 100% rename from extension/media/Lexend/static/Lexend-Thin.ttf rename to extensions/vscode/media/Lexend/static/Lexend-Thin.ttf diff --git a/extensions/vscode/media/continue-dev-square.png b/extensions/vscode/media/continue-dev-square.png new file mode 100644 index 000000000..e4b625568 Binary files /dev/null and b/extensions/vscode/media/continue-dev-square.png differ diff --git a/extension/media/continue-gradient.png b/extensions/vscode/media/continue-gradient.png similarity index 100% rename from extension/media/continue-gradient.png rename to extensions/vscode/media/continue-gradient.png diff --git a/extension/media/edit.png b/extensions/vscode/media/edit.png similarity index 100% rename from extension/media/edit.png rename to extensions/vscode/media/edit.png diff --git a/extension/media/explain.png b/extensions/vscode/media/explain.png similarity index 100% rename from extension/media/explain.png rename to extensions/vscode/media/explain.png diff --git a/extension/media/generate.png b/extensions/vscode/media/generate.png similarity index 100% rename from extension/media/generate.png rename to extensions/vscode/media/generate.png diff --git a/extension/media/icon.png b/extensions/vscode/media/icon.png similarity index 100% rename from extension/media/icon.png rename to extensions/vscode/media/icon.png diff --git a/extension/media/spinner.gif b/extensions/vscode/media/spinner.gif similarity index 100% rename from extension/media/spinner.gif rename to extensions/vscode/media/spinner.gif diff --git a/extension/media/terminal-continue.png b/extensions/vscode/media/terminal-continue.png similarity index 100% rename from extension/media/terminal-continue.png rename to extensions/vscode/media/terminal-continue.png diff --git a/extension/media/walkthrough.md b/extensions/vscode/media/walkthrough.md similarity index 100% rename from extension/media/walkthrough.md rename to extensions/vscode/media/walkthrough.md diff --git a/extension/openapitools.json b/extensions/vscode/openapitools.json similarity index 100% rename from extension/openapitools.json rename to extensions/vscode/openapitools.json diff --git a/extension/package-lock.json b/extensions/vscode/package-lock.json similarity index 99% rename from extension/package-lock.json rename to extensions/vscode/package-lock.json index b24ef1bfa..de5e9eb77 100644 --- a/extension/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -16,6 +16,7 @@ "fkill": "^8.1.0", "highlight.js": "^11.7.0", "highlightable": "^1.3.0-beta.0", + "ncp": "^2.0.0", "node-machine-id": "^1.1.12", "posthog-node": "^3.1.2", "react-markdown": "^8.0.7", @@ -8488,6 +8489,14 @@ "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", "dev": true }, + "node_modules/ncp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", + "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", + "bin": { + "ncp": "bin/ncp" + } + }, "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -18079,6 +18088,11 @@ "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", "dev": true }, + "ncp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", + "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==" + }, "negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", diff --git a/extension/package.json b/extensions/vscode/package.json similarity index 94% rename from extension/package.json rename to extensions/vscode/package.json index e6d2b8b23..8fe0e7222 100644 --- a/extension/package.json +++ b/extensions/vscode/package.json @@ -61,6 +61,16 @@ "type": "boolean", "default": false, "description": "If you are manually running the Continue server, you should update the Server URL and check this box. This will stop Continue from attempting to remove your server and download a new version." + }, + "continue.telemetryEnabled": { + "type": "boolean", + "default": true, + "description": "Continue collects anonymous usage data, cleaned of PII, to help us improve the product for our users. Read more at https://continue.dev/docs/telemetry." + }, + "continue.showInlineTip": { + "type": "boolean", + "default": true, + "description": "Show inline suggestion to use the Continue keyboard shortcuts." } } }, @@ -249,6 +259,7 @@ "fkill": "^8.1.0", "highlight.js": "^11.7.0", "highlightable": "^1.3.0-beta.0", + "ncp": "^2.0.0", "node-machine-id": "^1.1.12", "posthog-node": "^3.1.2", "react-markdown": "^8.0.7", diff --git a/extension/schema/ContextItem.d.ts b/extensions/vscode/schema/ContextItem.d.ts similarity index 100% rename from extension/schema/ContextItem.d.ts rename to extensions/vscode/schema/ContextItem.d.ts diff --git a/extension/schema/ContinueConfig.d.ts b/extensions/vscode/schema/ContinueConfig.d.ts similarity index 100% rename from extension/schema/ContinueConfig.d.ts rename to extensions/vscode/schema/ContinueConfig.d.ts diff --git a/extension/schema/FileEdit.d.ts b/extensions/vscode/schema/FileEdit.d.ts similarity index 100% rename from extension/schema/FileEdit.d.ts rename to extensions/vscode/schema/FileEdit.d.ts diff --git a/extension/schema/FileEditWithFullContents.d.ts b/extensions/vscode/schema/FileEditWithFullContents.d.ts similarity index 100% rename from extension/schema/FileEditWithFullContents.d.ts rename to extensions/vscode/schema/FileEditWithFullContents.d.ts diff --git a/extension/schema/FullState.d.ts b/extensions/vscode/schema/FullState.d.ts similarity index 100% rename from extension/schema/FullState.d.ts rename to extensions/vscode/schema/FullState.d.ts diff --git a/extension/schema/History.d.ts b/extensions/vscode/schema/History.d.ts similarity index 100% rename from extension/schema/History.d.ts rename to extensions/vscode/schema/History.d.ts diff --git a/extension/schema/HistoryNode.d.ts b/extensions/vscode/schema/HistoryNode.d.ts similarity index 100% rename from extension/schema/HistoryNode.d.ts rename to extensions/vscode/schema/HistoryNode.d.ts diff --git a/extension/schema/LLM.d.ts b/extensions/vscode/schema/LLM.d.ts similarity index 100% rename from extension/schema/LLM.d.ts rename to extensions/vscode/schema/LLM.d.ts diff --git a/extension/schema/Models.d.ts b/extensions/vscode/schema/Models.d.ts similarity index 100% rename from extension/schema/Models.d.ts rename to extensions/vscode/schema/Models.d.ts diff --git a/extension/schema/Position.d.ts b/extensions/vscode/schema/Position.d.ts similarity index 100% rename from extension/schema/Position.d.ts rename to extensions/vscode/schema/Position.d.ts diff --git a/extension/schema/README.md b/extensions/vscode/schema/README.md similarity index 100% rename from extension/schema/README.md rename to extensions/vscode/schema/README.md diff --git a/extension/schema/Range.d.ts b/extensions/vscode/schema/Range.d.ts similarity index 100% rename from extension/schema/Range.d.ts rename to extensions/vscode/schema/Range.d.ts diff --git a/extension/schema/RangeInFile.d.ts b/extensions/vscode/schema/RangeInFile.d.ts similarity index 100% rename from extension/schema/RangeInFile.d.ts rename to extensions/vscode/schema/RangeInFile.d.ts diff --git a/extension/schema/SessionInfo.d.ts b/extensions/vscode/schema/SessionInfo.d.ts similarity index 100% rename from extension/schema/SessionInfo.d.ts rename to extensions/vscode/schema/SessionInfo.d.ts diff --git a/extension/schema/Traceback.d.ts b/extensions/vscode/schema/Traceback.d.ts similarity index 100% rename from extension/schema/Traceback.d.ts rename to extensions/vscode/schema/Traceback.d.ts diff --git a/extension/schema/TracebackFrame.d.ts b/extensions/vscode/schema/TracebackFrame.d.ts similarity index 100% rename from extension/schema/TracebackFrame.d.ts rename to extensions/vscode/schema/TracebackFrame.d.ts diff --git a/extension/scripts/install_from_source.py b/extensions/vscode/scripts/install_from_source.py similarity index 57% rename from extension/scripts/install_from_source.py rename to extensions/vscode/scripts/install_from_source.py index b90794463..5758e7103 100644 --- a/extension/scripts/install_from_source.py +++ b/extensions/vscode/scripts/install_from_source.py @@ -1,4 +1,4 @@ -# Run from extension/scripts directory +# Run from extensions/vscode/scripts directory import os import subprocess @@ -33,32 +33,39 @@ def main(): remove_existing_vsix_files(build_directory) run("rm ../server/continuedev-0.1.2-py3-none-any.whl", True) - # Check for Python and Node - we won't install them, but will warn resp1 = run("python --version") resp2 = run("python3 --version") if resp1.stderr and resp2.stderr: - print("Python is required for Continue but is not installed on your machine. See https://www.python.org/downloads/ to download the latest version, then try again.") + print( + "Python is required for Continue but is not installed on your machine. See https://www.python.org/downloads/ to download the latest version, then try again." + ) return resp = run("node --version") if resp.stderr: - print("Node is required for Continue but is not installed on your machine. See https://nodejs.org/en/download/ to download the latest version, then try again.") + print( + "Node is required for Continue but is not installed on your machine. See https://nodejs.org/en/download/ to download the latest version, then try again." + ) return resp = run("npm --version") if resp.stderr: - print("NPM is required for Continue but is not installed on your machine. See https://nodejs.org/en/download/ to download the latest version, then try again.") + print( + "NPM is required for Continue but is not installed on your machine. See https://nodejs.org/en/download/ to download the latest version, then try again." + ) return resp = run("poetry --version") if resp.stderr: - print("Poetry is required for Continue but is not installed on your machine. See https://python-poetry.org/docs/#installation to download the latest version, then try again.") + print( + "Poetry is required for Continue but is not installed on your machine. See https://python-poetry.org/docs/#installation to download the latest version, then try again." + ) return editor_cmd = None editor_name = None - for cmd, editor in [('code', 'VSCode'), ('codium', 'VSCodium')]: + for cmd, editor in [("code", "VSCode"), ("codium", "VSCodium")]: resp = run(f"{cmd} --version", True) if resp.returncode == 0: print(f"{editor} version {resp.stdout.decode()}") @@ -67,20 +74,28 @@ def main(): break if not editor_cmd: - print("No code editor command is available. Please install a code editor and try again.") + print( + "No code editor command is available. Please install a code editor and try again." + ) return resp = run("cd ../../continuedev; poetry install; poetry run typegen") - resp = run("cd ..; npm i; cd react-app; npm i; cd ..; npm run package") + resp = run( + "cd ../../..; npm i; cd gui; npm i; cd ../extensions/vscode; npm run package" + ) if resp.stderr: print("Error packaging the extension. Please try again.") print("This was the error: ", resp.stderr) return - run(f"NODE_OPTIONS='--no-warnings' {editor_cmd} --install-extension {return_vsix(build_directory)}") - print(f"Continue extension installed successfully in {editor_name}. Please restart your editor to use it.") + run( + f"NODE_OPTIONS='--no-warnings' {editor_cmd} --install-extension {return_vsix(build_directory)}" + ) + print( + f"Continue extension installed successfully in {editor_name}. Please restart your editor to use it." + ) if __name__ == "__main__": diff --git a/extension/scripts/package.js b/extensions/vscode/scripts/package.js similarity index 100% rename from extension/scripts/package.js rename to extensions/vscode/scripts/package.js diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js new file mode 100644 index 000000000..3a17af781 --- /dev/null +++ b/extensions/vscode/scripts/prepackage.js @@ -0,0 +1,88 @@ +const { exec } = require("child_process"); +const fs = require("fs"); +const ncp = require("ncp").ncp; +const path = require("path"); + +if (!process.cwd().endsWith("vscode")) { + // This is sometimes run from root dir instead (e.g. in VS Code tasks) + process.chdir("extensions/vscode"); +} +exec("npm install", (error) => { + if (error) throw error; + console.log("npm install completed"); + + exec("npm run typegen", (error) => { + if (error) throw error; + console.log("npm run typegen completed"); + + process.chdir("../../gui"); + + exec("npm install", (error) => { + if (error) throw error; + console.log("npm install in gui completed"); + + exec("npm run build", (error) => { + // Then copy over the dist folder to the Intellij extension + const intellijExtensionWebviewPath = path.join( + "..", + "extensions", + "intellij", + "src", + "main", + "resources", + "webview" + ); + const indexHtmlPath = path.join( + intellijExtensionWebviewPath, + "index.html" + ); + fs.copyFileSync(indexHtmlPath, path.join("tmp_index.html")); + fs.rmSync(intellijExtensionWebviewPath, { recursive: true }); + fs.mkdirSync(intellijExtensionWebviewPath, { recursive: true }); + console.log(process.cwd()); + ncp("dist", intellijExtensionWebviewPath, (error) => { + if (error) { + console.log( + "Error copying React app build to Intellij extension: ", + error + ); + throw error; + } + + if (fs.existsSync(indexHtmlPath)) { + fs.rmSync(indexHtmlPath, {}); + } + fs.copyFileSync("tmp_index.html", indexHtmlPath); + fs.unlinkSync("tmp_index.html"); + console.log("Copied gui build to Intellij extension"); + }); + + // Then copy over the dist folder to the VSCode extension + const vscodeGuiPath = path.join("../extensions/vscode/gui"); + fs.mkdirSync(vscodeGuiPath, { recursive: true }); + ncp("dist", vscodeGuiPath, (error) => { + if (error) { + console.log( + "Error copying React app build to VSCode extension: ", + error + ); + throw error; + } + console.log("Copied gui build to VSCode extension"); + }); + + if (error) { + console.log("Error running npm run build in gui: ", error); + throw error; + } + if (!fs.existsSync(path.join("dist", "assets", "index.js"))) { + throw new Error("gui build did not produce index.js"); + } + if (!fs.existsSync(path.join("dist", "assets", "index.css"))) { + throw new Error("gui build did not produce index.css"); + } + console.log("npm run build in gui completed"); + }); + }); + }); +}); diff --git a/extension/scripts/typegen.js b/extensions/vscode/scripts/typegen.js similarity index 76% rename from extension/scripts/typegen.js rename to extensions/vscode/scripts/typegen.js index 793eb08d8..fec9160b1 100644 --- a/extension/scripts/typegen.js +++ b/extensions/vscode/scripts/typegen.js @@ -32,7 +32,7 @@ function generateAllSchemas(inputDir, outputDir) { }); } catch (e) { console.log( - "Make sure you are running this script from the extension/ directory." + "Make sure you are running this script from the extensions/vscode/ directory." ); throw e; } @@ -46,15 +46,19 @@ function deleteAllInDir(dir) { }); } -const OUTPUT_DIR = path.join("schema"); -const INPUT_DIR = path.join("..", "schema", "json"); +const OUTPUT_DIRS = [ + path.join("schema"), + path.join("..", "..", "gui", "src", "schema"), +]; +const INPUT_DIR = path.join("..", "..", "schema", "json"); if (!fs.existsSync(INPUT_DIR)) { throw new Error(`Input directory does not exist: ${INPUT_DIR}`); } -if (!fs.existsSync(OUTPUT_DIR)) { - throw new Error(`Output directory does not exist: ${OUTPUT_DIR}`); -} - -deleteAllInDir(OUTPUT_DIR); -generateAllSchemas(INPUT_DIR, OUTPUT_DIR); \ No newline at end of file +OUTPUT_DIRS.forEach((dir) => { + deleteAllInDir(dir); + if (!fs.existsSync(dir)) { + throw new Error(`Output directory does not exist: ${dir}`); + } + generateAllSchemas(INPUT_DIR, dir); +}); diff --git a/extension/server/.gitignore b/extensions/vscode/server/.gitignore similarity index 100% rename from extension/server/.gitignore rename to extensions/vscode/server/.gitignore diff --git a/extension/server/README.md b/extensions/vscode/server/README.md similarity index 100% rename from extension/server/README.md rename to extensions/vscode/server/README.md diff --git a/extension/server/requirements.txt b/extensions/vscode/server/requirements.txt similarity index 100% rename from extension/server/requirements.txt rename to extensions/vscode/server/requirements.txt diff --git a/extension/server/run_continue_server.py b/extensions/vscode/server/run_continue_server.py similarity index 100% rename from extension/server/run_continue_server.py rename to extensions/vscode/server/run_continue_server.py diff --git a/extension/server_version.txt b/extensions/vscode/server_version.txt similarity index 100% rename from extension/server_version.txt rename to extensions/vscode/server_version.txt diff --git a/extension/src/activation/activate.ts b/extensions/vscode/src/activation/activate.ts similarity index 76% rename from extension/src/activation/activate.ts rename to extensions/vscode/src/activation/activate.ts index edd13137a..3c6d49370 100644 --- a/extension/src/activation/activate.ts +++ b/extensions/vscode/src/activation/activate.ts @@ -6,22 +6,17 @@ import { getExtensionVersion, startContinuePythonServer, } from "./environmentSetup"; -import fetch from "node-fetch"; import { registerAllCodeLensProviders } from "../lang-server/codeLens"; import { registerAllCommands } from "../commands"; import registerQuickFixProvider from "../lang-server/codeActions"; - -const PACKAGE_JSON_RAW_GITHUB_URL = - "https://raw.githubusercontent.com/continuedev/continue/HEAD/extension/package.json"; +import { getExtensionUri } from "../util/vscode"; +import path from "path"; +import { setupInlineTips } from "./inlineTips"; export let extensionContext: vscode.ExtensionContext | undefined = undefined; export let ideProtocolClient: IdeProtocolClient; -function getExtensionVersionInt(versionString: string): number { - return parseInt(versionString.replace(/\./g, "")); -} - function addPythonPathForConfig() { // Add to python.analysis.extraPaths global setting so config.py gets LSP @@ -42,7 +37,11 @@ function addPythonPathForConfig() { const pathToAdd = extensionContext?.extensionPath; if (analysisPaths && pathToAdd && !analysisPaths.includes(pathToAdd)) { analysisPaths.push(pathToAdd); - pythonConfig.update("analysis.extraPaths", analysisPaths); + pythonConfig.update( + "analysis.extraPaths", + analysisPaths, + vscode.ConfigurationTarget.Global + ); } if ( @@ -51,7 +50,23 @@ function addPythonPathForConfig() { !autoCompletePaths.includes(pathToAdd) ) { autoCompletePaths.push(pathToAdd); - pythonConfig.update("autoComplete.extraPaths", autoCompletePaths); + pythonConfig.update( + "autoComplete.extraPaths", + autoCompletePaths, + vscode.ConfigurationTarget.Global + ); + } +} + +async function openTutorial(context: vscode.ExtensionContext) { + if (context.globalState.get("continue.tutorialShown") !== true) { + const doc = await vscode.workspace.openTextDocument( + vscode.Uri.file( + path.join(getExtensionUri().fsPath, "continue_tutorial.py") + ) + ); + await vscode.window.showTextDocument(doc); + context.globalState.update("continue.tutorialShown", true); } } @@ -72,6 +87,8 @@ export async function activateExtension(context: vscode.ExtensionContext) { registerAllCommands(context); registerQuickFixProvider(); addPythonPathForConfig(); + await openTutorial(context); + setupInlineTips(context); // Start the server const sessionIdPromise = (async () => { diff --git a/extension/src/activation/environmentSetup.ts b/extensions/vscode/src/activation/environmentSetup.ts similarity index 97% rename from extension/src/activation/environmentSetup.ts rename to extensions/vscode/src/activation/environmentSetup.ts index 4c47fba60..031f99746 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extensions/vscode/src/activation/environmentSetup.ts @@ -79,7 +79,7 @@ function serverBinaryPath(): string { return path.join( serverPath(), "exe", - `run${os.platform() === "win32" ? ".exe" : ""}` + `continue_server${os.platform() === "win32" ? ".exe" : ""}` ); } @@ -117,7 +117,7 @@ async function checkOrKillRunningServer( // Try again, on Windows. This time with taskkill if (os.platform() === "win32") { try { - await runCommand(`taskkill /F /IM run.exe`); + await runCommand(`taskkill /F /IM continue_server.exe`); } catch (e: any) { console.log( "Failed to kill old server second time on windows with taskkill:", @@ -209,7 +209,7 @@ function includedBinaryPath(): string { return path.join( extensionPath, "exe", - `run${os.platform() === "win32" ? ".exe" : ""}` + `continue_server${os.platform() === "win32" ? ".exe" : ""}` ); } @@ -290,12 +290,12 @@ async function setupWithS3Download(redownload: boolean, serverUrl: string) { const bucket = "continue-server-binaries"; const fileName = os.platform() === "win32" - ? "windows/run.exe" + ? "windows/continue_server.exe" : os.platform() === "darwin" ? os.arch() === "arm64" - ? "apple-silicon/run" - : "mac/run" - : "linux/run"; + ? "apple-silicon/continue_server" + : "mac/continue_server" + : "linux/continue_server"; const destination = serverBinaryPath(); diff --git a/extensions/vscode/src/activation/inlineTips.ts b/extensions/vscode/src/activation/inlineTips.ts new file mode 100644 index 000000000..b56ef557d --- /dev/null +++ b/extensions/vscode/src/activation/inlineTips.ts @@ -0,0 +1,49 @@ +import * as vscode from "vscode"; +import { getMetaKeyLabel } from "../util/util"; + +const inlineTipDecoration = vscode.window.createTextEditorDecorationType({ + after: { + contentText: `${getMetaKeyLabel()} M to select code, ${getMetaKeyLabel()} ⇧ M to edit`, + color: "#d3d3d340", + margin: "0 0 0 6em", + }, +}); + +function handleSelectionChange(e: vscode.TextEditorSelectionChangeEvent) { + const selection = e.selections[0]; + const editor = e.textEditor; + if ( + selection.isEmpty || + vscode.workspace + .getConfiguration("continue") + .get("showInlineTip") === false + ) { + editor.setDecorations(inlineTipDecoration, []); + return; + } + + const startLine = selection.start.line; + + let lineToShow = startLine > 0 ? startLine - 1 : startLine + 1; + + const hoverMarkdown = new vscode.MarkdownString( + `Use ${getMetaKeyLabel()} M to select code, or ${getMetaKeyLabel()} ⇧ M to select code and use the /edit slash command. Click [here](command:continue.hideInlineTip) if you don't want to see these inline suggestions.` + ); + hoverMarkdown.isTrusted = true; + hoverMarkdown.supportHtml = true; + editor.setDecorations(inlineTipDecoration, [ + { + range: new vscode.Range( + new vscode.Position(lineToShow, Number.MAX_VALUE), + new vscode.Position(lineToShow, Number.MAX_VALUE) + ), + hoverMessage: [hoverMarkdown], + }, + ]); +} + +export function setupInlineTips(context: vscode.ExtensionContext) { + context.subscriptions.push( + vscode.window.onDidChangeTextEditorSelection(handleSelectionChange) + ); +} diff --git a/extension/src/activation/languageClient.ts b/extensions/vscode/src/activation/languageClient.ts similarity index 100% rename from extension/src/activation/languageClient.ts rename to extensions/vscode/src/activation/languageClient.ts diff --git a/extension/src/bridge.ts b/extensions/vscode/src/bridge.ts similarity index 70% rename from extension/src/bridge.ts rename to extensions/vscode/src/bridge.ts index 8253cbabf..3ac477303 100644 --- a/extension/src/bridge.ts +++ b/extensions/vscode/src/bridge.ts @@ -1,6 +1,6 @@ import * as vscode from "vscode"; -export function getContinueServerUrl() { +function _getRawServerUrl() { // Passed in from launch.json if (process.env.CONTINUE_SERVER_URL) { return process.env.CONTINUE_SERVER_URL; @@ -11,3 +11,11 @@ export function getContinueServerUrl() { "http://localhost:65432" ); } + +export function getContinueServerUrl() { + let url = _getRawServerUrl(); + if (url.endsWith("/")) { + url = url.slice(0, -1); + } + return url; +} diff --git a/extension/src/commands.ts b/extensions/vscode/src/commands.ts similarity index 79% rename from extension/src/commands.ts rename to extensions/vscode/src/commands.ts index 267f7e304..735b190c9 100644 --- a/extension/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -83,6 +83,9 @@ const commandsMap: { [command: string]: (...args: any) => any } = { }); if (text) { ideProtocolClient.sendMainUserInput(text); + if (!text.startsWith("/edit")) { + vscode.commands.executeCommand("continue.continueGUIView.focus"); + } } }, "continue.viewLogs": async () => { @@ -101,6 +104,11 @@ const commandsMap: { [command: string]: (...args: any) => any } = { vscode.commands.executeCommand("continue.continueGUIView.focus"); await ideProtocolClient.debugTerminal(); }, + "continue.hideInlineTip": () => { + vscode.workspace + .getConfiguration("continue") + .update("showInlineTip", false); + }, // Commands without keyboard shortcuts "continue.addModel": () => { @@ -115,6 +123,34 @@ const commandsMap: { [command: string]: (...args: any) => any } = { type: "openSettings", }); }, + "continue.sendMainUserInput": (text: string) => { + ideProtocolClient.sendMainUserInput(text); + }, + "continue.selectRange": (startLine: number, endLine: number) => { + if (!vscode.window.activeTextEditor) { + return; + } + vscode.window.activeTextEditor.selection = new vscode.Selection( + startLine, + 0, + endLine, + 0 + ); + }, + "continue.foldAndUnfold": ( + foldSelectionLines: number[], + unfoldSelectionLines: number[] + ) => { + vscode.commands.executeCommand("editor.unfold", { + selectionLines: unfoldSelectionLines, + }); + vscode.commands.executeCommand("editor.fold", { + selectionLines: foldSelectionLines, + }); + }, + "continue.sendToTerminal": (text: string) => { + ideProtocolClient.runCommand(text); + }, }; export function registerAllCommands(context: vscode.ExtensionContext) { diff --git a/extension/src/continueIdeClient.ts b/extensions/vscode/src/continueIdeClient.ts similarity index 97% rename from extension/src/continueIdeClient.ts rename to extensions/vscode/src/continueIdeClient.ts index 342de7694..f47f988a5 100644 --- a/extension/src/continueIdeClient.ts +++ b/extensions/vscode/src/continueIdeClient.ts @@ -215,6 +215,16 @@ class IdeProtocolClient { vscode.commands.executeCommand("workbench.action.reloadWindow"); } }); + + const telemetryEnabled = vscode.workspace + .getConfiguration("continue") + .get("telemetryEnabled"); + if ( + typeof telemetryEnabled !== "undefined" && + telemetryEnabled !== null + ) { + this.setTelemetryEnabled(telemetryEnabled); + } } }); } @@ -418,6 +428,10 @@ class IdeProtocolClient { ); } + async setTelemetryEnabled(enabled: boolean) { + this.messenger?.send("setTelemetryEnabled", { enabled }); + } + async showDiff(filepath: string, replacement: string, step_index: number) { await diffManager.writeDiff(filepath, replacement, step_index); } @@ -560,6 +574,7 @@ class IdeProtocolClient { ".vscode", ".idea", ".vs", + "venv", ".venv", "env", ".env", @@ -704,6 +719,7 @@ class IdeProtocolClient { async runCommand(command: string) { if (vscode.window.terminals.length) { + vscode.window.terminals[0].show(); vscode.window.terminals[0].sendText(command, false); } else { const terminal = vscode.window.createTerminal(); diff --git a/extension/src/debugPanel.ts b/extensions/vscode/src/debugPanel.ts similarity index 93% rename from extension/src/debugPanel.ts rename to extensions/vscode/src/debugPanel.ts index 961eb150d..6fb383d73 100644 --- a/extension/src/debugPanel.ts +++ b/extensions/vscode/src/debugPanel.ts @@ -79,20 +79,16 @@ export function setupDebugPanel( let scriptUri: string; let styleMainUri: string; let vscMediaUrl: string = debugPanelWebview - .asWebviewUri(vscode.Uri.joinPath(extensionUri, "react-app/dist")) + .asWebviewUri(vscode.Uri.joinPath(extensionUri, "gui")) .toString(); const isProduction = true; // context?.extensionMode === vscode.ExtensionMode.Development; if (isProduction) { scriptUri = debugPanelWebview - .asWebviewUri( - vscode.Uri.joinPath(extensionUri, "react-app/dist/assets/index.js") - ) + .asWebviewUri(vscode.Uri.joinPath(extensionUri, "gui/assets/index.js")) .toString(); styleMainUri = debugPanelWebview - .asWebviewUri( - vscode.Uri.joinPath(extensionUri, "react-app/dist/assets/index.css") - ) + .asWebviewUri(vscode.Uri.joinPath(extensionUri, "gui/assets/index.css")) .toString(); } else { scriptUri = "http://localhost:5173/src/main.tsx"; @@ -101,7 +97,7 @@ export function setupDebugPanel( panel.webview.options = { enableScripts: true, - localResourceRoots: [vscode.Uri.joinPath(extensionUri, "react-app/dist")], + localResourceRoots: [vscode.Uri.joinPath(extensionUri, "gui")], enableCommandUris: true, }; @@ -197,13 +193,6 @@ export function setupDebugPanel( }); break; } - case "toggleDataSwitch": { - // Set the setting in vscode - await vscode.workspace - .getConfiguration("continue") - .update("dataSwitch", data.on, vscode.ConfigurationTarget.Global); - break; - } case "websocketForwardingOpen": { let url = data.url; if (typeof websocketConnections[url] === "undefined") { @@ -314,6 +303,8 @@ export function setupDebugPanel(
+ + `; } diff --git a/extension/src/decorations.ts b/extensions/vscode/src/decorations.ts similarity index 100% rename from extension/src/decorations.ts rename to extensions/vscode/src/decorations.ts diff --git a/extension/src/diffs.ts b/extensions/vscode/src/diffs.ts similarity index 100% rename from extension/src/diffs.ts rename to extensions/vscode/src/diffs.ts diff --git a/extension/src/extension.ts b/extensions/vscode/src/extension.ts similarity index 100% rename from extension/src/extension.ts rename to extensions/vscode/src/extension.ts diff --git a/extension/src/lang-server/codeActions.ts b/extensions/vscode/src/lang-server/codeActions.ts similarity index 100% rename from extension/src/lang-server/codeActions.ts rename to extensions/vscode/src/lang-server/codeActions.ts diff --git a/extension/src/lang-server/codeLens.ts b/extensions/vscode/src/lang-server/codeLens.ts similarity index 52% rename from extension/src/lang-server/codeLens.ts rename to extensions/vscode/src/lang-server/codeLens.ts index 6f36a6bd0..88ed70ba0 100644 --- a/extension/src/lang-server/codeLens.ts +++ b/extensions/vscode/src/lang-server/codeLens.ts @@ -4,7 +4,7 @@ import * as path from "path"; import * as os from "os"; import { DIFF_DIRECTORY, diffManager } from "../diffs"; import { getMetaKeyLabel } from "../util/util"; -import { debugPanelWebview } from "../debugPanel"; +import { getExtensionUri } from "../util/vscode"; class SuggestionsCodeLensProvider implements vscode.CodeLensProvider { public provideCodeLenses( document: vscode.TextDocument, @@ -135,9 +135,167 @@ class ConfigPyCodeLensProvider implements vscode.CodeLensProvider { } } +interface TutorialCodeLensItems { + lineIncludes: string; + commands: vscode.Command[]; +} +const actions: TutorialCodeLensItems[] = [ + { + lineIncludes: "Step 2: Use the keyboard shortcut cmd/ctrl + M", + commands: [ + { + title: `Do it for me`, + command: "continue.focusContinueInput", + }, + ], + }, + { + lineIncludes: "Step 3: Ask a question", + commands: [ + { + title: `"what does this code do?"`, + command: "continue.sendMainUserInput", + arguments: ["what does this code do?"], + }, + { + title: `"what is an alternative to this?"`, + command: "continue.sendMainUserInput", + arguments: ["what is an alternative to this?"], + }, + ], + }, + { + lineIncludes: "Step 2: Use the keyboard shortcut cmd/ctrl + shift + M", + commands: [ + { + title: `Do it for me`, + command: "continue.focusContinueInputWithEdit", + }, + ], + }, + { + lineIncludes: "Step 3: Request an edit", + commands: [ + { + title: `"/edit make this more efficient"`, + command: "continue.sendMainUserInput", + arguments: ["/edit make this more efficient"], + }, + { + title: `"/edit write comments for this function"`, + command: "continue.sendMainUserInput", + arguments: ["/edit write comments for this function"], + }, + ], + }, + { + lineIncludes: "Step 1: Run this Python file", + commands: [ + { + title: "Run the file", + command: "continue.sendToTerminal", + arguments: [ + "python " + + path.join(getExtensionUri().fsPath, "continue_tutorial.py") + + "\n", + ], + }, + ], + }, + { + lineIncludes: "Step 2: Use the keyboard shortcut cmd/ctrl + shift + R", + commands: [ + { + title: "Debug the error", + command: "continue.debugTerminal", + }, + ], + }, +]; + +class TutorialCodeLensProvider implements vscode.CodeLensProvider { + public provideCodeLenses( + document: vscode.TextDocument, + _: vscode.CancellationToken + ): vscode.CodeLens[] | Thenable { + const codeLenses: vscode.CodeLens[] = []; + + if (!document.uri.fsPath.endsWith("continue_tutorial.py")) { + return codeLenses; + } + + const lines = document.getText().split(os.EOL); + + for (const action of actions) { + const lineOfAction = lines.findIndex((line) => + line.includes(action.lineIncludes) + ); + + if (lineOfAction >= 0) { + const range = new vscode.Range(lineOfAction, 0, lineOfAction + 1, 0); + for (const command of action.commands) { + codeLenses.push(new vscode.CodeLens(range, command)); + } + } + } + + const lineOf11 = lines.findIndex((line) => + line.includes("Step 1: Highlight the function below") + ); + if (lineOf11 >= 0) { + const range = new vscode.Range(lineOf11, 0, lineOf11 + 1, 0); + codeLenses.push( + new vscode.CodeLens(range, { + title: "Highlight the function", + command: "continue.selectRange", + arguments: [lineOf11 + 1, lineOf11 + 8], + }) + ); + } + const lineOf21 = lines.findIndex((line) => + line.includes("Step 1: Highlight this code") + ); + if (lineOf21 >= 0) { + const range = new vscode.Range(lineOf21, 0, lineOf21 + 1, 0); + codeLenses.push( + new vscode.CodeLens(range, { + title: "Highlight the function", + command: "continue.selectRange", + arguments: [lineOf21 + 1, lineOf21 + 12], + }) + ); + } + + // Folding of the tutorial + const regionLines = lines + .map((line, i) => [line, i]) + .filter(([line, i]) => (line as string).startsWith("# region ")) + .map(([line, i]) => i); + for (const lineOfRegion of regionLines as number[]) { + const range = new vscode.Range(lineOfRegion, 0, lineOfRegion + 1, 0); + + const linesToFold = regionLines + .filter((i) => lineOfRegion !== i) + .flatMap((i) => { + return [i, (i as number) + 1]; + }); + codeLenses.push( + new vscode.CodeLens(range, { + title: `Begin Section`, + command: "continue.foldAndUnfold", + arguments: [linesToFold, [lineOfRegion, lineOfRegion + 1]], + }) + ); + } + + return codeLenses; + } +} + let diffsCodeLensDisposable: vscode.Disposable | undefined = undefined; let suggestionsCodeLensDisposable: vscode.Disposable | undefined = undefined; let configPyCodeLensDisposable: vscode.Disposable | undefined = undefined; +let tutorialCodeLensDisposable: vscode.Disposable | undefined = undefined; export function registerAllCodeLensProviders(context: vscode.ExtensionContext) { if (suggestionsCodeLensDisposable) { @@ -149,6 +307,9 @@ export function registerAllCodeLensProviders(context: vscode.ExtensionContext) { if (configPyCodeLensDisposable) { configPyCodeLensDisposable.dispose(); } + if (tutorialCodeLensDisposable) { + tutorialCodeLensDisposable.dispose(); + } suggestionsCodeLensDisposable = vscode.languages.registerCodeLensProvider( "*", new SuggestionsCodeLensProvider() @@ -161,7 +322,12 @@ export function registerAllCodeLensProviders(context: vscode.ExtensionContext) { "*", new ConfigPyCodeLensProvider() ); + tutorialCodeLensDisposable = vscode.languages.registerCodeLensProvider( + "*", + new TutorialCodeLensProvider() + ); context.subscriptions.push(suggestionsCodeLensDisposable); context.subscriptions.push(diffsCodeLensDisposable); context.subscriptions.push(configPyCodeLensDisposable); + context.subscriptions.push(tutorialCodeLensDisposable); } diff --git a/extension/src/suggestions.ts b/extensions/vscode/src/suggestions.ts similarity index 100% rename from extension/src/suggestions.ts rename to extensions/vscode/src/suggestions.ts diff --git a/extension/src/terminal/snoopers.ts b/extensions/vscode/src/terminal/snoopers.ts similarity index 100% rename from extension/src/terminal/snoopers.ts rename to extensions/vscode/src/terminal/snoopers.ts diff --git a/extension/src/terminal/terminalEmulator.ts b/extensions/vscode/src/terminal/terminalEmulator.ts similarity index 100% rename from extension/src/terminal/terminalEmulator.ts rename to extensions/vscode/src/terminal/terminalEmulator.ts diff --git a/extension/src/test-runner/mochaRunner.ts b/extensions/vscode/src/test-runner/mochaRunner.ts similarity index 100% rename from extension/src/test-runner/mochaRunner.ts rename to extensions/vscode/src/test-runner/mochaRunner.ts diff --git a/extension/src/test-runner/runTestOnVSCodeHost.ts b/extensions/vscode/src/test-runner/runTestOnVSCodeHost.ts similarity index 100% rename from extension/src/test-runner/runTestOnVSCodeHost.ts rename to extensions/vscode/src/test-runner/runTestOnVSCodeHost.ts diff --git a/extension/src/test-suite/environmentSetup.test.ts b/extensions/vscode/src/test-suite/environmentSetup.test.ts similarity index 100% rename from extension/src/test-suite/environmentSetup.test.ts rename to extensions/vscode/src/test-suite/environmentSetup.test.ts diff --git a/extension/src/test-suite/extension.test.ts b/extensions/vscode/src/test-suite/extension.test.ts similarity index 100% rename from extension/src/test-suite/extension.test.ts rename to extensions/vscode/src/test-suite/extension.test.ts diff --git a/extension/src/test-suite/util.test.ts b/extensions/vscode/src/test-suite/util.test.ts similarity index 100% rename from extension/src/test-suite/util.test.ts rename to extensions/vscode/src/test-suite/util.test.ts diff --git a/extension/src/util/lcs.ts b/extensions/vscode/src/util/lcs.ts similarity index 100% rename from extension/src/util/lcs.ts rename to extensions/vscode/src/util/lcs.ts diff --git a/extension/src/util/messenger.ts b/extensions/vscode/src/util/messenger.ts similarity index 99% rename from extension/src/util/messenger.ts rename to extensions/vscode/src/util/messenger.ts index 29b384974..3e17896cd 100644 --- a/extension/src/util/messenger.ts +++ b/extensions/vscode/src/util/messenger.ts @@ -1,5 +1,4 @@ const WebSocket = require("ws"); -import fetch from "node-fetch"; export abstract class Messenger { abstract send(messageType: string, data: object): void; diff --git a/extension/src/util/util.ts b/extensions/vscode/src/util/util.ts similarity index 100% rename from extension/src/util/util.ts rename to extensions/vscode/src/util/util.ts diff --git a/extension/src/util/vscode.ts b/extensions/vscode/src/util/vscode.ts similarity index 100% rename from extension/src/util/vscode.ts rename to extensions/vscode/src/util/vscode.ts diff --git a/extension/tsconfig.json b/extensions/vscode/tsconfig.json similarity index 100% rename from extension/tsconfig.json rename to extensions/vscode/tsconfig.json diff --git a/extension/vsc-extension-quickstart.md b/extensions/vscode/vsc-extension-quickstart.md similarity index 100% rename from extension/vsc-extension-quickstart.md rename to extensions/vscode/vsc-extension-quickstart.md diff --git a/extension/react-app/.gitignore b/gui/.gitignore similarity index 100% rename from extension/react-app/.gitignore rename to gui/.gitignore diff --git a/extension/react-app/README.md b/gui/README.md similarity index 100% rename from extension/react-app/README.md rename to gui/README.md diff --git a/extension/react-app/index.html b/gui/index.html similarity index 90% rename from extension/react-app/index.html rename to gui/index.html index 043c307ed..017e27848 100644 --- a/extension/react-app/index.html +++ b/gui/index.html @@ -4,7 +4,7 @@ - Vite + React + TS + Continue
diff --git a/extension/react-app/package-lock.json b/gui/package-lock.json similarity index 93% rename from extension/react-app/package-lock.json rename to gui/package-lock.json index a52396efd..71b0e52a1 100644 --- a/extension/react-app/package-lock.json +++ b/gui/package-lock.json @@ -1,32 +1,39 @@ { - "name": "react-app", + "name": "gui", "version": "0.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "react-app", + "name": "gui", "dependencies": { + "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", + "@reduxjs/toolkit": "^1.9.3", "@types/vscode-webview": "^1.57.1", "@uiw/react-markdown-preview": "^4.1.13", + "dompurify": "^3.0.6", "downshift": "^7.6.0", "lodash": "^4.17.21", "meilisearch": "^0.33.0", + "node-fetch": "^3.3.2", "posthog-js": "^1.58.0", "prismjs": "^1.29.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-hook-form": "^7.45.4", + "react-hook-form": "^7.47.0", "react-redux": "^8.0.5", "react-router-dom": "^6.14.2", "react-switch": "^7.0.0", "react-syntax-highlighter": "^15.5.0", "react-tooltip": "^5.18.0", + "seti-file-icons": "^0.0.8", "styled-components": "^5.3.6", "vscode-webview": "^1.0.1-beta.1" }, "devDependencies": { + "@types/node": "^20.5.6", + "@types/node-fetch": "^2.6.4", "@types/react": "^18.0.27", "@types/react-dom": "^18.0.10", "@types/react-router-dom": "^5.3.3", @@ -66,11 +73,11 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.10.tgz", - "integrity": "sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA==", + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", "dependencies": { - "@babel/highlight": "^7.22.10", + "@babel/highlight": "^7.22.13", "chalk": "^2.4.2" }, "engines": { @@ -117,11 +124,11 @@ } }, "node_modules/@babel/generator": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.10.tgz", - "integrity": "sha512-79KIf7YiWjjdZ81JnLujDRApWtl7BxTqWD88+FFdQEIOG8LJ0etDOM7CXuIgGJa55sGOwZVwuEsaLEm0PJ5/+A==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", + "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", "dependencies": { - "@babel/types": "^7.22.10", + "@babel/types": "^7.23.0", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" @@ -158,20 +165,20 @@ } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", - "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-function-name": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", - "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dependencies": { - "@babel/template": "^7.22.5", - "@babel/types": "^7.22.5" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" }, "engines": { "node": ">=6.9.0" @@ -258,9 +265,9 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", - "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", "engines": { "node": ">=6.9.0" } @@ -289,11 +296,11 @@ } }, "node_modules/@babel/highlight": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.10.tgz", - "integrity": "sha512-78aUtVcT7MUscr0K5mIEnkwxPE0MaxkR5RxRwuHaQ+JuU5AmTPhY+do2mdzVTnIJJpyBglql2pehuBIWHug+WQ==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", + "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", "dependencies": { - "@babel/helper-validator-identifier": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "chalk": "^2.4.2", "js-tokens": "^4.0.0" }, @@ -302,9 +309,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.10.tgz", - "integrity": "sha512-lNbdGsQb9ekfsnjFGhEiF4hfFqGgfOP3H3d27re3n+CGhNuTSUEQdfWk556sTLNTloczcdM5TYF2LhzmDQKyvQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", + "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", "bin": { "parser": "bin/babel-parser.js" }, @@ -338,31 +345,31 @@ } }, "node_modules/@babel/template": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", - "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "dependencies": { - "@babel/code-frame": "^7.22.5", - "@babel/parser": "^7.22.5", - "@babel/types": "^7.22.5" + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.10.tgz", - "integrity": "sha512-Q/urqV4pRByiNNpb/f5OSv28ZlGJiFiiTh+GAHktbIrkPhPbl90+uW6SmpoLyZqutrg9AEaEf3Q/ZBRHBXgxig==", + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", + "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", "dependencies": { - "@babel/code-frame": "^7.22.10", - "@babel/generator": "^7.22.10", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.0", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.22.10", - "@babel/types": "^7.22.10", + "@babel/parser": "^7.23.0", + "@babel/types": "^7.23.0", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -371,12 +378,12 @@ } }, "node_modules/@babel/types": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.10.tgz", - "integrity": "sha512-obaoigiLrlDZ7TUQln/8m4mSqIW2QFeOrCQc9r+xsaHGNoplVNYlRVpsfE8Vj35GEm2ZH4ZhrNYogs/3fj85kg==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", + "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", "dependencies": { "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, "engines": { @@ -780,6 +787,21 @@ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.1.tgz", "integrity": "sha512-m0G6wlnhm/AX0H12IOWtK8gASEMffnX08RtKkCgTdHb9JpHKGloI7icFfLg9ZmQeavcvR0PKmzxClyuFPSjKWw==" }, + "node_modules/@headlessui/react": { + "version": "1.7.17", + "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.17.tgz", + "integrity": "sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow==", + "dependencies": { + "client-only": "^0.0.1" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "react": "^16 || ^17 || ^18", + "react-dom": "^16 || ^17 || ^18" + } + }, "node_modules/@heroicons/react": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.18.tgz", @@ -871,6 +893,29 @@ "node": ">= 8" } }, + "node_modules/@reduxjs/toolkit": { + "version": "1.9.7", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.7.tgz", + "integrity": "sha512-t7v8ZPxhhKgOKtU+uyJT13lu4vL7az5aFi4IdoDs/eS548edn2M8Ik9h8fxgvMjGoAUVFSt6ZC1P5cWmQ014QQ==", + "dependencies": { + "immer": "^9.0.21", + "redux": "^4.2.1", + "redux-thunk": "^2.4.2", + "reselect": "^4.1.8" + }, + "peerDependencies": { + "react": "^16.9.0 || ^17.0.0 || ^18", + "react-redux": "^7.2.1 || ^8.0.2" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-redux": { + "optional": true + } + } + }, "node_modules/@remix-run/router": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.7.2.tgz", @@ -1117,6 +1162,25 @@ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" }, + "node_modules/@types/node": { + "version": "20.8.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.4.tgz", + "integrity": "sha512-ZVPnqU58giiCjSxjVUESDtdPk4QR5WQhhINbc9UBrKLU68MX5BF6kbQzTrkwbolyr0X8ChBpXfavr5mZFKZQ5A==", + "dev": true, + "dependencies": { + "undici-types": "~5.25.1" + } + }, + "node_modules/@types/node-fetch": { + "version": "2.6.6", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.6.tgz", + "integrity": "sha512-95X8guJYhfqiuVVhRFxVQcf4hW/2bCuoPwDasMf/531STFoNoWTT7YDnWdXHEZKqAGUigmpG31r2FE70LwnzJw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, "node_modules/@types/parse5": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/@types/parse5/-/parse5-6.0.3.tgz", @@ -1288,6 +1352,12 @@ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", "dev": true }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, "node_modules/autoprefixer": { "version": "10.4.14", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", @@ -1564,6 +1634,11 @@ "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==" }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" + }, "node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -1577,6 +1652,18 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/comma-separated-tokens": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", @@ -1620,6 +1707,25 @@ "node-fetch": "^2.6.12" } }, + "node_modules/cross-fetch/node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, "node_modules/css-color-keywords": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz", @@ -1660,6 +1766,14 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "engines": { + "node": ">= 12" + } + }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -1697,6 +1811,15 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -1737,6 +1860,11 @@ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", "dev": true }, + "node_modules/dompurify": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.0.6.tgz", + "integrity": "sha512-ilkD8YEnnGh1zJ240uJsW7AzE+2qpbOUYjacomn3AvJ6J4JhKGSZ2nh4wUIXPZrEPppaCLx5jFe8T89Rk8tQ7w==" + }, "node_modules/downshift": { "version": "7.6.2", "resolved": "https://registry.npmjs.org/downshift/-/downshift-7.6.2.tgz", @@ -1872,6 +2000,28 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, "node_modules/fflate": { "version": "0.4.8", "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.4.8.tgz", @@ -1889,6 +2039,20 @@ "node": ">=8" } }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/format": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", @@ -1897,6 +2061,17 @@ "node": ">=0.4.x" } }, + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, "node_modules/fraction.js": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", @@ -2279,6 +2454,15 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -3322,6 +3506,27 @@ "node": ">=8.6" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -3376,23 +3581,39 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "engines": { + "node": ">=10.5.0" + } + }, "node_modules/node-fetch": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz", - "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", "dependencies": { - "whatwg-url": "^5.0.0" + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" }, "engines": { - "node": "4.x || >=6.0.0" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" } }, "node_modules/node-releases": { @@ -3537,9 +3758,9 @@ } }, "node_modules/postcss": { - "version": "8.4.27", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.27.tgz", - "integrity": "sha512-gY/ACJtJPSmUFPDCHtX78+01fHa64FaU4zaaWfuh1MhGJISufJAH4cun6k/8fwsHYeK4UQmENQK+tRLCFJE8JQ==", + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", "dev": true, "funding": [ { @@ -3750,9 +3971,9 @@ } }, "node_modules/react-hook-form": { - "version": "7.45.4", - "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.45.4.tgz", - "integrity": "sha512-HGDV1JOOBPZj10LB3+OZgfDBTn+IeEsNOKiq/cxbQAIbKaiJUe/KV8DBUzsx0Gx/7IG/orWqRRm736JwOfUSWQ==", + "version": "7.47.0", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.47.0.tgz", + "integrity": "sha512-F/TroLjTICipmHeFlMrLtNLceO2xr1jU3CyiNla5zdwsGUGu2UOxxR4UyJgLlhMwLW/Wzp4cpJ7CPfgJIeKdSg==", "engines": { "node": ">=12.22.0" }, @@ -3928,6 +4149,22 @@ "node": ">=8.10.0" } }, + "node_modules/redux": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz", + "integrity": "sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==", + "dependencies": { + "@babel/runtime": "^7.9.2" + } + }, + "node_modules/redux-thunk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.4.2.tgz", + "integrity": "sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q==", + "peerDependencies": { + "redux": "^4" + } + }, "node_modules/refractor": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/refractor/-/refractor-3.6.0.tgz", @@ -4244,6 +4481,11 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/reselect": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz", + "integrity": "sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==" + }, "node_modules/resolve": { "version": "1.22.2", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", @@ -4338,6 +4580,11 @@ "semver": "bin/semver.js" } }, + "node_modules/seti-file-icons": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/seti-file-icons/-/seti-file-icons-0.0.8.tgz", + "integrity": "sha512-HIK9HMkfhmwCZYeyQFuCAGYdwaK5/tmZBVnQmbGXx9orT2bD0xbKqvJR7q6NmsTbgtLNwBwa+PYnTzUvdExuDQ==" + }, "node_modules/shallowequal": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", @@ -4568,6 +4815,12 @@ "node": ">=4.2.0" } }, + "node_modules/undici-types": { + "version": "5.25.3", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", + "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==", + "dev": true + }, "node_modules/unified": { "version": "10.1.2", "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", @@ -4849,6 +5102,14 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "engines": { + "node": ">= 8" + } + }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -4920,11 +5181,11 @@ } }, "@babel/code-frame": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.10.tgz", - "integrity": "sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA==", + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", "requires": { - "@babel/highlight": "^7.22.10", + "@babel/highlight": "^7.22.13", "chalk": "^2.4.2" } }, @@ -4958,11 +5219,11 @@ } }, "@babel/generator": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.10.tgz", - "integrity": "sha512-79KIf7YiWjjdZ81JnLujDRApWtl7BxTqWD88+FFdQEIOG8LJ0etDOM7CXuIgGJa55sGOwZVwuEsaLEm0PJ5/+A==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", + "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", "requires": { - "@babel/types": "^7.22.10", + "@babel/types": "^7.23.0", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" @@ -4990,17 +5251,17 @@ } }, "@babel/helper-environment-visitor": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", - "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==" + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==" }, "@babel/helper-function-name": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", - "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "requires": { - "@babel/template": "^7.22.5", - "@babel/types": "^7.22.5" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" } }, "@babel/helper-hoist-variables": { @@ -5060,9 +5321,9 @@ "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==" }, "@babel/helper-validator-identifier": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", - "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==" + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==" }, "@babel/helper-validator-option": { "version": "7.22.5", @@ -5082,19 +5343,19 @@ } }, "@babel/highlight": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.10.tgz", - "integrity": "sha512-78aUtVcT7MUscr0K5mIEnkwxPE0MaxkR5RxRwuHaQ+JuU5AmTPhY+do2mdzVTnIJJpyBglql2pehuBIWHug+WQ==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", + "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", "requires": { - "@babel/helper-validator-identifier": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "chalk": "^2.4.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.10.tgz", - "integrity": "sha512-lNbdGsQb9ekfsnjFGhEiF4hfFqGgfOP3H3d27re3n+CGhNuTSUEQdfWk556sTLNTloczcdM5TYF2LhzmDQKyvQ==" + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", + "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==" }, "@babel/plugin-syntax-jsx": { "version": "7.22.5", @@ -5113,39 +5374,39 @@ } }, "@babel/template": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", - "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "requires": { - "@babel/code-frame": "^7.22.5", - "@babel/parser": "^7.22.5", - "@babel/types": "^7.22.5" + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" } }, "@babel/traverse": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.10.tgz", - "integrity": "sha512-Q/urqV4pRByiNNpb/f5OSv28ZlGJiFiiTh+GAHktbIrkPhPbl90+uW6SmpoLyZqutrg9AEaEf3Q/ZBRHBXgxig==", + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", + "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", "requires": { - "@babel/code-frame": "^7.22.10", - "@babel/generator": "^7.22.10", - "@babel/helper-environment-visitor": "^7.22.5", - "@babel/helper-function-name": "^7.22.5", + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.0", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.22.10", - "@babel/types": "^7.22.10", + "@babel/parser": "^7.23.0", + "@babel/types": "^7.23.0", "debug": "^4.1.0", "globals": "^11.1.0" } }, "@babel/types": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.10.tgz", - "integrity": "sha512-obaoigiLrlDZ7TUQln/8m4mSqIW2QFeOrCQc9r+xsaHGNoplVNYlRVpsfE8Vj35GEm2ZH4ZhrNYogs/3fj85kg==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", + "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", "requires": { "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" } }, @@ -5348,6 +5609,14 @@ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.1.tgz", "integrity": "sha512-m0G6wlnhm/AX0H12IOWtK8gASEMffnX08RtKkCgTdHb9JpHKGloI7icFfLg9ZmQeavcvR0PKmzxClyuFPSjKWw==" }, + "@headlessui/react": { + "version": "1.7.17", + "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.17.tgz", + "integrity": "sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow==", + "requires": { + "client-only": "^0.0.1" + } + }, "@heroicons/react": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.18.tgz", @@ -5421,6 +5690,17 @@ "fastq": "^1.6.0" } }, + "@reduxjs/toolkit": { + "version": "1.9.7", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.7.tgz", + "integrity": "sha512-t7v8ZPxhhKgOKtU+uyJT13lu4vL7az5aFi4IdoDs/eS548edn2M8Ik9h8fxgvMjGoAUVFSt6ZC1P5cWmQ014QQ==", + "requires": { + "immer": "^9.0.21", + "redux": "^4.2.1", + "redux-thunk": "^2.4.2", + "reselect": "^4.1.8" + } + }, "@remix-run/router": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.7.2.tgz", @@ -5558,6 +5838,25 @@ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==" }, + "@types/node": { + "version": "20.8.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.4.tgz", + "integrity": "sha512-ZVPnqU58giiCjSxjVUESDtdPk4QR5WQhhINbc9UBrKLU68MX5BF6kbQzTrkwbolyr0X8ChBpXfavr5mZFKZQ5A==", + "dev": true, + "requires": { + "undici-types": "~5.25.1" + } + }, + "@types/node-fetch": { + "version": "2.6.6", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.6.tgz", + "integrity": "sha512-95X8guJYhfqiuVVhRFxVQcf4hW/2bCuoPwDasMf/531STFoNoWTT7YDnWdXHEZKqAGUigmpG31r2FE70LwnzJw==", + "dev": true, + "requires": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, "@types/parse5": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/@types/parse5/-/parse5-6.0.3.tgz", @@ -5716,6 +6015,12 @@ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", "dev": true }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, "autoprefixer": { "version": "10.4.14", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz", @@ -5884,6 +6189,11 @@ "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==" }, + "client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" + }, "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -5897,6 +6207,15 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, "comma-separated-tokens": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", @@ -5931,6 +6250,16 @@ "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==", "requires": { "node-fetch": "^2.6.12" + }, + "dependencies": { + "node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "requires": { + "whatwg-url": "^5.0.0" + } + } } }, "css-color-keywords": { @@ -5964,6 +6293,11 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz", "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==" }, + "data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==" + }, "debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -5987,6 +6321,12 @@ } } }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true + }, "dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -6014,6 +6354,11 @@ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", "dev": true }, + "dompurify": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.0.6.tgz", + "integrity": "sha512-ilkD8YEnnGh1zJ240uJsW7AzE+2qpbOUYjacomn3AvJ6J4JhKGSZ2nh4wUIXPZrEPppaCLx5jFe8T89Rk8tQ7w==" + }, "downshift": { "version": "7.6.2", "resolved": "https://registry.npmjs.org/downshift/-/downshift-7.6.2.tgz", @@ -6124,6 +6469,15 @@ "format": "^0.2.0" } }, + "fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "requires": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + } + }, "fflate": { "version": "0.4.8", "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.4.8.tgz", @@ -6138,11 +6492,30 @@ "to-regex-range": "^5.0.1" } }, + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, "format": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==" }, + "formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "requires": { + "fetch-blob": "^3.1.2" + } + }, "fraction.js": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz", @@ -6422,6 +6795,11 @@ "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-2.0.1.tgz", "integrity": "sha512-0quDb7s97CfemeJAnW9wC0hw78MtW7NU3hqtCD75g2vFlDLt36llsYD7uB7SUzojLMP24N5IatXf7ylGXiGG9A==" }, + "immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==" + }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -7077,6 +7455,21 @@ "picomatch": "^2.3.1" } }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "requires": { + "mime-db": "1.52.0" + } + }, "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -7113,12 +7506,19 @@ "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", "dev": true }, + "node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==" + }, "node-fetch": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz", - "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", "requires": { - "whatwg-url": "^5.0.0" + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" } }, "node-releases": { @@ -7229,9 +7629,9 @@ "dev": true }, "postcss": { - "version": "8.4.27", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.27.tgz", - "integrity": "sha512-gY/ACJtJPSmUFPDCHtX78+01fHa64FaU4zaaWfuh1MhGJISufJAH4cun6k/8fwsHYeK4UQmENQK+tRLCFJE8JQ==", + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", "dev": true, "requires": { "nanoid": "^3.3.6", @@ -7352,9 +7752,9 @@ } }, "react-hook-form": { - "version": "7.45.4", - "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.45.4.tgz", - "integrity": "sha512-HGDV1JOOBPZj10LB3+OZgfDBTn+IeEsNOKiq/cxbQAIbKaiJUe/KV8DBUzsx0Gx/7IG/orWqRRm736JwOfUSWQ==", + "version": "7.47.0", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.47.0.tgz", + "integrity": "sha512-F/TroLjTICipmHeFlMrLtNLceO2xr1jU3CyiNla5zdwsGUGu2UOxxR4UyJgLlhMwLW/Wzp4cpJ7CPfgJIeKdSg==", "requires": {} }, "react-is": { @@ -7461,6 +7861,20 @@ "picomatch": "^2.2.1" } }, + "redux": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz", + "integrity": "sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==", + "requires": { + "@babel/runtime": "^7.9.2" + } + }, + "redux-thunk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.4.2.tgz", + "integrity": "sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q==", + "requires": {} + }, "refractor": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/refractor/-/refractor-3.6.0.tgz", @@ -7693,6 +8107,11 @@ "unified": "^10.0.0" } }, + "reselect": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz", + "integrity": "sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==" + }, "resolve": { "version": "1.22.2", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", @@ -7750,6 +8169,11 @@ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "peer": true }, + "seti-file-icons": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/seti-file-icons/-/seti-file-icons-0.0.8.tgz", + "integrity": "sha512-HIK9HMkfhmwCZYeyQFuCAGYdwaK5/tmZBVnQmbGXx9orT2bD0xbKqvJR7q6NmsTbgtLNwBwa+PYnTzUvdExuDQ==" + }, "shallowequal": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", @@ -7914,6 +8338,12 @@ "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true }, + "undici-types": { + "version": "5.25.3", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", + "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==", + "dev": true + }, "unified": { "version": "10.1.2", "resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz", @@ -8077,6 +8507,11 @@ "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==" }, + "web-streams-polyfill": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", + "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==" + }, "webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", diff --git a/extension/react-app/package.json b/gui/package.json similarity index 78% rename from extension/react-app/package.json rename to gui/package.json index be23b34b7..abc16ca6d 100644 --- a/extension/react-app/package.json +++ b/gui/package.json @@ -1,33 +1,40 @@ { - "name": "react-app", + "name": "gui", "private": true, "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build --sourcemap 'inline'", + "build": "tsc && vite build", "preview": "vite preview" }, "dependencies": { + "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", + "@reduxjs/toolkit": "^1.9.3", "@types/vscode-webview": "^1.57.1", "@uiw/react-markdown-preview": "^4.1.13", + "dompurify": "^3.0.6", "downshift": "^7.6.0", "lodash": "^4.17.21", "meilisearch": "^0.33.0", + "node-fetch": "^3.3.2", "posthog-js": "^1.58.0", "prismjs": "^1.29.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-hook-form": "^7.45.4", + "react-hook-form": "^7.47.0", "react-redux": "^8.0.5", "react-router-dom": "^6.14.2", "react-switch": "^7.0.0", "react-syntax-highlighter": "^15.5.0", "react-tooltip": "^5.18.0", + "seti-file-icons": "^0.0.8", "styled-components": "^5.3.6", "vscode-webview": "^1.0.1-beta.1" }, "devDependencies": { + "@types/node": "^20.5.6", + "@types/node-fetch": "^2.6.4", "@types/react": "^18.0.27", "@types/react-dom": "^18.0.10", "@types/react-router-dom": "^5.3.3", diff --git a/extension/react-app/postcss.config.cjs b/gui/postcss.config.cjs similarity index 100% rename from extension/react-app/postcss.config.cjs rename to gui/postcss.config.cjs diff --git a/gui/public/continue-dev-square.png b/gui/public/continue-dev-square.png new file mode 100644 index 000000000..e4b625568 Binary files /dev/null and b/gui/public/continue-dev-square.png differ diff --git a/gui/public/continue.gif b/gui/public/continue.gif new file mode 100644 index 000000000..daed66637 Binary files /dev/null and b/gui/public/continue.gif differ diff --git a/gui/public/logos/anthropic.png b/gui/public/logos/anthropic.png new file mode 100644 index 000000000..9adf1b71b Binary files /dev/null and b/gui/public/logos/anthropic.png differ diff --git a/gui/public/logos/google-palm.png b/gui/public/logos/google-palm.png new file mode 100644 index 000000000..0f9dc3451 Binary files /dev/null and b/gui/public/logos/google-palm.png differ diff --git a/gui/public/logos/hf.png b/gui/public/logos/hf.png new file mode 100644 index 000000000..49e2841dd Binary files /dev/null and b/gui/public/logos/hf.png differ diff --git a/gui/public/logos/llamacpp.png b/gui/public/logos/llamacpp.png new file mode 100644 index 000000000..119087b0e Binary files /dev/null and b/gui/public/logos/llamacpp.png differ diff --git a/gui/public/logos/lmstudio.png b/gui/public/logos/lmstudio.png new file mode 100644 index 000000000..b2b73591f Binary files /dev/null and b/gui/public/logos/lmstudio.png differ diff --git a/gui/public/logos/meta.png b/gui/public/logos/meta.png new file mode 100644 index 000000000..84a15698e Binary files /dev/null and b/gui/public/logos/meta.png differ diff --git a/gui/public/logos/mistral.png b/gui/public/logos/mistral.png new file mode 100644 index 000000000..0f535f84e Binary files /dev/null and b/gui/public/logos/mistral.png differ diff --git a/gui/public/logos/ollama.png b/gui/public/logos/ollama.png new file mode 100644 index 000000000..56ef23f4a Binary files /dev/null and b/gui/public/logos/ollama.png differ diff --git a/gui/public/logos/openai.png b/gui/public/logos/openai.png new file mode 100644 index 000000000..0f237a226 Binary files /dev/null and b/gui/public/logos/openai.png differ diff --git a/gui/public/logos/replicate.png b/gui/public/logos/replicate.png new file mode 100644 index 000000000..f71504f59 Binary files /dev/null and b/gui/public/logos/replicate.png differ diff --git a/gui/public/logos/together.png b/gui/public/logos/together.png new file mode 100644 index 000000000..21295358a Binary files /dev/null and b/gui/public/logos/together.png differ diff --git a/gui/public/logos/wizardlm.png b/gui/public/logos/wizardlm.png new file mode 100644 index 000000000..a420cf038 Binary files /dev/null and b/gui/public/logos/wizardlm.png differ diff --git a/gui/public/play_button.png b/gui/public/play_button.png new file mode 100644 index 000000000..af3793758 Binary files /dev/null and b/gui/public/play_button.png differ diff --git a/extension/react-app/src/App.tsx b/gui/src/App.tsx similarity index 69% rename from extension/react-app/src/App.tsx rename to gui/src/App.tsx index eb5d01645..9c7836ac1 100644 --- a/extension/react-app/src/App.tsx +++ b/gui/src/App.tsx @@ -14,7 +14,10 @@ import { setDataSwitchOn, setWorkspacePaths, } from "./redux/slices/configSlice"; -import { setHighlightedCode } from "./redux/slices/miscSlice"; +import { + setHighlightedCode, + setServerStatusMessage, +} from "./redux/slices/miscSlice"; import { postVscMessage } from "./vscode"; import { RouterProvider, createMemoryRouter } from "react-router-dom"; import ErrorPage from "./pages/error"; @@ -22,6 +25,7 @@ import SettingsPage from "./pages/settings"; import Models from "./pages/models"; import HelpPage from "./pages/help"; import ModelConfig from "./pages/modelconfig"; +import { usePostHog } from "posthog-js/react"; const router = createMemoryRouter([ { @@ -70,7 +74,8 @@ export const GUIClientContext = createContext< >(undefined); function App() { - const client = useContinueGUIProtocol(); + const client = useContinueGUIProtocol(false); + const posthog = usePostHog(); const dispatch = useDispatch(); useEffect(() => { @@ -82,11 +87,17 @@ function App() { dispatch(setSessionId(event.data.sessionId)); dispatch(setVscMediaUrl(event.data.vscMediaUrl)); dispatch(setDataSwitchOn(event.data.dataSwitchOn)); + if (event.data.uniqueId) { + posthog?.identify(event.data.vscMachineId); + } dispatch(setWorkspacePaths(event.data.workspacePaths)); break; case "highlightedCode": dispatch(setHighlightedCode(event.data.rangeInFile)); break; + case "serverStatus": + dispatch(setServerStatusMessage(event.data.message)); + break; } }; window.addEventListener("message", eventListener); @@ -94,6 +105,27 @@ function App() { return () => window.removeEventListener("message", eventListener); }, []); + useEffect(() => { + if (document.body.style.getPropertyValue("--vscode-editor-foreground")) { + localStorage.setItem( + "--vscode-editor-foreground", + document.body.style.getPropertyValue("--vscode-editor-foreground") + ); + } + if (document.body.style.getPropertyValue("--vscode-editor-background")) { + localStorage.setItem( + "--vscode-editor-background", + document.body.style.getPropertyValue("--vscode-editor-background") + ); + } + if (document.body.style.getPropertyValue("--vscode-list-hoverBackground")) { + localStorage.setItem( + "--vscode-list-hoverBackground", + document.body.style.getPropertyValue("--vscode-list-hoverBackground") + ); + } + }, []); + return ( diff --git a/extension/react-app/src/components/CheckDiv.tsx b/gui/src/components/CheckDiv.tsx similarity index 100% rename from extension/react-app/src/components/CheckDiv.tsx rename to gui/src/components/CheckDiv.tsx diff --git a/extension/react-app/src/components/CodeBlock.tsx b/gui/src/components/CodeBlock.tsx similarity index 100% rename from extension/react-app/src/components/CodeBlock.tsx rename to gui/src/components/CodeBlock.tsx diff --git a/extension/react-app/src/components/ComboBox.tsx b/gui/src/components/ComboBox.tsx similarity index 84% rename from extension/react-app/src/components/ComboBox.tsx rename to gui/src/components/ComboBox.tsx index 1d0ca1a53..87713a5b3 100644 --- a/extension/react-app/src/components/ComboBox.tsx +++ b/gui/src/components/ComboBox.tsx @@ -22,7 +22,8 @@ import { ArrowLeftIcon, ArrowRightIcon, ArrowUpLeftIcon, - StopCircleIcon, + ChevronDownIcon, + ChevronRightIcon, TrashIcon, XMarkIcon, } from "@heroicons/react/24/outline"; @@ -37,10 +38,17 @@ import { getFontSize, getMarkdownLanguageTagForFile, getMetaKeyLabel, + getPlatform, } from "../util"; -import { ContextItem } from "../../../schema/FullState"; +import { ContextItem } from "../schema/FullState"; import StyledMarkdownPreview from "./StyledMarkdownPreview"; +import { temporarilyClearSession } from "../redux/slices/serverStateReducer"; import { setTakenActionTrue } from "../redux/slices/miscSlice"; +import { + handleKeyDownJetBrains, + handleKeyDownJetBrainsMac, +} from "../util/jetbrains"; +import FileIcon from "./FileIcon"; const SEARCH_INDEX_NAME = "continue_context_items"; @@ -114,6 +122,28 @@ const HiddenHeaderButtonWithText = styled.button` const mainInputFontSize = getFontSize(); +const PreviewMarkdownDiv = styled.div` + padding: 0px; + background-color: ${secondaryDark}; + border-radius: ${defaultBorderRadius}; + margin: 8px; + overflow: hidden; + + & div { + background-color: ${secondaryDark}; + } +`; + +const PreviewMarkdownHeader = styled.p` + margin: 0; + padding: 4px 8px; + border-bottom: 1px solid ${lightGray}; + word-break: break-all; + font-size: ${getFontSize()}px; + display: flex; + align-items: center; +`; + const MainTextInput = styled.textarea<{ inQueryForDynamicProvider: boolean; fontSize?: number; @@ -190,7 +220,8 @@ const Ul = styled.ul<{ background: ${vscBackground}; color: ${vscForeground}; max-height: ${UlMaxHeight}px; - width: calc(100% - 16px); + margin-left: 1px; + width: calc(100% - 18px); overflow-y: scroll; overflow-x: hidden; padding: 0; @@ -215,15 +246,13 @@ const Li = styled.li<{ isLastItem: boolean; }>` background-color: ${({ highlighted }) => - highlighted ? lightGray : secondaryDark}; - ${({ highlighted }) => highlighted && `background: ${vscBackground};`} + highlighted ? buttonColor + "66" : secondaryDark}; ${({ selected }) => selected && "font-weight: bold;"} - padding: 0.5rem 0.75rem; + padding: 0.5rem 0.5rem; display: flex; flex-direction: row; align-items: center; ${({ isLastItem }) => isLastItem && "border-bottom: 1px solid gray;"} - /* border-top: 1px solid gray; */ cursor: pointer; z-index: 500; `; @@ -275,6 +304,9 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { const workspacePaths = useSelector( (state: RootStore) => state.config.workspacePaths ); + const sessionHistory = useSelector( + (state: RootStore) => state.serverState.history + ); const [history, setHistory] = React.useState([]); // The position of the current command you are typing now, so the one that will be appended to history once you press enter @@ -343,11 +375,13 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { useEffect(() => { if (!nestedContextProvider) { setItems( - contextProviders?.map((provider) => ({ - name: provider.display_title, - description: provider.description, - id: provider.title, - })) || [] + contextProviders + ?.map((provider) => ({ + name: provider.display_title, + description: provider.description, + id: provider.title, + })) + .sort((c, _) => (c.id === "file" ? -1 : 1)) || [] ); } }, [nestedContextProvider]); @@ -419,7 +453,8 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { name: provider.display_title, description: provider.description, id: provider.title, - })) || []; + })) + .sort((c, _) => (c.id === "file" ? -1 : 1)) || []; setItems(filteredItems); setCurrentlyInContextQuery(true); } @@ -607,6 +642,10 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { downshiftProps.setInputValue("/edit "); } dispatch(setTakenActionTrue(null)); + } else if (event.data.type === "focusContinueInputWithNewSession") { + dispatch(temporarilyClearSession(false)); + client?.loadSession(undefined); + dispatch(setTakenActionTrue(null)); } }; window.addEventListener("message", handler); @@ -716,6 +755,8 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { const [isComposing, setIsComposing] = useState(false); + const [showContextToggleOn, setShowContextToggleOn] = useState(false); + const [previewingContextItem, setPreviewingContextItem] = useState< ContextItem | undefined >(undefined); @@ -737,6 +778,35 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { return (
+ {selectedContextItems.length === 0 && props.isMainInput && ( +
+ { + downshiftProps.setInputValue("@"); + inputRef.current?.focus(); + }} + className="hover:underline cursor-pointer" + > + + Add Context + + {(downshiftProps.inputValue?.startsWith("/edit") || + (inputFocused && + metaKeyPressed && + downshiftProps.inputValue?.length > 0)) && ( + Inserting at cursor + )} +
+ )} + {props.isMainInput || (selectedContextItems.length > 0 && showContextItemsIfNotMain) ? (
{ ref={contextItemsDivRef} style={{ backgroundColor: vscBackground }} > + {selectedContextItems.length > 0 && ( +
{ + setShowContextToggleOn((prev) => !prev); + }} + id="toggle-context-div" + > + {showContextToggleOn ? ( + + ) : ( + + )} +
+ )} + 0 @@ -853,10 +943,21 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { focusedContextItem?.description.id.provider_name === item.description.id.provider_name } + prefixInputWithEdit={(should) => { + if (!should && inputRef.current?.value.startsWith("/edit")) { + downshiftProps.setInputValue( + inputRef.current?.value.replace("/edit ", "") + ); + } + if (downshiftProps.inputValue.startsWith("/edit")) return; + downshiftProps.setInputValue( + `/edit ${downshiftProps.inputValue}` + ); + inputRef.current?.focus(); + }} /> ); })} - {/* {selectedContextItems.length > 0 && ( { @@ -894,17 +995,37 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { {previewingContextItem && (
           
         
)} + {showContextToggleOn && ( +
+ {selectedContextItems.map((item) => ( + + + + {item.description.description} + +
+                
+              
+
+ ))} +
+ )}
{ borderRadius={defaultBorderRadius} > { + inputRef.current?.focus(); + }} onMouseEnter={() => setIsHovered(true)} onMouseLeave={(e) => { if ( @@ -946,7 +1070,12 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { dispatch(setBottomMessage(undefined)); }, onBlur: (e) => { - if (topRef.current?.contains(e.relatedTarget as Node)) { + if ( + topRef.current?.contains(e.relatedTarget as Node) || + document + .getElementById("toggle-context-div") + ?.contains(e.relatedTarget as Node) + ) { return; } setInputFocused(false); @@ -1069,6 +1198,20 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { (event.nativeEvent as any).preventDownshiftDefault = true; } else if (event.key === "End") { (event.nativeEvent as any).preventDownshiftDefault = true; + } else if (localStorage.getItem("ide") === "jetbrains") { + if (getPlatform() === "mac") { + handleKeyDownJetBrainsMac( + event, + downshiftProps.inputValue, + downshiftProps.setInputValue + ); + } else { + handleKeyDownJetBrains( + event, + downshiftProps.inputValue, + downshiftProps.setInputValue + ); + } } }, onClick: () => { @@ -1112,9 +1255,8 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { props.active ? `Stop (${getMetaKeyLabel()}⌫)` : "Delete" } > - {props.active ? ( - - ) : ( + {props.active ? null : ( + // )} @@ -1186,9 +1328,18 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { inputRef.current?.focus(); }} > - - {item.name} - {" "} + +
+ {nestedContextProvider && ( + + )} + {item.name} + {" "} +
{ )} ))} + {downshiftProps.isOpen && items.length === 0 && ( +
  • + + No items found + +
  • + )}
    - {selectedContextItems.length === 0 && - (downshiftProps.inputValue?.startsWith("/edit") || - (inputFocused && - metaKeyPressed && - downshiftProps.inputValue?.length > 0)) && ( -
    - Inserting at cursor -
    - )} + {props.isMainInput && ( props.onEnter?.(undefined)} + disabled={ + !(inputRef.current as any)?.value && + !( + (typeof sessionHistory?.current_index !== "undefined" && + sessionHistory.timeline[sessionHistory.current_index] + ?.active) || + false + ) + } + onClick={() => { + if ( + typeof sessionHistory?.current_index !== "undefined" && + sessionHistory.timeline[sessionHistory.current_index]?.active + ) { + client?.deleteAtIndex(sessionHistory.current_index); + } else { + props.onEnter?.(undefined); + } + }} + showStop={ + (typeof sessionHistory?.current_index !== "undefined" && + sessionHistory.timeline[sessionHistory.current_index]?.active) || + false + } /> )}
    diff --git a/extension/react-app/src/components/ContinueButton.tsx b/gui/src/components/ContinueButton.tsx similarity index 66% rename from extension/react-app/src/components/ContinueButton.tsx rename to gui/src/components/ContinueButton.tsx index 95dde177b..226a5d276 100644 --- a/extension/react-app/src/components/ContinueButton.tsx +++ b/gui/src/components/ContinueButton.tsx @@ -1,28 +1,36 @@ import styled from "styled-components"; -import { Button } from "."; -import { PlayIcon } from "@heroicons/react/24/outline"; +import { Button, vscBackground } from "."; +import { PlayIcon, StopIcon } from "@heroicons/react/24/outline"; import { useSelector } from "react-redux"; import { RootStore } from "../redux/store"; import { useEffect, useState } from "react"; +import { getPlatform } from "../util"; const StyledButton = styled(Button)<{ color?: string | null; isDisabled: boolean; + showStop: boolean; }>` margin: auto; margin-top: 8px; margin-bottom: 16px; display: grid; + width: 130px; grid-template-columns: 22px 1fr; align-items: center; - background-color: ${(props) => props.color || "#be1b55"}; + background-color: ${(props) => + `${props.color || "#be1b55"}${props.showStop ? "33" : ""}`}; opacity: ${(props) => (props.isDisabled ? 0.5 : 1.0)}; + border: 1px solid + ${(props) => (props.showStop ? props.color || "#be1b55" : "transparent")}; + cursor: ${(props) => (props.isDisabled ? "default" : "pointer")}; &:hover:enabled { - background-color: ${(props) => props.color || "#be1b55"}; + background-color: ${(props) => + `${props.color || "#be1b55"}${props.showStop ? "33" : ""}`}; ${(props) => props.isDisabled ? "cursor: default;" @@ -36,6 +44,7 @@ function ContinueButton(props: { onClick?: () => void; hidden?: boolean; disabled: boolean; + showStop: boolean; }) { const vscMediaUrl = useSelector( (state: RootStore) => state.config.vscMediaUrl @@ -61,6 +70,7 @@ function ContinueButton(props: { return ( ); } diff --git a/extension/react-app/src/components/EditableDiv.tsx b/gui/src/components/EditableDiv.tsx similarity index 100% rename from extension/react-app/src/components/EditableDiv.tsx rename to gui/src/components/EditableDiv.tsx diff --git a/extension/react-app/src/components/ErrorStepContainer.tsx b/gui/src/components/ErrorStepContainer.tsx similarity index 90% rename from extension/react-app/src/components/ErrorStepContainer.tsx rename to gui/src/components/ErrorStepContainer.tsx index 07c0a0461..4faa755c3 100644 --- a/extension/react-app/src/components/ErrorStepContainer.tsx +++ b/gui/src/components/ErrorStepContainer.tsx @@ -1,6 +1,6 @@ import React from "react"; import styled from "styled-components"; -import { HistoryNode } from "../../../schema/HistoryNode"; +import { HistoryNode } from "../schema/HistoryNode"; import { defaultBorderRadius, vscBackground } from "."; import HeaderButtonWithText from "./HeaderButtonWithText"; import { @@ -37,7 +37,7 @@ function ErrorStepContainer(props: ErrorStepContainerProps) { props.onClose()}> - props.onDelete()}> + props.onDelete()}>
    diff --git a/gui/src/components/FileIcon.tsx b/gui/src/components/FileIcon.tsx new file mode 100644 index 000000000..6fc1a8f0c --- /dev/null +++ b/gui/src/components/FileIcon.tsx @@ -0,0 +1,31 @@ +import React from "react"; +import DOMPurify from "dompurify"; +import { themeIcons } from "seti-file-icons"; + +const FileIcon = ({ filename, height, width }) => { + const getIcon = themeIcons({ + blue: "#268bd2", + grey: "#657b83", + "grey-light": "#839496", + green: "#859900", + orange: "#cb4b16", + pink: "#d33682", + purple: "#6c71c4", + red: "#dc322f", + white: "#fdf6e3", + yellow: "#b58900", + ignore: "#586e75", + }); + // Sanitize the SVG string before rendering it + const { svg, color } = getIcon(filename); + const sanitizedSVG = DOMPurify.sanitize(svg); + + return ( +
    + ); +}; + +export default FileIcon; diff --git a/extension/react-app/src/components/HeaderButtonWithText.tsx b/gui/src/components/HeaderButtonWithText.tsx similarity index 100% rename from extension/react-app/src/components/HeaderButtonWithText.tsx rename to gui/src/components/HeaderButtonWithText.tsx diff --git a/extension/react-app/src/components/InfoHover.tsx b/gui/src/components/InfoHover.tsx similarity index 54% rename from extension/react-app/src/components/InfoHover.tsx rename to gui/src/components/InfoHover.tsx index 2cb8ad71e..eafe4be19 100644 --- a/extension/react-app/src/components/InfoHover.tsx +++ b/gui/src/components/InfoHover.tsx @@ -1,17 +1,25 @@ import { InformationCircleIcon } from "@heroicons/react/24/outline"; import { StyledTooltip } from "."; +import ReactDOM from "react-dom"; const InfoHover = ({ msg }: { msg: string }) => { const id = "info-hover"; + const tooltipPortalDiv = document.getElementById("tooltip-portal-div"); + return ( <> - + {tooltipPortalDiv && + ReactDOM.createPortal( + + {msg} + , + tooltipPortalDiv + )} ); }; diff --git a/extension/react-app/src/components/InputAndButton.tsx b/gui/src/components/InputAndButton.tsx similarity index 100% rename from extension/react-app/src/components/InputAndButton.tsx rename to gui/src/components/InputAndButton.tsx diff --git a/extension/react-app/src/components/Layout.tsx b/gui/src/components/Layout.tsx similarity index 80% rename from extension/react-app/src/components/Layout.tsx rename to gui/src/components/Layout.tsx index db31c8db2..cf03818db 100644 --- a/extension/react-app/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -21,6 +21,7 @@ import { useNavigate, useLocation } from "react-router-dom"; import ModelSelect from "./ModelSelect"; import ProgressBar from "./ProgressBar"; import { temporarilyClearSession } from "../redux/slices/serverStateReducer"; +import { getFontSize } from "../util"; // #region Styled Components const FOOTER_HEIGHT = "1.8em"; @@ -83,6 +84,14 @@ const GridDiv = styled.div` overflow-x: visible; `; +const DropdownPortalDiv = styled.div` + background-color: ${secondaryDark}; + position: relative; + margin-left: 8px; + z-index: 200; + font-size: ${getFontSize()}; +`; + // #endregion const Layout = () => { @@ -181,35 +190,37 @@ const Layout = () => { +