From 794e7b6aed71db5f97c582708caf498e93e57b27 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Thu, 25 Apr 2024 13:49:40 +0100 Subject: [PATCH] Add live server extension --- .../.vscode-oss/extensions/extensions.json | 2 +- .../.vsixmanifest | 47 + .../CHANGELOG.md | 13 + .../LICENSE.txt | 40 + .../README.md | 164 + .../dist/bundle/client/highlight.ts | 407 ++ .../dist/bundle/client/injected.js | 1 + .../dist/bundle/client/injected.ts | 432 ++ .../dist/bundle/public/favicon.ico | Bin 0 -> 15406 bytes .../dist/bundle/public/scripts/diffDOM.js | 2 + .../dist/bundle/public/scripts/diffDOM.js.map | 1 + .../dist/bundle/public/scripts/directory.css | 168 + .../dist/bundle/public/scripts/query.js | 40 + .../bundle/public/serve-explorer/_README.md | 3 + .../public/serve-explorer/explorer.html | 72 + .../public/serve-explorer/icons/audio.svg | 4 + .../bundle/public/serve-explorer/icons/c.svg | 1 + .../serve-explorer/icons/certificate.svg | 3 + .../public/serve-explorer/icons/changelog.svg | 1 + .../public/serve-explorer/icons/console.svg | 3 + .../public/serve-explorer/icons/cpp.svg | 1 + .../public/serve-explorer/icons/css.svg | 3 + .../public/serve-explorer/icons/database.svg | 1 + .../public/serve-explorer/icons/disc.svg | 1 + .../public/serve-explorer/icons/document.svg | 3 + .../public/serve-explorer/icons/eslint.svg | 3 + .../public/serve-explorer/icons/file.svg | 3 + .../serve-explorer/icons/fiveserver.svg | 326 ++ .../public/serve-explorer/icons/folder.svg | 47 + .../public/serve-explorer/icons/font.svg | 3 + .../public/serve-explorer/icons/git.svg | 4 + .../bundle/public/serve-explorer/icons/h.svg | 6 + .../public/serve-explorer/icons/html.svg | 3 + .../public/serve-explorer/icons/image.svg | 3 + .../public/serve-explorer/icons/java.svg | 3 + .../serve-explorer/icons/javascript.svg | 3 + .../public/serve-explorer/icons/json.svg | 1 + .../public/serve-explorer/icons/key.svg | 3 + .../public/serve-explorer/icons/less.svg | 1 + .../public/serve-explorer/icons/markdown.svg | 3 + .../public/serve-explorer/icons/nodejs.svg | 3 + .../public/serve-explorer/icons/npm.svg | 8 + .../public/serve-explorer/icons/pdf.svg | 1 + .../public/serve-explorer/icons/php.svg | 1 + .../public/serve-explorer/icons/prettier.svg | 35 + .../public/serve-explorer/icons/react.svg | 3 + .../public/serve-explorer/icons/react_ts.svg | 1 + .../public/serve-explorer/icons/readme.svg | 3 + .../public/serve-explorer/icons/sass.svg | 1 + .../public/serve-explorer/icons/settings.svg | 3 + .../public/serve-explorer/icons/svg.svg | 1 + .../public/serve-explorer/icons/test-js.svg | 1 + .../public/serve-explorer/icons/test-jsx.svg | 4 + .../public/serve-explorer/icons/test-ts.svg | 1 + .../serve-explorer/icons/typescript-def.svg | 6 + .../serve-explorer/icons/typescript.svg | 3 + .../public/serve-explorer/icons/video.svg | 4 + .../public/serve-explorer/icons/xml.svg | 4 + .../public/serve-explorer/icons/yaml.svg | 1 + .../public/serve-explorer/icons/zip.svg | 3 + .../bundle/public/serve-explorer/style.css | 201 + .../dist/bundle/public/serve-php/README.md | 1 + .../dist/bundle/public/serve-php/error.html | 54 + .../dist/bundle/public/serve-php/index.html | 64 + .../bundle/public/serve-preview/LICENSE.js | 5 + .../public/serve-preview/highlight.min.js | 1358 ++++++ .../serve-preview/preview-fullscreen.html | 77 + .../bundle/public/serve-preview/preview.html | 65 + .../bundle/public/serve-preview/status.html | 62 + .../bundle/public/serve-preview/vs.min.css | 1 + .../public/serve-preview/vs2015.min.css | 1 + .../dist/bundle/subdir/main.js | 1034 ++++ .../dist/bundle/subdir/parseBody.js | 250 + .../dist/client/highlight.ts | 407 ++ .../dist/client/injected.js | 1 + .../dist/client/injected.ts | 432 ++ .../dist/public/favicon.ico | Bin 0 -> 15406 bytes .../dist/public/scripts/diffDOM.js | 2 + .../dist/public/scripts/diffDOM.js.map | 1 + .../dist/public/scripts/directory.css | 168 + .../dist/public/scripts/query.js | 40 + .../dist/public/serve-explorer/_README.md | 3 + .../dist/public/serve-explorer/explorer.html | 72 + .../public/serve-explorer/icons/audio.svg | 4 + .../dist/public/serve-explorer/icons/c.svg | 1 + .../serve-explorer/icons/certificate.svg | 3 + .../public/serve-explorer/icons/changelog.svg | 1 + .../public/serve-explorer/icons/console.svg | 3 + .../dist/public/serve-explorer/icons/cpp.svg | 1 + .../dist/public/serve-explorer/icons/css.svg | 3 + .../public/serve-explorer/icons/database.svg | 1 + .../dist/public/serve-explorer/icons/disc.svg | 1 + .../public/serve-explorer/icons/document.svg | 3 + .../public/serve-explorer/icons/eslint.svg | 3 + .../dist/public/serve-explorer/icons/file.svg | 3 + .../serve-explorer/icons/fiveserver.svg | 326 ++ .../public/serve-explorer/icons/folder.svg | 47 + .../dist/public/serve-explorer/icons/font.svg | 3 + .../dist/public/serve-explorer/icons/git.svg | 4 + .../dist/public/serve-explorer/icons/h.svg | 6 + .../dist/public/serve-explorer/icons/html.svg | 3 + .../public/serve-explorer/icons/image.svg | 3 + .../dist/public/serve-explorer/icons/java.svg | 3 + .../serve-explorer/icons/javascript.svg | 3 + .../dist/public/serve-explorer/icons/json.svg | 1 + .../dist/public/serve-explorer/icons/key.svg | 3 + .../dist/public/serve-explorer/icons/less.svg | 1 + .../public/serve-explorer/icons/markdown.svg | 3 + .../public/serve-explorer/icons/nodejs.svg | 3 + .../dist/public/serve-explorer/icons/npm.svg | 8 + .../dist/public/serve-explorer/icons/pdf.svg | 1 + .../dist/public/serve-explorer/icons/php.svg | 1 + .../public/serve-explorer/icons/prettier.svg | 35 + .../public/serve-explorer/icons/react.svg | 3 + .../public/serve-explorer/icons/react_ts.svg | 1 + .../public/serve-explorer/icons/readme.svg | 3 + .../dist/public/serve-explorer/icons/sass.svg | 1 + .../public/serve-explorer/icons/settings.svg | 3 + .../dist/public/serve-explorer/icons/svg.svg | 1 + .../public/serve-explorer/icons/test-js.svg | 1 + .../public/serve-explorer/icons/test-jsx.svg | 4 + .../public/serve-explorer/icons/test-ts.svg | 1 + .../serve-explorer/icons/typescript-def.svg | 6 + .../serve-explorer/icons/typescript.svg | 3 + .../public/serve-explorer/icons/video.svg | 4 + .../dist/public/serve-explorer/icons/xml.svg | 4 + .../dist/public/serve-explorer/icons/yaml.svg | 1 + .../dist/public/serve-explorer/icons/zip.svg | 3 + .../dist/public/serve-explorer/style.css | 201 + .../dist/public/serve-php/README.md | 1 + .../dist/public/serve-php/error.html | 54 + .../dist/public/serve-php/index.html | 64 + .../dist/public/serve-preview/LICENSE.js | 5 + .../public/serve-preview/highlight.min.js | 1358 ++++++ .../serve-preview/preview-fullscreen.html | 77 + .../dist/public/serve-preview/preview.html | 65 + .../dist/public/serve-preview/status.html | 62 + .../dist/public/serve-preview/vs.min.css | 1 + .../dist/public/serve-preview/vs2015.min.css | 1 + .../img/icon-king.png | Bin 0 -> 30240 bytes .../img/icon-star.png | Bin 0 -> 27000 bytes .../img/icon.png | Bin 0 -> 26422 bytes .../node_modules/@yandeu/open-cjs/bundle.cjs | 1 + .../@yandeu/open-cjs/package.json | 22 + .../node_modules/@yandeu/open-cjs/xdg-open | 1066 ++++ .../node_modules/fsevents/LICENSE | 22 + .../node_modules/fsevents/README.md | 89 + .../node_modules/fsevents/fsevents.d.ts | 46 + .../node_modules/fsevents/fsevents.js | 83 + .../node_modules/fsevents/fsevents.node | Bin 0 -> 163626 bytes .../node_modules/fsevents/package.json | 62 + .../package-lock.json | 4288 +++++++++++++++++ .../package.json | 223 + 153 files changed, 14521 insertions(+), 1 deletion(-) create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/.vsixmanifest create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/CHANGELOG.md create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/LICENSE.txt create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/README.md create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/highlight.ts create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/injected.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/injected.ts create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/favicon.ico create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/scripts/diffDOM.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/scripts/diffDOM.js.map create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/scripts/directory.css create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/scripts/query.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/_README.md create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/explorer.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/audio.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/c.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/certificate.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/changelog.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/console.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/cpp.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/css.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/database.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/disc.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/document.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/eslint.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/file.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/fiveserver.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/folder.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/font.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/git.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/h.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/html.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/image.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/java.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/javascript.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/json.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/key.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/less.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/markdown.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/nodejs.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/npm.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/pdf.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/php.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/prettier.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/react.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/react_ts.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/readme.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/sass.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/settings.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/svg.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-js.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-jsx.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-ts.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/typescript-def.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/typescript.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/video.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/xml.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/yaml.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/zip.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/style.css create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/README.md create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/error.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/index.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/LICENSE.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/highlight.min.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/preview-fullscreen.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/preview.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/status.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/vs.min.css create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/vs2015.min.css create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/subdir/main.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/subdir/parseBody.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/client/highlight.ts create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/client/injected.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/client/injected.ts create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/favicon.ico create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/scripts/diffDOM.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/scripts/diffDOM.js.map create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/scripts/directory.css create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/scripts/query.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/_README.md create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/explorer.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/audio.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/c.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/certificate.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/changelog.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/console.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/cpp.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/css.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/database.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/disc.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/document.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/eslint.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/file.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/fiveserver.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/folder.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/font.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/git.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/h.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/html.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/image.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/java.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/javascript.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/json.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/key.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/less.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/markdown.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/nodejs.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/npm.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/pdf.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/php.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/prettier.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/react.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/react_ts.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/readme.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/sass.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/settings.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/svg.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/test-js.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/test-jsx.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/test-ts.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/typescript-def.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/typescript.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/video.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/xml.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/yaml.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/icons/zip.svg create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-explorer/style.css create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-php/README.md create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-php/error.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-php/index.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-preview/LICENSE.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-preview/highlight.min.js create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-preview/preview-fullscreen.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-preview/preview.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-preview/status.html create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-preview/vs.min.css create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/public/serve-preview/vs2015.min.css create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/img/icon-king.png create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/img/icon-star.png create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/img/icon.png create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/node_modules/@yandeu/open-cjs/bundle.cjs create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/node_modules/@yandeu/open-cjs/package.json create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/node_modules/@yandeu/open-cjs/xdg-open create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/node_modules/fsevents/LICENSE create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/node_modules/fsevents/README.md create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/node_modules/fsevents/fsevents.d.ts create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/node_modules/fsevents/fsevents.js create mode 100755 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/node_modules/fsevents/fsevents.node create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/node_modules/fsevents/package.json create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/package-lock.json create mode 100644 dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/package.json diff --git a/dotfiles/.vscode-oss/extensions/extensions.json b/dotfiles/.vscode-oss/extensions/extensions.json index e2571bbf..1f7ccf75 100644 --- a/dotfiles/.vscode-oss/extensions/extensions.json +++ b/dotfiles/.vscode-oss/extensions/extensions.json @@ -1 +1 @@ -[{"identifier":{"id":"piousdeer.adwaita-theme","uuid":"93fbc635-4a9a-4ff1-88ba-bf017484c602"},"version":"1.1.0","location":{"$mid":1,"path":"/home/trude/.vscode-oss/extensions/piousdeer.adwaita-theme-1.1.0-universal","scheme":"file"},"relativeLocation":"piousdeer.adwaita-theme-1.1.0-universal","metadata":{"id":"93fbc635-4a9a-4ff1-88ba-bf017484c602","publisherId":"93befe42-7314-4d14-8724-19419a27ed64","publisherDisplayName":"piousdeer","targetPlatform":"universal","updated":false,"isPreReleaseVersion":false,"hasPreReleaseVersion":false,"installedTimestamp":1714048423200,"pinned":false,"source":"gallery"}},{"identifier":{"id":"oderwat.indent-rainbow","uuid":"eaa2127d-cb69-4ab9-8505-a60c9ee5f28b"},"version":"8.3.1","location":{"$mid":1,"fsPath":"/home/trude/.vscode-oss/extensions/oderwat.indent-rainbow-8.3.1-universal","external":"file:///home/trude/.vscode-oss/extensions/oderwat.indent-rainbow-8.3.1-universal","path":"/home/trude/.vscode-oss/extensions/oderwat.indent-rainbow-8.3.1-universal","scheme":"file"},"relativeLocation":"oderwat.indent-rainbow-8.3.1-universal","metadata":{"id":"eaa2127d-cb69-4ab9-8505-a60c9ee5f28b","publisherId":"ac064ae0-224d-4351-9aa4-45ef7bf3ed21","publisherDisplayName":"oderwat","targetPlatform":"universal","updated":false,"isPreReleaseVersion":false,"hasPreReleaseVersion":false,"installedTimestamp":1714048433635,"pinned":false,"source":"gallery"}}] \ No newline at end of file +[{"identifier":{"id":"piousdeer.adwaita-theme","uuid":"93fbc635-4a9a-4ff1-88ba-bf017484c602"},"version":"1.1.0","location":{"$mid":1,"path":"/home/trude/.vscode-oss/extensions/piousdeer.adwaita-theme-1.1.0-universal","scheme":"file"},"relativeLocation":"piousdeer.adwaita-theme-1.1.0-universal","metadata":{"id":"93fbc635-4a9a-4ff1-88ba-bf017484c602","publisherId":"93befe42-7314-4d14-8724-19419a27ed64","publisherDisplayName":"piousdeer","targetPlatform":"universal","updated":false,"isPreReleaseVersion":false,"hasPreReleaseVersion":false,"installedTimestamp":1714048423200,"pinned":false,"source":"gallery"}},{"identifier":{"id":"oderwat.indent-rainbow","uuid":"eaa2127d-cb69-4ab9-8505-a60c9ee5f28b"},"version":"8.3.1","location":{"$mid":1,"path":"/home/trude/.vscode-oss/extensions/oderwat.indent-rainbow-8.3.1-universal","scheme":"file"},"relativeLocation":"oderwat.indent-rainbow-8.3.1-universal","metadata":{"id":"eaa2127d-cb69-4ab9-8505-a60c9ee5f28b","publisherId":"ac064ae0-224d-4351-9aa4-45ef7bf3ed21","publisherDisplayName":"oderwat","targetPlatform":"universal","updated":false,"isPreReleaseVersion":false,"hasPreReleaseVersion":false,"installedTimestamp":1714048433635,"pinned":false,"source":"gallery"}},{"identifier":{"id":"yandeu.five-server","uuid":"a18a6705-5a6a-4e14-a4a7-3efa6b7647d5"},"version":"0.3.1","location":{"$mid":1,"fsPath":"/home/trude/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal","external":"file:///home/trude/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal","path":"/home/trude/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal","scheme":"file"},"relativeLocation":"yandeu.five-server-0.3.1-universal","metadata":{"id":"a18a6705-5a6a-4e14-a4a7-3efa6b7647d5","publisherId":"a342b7ab-2d58-4313-9c2d-f506bb2aa10c","publisherDisplayName":"yandeu","targetPlatform":"universal","updated":false,"isPreReleaseVersion":false,"hasPreReleaseVersion":false,"installedTimestamp":1714049361078,"pinned":false,"source":"gallery"}}] \ No newline at end of file diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/.vsixmanifest b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/.vsixmanifest new file mode 100644 index 00000000..009a2c31 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/.vsixmanifest @@ -0,0 +1,47 @@ + + + + + Live Server (Five Server) + A better Live Server with instant updates, highlights and some PHP support. + remote,browser,development,tool,html,php,http,live,instant,server,cli,preview,reload,refresh,update,highlight,live-server,live server,keybindings,__sponsor_extension + Other + Public + + + + + + + + + + + + + + + + + + + + + + + + extension/LICENSE.txt + extension/img/icon-star.png + + + + + + + + + + + + + \ No newline at end of file diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/CHANGELOG.md b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/CHANGELOG.md new file mode 100644 index 00000000..78e81b69 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/CHANGELOG.md @@ -0,0 +1,13 @@ +# Change Log + +_There will be no change log while < v1.0.0_ + +--- + +All notable changes to the "Five Server" extension will be documented in this file. + +Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. + +## [Unreleased] + +- Initial release diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/LICENSE.txt b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/LICENSE.txt new file mode 100644 index 00000000..f3790efb --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/LICENSE.txt @@ -0,0 +1,40 @@ +Five Server License + +Copyright (C) 2021, Yannick Deubel (https://github.com/yandeu) +All rights reserved. + +This file is part of the "Five Server" project. + +1. DEFINITIONS + a) "Licensor" is Yannick Deubel (https://github.com/yandeu). + b) "Software" is the software known as Five Server. + +2. RESTRICTIONS +You are NOT permitted to: + a) Edit, alter, modify, adapt, translate or otherwise change the whole or any + part of the Software without the express permission of the Licensor. + b) Decompile, disassemble or reverse engineer the Software or attempt to do + any such things. + c) Reproduce, copy, distribute, resell or otherwise use the whole or any part + of the Software for any commercial or non-commercial purpose. + d) Disable, modify or hide notifications sent by the Software. + +3. OWNERSHIP +The Software, copyright, and other intellectual property rights of whatever +nature in the Software, including any modifications made thereto are and shall +remain the property of the Licensor. + +4. WARRANTY DISCLAIMER +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. + +5. LIMITATION OF LIABILITY +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/README.md b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/README.md new file mode 100644 index 00000000..9faf3d09 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/README.md @@ -0,0 +1,164 @@ +

+ +

+ +

Five Server

+ +

+ A better live server +

+ +

+ + VERSION + Visual Studio Marketplace Rating + + + GitHub Sponsors + +

+ +- ⚡️ **Updates your files instantly** while typing on your keyboard +- ⬢ Remote displays the logs of your browser/phone in your terminal +- 💡 Highlights the code you are working on in your browser +- 🚀 Navigates your browser automatically to the current editing file +- 🐘 Includes **PHP Support** for serving and live reload all your `.php` files +- 🗄️ Supports all **Server Side Rendered Apps** like express.js + +

+ + demo + +

+ +## Get Started + +4 ways to start your live server. + +1. Click **Go Live** in the Status Bar (bottom of VSCode) +2. Right-Click a Open File > **Open with Five Server** +3. Right-Click a File in the Explorer > **Open with Five Server** +4. Right-Click a Folder in the Explorer > **Open with Five Server (root)** + _(will set the current folder as root until you stop the server)_ + +## Videos + +- [Instant Update](https://youtu.be/3-zKYNrxKOk) +- [Instant Update (with PHP)](https://youtu.be/4s7q5chX-e0) +- [New Highlight Styles](https://youtu.be/zlKxvw-vy_M) + +## Quick Test + +Something is not working? Try the simple setup below: + +- make sure you have uninstalled the old **Live Server** +- check if you have the latest version + [![VERSION](https://img.shields.io/visual-studio-marketplace/v/yandeu.five-server.svg?color=228cb3&label=)](https://marketplace.visualstudio.com/items?itemName=yandeu.five-server) +- make a new folder `www` on the desktop +- add the `index.html` (see below) +- open the folder `www` with VSCode +- click on **Go Live** + +```html + + + + HTML Test File + + +

It works!

+ + +``` + +The setup above works but your project not? + +- Maybe because your project is on another drive? +- Or maybe on a USB Stick or remote folder like `OneDrive` or `DropBox`? +- Make sure you open a folder in VSCode and NOT just a single file. +- All these things can sometimes cause issues. + +## About PHP + +Although Five Server can render, display and live reload PHP, it does not provide a full PHP server. If you want to develop a big PHP app, you manually have to link the client-side Five Server script with your PHP files. See [five-server-with-php](https://github.com/yandeu/five-server-with-php). + +## Features + +💡 Most **advanced features** are disabled by default. +Turn them on in the settings or by configuring a `fiveserver.config.js` file in the root of your workspace. + +Note: + +- **Instant Update** & **Highlight** works with `.html` and `.php` files. +- All remote logs will be visible in a new Terminal called "Five Server". +- The features `highlight`, `injectBody` and `remoteLogs` are disable by default. +- To use the `highlight` feature, `injectBody` has to be activated. +- `injectBody` performs some simple HTML Validation. When using `injectBody`, a message will be displayed if your HTML Page is invalid. +- To temporarily disable `highlight` for a single HTML Tag, add a **H**. + Example: `
Don't highlight me
` + +Config File Example: + +```js +// fiveserver.config.js +module.exports = { + highlight: true, // enable highlight feature + injectBody: true, // enable instant update + remoteLogs: true, // enable remoteLogs + remoteLogs: "yellow", // enable remoteLogs and use the color yellow + injectCss: false, // disable injecting css + navigate: true, // enable auto-navigation +}; +``` + +### More Docs + +- Read [Five Server - Documentation](https://github.com/yandeu/five-server#documentation). +- Read [Five Server - Config File](https://github.com/yandeu/five-server#config-file). +- Check all available options for the **Config File** in [`/src/types.ts`](https://github.com/yandeu/five-server/blob/main/src/types.ts). +- Check all available colors for the **remoteLogs** in [`/src/colors.ts`](https://github.com/yandeu/five-server/blob/main/src/colors.ts). + +### Known Issues + +- Sometimes `injectBody` does not work well when using inline JavaScript inside ``. + As a workaround, execute your inline scripts after Five Server is connected: + +```html + +``` + +### Debug Mode + +Need to debug something? Set `debugVSCode` to true. + +```js +// fiveserver.config.js +module.exports = { + debugVSCode: true, +}; +``` + +## Release Notes + +_No release notes while < v1.0.0_ + +## Support Five Server + +[![GitHub Sponsors](https://img.shields.io/badge/Sponsor-%E2%9D%A4-lightgrey?style=social&logo=GitHub)](https://github.com/sponsors/yandeu) +[![One-Time Donation](https://img.shields.io/badge/One--Time%20Donation-$1-lightgrey?style=social&logo=GitHub)](https://github.com/sponsors/yandeu?frequency=one-time&sponsor=yandeu#sponsors:~:text=%241%20one%20time) diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/highlight.ts b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/highlight.ts new file mode 100644 index 00000000..41415802 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/highlight.ts @@ -0,0 +1,407 @@ +/* eslint-disable prefer-object-spread */ +/* eslint-disable prefer-template */ + +/** + * @copyright + * Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved. (https://github.com/adobe) + * Copyright (c) 2021 Yannick Deubel (https://github.com/yandeu) + * + * @license {@link https://github.com/yandeu/five-server/blob/main/LICENSE LICENSE} + * + * @description + * copied from https://github.com/adobe/brackets/blob/master/src/LiveDevelopment/Agents/RemoteFunctions.js + * previously licensed under MIT (https://github.com/adobe/brackets/blob/master/LICENSE) + */ + +let _remoteHighlight +const HIGHLIGHT_CLASS_NAME = '__brackets-ld-highlight' + +const config = { + experimental: false, // enable experimental features + debug: true, // enable debug output and helpers + autoConnect: false, // go live automatically after startup? + highlight: true, // enable highlighting? + highlightConfig: { + // the highlight configuration for the Inspector + borderColor: { r: 255, g: 229, b: 153, a: 0.66 }, + contentColor: { r: 111, g: 168, b: 220, a: 0.55 }, + marginColor: { r: 246, g: 178, b: 107, a: 0.66 }, + paddingColor: { r: 147, g: 196, b: 125, a: 0.66 }, + showInfo: true + }, + remoteHighlight: { + animateStartValue: { + 'background-color': 'rgba(0, 162, 255, 0.5)', + opacity: 0 + }, + animateEndValue: { + 'background-color': 'rgb(106, 171, 233)', //'rgba(0, 162, 255, 0)', + opacity: 0.6 + }, + paddingStyling: { + //'border-width': '1px', + //'border-style': 'dashed', + //'border-color': 'rgba(0, 162, 255, 0.5)', + 'background-color': 'rgb(156, 221, 156)' + }, + marginStyling: { + 'background-color': 'rgb(255 ,177 ,95)' // 'rgba(21, 165, 255, 0.58)' + }, + borderColor: 'rgba(21, 165, 255, 0.85)', + showPaddingMargin: true + } +} + +// Checks if the element is in Viewport in the client browser +function isInViewport(element) { + const rect = element.getBoundingClientRect() + const html = window.document.documentElement + return ( + rect.top >= 0 && + rect.left >= 0 && + rect.bottom <= (window.innerHeight || html.clientHeight) && + rect.right <= (window.innerWidth || html.clientWidth) + ) +} + +// set an event on a element +function _trigger(element, name, value, autoRemove?) { + // MOD(yandeu): Do not automatically remove the highlight. + /* + const key = 'data-ld-' + name + if (value !== undefined && value !== null) { + element.setAttribute(key, value) + if (autoRemove) { + window.setTimeout(element.removeAttribute.bind(element, key)) + } + } else { + element.removeAttribute(key) + } + */ +} + +// compute the screen offset of an element +function _screenOffset(element) { + const elemBounds = element.getBoundingClientRect(), + body = window.document.body + let offsetTop, offsetLeft + + if (window.getComputedStyle(body).position === 'static') { + offsetLeft = elemBounds.left + window.pageXOffset + offsetTop = elemBounds.top + window.pageYOffset + } else { + const bodyBounds = body.getBoundingClientRect() + offsetLeft = elemBounds.left - bodyBounds.left + offsetTop = elemBounds.top - bodyBounds.top + } + return { left: offsetLeft, top: offsetTop } +} + +// returns the distance from the top of the closest relatively positioned parent element +function getDocumentOffsetTop(element) { + return element.offsetTop + (element.offsetParent ? getDocumentOffsetTop(element.offsetParent) : 0) +} + +// redraw active highlights +function redrawHighlights() { + if (_remoteHighlight) { + _remoteHighlight.redraw() + } +} + +let req, timeout +const animateHighlight = function (time) { + if (req) { + window.cancelAnimationFrame(req) + window.clearTimeout(timeout) + } + req = window.requestAnimationFrame(redrawHighlights) + + timeout = setTimeout(function () { + window.cancelAnimationFrame(req) + req = null + }, time * 1000) +} + +export class Highlight { + trigger: boolean + elements: any[] = [] + selector = '[data-highlight="true"]' + + constructor(trigger: boolean) { + this.trigger = !!trigger + } + + elementExists(element) { + let i + for (i in this.elements) { + if (this.elements[i] === element) { + return true + } + } + return false + } + + makeHighlightDiv(element, doAnimation) { + const elementBounds = element.getBoundingClientRect(), + highlight = window.document.createElement('div'), + elementStyling = window.getComputedStyle(element), + transitionDuration = parseFloat(elementStyling.getPropertyValue('transition-duration')), + animationDuration = parseFloat(elementStyling.getPropertyValue('animation-duration')) + + if (transitionDuration) { + animateHighlight(transitionDuration) + } + + if (animationDuration) { + animateHighlight(animationDuration) + } + + // Don't highlight elements with 0 width & height + if (elementBounds.width === 0 && elementBounds.height === 0) { + return + } + + const realElBorder = { + right: elementStyling.getPropertyValue('border-right-width'), + left: elementStyling.getPropertyValue('border-left-width'), + top: elementStyling.getPropertyValue('border-top-width'), + bottom: elementStyling.getPropertyValue('border-bottom-width') + } + + const borderBox = elementStyling.boxSizing === 'border-box' + + let innerWidth = parseFloat(elementStyling.width), + innerHeight = parseFloat(elementStyling.height), + outerHeight = innerHeight, + outerWidth = innerWidth + + if (!borderBox) { + innerWidth += parseFloat(elementStyling.paddingLeft) + parseFloat(elementStyling.paddingRight) + innerHeight += parseFloat(elementStyling.paddingTop) + parseFloat(elementStyling.paddingBottom) + ;(outerWidth = innerWidth + parseFloat(realElBorder.right) + parseFloat(realElBorder.left)), + (outerHeight = innerHeight + parseFloat(realElBorder.bottom) + parseFloat(realElBorder.top)) + } + + const visualizations = { + horizontal: 'left, right', + vertical: 'top, bottom' + } + + const drawPaddingRect = function (side) { + const elStyling = {} + + if (visualizations.horizontal.indexOf(side) >= 0) { + elStyling['width'] = elementStyling.getPropertyValue('padding-' + side) + elStyling['height'] = innerHeight + 'px' + elStyling['top'] = 0 + + if (borderBox) { + elStyling['height'] = innerHeight - parseFloat(realElBorder.top) - parseFloat(realElBorder.bottom) + 'px' + } + } else { + elStyling['height'] = elementStyling.getPropertyValue('padding-' + side) + elStyling['width'] = innerWidth + 'px' + elStyling['left'] = 0 + + if (borderBox) { + elStyling['width'] = innerWidth - parseFloat(realElBorder.left) - parseFloat(realElBorder.right) + 'px' + } + } + + elStyling[side] = 0 + elStyling['position'] = 'absolute' + + return elStyling + } + + const drawMarginRect = function (side) { + const elStyling = {} + + const margin = [] + margin['right'] = parseFloat(elementStyling.getPropertyValue('margin-right')) + margin['top'] = parseFloat(elementStyling.getPropertyValue('margin-top')) + margin['bottom'] = parseFloat(elementStyling.getPropertyValue('margin-bottom')) + margin['left'] = parseFloat(elementStyling.getPropertyValue('margin-left')) + + if (visualizations['horizontal'].indexOf(side) >= 0) { + elStyling['width'] = elementStyling.getPropertyValue('margin-' + side) + elStyling['height'] = outerHeight + margin['top'] + margin['bottom'] + 'px' + elStyling['top'] = '-' + (margin['top'] + parseFloat(realElBorder.top)) + 'px' + } else { + elStyling['height'] = elementStyling.getPropertyValue('margin-' + side) + elStyling['width'] = outerWidth + 'px' + elStyling['left'] = '-' + realElBorder.left + } + + elStyling[side] = '-' + (margin[side] + parseFloat(realElBorder[side])) + 'px' + elStyling['position'] = 'absolute' + + return elStyling + } + + const setVisibility = function (el) { + if (!config.remoteHighlight.showPaddingMargin || parseInt(el.height, 10) <= 0 || parseInt(el.width, 10) <= 0) { + el.display = 'none' + } else { + el.display = 'block' + } + } + + const paddingVisualizations = [ + drawPaddingRect('top'), + drawPaddingRect('right'), + drawPaddingRect('bottom'), + drawPaddingRect('left') + ] + + const marginVisualizations = [ + drawMarginRect('top'), + drawMarginRect('right'), + drawMarginRect('bottom'), + drawMarginRect('left') + ] + + const setupVisualizations = function (arr, config) { + let i + for (i = 0; i < arr.length; i++) { + setVisibility(arr[i]) + + // Applies to every visualisationElement (padding or margin div) + arr[i]['transform'] = 'none' + const el = window.document.createElement('div'), + styles = Object.assign({}, config, arr[i]) + + _setStyleValues(styles, el.style) + + highlight.appendChild(el) + } + } + + setupVisualizations(marginVisualizations, config.remoteHighlight.marginStyling) + setupVisualizations(paddingVisualizations, config.remoteHighlight.paddingStyling) + + highlight.className = HIGHLIGHT_CLASS_NAME + + const offset = _screenOffset(element) + + let el = element, + offsetLeft = 0, + offsetTop = 0 + + // Probably the easiest way to get elements position without including transform + do { + offsetLeft += el.offsetLeft + offsetTop += el.offsetTop + el = el.offsetParent + } while (el) + + const stylesToSet = { + left: offsetLeft + 'px', + top: offsetTop + 'px', + width: innerWidth + 'px', + height: innerHeight + 'px', + 'z-index': 2000000, + margin: 0, + padding: 0, + position: 'absolute', + 'pointer-events': 'none', + 'box-shadow': '0 0 1px #fff', + 'box-sizing': elementStyling.getPropertyValue('box-sizing'), + 'border-right': elementStyling.getPropertyValue('border-right'), + 'border-left': elementStyling.getPropertyValue('border-left'), + 'border-top': elementStyling.getPropertyValue('border-top'), + 'border-bottom': elementStyling.getPropertyValue('border-bottom'), + transform: elementStyling.getPropertyValue('transform'), + 'transform-origin': elementStyling.getPropertyValue('transform-origin'), + 'border-color': config.remoteHighlight.borderColor + } + + const mergedStyles = Object.assign({}, stylesToSet) + + const animateStartValues = config.remoteHighlight.animateStartValue + + const animateEndValues = config.remoteHighlight.animateEndValue + + const transitionValues = { + 'transition-property': 'opacity, background-color, transform', + 'transition-duration': '300ms, 2.3s' + } + + function _setStyleValues(styleValues, obj) { + let prop + + for (prop in styleValues) { + obj.setProperty(prop, styleValues[prop]) + } + } + + _setStyleValues(mergedStyles, highlight.style) + _setStyleValues(doAnimation ? animateStartValues : animateEndValues, highlight.style) + + if (doAnimation) { + _setStyleValues(transitionValues, highlight.style) + + window.setTimeout(function () { + _setStyleValues(animateEndValues, highlight.style) + }, 20) + } + + window.document.body.appendChild(highlight) + } + + add(element, doAnimation) { + if (this.elementExists(element) || element === window.document) { + return + } + if (this.trigger) { + _trigger(element, 'highlight', 1) + } + + if ((!window.event || window.event instanceof MessageEvent) && !isInViewport(element)) { + let top = getDocumentOffsetTop(element) + if (top) { + top -= window.innerHeight / 2 + window.scrollTo(0, top) + } + } + this.elements.push(element) + + this.makeHighlightDiv(element, doAnimation) + } + + clear() { + let i + const highlights = window.document.querySelectorAll('.' + HIGHLIGHT_CLASS_NAME), + body = window.document.body + + for (i = 0; i < highlights.length; i++) { + body.removeChild(highlights[i]) + } + + if (this.trigger) { + for (i = 0; i < this.elements.length; i++) { + _trigger(this.elements[i], 'highlight', 0) + } + } + + this.elements = [] + } + + redraw() { + let i, highlighted + + // When redrawing a selector-based highlight, run a new selector + // query to ensure we have the latest set of elements to highlight. + if (this.selector) { + highlighted = window.document.querySelectorAll(this.selector) + } else { + highlighted = this.elements.slice(0) + } + + this.clear() + for (i = 0; i < highlighted.length; i++) { + this.add(highlighted[i], false) + } + } +} diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/injected.js b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/injected.js new file mode 100644 index 00000000..209c06de --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/injected.js @@ -0,0 +1 @@ +(()=>{"use strict";const e="__brackets-ld-highlight",t={"background-color":"rgba(0, 162, 255, 0.5)",opacity:0},o={"background-color":"rgb(106, 171, 233)",opacity:.6},n={"background-color":"rgb(156, 221, 156)"},r={"background-color":"rgb(255 ,177 ,95)"},i="rgba(21, 165, 255, 0.85)",s=!0;function a(e){return e.offsetTop+(e.offsetParent?a(e.offsetParent):0)}function l(){}let d,c;const p=function(e){d&&(window.cancelAnimationFrame(d),window.clearTimeout(c)),d=window.requestAnimationFrame(l),c=setTimeout((function(){window.cancelAnimationFrame(d),d=null}),1e3*e)};class f{constructor(e){this.elements=[],this.selector='[data-highlight="true"]',this.trigger=!!e}elementExists(e){let t;for(t in this.elements)if(this.elements[t]===e)return!0;return!1}makeHighlightDiv(a,l){const d=a.getBoundingClientRect(),c=window.document.createElement("div"),f=window.getComputedStyle(a),u=parseFloat(f.getPropertyValue("transition-duration")),g=parseFloat(f.getPropertyValue("animation-duration"));if(u&&p(u),g&&p(g),0===d.width&&0===d.height)return;const h={right:f.getPropertyValue("border-right-width"),left:f.getPropertyValue("border-left-width"),top:f.getPropertyValue("border-top-width"),bottom:f.getPropertyValue("border-bottom-width")},m="border-box"===f.boxSizing;let y=parseFloat(f.width),w=parseFloat(f.height),b=w,v=y;m||(y+=parseFloat(f.paddingLeft)+parseFloat(f.paddingRight),w+=parseFloat(f.paddingTop)+parseFloat(f.paddingBottom),v=y+parseFloat(h.right)+parseFloat(h.left),b=w+parseFloat(h.bottom)+parseFloat(h.top));const x={horizontal:"left, right",vertical:"top, bottom"},F=function(e){const t={};return x.horizontal.indexOf(e)>=0?(t.width=f.getPropertyValue("padding-"+e),t.height=w+"px",t.top=0,m&&(t.height=w-parseFloat(h.top)-parseFloat(h.bottom)+"px")):(t.height=f.getPropertyValue("padding-"+e),t.width=y+"px",t.left=0,m&&(t.width=y-parseFloat(h.left)-parseFloat(h.right)+"px")),t[e]=0,t.position="absolute",t},P=function(e){const t={},o=[];return o.right=parseFloat(f.getPropertyValue("margin-right")),o.top=parseFloat(f.getPropertyValue("margin-top")),o.bottom=parseFloat(f.getPropertyValue("margin-bottom")),o.left=parseFloat(f.getPropertyValue("margin-left")),x.horizontal.indexOf(e)>=0?(t.width=f.getPropertyValue("margin-"+e),t.height=b+o.top+o.bottom+"px",t.top="-"+(o.top+parseFloat(h.top))+"px"):(t.height=f.getPropertyValue("margin-"+e),t.width=v+"px",t.left="-"+h.left),t[e]="-"+(o[e]+parseFloat(h[e]))+"px",t.position="absolute",t},S=function(e){!s||parseInt(e.height,10)<=0||parseInt(e.width,10)<=0?e.display="none":e.display="block"},E=[F("top"),F("right"),F("bottom"),F("left")],k=function(e,t){let o;for(o=0;o=0&&t.left>=0&&t.bottom<=(window.innerHeight||o.clientHeight)&&t.right<=(window.innerWidth||o.clientWidth)}(e)){let t=a(e);t&&(t-=window.innerHeight/2,window.scrollTo(0,t))}this.elements.push(e),this.makeHighlightDiv(e,t)}}clear(){let t;const o=window.document.querySelectorAll("."+e),n=window.document.body;for(t=0;t{console.log("[Five Server] connecting...");const e=document.querySelector('[data-id="five-server"]'),t=("fsws",`${o=`${"http:"===window.location.protocol?"ws://":"wss://"}${new URL(e.src).host}`,o.replace(/\/+$/g,"")}/${(e=>e.replace(/^\/+/g,""))("fsws")}`);var o;const n=e.getAttribute("data-inject-body");n&&"true"===n.toString()&&(g=document.body?document.body.cloneNode(!0):void 0);let r=null;const i=new f(!0);i.redraw(),window.addEventListener("resize",(()=>{i.redraw()}));const s="[Five Server] connected.";let a,l=1e3,d=0,c="";const p=(e,t,o={})=>{const n=JSON.stringify({message:e,type:t,options:o});if(c===n&&"css updated"!==e)return;c=n;let i=document.getElementById("fiveserver-info-wrapper");i&&i.remove();const{time:s=3,animation:a=!0}=o;i=document.createElement("div"),i.id="fiveserver-info-wrapper",i.classList.add(`fiveserver-info-wrapper_${t}`),i.style.zIndex="100",i.style.display="flex",i.style.justifyContent="center",i.style.position="fixed",i.style.top="flex",i.style.left="50%",i.style.transform="translateX(-50%)",i.style.width="100%",i.style.maxWidth="80%";const l=document.createElement("div");l.id="fiveserver-info",l.style.fontSize="16px",l.style.fontFamily="Arial, Helvetica, sans-serif",l.style.color="white",l.style.backgroundColor="black",l.style.padding="4px 12px",l.style.borderRadius="4px",l.style.whiteSpace="pre-wrap",i.appendChild(l),document.body.appendChild(i),r&&(clearTimeout(r),r=null),r=setTimeout((()=>{i&&i.isConnected&&i.remove()}),1e3*s),"error"===t?(i.style.top="4px",i.style.animation="",l.style.color="black",l.style.backgroundColor="red"):a?(i.style.top="-40px",i.style.animation=`fiveserverInfoPopup ${s}s forwards`):(i.style.top="4px",i.style.animation=""),"success"===t?(l.style.color="#498d76",l.style.backgroundColor="#00ffa9"):"info"===t&&(l.style.color="#d2e1f0",l.style.backgroundColor="#2996ff"),l.innerHTML=e.replace(/{a&&1===(null==a?void 0:a.readyState)&&a.send(JSON.stringify({console:{type:e,message:t}}))},m=e=>{const t=document.getElementsByTagName("head")[0];let o=Array.from(document.getElementsByTagName("link"));o=o.filter((e=>/\.css/gm.test(e.href)||"stylesheet"==e.rel.toLowerCase()));for(let e=0;e=0?"&":"?"}_cacheOverride=${(new Date).valueOf()}`,r.onload=()=>{setTimeout((()=>n.remove()),0)},t.appendChild(r)}o.length>0&&e&&p("css updated","info")};let y,w="";const b=new DOMParser;let v=!1;const x=e=>{if("HIDE"===e||"HIDE_MESSAGE"===e||"HIDE_MESSAGES"===e){const e=document.getElementById("fiveserver-info-wrapper");e&&e.remove()}else p(e,"info",{animation:!1})},F=()=>{a=new WebSocket(t),a.onmessage=function(t){if(l=1e3,d=0,"reload"===t.data)window.location.reload();else if("refreshcss"===t.data)m(!0);else if("refreshcss-silent"===t.data)m(!1);else if("connected"===t.data){console.log(s);const e=document.querySelector('[data-id="five-server"]');e&&e.dispatchEvent(new Event("connected"))}else if("initRemoteLogs"===t.data)(()=>{const e=console.log;console.log=function(...t){t[0]===s?p("connected","success"):h("log",...t),e.apply(console,t)};const t=console.warn;console.warn=function(...e){h("warn",...e),t.apply(console,e)};const o=console.error;console.error=function(...e){h("error",...e),o.apply(console,e)}})();else{const n=JSON.parse(t.data);n.navigate&&window.location.replace(n.navigate),n.body&&n.hot?(t=>{u(void 0,void 0,void 0,(function*(){if(""===w&&(yield(w="loading",new Promise((t=>{const o=`//${new URL(e.src).host}/fiveserver/scripts/diffDOM.js`,n=document.createElement("script");n.type="text/javascript",n.src=o,n.onload=()=>{setTimeout((()=>{y=new diffDOM.DiffDOM,w="ready",t()}))},document.getElementsByTagName("head")[0].appendChild(n)})))),"ready"===w)try{const e=g,o=b.parseFromString(t,"text/html").querySelector("body"),n=document.createElement("body");if(n.innerHTML=t,o&&o.attributes.length>0)for(let e=0;ee.offsetTop+(e.offsetParent?t(e.offsetParent):0),o=t(e)-window.innerHeight/2;window.scrollTo(0,o)}}}catch(e){v=!0,x("Having issues parsing the DOM.\nPlease verify that your HTML is valid...")}}))})(n.body):n.body&&(o=n.body,document.body.innerHTML=o),n.messages&&(e=>{x(e.join("\n\n"))})(n.messages),n.message&&x(n.message),n.body&&i.redraw()}var o},a.onopen=function(){if(d>0)return void window.location.reload();const e=document.querySelectorAll("script");for(let t=0;t1&&console.log("connecting..."),d<=25&&F(),l=Math.floor(1.1*l)}),l)},a.onerror=function(e){a.close()}};let P=0;const S=()=>{if(P>10)return console.error("[Five Server] status check failed"),console.log("[Five Server] browser reloads in 5 seconds"),void setTimeout((()=>{window.location.reload()}),5e3);console.log("[Five Server] status check..."),setTimeout((()=>{E()}),1e3)},E=()=>u(void 0,void 0,void 0,(function*(){P++;const t=`${new URL(e.src).protocol}//${new URL(e.src).host}/fiveserver/status`;try{const e=yield fetch(t),o=yield e.json();o&&o.status&&"online"===o.status?(F(),P=0):S()}catch(e){S()}}));E()}))})(); \ No newline at end of file diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/injected.ts b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/injected.ts new file mode 100644 index 00000000..306642a6 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/client/injected.ts @@ -0,0 +1,432 @@ +declare const diffDOM: any + +import { Highlight } from './highlight' +import { appendPathToUrl } from '../src/helpers' + +// clone the current state of the body before any javascript +// manipulates it inside window.addEventListener('load', (...)) +let _internalDOMBody + +const block = (document.body) ? document.body.hasAttribute('data-server-no-reload') : false; + +if (block) { + console.info('[Five Server] Reload disabled due to \'data-server-no-reload\' attribute on BODY element') +} +if ('WebSocket' in window && !block) { + window.addEventListener('load', () => { + console.log('[Five Server] connecting...') + + const script = document.querySelector('[data-id="five-server"]') as HTMLScriptElement + + const protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://' + const address = appendPathToUrl(`${protocol}${new URL(script.src).host}`, 'fsws') + + // check if we need to clone the body for the "injectBody" feature or not + const optionsInjectBody = script.getAttribute('data-inject-body') + if (optionsInjectBody && optionsInjectBody.toString() === 'true') + _internalDOMBody = document.body ? document.body.cloneNode(true) : undefined + + let timer: any = null + + const highlight = new Highlight(true) + highlight.redraw() + window.addEventListener('resize', () => { + highlight.redraw() + }) + + const CONNECTED_MSG = '[Five Server] connected.' + const MAX_ATTEMPTS = 25 + let wait = 1000 + let attempts = 0 + let socket!: WebSocket + + let lastPopUp = '' + const popup = ( + message: string, + type: 'info' | 'success' | 'error' | 'warn', + options: { time?: number; animation?: boolean } = {} + ) => { + const str = JSON.stringify({ message, type, options }) + + // block identical popups, except "css update" + if (lastPopUp === str && message !== 'css updated') return + lastPopUp = str + + let wrapper = document.getElementById('fiveserver-info-wrapper') + if (wrapper) wrapper.remove() + + const { time = 3, animation = true } = options + + wrapper = document.createElement('div') + wrapper.id = 'fiveserver-info-wrapper' + wrapper.classList.add(`fiveserver-info-wrapper_${type}`) + + wrapper.style.zIndex = '100' + wrapper.style.display = 'flex' + wrapper.style.justifyContent = 'center' + wrapper.style.position = 'fixed' + wrapper.style.top = 'flex' + + wrapper.style.left = '50%' + wrapper.style.transform = 'translateX(-50%)' + wrapper.style.width = '100%' + wrapper.style.maxWidth = '80%' + + const el = document.createElement('div') + el.id = 'fiveserver-info' + el.style.fontSize = '16px' + el.style.fontFamily = 'Arial, Helvetica, sans-serif' + el.style.color = 'white' + el.style.backgroundColor = 'black' + + el.style.padding = '4px 12px' + el.style.borderRadius = '4px' + el.style.whiteSpace = 'pre-wrap' + + wrapper.appendChild(el) + + document.body.appendChild(wrapper) + + // remove popup from DOM after 'time' + if (timer) { + clearTimeout(timer) + timer = null + } + timer = setTimeout(() => { + if (wrapper && wrapper.isConnected) wrapper.remove() + }, time * 1000) + + if (type === 'error') { + wrapper.style.top = '4px' + wrapper.style.animation = '' + + el.style.color = 'black' + el.style.backgroundColor = 'red' + } else { + if (animation) { + wrapper.style.top = '-40px' + wrapper.style.animation = `fiveserverInfoPopup ${time}s forwards` + } else { + wrapper.style.top = '4px' + wrapper.style.animation = '' + } + } + + if (type === 'success') { + el.style.color = '#498d76' + el.style.backgroundColor = '#00ffa9' + } else if (type === 'info') { + el.style.color = '#d2e1f0' + el.style.backgroundColor = '#2996ff' + } + el.innerHTML = message.replace(/ { + if (socket && socket?.readyState === 1) { + socket.send(JSON.stringify({ console: { type, message } })) + } + } + + const overwriteLogs = () => { + // log + const oldLog = console.log + console.log = function (...message) { + if (message[0] === CONNECTED_MSG) { + popup('connected', 'success') + } else { + send('log', ...message) + } + oldLog.apply(console, message) + } + + // warn + const oldWarn = console.warn + console.warn = function (...message) { + send('warn', ...message) + oldWarn.apply(console, message) + } + + // error + const oldError = console.error + console.error = function (...message) { + send('error', ...message) + oldError.apply(console, message) + } + } + + const refreshCSS = (showPopup: boolean) => { + const head = document.getElementsByTagName('head')[0] + + let sheets = Array.from(document.getElementsByTagName('link')) + sheets = sheets.filter(sheet => /\.css/gm.test(sheet.href) || sheet.rel.toLowerCase() == 'stylesheet') + + for (let i = 0; i < sheets.length; ++i) { + const el = sheets[i] + + const newEl = el.cloneNode(true) as HTMLLinkElement + + // changing the href of the css file will make the browser refetch it + const url = newEl.href.replace(/(&|\?)_cacheOverride=\d+/, '') + newEl.href = `${url}${url.indexOf('?') >= 0 ? '&' : '?'}_cacheOverride=${new Date().valueOf()}` + + newEl.onload = () => { + setTimeout(() => el.remove(), 0) + } + + head.appendChild(newEl) + } + + if (sheets.length > 0 && showPopup) popup('css updated', 'info') + } + + const injectBody = body => { + document.body.innerHTML = body + } + + let _diffDOMStatus = '' + let _dd + + const addDiffDOM = (): Promise => { + _diffDOMStatus = 'loading' + return new Promise(resolve => { + const url = `//${new URL(script.src).host}/fiveserver/scripts/diffDOM.js` + const s = document.createElement('script') + s.type = 'text/javascript' + s.src = url + s.onload = () => { + setTimeout(() => { + _dd = new diffDOM.DiffDOM() + _diffDOMStatus = 'ready' + resolve() + }) + } + document.getElementsByTagName('head')[0].appendChild(s) + }) + } + + const domParser = new DOMParser() + let diffError = false + const updateBody = async (d: any) => { + if (_diffDOMStatus === '') await addDiffDOM() + + if (_diffDOMStatus === 'ready') { + try { + const body = _internalDOMBody + + const newBody = domParser.parseFromString(d, 'text/html').querySelector('body') + + const tmp = document.createElement('body') + tmp.innerHTML = d + + // copy all attributes + if (newBody) { + if (newBody.attributes.length > 0) + for (let i = 0; i < newBody.attributes.length; i++) { + const attr = newBody.attributes.item(i) + if (attr) { + const newAttr = document.createAttribute(attr.name) + newAttr.value = attr.value + tmp.attributes.setNamedItem(newAttr) + } + } + } + + const diff = _dd.diff(body, tmp) + + const testBody = document.body.cloneNode(true) + + const testSuccess = _dd.apply(testBody, diff) + if (testSuccess) { + const success = _dd.apply(document.body, diff) + + if (success) { + _internalDOMBody = tmp + + if (diffError) { + diffError = false + appendMessage('HIDE') + } + + // scroll element into view (center of page) + const el = document.querySelector(`[data-highlight="true"]`) + if (el) { + const documentOffsetTop = el => { + return el.offsetTop + (el.offsetParent ? documentOffsetTop(el.offsetParent) : 0) + } + const pos = documentOffsetTop(el) - window.innerHeight / 2 + window.scrollTo(0, pos) + } + } + } + } catch (error) { + diffError = true + appendMessage('Having issues parsing the DOM.\nPlease verify that your HTML is valid...') + } + } + } + + const appendMessages = (msg: string[]) => { + appendMessage(msg.join('\n\n')) + } + + const appendMessage = (msg: string) => { + if (msg === 'HIDE' || msg === 'HIDE_MESSAGE' || msg === 'HIDE_MESSAGES') { + const wrapper = document.getElementById('fiveserver-info-wrapper') + if (wrapper) wrapper.remove() + } else { + popup(msg, 'info', { animation: false }) + } + } + + const connect = () => { + socket = new WebSocket(address) + + socket.onmessage = function (msg) { + wait = 1000 + attempts = 0 + + if (msg.data === 'reload') window.location.reload() + else if (msg.data === 'refreshcss') refreshCSS(true) + else if (msg.data === 'refreshcss-silent') refreshCSS(false) + else if (msg.data === 'connected') { + console.log(CONNECTED_MSG) + // dispatch "connected" event when client is connected + const script = document.querySelector('[data-id="five-server"]') + if (script) script.dispatchEvent(new Event('connected')) + } else if (msg.data === 'initRemoteLogs') overwriteLogs() + else { + const d = JSON.parse(msg.data) + if (d.navigate) window.location.replace(d.navigate) + // hot body injection + if (d.body && d.hot) updateBody(d.body) + // simple body replacement + else if (d.body) injectBody(d.body) + + // message and messages 🤣 + if (d.messages) appendMessages(d.messages) + if (d.message) appendMessage(d.message) + + // redraw the highlight on body update + if (d.body) highlight.redraw() + } + } + socket.onopen = function () { + // reload page on successful reconnection + if (attempts > 0) { + window.location.reload() + return + } + + const scripts = document.querySelectorAll('script') + for (let i = 0; i < scripts.length; i++) { + const script = scripts[i] + if (script.dataset && script.dataset.file) { + socket.send(JSON.stringify({ file: script.dataset.file })) + } + } + + // add styles to body + const style = document.createElement('style') + style.innerHTML = ` + /* Injected by five-server */ + /*[data-highlight="true"] { + border: 1px rgb(90,170,255) solid !important; + background-color: rgba(155,215,255,0.5); + animation: fadeOutHighlight 1s forwards 0.5s; + } + img[data-highlight="true"] { + filter: sepia(100%) hue-rotate(180deg) saturate(200%); + animation: fadeOutHighlightIMG 0.5s forwards 0.5s; + }*/ + @keyframes fadeOutHighlight { + from {background-color: rgba(155,215,255,0.5);} + to {background-color: rgba(155,215,255,0);} + } + @keyframes fadeOutHighlightIMG { + 0% {filter: sepia(100%) hue-rotate(180deg) saturate(200%);} + 33% {filter: sepia(66%) hue-rotate(180deg) saturate(100%);} + 50% {filter: sepia(50%) hue-rotate(90deg) saturate(50%);} + 66% {filter: sepia(33%) hue-rotate(0deg) saturate(100%);} + 100% {filter: sepia(0%) hue-rotate(0deg) saturate(100%);} + } + @keyframes fiveserverInfoPopup { + 0% {top:-40px;} + 15% {top:4px;} + 85% {top:4px;} + 100% {top:-40px;} + } + /*smaller*/ + @media (max-width: 640px) { + #fiveserver-info-wrapper { + max-width: 98%; + } + #fiveserver-info { + border-radius: 0px; + } + } + + ` + document.head.appendChild(style) + } + socket.onclose = function (e) { + setTimeout(function () { + popup('lost connection to dev server', 'error') + }, 300) + if (attempts === 0) console.log('Socket is closed. Reconnect will be attempted in 1 second.', e.reason) + + setTimeout(function () { + attempts++ + if (attempts > 1) console.log('connecting...') + if (attempts <= MAX_ATTEMPTS) connect() + wait = Math.floor(wait * 1.1) + }, wait) + } + socket.onerror = function (event) { + // console.error('Socket encountered error: ', event, 'Closing socket') + socket.close() + } + } + + const MAX_STATUS_CHECK = 10 + let statusChecks = 0 + const reCheckStatus = () => { + if (statusChecks > MAX_STATUS_CHECK) { + console.error('[Five Server] status check failed') + console.log('[Five Server] browser reloads in 5 seconds') + setTimeout(() => { + window.location.reload() + }, 5000) + return + } + console.log('[Five Server] status check...') + setTimeout(() => { + checkStatus() + }, 1000) + } + + const checkStatus = async () => { + statusChecks++ + const p = new URL(script.src).protocol + const h = new URL(script.src).host + + const url = `${p}//${h}/fiveserver/status` + + try { + const res = await fetch(url) + const json = await res.json() + + if (json && json.status && json.status === 'online') { + connect() + statusChecks = 0 + } else { + reCheckStatus() + } + } catch (error) { + reCheckStatus() + } + } + + checkStatus() + }) +} diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/favicon.ico b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..ebd16bf44acb14227dc3a246b573c0d5a05b4f35 GIT binary patch literal 15406 zcmeI2S92V>5y#hMe}MCY?N>dy&VIV5d-g}Lzky}toO8~xluKEna?V*t<(zX)R2G$} zKv9{3@x$>y)jOP7E|)STmJe04m<1Z$jYfB)(U?r;cbVU3e)u8d>qeQDf5>Eh&SWx; z8vXkJ$3JE=bA8)SKUMYrHIq5?r%dKY595dU5x=(kDzP+g-u$2bDfN%5<-?dl$BI@& zw?~g2Zo-5KYEP}FOqt@kckiCn->zLd_vq0hcj?lltoEe&T)TG7J$UfIF-HB{w{LfE z-n?<}FnjiFH*MOqs8296XU=r9X3YvP6%`e3>(;FSrfu7{?%lh0Zq=$)Zpe@!?(^r* zZt2pc)yA(}xia((9z58sS+mByef!q6Y177y8#m5TdiCn%4j(@3Zr{G`TC`~4#*Q5u z-uXXj)F{`oWlQ();X`-m&>`2mckeI;nECVP2m0`d3^s1u7--+Rb<1_@)-CYMJN@*5 zgZB>~KDc@F=7op(&_Z*byT} zxK^!Nxzf^7w}1csi2pHT#snE4i`A=FNAg>?Y?+%gXO7#mXOBZ(9Xoam@aBFex{Ls{^1|| zQ?AmqY16-X-CpPCS6+)b)+o~yT;@I;R)Ivt}F$%P#QIk^E{MQ(OzHQv_-ET zWu7LF`dIHY+NtgMWb7UvELjy=&zLd8J$dpZ(f23eT(oGB`|{;W@Z+aWovJf^{1OG6 z_~j&;Y8yIqsQdKkQ-H^(evSFFFIQGp2Au3Ig9Z&sw8Wx`QRJnQcX4psLW7$_!&YwRY!Qi_;e*74oG~O+);lqcA{hTq1TfCix z7)1D|PoG|GF6@sK48^(4j+wkN1}^Uxu;ZU=L<2F_8*(CVU4D90<*pFU!;1xpN~} zXcJFSh+7^%ejMK6v3>jY5gc)!%915ZLOU^r$E?pv6 z=1p0+aA9aew^poJ5!yCv*bu=nXVE%%@L*^M_xtzn1FVgSrF+apJYBhRCBP9sK|}4> z&;9%NqyMziPfU0H`t_)tw%4y;SEB_SrKF@Jg5{lpTt!DRiPHzKMZLYrb&+AmzV5ZYe7dKKYDW|X-6fk$`IQ)obY{rdF*miS$CuwBVtYYi+u zkOED??%lgLv{_n<7cUNN{1h3#&ALjrnTy_;kBvRou3a0AmrdalRfwTQf5CzUY7Vh5 z?a-0^vEIb#w0G{@IrtH1BX1sPS=!i$)*e47{k3$kMbSr|l9ly8vH_UWxr#BI)1V*M z1L5Pmp(5GSC!NL*;$H+$jZdV|hp(g!8OZ;_AHJP-`8W0z)`n;N`0=4{L&sr{aM)L4`eAbDK12QnmdDe-tn175r-d;lK88)(*Q>Njk@(o9K{=)n)Xi zU%!4~9`MWhf+POOrw}&Wss2K0&Q+2-GU1$<3lDlJ z_;csZ<%G?JM}2nBLr>J6tHz(>i}N`*=E6fCYXq*O+(S)c>#6@+o&li!&CXxY<{awl zdOv@9nlE$)uHpeX)W=!`nTvL=yuklMA9)g=qRsrdSI5WeKj&nf^>s$z9!LHEt6Di9(In>= zzdx*rHupoEQFUGb7x@)(o;8iFYd_}{ot2==d5LqW?!NNDPu_xYD!d~Xo5#urPa!be z-5ou8G)s2m8*JV;7hY^fxexKr`PJGIcFb9or!F?__n(mWh~weBtK5}%Aiq^po)*1f zt*q=Br~Cr*h9+l!^pczi_C{MSnI!e$XUI2WW1MF>Q(8RaE36#hY3I(JS^1neUVNnT zJItGPQ;tcn$UwPK?1S8k@<4*gr{=C%xeM@s)5@21C6{YuNp46v^duTPcI?n{g_<)u zc`d>6Zto%hA}3P_|Kxwji`s&(M*l?*yyS#z;Z9xswnhiZQ>u{DVE)qY)~#E+-Me?I zJJjq8IZIZ1pKPwyTLithfa!+Clc4G6&za`;t#*1`wd_iAK%l#2k**l ze~+(-!*H)-{Um#>g|YStuhs{V%a)G9r@g}ihxPku{NpF^ z8EJa~{7Z-I-K}_x^N%g5kD7Z>6?lbb^>ZI#^#@<0K5E^gF+NRyEWEw*RXgzvdlmW< z&v`Rv?nrH{!1rYu%iOJf!>jI4fZ?2FV=OTI^^-estLMmHe6R-iEc^_% z3Vq}mmpi!SS4Eq($KIsB)Vc>3%&uL#s>#6Krvb+rkvoyBMvoqyWh20_kJ3}JjP)H8_$aIs-z#Yhx}$Fk=x3dh?$59xtApq&a+4g89X{C>bR55@Sc^T8 zeHss z?Ak~M>}j{WroCfVisKo}8sZ17Zl;Z`YddpcFSdFE zFG(?D8ZGt)Y|iQt{wV3pm4>6xcJ@WUoN~g^|3eE zQb_(*G}s$CE3zN)O`naK1oO3Pd0;){if(!e.childNodes)return!1;var o=t.splice(0,1)[0];e=e.childNodes[o]}return e}function n(e,n,s){var i,a,l,c,r=o(e,n[s._const.route]),u={diff:n,node:r};if(s.preDiffApply(u))return!0;switch(n[s._const.action]){case s._const.addAttribute:if(!r||!r.setAttribute)return!1;r.setAttribute(n[s._const.name],n[s._const.value]);break;case s._const.modifyAttribute:if(!r||!r.setAttribute)return!1;r.setAttribute(n[s._const.name],n[s._const.newValue]),"INPUT"===r.nodeName&&"value"===n[s._const.name]&&(r.value=n[s._const.newValue]);break;case s._const.removeAttribute:if(!r||!r.removeAttribute)return!1;r.removeAttribute(n[s._const.name]);break;case s._const.modifyTextElement:if(!r||3!==r.nodeType)return!1;s.textDiff(r,r.data,n[s._const.oldValue],n[s._const.newValue]);break;case s._const.modifyValue:if(!r||void 0===r.value)return!1;r.value=n[s._const.newValue];break;case s._const.modifyComment:if(!r||void 0===r.data)return!1;s.textDiff(r,r.data,n[s._const.oldValue],n[s._const.newValue]);break;case s._const.modifyChecked:if(!r||void 0===r.checked)return!1;r.checked=n[s._const.newValue];break;case s._const.modifySelected:if(!r||void 0===r.selected)return!1;r.selected=n[s._const.newValue];break;case s._const.replaceElement:r.parentNode.replaceChild(t(n[s._const.newValue],"http://www.w3.org/2000/svg"===r.namespaceURI,s),r);break;case s._const.relocateGroup:Array.apply(void 0,new Array(n.groupLength)).map((function(){return r.removeChild(r.childNodes[n[s._const.from]])})).forEach((function(e,t){0===t&&(a=r.childNodes[n[s._const.to]]),r.insertBefore(e,a||null)}));break;case s._const.removeElement:r.parentNode.removeChild(r);break;case s._const.addElement:c=(l=n[s._const.route].slice()).splice(l.length-1,1)[0],(r=o(e,l)).insertBefore(t(n[s._const.element],"http://www.w3.org/2000/svg"===r.namespaceURI,s),r.childNodes[c]||null);break;case s._const.removeTextElement:if(!r||3!==r.nodeType)return!1;r.parentNode.removeChild(r);break;case s._const.addTextElement:if(c=(l=n[s._const.route].slice()).splice(l.length-1,1)[0],i=s.document.createTextNode(n[s._const.value]),!(r=o(e,l))||!r.childNodes)return!1;r.insertBefore(i,r.childNodes[c]||null);break;default:console.log("unknown action")}return u.newNode=i,s.postDiffApply(u),!0}function s(e,t,o){var n=e[t];e[t]=e[o],e[o]=n}function i(e,t,o){t.length||(t=[t]),(t=t.slice()).reverse(),t.forEach((function(t){!function(e,t,o){switch(t[o._const.action]){case o._const.addAttribute:t[o._const.action]=o._const.removeAttribute,n(e,t,o);break;case o._const.modifyAttribute:s(t,o._const.oldValue,o._const.newValue),n(e,t,o);break;case o._const.removeAttribute:t[o._const.action]=o._const.addAttribute,n(e,t,o);break;case o._const.modifyTextElement:case o._const.modifyValue:case o._const.modifyComment:case o._const.modifyChecked:case o._const.modifySelected:case o._const.replaceElement:s(t,o._const.oldValue,o._const.newValue),n(e,t,o);break;case o._const.relocateGroup:s(t,o._const.from,o._const.to),n(e,t,o);break;case o._const.removeElement:t[o._const.action]=o._const.addElement,n(e,t,o);break;case o._const.addElement:t[o._const.action]=o._const.removeElement,n(e,t,o);break;case o._const.removeTextElement:t[o._const.action]=o._const.addTextElement,n(e,t,o);break;case o._const.addTextElement:t[o._const.action]=o._const.removeTextElement,n(e,t,o);break;default:console.log("unknown action")}}(e,t,o)}))}var a=function(e){var t=this;void 0===e&&(e={}),Object.entries(e).forEach((function(e){var o=e[0],n=e[1];return t[o]=n}))};function l(e){var t=[];return t.push(e.nodeName),"#text"!==e.nodeName&&"#comment"!==e.nodeName&&e.attributes&&(e.attributes.class&&t.push(e.nodeName+"."+e.attributes.class.replace(/ /g,".")),e.attributes.id&&t.push(e.nodeName+"#"+e.attributes.id)),t}function c(e){var t={},o={};return e.forEach((function(e){l(e).forEach((function(e){var n=e in t;n||e in o?n&&(delete t[e],o[e]=!0):t[e]=!0}))})),t}function r(e,t){var o=c(e),n=c(t),s={};return Object.keys(o).forEach((function(e){n[e]&&(s[e]=!0)})),s}function u(e){return delete e.outerDone,delete e.innerDone,delete e.valueDone,!e.childNodes||e.childNodes.every(u)}function d(e,t){if(!["nodeName","value","checked","selected","data"].every((function(o){return e[o]===t[o]})))return!1;if(Boolean(e.attributes)!==Boolean(t.attributes))return!1;if(Boolean(e.childNodes)!==Boolean(t.childNodes))return!1;if(e.attributes){var o=Object.keys(e.attributes),n=Object.keys(t.attributes);if(o.length!==n.length)return!1;if(!o.every((function(o){return e.attributes[o]===t.attributes[o]})))return!1}if(e.childNodes){if(e.childNodes.length!==t.childNodes.length)return!1;if(!e.childNodes.every((function(e,o){return d(e,t.childNodes[o])})))return!1}return!0}function h(e,t,o,n,s){if(!e||!t)return!1;if(e.nodeName!==t.nodeName)return!1;if("#text"===e.nodeName)return!!s||e.data===t.data;if(e.nodeName in o)return!0;if(e.attributes&&t.attributes){if(e.attributes.id){if(e.attributes.id!==t.attributes.id)return!1;if(e.nodeName+"#"+e.attributes.id in o)return!0}if(e.attributes.class&&e.attributes.class===t.attributes.class)if(e.nodeName+"."+e.attributes.class.replace(/ /g,".")in o)return!0}if(n)return!0;var i=e.childNodes?e.childNodes.slice().reverse():[],a=t.childNodes?t.childNodes.slice().reverse():[];if(i.length!==a.length)return!1;if(s)return i.every((function(e,t){return e.nodeName===a[t].nodeName}));var l=r(i,a);return i.every((function(e,t){return h(e,a[t],l,!0,!0)}))}function f(e){return JSON.parse(JSON.stringify(e))}function p(e,t,o,n){var s=0,i=[],a=e.length,c=t.length,u=Array.apply(void 0,new Array(a+1)).map((function(){return[]})),d=r(e,t),f=a===c;f&&e.some((function(e,o){var n=l(e),s=l(t[o]);return n.length!==s.length?(f=!1,!0):(n.some((function(e,t){if(e!==s[t])return f=!1,!0})),!f||void 0)}));for(var p=0;p=s&&(s=u[p+1][_+1],i=[p+1,_+1]))}return 0!==s&&{oldValue:i[0]-s,newValue:i[1]-s,length:s}}function m(e,t){return Array.apply(void 0,new Array(e)).map((function(){return t}))}a.prototype.toString=function(){return JSON.stringify(this)},a.prototype.setValue=function(e,t){return this[e]=t,this};var _=function(){this.list=[]};function V(e,t){var o,n,s=e;for(t=t.slice();t.length>0;){if(!s.childNodes)return!1;n=t.splice(0,1)[0],o=s,s=s.childNodes[n]}return{node:s,parentNode:o,nodeIndex:n}}function g(e,t,o){return t.forEach((function(t){!function(e,t,o){var n,s,i,a=V(e,t[o._const.route]),l=a.node,c=a.parentNode,r=a.nodeIndex,u=[],d={diff:t,node:l};if(o.preVirtualDiffApply(d))return!0;switch(t[o._const.action]){case o._const.addAttribute:l.attributes||(l.attributes={}),l.attributes[t[o._const.name]]=t[o._const.value],"checked"===t[o._const.name]?l.checked=!0:"selected"===t[o._const.name]?l.selected=!0:"INPUT"===l.nodeName&&"value"===t[o._const.name]&&(l.value=t[o._const.value]);break;case o._const.modifyAttribute:l.attributes[t[o._const.name]]=t[o._const.newValue];break;case o._const.removeAttribute:delete l.attributes[t[o._const.name]],0===Object.keys(l.attributes).length&&delete l.attributes,"checked"===t[o._const.name]?l.checked=!1:"selected"===t[o._const.name]?delete l.selected:"INPUT"===l.nodeName&&"value"===t[o._const.name]&&delete l.value;break;case o._const.modifyTextElement:l.data=t[o._const.newValue];break;case o._const.modifyValue:l.value=t[o._const.newValue];break;case o._const.modifyComment:l.data=t[o._const.newValue];break;case o._const.modifyChecked:l.checked=t[o._const.newValue];break;case o._const.modifySelected:l.selected=t[o._const.newValue];break;case o._const.replaceElement:(n=f(t[o._const.newValue])).outerDone=!0,n.innerDone=!0,n.valueDone=!0,c.childNodes[r]=n;break;case o._const.relocateGroup:l.childNodes.splice(t[o._const.from],t.groupLength).reverse().forEach((function(e){return l.childNodes.splice(t[o._const.to],0,e)})),l.subsets&&l.subsets.forEach((function(e){if(t[o._const.from]t[o._const.from]){e.oldValue-=t.groupLength;var n=e.oldValue+e.length-t[o._const.to];n>0&&(u.push({oldValue:t[o._const.to]+t.groupLength,newValue:e.newValue+e.length-n,length:n}),e.length-=n)}else if(t[o._const.from]>t[o._const.to]&&e.oldValue>t[o._const.to]&&e.oldValue0&&(u.push({oldValue:t[o._const.to]+t.groupLength,newValue:e.newValue+e.length-s,length:s}),e.length-=s)}else e.oldValue===t[o._const.from]&&(e.oldValue=t[o._const.to])}));break;case o._const.removeElement:c.childNodes.splice(r,1),c.subsets&&c.subsets.forEach((function(e){e.oldValue>r?e.oldValue-=1:e.oldValue===r?e.delete=!0:e.oldValuer&&(e.oldValue+e.length-1===r?e.length--:(u.push({newValue:e.newValue+r-e.oldValue,oldValue:r,length:e.length-r+e.oldValue-1}),e.length=r-e.oldValue))})),l=c;break;case o._const.addElement:s=t[o._const.route].slice(),i=s.splice(s.length-1,1)[0],l=V(e,s).node,(n=f(t[o._const.element])).outerDone=!0,n.innerDone=!0,n.valueDone=!0,l.childNodes||(l.childNodes=[]),i>=l.childNodes.length?l.childNodes.push(n):l.childNodes.splice(i,0,n),l.subsets&&l.subsets.forEach((function(e){if(e.oldValue>=i)e.oldValue+=1;else if(e.oldValuei){var t=e.oldValue+e.length-i;u.push({newValue:e.newValue+e.length-t,oldValue:i+1,length:t}),e.length-=t}}));break;case o._const.removeTextElement:c.childNodes.splice(r,1),"TEXTAREA"===c.nodeName&&delete c.value,c.subsets&&c.subsets.forEach((function(e){e.oldValue>r?e.oldValue-=1:e.oldValue===r?e.delete=!0:e.oldValuer&&(e.oldValue+e.length-1===r?e.length--:(u.push({newValue:e.newValue+r-e.oldValue,oldValue:r,length:e.length-r+e.oldValue-1}),e.length=r-e.oldValue))})),l=c;break;case o._const.addTextElement:s=t[o._const.route].slice(),i=s.splice(s.length-1,1)[0],(n={}).nodeName="#text",n.data=t[o._const.value],(l=V(e,s).node).childNodes||(l.childNodes=[]),i>=l.childNodes.length?l.childNodes.push(n):l.childNodes.splice(i,0,n),"TEXTAREA"===l.nodeName&&(l.value=t[o._const.newValue]),l.subsets&&l.subsets.forEach((function(e){if(e.oldValue>=i&&(e.oldValue+=1),e.oldValuei){var t=e.oldValue+e.length-i;u.push({newValue:e.newValue+e.length-t,oldValue:i+1,length:t}),e.length-=t}}));break;default:console.log("unknown action")}l.subsets&&(l.subsets=l.subsets.filter((function(e){return!e.delete&&e.oldValue!==e.newValue})),u.length&&(l.subsets=l.subsets.concat(u))),d.newNode=n,o.postVirtualDiffApply(d)}(e,t,o)})),!0}function v(e,t){void 0===t&&(t={});var o={};if(o.nodeName=e.nodeName,"#text"===o.nodeName||"#comment"===o.nodeName)o.data=e.data;else{if(e.attributes&&e.attributes.length>0)o.attributes={},Array.prototype.slice.call(e.attributes).forEach((function(e){return o.attributes[e.name]=e.value}));if("TEXTAREA"===o.nodeName)o.value=e.value;else if(e.childNodes&&e.childNodes.length>0){o.childNodes=[],Array.prototype.slice.call(e.childNodes).forEach((function(e){return o.childNodes.push(v(e,t))}))}t.valueDiffing&&(void 0!==e.checked&&e.type&&["radio","checkbox"].includes(e.type.toLowerCase())?o.checked=e.checked:void 0!==e.value&&(o.value=e.value),void 0!==e.selected&&(o.selected=e.selected))}return o}_.prototype.add=function(e){var t;(t=this.list).push.apply(t,e)},_.prototype.forEach=function(e){this.list.forEach((function(t){return e(t)}))};var N=/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,b=Object.create?Object.create(null):{},w=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function y(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}var E={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuItem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function k(e){var t={nodeName:"",attributes:{}},o=e.match(/<\/?([^\s]+?)[/\s>]/);if(o&&(t.nodeName=o[1].toUpperCase(),(E[o[1].toLowerCase()]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.nodeName.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",data:-1!==n?e.slice(4,n):""}}for(var s=new RegExp(w),i=null,a=!1;!a;)if(null===(i=s.exec(e)))a=!0;else if(i[0].trim())if(i[1]){var l=i[1].trim(),c=[l,""];l.indexOf("=")>-1&&(c=l.split("=")),t.attributes[c[0]]=c[1],s.lastIndex--}else i[2]&&(t.attributes[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}function x(e){return function e(t){return delete t.voidElement,t.childNodes&&t.childNodes.forEach((function(t){return e(t)})),t}(function(e,t){void 0===t&&(t={components:b});var o,n=[],s=-1,i=[],a=!1;return e.replace(N,(function(l,c){if(a){if(l!=="")return;a=!1}var r,u="/"!==l.charAt(1),d=l.startsWith("\x3c!--"),h=c+l.length,f=e.charAt(h);if(d){var p=k(l);return s<0?(n.push(p),n):((r=i[s])&&(r.childNodes||(r.childNodes=[]),r.childNodes.push(p)),n)}if(u&&(o=k(l),s++,"tag"===o.type&&t.components[o.nodeName]&&(o.type="component",a=!0),o.voidElement||a||!f||"<"===f||(o.childNodes||(o.childNodes=[]),o.childNodes.push({nodeName:"#text",data:y(e.slice(h,e.indexOf("<",h)))})),0===s&&n.push(o),(r=i[s-1])&&(r.childNodes||(r.childNodes=[]),r.childNodes.push(o)),i[s]=o),(!u||o.voidElement)&&(s--,!a&&"<"!==f&&f)){r=-1===s?n:i[s].childNodes||[];var m=e.indexOf("<",h),_=y(e.slice(h,-1===m?void 0:m));r.push({nodeName:"#text",data:_})}})),n[0]}(e))}var A=function(e,t,o){this.options=o,this.t1=e instanceof HTMLElement?v(e,this.options):"string"==typeof e?x(e,this.options):JSON.parse(JSON.stringify(e)),this.t2=t instanceof HTMLElement?v(t,this.options):"string"==typeof t?x(t,this.options):JSON.parse(JSON.stringify(t)),this.diffcount=0,this.foundAll=!1,this.debug&&(this.t1Orig=v(e,this.options),this.t2Orig=v(t,this.options)),this.tracker=new _};A.prototype.init=function(){return this.findDiffs(this.t1,this.t2)},A.prototype.findDiffs=function(e,t){var o;do{if(this.options.debug&&(this.diffcount+=1,this.diffcount>this.options.diffcap))throw window.diffError=[this.t1Orig,this.t2Orig],new Error("surpassed diffcap:"+JSON.stringify(this.t1Orig)+" -> "+JSON.stringify(this.t2Orig));0===(o=this.findNextDiff(e,t,[])).length&&(d(e,t)||(this.foundAll?console.error("Could not find remaining diffs!"):(this.foundAll=!0,u(e),o=this.findNextDiff(e,t,[])))),o.length>0&&(this.foundAll=!1,this.tracker.add(o),g(e,o,this.options))}while(o.length>0);return this.tracker.list},A.prototype.findNextDiff=function(e,t,o){var n,s;if(this.options.maxDepth&&o.length>this.options.maxDepth)return[];if(!e.outerDone){if(n=this.findOuterDiff(e,t,o),this.options.filterOuterDiff&&(s=this.options.filterOuterDiff(e,t,n))&&(n=s),n.length>0)return e.outerDone=!0,n;e.outerDone=!0}if(!e.innerDone){if((n=this.findInnerDiff(e,t,o)).length>0)return n;e.innerDone=!0}if(this.options.valueDiffing&&!e.valueDone){if((n=this.findValueDiff(e,t,o)).length>0)return e.valueDone=!0,n;e.valueDone=!0}return[]},A.prototype.findOuterDiff=function(e,t,o){var n,s,i,l,c,r,u=[];if(e.nodeName!==t.nodeName){if(!o.length)throw new Error("Top level nodes have to be of the same kind.");return[(new a).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,f(e)).setValue(this.options._const.newValue,f(t)).setValue(this.options._const.route,o)]}if(o.length&&this.options.maxNodeDiffCount0&&(c=this.attemptGroupRelocation(e,t,u,o)).length>0)return c}for(var h=0;hs.length?("#text"===_.nodeName?c.push((new a).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,o.concat(r)).setValue(this.options._const.value,_.data)):c.push((new a).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.element,f(_)).setValue(this.options._const.route,o.concat(r))),n.splice(h,1),h-=1,r-=1,l-=1):n.lengthu+1&&"#text"===e.childNodes[u+1].nodeName;)if(u+=1,t.childNodes[v].data===e.childNodes[u].data){r=!0;break}if(!r)return g.push((new a).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,n.concat(v)).setValue(this.options._const.oldValue,c.data).setValue(this.options._const.newValue,t.childNodes[v].data)),g}}else g.push((new a).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,n.concat(v)).setValue(this.options._const.value,c.data)),p.splice(v,1),V=Math.min(p.length,_.length),v-=1;else g.push((new a).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,n.concat(v)).setValue(this.options._const.element,f(c))),p.splice(v,1),V=Math.min(p.length,_.length),v-=1;else if(!0===_[v])"#text"===(c=t.childNodes[v]).nodeName?(g.push((new a).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,n.concat(v)).setValue(this.options._const.value,c.data)),p.splice(v,0,!0),V=Math.min(p.length,_.length),N-=1):(g.push((new a).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,n.concat(v)).setValue(this.options._const.element,f(c))),p.splice(v,0,!0),V=Math.min(p.length,_.length),N-=1);else if(p[v]!==_[v]){if(g.length>0)return g;if(l=o[p[v]],(i=Math.min(l.newValue,e.childNodes.length-l.length))!==l.oldValue){s=!1;for(var b=0;b entering "+e,t)},T.prototype.fout=function(e,t){this.log("│<──┘ generated return value",t),this.padding=this.padding.substring(0,this.padding.length-this.pad.length)},T.prototype.format=function(e,t){return function(e){for(e=""+e;e.length<4;)e="0"+e;return e}(t)+"> "+this.padding+e},T.prototype.log=function(){var e=Array.prototype.slice.call(arguments),t=function(e){return e?"string"==typeof e?e:e instanceof HTMLElement?e.outerHTML||"":e instanceof Array?"["+e.map(t).join(",")+"]":e.toString()||e.valueOf()||"":""};e=e.map(t).join(", "),this.messages.push(this.format(e,this.tick++))},T.prototype.toString=function(){for(var e="└───";e.length<=this.padding.length+this.pad.length;)e+="× ";var t=this.padding;return this.padding="",e=this.format(e,this.tick),this.padding=t,this.messages.join("\n")+"\n"+e},e.DiffDOM=O,e.TraceLogger=T,e.nodeToObj=v,e.stringToObj=x,e}({}); +//# sourceMappingURL=diffDOM.js.map diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/scripts/diffDOM.js.map b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/scripts/diffDOM.js.map new file mode 100644 index 00000000..668e8a16 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/scripts/diffDOM.js.map @@ -0,0 +1 @@ +{"version":3,"file":"diffDOM.js","sources":["../src/diffDOM/dom/fromVirtual.js","../src/diffDOM/dom/apply.js","../src/diffDOM/dom/undo.js","../src/diffDOM/virtual/helpers.js","../src/diffDOM/virtual/apply.js","../src/diffDOM/virtual/fromDOM.js","../src/diffDOM/virtual/fromString.js","../src/diffDOM/virtual/diff.js","../src/diffDOM/index.js","../src/TraceLogger.js"],"sourcesContent":["export function objToNode(objNode, insideSvg, options) {\n let node\n if (objNode.nodeName === '#text') {\n node = options.document.createTextNode(objNode.data)\n\n } else if (objNode.nodeName === '#comment') {\n node = options.document.createComment(objNode.data)\n } else {\n if (insideSvg) {\n node = options.document.createElementNS('http://www.w3.org/2000/svg', objNode.nodeName)\n } else if (objNode.nodeName.toLowerCase() === 'svg') {\n node = options.document.createElementNS('http://www.w3.org/2000/svg', 'svg')\n insideSvg = true\n } else {\n node = options.document.createElement(objNode.nodeName)\n }\n if (objNode.attributes) {\n Object.entries(objNode.attributes).forEach(([key, value]) => node.setAttribute(key, value))\n }\n if (objNode.childNodes) {\n objNode.childNodes.forEach(childNode => node.appendChild(objToNode(childNode, insideSvg, options)))\n }\n if (options.valueDiffing) {\n if (objNode.value) {\n node.value = objNode.value\n }\n if (objNode.checked) {\n node.checked = objNode.checked\n }\n if (objNode.selected) {\n node.selected = objNode.selected\n }\n }\n }\n return node\n}\n","import {objToNode} from \"./fromVirtual\"\n\n// ===== Apply a diff =====\n\nfunction getFromRoute(node, route) {\n route = route.slice()\n while (route.length > 0) {\n if (!node.childNodes) {\n return false\n }\n const c = route.splice(0, 1)[0]\n node = node.childNodes[c]\n }\n return node\n}\n\nexport function applyDiff(\n tree,\n diff,\n options // {preDiffApply, postDiffApply, textDiff, valueDiffing, _const}\n ) {\n let node = getFromRoute(tree, diff[options._const.route])\n let newNode\n let reference\n let route\n let nodeArray\n let c\n\n // pre-diff hook\n const info = {\n diff,\n node\n }\n\n if (options.preDiffApply(info)) {\n return true\n }\n\n switch (diff[options._const.action]) {\n case options._const.addAttribute:\n if (!node || !node.setAttribute) {\n return false\n }\n node.setAttribute(diff[options._const.name], diff[options._const.value])\n break\n case options._const.modifyAttribute:\n if (!node || !node.setAttribute) {\n return false\n }\n node.setAttribute(diff[options._const.name], diff[options._const.newValue])\n if (node.nodeName === 'INPUT' && diff[options._const.name] === 'value') {\n node.value = diff[options._const.newValue]\n }\n break\n case options._const.removeAttribute:\n if (!node || !node.removeAttribute) {\n return false\n }\n node.removeAttribute(diff[options._const.name])\n break\n case options._const.modifyTextElement:\n if (!node || node.nodeType !== 3) {\n return false\n }\n options.textDiff(node, node.data, diff[options._const.oldValue], diff[options._const.newValue])\n break\n case options._const.modifyValue:\n if (!node || typeof node.value === 'undefined') {\n return false\n }\n node.value = diff[options._const.newValue]\n break\n case options._const.modifyComment:\n if (!node || typeof node.data === 'undefined') {\n return false\n }\n options.textDiff(node, node.data, diff[options._const.oldValue], diff[options._const.newValue])\n break\n case options._const.modifyChecked:\n if (!node || typeof node.checked === 'undefined') {\n return false\n }\n node.checked = diff[options._const.newValue]\n break\n case options._const.modifySelected:\n if (!node || typeof node.selected === 'undefined') {\n return false\n }\n node.selected = diff[options._const.newValue]\n break\n case options._const.replaceElement:\n node.parentNode.replaceChild(\n objToNode(\n diff[options._const.newValue],\n node.namespaceURI === 'http://www.w3.org/2000/svg',\n options\n ),\n node\n )\n break\n case options._const.relocateGroup:\n nodeArray = Array(...new Array(diff.groupLength)).map(() => node.removeChild(node.childNodes[diff[options._const.from]]))\n nodeArray.forEach((childNode, index) => {\n if (index === 0) {\n reference = node.childNodes[diff[options._const.to]]\n }\n node.insertBefore(childNode, reference || null)\n })\n break\n case options._const.removeElement:\n node.parentNode.removeChild(node)\n break\n case options._const.addElement:\n route = diff[options._const.route].slice()\n c = route.splice(route.length - 1, 1)[0]\n node = getFromRoute(tree, route)\n node.insertBefore(\n objToNode(\n diff[options._const.element],\n node.namespaceURI === 'http://www.w3.org/2000/svg',\n options\n ),\n node.childNodes[c] || null\n )\n break\n case options._const.removeTextElement:\n if (!node || node.nodeType !== 3) {\n return false\n }\n node.parentNode.removeChild(node)\n break\n case options._const.addTextElement:\n route = diff[options._const.route].slice()\n c = route.splice(route.length - 1, 1)[0]\n newNode = options.document.createTextNode(diff[options._const.value])\n node = getFromRoute(tree, route)\n if (!node || !node.childNodes) {\n return false\n }\n node.insertBefore(newNode, node.childNodes[c] || null)\n break\n default:\n console.log('unknown action')\n }\n\n // if a new node was created, we might be interested in its\n // post diff hook\n info.newNode = newNode\n options.postDiffApply(info)\n\n return true\n}\n\nexport function applyDOM(tree, diffs, options) {\n return diffs.every(diff => applyDiff(tree, diff, options))\n}\n","import {applyDiff} from \"./apply\"\n\n// ===== Undo a diff =====\n\nfunction swap(obj, p1, p2) {\n const tmp = obj[p1]\n obj[p1] = obj[p2]\n obj[p2] = tmp\n}\n\nfunction undoDiff(\n tree,\n diff,\n options // {preDiffApply, postDiffApply, textDiff, valueDiffing, _const}\n) {\n\n switch (diff[options._const.action]) {\n case options._const.addAttribute:\n diff[options._const.action] = options._const.removeAttribute\n applyDiff(tree, diff, options)\n break\n case options._const.modifyAttribute:\n swap(diff, options._const.oldValue, options._const.newValue)\n applyDiff(tree, diff, options)\n break\n case options._const.removeAttribute:\n diff[options._const.action] = options._const.addAttribute\n applyDiff(tree, diff, options)\n break\n case options._const.modifyTextElement:\n swap(diff, options._const.oldValue, options._const.newValue)\n applyDiff(tree, diff, options)\n break\n case options._const.modifyValue:\n swap(diff, options._const.oldValue, options._const.newValue)\n applyDiff(tree, diff, options)\n break\n case options._const.modifyComment:\n swap(diff, options._const.oldValue, options._const.newValue)\n applyDiff(tree, diff, options)\n break\n case options._const.modifyChecked:\n swap(diff, options._const.oldValue, options._const.newValue)\n applyDiff(tree, diff, options)\n break\n case options._const.modifySelected:\n swap(diff, options._const.oldValue, options._const.newValue)\n applyDiff(tree, diff, options)\n break\n case options._const.replaceElement:\n swap(diff, options._const.oldValue, options._const.newValue)\n applyDiff(tree, diff, options)\n break\n case options._const.relocateGroup:\n swap(diff, options._const.from, options._const.to)\n applyDiff(tree, diff, options)\n break\n case options._const.removeElement:\n diff[options._const.action] = options._const.addElement\n applyDiff(tree, diff, options)\n break\n case options._const.addElement:\n diff[options._const.action] = options._const.removeElement\n applyDiff(tree, diff, options)\n break\n case options._const.removeTextElement:\n diff[options._const.action] = options._const.addTextElement\n applyDiff(tree, diff, options)\n break\n case options._const.addTextElement:\n diff[options._const.action] = options._const.removeTextElement\n applyDiff(tree, diff, options)\n break\n default:\n console.log('unknown action')\n }\n\n}\n\nexport function undoDOM(tree, diffs, options) {\n if (!diffs.length) {\n diffs = [diffs]\n }\n diffs = diffs.slice()\n diffs.reverse()\n diffs.forEach(diff => {\n undoDiff(tree, diff, options)\n })\n}\n","export class Diff {\n constructor(options = {}) {\n Object.entries(options).forEach(([key, value]) => this[key] = value)\n }\n\n toString() {\n return JSON.stringify(this)\n }\n\n setValue(aKey, aValue) {\n this[aKey] = aValue\n return this\n }\n}\n\nfunction elementDescriptors(el) {\n const output = []\n output.push(el.nodeName)\n if (el.nodeName !== '#text' && el.nodeName !== '#comment') {\n if (el.attributes) {\n if (el.attributes['class']) {\n output.push(`${el.nodeName}.${el.attributes['class'].replace(/ /g, '.')}`)\n }\n if (el.attributes.id) {\n output.push(`${el.nodeName}#${el.attributes.id}`)\n }\n }\n\n }\n return output\n}\n\nfunction findUniqueDescriptors(li) {\n const uniqueDescriptors = {}\n const duplicateDescriptors = {}\n\n li.forEach(node => {\n elementDescriptors(node).forEach(descriptor => {\n const inUnique = descriptor in uniqueDescriptors\n const inDupes = descriptor in duplicateDescriptors\n if (!inUnique && !inDupes) {\n uniqueDescriptors[descriptor] = true\n } else if (inUnique) {\n delete uniqueDescriptors[descriptor]\n duplicateDescriptors[descriptor] = true\n }\n })\n })\n\n return uniqueDescriptors\n}\n\nfunction uniqueInBoth(l1, l2) {\n const l1Unique = findUniqueDescriptors(l1)\n const l2Unique = findUniqueDescriptors(l2)\n const inBoth = {}\n\n Object.keys(l1Unique).forEach(key => {\n if (l2Unique[key]) {\n inBoth[key] = true\n }\n })\n\n return inBoth\n}\n\nexport function removeDone(tree) {\n delete tree.outerDone\n delete tree.innerDone\n delete tree.valueDone\n if (tree.childNodes) {\n return tree.childNodes.every(removeDone)\n } else {\n return true\n }\n}\n\nexport function isEqual(e1, e2) {\n if (!['nodeName', 'value', 'checked', 'selected', 'data'].every(element => {\n if (e1[element] !== e2[element]) {\n return false\n }\n return true\n })) {\n return false\n }\n\n if (Boolean(e1.attributes) !== Boolean(e2.attributes)) {\n return false\n }\n\n if (Boolean(e1.childNodes) !== Boolean(e2.childNodes)) {\n return false\n }\n if (e1.attributes) {\n const e1Attributes = Object.keys(e1.attributes)\n const e2Attributes = Object.keys(e2.attributes)\n\n if (e1Attributes.length !== e2Attributes.length) {\n return false\n }\n if (!e1Attributes.every(attribute => {\n if (e1.attributes[attribute] !== e2.attributes[attribute]) {\n return false\n }\n return true\n })) {\n return false\n }\n }\n if (e1.childNodes) {\n if (e1.childNodes.length !== e2.childNodes.length) {\n return false\n }\n if (!e1.childNodes.every((childNode, index) => isEqual(childNode, e2.childNodes[index]))) {\n\n return false\n }\n\n }\n\n return true\n}\n\n\nexport function roughlyEqual(e1, e2, uniqueDescriptors, sameSiblings, preventRecursion) {\n\n if (!e1 || !e2) {\n return false\n }\n\n if (e1.nodeName !== e2.nodeName) {\n return false\n }\n\n if (e1.nodeName === '#text') {\n // Note that we initially don't care what the text content of a node is,\n // the mere fact that it's the same tag and \"has text\" means it's roughly\n // equal, and then we can find out the true text difference later.\n return preventRecursion ? true : e1.data === e2.data\n }\n\n\n if (e1.nodeName in uniqueDescriptors) {\n return true\n }\n\n if (e1.attributes && e2.attributes) {\n\n if (e1.attributes.id) {\n if (e1.attributes.id !== e2.attributes.id) {\n return false\n } else {\n const idDescriptor = `${e1.nodeName}#${e1.attributes.id}`\n if (idDescriptor in uniqueDescriptors) {\n return true\n }\n }\n }\n if (e1.attributes['class'] && e1.attributes['class'] === e2.attributes['class']) {\n const classDescriptor = `${e1.nodeName}.${e1.attributes['class'].replace(/ /g, '.')}`\n if (classDescriptor in uniqueDescriptors) {\n return true\n }\n }\n }\n\n if (sameSiblings) {\n return true\n }\n\n const nodeList1 = e1.childNodes ? e1.childNodes.slice().reverse() : []\n const nodeList2 = e2.childNodes ? e2.childNodes.slice().reverse() : []\n\n if (nodeList1.length !== nodeList2.length) {\n return false\n }\n\n if (preventRecursion) {\n return nodeList1.every((element, index) => element.nodeName === nodeList2[index].nodeName)\n } else {\n // note: we only allow one level of recursion at any depth. If 'preventRecursion'\n // was not set, we must explicitly force it to true for child iterations.\n const childUniqueDescriptors = uniqueInBoth(nodeList1, nodeList2)\n return nodeList1.every((element, index) => roughlyEqual(element, nodeList2[index], childUniqueDescriptors, true, true))\n }\n}\n\n\nexport function cloneObj(obj) { // TODO: Do we really need to clone here? Is it not enough to just return the original object?\n return JSON.parse(JSON.stringify(obj))\n}\n/**\n * based on https://en.wikibooks.org/wiki/Algorithm_implementation/Strings/Longest_common_substring#JavaScript\n */\nfunction findCommonSubsets(c1, c2, marked1, marked2) {\n let lcsSize = 0\n let index = []\n const c1Length = c1.length\n const c2Length = c2.length\n\n const // set up the matching table\n matches = Array(...new Array(c1Length + 1)).map(() => [])\n\n const uniqueDescriptors = uniqueInBoth(c1, c2)\n\n let // If all of the elements are the same tag, id and class, then we can\n // consider them roughly the same even if they have a different number of\n // children. This will reduce removing and re-adding similar elements.\n subsetsSame = c1Length === c2Length\n\n if (subsetsSame) {\n\n c1.some((element, i) => {\n const c1Desc = elementDescriptors(element)\n const c2Desc = elementDescriptors(c2[i])\n if (c1Desc.length !== c2Desc.length) {\n subsetsSame = false\n return true\n }\n c1Desc.some((description, i) => {\n if (description !== c2Desc[i]) {\n subsetsSame = false\n return true\n }\n })\n if (!subsetsSame) {\n return true\n }\n })\n }\n\n // fill the matches with distance values\n for (let c1Index = 0; c1Index < c1Length; c1Index++) {\n const c1Element = c1[c1Index]\n for (let c2Index = 0; c2Index < c2Length; c2Index++) {\n const c2Element = c2[c2Index]\n if (!marked1[c1Index] && !marked2[c2Index] && roughlyEqual(c1Element, c2Element, uniqueDescriptors, subsetsSame)) {\n matches[c1Index + 1][c2Index + 1] = (matches[c1Index][c2Index] ? matches[c1Index][c2Index] + 1 : 1)\n if (matches[c1Index + 1][c2Index + 1] >= lcsSize) {\n lcsSize = matches[c1Index + 1][c2Index + 1]\n index = [c1Index + 1, c2Index + 1]\n }\n } else {\n matches[c1Index + 1][c2Index + 1] = 0\n }\n }\n }\n\n if (lcsSize === 0) {\n return false\n }\n\n return {\n oldValue: index[0] - lcsSize,\n newValue: index[1] - lcsSize,\n length: lcsSize\n }\n}\n\n/**\n * This should really be a predefined function in Array...\n */\nfunction makeArray(n, v) {\n return Array(...new Array(n)).map(() => v)\n}\n\n/**\n * Generate arrays that indicate which node belongs to which subset,\n * or whether it's actually an orphan node, existing in only one\n * of the two trees, rather than somewhere in both.\n *\n * So if t1 =
, t2 =
.\n * The longest subset is \"
\" (length 2), so it will group 0.\n * The second longest is \"\" (length 1), so it will be group 1.\n * gaps1 will therefore be [1,0,0] and gaps2 [0,0,1].\n *\n * If an element is not part of any group, it will stay being 'true', which\n * is the initial value. For example:\n * t1 =


, t2 =
\n *\n * The \"

\" and \"\" do only show up in one of the two and will\n * therefore be marked by \"true\". The remaining parts are parts of the\n * groups 0 and 1:\n * gaps1 = [1, true, 0, 0], gaps2 = [true, 0, 0, 1]\n *\n */\nexport function getGapInformation(t1, t2, stable) {\n const gaps1 = t1.childNodes ? makeArray(t1.childNodes.length, true) : []\n const gaps2 = t2.childNodes ? makeArray(t2.childNodes.length, true) : []\n let group = 0\n\n // give elements from the same subset the same group number\n stable.forEach(subset => {\n const endOld = subset.oldValue + subset.length\n const endNew = subset.newValue + subset.length\n\n for (let j = subset.oldValue; j < endOld; j += 1) {\n gaps1[j] = group\n }\n for (let j = subset.newValue; j < endNew; j += 1) {\n gaps2[j] = group\n }\n group += 1\n })\n\n return {\n gaps1,\n gaps2\n }\n}\n\n/**\n * Find all matching subsets, based on immediate child differences only.\n */\nexport function markSubTrees(oldTree, newTree) {\n // note: the child lists are views, and so update as we update old/newTree\n const oldChildren = oldTree.childNodes ? oldTree.childNodes : []\n\n const newChildren = newTree.childNodes ? newTree.childNodes : []\n const marked1 = makeArray(oldChildren.length, false)\n const marked2 = makeArray(newChildren.length, false)\n const subsets = []\n let subset = true\n\n const returnIndex = function() {\n return arguments[1]\n }\n\n const markBoth = i => {\n marked1[subset.oldValue + i] = true\n marked2[subset.newValue + i] = true\n }\n\n while (subset) {\n subset = findCommonSubsets(oldChildren, newChildren, marked1, marked2)\n if (subset) {\n subsets.push(subset)\n const subsetArray = Array(...new Array(subset.length)).map(returnIndex)\n subsetArray.forEach(item => markBoth(item))\n }\n }\n\n oldTree.subsets = subsets\n oldTree.subsetsAge = 100\n return subsets\n}\n\nexport class DiffTracker {\n constructor() {\n this.list = []\n }\n\n add(diffs) {\n this.list.push(...diffs)\n }\n forEach(fn) {\n this.list.forEach(li => fn(li))\n }\n\n}\n","import {cloneObj} from \"./helpers\"\n\n// ===== Apply a virtual diff =====\n\nfunction getFromVirtualRoute(tree, route) {\n let node = tree\n let parentNode\n let nodeIndex\n\n route = route.slice()\n while (route.length > 0) {\n if (!node.childNodes) {\n return false\n }\n nodeIndex = route.splice(0, 1)[0]\n parentNode = node\n node = node.childNodes[nodeIndex]\n }\n return {\n node,\n parentNode,\n nodeIndex\n }\n}\n\nfunction applyVirtualDiff(\n tree,\n diff,\n options // {preVirtualDiffApply, postVirtualDiffApply, _const}\n ) {\n const routeInfo = getFromVirtualRoute(tree, diff[options._const.route])\n let node = routeInfo.node\n const parentNode = routeInfo.parentNode\n const nodeIndex = routeInfo.nodeIndex\n const newSubsets = []\n\n // pre-diff hook\n const info = {\n diff,\n node\n }\n\n if (options.preVirtualDiffApply(info)) {\n return true\n }\n\n let newNode\n let nodeArray\n let route\n let c\n switch (diff[options._const.action]) {\n case options._const.addAttribute:\n if (!node.attributes) {\n node.attributes = {}\n }\n\n node.attributes[diff[options._const.name]] = diff[options._const.value]\n\n if (diff[options._const.name] === 'checked') {\n node.checked = true\n } else if (diff[options._const.name] === 'selected') {\n node.selected = true\n } else if (node.nodeName === 'INPUT' && diff[options._const.name] === 'value') {\n node.value = diff[options._const.value]\n }\n\n break\n case options._const.modifyAttribute:\n node.attributes[diff[options._const.name]] = diff[options._const.newValue]\n break\n case options._const.removeAttribute:\n\n delete node.attributes[diff[options._const.name]]\n\n if (Object.keys(node.attributes).length === 0) {\n delete node.attributes\n }\n\n if (diff[options._const.name] === 'checked') {\n node.checked = false\n } else if (diff[options._const.name] === 'selected') {\n delete node.selected\n } else if (node.nodeName === 'INPUT' && diff[options._const.name] === 'value') {\n delete node.value\n }\n\n break\n case options._const.modifyTextElement:\n node.data = diff[options._const.newValue]\n break\n case options._const.modifyValue:\n node.value = diff[options._const.newValue]\n break\n case options._const.modifyComment:\n node.data = diff[options._const.newValue]\n break\n case options._const.modifyChecked:\n node.checked = diff[options._const.newValue]\n break\n case options._const.modifySelected:\n node.selected = diff[options._const.newValue]\n break\n case options._const.replaceElement:\n newNode = cloneObj(diff[options._const.newValue])\n newNode.outerDone = true\n newNode.innerDone = true\n newNode.valueDone = true\n parentNode.childNodes[nodeIndex] = newNode\n break\n case options._const.relocateGroup:\n nodeArray = node.childNodes.splice(diff[options._const.from], diff.groupLength).reverse()\n nodeArray.forEach(movedNode => node.childNodes.splice(diff[options._const.to], 0, movedNode))\n if (node.subsets) {\n node.subsets.forEach(map => {\n if (diff[options._const.from] < diff[options._const.to] && map.oldValue <= diff[options._const.to] && map.oldValue > diff[options._const.from]) {\n map.oldValue -= diff.groupLength\n const splitLength = map.oldValue + map.length - diff[options._const.to]\n if (splitLength > 0) {\n // new insertion splits map.\n newSubsets.push({\n oldValue: diff[options._const.to] + diff.groupLength,\n newValue: map.newValue + map.length - splitLength,\n length: splitLength\n })\n map.length -= splitLength\n }\n } else if (diff[options._const.from] > diff[options._const.to] && map.oldValue > diff[options._const.to] && map.oldValue < diff[options._const.from]) {\n map.oldValue += diff.groupLength\n const splitLength = map.oldValue + map.length - diff[options._const.to]\n if (splitLength > 0) {\n // new insertion splits map.\n newSubsets.push({\n oldValue: diff[options._const.to] + diff.groupLength,\n newValue: map.newValue + map.length - splitLength,\n length: splitLength\n })\n map.length -= splitLength\n }\n } else if (map.oldValue === diff[options._const.from]) {\n map.oldValue = diff[options._const.to]\n }\n })\n }\n\n break\n case options._const.removeElement:\n parentNode.childNodes.splice(nodeIndex, 1)\n if (parentNode.subsets) {\n parentNode.subsets.forEach(map => {\n if (map.oldValue > nodeIndex) {\n map.oldValue -= 1\n } else if (map.oldValue === nodeIndex) {\n map.delete = true\n } else if (map.oldValue < nodeIndex && (map.oldValue + map.length) > nodeIndex) {\n if (map.oldValue + map.length - 1 === nodeIndex) {\n map.length--\n } else {\n newSubsets.push({\n newValue: map.newValue + nodeIndex - map.oldValue,\n oldValue: nodeIndex,\n length: map.length - nodeIndex + map.oldValue - 1\n })\n map.length = nodeIndex - map.oldValue\n }\n }\n })\n }\n node = parentNode\n break\n case options._const.addElement:\n route = diff[options._const.route].slice()\n c = route.splice(route.length - 1, 1)[0]\n node = getFromVirtualRoute(tree, route).node\n newNode = cloneObj(diff[options._const.element])\n newNode.outerDone = true\n newNode.innerDone = true\n newNode.valueDone = true\n\n if (!node.childNodes) {\n node.childNodes = []\n }\n\n if (c >= node.childNodes.length) {\n node.childNodes.push(newNode)\n } else {\n node.childNodes.splice(c, 0, newNode)\n }\n if (node.subsets) {\n node.subsets.forEach(map => {\n if (map.oldValue >= c) {\n map.oldValue += 1\n } else if (map.oldValue < c && (map.oldValue + map.length) > c) {\n const splitLength = map.oldValue + map.length - c\n newSubsets.push({\n newValue: map.newValue + map.length - splitLength,\n oldValue: c + 1,\n length: splitLength\n })\n map.length -= splitLength\n }\n })\n }\n break\n case options._const.removeTextElement:\n parentNode.childNodes.splice(nodeIndex, 1)\n if (parentNode.nodeName === 'TEXTAREA') {\n delete parentNode.value\n }\n if (parentNode.subsets) {\n parentNode.subsets.forEach(map => {\n if (map.oldValue > nodeIndex) {\n map.oldValue -= 1\n } else if (map.oldValue === nodeIndex) {\n map.delete = true\n } else if (map.oldValue < nodeIndex && (map.oldValue + map.length) > nodeIndex) {\n if (map.oldValue + map.length - 1 === nodeIndex) {\n map.length--\n } else {\n newSubsets.push({\n newValue: map.newValue + nodeIndex - map.oldValue,\n oldValue: nodeIndex,\n length: map.length - nodeIndex + map.oldValue - 1\n })\n map.length = nodeIndex - map.oldValue\n }\n }\n })\n }\n node = parentNode\n break\n case options._const.addTextElement:\n route = diff[options._const.route].slice()\n c = route.splice(route.length - 1, 1)[0]\n newNode = {}\n newNode.nodeName = '#text'\n newNode.data = diff[options._const.value]\n node = getFromVirtualRoute(tree, route).node\n if (!node.childNodes) {\n node.childNodes = []\n }\n\n if (c >= node.childNodes.length) {\n node.childNodes.push(newNode)\n } else {\n node.childNodes.splice(c, 0, newNode)\n }\n if (node.nodeName === 'TEXTAREA') {\n node.value = diff[options._const.newValue]\n }\n if (node.subsets) {\n node.subsets.forEach(map => {\n if (map.oldValue >= c) {\n map.oldValue += 1\n }\n if (map.oldValue < c && (map.oldValue + map.length) > c) {\n const splitLength = map.oldValue + map.length - c\n newSubsets.push({\n newValue: map.newValue + map.length - splitLength,\n oldValue: c + 1,\n length: splitLength\n })\n map.length -= splitLength\n }\n })\n }\n break\n default:\n console.log('unknown action')\n }\n\n if (node.subsets) {\n node.subsets = node.subsets.filter(map => !map.delete && map.oldValue !== map.newValue)\n if (newSubsets.length) {\n node.subsets = node.subsets.concat(newSubsets)\n }\n }\n\n // capture newNode for the callback\n info.newNode = newNode\n options.postVirtualDiffApply(info)\n\n return\n}\n\nexport function applyVirtual(tree, diffs, options) {\n diffs.forEach(diff => {\n applyVirtualDiff(tree, diff, options)\n })\n return true\n}\n","export function nodeToObj(aNode, options = {}) {\n const objNode = {}\n objNode.nodeName = aNode.nodeName\n if (objNode.nodeName === '#text' || objNode.nodeName === '#comment') {\n objNode.data = aNode.data\n } else {\n if (aNode.attributes && aNode.attributes.length > 0) {\n objNode.attributes = {}\n const nodeArray = Array.prototype.slice.call(aNode.attributes)\n nodeArray.forEach(attribute => objNode.attributes[attribute.name] = attribute.value)\n }\n if (objNode.nodeName === 'TEXTAREA') {\n objNode.value = aNode.value\n } else if (aNode.childNodes && aNode.childNodes.length > 0) {\n objNode.childNodes = []\n const nodeArray = Array.prototype.slice.call(aNode.childNodes)\n nodeArray.forEach(childNode => objNode.childNodes.push(nodeToObj(childNode, options)))\n }\n if (options.valueDiffing) {\n if (aNode.checked !== undefined && aNode.type && ['radio', 'checkbox'].includes(aNode.type.toLowerCase())) {\n objNode.checked = aNode.checked\n } else if (aNode.value !== undefined) {\n objNode.value = aNode.value\n }\n if (aNode.selected !== undefined) {\n objNode.selected = aNode.selected\n }\n }\n }\n return objNode\n}\n","// from html-parse-stringify (MIT)\n\nconst tagRE = /<(?:\"[^\"]*\"['\"]*|'[^']*'['\"]*|[^'\">])+>/g\n// re-used obj for quick lookups of components\nconst empty = Object.create ? Object.create(null) : {}\nconst attrRE = /\\s([^'\"/\\s><]+?)[\\s/>]|([^\\s=]+)=\\s?(\".*?\"|'.*?')/g\n\n\nfunction unescape(string) {\n return string.replace(/</g, '<').replace(/>/g, '>')\n.replace(/&/g, '&')\n}\n\n// create optimized lookup object for\n// void elements as listed here:\n// http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements\nconst lookup = {\n area: true,\n base: true,\n br: true,\n col: true,\n embed: true,\n hr: true,\n img: true,\n input: true,\n keygen: true,\n link: true,\n menuItem: true,\n meta: true,\n param: true,\n source: true,\n track: true,\n wbr: true\n}\n\n\nfunction parseTag(tag) {\n const res = {\n nodeName: '',\n attributes: {}\n }\n\n let tagMatch = tag.match(/<\\/?([^\\s]+?)[/\\s>]/)\n if (tagMatch) {\n res.nodeName = tagMatch[1].toUpperCase()\n if (lookup[tagMatch[1].toLowerCase()] || tag.charAt(tag.length - 2) === '/') {\n res.voidElement = true\n }\n\n // handle comment tag\n if (res.nodeName.startsWith('!--')) {\n const endIndex = tag.indexOf('-->')\n return {\n type: 'comment',\n data: endIndex !== -1 ? tag.slice(4, endIndex) : ''\n }\n }\n }\n\n let reg = new RegExp(attrRE)\n let result = null\n let done = false\n while (!done) {\n result = reg.exec(tag)\n\n if (result === null) {\n done = true\n } else if (result[0].trim()) {\n if (result[1]) {\n let attr = result[1].trim()\n let arr = [attr, \"\"]\n\n if (attr.indexOf(\"=\") > -1) arr = attr.split(\"=\")\n\n res.attributes[arr[0]] = arr[1]\n reg.lastIndex--\n } else if (result[2]) res.attributes[result[2]] = result[3].trim().substring(1, result[3].length - 1)\n }\n }\n\n return res\n}\n\nfunction parse(\n html,\n options = {components: empty}\n) {\n const result = []\n let current\n let level = -1\n const arr = []\n let inComponent = false\n\n html.replace(tagRE, (tag, index) => {\n if (inComponent) {\n if (tag !== (``)) {\n return\n } else {\n inComponent = false\n }\n }\n const isOpen = tag.charAt(1) !== '/'\n const isComment = tag.startsWith(' +image/svg+xml diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/file.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/file.svg new file mode 100644 index 00000000..f4d010cd --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/file.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/fiveserver.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/fiveserver.svg new file mode 100644 index 00000000..364d518a --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/fiveserver.svg @@ -0,0 +1,326 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/folder.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/folder.svg new file mode 100644 index 00000000..f78e8640 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/folder.svg @@ -0,0 +1,47 @@ + +image/svg+xml \ No newline at end of file diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/font.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/font.svg new file mode 100644 index 00000000..ffb76454 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/font.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/git.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/git.svg new file mode 100644 index 00000000..6b7ed47b --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/git.svg @@ -0,0 +1,4 @@ + + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/h.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/h.svg new file mode 100644 index 00000000..cd5049b5 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/h.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/html.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/html.svg new file mode 100644 index 00000000..278123a3 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/html.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/image.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/image.svg new file mode 100644 index 00000000..380ac3d2 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/image.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/java.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/java.svg new file mode 100644 index 00000000..da8cc1f6 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/java.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/javascript.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/javascript.svg new file mode 100644 index 00000000..cf89d6ec --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/javascript.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/json.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/json.svg new file mode 100644 index 00000000..01df7610 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/json.svg @@ -0,0 +1 @@ + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/key.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/key.svg new file mode 100644 index 00000000..913277ed --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/key.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/less.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/less.svg new file mode 100644 index 00000000..0ad7e9e4 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/less.svg @@ -0,0 +1 @@ + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/markdown.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/markdown.svg new file mode 100644 index 00000000..b9b2c5f4 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/markdown.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/nodejs.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/nodejs.svg new file mode 100644 index 00000000..1605f3e8 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/nodejs.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/npm.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/npm.svg new file mode 100644 index 00000000..06d6036e --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/npm.svg @@ -0,0 +1,8 @@ + + + + + + n + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/pdf.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/pdf.svg new file mode 100644 index 00000000..5d1bbe47 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/pdf.svg @@ -0,0 +1 @@ + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/php.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/php.svg new file mode 100644 index 00000000..65133a54 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/php.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/prettier.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/prettier.svg new file mode 100644 index 00000000..8853bc1c --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/prettier.svg @@ -0,0 +1,35 @@ + +prettier-icon-dark +Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/react.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/react.svg new file mode 100644 index 00000000..4cfa7573 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/react.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/react_ts.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/react_ts.svg new file mode 100644 index 00000000..c96204ce --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/react_ts.svg @@ -0,0 +1 @@ + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/readme.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/readme.svg new file mode 100644 index 00000000..9148cfd8 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/readme.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/sass.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/sass.svg new file mode 100644 index 00000000..2964faa9 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/sass.svg @@ -0,0 +1 @@ + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/settings.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/settings.svg new file mode 100644 index 00000000..668cbc2a --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/settings.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/svg.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/svg.svg new file mode 100644 index 00000000..498c5af5 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/svg.svg @@ -0,0 +1 @@ + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-js.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-js.svg new file mode 100644 index 00000000..6fd2fdce --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-js.svg @@ -0,0 +1 @@ + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-jsx.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-jsx.svg new file mode 100644 index 00000000..829eb4fd --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-jsx.svg @@ -0,0 +1,4 @@ + + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-ts.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-ts.svg new file mode 100644 index 00000000..02cd9c27 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/test-ts.svg @@ -0,0 +1 @@ + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/typescript-def.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/typescript-def.svg new file mode 100644 index 00000000..bbef5f10 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/typescript-def.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/typescript.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/typescript.svg new file mode 100644 index 00000000..0950c42f --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/typescript.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/video.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/video.svg new file mode 100644 index 00000000..70407193 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/video.svg @@ -0,0 +1,4 @@ + + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/xml.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/xml.svg new file mode 100644 index 00000000..d0db9476 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/xml.svg @@ -0,0 +1,4 @@ + + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/yaml.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/yaml.svg new file mode 100644 index 00000000..0eb7ce85 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/yaml.svg @@ -0,0 +1 @@ + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/zip.svg b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/zip.svg new file mode 100644 index 00000000..cfa2c24f --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/icons/zip.svg @@ -0,0 +1,3 @@ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/style.css b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/style.css new file mode 100644 index 00000000..03e4f205 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-explorer/style.css @@ -0,0 +1,201 @@ +ul#files { + width: 100%; + height: 100%; + overflow: hidden; + column-count: 3; +} +ul#files li { + margin-bottom: 6px; + line-height: 30px; +} +ul#files li a { + display: block; + height: 30px; + border: 1px solid #e9e9e9; + border-radius: 5px; + padding: 2px; + /* overflow: hidden; */ + /* white-space: nowrap; */ +} +ul#files li a:focus, +ul#files li a:hover { + background: rgba(255, 255, 255, 0.65); + border: 1px solid #dadada; +} +ul#files li a.highlight { + transition: background 0.4s ease-in-out; + background: #add6ff66; + border-color: #add6ff8c; +} +ul#files li a span { + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; +} +ul#files li.hidden { + display: none; +} +#search { + display: block; + position: fixed; + top: 20px; + right: 20px; + width: 90px; + transition: width ease 0.2s, opacity ease 0.4s; + /* border-radius: 4px; */ + -webkit-font-smoothing: antialiased; + text-align: left; + font: 14px 'Helvetica Neue', Arial, sans-serif; + padding: 6px 12px; + border: none; + background: #f1f1f1; + margin-bottom: 0; + outline: none; + opacity: 0.7; + color: #888; +} +#search:focus { + width: 120px; + opacity: 1; +} +@media (min-width: 1024px) { + input#search { + right: max(100px, calc(100vw / 2 - 512px)); + } +} + +/*views*/ +#files span { + display: inline-block; + overflow: hidden; + text-overflow: ellipsis; + text-indent: 10px; +} +#files .name { + background-repeat: no-repeat; + background-position: 6px center; +} +#files .icon .name { + text-indent: 28px; + background-size: 16px 16px; +} + +/*tiles*/ +.view-tiles .name { + width: 100%; + background-position: 8px 5px; +} +.view-tiles .size, +.view-tiles .date { + display: none; +} + +/*details*/ +ul#files.view-details li { + float: none; + display: block; + width: 90%; +} +ul#files.view-details li.header { + height: 25px; + background: #000; + color: #fff; + font-weight: bold; +} +.view-details .header { + border-radius: 5px; +} +.view-details .name { + width: 60%; + background-position: 8px 5px; +} +.view-details .size { + width: 10%; +} +.view-details .date { + width: 30%; +} +.view-details .size, +.view-details .date { + text-align: right; + direction: rtl; +} + +/*small*/ +@media (max-width: 768px) { +} + +/*smaller*/ +@media (max-width: 640px) { + ul#files { + column-count: 2; + } +} + +/*mobile*/ +@media (max-width: 480px) { + body { + font-size: 14px; + line-height: 16px; + } + #search { + position: static; + width: 100%; + font-size: 2em; + line-height: 1.8em; + text-indent: 10px; + border: 0; + border-radius: 0; + padding: 10px 0; + margin: 0; + } + #search:focus { + width: 100%; + border: 0; + opacity: 1; + } + ul#files { + border-top: 1px solid #cacaca; + column-count: 1; + } + ul#files li { + float: none; + width: auto !important; + display: block; + border-bottom: 1px solid #cacaca; + font-size: 2em; + line-height: 1.2em; + text-indent: 0; + margin: 0; + } + ul#files li a { + height: auto; + border: 0; + border-radius: 0; + padding: 15px 10px; + } + ul#files li a span { + vertical-align: middle; + } + ul#files li a:focus, + ul#files li a:hover { + border: 0; + } + #files .header, + #files .size, + #files .date { + display: none !important; + } + #files .name { + float: none; + display: inline-block; + width: 100%; + text-indent: 0; + background-position: 0 50%; + } + #files .icon .name { + text-indent: 41px; + background-size: 28px 28px; + background-position: 2px center; + } +} diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/README.md b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/README.md new file mode 100644 index 00000000..7afccce9 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/README.md @@ -0,0 +1 @@ +Files used by execPHP.ts diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/error.html b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/error.html new file mode 100644 index 00000000..0f578336 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/error.html @@ -0,0 +1,54 @@ + + + + + + + PHP ERROR + + + + + + + + + +
+

PHP ERROR

+
+
{msg}
+
+
+ + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/index.html b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/index.html new file mode 100644 index 00000000..35917c8c --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-php/index.html @@ -0,0 +1,64 @@ + + + + + + + PHP ERROR + + + + + + + +
+

PHP ERROR

+

{msg}

+ +

Install PHP

+

Download and install XAMPP.

+ +

Get PHP Path

+

Follow the steps below to get the path to the PHP executable:

+
    +
  • Ubuntu: Enter which php in your Terminal.
  • +
  • macOS: Enter which php in your Terminal.
  • +
  • Windows: Search for php.exe.
  • +
+ +

Config File Example

+
+
// fiveserver.config.js
+module.exports = {
+  php: "/usr/bin/php"              // macOS/Ubuntu
+  php: "C:\\xampp\\php\\php.exe"   // Windows
+}
+
+
+ + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/LICENSE.js b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/LICENSE.js new file mode 100644 index 00000000..d66167f4 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/LICENSE.js @@ -0,0 +1,5 @@ +/** + * @copyright Copyright (c) 2006-2021, Ivan Sagalaev + * @license ${link https://github.com/highlightjs/highlight.js/blob/main/LICENSE|BSD-3-Clause} + * @description highlight.min.js, vs.min.css and vs2015.min.css are from Highlight.js 10.7.2 (00233d63) (https://github.com/highlightjs/highlight.js) + */ diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/highlight.min.js b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/highlight.min.js new file mode 100644 index 00000000..ffeb034a --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/highlight.min.js @@ -0,0 +1,1358 @@ +/* + Highlight.js 10.7.2 (00233d63) + License: BSD-3-Clause + Copyright (c) 2006-2021, Ivan Sagalaev +*/ +var hljs=function(){"use strict";function e(t){ +return t instanceof Map?t.clear=t.delete=t.set=()=>{ +throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=()=>{ +throw Error("set is read-only") +}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{var i=t[n] +;"object"!=typeof i||Object.isFrozen(i)||e(i)})),t}var t=e,n=e;t.default=n +;class i{constructor(e){ +void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1} +ignoreMatch(){this.isMatchIgnored=!0}}function s(e){ +return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'") +}function a(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t] +;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}const r=e=>!!e.kind +;class l{constructor(e,t){ +this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){ +this.buffer+=s(e)}openNode(e){if(!r(e))return;let t=e.kind +;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){ +r(e)&&(this.buffer+="")}value(){return this.buffer}span(e){ +this.buffer+=``}}class o{constructor(){this.rootNode={ +children:[]},this.stack=[this.rootNode]}get top(){ +return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){ +this.top.children.push(e)}openNode(e){const t={kind:e,children:[]} +;this.add(t),this.stack.push(t)}closeNode(){ +if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){ +for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)} +walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){ +return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t), +t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){ +"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{ +o._collapse(e)})))}}class c extends o{constructor(e){super(),this.options=e} +addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())} +addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root +;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){ +return new l(this,this.options).value()}finalize(){return!0}}function g(e){ +return e?"string"==typeof e?e:e.source:null} +const u=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,h="[a-zA-Z]\\w*",d="[a-zA-Z_]\\w*",f="\\b\\d+(\\.\\d+)?",p="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",m="\\b(0b[01]+)",b={ +begin:"\\\\[\\s\\S]",relevance:0},E={className:"string",begin:"'",end:"'", +illegal:"\\n",contains:[b]},x={className:"string",begin:'"',end:'"', +illegal:"\\n",contains:[b]},v={ +begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ +},w=(e,t,n={})=>{const i=a({className:"comment",begin:e,end:t,contains:[]},n) +;return i.contains.push(v),i.contains.push({className:"doctag", +begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),i +},y=w("//","$"),N=w("/\\*","\\*/"),R=w("#","$");var _=Object.freeze({ +__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:h,UNDERSCORE_IDENT_RE:d, +NUMBER_RE:f,C_NUMBER_RE:p,BINARY_NUMBER_RE:m, +RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", +SHEBANG:(e={})=>{const t=/^#![ ]*\// +;return e.binary&&(e.begin=((...e)=>e.map((e=>g(e))).join(""))(t,/.*\b/,e.binary,/\b.*/)), +a({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{ +0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:b,APOS_STRING_MODE:E, +QUOTE_STRING_MODE:x,PHRASAL_WORDS_MODE:v,COMMENT:w,C_LINE_COMMENT_MODE:y, +C_BLOCK_COMMENT_MODE:N,HASH_COMMENT_MODE:R,NUMBER_MODE:{className:"number", +begin:f,relevance:0},C_NUMBER_MODE:{className:"number",begin:p,relevance:0}, +BINARY_NUMBER_MODE:{className:"number",begin:m,relevance:0},CSS_NUMBER_MODE:{ +className:"number", +begin:f+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", +relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp", +begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[b,{begin:/\[/,end:/\]/, +relevance:0,contains:[b]}]}]},TITLE_MODE:{className:"title",begin:h,relevance:0 +},UNDERSCORE_TITLE_MODE:{className:"title",begin:d,relevance:0},METHOD_GUARD:{ +begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:e=>Object.assign(e,{ +"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{ +t.data._beginMatch!==e[1]&&t.ignoreMatch()}})});function k(e,t){ +"."===e.input[e.index-1]&&t.ignoreMatch()}function M(e,t){ +t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)", +e.__beforeBegin=k,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords, +void 0===e.relevance&&(e.relevance=0))}function O(e,t){ +Array.isArray(e.illegal)&&(e.illegal=((...e)=>"("+e.map((e=>g(e))).join("|")+")")(...e.illegal)) +}function A(e,t){if(e.match){ +if(e.begin||e.end)throw Error("begin & end are not supported with match") +;e.begin=e.match,delete e.match}}function L(e,t){ +void 0===e.relevance&&(e.relevance=1)} +const I=["of","and","for","in","not","or","if","then","parent","list","value"] +;function j(e,t,n="keyword"){const i={} +;return"string"==typeof e?s(n,e.split(" ")):Array.isArray(e)?s(n,e):Object.keys(e).forEach((n=>{ +Object.assign(i,j(e[n],t,n))})),i;function s(e,n){ +t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((t=>{const n=t.split("|") +;i[n[0]]=[e,B(n[0],n[1])]}))}}function B(e,t){ +return t?Number(t):(e=>I.includes(e.toLowerCase()))(e)?0:1} +function T(e,{plugins:t}){function n(t,n){ +return RegExp(g(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class i{ +constructor(){ +this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0} +addRule(e,t){ +t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]), +this.matchAt+=(e=>RegExp(e.toString()+"|").exec("").length-1)(e)+1}compile(){ +0===this.regexes.length&&(this.exec=()=>null) +;const e=this.regexes.map((e=>e[1]));this.matcherRe=n(((e,t="|")=>{let n=0 +;return e.map((e=>{n+=1;const t=n;let i=g(e),s="";for(;i.length>0;){ +const e=u.exec(i);if(!e){s+=i;break} +s+=i.substring(0,e.index),i=i.substring(e.index+e[0].length), +"\\"===e[0][0]&&e[1]?s+="\\"+(Number(e[1])+t):(s+=e[0],"("===e[0]&&n++)}return s +})).map((e=>`(${e})`)).join(t)})(e),!0),this.lastIndex=0}exec(e){ +this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e) +;if(!t)return null +;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),i=this.matchIndexes[n] +;return t.splice(0,n),Object.assign(t,i)}}class s{constructor(){ +this.rules=[],this.multiRegexes=[], +this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){ +if(this.multiRegexes[e])return this.multiRegexes[e];const t=new i +;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))), +t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){ +return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){ +this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){ +const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex +;let n=t.exec(e) +;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{ +const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)} +return n&&(this.regexIndex+=n.position+1, +this.regexIndex===this.count&&this.considerAll()),n}} +if(e.compilerExtensions||(e.compilerExtensions=[]), +e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.") +;return e.classNameAliases=a(e.classNameAliases||{}),function t(i,r){const l=i +;if(i.isCompiled)return l +;[A].forEach((e=>e(i,r))),e.compilerExtensions.forEach((e=>e(i,r))), +i.__beforeBegin=null,[M,O,L].forEach((e=>e(i,r))),i.isCompiled=!0;let o=null +;if("object"==typeof i.keywords&&(o=i.keywords.$pattern, +delete i.keywords.$pattern), +i.keywords&&(i.keywords=j(i.keywords,e.case_insensitive)), +i.lexemes&&o)throw Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ") +;return o=o||i.lexemes||/\w+/, +l.keywordPatternRe=n(o,!0),r&&(i.begin||(i.begin=/\B|\b/), +l.beginRe=n(i.begin),i.endSameAsBegin&&(i.end=i.begin), +i.end||i.endsWithParent||(i.end=/\B|\b/), +i.end&&(l.endRe=n(i.end)),l.terminatorEnd=g(i.end)||"", +i.endsWithParent&&r.terminatorEnd&&(l.terminatorEnd+=(i.end?"|":"")+r.terminatorEnd)), +i.illegal&&(l.illegalRe=n(i.illegal)), +i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((t=>a(e,{ +variants:null},t)))),e.cachedVariants?e.cachedVariants:S(e)?a(e,{ +starts:e.starts?a(e.starts):null +}):Object.isFrozen(e)?a(e):e))("self"===e?i:e)))),i.contains.forEach((e=>{t(e,l) +})),i.starts&&t(i.starts,r),l.matcher=(e=>{const t=new s +;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin" +}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end" +}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(l),l}(e)}function S(e){ +return!!e&&(e.endsWithParent||S(e.starts))}function P(e){const t={ +props:["language","code","autodetect"],data:()=>({detectedLanguage:"", +unknownLanguage:!1}),computed:{className(){ +return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){ +if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`), +this.unknownLanguage=!0,s(this.code);let t={} +;return this.autoDetect?(t=e.highlightAuto(this.code), +this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals), +this.detectedLanguage=this.language),t.value},autoDetect(){ +return!(this.language&&(e=this.autodetect,!e&&""!==e));var e}, +ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{ +class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{ +Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const D={ +"after:highlightElement":({el:e,result:t,text:n})=>{const i=H(e) +;if(!i.length)return;const a=document.createElement("div") +;a.innerHTML=t.value,t.value=((e,t,n)=>{let i=0,a="";const r=[];function l(){ +return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function c(e){ +a+=""}function g(e){("start"===e.event?o:c)(e.node)} +for(;e.length||t.length;){let t=l() +;if(a+=s(n.substring(i,t[0].offset)),i=t[0].offset,t===e){r.reverse().forEach(c) +;do{g(t.splice(0,1)[0]),t=l()}while(t===e&&t.length&&t[0].offset===i) +;r.reverse().forEach(o) +}else"start"===t[0].event?r.push(t[0].node):r.pop(),g(t.splice(0,1)[0])} +return a+s(n.substr(i))})(i,H(a),n)}};function C(e){ +return e.nodeName.toLowerCase()}function H(e){const t=[];return function e(n,i){ +for(let s=n.firstChild;s;s=s.nextSibling)3===s.nodeType?i+=s.nodeValue.length:1===s.nodeType&&(t.push({ +event:"start",offset:i,node:s}),i=e(s,i),C(s).match(/br|hr|img|input/)||t.push({ +event:"stop",offset:i,node:s}));return i}(e,0),t}const $={},U=e=>{ +console.error(e)},z=(e,...t)=>{console.log("WARN: "+e,...t)},K=(e,t)=>{ +$[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),$[`${e}/${t}`]=!0) +},G=s,V=a,W=Symbol("nomatch");return(e=>{ +const n=Object.create(null),s=Object.create(null),a=[];let r=!0 +;const l=/(^(<[^>]+>|\t|)+|\n)/gm,o="Could not find the language '{}', did you forget to load/include a language module?",g={ +disableAutodetect:!0,name:"Plain text",contains:[]};let u={ +noHighlightRe:/^(no-?highlight)$/i, +languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-", +tabReplace:null,useBR:!1,languages:null,__emitter:c};function h(e){ +return u.noHighlightRe.test(e)}function d(e,t,n,i){let s="",a="" +;"object"==typeof t?(s=e, +n=t.ignoreIllegals,a=t.language,i=void 0):(K("10.7.0","highlight(lang, code, ...args) has been deprecated."), +K("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), +a=e,s=t);const r={code:s,language:a};M("before:highlight",r) +;const l=r.result?r.result:f(r.language,r.code,n,i) +;return l.code=r.code,M("after:highlight",l),l}function f(e,t,s,l){ +function c(e,t){const n=v.case_insensitive?t[0].toLowerCase():t[0] +;return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]} +function g(){null!=R.subLanguage?(()=>{if(""===M)return;let e=null +;if("string"==typeof R.subLanguage){ +if(!n[R.subLanguage])return void k.addText(M) +;e=f(R.subLanguage,M,!0,_[R.subLanguage]),_[R.subLanguage]=e.top +}else e=p(M,R.subLanguage.length?R.subLanguage:null) +;R.relevance>0&&(O+=e.relevance),k.addSublanguage(e.emitter,e.language) +})():(()=>{if(!R.keywords)return void k.addText(M);let e=0 +;R.keywordPatternRe.lastIndex=0;let t=R.keywordPatternRe.exec(M),n="";for(;t;){ +n+=M.substring(e,t.index);const i=c(R,t);if(i){const[e,s]=i +;if(k.addText(n),n="",O+=s,e.startsWith("_"))n+=t[0];else{ +const n=v.classNameAliases[e]||e;k.addKeyword(t[0],n)}}else n+=t[0] +;e=R.keywordPatternRe.lastIndex,t=R.keywordPatternRe.exec(M)} +n+=M.substr(e),k.addText(n)})(),M=""}function h(e){ +return e.className&&k.openNode(v.classNameAliases[e.className]||e.className), +R=Object.create(e,{parent:{value:R}}),R}function d(e,t,n){let s=((e,t)=>{ +const n=e&&e.exec(t);return n&&0===n.index})(e.endRe,n);if(s){if(e["on:end"]){ +const n=new i(e);e["on:end"](t,n),n.isMatchIgnored&&(s=!1)}if(s){ +for(;e.endsParent&&e.parent;)e=e.parent;return e}} +if(e.endsWithParent)return d(e.parent,t,n)}function m(e){ +return 0===R.matcher.regexIndex?(M+=e[0],1):(I=!0,0)}function b(e){ +const n=e[0],i=t.substr(e.index),s=d(R,e,i);if(!s)return W;const a=R +;a.skip?M+=n:(a.returnEnd||a.excludeEnd||(M+=n),g(),a.excludeEnd&&(M=n));do{ +R.className&&k.closeNode(),R.skip||R.subLanguage||(O+=R.relevance),R=R.parent +}while(R!==s.parent) +;return s.starts&&(s.endSameAsBegin&&(s.starts.endRe=s.endRe), +h(s.starts)),a.returnEnd?0:n.length}let E={};function x(n,a){const l=a&&a[0] +;if(M+=n,null==l)return g(),0 +;if("begin"===E.type&&"end"===a.type&&E.index===a.index&&""===l){ +if(M+=t.slice(a.index,a.index+1),!r){const t=Error("0 width match regex") +;throw t.languageName=e,t.badRule=E.rule,t}return 1} +if(E=a,"begin"===a.type)return function(e){ +const t=e[0],n=e.rule,s=new i(n),a=[n.__beforeBegin,n["on:begin"]] +;for(const n of a)if(n&&(n(e,s),s.isMatchIgnored))return m(t) +;return n&&n.endSameAsBegin&&(n.endRe=RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")), +n.skip?M+=t:(n.excludeBegin&&(M+=t), +g(),n.returnBegin||n.excludeBegin||(M=t)),h(n),n.returnBegin?0:t.length}(a) +;if("illegal"===a.type&&!s){ +const e=Error('Illegal lexeme "'+l+'" for mode "'+(R.className||"")+'"') +;throw e.mode=R,e}if("end"===a.type){const e=b(a);if(e!==W)return e} +if("illegal"===a.type&&""===l)return 1 +;if(L>1e5&&L>3*a.index)throw Error("potential infinite loop, way more iterations than matches") +;return M+=l,l.length}const v=N(e) +;if(!v)throw U(o.replace("{}",e)),Error('Unknown language: "'+e+'"') +;const w=T(v,{plugins:a});let y="",R=l||w;const _={},k=new u.__emitter(u);(()=>{ +const e=[];for(let t=R;t!==v;t=t.parent)t.className&&e.unshift(t.className) +;e.forEach((e=>k.openNode(e)))})();let M="",O=0,A=0,L=0,I=!1;try{ +for(R.matcher.considerAll();;){ +L++,I?I=!1:R.matcher.considerAll(),R.matcher.lastIndex=A +;const e=R.matcher.exec(t);if(!e)break;const n=x(t.substring(A,e.index),e) +;A=e.index+n}return x(t.substr(A)),k.closeAllNodes(),k.finalize(),y=k.toHTML(),{ +relevance:Math.floor(O),value:y,language:e,illegal:!1,emitter:k,top:R}}catch(n){ +if(n.message&&n.message.includes("Illegal"))return{illegal:!0,illegalBy:{ +msg:n.message,context:t.slice(A-100,A+100),mode:n.mode},sofar:y,relevance:0, +value:G(t),emitter:k};if(r)return{illegal:!1,relevance:0,value:G(t),emitter:k, +language:e,top:R,errorRaised:n};throw n}}function p(e,t){ +t=t||u.languages||Object.keys(n);const i=(e=>{const t={relevance:0, +emitter:new u.__emitter(u),value:G(e),illegal:!1,top:g} +;return t.emitter.addText(e),t})(e),s=t.filter(N).filter(k).map((t=>f(t,e,!1))) +;s.unshift(i);const a=s.sort(((e,t)=>{ +if(e.relevance!==t.relevance)return t.relevance-e.relevance +;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1 +;if(N(t.language).supersetOf===e.language)return-1}return 0})),[r,l]=a,o=r +;return o.second_best=l,o}const m={"before:highlightElement":({el:e})=>{ +u.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")) +},"after:highlightElement":({result:e})=>{ +u.useBR&&(e.value=e.value.replace(/\n/g,"
"))}},b=/^(<[^>]+>|\t)+/gm,E={ +"after:highlightElement":({result:e})=>{ +u.tabReplace&&(e.value=e.value.replace(b,(e=>e.replace(/\t/g,u.tabReplace))))}} +;function x(e){let t=null;const n=(e=>{let t=e.className+" " +;t+=e.parentNode?e.parentNode.className:"";const n=u.languageDetectRe.exec(t) +;if(n){const t=N(n[1]) +;return t||(z(o.replace("{}",n[1])),z("Falling back to no-highlight mode for this block.",e)), +t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>h(e)||N(e)))})(e) +;if(h(n))return;M("before:highlightElement",{el:e,language:n}),t=e +;const i=t.textContent,a=n?d(i,{language:n,ignoreIllegals:!0}):p(i) +;M("after:highlightElement",{el:e,result:a,text:i +}),e.innerHTML=a.value,((e,t,n)=>{const i=t?s[t]:n +;e.classList.add("hljs"),i&&e.classList.add(i)})(e,n,a.language),e.result={ +language:a.language,re:a.relevance,relavance:a.relevance +},a.second_best&&(e.second_best={language:a.second_best.language, +re:a.second_best.relevance,relavance:a.second_best.relevance})}const v=()=>{ +v.called||(v.called=!0, +K("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."), +document.querySelectorAll("pre code").forEach(x))};let w=!1;function y(){ +"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(x):w=!0 +}function N(e){return e=(e||"").toLowerCase(),n[e]||n[s[e]]} +function R(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{ +s[e.toLowerCase()]=t}))}function k(e){const t=N(e) +;return t&&!t.disableAutodetect}function M(e,t){const n=e;a.forEach((e=>{ +e[n]&&e[n](t)}))} +"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(()=>{ +w&&y()}),!1),Object.assign(e,{highlight:d,highlightAuto:p,highlightAll:y, +fixMarkup:e=>{ +return K("10.2.0","fixMarkup will be removed entirely in v11.0"),K("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"), +t=e, +u.tabReplace||u.useBR?t.replace(l,(e=>"\n"===e?u.useBR?"
":e:u.tabReplace?e.replace(/\t/g,u.tabReplace):e)):t +;var t},highlightElement:x, +highlightBlock:e=>(K("10.7.0","highlightBlock will be removed entirely in v12.0"), +K("10.7.0","Please use highlightElement now."),x(e)),configure:e=>{ +e.useBR&&(K("10.3.0","'useBR' will be removed entirely in v11.0"), +K("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")), +u=V(u,e)},initHighlighting:v,initHighlightingOnLoad:()=>{ +K("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."), +w=!0},registerLanguage:(t,i)=>{let s=null;try{s=i(e)}catch(e){ +if(U("Language definition for '{}' could not be registered.".replace("{}",t)), +!r)throw e;U(e),s=g} +s.name||(s.name=t),n[t]=s,s.rawDefinition=i.bind(null,e),s.aliases&&R(s.aliases,{ +languageName:t})},unregisterLanguage:e=>{delete n[e] +;for(const t of Object.keys(s))s[t]===e&&delete s[t]}, +listLanguages:()=>Object.keys(n),getLanguage:N,registerAliases:R, +requireLanguage:e=>{ +K("10.4.0","requireLanguage will be removed entirely in v11."), +K("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844") +;const t=N(e);if(t)return t +;throw Error("The '{}' language is required, but not loaded.".replace("{}",e))}, +autoDetection:k,inherit:V,addPlugin:e=>{(e=>{ +e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{ +e["before:highlightBlock"](Object.assign({block:t.el},t)) +}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{ +e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),a.push(e)}, +vuePlugin:P(e).VuePlugin}),e.debugMode=()=>{r=!1},e.safeMode=()=>{r=!0 +},e.versionString="10.7.2";for(const e in _)"object"==typeof _[e]&&t(_[e]) +;return Object.assign(e,_),e.addPlugin(m),e.addPlugin(D),e.addPlugin(E),e})({}) +}();"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs); +hljs.registerLanguage("apache",(()=>{"use strict";return e=>{const n={ +className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/} +;return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0, +contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/, +contains:[n,{className:"number",begin:/:\d{1,5}/ +},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute", +begin:/\w+/,relevance:0,keywords:{ +nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername" +},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"}, +contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable", +begin:/[\$%]\{/,end:/\}/,contains:["self",{className:"number",begin:/[$%]\d+/}] +},n,{className:"number",begin:/\d+/},e.QUOTE_STRING_MODE]}}],illegal:/\S/}} +})()); +hljs.registerLanguage("bash",(()=>{"use strict";function e(...e){ +return e.map((e=>{return(s=e)?"string"==typeof s?s:s.source:null;var s +})).join("")}return s=>{const n={},t={begin:/\$\{/,end:/\}/,contains:["self",{ +begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{ +begin:e(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},t]});const a={ +className:"subst",begin:/\$\(/,end:/\)/,contains:[s.BACKSLASH_ESCAPE]},i={ +begin:/<<-?\s*(?=\w+)/,starts:{contains:[s.END_SAME_AS_BEGIN({begin:/(\w+)/, +end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/, +contains:[s.BACKSLASH_ESCAPE,n,a]};a.contains.push(c);const o={begin:/\$\(\(/, +end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},s.NUMBER_MODE,n] +},r=s.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10 +}),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0, +contains:[s.inherit(s.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{ +name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/, +keyword:"if then else elif fi for while in do done case esac function", +literal:"true false", +built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp" +},contains:[r,s.SHEBANG(),l,o,s.HASH_COMMENT_MODE,i,c,{className:"",begin:/\\"/ +},{className:"string",begin:/'/,end:/'/},n]}}})()); +hljs.registerLanguage("c",(()=>{"use strict";function e(e){ +return((...e)=>e.map((e=>(e=>e?"string"==typeof e?e:e.source:null)(e))).join(""))("(",e,")?") +}return t=>{const n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}] +}),r="[a-zA-Z_]\\w*::",a="(decltype\\(auto\\)|"+e(r)+"[a-zA-Z_]\\w*"+e("<[^<>]+>")+")",i={ +className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string", +variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n", +contains:[t.BACKSLASH_ESCAPE]},{ +begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", +end:"'",illegal:"."},t.END_SAME_AS_BEGIN({ +begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={ +className:"number",variants:[{begin:"\\b(0b[01']+)"},{ +begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" +},{ +begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" +}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{ +"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" +},contains:[{begin:/\\\n/,relevance:0},t.inherit(s,{className:"meta-string"}),{ +className:"meta-string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},l={ +className:"title",begin:e(r)+t.IDENT_RE,relevance:0 +},d=e(r)+t.IDENT_RE+"\\s*\\(",u={ +keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq", +built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary", +literal:"true false nullptr NULL"},m=[c,i,n,t.C_BLOCK_COMMENT_MODE,o,s],p={ +variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{ +beginKeywords:"new throw return else",end:/;/}],keywords:u,contains:m.concat([{ +begin:/\(/,end:/\)/,keywords:u,contains:m.concat(["self"]),relevance:0}]), +relevance:0},_={className:"function",begin:"("+a+"[\\*&\\s]+)+"+d, +returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:u,illegal:/[^\w\s\*&:<>.]/, +contains:[{begin:"decltype\\(auto\\)",keywords:u,relevance:0},{begin:d, +returnBegin:!0,contains:[l],relevance:0},{className:"params",begin:/\(/, +end:/\)/,keywords:u,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,s,o,i,{ +begin:/\(/,end:/\)/,keywords:u,relevance:0, +contains:["self",n,t.C_BLOCK_COMMENT_MODE,s,o,i]}] +},i,n,t.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:u, +disableAutodetect:!0,illegal:"",keywords:u,contains:["self",i]},{begin:t.IDENT_RE+"::",keywords:u},{ +className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/, +contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{ +preprocessor:c,strings:s,keywords:u}}}})()); +hljs.registerLanguage("coffeescript",(()=>{"use strict" +;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]) +;return r=>{const t={ +keyword:e.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((i=["var","const","let","function","static"], +e=>!i.includes(e))),literal:n.concat(["yes","no","on","off"]), +built_in:a.concat(["npm","print"])};var i;const s="[A-Za-z$_][0-9A-Za-z$_]*",o={ +className:"subst",begin:/#\{/,end:/\}/,keywords:t +},c=[r.BINARY_NUMBER_MODE,r.inherit(r.C_NUMBER_MODE,{starts:{end:"(\\s*/)?", +relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/, +contains:[r.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[r.BACKSLASH_ESCAPE] +},{begin:/"""/,end:/"""/,contains:[r.BACKSLASH_ESCAPE,o]},{begin:/"/,end:/"/, +contains:[r.BACKSLASH_ESCAPE,o]}]},{className:"regexp",variants:[{begin:"///", +end:"///",contains:[o,r.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)", +relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+s +},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{ +begin:"```",end:"```"},{begin:"`",end:"`"}]}];o.contains=c +;const l=r.inherit(r.TITLE_MODE,{begin:s}),d="(\\(.*\\)\\s*)?\\B[-=]>",g={ +className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/, +end:/\)/,keywords:t,contains:["self"].concat(c)}]};return{name:"CoffeeScript", +aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/, +contains:c.concat([r.COMMENT("###","###"),r.HASH_COMMENT_MODE,{ +className:"function",begin:"^\\s*"+s+"\\s*=\\s*"+d,end:"[-=]>",returnBegin:!0, +contains:[l,g]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function", +begin:d,end:"[-=]>",returnBegin:!0,contains:[g]}]},{className:"class", +beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{ +beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[l]},l] +},{begin:s+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}})()); +hljs.registerLanguage("cpp",(()=>{"use strict";function e(e){ +return t("(",e,")?")}function t(...e){return e.map((e=>{ +return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}return n=>{ +const r=n.COMMENT("//","$",{contains:[{begin:/\\\n/}] +}),a="[a-zA-Z_]\\w*::",i="(decltype\\(auto\\)|"+e(a)+"[a-zA-Z_]\\w*"+e("<[^<>]+>")+")",s={ +className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string", +variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n", +contains:[n.BACKSLASH_ESCAPE]},{ +begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", +end:"'",illegal:"."},n.END_SAME_AS_BEGIN({ +begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={ +className:"number",variants:[{begin:"\\b(0b[01']+)"},{ +begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" +},{ +begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" +}],relevance:0},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{ +"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" +},contains:[{begin:/\\\n/,relevance:0},n.inherit(c,{className:"meta-string"}),{ +className:"meta-string",begin:/<.*?>/},r,n.C_BLOCK_COMMENT_MODE]},d={ +className:"title",begin:e(a)+n.IDENT_RE,relevance:0 +},u=e(a)+n.IDENT_RE+"\\s*\\(",m={ +keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq", +built_in:"_Bool _Complex _Imaginary", +_relevance_hints:["asin","atan2","atan","calloc","ceil","cosh","cos","exit","exp","fabs","floor","fmod","fprintf","fputs","free","frexp","auto_ptr","deque","list","queue","stack","vector","map","set","pair","bitset","multiset","multimap","unordered_set","fscanf","future","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","tolower","toupper","labs","ldexp","log10","log","malloc","realloc","memchr","memcmp","memcpy","memset","modf","pow","printf","putchar","puts","scanf","sinh","sin","snprintf","sprintf","sqrt","sscanf","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","tanh","tan","unordered_map","unordered_multiset","unordered_multimap","priority_queue","make_pair","array","shared_ptr","abort","terminate","abs","acos","vfprintf","vprintf","vsprintf","endl","initializer_list","unique_ptr","complex","imaginary","std","string","wstring","cin","cout","cerr","clog","stdin","stdout","stderr","stringstream","istringstream","ostringstream"], +literal:"true false nullptr NULL"},p={className:"function.dispatch",relevance:0, +keywords:m, +begin:t(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,n.IDENT_RE,(_=/\s*\(/, +t("(?=",_,")")))};var _;const g=[p,l,s,r,n.C_BLOCK_COMMENT_MODE,o,c],b={ +variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{ +beginKeywords:"new throw return else",end:/;/}],keywords:m,contains:g.concat([{ +begin:/\(/,end:/\)/,keywords:m,contains:g.concat(["self"]),relevance:0}]), +relevance:0},f={className:"function",begin:"("+i+"[\\*&\\s]+)+"+u, +returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:m,illegal:/[^\w\s\*&:<>.]/, +contains:[{begin:"decltype\\(auto\\)",keywords:m,relevance:0},{begin:u, +returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{begin:/:/, +endsWithParent:!0,contains:[c,o]},{className:"params",begin:/\(/,end:/\)/, +keywords:m,relevance:0,contains:[r,n.C_BLOCK_COMMENT_MODE,c,o,s,{begin:/\(/, +end:/\)/,keywords:m,relevance:0,contains:["self",r,n.C_BLOCK_COMMENT_MODE,c,o,s] +}]},s,r,n.C_BLOCK_COMMENT_MODE,l]};return{name:"C++", +aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:m,illegal:"",keywords:m,contains:["self",s]},{begin:n.IDENT_RE+"::",keywords:m},{ +className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/, +contains:[{beginKeywords:"final class struct"},n.TITLE_MODE]}]),exports:{ +preprocessor:l,strings:c,keywords:m}}}})()); +hljs.registerLanguage("csharp",(()=>{"use strict";return e=>{const n={ +keyword:["abstract","as","base","break","case","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]), +built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"], +literal:["default","false","null","true"]},a=e.inherit(e.TITLE_MODE,{ +begin:"[a-zA-Z](\\.?\\w)*"}),i={className:"number",variants:[{ +begin:"\\b(0b[01']+)"},{ +begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{ +begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" +}],relevance:0},s={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}] +},t=e.inherit(s,{illegal:/\n/}),r={className:"subst",begin:/\{/,end:/\}/, +keywords:n},l=e.inherit(r,{illegal:/\n/}),c={className:"string",begin:/\$"/, +end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/ +},e.BACKSLASH_ESCAPE,l]},o={className:"string",begin:/\$@"/,end:'"',contains:[{ +begin:/\{\{/},{begin:/\}\}/},{begin:'""'},r]},d=e.inherit(o,{illegal:/\n/, +contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},l]}) +;r.contains=[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE], +l.contains=[d,c,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.inherit(e.C_BLOCK_COMMENT_MODE,{ +illegal:/\n/})];const g={variants:[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE] +},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},a] +},_=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",b={ +begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"], +keywords:n,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0, +contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{ +begin:"\x3c!--|--\x3e"},{begin:""}]}] +}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#", +end:"$",keywords:{ +"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum" +}},g,i,{beginKeywords:"class interface",relevance:0,end:/[{;=]/, +illegal:/[^\s:,]/,contains:[{beginKeywords:"where class" +},a,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace", +relevance:0,end:/[{;=]/,illegal:/[^\s:]/, +contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ +beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/, +contains:[a,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta", +begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{ +className:"meta-string",begin:/"/,end:/"/}]},{ +beginKeywords:"new return throw await else",relevance:0},{className:"function", +begin:"("+_+"\\s+)+"+e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0, +end:/\s*[{;=]/,excludeEnd:!0,keywords:n,contains:[{ +beginKeywords:"public private protected static internal protected abstract async extern override unsafe virtual new sealed partial", +relevance:0},{begin:e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0, +contains:[e.TITLE_MODE,E],relevance:0},{className:"params",begin:/\(/,end:/\)/, +excludeBegin:!0,excludeEnd:!0,keywords:n,relevance:0, +contains:[g,i,e.C_BLOCK_COMMENT_MODE] +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},b]}}})()); +hljs.registerLanguage("css",(()=>{"use strict" +;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse() +;return n=>{const a=(e=>({IMPORTANT:{className:"meta",begin:"!important"}, +HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"}, +ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/, +illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]} +}))(n),l=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS", +case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"}, +classNameAliases:{keyframePosition:"selector-tag"}, +contains:[n.C_BLOCK_COMMENT_MODE,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/ +},n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0 +},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0 +},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{ +begin:":("+i.join("|")+")"},{begin:"::("+o.join("|")+")"}]},{ +className:"attribute",begin:"\\b("+r.join("|")+")\\b"},{begin:":",end:"[;}]", +contains:[a.HEXCOLOR,a.IMPORTANT,n.CSS_NUMBER_MODE,...l,{ +begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri" +},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}] +},{className:"built_in",begin:/[\w-]+(?=\()/}]},{ +begin:(s=/@/,((...e)=>e.map((e=>(e=>e?"string"==typeof e?e:e.source:null)(e))).join(""))("(?=",s,")")), +end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword", +begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0, +relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only", +attribute:t.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute" +},...l,n.CSS_NUMBER_MODE]}]},{className:"selector-tag", +begin:"\\b("+e.join("|")+")\\b"}]};var s}})()); +hljs.registerLanguage("diff",(()=>{"use strict";return e=>({name:"Diff", +aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{ +begin:/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{ +begin:/^--- +\d+,\d+ +----$/}]},{className:"comment",variants:[{begin:/Index: /, +end:/$/},{begin:/^index/,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^-{3}/,end:/$/ +},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/},{ +begin:/^diff --git/,end:/$/}]},{className:"addition",begin:/^\+/,end:/$/},{ +className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/, +end:/$/}]})})()); +hljs.registerLanguage("go",(()=>{"use strict";return e=>{const n={ +keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune", +literal:"true false iota nil", +built_in:"append cap close complex copy imag len make new panic print println real recover delete" +};return{name:"Go",aliases:["golang"],keywords:n,illegal:"{"use strict";function e(...e){ +return e.map((e=>{return(n=e)?"string"==typeof n?n:n.source:null;var n +})).join("")}return n=>{const a="HTTP/(2|1\\.[01])",s={className:"attribute", +begin:e("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{ +className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]} +},t=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{ +name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+a+" \\d{3})", +end:/$/,contains:[{className:"meta",begin:a},{className:"number", +begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:t}},{ +begin:"(?=^[A-Z]+ (.*?) "+a+"$)",end:/$/,contains:[{className:"string", +begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:a},{ +className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:t} +},n.inherit(s,{relevance:0})]}}})()); +hljs.registerLanguage("ini",(()=>{"use strict";function e(e){ +return e?"string"==typeof e?e:e.source:null}function n(...n){ +return n.map((n=>e(n))).join("")}return s=>{const a={className:"number", +relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:s.NUMBER_RE}] +},i=s.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const t={ +className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/ +}]},r={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={ +className:"string",contains:[s.BACKSLASH_ESCAPE],variants:[{begin:"'''", +end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"' +},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[i,r,t,l,a,"self"], +relevance:0 +},g="("+[/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/].map((n=>e(n))).join("|")+")" +;return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/, +contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{ +begin:n(g,"(\\s*\\.\\s*",g,")*",n("(?=",/\s*=\s*[^#\s]/,")")),className:"attr", +starts:{end:/$/,contains:[i,c,r,t,l,a]}}]}}})()); +hljs.registerLanguage("java",(()=>{"use strict" +;var e="\\.([0-9](_*[0-9])*)",n="[0-9a-fA-F](_*[0-9a-fA-F])*",a={ +className:"number",variants:[{ +begin:`(\\b([0-9](_*[0-9])*)((${e})|\\.)?|(${e}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` +},{begin:`\\b([0-9](_*[0-9])*)((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{ +begin:`(${e})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{ +begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` +},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{ +begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}], +relevance:0};return e=>{ +var n="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",s={ +className:"meta",begin:"@[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*", +contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const r=a;return{ +name:"Java",aliases:["jsp"],keywords:n,illegal:/<\/|#/, +contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/, +relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{ +begin:/import java\.[a-z]+\./,keywords:"import",relevance:2 +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{ +className:"class",beginKeywords:"class interface enum",end:/[{;=]/, +excludeEnd:!0,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/, +contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{ +beginKeywords:"new throw return else",relevance:0},{className:"class", +begin:"record\\s+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0, +end:/[{;=]/,keywords:n,contains:[{beginKeywords:"record"},{ +begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0, +contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/, +keywords:n,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE] +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function", +begin:"([\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*(<[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*(\\s*,\\s*[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(", +returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:n,contains:[{ +begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0, +contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/, +keywords:n,relevance:0, +contains:[s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,e.C_BLOCK_COMMENT_MODE] +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r,s]}}})()); +hljs.registerLanguage("javascript",(()=>{"use strict" +;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],a=["true","false","null","undefined","NaN","Infinity"],s=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]) +;function r(e){return t("(?=",e,")")}function t(...e){return e.map((e=>{ +return(n=e)?"string"==typeof n?n:n.source:null;var n})).join("")}return i=>{ +const c=e,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/, +isTrulyOpeningTag:(e,n)=>{const a=e[0].length+e.index,s=e.input[a] +;"<"!==s?">"===s&&(((e,{after:n})=>{const a="", +returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{ +begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0 +},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:f}]}] +},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{ +variants:[{begin:"<>",end:""},{begin:o.begin,"on:begin":o.isTrulyOpeningTag, +end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0, +contains:["self"]}]}],relevance:0},{className:"function", +beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:l, +contains:["self",i.inherit(i.TITLE_MODE,{begin:c}),p],illegal:/%/},{ +beginKeywords:"while if switch catch for"},{className:"function", +begin:i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", +returnBegin:!0,contains:[p,i.inherit(i.TITLE_MODE,{begin:c})]},{variants:[{ +begin:"\\."+c},{begin:"\\$"+c}],relevance:0},{className:"class", +beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{ +beginKeywords:"extends"},i.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/, +end:/[{;]/,excludeEnd:!0,contains:[i.inherit(i.TITLE_MODE,{begin:c}),"self",p] +},{begin:"(get|set)\\s+(?="+c+"\\()",end:/\{/,keywords:"get set", +contains:[i.inherit(i.TITLE_MODE,{begin:c}),{begin:/\(\)/},p]},{begin:/\$[(.]/}] +}}})()); +hljs.registerLanguage("json",(()=>{"use strict";return n=>{const e={ +literal:"true false null" +},i=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],a=[n.QUOTE_STRING_MODE,n.C_NUMBER_MODE],l={ +end:",",endsWithParent:!0,excludeEnd:!0,contains:a,keywords:e},t={begin:/\{/, +end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/, +contains:[n.BACKSLASH_ESCAPE],illegal:"\\n"},n.inherit(l,{begin:/:/ +})].concat(i),illegal:"\\S"},s={begin:"\\[",end:"\\]",contains:[n.inherit(l)], +illegal:"\\S"};return a.push(t,s),i.forEach((n=>{a.push(n)})),{name:"JSON", +contains:a,keywords:e,illegal:"\\S"}}})()); +hljs.registerLanguage("kotlin",(()=>{"use strict" +;var e="\\.([0-9](_*[0-9])*)",n="[0-9a-fA-F](_*[0-9a-fA-F])*",a={ +className:"number",variants:[{ +begin:`(\\b([0-9](_*[0-9])*)((${e})|\\.)?|(${e}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` +},{begin:`\\b([0-9](_*[0-9])*)((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{ +begin:`(${e})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{ +begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` +},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{ +begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}], +relevance:0};return e=>{const n={ +keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual", +built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing", +literal:"true false null"},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@" +},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},t={ +className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},r={className:"string", +variants:[{begin:'"""',end:'"""(?=[^"])',contains:[t,s]},{begin:"'",end:"'", +illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/, +contains:[e.BACKSLASH_ESCAPE,t,s]}]};s.contains.push(r);const l={ +className:"meta", +begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?" +},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/, +end:/\)/,contains:[e.inherit(r,{className:"meta-string"})]}] +},o=a,b=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),E={ +variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/, +contains:[]}]},d=E;return d.variants[1].contains=[E],E.variants[1].contains=[d], +{name:"Kotlin",aliases:["kt","kts"],keywords:n, +contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag", +begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,b,{className:"keyword", +begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol", +begin:/@\w+/}]}},i,l,c,{className:"function",beginKeywords:"fun",end:"[(]|$", +returnBegin:!0,excludeEnd:!0,keywords:n,relevance:5,contains:[{ +begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0, +contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://, +keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/, +endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/, +endsWithParent:!0,contains:[E,e.C_LINE_COMMENT_MODE,b],relevance:0 +},e.C_LINE_COMMENT_MODE,b,l,c,r,e.C_NUMBER_MODE]},b]},{className:"class", +beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0, +illegal:"extends implements",contains:[{ +beginKeywords:"public protected internal private constructor" +},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0, +excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/, +excludeBegin:!0,returnEnd:!0},l,c]},r,{className:"meta",begin:"^#!/usr/bin/env", +end:"$",illegal:"\n"},o]}}})()); +hljs.registerLanguage("less",(()=>{"use strict" +;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],n=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse(),r=i.concat(o) +;return a=>{const s=(e=>({IMPORTANT:{className:"meta",begin:"!important"}, +HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"}, +ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/, +illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]} +}))(a),l=r,d="([\\w-]+|@\\{[\\w-]+\\})",c=[],g=[],b=e=>({className:"string", +begin:"~?"+e+".*?"+e}),m=(e,t,i)=>({className:e,begin:t,relevance:i}),u={ +$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},p={ +begin:"\\(",end:"\\)",contains:g,keywords:u,relevance:0} +;g.push(a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,b("'"),b('"'),a.CSS_NUMBER_MODE,{ +begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]", +excludeEnd:!0} +},s.HEXCOLOR,p,m("variable","@@?[\\w-]+",10),m("variable","@\\{[\\w-]+\\}"),m("built_in","~?`[^`]*?`"),{ +className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0 +},s.IMPORTANT);const f=g.concat({begin:/\{/,end:/\}/,contains:c}),h={ +beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not" +}].concat(g)},w={begin:d+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0, +contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute", +begin:"\\b("+n.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0, +illegal:"[<=$]",relevance:0,contains:g}}]},v={className:"keyword", +begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b", +starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:g,relevance:0}},y={ +className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{ +begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:f}},k={variants:[{ +begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:d,end:/\{/}],returnBegin:!0, +returnEnd:!0,illegal:"[<='$\"]",relevance:0, +contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,h,m("keyword","all\\b"),m("variable","@\\{[\\w-]+\\}"),{ +begin:"\\b("+e.join("|")+")\\b",className:"selector-tag" +},m("selector-tag",d+"%?",0),m("selector-id","#"+d),m("selector-class","\\."+d,0),m("selector-tag","&",0),s.ATTRIBUTE_SELECTOR_MODE,{ +className:"selector-pseudo",begin:":("+i.join("|")+")"},{ +className:"selector-pseudo",begin:"::("+o.join("|")+")"},{begin:"\\(",end:"\\)", +contains:f},{begin:"!important"}]},E={begin:`[\\w-]+:(:)?(${l.join("|")})`, +returnBegin:!0,contains:[k]} +;return c.push(a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,v,y,E,w,k),{ +name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:c}}})()); +hljs.registerLanguage("lua",(()=>{"use strict";return e=>{ +const t="\\[=*\\[",a="\\]=*\\]",n={begin:t,end:a,contains:["self"] +},o=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[",a,{contains:[n], +relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE, +literal:"true false nil", +keyword:"and break do else elseif end for goto if in local not or repeat return then until while", +built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove" +},contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)", +contains:[e.inherit(e.TITLE_MODE,{ +begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params", +begin:"\\(",endsWithParent:!0,contains:o}].concat(o) +},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string", +begin:t,end:a,contains:[n],relevance:5}])}}})()); +hljs.registerLanguage("makefile",(()=>{"use strict";return e=>{const i={ +className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)", +contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{"use strict";function e(e){ +return e?"string"==typeof e?e:e.source:null}function n(e){return a("(?=",e,")")} +function a(...n){return n.map((n=>e(n))).join("")}function s(...n){ +return"("+n.map((n=>e(n))).join("|")+")"}return e=>{ +const t=a(/[A-Z_]/,a("(",/[A-Z0-9_.-]*:/,")?"),/[A-Z0-9_.-]*/),i={ +className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/, +contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}] +},c=e.inherit(r,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{ +className:"meta-string"}),g=e.inherit(e.QUOTE_STRING_MODE,{ +className:"meta-string"}),m={endsWithParent:!0,illegal:/`]+/}]}] +}]};return{name:"HTML, XML", +aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"], +case_insensitive:!0,contains:[{className:"meta",begin://, +relevance:10,contains:[r,g,l,c,{begin:/\[/,end:/\]/,contains:[{className:"meta", +begin://,contains:[r,c,g,l]}]}]},e.COMMENT(//,{ +relevance:10}),{begin://,relevance:10},i,{ +className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag", +begin:/)/,end:/>/,keywords:{name:"style"},contains:[m],starts:{ +end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag", +begin:/)/,end:/>/,keywords:{name:"script"},contains:[m],starts:{ +end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{ +className:"tag",begin:/<>|<\/>/},{className:"tag", +begin:a(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name", +begin:t,relevance:0,starts:m}]},{className:"tag",begin:a(/<\//,n(a(t,/>/))), +contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0, +endsParent:!0}]}]}}})()); +hljs.registerLanguage("markdown",(()=>{"use strict";function n(...n){ +return n.map((n=>{return(e=n)?"string"==typeof e?e:e.source:null;var e +})).join("")}return e=>{const a={begin:/<\/?[A-Za-z_]/,end:">", +subLanguage:"xml",relevance:0},i={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0 +},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/, +relevance:2},{begin:n(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/), +relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{ +begin:/\[.+?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{ +className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0, +returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)", +excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[", +end:"\\]",excludeBegin:!0,excludeEnd:!0}]},s={className:"strong",contains:[], +variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},c={ +className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{ +begin:/_(?!_)/,end:/_/,relevance:0}]};s.contains.push(c),c.contains.push(s) +;let t=[a,i] +;return s.contains=s.contains.concat(t),c.contains=c.contains.concat(t), +t=t.concat(s,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{ +className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:t},{ +begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n", +contains:t}]}]},a,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)", +end:"\\s+",excludeEnd:!0},s,c,{className:"quote",begin:"^>\\s+",contains:t, +end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{ +begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{ +begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))", +contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{ +begin:"^[-\\*]{3,}",end:"$"},i,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{ +className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{ +className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}})()); +hljs.registerLanguage("nginx",(()=>{"use strict";return e=>{const n={ +className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/\}/},{ +begin:/[$@]/+e.UNDERSCORE_IDENT_RE}]},a={endsWithParent:!0,keywords:{ +$pattern:"[a-z/_]+", +literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll" +},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string", +contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/ +}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n] +},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^", +end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{ +begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number", +begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{ +className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},n]};return{ +name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{ +begin:e.UNDERSCORE_IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\{/,contains:[{ +className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{ +begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|\\{",returnBegin:!0,contains:[{ +className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}], +illegal:"[^\\s\\}]"}}})()); +hljs.registerLanguage("objectivec",(()=>{"use strict";return e=>{ +const n=/[a-zA-Z@][a-zA-Z0-9_]*/,_={$pattern:n, +keyword:"@interface @class @protocol @implementation"};return{ +name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"], +keywords:{$pattern:n, +keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN", +literal:"false true FALSE TRUE nil YES NO NULL", +built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once" +},illegal:"/,end:/$/, +illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ +className:"class",begin:"("+_.keyword.split(" ").join("|")+")\\b",end:/(\{|$)/, +excludeEnd:!0,keywords:_,contains:[e.UNDERSCORE_TITLE_MODE]},{ +begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}})()); +hljs.registerLanguage("perl",(()=>{"use strict";function e(e){ +return e?"string"==typeof e?e:e.source:null}function n(...n){ +return n.map((n=>e(n))).join("")}function t(...n){ +return"("+n.map((n=>e(n))).join("|")+")"}return e=>{ +const r=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/, +keyword:"abs accept alarm and atan2 bind binmode bless break caller chdir chmod chomp chop chown chr chroot close closedir connect continue cos crypt dbmclose dbmopen defined delete die do dump each else elsif endgrent endhostent endnetent endprotoent endpwent endservent eof eval exec exists exit exp fcntl fileno flock for foreach fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt given glob gmtime goto grep gt hex if index int ioctl join keys kill last lc lcfirst length link listen local localtime log lstat lt ma map mkdir msgctl msgget msgrcv msgsnd my ne next no not oct open opendir or ord our pack package pipe pop pos print printf prototype push q|0 qq quotemeta qw qx rand read readdir readline readlink readpipe recv redo ref rename require reset return reverse rewinddir rindex rmdir say scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat state study sub substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times tr truncate uc ucfirst umask undef unless unlink unpack unshift untie until use utime values vec wait waitpid wantarray warn when while write x|0 xor y|0" +},i={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},a={begin:/->\{/, +end:/\}/},o={variants:[{begin:/\$\d/},{ +begin:n(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])") +},{begin:/[$%@][^\s\w{]/,relevance:0}] +},c=[e.BACKSLASH_ESCAPE,i,o],g=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],l=(e,t,s="\\1")=>{ +const i="\\1"===s?s:n(s,t) +;return n(n("(?:",e,")"),t,/(?:\\.|[^\\\/])*?/,i,/(?:\\.|[^\\\/])*?/,s,r) +},d=(e,t,s)=>n(n("(?:",e,")"),t,/(?:\\.|[^\\\/])*?/,s,r),p=[o,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{ +endsWithParent:!0}),a,{className:"string",contains:c,variants:[{ +begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[", +end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{ +begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">", +relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'", +contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`", +contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{ +begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number", +begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b", +relevance:0},{ +begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*", +keywords:"split return print reverse grep",relevance:0, +contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{ +begin:l("s|tr|y",t(...g))},{begin:l("s|tr|y","\\(","\\)")},{ +begin:l("s|tr|y","\\[","\\]")},{begin:l("s|tr|y","\\{","\\}")}],relevance:2},{ +className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{ +begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t(...g),/\1/)},{ +begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{ +begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub", +end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{ +begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$", +subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}] +}];return i.contains=p,a.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:s, +contains:p}}})()); +hljs.registerLanguage("php",(()=>{"use strict";return e=>{const r={ +className:"variable", +begin:"\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(?![A-Za-z0-9])(?![$])"},t={ +className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{ +begin:/\?>/}]},a={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/, +end:/\}/}]},n=e.inherit(e.APOS_STRING_MODE,{illegal:null +}),i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null, +contains:e.QUOTE_STRING_MODE.contains.concat(a)}),o=e.END_SAME_AS_BEGIN({ +begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/, +contains:e.QUOTE_STRING_MODE.contains.concat(a)}),l={className:"string", +contains:[e.BACKSLASH_ESCAPE,t],variants:[e.inherit(n,{begin:"b'",end:"'" +}),e.inherit(i,{begin:'b"',end:'"'}),i,n,o]},s={className:"number",variants:[{ +begin:"\\b0b[01]+(?:_[01]+)*\\b"},{begin:"\\b0o[0-7]+(?:_[0-7]+)*\\b"},{ +begin:"\\b0x[\\da-f]+(?:_[\\da-f]+)*\\b"},{ +begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:e[+-]?\\d+)?" +}],relevance:0},c={ +keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile enum eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 mixed new object or private protected public real return string switch throw trait try unset use var void while xor yield", +literal:"false null true", +built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException UnhandledMatchError ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Stringable Throwable Traversable WeakReference WeakMap Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass" +};return{aliases:["php3","php4","php5","php6","php7","php8"], +case_insensitive:!0,keywords:c, +contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[t] +}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}] +}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0, +keywords:"__halt_compiler"}),t,{className:"keyword",begin:/\$this\b/},r,{ +begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function", +relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0, +illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{ +begin:"=>",endsParent:!0},{className:"params",begin:"\\(",end:"\\)", +excludeBegin:!0,excludeEnd:!0,keywords:c, +contains:["self",r,e.C_BLOCK_COMMENT_MODE,l,s]}]},{className:"class",variants:[{ +beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait", +illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{ +beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{ +beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/, +contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";", +contains:[e.UNDERSCORE_TITLE_MODE]},l,s]}}})()); +hljs.registerLanguage("php-template",(()=>{"use strict";return n=>({ +name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/, +subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"', +end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{ +illegal:null,className:null,contains:null,skip:!0 +}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null, +skip:!0})]}]})})()); +hljs.registerLanguage("plaintext",(()=>{"use strict";return t=>({ +name:"Plain text",aliases:["text","txt"],disableAutodetect:!0})})()); +hljs.registerLanguage("properties",(()=>{"use strict";return e=>{ +var n="[ \\t\\f]*",a=n+"[:=]"+n,t="("+a+"|[ \\t\\f]+)",r="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",s="([^\\\\:= \\t\\f\\n]|\\\\.)+",i={ +end:t,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{ +begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties", +case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{ +returnBegin:!0,variants:[{begin:r+a,relevance:1},{begin:r+"[ \\t\\f]+", +relevance:0}],contains:[{className:"attr",begin:r,endsParent:!0,relevance:0}], +starts:i},{begin:s+t,returnBegin:!0,relevance:0,contains:[{className:"meta", +begin:s,endsParent:!0,relevance:0}],starts:i},{className:"attr",relevance:0, +begin:s+n+"$"}]}}})()); +hljs.registerLanguage("python",(()=>{"use strict";return e=>{const n={ +$pattern:/[A-Za-z]\w+|__\w+__/, +keyword:["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"], +built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"], +literal:["__debug__","Ellipsis","False","None","NotImplemented","True"], +type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"] +},a={className:"meta",begin:/^(>>>|\.\.\.) /},i={className:"subst",begin:/\{/, +end:/\}/,keywords:n,illegal:/#/},s={begin:/\{\{/,relevance:0},t={ +className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{ +begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/, +contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{ +begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/, +contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{ +begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/, +contains:[e.BACKSLASH_ESCAPE,a,s,i]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/, +end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,i]},{begin:/([uU]|[rR])'/,end:/'/, +relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{ +begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/, +end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/, +contains:[e.BACKSLASH_ESCAPE,s,i]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/, +contains:[e.BACKSLASH_ESCAPE,s,i]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE] +},r="[0-9](_?[0-9])*",l=`(\\b(${r}))?\\.(${r})|\\b(${r})\\.`,b={ +className:"number",relevance:0,variants:[{ +begin:`(\\b(${r})|(${l}))[eE][+-]?(${r})[jJ]?\\b`},{begin:`(${l})[jJ]?`},{ +begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{ +begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{ +begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${r})[jJ]\\b`}]},o={ +className:"comment", +begin:(d=/# type:/,((...e)=>e.map((e=>(e=>e?"string"==typeof e?e:e.source:null)(e))).join(""))("(?=",d,")")), +end:/$/,keywords:n,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/, +endsWithParent:!0}]},c={className:"params",variants:[{className:"", +begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0, +keywords:n,contains:["self",a,b,t,e.HASH_COMMENT_MODE]}]};var d +;return i.contains=[t,b,a],{name:"Python",aliases:["py","gyp","ipython"], +keywords:n,illegal:/(<\/|->|\?)|=>/,contains:[a,b,{begin:/\bself\b/},{ +beginKeywords:"if",relevance:0},t,o,e.HASH_COMMENT_MODE,{variants:[{ +className:"function",beginKeywords:"def"},{className:"class", +beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/, +contains:[e.UNDERSCORE_TITLE_MODE,c,{begin:/->/,endsWithParent:!0,keywords:n}] +},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,c,t]}]}}})()); +hljs.registerLanguage("python-repl",(()=>{"use strict";return s=>({ +aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$", +subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{ +begin:/^\.\.\.(?=[ ]|$)/}]}]})})()); +hljs.registerLanguage("r",(()=>{"use strict";function e(...e){return e.map((e=>{ +return(a=e)?"string"==typeof a?a:a.source:null;var a})).join("")}return a=>{ +const n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/;return{name:"R", +illegal:/->/,keywords:{$pattern:n, +keyword:"function if in break next repeat else for while", +literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10", +built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm" +},compilerExtensions:[(a,n)=>{if(!a.beforeMatch)return +;if(a.starts)throw Error("beforeMatch cannot be used with starts") +;const i=Object.assign({},a);Object.keys(a).forEach((e=>{delete a[e] +})),a.begin=e(i.beforeMatch,e("(?=",i.begin,")")),a.starts={relevance:0, +contains:[Object.assign(i,{endsParent:!0})]},a.relevance=0,delete i.beforeMatch +}],contains:[a.COMMENT(/#'/,/$/,{contains:[{className:"doctag", +begin:"@examples",starts:{contains:[{begin:/\n/},{begin:/#'\s*(?=@[a-zA-Z]+)/, +endsParent:!0},{begin:/#'/,end:/$/,excludeBegin:!0}]}},{className:"doctag", +begin:"@param",end:/$/,contains:[{className:"variable",variants:[{begin:n},{ +begin:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{className:"doctag", +begin:/@[a-zA-Z]+/},{className:"meta-keyword",begin:/\\[a-zA-Z]+/}] +}),a.HASH_COMMENT_MODE,{className:"string",contains:[a.BACKSLASH_ESCAPE], +variants:[a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/ +}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/ +}),a.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/ +}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/ +}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/ +}),a.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"', +relevance:0},{begin:"'",end:"'",relevance:0}]},{className:"number",relevance:0, +beforeMatch:/([^a-zA-Z0-9._])/,variants:[{ +match:/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/},{ +match:/0[xX][0-9a-fA-F]+([pP][+-]?\d+)?[Li]?/},{ +match:/(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?[Li]?/}]},{begin:"%",end:"%"},{ +begin:e(/[a-zA-Z][a-zA-Z_0-9]*/,"\\s+<-\\s+")},{begin:"`",end:"`",contains:[{ +begin:/\\./}]}]}}})()); +hljs.registerLanguage("ruby",(()=>{"use strict";function e(...e){ +return e.map((e=>{return(n=e)?"string"==typeof n?n:n.source:null;var n +})).join("")}return n=>{ +const a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i={ +keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__", +built_in:"proc lambda",literal:"true false nil"},s={className:"doctag", +begin:"@[A-Za-z]+"},r={begin:"#<",end:">"},b=[n.COMMENT("#","$",{contains:[s] +}),n.COMMENT("^=begin","^=end",{contains:[s],relevance:10 +}),n.COMMENT("^__END__","\\n$")],c={className:"subst",begin:/#\{/,end:/\}/, +keywords:i},t={className:"string",contains:[n.BACKSLASH_ESCAPE,c],variants:[{ +begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/, +end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{ +begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/, +end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{ +begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{ +begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{ +begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{ +begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{ +begin:/<<[-~]?'?(\w+)\n(?:[^\n]*\n)*?\s*\1\b/,returnBegin:!0,contains:[{ +begin:/<<[-~]?'?/},n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/, +contains:[n.BACKSLASH_ESCAPE,c]})]}]},g="[0-9](_?[0-9])*",d={className:"number", +relevance:0,variants:[{ +begin:`\\b([1-9](_?[0-9])*|0)(\\.(${g}))?([eE][+-]?(${g})|r)?i?\\b`},{ +begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b" +},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{ +begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{ +begin:"\\b0(_?[0-7])+r?i?\\b"}]},l={className:"params",begin:"\\(",end:"\\)", +endsParent:!0,keywords:i},o=[t,{className:"class",beginKeywords:"class module", +end:"$|;",illegal:/=/,contains:[n.inherit(n.TITLE_MODE,{ +begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{ +begin:"("+n.IDENT_RE+"::)?"+n.IDENT_RE,relevance:0}]}].concat(b)},{ +className:"function",begin:e(/def\s+/,(_=a+"\\s*(\\(|;|$)",e("(?=",_,")"))), +relevance:0,keywords:"def",end:"$|;",contains:[n.inherit(n.TITLE_MODE,{begin:a +}),l].concat(b)},{begin:n.IDENT_RE+"::"},{className:"symbol", +begin:n.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol", +begin:":(?!\\s)",contains:[t,{begin:a}],relevance:0},d,{className:"variable", +begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{ +className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:i},{ +begin:"("+n.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{ +className:"regexp",contains:[n.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{ +begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(", +end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}] +}].concat(r,b),relevance:0}].concat(r,b);var _;c.contains=o,l.contains=o +;const E=[{begin:/^\s*=>/,starts:{end:"$",contains:o}},{className:"meta", +begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])", +starts:{end:"$",contains:o}}];return b.unshift(r),{name:"Ruby", +aliases:["rb","gemspec","podspec","thor","irb"],keywords:i,illegal:/\/\*/, +contains:[n.SHEBANG({binary:"ruby"})].concat(E).concat(b).concat(o)}}})()); +hljs.registerLanguage("rust",(()=>{"use strict";return e=>{ +const n="([ui](8|16|32|64|128|size)|f(32|64))?",t="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!" +;return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?", +keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield", +literal:"true false Some None Ok Err",built_in:t},illegal:""}]}}})()); +hljs.registerLanguage("scss",(()=>{"use strict" +;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse() +;return a=>{const n=(e=>({IMPORTANT:{className:"meta",begin:"!important"}, +HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"}, +ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/, +illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]} +}))(a),l=o,s=i,d="@[a-z-]+",c={className:"variable", +begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"};return{name:"SCSS",case_insensitive:!0, +illegal:"[=/|']",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,{ +className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{ +className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0 +},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag", +begin:"\\b("+e.join("|")+")\\b",relevance:0},{className:"selector-pseudo", +begin:":("+s.join("|")+")"},{className:"selector-pseudo", +begin:"::("+l.join("|")+")"},c,{begin:/\(/,end:/\)/,contains:[a.CSS_NUMBER_MODE] +},{className:"attribute",begin:"\\b("+r.join("|")+")\\b"},{ +begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" +},{begin:":",end:";", +contains:[c,n.HEXCOLOR,a.CSS_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,n.IMPORTANT] +},{begin:"@(page|font-face)",lexemes:d,keywords:"@page @font-face"},{begin:"@", +end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/, +keyword:"and or not only",attribute:t.join(" ")},contains:[{begin:d, +className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute" +},c,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,n.HEXCOLOR,a.CSS_NUMBER_MODE]}]}} +})()); +hljs.registerLanguage("shell",(()=>{"use strict";return s=>({ +name:"Shell Session",aliases:["console"],contains:[{className:"meta", +begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#]/,starts:{end:/[^\\](?=\s*$)/, +subLanguage:"bash"}}]})})()); +hljs.registerLanguage("sql",(()=>{"use strict";function e(e){ +return e?"string"==typeof e?e:e.source:null}function r(...r){ +return r.map((r=>e(r))).join("")}function t(...r){ +return"("+r.map((r=>e(r))).join("|")+")"}return e=>{ +const n=e.COMMENT("--","$"),a=["true","false","unknown"],i=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],s=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],o=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],c=s,l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update ","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter((e=>!s.includes(e))),u={ +begin:r(/\b/,t(...c),/\s*\(/),keywords:{built_in:c}};return{name:"SQL", +case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/, +keyword:((e,{exceptions:r,when:t}={})=>{const n=t +;return r=r||[],e.map((e=>e.match(/\|\d+$/)||r.includes(e)?e:n(e)?e+"|0":e)) +})(l,{when:e=>e.length<3}),literal:a,type:i, +built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"] +},contains:[{begin:t(...o),keywords:{$pattern:/[\w\.]+/,keyword:l.concat(o), +literal:a,type:i}},{className:"type", +begin:t("double precision","large object","with timezone","without timezone") +},u,{className:"variable",begin:/@[a-z0-9]+/},{className:"string",variants:[{ +begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{ +begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"operator", +begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}})()); +hljs.registerLanguage("swift",(()=>{"use strict";function e(e){ +return e?"string"==typeof e?e:e.source:null}function n(e){return a("(?=",e,")")} +function a(...n){return n.map((n=>e(n))).join("")}function t(...n){ +return"("+n.map((n=>e(n))).join("|")+")"} +const i=e=>a(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(i),u=["init","self"].map(i),c=["Any","Self"],r=["associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],o=["false","nil","true"],l=["assignment","associativity","higherThan","left","lowerThan","none","right"],m=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],d=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],p=t(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),F=t(p,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=a(p,F,"*"),h=t(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),f=t(h,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),w=a(h,f,"*"),y=a(/[A-Z]/,f,"*"),g=["autoclosure",a(/convention\(/,t("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",a(/objc\(/,w,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],E=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"] +;return e=>{const p={match:/\s+/,relevance:0},h=e.COMMENT("/\\*","\\*/",{ +contains:["self"]}),v=[e.C_LINE_COMMENT_MODE,h],N={className:"keyword", +begin:a(/\./,n(t(...s,...u))),end:t(...s,...u),excludeBegin:!0},A={ +match:a(/\./,t(...r)),relevance:0 +},C=r.filter((e=>"string"==typeof e)).concat(["_|0"]),_={variants:[{ +className:"keyword", +match:t(...r.filter((e=>"string"!=typeof e)).concat(c).map(i),...u)}]},D={ +$pattern:t(/\b\w+/,/#\w+/),keyword:C.concat(m),literal:o},B=[N,A,_],k=[{ +match:a(/\./,t(...d)),relevance:0},{className:"built_in", +match:a(/\b/,t(...d),/(?=\()/)}],M={match:/->/,relevance:0},S=[M,{ +className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${F})+`}] +}],x="([0-9a-fA-F]_*)+",I={className:"number",relevance:0,variants:[{ +match:"\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b"},{ +match:`\\b0x(${x})(\\.(${x}))?([pP][+-]?(([0-9]_*)+))?\\b`},{ +match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},O=(e="")=>({ +className:"subst",variants:[{match:a(/\\/,e,/[0\\tnr"']/)},{ +match:a(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),T=(e="")=>({className:"subst", +match:a(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),L=(e="")=>({className:"subst", +label:"interpol",begin:a(/\\/,e,/\(/),end:/\)/}),P=(e="")=>({begin:a(e,/"""/), +end:a(/"""/,e),contains:[O(e),T(e),L(e)]}),$=(e="")=>({begin:a(e,/"/), +end:a(/"/,e),contains:[O(e),L(e)]}),K={className:"string", +variants:[P(),P("#"),P("##"),P("###"),$(),$("#"),$("##"),$("###")]},j={ +match:a(/`/,w,/`/)},z=[j,{className:"variable",match:/\$\d+/},{ +className:"variable",match:`\\$${f}+`}],q=[{match:/(@|#)available/, +className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:E, +contains:[...S,I,K]}]}},{className:"keyword",match:a(/@/,t(...g))},{ +className:"meta",match:a(/@/,w)}],U={match:n(/\b[A-Z]/),relevance:0,contains:[{ +className:"type", +match:a(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,f,"+") +},{className:"type",match:y,relevance:0},{match:/[?!]+/,relevance:0},{ +match:/\.\.\./,relevance:0},{match:a(/\s+&\s+/,n(y)),relevance:0}]},Z={ +begin://,keywords:D,contains:[...v,...B,...q,M,U]};U.contains.push(Z) +;const G={begin:/\(/,end:/\)/,relevance:0,keywords:D,contains:["self",{ +match:a(w,/\s*:/),keywords:"_|0",relevance:0 +},...v,...B,...k,...S,I,K,...z,...q,U]},H={beginKeywords:"func",contains:[{ +className:"title",match:t(j.match,w,b),endsParent:!0,relevance:0},p]},R={ +begin://,contains:[...v,U]},V={begin:/\(/,end:/\)/,keywords:D, +contains:[{begin:t(n(a(w,/\s*:/)),n(a(w,/\s+/,w,/\s*:/))),end:/:/,relevance:0, +contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:w}] +},...v,...B,...S,I,K,...q,U,G],endsParent:!0,illegal:/["']/},W={ +className:"function",match:n(/\bfunc\b/),contains:[H,R,V,p],illegal:[/\[/,/%/] +},X={className:"function",match:/\b(subscript|init[?!]?)\s*(?=[<(])/,keywords:{ +keyword:"subscript init init? init!",$pattern:/\w+[?!]?/},contains:[R,V,p], +illegal:/\[|%/},J={beginKeywords:"operator",end:e.MATCH_NOTHING_RE,contains:[{ +className:"title",match:b,endsParent:!0,relevance:0}]},Q={ +beginKeywords:"precedencegroup",end:e.MATCH_NOTHING_RE,contains:[{ +className:"title",match:y,relevance:0},{begin:/{/,end:/}/,relevance:0, +endsParent:!0,keywords:[...l,...o],contains:[U]}]};for(const e of K.variants){ +const n=e.contains.find((e=>"interpol"===e.label));n.keywords=D +;const a=[...B,...k,...S,I,K,...z];n.contains=[...a,{begin:/\(/,end:/\)/, +contains:["self",...a]}]}return{name:"Swift",keywords:D,contains:[...v,W,X,{ +className:"class",beginKeywords:"struct protocol class extension enum", +end:"\\{",excludeEnd:!0,keywords:D,contains:[e.inherit(e.TITLE_MODE,{ +begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...B]},J,Q,{ +beginKeywords:"import",end:/$/,contains:[...v],relevance:0 +},...B,...k,...S,I,K,...z,...q,U,G]}}})()); +hljs.registerLanguage("typescript",(()=>{"use strict" +;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],a=["true","false","null","undefined","NaN","Infinity"],s=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]) +;function t(e){return r("(?=",e,")")}function r(...e){return e.map((e=>{ +return(n=e)?"string"==typeof n?n:n.source:null;var n})).join("")}return i=>{ +const c={$pattern:e, +keyword:n.concat(["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"]), +literal:a, +built_in:s.concat(["any","void","number","boolean","string","object","never","enum"]) +},o={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},l=(e,n,a)=>{ +const s=e.contains.findIndex((e=>e.label===n)) +;if(-1===s)throw Error("can not find mode to replace");e.contains.splice(s,1,a) +},b=(i=>{const c=e,o={begin:/<[A-Za-z0-9\\._:-]+/, +end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{ +const a=e[0].length+e.index,s=e.input[a];"<"!==s?">"===s&&(((e,{after:n})=>{ +const a="", +returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{ +begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0 +},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:f}]}] +},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{ +variants:[{begin:"<>",end:""},{begin:o.begin,"on:begin":o.isTrulyOpeningTag, +end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0, +contains:["self"]}]}],relevance:0},{className:"function", +beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:l, +contains:["self",i.inherit(i.TITLE_MODE,{begin:c}),A],illegal:/%/},{ +beginKeywords:"while if switch catch for"},{className:"function", +begin:i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", +returnBegin:!0,contains:[A,i.inherit(i.TITLE_MODE,{begin:c})]},{variants:[{ +begin:"\\."+c},{begin:"\\$"+c}],relevance:0},{className:"class", +beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{ +beginKeywords:"extends"},i.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/, +end:/[{;]/,excludeEnd:!0,contains:[i.inherit(i.TITLE_MODE,{begin:c}),"self",A] +},{begin:"(get|set)\\s+(?="+c+"\\()",end:/\{/,keywords:"get set", +contains:[i.inherit(i.TITLE_MODE,{begin:c}),{begin:/\(\)/},A]},{begin:/\$[(.]/}] +}})(i) +;return Object.assign(b.keywords,c),b.exports.PARAMS_CONTAINS.push(o),b.contains=b.contains.concat([o,{ +beginKeywords:"namespace",end:/\{/,excludeEnd:!0},{beginKeywords:"interface", +end:/\{/,excludeEnd:!0,keywords:"interface extends" +}]),l(b,"shebang",i.SHEBANG()),l(b,"use_strict",{className:"meta",relevance:10, +begin:/^\s*['"]use strict['"]/ +}),b.contains.find((e=>"function"===e.className)).relevance=0,Object.assign(b,{ +name:"TypeScript",aliases:["ts","tsx"]}),b}})()); +hljs.registerLanguage("vbnet",(()=>{"use strict";function e(e){ +return e?"string"==typeof e?e:e.source:null}function n(...n){ +return n.map((n=>e(n))).join("")}function t(...n){ +return"("+n.map((n=>e(n))).join("|")+")"}return e=>{ +const a=/\d{1,2}\/\d{1,2}\/\d{4}/,i=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,r=/\d{1,2}(:\d{1,2}){1,2}/,o={ +className:"literal",variants:[{begin:n(/# */,t(i,a),/ *#/)},{ +begin:n(/# */,r,/ *#/)},{begin:n(/# */,s,/ *#/)},{ +begin:n(/# */,t(i,a),/ +/,t(s,r),/ *#/)}]},l=e.COMMENT(/'''/,/$/,{contains:[{ +className:"doctag",begin:/<\/?/,end:/>/}]}),c=e.COMMENT(null,/$/,{variants:[{ +begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET", +aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{ +keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield", +built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort", +type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort", +literal:"true false nothing"}, +illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{ +className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/, +end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o,{className:"number",relevance:0, +variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/ +},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{ +begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{ +className:"label",begin:/^\w+:/},l,c,{className:"meta", +begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/, +end:/$/,keywords:{ +"meta-keyword":"const disable else elseif enable end externalsource if region then" +},contains:[c]}]}}})()); +hljs.registerLanguage("yaml",(()=>{"use strict";return e=>{ +var n="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={ +className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/ +},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable", +variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},i=e.inherit(s,{ +variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={ +end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},t={begin:/\{/, +end:/\}/,contains:[l],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]", +contains:[l],illegal:"\\n",relevance:0},b=[{className:"attr",variants:[{ +begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{ +begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$", +relevance:10},{className:"string", +begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{ +begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0, +relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type", +begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a +},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta", +begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)", +relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},{ +className:"number", +begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b" +},{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},t,g,s],r=[...b] +;return r.pop(),r.push(i),l.contains=r,{name:"YAML",case_insensitive:!0, +aliases:["yml"],contains:b}}})()); \ No newline at end of file diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/preview-fullscreen.html b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/preview-fullscreen.html new file mode 100644 index 00000000..41ac72f9 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/preview-fullscreen.html @@ -0,0 +1,77 @@ + + + + + + + Preview + + + + + + + + + + + +
{preview}
+ + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/preview.html b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/preview.html new file mode 100644 index 00000000..da8dc414 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/preview.html @@ -0,0 +1,65 @@ + + + + + + + Preview + + + + + + + + + +
+
+

+ ~{linked-path} + [fullscreen] + +

+ + {phpMsg} + +
{preview}
+
+ + +
+ + + + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/status.html b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/status.html new file mode 100644 index 00000000..7df22d65 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/status.html @@ -0,0 +1,62 @@ + + + + + + + 404 + + + + + + + + +
+
+

~{linked-path}

+ +
+
{status}
+ {message} +
+
+ +
+ + diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/vs.min.css b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/vs.min.css new file mode 100644 index 00000000..2b3b0a20 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/vs.min.css @@ -0,0 +1 @@ +.hljs{display:block;overflow-x:auto;padding:.5em;background:#fff;color:#000}.hljs-comment,.hljs-quote,.hljs-variable{color:green}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#00f}.hljs-addition,.hljs-attribute,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type{color:#a31515}.hljs-deletion,.hljs-meta,.hljs-selector-attr,.hljs-selector-pseudo{color:#2b91af}.hljs-doctag{color:grey}.hljs-attr{color:red}.hljs-bullet,.hljs-link,.hljs-symbol{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700} \ No newline at end of file diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/vs2015.min.css b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/vs2015.min.css new file mode 100644 index 00000000..40d0adb0 --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/public/serve-preview/vs2015.min.css @@ -0,0 +1 @@ +.hljs{display:block;overflow-x:auto;padding:.5em;background:#1e1e1e;color:#dcdcdc}.hljs-keyword,.hljs-literal,.hljs-name,.hljs-symbol{color:#569cd6}.hljs-link{color:#569cd6;text-decoration:underline}.hljs-built_in,.hljs-type{color:#4ec9b0}.hljs-class,.hljs-number{color:#b8d7a3}.hljs-meta-string,.hljs-string{color:#d69d85}.hljs-regexp,.hljs-template-tag{color:#9a5334}.hljs-formula,.hljs-function,.hljs-params,.hljs-subst,.hljs-title{color:#dcdcdc}.hljs-comment,.hljs-quote{color:#57a64a;font-style:italic}.hljs-doctag{color:#608b4e}.hljs-meta,.hljs-meta-keyword,.hljs-tag{color:#9b9b9b}.hljs-template-variable,.hljs-variable{color:#bd63c5}.hljs-attr,.hljs-attribute,.hljs-builtin-name{color:#9cdcfe}.hljs-section{color:gold}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-bullet,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-selector-tag{color:#d7ba7d}.hljs-addition{background-color:#144212;display:inline-block;width:100%}.hljs-deletion{background-color:#600;display:inline-block;width:100%} \ No newline at end of file diff --git a/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/subdir/main.js b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/subdir/main.js new file mode 100644 index 00000000..0152525e --- /dev/null +++ b/dotfiles/.vscode-oss/extensions/yandeu.five-server-0.3.1-universal/dist/bundle/subdir/main.js @@ -0,0 +1,1034 @@ +"use strict";var Nee=Object.create;var Yd=Object.defineProperty,Ree=Object.defineProperties,Oee=Object.getOwnPropertyDescriptor,Pee=Object.getOwnPropertyDescriptors,Lee=Object.getOwnPropertyNames,gN=Object.getOwnPropertySymbols,Bee=Object.getPrototypeOf,vN=Object.prototype.hasOwnProperty,qee=Object.prototype.propertyIsEnumerable;var wx=(t,e,r)=>e in t?Yd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,lc=(t,e)=>{for(var r in e||={})vN.call(e,r)&&wx(t,r,e[r]);if(gN)for(var r of gN(e))qee.call(e,r)&&wx(t,r,e[r]);return t},_g=(t,e)=>Ree(t,Pee(e));var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Fee=(t,e)=>{for(var r in e)Yd(t,r,{get:e[r],enumerable:!0})},yN=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Lee(e))!vN.call(t,n)&&n!==r&&Yd(t,n,{get:()=>e[n],enumerable:!(i=Oee(e,n))||i.enumerable});return t};var Jl=(t,e,r)=>(r=t!=null?Nee(Bee(t)):{},yN(e||!t||!t.__esModule?Yd(r,"default",{value:t,enumerable:!0}):r,t)),$ee=t=>yN(Yd({},"__esModule",{value:!0}),t);var bN=(t,e,r)=>(wx(t,typeof e!="symbol"?e+"":e,r),r),Ex=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var pe=(t,e,r)=>(Ex(t,e,"read from private field"),r?r.call(t):e.get(t)),ti=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},yr=(t,e,r,i)=>(Ex(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r);var Qo=(t,e,r)=>(Ex(t,e,"access private method"),r);var xN=(t,e,r)=>new Promise((i,n)=>{var s=u=>{try{o(r.next(u))}catch(c){n(c)}},a=u=>{try{o(r.throw(u))}catch(c){n(c)}},o=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,a);o((r=r.apply(t,e)).next())});var Xd=E(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.removeColors=Zl.colors=void 0;var Mee=(t,e)=>{let r=Uee[e],i=`\x1B[${r[0]}m`,n=`\x1B[${r[1]}m`;return`${i}${t}${n}`};Zl.colors=Mee;var jee=t=>{let e=encodeURI(t);return e=e.replace(/%1B%5B\d+m/gm,""),decodeURI(e)};Zl.removeColors=jee;var Uee={bold:[1,22],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39]}});var tp=E(pc=>{"use strict";var Vee=pc&&pc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pc,"__esModule",{value:!0});pc.message=void 0;var Hee=Vee(require("events")),ep=Xd(),Cx=class extends Hee.default{constructor(){super(...arguments),this.logLevel=1,this.logs=new Map,this.log=(...e)=>{let r=e.join(" ");this.logLevel>=1&&console.log(r),this.emit("message",{type:"log",msg:r})},this.warn=(...e)=>{let r=(0,ep.colors)(e.join(" "),"yellow");this.logLevel>=1&&console.warn(r),this.emit("message",{type:"warn",msg:r})},this.info=(...e)=>{let r=(0,ep.colors)(e.join(" "),"blue");this.logLevel>=1&&console.log(r),this.emit("message",{type:"info",msg:r})},this.error=(e,r=" ",i=!1,n=1)=>{r===null&&(r=" "),r!==" "&&(r=` ${r}: `);let s=e?(0,ep.colors)(`ERROR:${r}${e}`,"red"):(0,ep.colors)(`ERROR:${r}unknown`,"red");console.error(s),this.emit("message",{type:"error",msg:s}),i&&process.exit(n)}}pretty(e,r={}){let{timestamp:i=!0,id:n="fiveserver"}=r,s=this.logs.get(n),a=0;s&&s.log===e&&(a=s.count+1),this.logs.set(n,{log:e,count:a});let o=new Date().toISOString().replace(/T/," ").replace(/\..+/,"").substring(11),u=i?(0,ep.colors)(`${o} `,"gray"):"",c=a>0?(0,ep.colors)(` (x${a+1})`,"yellow"):"",l=`${u}${e}${c}`;this.logLevel>=1&&pc.message.log(l),this.emit("message",{type:"pretty",msg:l})}};pc.message=new Cx});var _x=E(Sx=>{"use strict";Object.defineProperty(Sx,"__esModule",{value:!0});var Gee=/["'&<>]/,zee=t=>{let e=Gee.exec(t);if(!e)return t;let r,i="",n=0,s=0;for(n=e.index;n{"use strict";var Kee=Oi&&Oi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Oi,"__esModule",{value:!0});Oi.appendPathToUrl=Oi.removeTrailingSlash=Oi.removeLeadingSlash=Oi.escape=Oi.splitLines=void 0;var Wee=Kee(_x()),Yee=t=>t.replace(/\r\n|\r|\n/gm,"");Oi.splitLines=Yee;var Xee=t=>(0,Wee.default)(t);Oi.escape=Xee;var Qee=t=>t.replace(/^\/+/g,"");Oi.removeLeadingSlash=Qee;var Jee=t=>t.replace(/\/+$/g,"");Oi.removeTrailingSlash=Jee;var Zee=(t,e)=>`${(0,Oi.removeTrailingSlash)(t)}/${(0,Oi.removeLeadingSlash)(e)}`;Oi.appendPathToUrl=Zee});var rp=E(Yr=>{"use strict";var ete=Yr&&Yr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),tte=Yr&&Yr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ete(e,t,r)},Dx=Yr&&Yr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.donate=Yr.getConfigFile=Yr.defaultPHPPath=Yr.fileDoesExist=Yr.createHttpError=void 0;var Ag=Xd(),Tx=Dx(require("fs")),ia=tp(),rte=Dx(require("os")),Ax=Dx(require("path"));tte(wN(),Yr);var ite=(t=500,e="unknown",r)=>(t!==404&&ia.message.log(`ERROR: ${t} ${e}`),{message:e,code:t,status:t,statusCode:t,name:t});Yr.createHttpError=ite;var nte=t=>new Promise(e=>{Tx.default.stat(t,(r,i)=>r&&r.code==="ENOENT"?e(!1):e(!0))});Yr.fileDoesExist=nte;var ste=()=>{switch(rte.default.platform()){case"darwin":return"/usr/local/bin/php";case"linux":return"/usr/bin/php";case"win32":return"c:\\tools\\php\\php.exe"}return""};Yr.defaultPHPPath=ste;var ate=(t=!0,e)=>{let r={};if(t===!1)return r;let i=[],n=[".fiveserverrc",".fiveserverrc.json",".fiveserverrc.js",".fiveserverrc.cjs",".fiveserverrc.mjs","fiveserver.config.js","fiveserver.config.cjs","fiveserver.config.mjs",".live-server.json"];typeof t=="string"&&n.unshift(t),e&&i.push(e),i.push(Ax.default.resolve());let s=process.env[process.platform==="win32"?"USERPROFILE":"HOME"];s&&i.push(s),i.push(process.cwd());let a=/\.c?m?js$/;e:for(let o of i)for(let u of n){let c=Ax.default.join(o,u);if(Tx.default.existsSync(c)){if(a.test(Ax.default.extname(c)))try{delete require.cache[c];let f=require(c);Object.keys(f).length===0&&ia.message.warn(`Config file "${u}" is empty or has issues`),r={...r,...f}}catch(f){ia.message.error(f.message,u,!1)}else{let f=Tx.default.readFileSync(c,"utf8");try{r={...r,...JSON.parse(f)}}catch(d){ia.message.error(d.message,u,!1)}}r.ignorePattern&&(r.ignorePattern=new RegExp(r.ignorePattern));break e}}return r.root&&(r.root=r.root.replace(/^\/+/,"")),r.open==="true"&&(r.open=!0),r.open==="false"&&(r.open=!1),r.https==="true"&&(r.https=!0),r};Yr.getConfigFile=ate;var ote=()=>{Math.random()>.02||(ia.message.log(""),ia.message.log(` ${(0,Ag.colors)("Thank you for using ","gray")}Five Server${(0,Ag.colors)("!","gray")}`),ia.message.log(` ${(0,Ag.colors)("Please consider supporting it on GitHub.","gray")}`),ia.message.log(""),ia.message.log(` ${(0,Ag.colors)("Donate: https://github.com/sponsors/yandeu","yellow")}`),ia.message.log(""))};Yr.donate=ote});var Jd=E((pFe,kN)=>{"use strict";var pte=require("path"),na="\\\\/",_N=`[^${na}]`,to="\\.",fte="\\+",dte="\\?",Ig="\\/",hte="(?=.)",AN="[^/]",Rx=`(?:${Ig}|$)`,TN=`(?:^|${Ig})`,Ox=`${to}{1,2}${Rx}`,mte=`(?!${to})`,gte=`(?!${TN}${Ox})`,vte=`(?!${to}{0,1}${Rx})`,yte=`(?!${Ox})`,bte=`[^.${Ig}]`,xte=`${AN}*?`,DN={DOT_LITERAL:to,PLUS_LITERAL:fte,QMARK_LITERAL:dte,SLASH_LITERAL:Ig,ONE_CHAR:hte,QMARK:AN,END_ANCHOR:Rx,DOTS_SLASH:Ox,NO_DOT:mte,NO_DOTS:gte,NO_DOT_SLASH:vte,NO_DOTS_SLASH:yte,QMARK_NO_DOT:bte,STAR:xte,START_ANCHOR:TN},wte={...DN,SLASH_LITERAL:`[${na}]`,QMARK:_N,STAR:`${_N}*?`,DOTS_SLASH:`${to}{1,2}(?:[${na}]|$)`,NO_DOT:`(?!${to})`,NO_DOTS:`(?!(?:^|[${na}])${to}{1,2}(?:[${na}]|$))`,NO_DOT_SLASH:`(?!${to}{0,1}(?:[${na}]|$))`,NO_DOTS_SLASH:`(?!${to}{1,2}(?:[${na}]|$))`,QMARK_NO_DOT:`[^.${na}]`,START_ANCHOR:`(?:^|[${na}])`,END_ANCHOR:`(?:[${na}]|$)`},Ete={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};kN.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Ete,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:pte.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?wte:DN}}});var Ng=E(gn=>{"use strict";var Cte=require("path"),Ste=process.platform==="win32",{REGEX_BACKSLASH:_te,REGEX_REMOVE_BACKSLASH:Ate,REGEX_SPECIAL_CHARS:Tte,REGEX_SPECIAL_CHARS_GLOBAL:Dte}=Jd();gn.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);gn.hasRegexChars=t=>Tte.test(t);gn.isRegexChar=t=>t.length===1&&gn.hasRegexChars(t);gn.escapeRegex=t=>t.replace(Dte,"\\$1");gn.toPosixSlashes=t=>t.replace(_te,"/");gn.removeBackslashes=t=>t.replace(Ate,e=>e==="\\"?"":e);gn.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};gn.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Ste===!0||Cte.sep==="\\";gn.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?gn.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};gn.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};gn.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var qN=E((dFe,BN)=>{"use strict";var IN=Ng(),{CHAR_ASTERISK:Px,CHAR_AT:kte,CHAR_BACKWARD_SLASH:Zd,CHAR_COMMA:Ite,CHAR_DOT:Lx,CHAR_EXCLAMATION_MARK:Bx,CHAR_FORWARD_SLASH:LN,CHAR_LEFT_CURLY_BRACE:qx,CHAR_LEFT_PARENTHESES:Fx,CHAR_LEFT_SQUARE_BRACKET:Nte,CHAR_PLUS:Rte,CHAR_QUESTION_MARK:NN,CHAR_RIGHT_CURLY_BRACE:Ote,CHAR_RIGHT_PARENTHESES:RN,CHAR_RIGHT_SQUARE_BRACKET:Pte}=Jd(),ON=t=>t===LN||t===Zd,PN=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Lte=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],a=[],o=[],u=t,c=-1,l=0,f=0,d=!1,h=!1,m=!1,g=!1,y=!1,b=!1,w=!1,S=!1,x=!1,k=!1,R=0,L,j,G={value:"",depth:0,isGlob:!1},J=()=>c>=i,q=()=>u.charCodeAt(c+1),Z=()=>(L=j,u.charCodeAt(++c));for(;c0&&(Ae=u.slice(0,l),u=u.slice(l),f-=l),ue&&m===!0&&f>0?(ue=u.slice(0,f),M=u.slice(f)):m===!0?(ue="",M=u):ue=u,ue&&ue!==""&&ue!=="/"&&ue!==u&&ON(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),r.unescape===!0&&(M&&(M=IN.removeBackslashes(M)),ue&&w===!0&&(ue=IN.removeBackslashes(ue)));let H={prefix:Ae,input:t,start:l,base:ue,glob:M,isBrace:d,isBracket:h,isGlob:m,isExtglob:g,isGlobstar:y,negated:S,negatedExtglob:x};if(r.tokens===!0&&(H.maxDepth=0,ON(j)||a.push(G),H.tokens=a),r.parts===!0||r.tokens===!0){let z;for(let Y=0;Y{"use strict";var Rg=Jd(),Bn=Ng(),{MAX_LENGTH:Og,POSIX_REGEX_SOURCE:Bte,REGEX_NON_SPECIAL_CHARS:qte,REGEX_SPECIAL_CHARS_BACKREF:Fte,REPLACEMENTS:FN}=Rg,$te=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(n=>Bn.escapeRegex(n)).join("..")}return r},np=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,$x=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=FN[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Og,r.maxLength):Og,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},a=[s],o=r.capture?"":"?:",u=Bn.isWindows(e),c=Rg.globChars(u),l=Rg.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:d,SLASH_LITERAL:h,ONE_CHAR:m,DOTS_SLASH:g,NO_DOT:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:w,QMARK:S,QMARK_NO_DOT:x,STAR:k,START_ANCHOR:R}=c,L=ie=>`(${o}(?:(?!${R}${ie.dot?g:f}).)*?)`,j=r.dot?"":y,G=r.dot?S:x,J=r.bash===!0?L(r):k;r.capture&&(J=`(${J})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let q={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};t=Bn.removePrefix(t,q),n=t.length;let Z=[],ue=[],Ae=[],M=s,H,z=()=>q.index===n-1,Y=q.peek=(ie=1)=>t[q.index+ie],he=q.advance=()=>t[++q.index]||"",ae=()=>t.slice(q.index+1),xe=(ie="",Oe=0)=>{q.consumed+=ie,q.index+=Oe},Pe=ie=>{q.output+=ie.output!=null?ie.output:ie.value,xe(ie.value)},Qe=()=>{let ie=1;for(;Y()==="!"&&(Y(2)!=="("||Y(3)==="?");)he(),q.start++,ie++;return ie%2===0?!1:(q.negated=!0,q.start++,!0)},Ve=ie=>{q[ie]++,Ae.push(ie)},ve=ie=>{q[ie]--,Ae.pop()},me=ie=>{if(M.type==="globstar"){let Oe=q.braces>0&&(ie.type==="comma"||ie.type==="brace"),ee=ie.extglob===!0||Z.length&&(ie.type==="pipe"||ie.type==="paren");ie.type!=="slash"&&ie.type!=="paren"&&!Oe&&!ee&&(q.output=q.output.slice(0,-M.output.length),M.type="star",M.value="*",M.output=J,q.output+=M.output)}if(Z.length&&ie.type!=="paren"&&(Z[Z.length-1].inner+=ie.value),(ie.value||ie.output)&&Pe(ie),M&&M.type==="text"&&ie.type==="text"){M.value+=ie.value,M.output=(M.output||"")+ie.value;return}ie.prev=M,a.push(ie),M=ie},rt=(ie,Oe)=>{let ee={...l[Oe],conditions:1,inner:""};ee.prev=M,ee.parens=q.parens,ee.output=q.output;let Ce=(r.capture?"(":"")+ee.open;Ve("parens"),me({type:ie,value:Oe,output:q.output?"":m}),me({type:"paren",extglob:!0,value:he(),output:Ce}),Z.push(ee)},wt=ie=>{let Oe=ie.close+(r.capture?")":""),ee;if(ie.type==="negate"){let Ce=J;if(ie.inner&&ie.inner.length>1&&ie.inner.includes("/")&&(Ce=L(r)),(Ce!==J||z()||/^\)+$/.test(ae()))&&(Oe=ie.close=`)$))${Ce}`),ie.inner.includes("*")&&(ee=ae())&&/^\.[^\\/.]+$/.test(ee)){let $e=$x(ee,{...e,fastpaths:!1}).output;Oe=ie.close=`)${$e})${Ce})`}ie.prev.type==="bos"&&(q.negatedExtglob=!0)}me({type:"paren",extglob:!0,value:H,output:Oe}),ve("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let ie=!1,Oe=t.replace(Fte,(ee,Ce,$e,Me,ze,ea)=>Me==="\\"?(ie=!0,ee):Me==="?"?Ce?Ce+Me+(ze?S.repeat(ze.length):""):ea===0?G+(ze?S.repeat(ze.length):""):S.repeat($e.length):Me==="."?f.repeat($e.length):Me==="*"?Ce?Ce+Me+(ze?J:""):J:Ce?ee:`\\${ee}`);return ie===!0&&(r.unescape===!0?Oe=Oe.replace(/\\/g,""):Oe=Oe.replace(/\\+/g,ee=>ee.length%2===0?"\\\\":ee?"\\":"")),Oe===t&&r.contains===!0?(q.output=t,q):(q.output=Bn.wrapOutput(Oe,q,e),q)}for(;!z();){if(H=he(),H==="\0")continue;if(H==="\\"){let ee=Y();if(ee==="/"&&r.bash!==!0||ee==="."||ee===";")continue;if(!ee){H+="\\",me({type:"text",value:H});continue}let Ce=/^\\+/.exec(ae()),$e=0;if(Ce&&Ce[0].length>2&&($e=Ce[0].length,q.index+=$e,$e%2!==0&&(H+="\\")),r.unescape===!0?H=he():H+=he(),q.brackets===0){me({type:"text",value:H});continue}}if(q.brackets>0&&(H!=="]"||M.value==="["||M.value==="[^")){if(r.posix!==!1&&H===":"){let ee=M.value.slice(1);if(ee.includes("[")&&(M.posix=!0,ee.includes(":"))){let Ce=M.value.lastIndexOf("["),$e=M.value.slice(0,Ce),Me=M.value.slice(Ce+2),ze=Bte[Me];if(ze){M.value=$e+ze,q.backtrack=!0,he(),!s.output&&a.indexOf(M)===1&&(s.output=m);continue}}}(H==="["&&Y()!==":"||H==="-"&&Y()==="]")&&(H=`\\${H}`),H==="]"&&(M.value==="["||M.value==="[^")&&(H=`\\${H}`),r.posix===!0&&H==="!"&&M.value==="["&&(H="^"),M.value+=H,Pe({value:H});continue}if(q.quotes===1&&H!=='"'){H=Bn.escapeRegex(H),M.value+=H,Pe({value:H});continue}if(H==='"'){q.quotes=q.quotes===1?0:1,r.keepQuotes===!0&&me({type:"text",value:H});continue}if(H==="("){Ve("parens"),me({type:"paren",value:H});continue}if(H===")"){if(q.parens===0&&r.strictBrackets===!0)throw new SyntaxError(np("opening","("));let ee=Z[Z.length-1];if(ee&&q.parens===ee.parens+1){wt(Z.pop());continue}me({type:"paren",value:H,output:q.parens?")":"\\)"}),ve("parens");continue}if(H==="["){if(r.nobracket===!0||!ae().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(np("closing","]"));H=`\\${H}`}else Ve("brackets");me({type:"bracket",value:H});continue}if(H==="]"){if(r.nobracket===!0||M&&M.type==="bracket"&&M.value.length===1){me({type:"text",value:H,output:`\\${H}`});continue}if(q.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(np("opening","["));me({type:"text",value:H,output:`\\${H}`});continue}ve("brackets");let ee=M.value.slice(1);if(M.posix!==!0&&ee[0]==="^"&&!ee.includes("/")&&(H=`/${H}`),M.value+=H,Pe({value:H}),r.literalBrackets===!1||Bn.hasRegexChars(ee))continue;let Ce=Bn.escapeRegex(M.value);if(q.output=q.output.slice(0,-M.value.length),r.literalBrackets===!0){q.output+=Ce,M.value=Ce;continue}M.value=`(${o}${Ce}|${M.value})`,q.output+=M.value;continue}if(H==="{"&&r.nobrace!==!0){Ve("braces");let ee={type:"brace",value:H,output:"(",outputIndex:q.output.length,tokensIndex:q.tokens.length};ue.push(ee),me(ee);continue}if(H==="}"){let ee=ue[ue.length-1];if(r.nobrace===!0||!ee){me({type:"text",value:H,output:H});continue}let Ce=")";if(ee.dots===!0){let $e=a.slice(),Me=[];for(let ze=$e.length-1;ze>=0&&(a.pop(),$e[ze].type!=="brace");ze--)$e[ze].type!=="dots"&&Me.unshift($e[ze].value);Ce=$te(Me,r),q.backtrack=!0}if(ee.comma!==!0&&ee.dots!==!0){let $e=q.output.slice(0,ee.outputIndex),Me=q.tokens.slice(ee.tokensIndex);ee.value=ee.output="\\{",H=Ce="\\}",q.output=$e;for(let ze of Me)q.output+=ze.output||ze.value}me({type:"brace",value:H,output:Ce}),ve("braces"),ue.pop();continue}if(H==="|"){Z.length>0&&Z[Z.length-1].conditions++,me({type:"text",value:H});continue}if(H===","){let ee=H,Ce=ue[ue.length-1];Ce&&Ae[Ae.length-1]==="braces"&&(Ce.comma=!0,ee="|"),me({type:"comma",value:H,output:ee});continue}if(H==="/"){if(M.type==="dot"&&q.index===q.start+1){q.start=q.index+1,q.consumed="",q.output="",a.pop(),M=s;continue}me({type:"slash",value:H,output:h});continue}if(H==="."){if(q.braces>0&&M.type==="dot"){M.value==="."&&(M.output=f);let ee=ue[ue.length-1];M.type="dots",M.output+=H,M.value+=H,ee.dots=!0;continue}if(q.braces+q.parens===0&&M.type!=="bos"&&M.type!=="slash"){me({type:"text",value:H,output:f});continue}me({type:"dot",value:H,output:f});continue}if(H==="?"){if(!(M&&M.value==="(")&&r.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){rt("qmark",H);continue}if(M&&M.type==="paren"){let Ce=Y(),$e=H;if(Ce==="<"&&!Bn.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(M.value==="("&&!/[!=<:]/.test(Ce)||Ce==="<"&&!/<([!=]|\w+>)/.test(ae()))&&($e=`\\${H}`),me({type:"text",value:H,output:$e});continue}if(r.dot!==!0&&(M.type==="slash"||M.type==="bos")){me({type:"qmark",value:H,output:x});continue}me({type:"qmark",value:H,output:S});continue}if(H==="!"){if(r.noextglob!==!0&&Y()==="("&&(Y(2)!=="?"||!/[!=<:]/.test(Y(3)))){rt("negate",H);continue}if(r.nonegate!==!0&&q.index===0){Qe();continue}}if(H==="+"){if(r.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){rt("plus",H);continue}if(M&&M.value==="("||r.regex===!1){me({type:"plus",value:H,output:d});continue}if(M&&(M.type==="bracket"||M.type==="paren"||M.type==="brace")||q.parens>0){me({type:"plus",value:H});continue}me({type:"plus",value:d});continue}if(H==="@"){if(r.noextglob!==!0&&Y()==="("&&Y(2)!=="?"){me({type:"at",extglob:!0,value:H,output:""});continue}me({type:"text",value:H});continue}if(H!=="*"){(H==="$"||H==="^")&&(H=`\\${H}`);let ee=qte.exec(ae());ee&&(H+=ee[0],q.index+=ee[0].length),me({type:"text",value:H});continue}if(M&&(M.type==="globstar"||M.star===!0)){M.type="star",M.star=!0,M.value+=H,M.output=J,q.backtrack=!0,q.globstar=!0,xe(H);continue}let ie=ae();if(r.noextglob!==!0&&/^\([^?]/.test(ie)){rt("star",H);continue}if(M.type==="star"){if(r.noglobstar===!0){xe(H);continue}let ee=M.prev,Ce=ee.prev,$e=ee.type==="slash"||ee.type==="bos",Me=Ce&&(Ce.type==="star"||Ce.type==="globstar");if(r.bash===!0&&(!$e||ie[0]&&ie[0]!=="/")){me({type:"star",value:H,output:""});continue}let ze=q.braces>0&&(ee.type==="comma"||ee.type==="brace"),ea=Z.length&&(ee.type==="pipe"||ee.type==="paren");if(!$e&&ee.type!=="paren"&&!ze&&!ea){me({type:"star",value:H,output:""});continue}for(;ie.slice(0,3)==="/**";){let _s=t[q.index+4];if(_s&&_s!=="/")break;ie=ie.slice(3),xe("/**",3)}if(ee.type==="bos"&&z()){M.type="globstar",M.value+=H,M.output=L(r),q.output=M.output,q.globstar=!0,xe(H);continue}if(ee.type==="slash"&&ee.prev.type!=="bos"&&!Me&&z()){q.output=q.output.slice(0,-(ee.output+M.output).length),ee.output=`(?:${ee.output}`,M.type="globstar",M.output=L(r)+(r.strictSlashes?")":"|$)"),M.value+=H,q.globstar=!0,q.output+=ee.output+M.output,xe(H);continue}if(ee.type==="slash"&&ee.prev.type!=="bos"&&ie[0]==="/"){let _s=ie[1]!==void 0?"|$":"";q.output=q.output.slice(0,-(ee.output+M.output).length),ee.output=`(?:${ee.output}`,M.type="globstar",M.output=`${L(r)}${h}|${h}${_s})`,M.value+=H,q.output+=ee.output+M.output,q.globstar=!0,xe(H+he()),me({type:"slash",value:"/",output:""});continue}if(ee.type==="bos"&&ie[0]==="/"){M.type="globstar",M.value+=H,M.output=`(?:^|${h}|${L(r)}${h})`,q.output=M.output,q.globstar=!0,xe(H+he()),me({type:"slash",value:"/",output:""});continue}q.output=q.output.slice(0,-M.output.length),M.type="globstar",M.output=L(r),M.value+=H,q.output+=M.output,q.globstar=!0,xe(H);continue}let Oe={type:"star",value:H,output:J};if(r.bash===!0){Oe.output=".*?",(M.type==="bos"||M.type==="slash")&&(Oe.output=j+Oe.output),me(Oe);continue}if(M&&(M.type==="bracket"||M.type==="paren")&&r.regex===!0){Oe.output=H,me(Oe);continue}(q.index===q.start||M.type==="slash"||M.type==="dot")&&(M.type==="dot"?(q.output+=b,M.output+=b):r.dot===!0?(q.output+=w,M.output+=w):(q.output+=j,M.output+=j),Y()!=="*"&&(q.output+=m,M.output+=m)),me(Oe)}for(;q.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(np("closing","]"));q.output=Bn.escapeLast(q.output,"["),ve("brackets")}for(;q.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(np("closing",")"));q.output=Bn.escapeLast(q.output,"("),ve("parens")}for(;q.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(np("closing","}"));q.output=Bn.escapeLast(q.output,"{"),ve("braces")}if(r.strictSlashes!==!0&&(M.type==="star"||M.type==="bracket")&&me({type:"maybe_slash",value:"",output:`${h}?`}),q.backtrack===!0){q.output="";for(let ie of q.tokens)q.output+=ie.output!=null?ie.output:ie.value,ie.suffix&&(q.output+=ie.suffix)}return q};$x.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Og,r.maxLength):Og,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=FN[t]||t;let s=Bn.isWindows(e),{DOT_LITERAL:a,SLASH_LITERAL:o,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:d,STAR:h,START_ANCHOR:m}=Rg.globChars(s),g=r.dot?f:l,y=r.dot?d:l,b=r.capture?"":"?:",w={negated:!1,prefix:""},S=r.bash===!0?".*?":h;r.capture&&(S=`(${S})`);let x=j=>j.noglobstar===!0?S:`(${b}(?:(?!${m}${j.dot?c:a}).)*?)`,k=j=>{switch(j){case"*":return`${g}${u}${S}`;case".*":return`${a}${u}${S}`;case"*.*":return`${g}${S}${a}${u}${S}`;case"*/*":return`${g}${S}${o}${u}${y}${S}`;case"**":return g+x(r);case"**/*":return`(?:${g}${x(r)}${o})?${y}${u}${S}`;case"**/*.*":return`(?:${g}${x(r)}${o})?${y}${S}${a}${u}${S}`;case"**/.*":return`(?:${g}${x(r)}${o})?${a}${u}${S}`;default:{let G=/^(.*?)\.(\w+)$/.exec(j);if(!G)return;let J=k(G[1]);return J?J+a+G[2]:void 0}}},R=Bn.removePrefix(t,w),L=k(R);return L&&r.strictSlashes!==!0&&(L+=`${o}?`),L};$N.exports=$x});var UN=E((mFe,jN)=>{"use strict";var Mte=require("path"),jte=qN(),Mx=MN(),jx=Ng(),Ute=Jd(),Vte=t=>t&&typeof t=="object"&&!Array.isArray(t),qr=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(d=>qr(d,e,r));return d=>{for(let h of l){let m=h(d);if(m)return m}return!1}}let i=Vte(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=jx.isWindows(e),a=i?qr.compileRe(t,e):qr.makeRe(t,e,!1,!0),o=a.state;delete a.state;let u=()=>!1;if(n.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=qr(n.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:d,match:h,output:m}=qr.test(l,a,e,{glob:t,posix:s}),g={glob:t,state:o,regex:a,posix:s,input:l,output:m,match:h,isMatch:d};return typeof n.onResult=="function"&&n.onResult(g),d===!1?(g.isMatch=!1,f?g:!1):u(l)?(typeof n.onIgnore=="function"&&n.onIgnore(g),g.isMatch=!1,f?g:!1):(typeof n.onMatch=="function"&&n.onMatch(g),f?g:!0)};return r&&(c.state=o),c};qr.test=(t,e,r,{glob:i,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},a=s.format||(n?jx.toPosixSlashes:null),o=t===i,u=o&&a?a(t):t;return o===!1&&(u=a?a(t):t,o=u===i),(o===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?o=qr.matchBase(t,e,r,n):o=e.exec(u)),{isMatch:!!o,match:o,output:u}};qr.matchBase=(t,e,r,i=jx.isWindows(r))=>(e instanceof RegExp?e:qr.makeRe(e,r)).test(Mte.basename(t));qr.isMatch=(t,e,r)=>qr(e,r)(t);qr.parse=(t,e)=>Array.isArray(t)?t.map(r=>qr.parse(r,e)):Mx(t,{...e,fastpaths:!1});qr.scan=(t,e)=>jte(t,e);qr.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",a=n.contains?"":"$",o=`${s}(?:${t.output})${a}`;t&&t.negated===!0&&(o=`^(?!${o}).*$`);let u=qr.toRegex(o,e);return i===!0&&(u.state=t),u};qr.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=Mx.fastpaths(t,e)),n.output||(n=Mx(t,e)),qr.compileRe(n,e,r,i)};qr.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};qr.constants=Ute;jN.exports=qr});var Ux=E((gFe,VN)=>{"use strict";VN.exports=UN()});var QN=E((vFe,XN)=>{"use strict";var th=require("fs"),{Readable:Hte}=require("stream"),eh=require("path"),{promisify:Bg}=require("util"),Vx=Ux(),Gte=Bg(th.readdir),zte=Bg(th.stat),HN=Bg(th.lstat),Kte=Bg(th.realpath),Wte="!",WN="READDIRP_RECURSIVE_ERROR",Yte=new Set(["ENOENT","EPERM","EACCES","ELOOP",WN]),Hx="files",YN="directories",Lg="files_directories",Pg="all",GN=[Hx,YN,Lg,Pg],Xte=t=>Yte.has(t.code),[zN,Qte]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),Jte=process.platform==="win32"&&(zN>10||zN===10&&Qte>=5),KN=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){let e=Vx(t.trim());return r=>e(r.basename)}if(Array.isArray(t)){let e=[],r=[];for(let i of t){let n=i.trim();n.charAt(0)===Wte?r.push(Vx(n.slice(1))):e.push(Vx(n))}return r.length>0?e.length>0?i=>e.some(n=>n(i.basename))&&!r.some(n=>n(i.basename)):i=>!r.some(n=>n(i.basename)):i=>e.some(n=>n(i.basename))}}},sp=class extends Hte{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:Hx,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});let r={...sp.defaultOptions,...e},{root:i,type:n}=r;this._fileFilter=KN(r.fileFilter),this._directoryFilter=KN(r.directoryFilter);let s=r.lstat?HN:zte;Jte?this._stat=a=>s(a,{bigint:!0}):this._stat=s,this._maxDepth=r.depth,this._wantsDir=[YN,Lg,Pg].includes(n),this._wantsFile=[Hx,Lg,Pg].includes(n),this._wantsEverything=n===Pg,this._root=eh.resolve(i),this._isDirent="Dirent"in th&&!r.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(i,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let{path:r,depth:i,files:n=[]}=this.parent||{};if(n.length>0){let s=n.splice(0,e).map(a=>this._formatEntry(a,r));for(let a of await Promise.all(s)){if(this.destroyed)return;let o=await this._getEntryType(a);o==="directory"&&this._directoryFilter(a)?(i<=this._maxDepth&&this.parents.push(this._exploreDir(a.fullPath,i+1)),this._wantsDir&&(this.push(a),e--)):(o==="file"||this._includeAsFile(a))&&this._fileFilter(a)&&this._wantsFile&&(this.push(a),e--)}}else{let s=this.parents.pop();if(!s){this.push(null);break}if(this.parent=await s,this.destroyed)return}}}catch(r){this.destroy(r)}finally{this.reading=!1}}}async _exploreDir(e,r){let i;try{i=await Gte(e,this._rdOptions)}catch(n){this._onError(n)}return{files:i,depth:r,path:e}}async _formatEntry(e,r){let i;try{let n=this._isDirent?e.name:e,s=eh.resolve(eh.join(r,n));i={path:eh.relative(this._root,s),fullPath:s,basename:n},i[this._statsProp]=this._isDirent?e:await this._stat(s)}catch(n){this._onError(n)}return i}_onError(e){Xte(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){let r=e&&e[this._statsProp];if(r){if(r.isFile())return"file";if(r.isDirectory())return"directory";if(r&&r.isSymbolicLink()){let i=e.fullPath;try{let n=await Kte(i),s=await HN(n);if(s.isFile())return"file";if(s.isDirectory()){let a=n.length;if(i.startsWith(n)&&i.substr(a,1)===eh.sep){let o=new Error(`Circular symlink detected: "${i}" points to "${n}"`);return o.code=WN,this._onError(o)}return"directory"}}catch(n){this._onError(n)}}}}_includeAsFile(e){let r=e&&e[this._statsProp];return r&&this._wantsEverything&&!r.isDirectory()}},ap=(t,e={})=>{let r=e.entryType||e.type;if(r==="both"&&(r=Lg),r&&(e.type=r),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(r&&!GN.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${GN.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new sp(e)},Zte=(t,e={})=>new Promise((r,i)=>{let n=[];ap(t,e).on("data",s=>n.push(s)).on("end",()=>r(n)).on("error",s=>i(s))});ap.promise=Zte;ap.ReaddirpStream=sp;ap.default=ap;XN.exports=ap});var Gx=E((yFe,JN)=>{JN.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var i="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),i="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),i+s.join("/")}});var nR=E((rR,iR)=>{"use strict";Object.defineProperty(rR,"__esModule",{value:!0});var tR=Ux(),ere=Gx(),ZN="!",tre={returnIndex:!1},rre=t=>Array.isArray(t)?t:[t],ire=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=tR(t,e);return i=>t===i||r(i)}return t instanceof RegExp?r=>t.test(r):r=>!1},eR=(t,e,r,i)=>{let n=Array.isArray(r),s=n?r[0]:r;if(!n&&typeof s!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(s));let a=ere(s,!1);for(let u=0;u{if(t==null)throw new TypeError("anymatch: specify first argument");let i=typeof r=="boolean"?{returnIndex:r}:r,n=i.returnIndex||!1,s=rre(t),a=s.filter(u=>typeof u=="string"&&u.charAt(0)===ZN).map(u=>u.slice(1)).map(u=>tR(u,i)),o=s.filter(u=>typeof u!="string"||typeof u=="string"&&u.charAt(0)!==ZN).map(u=>ire(u,i));return e==null?(u,c=!1)=>eR(o,a,u,typeof c=="boolean"?c:!1):eR(o,a,e,n)};zx.default=zx;iR.exports=zx});var aR=E((bFe,sR)=>{sR.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Kx=E((xFe,uR)=>{var nre=aR(),oR={"{":"}","(":")","[":"]"},sre=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,a=-2;ee&&(a===-1||a>i||(a=t.indexOf("\\",e),a===-1||a>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(a=t.indexOf("\\",e),a===-1||a>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(a=t.indexOf("\\",e),a===-1||a>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(rr&&(a=t.indexOf("\\",r),a===-1||a>s))))return!0;if(t[e]==="\\"){var o=t[e+1];e+=2;var u=oR[o];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},are=function(t){if(t[0]==="!")return!0;for(var e=0;e{"use strict";var ore=Kx(),ure=require("path").posix.dirname,cre=require("os").platform()==="win32",Wx="/",lre=/\\/g,pre=/[\{\[].*[\}\]]$/,fre=/(^|[^\\])([\{\[]|\([^\)]+$)/,dre=/\\([\!\*\?\|\[\]\(\)\{\}])/g;cR.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&cre&&e.indexOf(Wx)<0&&(e=e.replace(lre,Wx)),pre.test(e)&&(e+=Wx),e+="a";do e=ure(e);while(ore(e)||fre.test(e));return e.replace(dre,"$1")}});var qg=E(is=>{"use strict";is.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;is.find=(t,e)=>t.nodes.find(r=>r.type===e);is.exceedsLimit=(t,e,r=1,i)=>i===!1||!is.isInteger(t)||!is.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;is.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};is.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);is.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;is.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;is.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);is.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n{"use strict";var pR=qg();fR.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&pR.isInvalidBrace(n),a=i.invalid===!0&&e.escapeInvalid===!0,o="";if(i.value)return(s||a)&&pR.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let u of i.nodes)o+=r(u);return o};return r(t)}});var hR=E((SFe,dR)=>{"use strict";dR.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var CR=E((_Fe,ER)=>{"use strict";var mR=hR(),fc=(t,e,r)=>{if(mR(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(mR(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),a=String(i.capture),o=String(i.wrap),u=t+":"+e+"="+n+s+a+o;if(fc.cache.hasOwnProperty(u))return fc.cache[u].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let g=t+"|"+e;return i.capture?`(${g})`:i.wrap===!1?g:`(?:${g})`}let f=wR(t)||wR(e),d={min:t,max:e,a:c,b:l},h=[],m=[];if(f&&(d.isPadded=f,d.maxLen=String(d.max).length),c<0){let g=l<0?Math.abs(l):1;m=gR(g,Math.abs(c),d,i),c=d.a=0}return l>=0&&(h=gR(c,l,d,i)),d.negatives=m,d.positives=h,d.result=hre(m,h,i),i.capture===!0?d.result=`(${d.result})`:i.wrap!==!1&&h.length+m.length>1&&(d.result=`(?:${d.result})`),fc.cache[u]=d,d.result};function hre(t,e,r){let i=Yx(t,e,"-",!1,r)||[],n=Yx(e,t,"",!1,r)||[],s=Yx(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function mre(t,e){let r=1,i=1,n=yR(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=yR(t,r);for(n=bR(e+1,i)-1;t1&&o.count.pop(),o.count.push(l.count[0]),o.string=o.pattern+xR(o.count),a=c+1;continue}r.isPadded&&(f=xre(c,r,i)),l.string=f+l.pattern+xR(l.count),s.push(l),a=c+1,o=l}return s}function Yx(t,e,r,i,n){let s=[];for(let a of t){let{string:o}=a;!i&&!vR(e,"string",o)&&s.push(r+o),i&&vR(e,"string",o)&&s.push(r+o)}return s}function vre(t,e){let r=[];for(let i=0;ie?1:e>t?-1:0}function vR(t,e,r){return t.some(i=>i[e]===r)}function yR(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function bR(t,e){return t-t%Math.pow(10,e)}function xR(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function bre(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function wR(t){return/^-?(0+)\d/.test(t)}function xre(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}fc.cache={};fc.clearCache=()=>fc.cache={};ER.exports=fc});var Jx=E((AFe,NR)=>{"use strict";var wre=require("util"),AR=CR(),SR=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Ere=t=>e=>t===!0?Number(e):String(e),Xx=t=>typeof t=="number"||typeof t=="string"&&t!=="",rh=t=>Number.isInteger(+t),Qx=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},Cre=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,Sre=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},_R=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length{t.negatives.sort((a,o)=>ao?1:0),t.positives.sort((a,o)=>ao?1:0);let r=e.capture?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},TR=(t,e,r,i)=>{if(r)return AR(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},DR=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return AR(t,e,r)},kR=(...t)=>new RangeError("Invalid range arguments: "+wre.inspect(...t)),IR=(t,e,r)=>{if(r.strictRanges===!0)throw kR([t,e]);return[]},Are=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},Tre=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw kR([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let a=n>s,o=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=Qx(o)||Qx(u)||Qx(c),f=l?Math.max(o.length,u.length,c.length):0,d=l===!1&&Cre(t,e,i)===!1,h=i.transform||Ere(d);if(i.toRegex&&r===1)return TR(_R(t,f),_R(e,f),!0,i);let m={negatives:[],positives:[]},g=w=>m[w<0?"negatives":"positives"].push(Math.abs(w)),y=[],b=0;for(;a?n>=s:n<=s;)i.toRegex===!0&&r>1?g(n):y.push(Sre(h(n,b),f,d)),n=a?n-r:n+r,b++;return i.toRegex===!0?r>1?_re(m,i):DR(y,null,{wrap:!1,...i}):y},Dre=(t,e,r=1,i={})=>{if(!rh(t)&&t.length>1||!rh(e)&&e.length>1)return IR(t,e,i);let n=i.transform||(d=>String.fromCharCode(d)),s=`${t}`.charCodeAt(0),a=`${e}`.charCodeAt(0),o=s>a,u=Math.min(s,a),c=Math.max(s,a);if(i.toRegex&&r===1)return TR(u,c,!1,i);let l=[],f=0;for(;o?s>=a:s<=a;)l.push(n(s,f)),s=o?s-r:s+r,f++;return i.toRegex===!0?DR(l,null,{wrap:!1,options:i}):l},$g=(t,e,r,i={})=>{if(e==null&&Xx(t))return[t];if(!Xx(t)||!Xx(e))return IR(t,e,i);if(typeof r=="function")return $g(t,e,1,{transform:r});if(SR(r))return $g(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,rh(r)?rh(t)&&rh(e)?Tre(t,e,r,n):Dre(t,e,Math.max(Math.abs(r),1),n):r!=null&&!SR(r)?Are(r,n):$g(t,e,1,r)};NR.exports=$g});var PR=E((TFe,OR)=>{"use strict";var kre=Jx(),RR=qg(),Ire=(t,e={})=>{let r=(i,n={})=>{let s=RR.isInvalidBrace(n),a=i.invalid===!0&&e.escapeInvalid===!0,o=s===!0||a===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return u+i.value;if(i.type==="open")return o?u+i.value:"(";if(i.type==="close")return o?u+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":o?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let l=RR.reduce(i.nodes),f=kre(...l,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(i.nodes)for(let l of i.nodes)c+=r(l,i);return c};return r(t)};OR.exports=Ire});var qR=E((DFe,BR)=>{"use strict";var Nre=Jx(),LR=Fg(),op=qg(),dc=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?op.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(dc(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?dc(n,s,r):n+s);return op.flatten(i)},Rre=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let a=s,o=s.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,o=a.queue;if(n.invalid||n.dollar){o.push(dc(o.pop(),LR(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){o.push(dc(o.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=op.reduce(n.nodes);if(op.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=Nre(...f,e);d.length===0&&(d=LR(n,e)),o.push(dc(o.pop(),d)),n.nodes=[];return}let u=op.encloseBrace(n),c=n.queue,l=n;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f{"use strict";FR.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:` +`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var HR=E((IFe,VR)=>{"use strict";var Ore=Fg(),{MAX_LENGTH:MR,CHAR_BACKSLASH:Zx,CHAR_BACKTICK:Pre,CHAR_COMMA:Lre,CHAR_DOT:Bre,CHAR_LEFT_PARENTHESES:qre,CHAR_RIGHT_PARENTHESES:Fre,CHAR_LEFT_CURLY_BRACE:$re,CHAR_RIGHT_CURLY_BRACE:Mre,CHAR_LEFT_SQUARE_BRACKET:jR,CHAR_RIGHT_SQUARE_BRACKET:UR,CHAR_DOUBLE_QUOTE:jre,CHAR_SINGLE_QUOTE:Ure,CHAR_NO_BREAK_SPACE:Vre,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Hre}=$R(),Gre=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(MR,r.maxLength):MR;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],a=n,o=n,u=0,c=t.length,l=0,f=0,d,h={},m=()=>t[l++],g=y=>{if(y.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&y.type==="text"){o.value+=y.value;return}return a.nodes.push(y),y.parent=a,y.prev=o,o=y,y};for(g({type:"bos"});l0){if(a.ranges>0){a.ranges=0;let y=a.nodes.shift();a.nodes=[y,{type:"text",value:Ore(a)}]}g({type:"comma",value:d}),a.commas++;continue}if(d===Bre&&f>0&&a.commas===0){let y=a.nodes;if(f===0||y.length===0){g({type:"text",value:d});continue}if(o.type==="dot"){if(a.range=[],o.value+=d,o.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,o.type="text";continue}a.ranges++,a.args=[];continue}if(o.type==="range"){y.pop();let b=y[y.length-1];b.value+=o.value+d,o=b,a.ranges--;continue}g({type:"dot",value:d});continue}g({type:"text",value:d})}do if(a=s.pop(),a.type!=="root"){a.nodes.forEach(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let y=s[s.length-1],b=y.nodes.indexOf(a);y.nodes.splice(b,1,...a.nodes)}while(s.length>0);return g({type:"eos"}),n};VR.exports=Gre});var KR=E((NFe,zR)=>{"use strict";var GR=Fg(),zre=PR(),Kre=qR(),Wre=HR(),qn=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=qn.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(qn.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};qn.parse=(t,e={})=>Wre(t,e);qn.stringify=(t,e={})=>GR(typeof t=="string"?qn.parse(t,e):t,e);qn.compile=(t,e={})=>(typeof t=="string"&&(t=qn.parse(t,e)),zre(t,e));qn.expand=(t,e={})=>{typeof t=="string"&&(t=qn.parse(t,e));let r=Kre(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};qn.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?qn.compile(t,e):qn.expand(t,e);zR.exports=qn});var WR=E((RFe,Yre)=>{Yre.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var XR=E((OFe,YR)=>{YR.exports=WR()});var JR=E((PFe,QR)=>{"use strict";var Xre=require("path"),Qre=XR(),Jre=new Set(Qre);QR.exports=t=>Jre.has(Xre.extname(t).slice(1).toLowerCase())});var Mg=E(Le=>{"use strict";var{sep:Zre}=require("path"),{platform:ew}=process,eie=require("os");Le.EV_ALL="all";Le.EV_READY="ready";Le.EV_ADD="add";Le.EV_CHANGE="change";Le.EV_ADD_DIR="addDir";Le.EV_UNLINK="unlink";Le.EV_UNLINK_DIR="unlinkDir";Le.EV_RAW="raw";Le.EV_ERROR="error";Le.STR_DATA="data";Le.STR_END="end";Le.STR_CLOSE="close";Le.FSEVENT_CREATED="created";Le.FSEVENT_MODIFIED="modified";Le.FSEVENT_DELETED="deleted";Le.FSEVENT_MOVED="moved";Le.FSEVENT_CLONED="cloned";Le.FSEVENT_UNKNOWN="unknown";Le.FSEVENT_TYPE_FILE="file";Le.FSEVENT_TYPE_DIRECTORY="directory";Le.FSEVENT_TYPE_SYMLINK="symlink";Le.KEY_LISTENERS="listeners";Le.KEY_ERR="errHandlers";Le.KEY_RAW="rawEmitters";Le.HANDLER_KEYS=[Le.KEY_LISTENERS,Le.KEY_ERR,Le.KEY_RAW];Le.DOT_SLASH=`.${Zre}`;Le.BACK_SLASH_RE=/\\/g;Le.DOUBLE_SLASH_RE=/\/\//;Le.SLASH_OR_BACK_SLASH_RE=/[/\\]/;Le.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;Le.REPLACER_RE=/^\.[/\\]/;Le.SLASH="/";Le.SLASH_SLASH="//";Le.BRACE_START="{";Le.BANG="!";Le.ONE_DOT=".";Le.TWO_DOTS="..";Le.STAR="*";Le.GLOBSTAR="**";Le.ROOT_GLOBSTAR="/**/*";Le.SLASH_GLOBSTAR="/**";Le.DIR_SUFFIX="Dir";Le.ANYMATCH_OPTS={dot:!0};Le.STRING_TYPE="string";Le.FUNCTION_TYPE="function";Le.EMPTY_STR="";Le.EMPTY_FN=()=>{};Le.IDENTITY_FN=t=>t;Le.isWindows=ew==="win32";Le.isMacos=ew==="darwin";Le.isLinux=ew==="linux";Le.isIBMi=eie.type()==="OS400"});var nO=E((BFe,iO)=>{"use strict";var ro=require("fs"),ri=require("path"),{promisify:ah}=require("util"),tie=JR(),{isWindows:rie,isLinux:iie,EMPTY_FN:nie,EMPTY_STR:sie,KEY_LISTENERS:up,KEY_ERR:tw,KEY_RAW:ih,HANDLER_KEYS:aie,EV_CHANGE:Ug,EV_ADD:jg,EV_ADD_DIR:oie,EV_ERROR:eO,STR_DATA:uie,STR_END:cie,BRACE_START:lie,STAR:pie}=Mg(),fie="watch",die=ah(ro.open),tO=ah(ro.stat),hie=ah(ro.lstat),mie=ah(ro.close),rw=ah(ro.realpath),gie={lstat:hie,stat:tO},nw=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},nh=(t,e,r)=>{let i=t[e];i instanceof Set||(t[e]=i=new Set([i])),i.add(r)},vie=t=>e=>{let r=t[e];r instanceof Set?r.clear():delete t[e]},sh=(t,e,r)=>{let i=t[e];i instanceof Set?i.delete(r):i===r&&delete t[e]},rO=t=>t instanceof Set?t.size===0:!t,Vg=new Map;function ZR(t,e,r,i,n){let s=(a,o)=>{r(t),n(a,o,{watchedPath:t}),o&&t!==o&&Hg(ri.resolve(t,o),up,ri.join(t,o))};try{return ro.watch(t,e,s)}catch(a){i(a)}}var Hg=(t,e,r,i,n)=>{let s=Vg.get(t);s&&nw(s[e],a=>{a(r,i,n)})},yie=(t,e,r,i)=>{let{listener:n,errHandler:s,rawEmitter:a}=i,o=Vg.get(e),u;if(!r.persistent)return u=ZR(t,r,n,s,a),u.close.bind(u);if(o)nh(o,up,n),nh(o,tw,s),nh(o,ih,a);else{if(u=ZR(t,r,Hg.bind(null,e,up),s,Hg.bind(null,e,ih)),!u)return;u.on(eO,async c=>{let l=Hg.bind(null,e,tw);if(o.watcherUnusable=!0,rie&&c.code==="EPERM")try{let f=await die(t,"r");await mie(f),l(c)}catch{}else l(c)}),o={listeners:n,errHandlers:s,rawEmitters:a,watcher:u},Vg.set(e,o)}return()=>{sh(o,up,n),sh(o,tw,s),sh(o,ih,a),rO(o.listeners)&&(o.watcher.close(),Vg.delete(e),aie.forEach(vie(o)),o.watcher=void 0,Object.freeze(o))}},iw=new Map,bie=(t,e,r,i)=>{let{listener:n,rawEmitter:s}=i,a=iw.get(e),o=new Set,u=new Set,c=a&&a.options;return c&&(c.persistentr.interval)&&(o=a.listeners,u=a.rawEmitters,ro.unwatchFile(e),a=void 0),a?(nh(a,up,n),nh(a,ih,s)):(a={listeners:n,rawEmitters:s,options:r,watcher:ro.watchFile(e,r,(l,f)=>{nw(a.rawEmitters,h=>{h(Ug,e,{curr:l,prev:f})});let d=l.mtimeMs;(l.size!==f.size||d>f.mtimeMs||d===0)&&nw(a.listeners,h=>h(t,l))})},iw.set(e,a)),()=>{sh(a,up,n),sh(a,ih,s),rO(a.listeners)&&(iw.delete(e),ro.unwatchFile(e),a.options=a.watcher=void 0,Object.freeze(a))}},sw=class{constructor(e){this.fsw=e,this._boundHandleError=r=>e._handleError(r)}_watchWithNodeFs(e,r){let i=this.fsw.options,n=ri.dirname(e),s=ri.basename(e);this.fsw._getWatchedDir(n).add(s);let o=ri.resolve(e),u={persistent:i.persistent};r||(r=nie);let c;return i.usePolling?(u.interval=i.enableBinaryInterval&&tie(s)?i.binaryInterval:i.interval,c=bie(e,o,u,{listener:r,rawEmitter:this.fsw._emitRaw})):c=yie(e,o,u,{listener:r,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),c}_handleFile(e,r,i){if(this.fsw.closed)return;let n=ri.dirname(e),s=ri.basename(e),a=this.fsw._getWatchedDir(n),o=r;if(a.has(s))return;let u=async(l,f)=>{if(this.fsw._throttle(fie,e,5)){if(!f||f.mtimeMs===0)try{let d=await tO(e);if(this.fsw.closed)return;let h=d.atimeMs,m=d.mtimeMs;(!h||h<=m||m!==o.mtimeMs)&&this.fsw._emit(Ug,e,d),iie&&o.ino!==d.ino?(this.fsw._closeFile(l),o=d,this.fsw._addPathCloser(l,this._watchWithNodeFs(e,u))):o=d}catch{this.fsw._remove(n,s)}else if(a.has(s)){let d=f.atimeMs,h=f.mtimeMs;(!d||d<=h||h!==o.mtimeMs)&&this.fsw._emit(Ug,e,f),o=f}}},c=this._watchWithNodeFs(e,u);if(!(i&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(jg,e,0))return;this.fsw._emit(jg,e,r)}return c}async _handleSymlink(e,r,i,n){if(this.fsw.closed)return;let s=e.fullPath,a=this.fsw._getWatchedDir(r);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o;try{o=await rw(i)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(a.has(n)?this.fsw._symlinkPaths.get(s)!==o&&(this.fsw._symlinkPaths.set(s,o),this.fsw._emit(Ug,i,e.stats)):(a.add(n),this.fsw._symlinkPaths.set(s,o),this.fsw._emit(jg,i,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(e,r,i,n,s,a,o){if(e=ri.join(e,sie),!i.hasGlob&&(o=this.fsw._throttle("readdir",e,1e3),!o))return;let u=this.fsw._getWatchedDir(i.path),c=new Set,l=this.fsw._readdirp(e,{fileFilter:f=>i.filterPath(f),directoryFilter:f=>i.filterDir(f),depth:0}).on(uie,async f=>{if(this.fsw.closed){l=void 0;return}let d=f.path,h=ri.join(e,d);if(c.add(d),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,h,d))){if(this.fsw.closed){l=void 0;return}(d===n||!n&&!u.has(d))&&(this.fsw._incrReadyCount(),h=ri.join(s,ri.relative(s,h)),this._addToNodeFs(h,r,i,a+1))}}).on(eO,this._boundHandleError);return new Promise(f=>l.once(cie,()=>{if(this.fsw.closed){l=void 0;return}let d=o?o.clear():!1;f(),u.getChildren().filter(h=>h!==e&&!c.has(h)&&(!i.hasGlob||i.filterPath({fullPath:ri.resolve(e,h)}))).forEach(h=>{this.fsw._remove(e,h)}),l=void 0,d&&this._handleRead(e,!1,i,n,s,a,o)}))}async _handleDir(e,r,i,n,s,a,o){let u=this.fsw._getWatchedDir(ri.dirname(e)),c=u.has(ri.basename(e));!(i&&this.fsw.options.ignoreInitial)&&!s&&!c&&(!a.hasGlob||a.globFilter(e))&&this.fsw._emit(oie,e,r),u.add(ri.basename(e)),this.fsw._getWatchedDir(e);let l,f,d=this.fsw.options.depth;if((d==null||n<=d)&&!this.fsw._symlinkPaths.has(o)){if(!s&&(await this._handleRead(e,i,a,s,e,n,l),this.fsw.closed))return;f=this._watchWithNodeFs(e,(h,m)=>{m&&m.mtimeMs===0||this._handleRead(h,!1,a,s,e,n,l)})}return f}async _addToNodeFs(e,r,i,n,s){let a=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return a(),!1;let o=this.fsw._getWatchHelpers(e,n);!o.hasGlob&&i&&(o.hasGlob=i.hasGlob,o.globFilter=i.globFilter,o.filterPath=u=>i.filterPath(u),o.filterDir=u=>i.filterDir(u));try{let u=await gie[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,u))return a(),!1;let c=this.fsw.options.followSymlinks&&!e.includes(pie)&&!e.includes(lie),l;if(u.isDirectory()){let f=ri.resolve(e),d=c?await rw(e):e;if(this.fsw.closed||(l=await this._handleDir(o.watchPath,u,r,n,s,o,d),this.fsw.closed))return;f!==d&&d!==void 0&&this.fsw._symlinkPaths.set(f,d)}else if(u.isSymbolicLink()){let f=c?await rw(e):e;if(this.fsw.closed)return;let d=ri.dirname(o.watchPath);if(this.fsw._getWatchedDir(d).add(o.watchPath),this.fsw._emit(jg,o.watchPath,u),l=await this._handleDir(d,u,r,n,e,o,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(ri.resolve(e),f)}else l=this._handleFile(o.watchPath,u,r);return a(),this.fsw._addPathCloser(e,l),!1}catch(u){if(this.fsw._handleError(u))return a(),e}}};iO.exports=sw});var pO=E((qFe,dw)=>{"use strict";var pw=require("fs"),ii=require("path"),{promisify:fw}=require("util"),cp;try{cp=require("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(cp){let t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){let e=Number.parseInt(t[1],10),r=Number.parseInt(t[2],10);e===8&&r<16&&(cp=void 0)}}var{EV_ADD:aw,EV_CHANGE:xie,EV_ADD_DIR:sO,EV_UNLINK:Gg,EV_ERROR:wie,STR_DATA:Eie,STR_END:Cie,FSEVENT_CREATED:Sie,FSEVENT_MODIFIED:_ie,FSEVENT_DELETED:Aie,FSEVENT_MOVED:Tie,FSEVENT_UNKNOWN:Die,FSEVENT_TYPE_FILE:kie,FSEVENT_TYPE_DIRECTORY:oh,FSEVENT_TYPE_SYMLINK:lO,ROOT_GLOBSTAR:aO,DIR_SUFFIX:Iie,DOT_SLASH:oO,FUNCTION_TYPE:ow,EMPTY_FN:Nie,IDENTITY_FN:Rie}=Mg(),Oie=t=>isNaN(t)?{}:{depth:t},cw=fw(pw.stat),Pie=fw(pw.lstat),uO=fw(pw.realpath),Lie={stat:cw,lstat:Pie},hc=new Map,Bie=10,qie=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Fie=(t,e)=>({stop:cp.watch(t,e)});function $ie(t,e,r,i){let n=ii.extname(e)?ii.dirname(e):e,s=ii.dirname(n),a=hc.get(n);Mie(s)&&(n=s);let o=ii.resolve(t),u=o!==e,c=(f,d,h)=>{u&&(f=f.replace(e,o)),(f===o||!f.indexOf(o+ii.sep))&&r(f,d,h)},l=!1;for(let f of hc.keys())if(e.indexOf(ii.resolve(f)+ii.sep)===0){n=f,a=hc.get(n),l=!0;break}return a||l?a.listeners.add(c):(a={listeners:new Set([c]),rawEmitter:i,watcher:Fie(n,(f,d)=>{if(!a.listeners.size)return;let h=cp.getInfo(f,d);a.listeners.forEach(m=>{m(f,d,h)}),a.rawEmitter(h.event,f,h)})},hc.set(n,a)),()=>{let f=a.listeners;if(f.delete(c),!f.size&&(hc.delete(n),a.watcher))return a.watcher.stop().then(()=>{a.rawEmitter=a.watcher=void 0,Object.freeze(a)})}}var Mie=t=>{let e=0;for(let r of hc.keys())if(r.indexOf(t)===0&&(e++,e>=Bie))return!0;return!1},jie=()=>cp&&hc.size<128,uw=(t,e)=>{let r=0;for(;!t.indexOf(e)&&(t=ii.dirname(t))!==e;)r++;return r},cO=(t,e)=>t.type===oh&&e.isDirectory()||t.type===lO&&e.isSymbolicLink()||t.type===kie&&e.isFile(),lw=class{constructor(e){this.fsw=e}checkIgnored(e,r){let i=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,r))return i.add(e),r&&r.isDirectory()&&i.add(e+aO),!0;i.delete(e),i.delete(e+aO)}addOrChange(e,r,i,n,s,a,o,u){let c=s.has(a)?xie:aw;this.handleEvent(c,e,r,i,n,s,a,o,u)}async checkExists(e,r,i,n,s,a,o,u){try{let c=await cw(e);if(this.fsw.closed)return;cO(o,c)?this.addOrChange(e,r,i,n,s,a,o,u):this.handleEvent(Gg,e,r,i,n,s,a,o,u)}catch(c){c.code==="EACCES"?this.addOrChange(e,r,i,n,s,a,o,u):this.handleEvent(Gg,e,r,i,n,s,a,o,u)}}handleEvent(e,r,i,n,s,a,o,u,c){if(!(this.fsw.closed||this.checkIgnored(r)))if(e===Gg){let l=u.type===oh;(l||a.has(o))&&this.fsw._remove(s,o,l)}else{if(e===aw){if(u.type===oh&&this.fsw._getWatchedDir(r),u.type===lO&&c.followSymlinks){let f=c.depth===void 0?void 0:uw(i,n)+1;return this._addToFsEvents(r,!1,!0,f)}this.fsw._getWatchedDir(s).add(o)}let l=u.type===oh?e+Iie:e;this.fsw._emit(l,r),l===sO&&this._addToFsEvents(r,!1,!0)}}_watchWithFsEvents(e,r,i,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;let s=this.fsw.options,o=$ie(e,r,async(u,c,l)=>{if(this.fsw.closed||s.depth!==void 0&&uw(u,r)>s.depth)return;let f=i(ii.join(e,ii.relative(e,u)));if(n&&!n(f))return;let d=ii.dirname(f),h=ii.basename(f),m=this.fsw._getWatchedDir(l.type===oh?f:d);if(qie.has(c)||l.event===Die)if(typeof s.ignored===ow){let g;try{g=await cw(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,g))return;cO(l,g)?this.addOrChange(f,u,r,d,m,h,l,s):this.handleEvent(Gg,f,u,r,d,m,h,l,s)}else this.checkExists(f,u,r,d,m,h,l,s);else switch(l.event){case Sie:case _ie:return this.addOrChange(f,u,r,d,m,h,l,s);case Aie:case Tie:return this.checkExists(f,u,r,d,m,h,l,s)}},this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,r,i,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(r))){this.fsw._symlinkPaths.set(r,!0),this.fsw._incrReadyCount();try{let s=await uO(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||e,a=>{let o=e;return s&&s!==oO?o=a.replace(s,e):a!==oO&&(o=ii.join(e,a)),i(o)},!1,n)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,r,i,n,s){let a=i(e),o=r.isDirectory(),u=this.fsw._getWatchedDir(ii.dirname(a)),c=ii.basename(a);o&&this.fsw._getWatchedDir(a),!u.has(c)&&(u.add(c),(!n.ignoreInitial||s===!0)&&this.fsw._emit(o?sO:aw,a,r))}initWatch(e,r,i,n){if(this.fsw.closed)return;let s=this._watchWithFsEvents(i.watchPath,ii.resolve(e||i.watchPath),n,i.globFilter);this.fsw._addPathCloser(r,s)}async _addToFsEvents(e,r,i,n){if(this.fsw.closed)return;let s=this.fsw.options,a=typeof r===ow?r:Rie,o=this.fsw._getWatchHelpers(e);try{let u=await Lie[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,u))throw null;if(u.isDirectory()){if(o.globFilter||this.emitAdd(a(e),u,a,s,i),n&&n>s.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:c=>o.filterPath(c),directoryFilter:c=>o.filterDir(c),...Oie(s.depth-(n||0))}).on(Eie,c=>{if(this.fsw.closed||c.stats.isDirectory()&&!o.filterPath(c))return;let l=ii.join(o.watchPath,c.path),{fullPath:f}=c;if(o.followSymlinks&&c.stats.isSymbolicLink()){let d=s.depth===void 0?void 0:uw(l,ii.resolve(o.watchPath))+1;this._handleFsEventsSymlink(l,f,a,d)}else this.emitAdd(l,c.stats,a,s,i)}).on(wie,Nie).on(Cie,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,u,a,s,i),this.fsw._emitReady()}catch(u){(!u||this.fsw._handleError(u))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&i!==!0)if(typeof r===ow)this.initWatch(void 0,e,o,a);else{let u;try{u=await uO(o.watchPath)}catch{}this.initWatch(u,e,o,a)}}};dw.exports=lw;dw.exports.canUse=jie});var EO=E(Dw=>{"use strict";var{EventEmitter:Uie}=require("events"),Aw=require("fs"),Ht=require("path"),{promisify:yO}=require("util"),Vie=QN(),bw=nR().default,Hie=lR(),hw=Kx(),Gie=KR(),zie=Gx(),Kie=nO(),fO=pO(),{EV_ALL:mw,EV_READY:Wie,EV_ADD:zg,EV_CHANGE:uh,EV_UNLINK:dO,EV_ADD_DIR:Yie,EV_UNLINK_DIR:Xie,EV_RAW:Qie,EV_ERROR:gw,STR_CLOSE:Jie,STR_END:Zie,BACK_SLASH_RE:ene,DOUBLE_SLASH_RE:hO,SLASH_OR_BACK_SLASH_RE:tne,DOT_RE:rne,REPLACER_RE:ine,SLASH:vw,SLASH_SLASH:nne,BRACE_START:sne,BANG:xw,ONE_DOT:bO,TWO_DOTS:ane,GLOBSTAR:one,SLASH_GLOBSTAR:yw,ANYMATCH_OPTS:ww,STRING_TYPE:Tw,FUNCTION_TYPE:une,EMPTY_STR:Ew,EMPTY_FN:cne,isWindows:lne,isMacos:pne,isIBMi:fne}=Mg(),dne=yO(Aw.stat),hne=yO(Aw.readdir),Cw=(t=[])=>Array.isArray(t)?t:[t],xO=(t,e=[])=>(t.forEach(r=>{Array.isArray(r)?xO(r,e):e.push(r)}),e),mO=t=>{let e=xO(Cw(t));if(!e.every(r=>typeof r===Tw))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(wO)},gO=t=>{let e=t.replace(ene,vw),r=!1;for(e.startsWith(nne)&&(r=!0);e.match(hO);)e=e.replace(hO,vw);return r&&(e=vw+e),e},wO=t=>gO(Ht.normalize(gO(t))),vO=(t=Ew)=>e=>typeof e!==Tw?e:wO(Ht.isAbsolute(e)?e:Ht.join(t,e)),mne=(t,e)=>Ht.isAbsolute(t)?t:t.startsWith(xw)?xw+Ht.join(e,t.slice(1)):Ht.join(e,t),ks=(t,e)=>t[e]===void 0,Sw=class{constructor(e,r){this.path=e,this._removeWatcher=r,this.items=new Set}add(e){let{items:r}=this;r&&e!==bO&&e!==ane&&r.add(e)}async remove(e){let{items:r}=this;if(!r||(r.delete(e),r.size>0))return;let i=this.path;try{await hne(i)}catch{this._removeWatcher&&this._removeWatcher(Ht.dirname(i),Ht.basename(i))}}has(e){let{items:r}=this;if(r)return r.has(e)}getChildren(){let{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},gne="stat",vne="lstat",_w=class{constructor(e,r,i,n){this.fsw=n,this.path=e=e.replace(ine,Ew),this.watchPath=r,this.fullWatchPath=Ht.resolve(r),this.hasGlob=r!==e,e===Ew&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&i?void 0:!1,this.globFilter=this.hasGlob?bw(e,void 0,ww):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=i,this.statMethod=i?gne:vne}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return Ht.join(this.watchPath,Ht.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){let{stats:r}=e;if(r&&r.isSymbolicLink())return this.filterDir(e);let i=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===une?this.globFilter(i):!0)&&this.fsw._isntIgnored(i,r)&&this.fsw._hasReadPermissions(r)}getDirParts(e){if(!this.hasGlob)return[];let r=[];return(e.includes(sne)?Gie.expand(e):[e]).forEach(n=>{r.push(Ht.relative(this.watchPath,n).split(tne))}),r}filterDir(e){if(this.hasGlob){let r=this.getDirParts(this.checkGlobSymlink(e)),i=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((s,a)=>(s===one&&(i=!0),i||!r[0][a]||bw(s,r[0][a],ww))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},Kg=class extends Uie{constructor(e){super();let r={};e&&Object.assign(r,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,ks(r,"persistent")&&(r.persistent=!0),ks(r,"ignoreInitial")&&(r.ignoreInitial=!1),ks(r,"ignorePermissionErrors")&&(r.ignorePermissionErrors=!1),ks(r,"interval")&&(r.interval=100),ks(r,"binaryInterval")&&(r.binaryInterval=300),ks(r,"disableGlobbing")&&(r.disableGlobbing=!1),r.enableBinaryInterval=r.binaryInterval!==r.interval,ks(r,"useFsEvents")&&(r.useFsEvents=!r.usePolling),fO.canUse()||(r.useFsEvents=!1),ks(r,"usePolling")&&!r.useFsEvents&&(r.usePolling=pne),fne&&(r.usePolling=!0);let n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){let u=n.toLowerCase();u==="false"||u==="0"?r.usePolling=!1:u==="true"||u==="1"?r.usePolling=!0:r.usePolling=!!u}let s=process.env.CHOKIDAR_INTERVAL;s&&(r.interval=Number.parseInt(s,10)),ks(r,"atomic")&&(r.atomic=!r.usePolling&&!r.useFsEvents),r.atomic&&(this._pendingUnlinks=new Map),ks(r,"followSymlinks")&&(r.followSymlinks=!0),ks(r,"awaitWriteFinish")&&(r.awaitWriteFinish=!1),r.awaitWriteFinish===!0&&(r.awaitWriteFinish={});let a=r.awaitWriteFinish;a&&(a.stabilityThreshold||(a.stabilityThreshold=2e3),a.pollInterval||(a.pollInterval=100),this._pendingWrites=new Map),r.ignored&&(r.ignored=Cw(r.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=cne,this._readyEmitted=!0,process.nextTick(()=>this.emit(Wie)))},this._emitRaw=(...u)=>this.emit(Qie,...u),this._readyEmitted=!1,this.options=r,r.useFsEvents?this._fsEventsHandler=new fO(this):this._nodeFsHandler=new Kie(this),Object.freeze(r)}add(e,r,i){let{cwd:n,disableGlobbing:s}=this.options;this.closed=!1;let a=mO(e);return n&&(a=a.map(o=>{let u=mne(o,n);return s||!hw(o)?u:zie(u)})),a=a.filter(o=>o.startsWith(xw)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+yw),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=a.length),this.options.persistent&&(this._readyCount*=2),a.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=a.length,Promise.all(a.map(async o=>{let u=await this._nodeFsHandler._addToNodeFs(o,!i,0,0,r);return u&&this._emitReady(),u})).then(o=>{this.closed||o.filter(u=>u).forEach(u=>{this.add(Ht.dirname(u),Ht.basename(r||u))})})),this}unwatch(e){if(this.closed)return this;let r=mO(e),{cwd:i}=this.options;return r.forEach(n=>{!Ht.isAbsolute(n)&&!this._closers.has(n)&&(i&&(n=Ht.join(i,n)),n=Ht.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+yw),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(r=>r.forEach(i=>{let n=i();n instanceof Promise&&e.push(n)})),this._streams.forEach(r=>r.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(r=>r.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(r=>{this[`_${r}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((r,i)=>{let n=this.options.cwd?Ht.relative(this.options.cwd,i):i;e[n||bO]=r.getChildren().sort()}),e}emitWithAll(e,r){this.emit(...r),e!==gw&&this.emit(mw,...r)}async _emit(e,r,i,n,s){if(this.closed)return;let a=this.options;lne&&(r=Ht.normalize(r)),a.cwd&&(r=Ht.relative(a.cwd,r));let o=[e,r];s!==void 0?o.push(i,n,s):n!==void 0?o.push(i,n):i!==void 0&&o.push(i);let u=a.awaitWriteFinish,c;if(u&&(c=this._pendingWrites.get(r)))return c.lastChange=new Date,this;if(a.atomic){if(e===dO)return this._pendingUnlinks.set(r,o),setTimeout(()=>{this._pendingUnlinks.forEach((l,f)=>{this.emit(...l),this.emit(mw,...l),this._pendingUnlinks.delete(f)})},typeof a.atomic=="number"?a.atomic:100),this;e===zg&&this._pendingUnlinks.has(r)&&(e=o[0]=uh,this._pendingUnlinks.delete(r))}if(u&&(e===zg||e===uh)&&this._readyEmitted){let l=(f,d)=>{f?(e=o[0]=gw,o[1]=f,this.emitWithAll(e,o)):d&&(o.length>2?o[2]=d:o.push(d),this.emitWithAll(e,o))};return this._awaitWriteFinish(r,u.stabilityThreshold,e,l),this}if(e===uh&&!this._throttle(uh,r,50))return this;if(a.alwaysStat&&i===void 0&&(e===zg||e===Yie||e===uh)){let l=a.cwd?Ht.join(a.cwd,r):r,f;try{f=await dne(l)}catch{}if(!f||this.closed)return;o.push(f)}return this.emitWithAll(e,o),this}_handleError(e){let r=e&&e.code;return e&&r!=="ENOENT"&&r!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||r!=="EPERM"&&r!=="EACCES")&&this.emit(gw,e),e||this.closed}_throttle(e,r,i){this._throttled.has(e)||this._throttled.set(e,new Map);let n=this._throttled.get(e),s=n.get(r);if(s)return s.count++,!1;let a,o=()=>{let c=n.get(r),l=c?c.count:0;return n.delete(r),clearTimeout(a),c&&clearTimeout(c.timeoutObject),l};a=setTimeout(o,i);let u={timeoutObject:a,clear:o,count:0};return n.set(r,u),u}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,r,i,n){let s,a=e;this.options.cwd&&!Ht.isAbsolute(e)&&(a=Ht.join(this.options.cwd,e));let o=new Date,u=c=>{Aw.stat(a,(l,f)=>{if(l||!this._pendingWrites.has(e)){l&&l.code!=="ENOENT"&&n(l);return}let d=Number(new Date);c&&f.size!==c.size&&(this._pendingWrites.get(e).lastChange=d);let h=this._pendingWrites.get(e);d-h.lastChange>=r?(this._pendingWrites.delete(e),n(void 0,f)):s=setTimeout(u,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(s),i)}),s=setTimeout(u,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,r){if(this.options.atomic&&rne.test(e))return!0;if(!this._userIgnored){let{cwd:i}=this.options,n=this.options.ignored,s=n&&n.map(vO(i)),a=Cw(s).filter(u=>typeof u===Tw&&!hw(u)).map(u=>u+yw),o=this._getGlobIgnored().map(vO(i)).concat(s,a);this._userIgnored=bw(o,void 0,ww)}return this._userIgnored([e,r])}_isntIgnored(e,r){return!this._isIgnored(e,r)}_getWatchHelpers(e,r){let i=r||this.options.disableGlobbing||!hw(e)?e:Hie(e),n=this.options.followSymlinks;return new _w(e,i,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));let r=Ht.resolve(e);return this._watched.has(r)||this._watched.set(r,new Sw(r,this._boundRemove)),this._watched.get(r)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;let i=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(i.toString(8)[0],10))}_remove(e,r,i){let n=Ht.join(e,r),s=Ht.resolve(n);if(i=i??(this._watched.has(n)||this._watched.has(s)),!this._throttle("remove",n,100))return;!i&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,r,!0),this._getWatchedDir(n).getChildren().forEach(d=>this._remove(n,d));let u=this._getWatchedDir(e),c=u.has(r);u.remove(r),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let l=n;if(this.options.cwd&&(l=Ht.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(l)&&this._pendingWrites.get(l).cancelWait()===zg)return;this._watched.delete(n),this._watched.delete(s);let f=i?Xie:dO;c&&!this._isIgnored(n)&&this._emit(f,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);let r=Ht.dirname(e);this._getWatchedDir(r).remove(Ht.basename(e))}_closeFile(e){let r=this._closers.get(e);r&&(r.forEach(i=>i()),this._closers.delete(e))}_addPathCloser(e,r){if(!r)return;let i=this._closers.get(e);i||(i=[],this._closers.set(e,i)),i.push(r)}_readdirp(e,r){if(this.closed)return;let i={type:mw,alwaysStat:!0,lstat:!0,...r},n=Vie(e,i);return this._streams.add(n),n.once(Jie,()=>{n=void 0}),n.once(Zie,()=>{n&&(this._streams.delete(n),n=void 0)}),n}};Dw.FSWatcher=Kg;var yne=(t,e)=>{let r=new Kg(e);return r.add(t),r};Dw.watch=yne});var Wg=E(($Fe,_O)=>{"use strict";_O.exports=wne;var bne=require("crypto"),CO=require("fs").Stats,SO=Object.prototype.toString;function xne(t){if(t.length===0)return'"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"';var e=bne.createHash("sha1").update(t,"utf8").digest("base64").substring(0,27),r=typeof t=="string"?Buffer.byteLength(t,"utf8"):t.length;return'"'+r.toString(16)+"-"+e+'"'}function wne(t,e){if(t==null)throw new TypeError("argument entity is required");var r=Ene(t),i=e&&typeof e.weak=="boolean"?e.weak:r;if(!r&&typeof t!="string"&&!Buffer.isBuffer(t))throw new TypeError("argument entity must be string, Buffer, or fs.Stats");var n=r?Cne(t):xne(t);return i?"W/"+n:n}function Ene(t){return typeof CO=="function"&&t instanceof CO?!0:t&&typeof t=="object"&&"ctime"in t&&SO.call(t.ctime)==="[object Date]"&&"mtime"in t&&SO.call(t.mtime)==="[object Date]"&&"ino"in t&&typeof t.ino=="number"&&"size"in t&&typeof t.size=="number"}function Cne(t){var e=t.mtime.getTime().toString(16),r=t.size.toString(16);return'"'+r+"-"+e+'"'}});var kO=E(kw=>{"use strict";var AO=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Sne=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,TO=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,_ne=/\\([\u000b\u0020-\u00ff])/g,Ane=/([\\"])/g,DO=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;kw.format=Tne;kw.parse=Dne;function Tne(t){if(!t||typeof t!="object")throw new TypeError("argument obj is required");var e=t.parameters,r=t.type;if(!r||!DO.test(r))throw new TypeError("invalid type");var i=r;if(e&&typeof e=="object")for(var n,s=Object.keys(e).sort(),a=0;a0&&!Sne.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(Ane,"\\$1")+'"'}function Nne(t){this.parameters=Object.create(null),this.type=t}});var NO=E((jFe,IO)=>{"use strict";IO.exports=One;function Rne(t){var e,r="";if(t.isNative()?r="native":t.isEval()?(e=t.getScriptNameOrSourceURL(),e||(r=t.getEvalOrigin())):e=t.getFileName(),e){r+=e;var i=t.getLineNumber();if(i!=null){r+=":"+i;var n=t.getColumnNumber();n&&(r+=":"+n)}}return r||"unknown source"}function One(t){var e=!0,r=Rne(t),i=t.getFunctionName(),n=t.isConstructor(),s=!(t.isToplevel()||n),a="";if(s){var o=t.getMethodName(),u=Pne(t);i?(u&&i.indexOf(u)!==0&&(a+=u+"."),a+=i,o&&i.lastIndexOf("."+o)!==i.length-o.length-1&&(a+=" [as "+o+"]")):a+=u+"."+(o||"")}else n?a+="new "+(i||""):i?a+=i:(e=!1,a+=r);return e&&(a+=" ("+r+")"),a}function Pne(t){var e=t.receiver;return e.constructor&&e.constructor.name||null}});var OO=E((UFe,RO)=>{"use strict";RO.exports=Lne;function Lne(t,e){return t.listeners(e).length}});var Nw=E((VFe,Iw)=>{"use strict";var Bne=require("events").EventEmitter;PO(Iw.exports,"callSiteToString",function(){var e=Error.stackTraceLimit,r={},i=Error.prepareStackTrace;function n(a,o){return o}Error.prepareStackTrace=n,Error.stackTraceLimit=2,Error.captureStackTrace(r);var s=r.stack.slice();return Error.prepareStackTrace=i,Error.stackTraceLimit=e,s[0].toString?qne:NO()});PO(Iw.exports,"eventListenerCount",function(){return Bne.listenerCount||OO()});function PO(t,e,r){function i(){var n=r();return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}),n}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:i})}function qne(t){return t.toString()}});var Rw=E((exports,module)=>{var callSiteToString=Nw().callSiteToString,eventListenerCount=Nw().eventListenerCount,relative=require("path").relative;module.exports=depd;var basePath=process.cwd();function containsNamespace(t,e){for(var r=t.split(/[ ,]+/),i=String(e).toLowerCase(),n=0;n",r=t.getLineNumber(),i=t.getColumnNumber();t.isEval()&&(e=t.getEvalOrigin()+", "+e);var n=[e,r,i];return n.callSite=t,n.name=t.getFunctionName(),n}function defaultMessage(t){var e=t.callSite,r=t.name;r||(r="");var i=e.getThis(),n=i&&e.getTypeName();return n==="Object"&&(n=void 0),n==="Function"&&(n=i.name||n),n&&e.getMethodName()?n+"."+r:r}function formatPlain(t,e,r){var i=new Date().toUTCString(),n=i+" "+this._namespace+" deprecated "+t;if(this._traced){for(var s=0;s{"use strict";LO.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?Fne:$ne);function Fne(t,e){return t.__proto__=e,t}function $ne(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var BO=E((GFe,Mne)=>{Mne.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","306":"(Unused)","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var $O=E((zFe,FO)=>{"use strict";var qO=BO();FO.exports=sa;sa.STATUS_CODES=qO;sa.codes=jne(sa,qO);sa.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};sa.empty={204:!0,205:!0,304:!0};sa.retry={502:!0,503:!0,504:!0};function jne(t,e){var r=[];return Object.keys(e).forEach(function(n){var s=e[n],a=Number(n);t[a]=s,t[s]=a,t[s.toLowerCase()]=a,r.push(a)}),r}function sa(t){if(typeof t=="number"){if(!sa[t])throw new Error("invalid status code: "+t);return t}if(typeof t!="string")throw new TypeError("code must be a number or string");var e=parseInt(t,10);if(!isNaN(e)){if(!sa[e])throw new Error("invalid status code: "+e);return e}if(e=sa[t.toLowerCase()],!e)throw new Error('invalid status message: "'+t+'"');return e}});var MO=E((KFe,Pw)=>{typeof Object.create=="function"?Pw.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Pw.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var qw=E((WFe,Bw)=>{try{if(Lw=require("util"),typeof Lw.inherits!="function")throw"";Bw.exports=Lw.inherits}catch{Bw.exports=MO()}var Lw});var Fw=E((YFe,jO)=>{"use strict";jO.exports=Une;function Une(t){return t.split(" ").map(function(e){return e.slice(0,1).toUpperCase()+e.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}});var zO=E((XFe,mc)=>{"use strict";var $w=Rw()("http-errors"),UO=Ow(),lp=$O(),Mw=qw(),Vne=Fw();mc.exports=Yg;mc.exports.HttpError=Hne();mc.exports.isHttpError=zne(mc.exports.HttpError);Wne(mc.exports,lp.codes,mc.exports.HttpError);function VO(t){return+(String(t).charAt(0)+"00")}function Yg(){for(var t,e,r=500,i={},n=0;n=600)&&$w("non-error status code; use only 4xx or 5xx status codes"),(typeof r!="number"||!lp[r]&&(r<400||r>=600))&&(r=500);var a=Yg[r]||Yg[VO(r)];t||(t=a?new a(e):new Error(e||lp[r]),Error.captureStackTrace(t,Yg)),(!a||!(t instanceof a)||t.status!==r)&&(t.expose=r<500,t.status=t.statusCode=r);for(var o in i)o!=="status"&&o!=="statusCode"&&(t[o]=i[o]);return t}function Hne(){function t(){throw new TypeError("cannot construct abstract class")}return Mw(t,Error),t}function Gne(t,e,r){var i=GO(e);function n(s){var a=s??lp[r],o=new Error(a);return Error.captureStackTrace(o,n),UO(o,n.prototype),Object.defineProperty(o,"message",{enumerable:!0,configurable:!0,value:a,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:i,writable:!0}),o}return Mw(n,t),HO(n,i),n.prototype.status=r,n.prototype.statusCode=r,n.prototype.expose=!0,n}function zne(t){return function(r){return!r||typeof r!="object"?!1:r instanceof t?!0:r instanceof Error&&typeof r.expose=="boolean"&&typeof r.statusCode=="number"&&r.status===r.statusCode}}function Kne(t,e,r){var i=GO(e);function n(s){var a=s??lp[r],o=new Error(a);return Error.captureStackTrace(o,n),UO(o,n.prototype),Object.defineProperty(o,"message",{enumerable:!0,configurable:!0,value:a,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:i,writable:!0}),o}return Mw(n,t),HO(n,i),n.prototype.status=r,n.prototype.statusCode=r,n.prototype.expose=!1,n}function HO(t,e){var r=Object.getOwnPropertyDescriptor(t,"name");r&&r.configurable&&(r.value=e,Object.defineProperty(t,"name",r))}function Wne(t,e,r){e.forEach(function(n){var s,a=Vne(lp[n]);switch(VO(n)){case 400:s=Gne(r,a,n);break;case 500:s=Kne(r,a,n);break}s&&(t[n]=s,t[a]=s)}),t["I'mateapot"]=$w.function(t.ImATeapot,`"I'mateapot"; use "ImATeapot" instead`)}function GO(t){return t.substr(-5)!=="Error"?t+"Error":t}});var WO=E((QFe,KO)=>{var ch=1e3,lh=ch*60,ph=lh*60,fh=ph*24,Yne=fh*365.25;KO.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Xne(t);if(r==="number"&&isNaN(t)===!1)return e.long?Jne(t):Qne(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Xne(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Yne;case"days":case"day":case"d":return r*fh;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ph;case"minutes":case"minute":case"mins":case"min":case"m":return r*lh;case"seconds":case"second":case"secs":case"sec":case"s":return r*ch;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Qne(t){return t>=fh?Math.round(t/fh)+"d":t>=ph?Math.round(t/ph)+"h":t>=lh?Math.round(t/lh)+"m":t>=ch?Math.round(t/ch)+"s":t+"ms"}function Jne(t){return Xg(t,fh,"day")||Xg(t,ph,"hour")||Xg(t,lh,"minute")||Xg(t,ch,"second")||t+" ms"}function Xg(t,e,r){if(!(t{Lt=YO.exports=Uw.debug=Uw.default=Uw;Lt.coerce=ise;Lt.disable=tse;Lt.enable=ese;Lt.enabled=rse;Lt.humanize=WO();Lt.names=[];Lt.skips=[];Lt.formatters={};var jw;function Zne(t){var e=0,r;for(r in t)e=(e<<5)-e+t.charCodeAt(r),e|=0;return Lt.colors[Math.abs(e)%Lt.colors.length]}function Uw(t){function e(){if(e.enabled){var r=e,i=+new Date,n=i-(jw||i);r.diff=n,r.prev=jw,r.curr=i,jw=i;for(var s=new Array(arguments.length),a=0;a{Gi=QO.exports=Vw();Gi.log=ase;Gi.formatArgs=sse;Gi.save=ose;Gi.load=XO;Gi.useColors=nse;Gi.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:use();Gi.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function nse(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Gi.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function sse(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+Gi.humanize(this.diff),!!e){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,function(s){s!=="%%"&&(i++,s==="%c"&&(n=i))}),t.splice(n,0,r)}}function ase(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function ose(t){try{t==null?Gi.storage.removeItem("debug"):Gi.storage.debug=t}catch{}}function XO(){var t;try{t=Gi.storage.debug}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}Gi.enable(XO());function use(){try{return window.localStorage}catch{}}});var r4=E((ni,t4)=>{var ZO=require("tty"),dh=require("util");ni=t4.exports=Vw();ni.init=mse;ni.log=fse;ni.formatArgs=pse;ni.save=dse;ni.load=e4;ni.useColors=lse;ni.colors=[6,2,3,4,5,1];ni.inspectOpts=Object.keys(process.env).filter(function(t){return/^debug_/i.test(t)}).reduce(function(t,e){var r=e.substring(6).toLowerCase().replace(/_([a-z])/g,function(n,s){return s.toUpperCase()}),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[r]=i,t},{});var pp=parseInt(process.env.DEBUG_FD,10)||2;pp!==1&&pp!==2&&dh.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var cse=pp===1?process.stdout:pp===2?process.stderr:hse(pp);function lse(){return"colors"in ni.inspectOpts?!!ni.inspectOpts.colors:ZO.isatty(pp)}ni.formatters.o=function(t){return this.inspectOpts.colors=this.useColors,dh.inspect(t,this.inspectOpts).split(` +`).map(function(e){return e.trim()}).join(" ")};ni.formatters.O=function(t){return this.inspectOpts.colors=this.useColors,dh.inspect(t,this.inspectOpts)};function pse(t){var e=this.namespace,r=this.useColors;if(r){var i=this.color,n=" \x1B[3"+i+";1m"+e+" \x1B[0m";t[0]=n+t[0].split(` +`).join(` +`+n),t.push("\x1B[3"+i+"m+"+ni.humanize(this.diff)+"\x1B[0m")}else t[0]=new Date().toUTCString()+" "+e+" "+t[0]}function fse(){return cse.write(dh.format.apply(dh,arguments)+` +`)}function dse(t){t==null?delete process.env.DEBUG:process.env.DEBUG=t}function e4(){return process.env.DEBUG}function hse(t){var e,r=process.binding("tty_wrap");switch(r.guessHandleType(t)){case"TTY":e=new ZO.WriteStream(t),e._type="tty",e._handle&&e._handle.unref&&e._handle.unref();break;case"FILE":var i=require("fs");e=new i.SyncWriteStream(t,{autoClose:!1}),e._type="fs";break;case"PIPE":case"TCP":var n=require("net");e=new n.Socket({fd:t,readable:!1,writable:!0}),e.readable=!1,e.read=null,e._type="pipe",e._handle&&e._handle.unref&&e._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return e.fd=t,e._isStdio=!0,e}function mse(t){t.inspectOpts={};for(var e=Object.keys(ni.inspectOpts),r=0;r{typeof process<"u"&&process.type==="renderer"?Hw.exports=JO():Hw.exports=r4()});var s4=E((ZFe,n4)=>{"use strict";var gse=require("fs").ReadStream,vse=require("stream");n4.exports=yse;function yse(t){return t instanceof gse?bse(t):(t instanceof vse&&typeof t.destroy=="function"&&t.destroy(),t)}function bse(t){return t.destroy(),typeof t.close=="function"&&t.on("open",xse),t}function xse(){typeof this.fd=="number"&&this.close()}});var fp=E((e$e,a4)=>{"use strict";a4.exports=Sse;var wse=/(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,Ese=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g,Cse="$1\uFFFD$2";function Sse(t){return String(t).replace(Ese,Cse).replace(wse,encodeURI)}});var dp=E((t$e,o4)=>{"use strict";var _se=/["'&<>]/;o4.exports=Ase;function Ase(t){var e=""+t,r=_se.exec(e);if(!r)return e;var i,n="",s=0,a=0;for(s=r.index;s{"use strict";var Tse=/(?:^|,)\s*?no-cache\s*?(?:,|$)/;c4.exports=Dse;function Dse(t,e){var r=t["if-modified-since"],i=t["if-none-match"];if(!r&&!i)return!1;var n=t["cache-control"];if(n&&Tse.test(n))return!1;if(i&&i!=="*"){var s=e.etag;if(!s)return!1;for(var a=!0,o=kse(i),u=0;u{Ise.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":[],"application/font-woff2":[],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/prs.cww":["cww"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"audio/xm":["xm"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/ktx":["ktx"],"image/png":["png"],"image/prs.btif":["btif"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/webp":["webp"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/prs.lines.tag":["dsc"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/vtt":["vtt"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}});var Gw=E((s$e,p4)=>{var n$e=require("path"),Nse=require("fs");function mp(){this.types=Object.create(null),this.extensions=Object.create(null)}mp.prototype.define=function(t){for(var e in t){for(var r=t[e],i=0;i{var gp=1e3,vp=gp*60,yp=vp*60,gc=yp*24,Rse=gc*7,Ose=gc*365.25;f4.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Pse(t);if(r==="number"&&isFinite(t))return e.long?Bse(t):Lse(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Pse(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Ose;case"weeks":case"week":case"w":return r*Rse;case"days":case"day":case"d":return r*gc;case"hours":case"hour":case"hrs":case"hr":case"h":return r*yp;case"minutes":case"minute":case"mins":case"min":case"m":return r*vp;case"seconds":case"second":case"secs":case"sec":case"s":return r*gp;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Lse(t){var e=Math.abs(t);return e>=gc?Math.round(t/gc)+"d":e>=yp?Math.round(t/yp)+"h":e>=vp?Math.round(t/vp)+"m":e>=gp?Math.round(t/gp)+"s":t+"ms"}function Bse(t){var e=Math.abs(t);return e>=gc?Jg(t,e,gc,"day"):e>=yp?Jg(t,e,yp,"hour"):e>=vp?Jg(t,e,vp,"minute"):e>=gp?Jg(t,e,gp,"second"):t+" ms"}function Jg(t,e,r,i){var n=e>=r*1.5;return Math.round(t/r)+" "+i+(n?"s":"")}});var zw=E((o$e,h4)=>{"use strict";h4.exports=qse;function qse(t,e){if(!Array.isArray(t))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var r=[],i=0;i{"use strict";Kw.exports=Mse;Kw.exports.isFinished=g4;var m4=zw(),$se=typeof setImmediate=="function"?setImmediate:function(t){process.nextTick(t.bind.apply(t,arguments))};function Mse(t,e){return g4(t)!==!1?($se(e,null,t),t):(Use(t,e),t)}function g4(t){var e=t.socket;if(typeof t.finished=="boolean")return!!(t.finished||e&&!e.writable);if(typeof t.complete=="boolean")return!!(t.upgrade||!e||!e.readable||t.complete&&!t.readable)}function jse(t,e){var r,i,n=!1;function s(o){r.cancel(),i.cancel(),n=!0,e(o)}r=i=m4([[t,"end","finish"]],s);function a(o){t.removeListener("socket",a),!n&&r===i&&(i=m4([[o,"error","close"]],s))}if(t.socket){a(t.socket);return}t.on("socket",a),t.socket===void 0&&Hse(t,a)}function Use(t,e){var r=t.__onFinished;(!r||!r.queue)&&(r=t.__onFinished=Vse(t),jse(t,r)),r.queue.push(e)}function Vse(t){function e(r){if(t.__onFinished===e&&(t.__onFinished=null),!!e.queue){var i=e.queue;e.queue=null;for(var n=0;n{"use strict";y4.exports=Gse;function Gse(t,e,r){if(typeof e!="string")throw new TypeError("argument str must be a string");var i=e.indexOf("=");if(i===-1)return-2;var n=e.slice(i+1).split(","),s=[];s.type=e.slice(0,i);for(var a=0;at-1&&(c=t-1),!(isNaN(u)||isNaN(c)||u>c||u<0)&&s.push({start:u,end:c})}return s.length<1?-1:r&&r.combine?zse(s):s}function zse(t){for(var e=t.map(Kse).sort(Xse),r=0,i=1;is.end+1?e[++r]=n:n.end>s.end&&(s.end=n.end,s.index=Math.min(s.index,n.index))}e.length=r+1;var a=e.sort(Yse).map(Wse);return a.type=t.type,a}function Kse(t,e){return{start:t.start,end:t.end,index:e}}function Wse(t){return{start:t.start,end:t.end}}function Yse(t,e){return t.index-e.index}function Xse(t,e){return t.start-e.start}});var b4=E((l$e,Qse)=>{Qse.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","306":"(Unused)","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var E4=E((p$e,w4)=>{"use strict";var x4=b4();w4.exports=aa;aa.STATUS_CODES=x4;aa.codes=Jse(aa,x4);aa.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};aa.empty={204:!0,205:!0,304:!0};aa.retry={502:!0,503:!0,504:!0};function Jse(t,e){var r=[];return Object.keys(e).forEach(function(n){var s=e[n],a=Number(n);t[a]=s,t[s]=a,t[s.toLowerCase()]=a,r.push(a)}),r}function aa(t){if(typeof t=="number"){if(!aa[t])throw new Error("invalid status code: "+t);return t}if(typeof t!="string")throw new TypeError("code must be a number or string");var e=parseInt(t,10);if(!isNaN(e)){if(!aa[e])throw new Error("invalid status code: "+e);return e}if(e=aa[t.toLowerCase()],!e)throw new Error('invalid status message: "'+t+'"');return e}});var eE=E((f$e,Zw)=>{"use strict";var Zse=zO(),Sr=i4()("send"),vc=Rw()("send"),C4=s4(),eae=fp(),Yw=dp(),tae=Wg(),rae=Qg(),tv=require("fs"),Xw=Gw(),A4=d4(),iae=v4(),nae=Zg(),hh=require("path"),sae=E4(),T4=require("stream"),aae=require("util"),oae=hh.extname,D4=hh.join,Ww=hh.normalize,Jw=hh.resolve,ev=hh.sep,uae=/^ *bytes=/,k4=60*60*24*365*1e3,S4=/(?:^|[\\/])\.\.(?:[\\/]|$)/;Zw.exports=cae;Zw.exports.mime=Xw;function cae(t,e,r){return new Bt(t,e,r)}function Bt(t,e,r){T4.call(this);var i=r||{};if(this.options=i,this.path=e,this.req=t,this._acceptRanges=i.acceptRanges!==void 0?!!i.acceptRanges:!0,this._cacheControl=i.cacheControl!==void 0?!!i.cacheControl:!0,this._etag=i.etag!==void 0?!!i.etag:!0,this._dotfiles=i.dotfiles!==void 0?i.dotfiles:"ignore",this._dotfiles!=="ignore"&&this._dotfiles!=="allow"&&this._dotfiles!=="deny")throw new TypeError('dotfiles option must be "allow", "deny", or "ignore"');this._hidden=!!i.hidden,i.hidden!==void 0&&vc("hidden: use dotfiles: '"+(this._hidden?"allow":"ignore")+"' instead"),i.dotfiles===void 0&&(this._dotfiles=void 0),this._extensions=i.extensions!==void 0?Qw(i.extensions,"extensions option"):[],this._immutable=i.immutable!==void 0?!!i.immutable:!1,this._index=i.index!==void 0?Qw(i.index,"index option"):["index.html"],this._lastModified=i.lastModified!==void 0?!!i.lastModified:!0,this._maxage=i.maxAge||i.maxage,this._maxage=typeof this._maxage=="string"?A4(this._maxage):Number(this._maxage),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),k4),this._root=i.root?Jw(i.root):null,!this._root&&i.from&&this.from(i.from)}aae.inherits(Bt,T4);Bt.prototype.etag=vc.function(function(e){return this._etag=!!e,Sr("etag %s",this._etag),this},"send.etag: pass etag as option");Bt.prototype.hidden=vc.function(function(e){return this._hidden=!!e,this._dotfiles=void 0,Sr("hidden %s",this._hidden),this},"send.hidden: use dotfiles option");Bt.prototype.index=vc.function(function(e){var r=e?Qw(e,"paths argument"):[];return Sr("index %o",e),this._index=r,this},"send.index: pass index as option");Bt.prototype.root=function(e){return this._root=Jw(String(e)),Sr("root %s",this._root),this};Bt.prototype.from=vc.function(Bt.prototype.root,"send.from: pass root as option");Bt.prototype.root=vc.function(Bt.prototype.root,"send.root: pass root as option");Bt.prototype.maxage=vc.function(function(e){return this._maxage=typeof e=="string"?A4(e):Number(e),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),k4),Sr("max-age %d",this._maxage),this},"send.maxage: pass maxAge as option");Bt.prototype.error=function(e,r){if(R4(this,"error"))return this.emit("error",Zse(e,r,{expose:!1}));var i=this.res,n=sae[e]||String(e),s=I4("Error",Yw(n));lae(i),r&&r.headers&&gae(i,r.headers),i.statusCode=e,i.setHeader("Content-Type","text/html; charset=UTF-8"),i.setHeader("Content-Length",Buffer.byteLength(s)),i.setHeader("Content-Security-Policy","default-src 'none'"),i.setHeader("X-Content-Type-Options","nosniff"),i.end(s)};Bt.prototype.hasTrailingSlash=function(){return this.path[this.path.length-1]==="/"};Bt.prototype.isConditionalGET=function(){return this.req.headers["if-match"]||this.req.headers["if-unmodified-since"]||this.req.headers["if-none-match"]||this.req.headers["if-modified-since"]};Bt.prototype.isPreconditionFailure=function(){var e=this.req,r=this.res,i=e.headers["if-match"];if(i){var n=r.getHeader("ETag");return!n||i!=="*"&&mae(i).every(function(o){return o!==n&&o!=="W/"+n&&"W/"+o!==n})}var s=rv(e.headers["if-unmodified-since"]);if(!isNaN(s)){var a=rv(r.getHeader("Last-Modified"));return isNaN(a)||a>s}return!1};Bt.prototype.removeContentHeaderFields=function(){for(var e=this.res,r=N4(e),i=0;i=200&&e<300||e===304};Bt.prototype.onStatError=function(e){switch(e.code){case"ENAMETOOLONG":case"ENOENT":case"ENOTDIR":this.error(404,e);break;default:this.error(500,e);break}};Bt.prototype.isFresh=function(){return rae(this.req.headers,{etag:this.res.getHeader("ETag"),"last-modified":this.res.getHeader("Last-Modified")})};Bt.prototype.isRangeFresh=function(){var e=this.req.headers["if-range"];if(!e)return!0;if(e.indexOf('"')!==-1){var r=this.res.getHeader("ETag");return!!(r&&e.indexOf(r)!==-1)}var i=this.res.getHeader("Last-Modified");return rv(i)<=rv(e)};Bt.prototype.redirect=function(e){var r=this.res;if(R4(this,"directory")){this.emit("directory",r,e);return}if(this.hasTrailingSlash()){this.error(403);return}var i=eae(pae(this.path+"/")),n=I4("Redirecting",'Redirecting to '+Yw(i)+"");r.statusCode=301,r.setHeader("Content-Type","text/html; charset=UTF-8"),r.setHeader("Content-Length",Buffer.byteLength(n)),r.setHeader("Content-Security-Policy","default-src 'none'"),r.setHeader("X-Content-Type-Options","nosniff"),r.setHeader("Location",i),r.end(n)};Bt.prototype.pipe=function(e){var r=this._root;this.res=e;var i=dae(this.path);if(i===-1)return this.error(400),e;if(~i.indexOf("\0"))return this.error(400),e;var n;if(r!==null){if(i&&(i=Ww("."+ev+i)),S4.test(i))return Sr('malicious path "%s"',i),this.error(403),e;n=i.split(ev),i=Ww(D4(r,i))}else{if(S4.test(i))return Sr('malicious path "%s"',i),this.error(403),e;n=Ww(i).split(ev),i=Jw(i)}if(fae(n)){var s=this._dotfiles;switch(s===void 0&&(s=n[n.length-1][0]==="."?this._hidden?"allow":"ignore":"allow"),Sr('%s dotfile "%s"',s,i),s){case"allow":break;case"deny":return this.error(403),e;case"ignore":default:return this.error(404),e}}return this._index.length&&this.hasTrailingSlash()?(this.sendIndex(i),e):(this.sendFile(i),e)};Bt.prototype.send=function(e,r){var i=r.size,n=this.options,s={},a=this.res,o=this.req,u=o.headers.range,c=n.start||0;if(hae(a)){this.headersAlreadySent();return}if(Sr('pipe "%s"',e),this.setHeader(e,r),this.type(e),this.isConditionalGET()){if(this.isPreconditionFailure()){this.error(412);return}if(this.isCachable()&&this.isFresh()){this.notModified();return}}if(i=Math.max(0,i-c),n.end!==void 0){var l=n.end-c+1;i>l&&(i=l)}if(this._acceptRanges&&uae.test(u)){if(u=nae(i,u,{combine:!0}),this.isRangeFresh()||(Sr("range stale"),u=-2),u===-1)return Sr("range unsatisfiable"),a.setHeader("Content-Range",_4("bytes",i)),this.error(416,{headers:{"Content-Range":a.getHeader("Content-Range")}});u!==-2&&u.length===1&&(Sr("range %j",u),a.statusCode=206,a.setHeader("Content-Range",_4("bytes",i,u[0])),c+=u[0].start,i=u[0].end-u[0].start+1)}for(var f in n)s[f]=n[f];if(s.start=c,s.end=Math.max(c,c+i-1),a.setHeader("Content-Length",i),o.method==="HEAD"){a.end();return}this.stream(e,s)};Bt.prototype.sendFile=function(e){var r=0,i=this;Sr('stat "%s"',e),tv.stat(e,function(a,o){if(a&&a.code==="ENOENT"&&!oae(e)&&e[e.length-1]!==ev)return n(a);if(a)return i.onStatError(a);if(o.isDirectory())return i.redirect(e);i.emit("file",e,o),i.send(e,o)});function n(s){if(i._extensions.length<=r)return s?i.onStatError(s):i.error(404);var a=e+"."+i._extensions[r++];Sr('stat "%s"',a),tv.stat(a,function(o,u){if(o)return n(o);if(u.isDirectory())return n();i.emit("file",a,u),i.send(a,u)})}};Bt.prototype.sendIndex=function(e){var r=-1,i=this;function n(s){if(++r>=i._index.length)return s?i.onStatError(s):i.error(404);var a=D4(e,i._index[r]);Sr('stat "%s"',a),tv.stat(a,function(o,u){if(o)return n(o);if(u.isDirectory())return n();i.emit("file",a,u),i.send(a,u)})}n()};Bt.prototype.stream=function(e,r){var i=!1,n=this,s=this.res,a=tv.createReadStream(e,r);this.emit("stream",a),a.pipe(s),iae(s,function(){i=!0,C4(a)}),a.on("error",function(u){i||(i=!0,C4(a),n.onStatError(u))}),a.on("end",function(){n.emit("end")})};Bt.prototype.type=function(e){var r=this.res;if(!r.getHeader("Content-Type")){var i=Xw.lookup(e);if(!i){Sr("no content-type");return}var n=Xw.charsets.lookup(i);Sr("content-type %s",i),r.setHeader("Content-Type",i+(n?"; charset="+n:""))}};Bt.prototype.setHeader=function(e,r){var i=this.res;if(this.emit("headers",i,e,r),this._acceptRanges&&!i.getHeader("Accept-Ranges")&&(Sr("accept ranges"),i.setHeader("Accept-Ranges","bytes")),this._cacheControl&&!i.getHeader("Cache-Control")){var n="public, max-age="+Math.floor(this._maxage/1e3);this._immutable&&(n+=", immutable"),Sr("cache-control %s",n),i.setHeader("Cache-Control",n)}if(this._lastModified&&!i.getHeader("Last-Modified")){var s=r.mtime.toUTCString();Sr("modified %s",s),i.setHeader("Last-Modified",s)}if(this._etag&&!i.getHeader("ETag")){var a=tae(r);Sr("etag %s",a),i.setHeader("ETag",a)}};function lae(t){for(var e=N4(t),r=0;r1?"/"+t.substr(e):t}function fae(t){for(var e=0;e1&&r[0]===".")return!0}return!1}function _4(t,e,r){return t+" "+(r?r.start+"-"+r.end:"*")+"/"+e}function I4(t,e){return` + + + +`+t+` + + +
`+e+`
+ + +`}function dae(t){try{return decodeURIComponent(t)}catch{return-1}}function N4(t){return typeof t.getHeaderNames!="function"?Object.keys(t._headers||{}):t.getHeaderNames()}function R4(t,e){var r=typeof t.listenerCount!="function"?t.listeners(e).length:t.listenerCount(e);return r>0}function hae(t){return typeof t.headersSent!="boolean"?!!t._header:t.headersSent}function Qw(t,e){for(var r=[].concat(t||[]),i=0;i{"use strict";O4.exports=vae;function vae(t){if(!t)throw new TypeError("argument req is required");var e=bae(t.headers["x-forwarded-for"]||""),r=yae(t),i=[r].concat(e);return i}function yae(t){return t.socket?t.socket.remoteAddress:t.connection.remoteAddress}function bae(t){for(var e=t.length,r=[],i=t.length,n=t.length-1;n>=0;n--)switch(t.charCodeAt(n)){case 32:i===e&&(i=e=n);break;case 44:i!==e&&r.push(t.substring(i,e)),i=e=n;break;default:i=n;break}return i!==e&&r.push(t.substring(i,e)),r}});var B4=E((L4,mh)=>{(function(){var t,e,r,i,n,s,a,o,u;e={},o=this,typeof mh<"u"&&mh!==null&&mh.exports?mh.exports=e:o.ipaddr=e,a=function(c,l,f,d){var h,m;if(c.length!==l.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(h=0;d>0;){if(m=f-d,m<0&&(m=0),c[h]>>m!==l[h]>>m)return!1;d-=f,h+=1}return!0},e.subnetMatch=function(c,l,f){var d,h,m,g,y;f==null&&(f="unicast");for(m in l)for(g=l[m],g[0]&&!(g[0]instanceof Array)&&(g=[g]),d=0,h=g.length;d=0;f=d+=-1)if(h=this.octets[f],h in y){if(g=y[h],m&&g!==0)return null;g!==8&&(m=!0),l+=g}else return null;return 32-l},c}(),r="(0?\\d+|0x[a-f0-9]+)",i={fourOctet:new RegExp("^"+r+"\\."+r+"\\."+r+"\\."+r+"$","i"),longValue:new RegExp("^"+r+"$","i")},e.IPv4.parser=function(c){var l,f,d,h,m;if(f=function(g){return g[0]==="0"&&g[1]!=="x"?parseInt(g,8):parseInt(g)},l=c.match(i.fourOctet))return function(){var g,y,b,w;for(b=l.slice(1,6),w=[],g=0,y=b.length;g4294967295||m<0)throw new Error("ipaddr: address outside defined range");return function(){var g,y;for(y=[],h=g=0;g<=24;h=g+=8)y.push(m>>h&255);return y}().reverse()}else return null},e.IPv6=function(){function c(l,f){var d,h,m,g,y,b;if(l.length===16)for(this.parts=[],d=h=0;h<=14;d=h+=2)this.parts.push(l[d]<<8|l[d+1]);else if(l.length===8)this.parts=l;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(b=this.parts,m=0,g=b.length;mf&&(l=d.index,f=d[0].length);return f<0?m:m.substring(0,l)+"::"+m.substring(l+f)},c.prototype.toByteArray=function(){var l,f,d,h,m;for(l=[],m=this.parts,f=0,d=m.length;f>8),l.push(h&255);return l},c.prototype.toNormalizedString=function(){var l,f,d;return l=function(){var h,m,g,y;for(g=this.parts,y=[],h=0,m=g.length;h>8,l&255,f>>8,f&255])},c.prototype.prefixLengthFromSubnetMask=function(){var l,f,d,h,m,g,y;for(y={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},l=0,m=!1,f=d=7;d>=0;f=d+=-1)if(h=this.parts[f],h in y){if(g=y[h],m&&g!==0)return null;g!==16&&(m=!0),l+=g}else return null;return 128-l},c}(),n="(?:[0-9a-f]+::?)+",u="%[0-9a-z]{1,}",s={zoneIndex:new RegExp(u,"i"),native:new RegExp("^(::)?("+n+")?([0-9a-f]+)?(::)?("+u+")?$","i"),transitional:new RegExp("^((?:"+n+")|(?:::)(?:"+n+")?)"+(r+"\\."+r+"\\."+r+"\\."+r)+("("+u+")?$"),"i")},t=function(c,l){var f,d,h,m,g,y;if(c.indexOf("::")!==c.lastIndexOf("::"))return null;for(y=(c.match(s.zoneIndex)||[])[0],y&&(y=y.substring(1),c=c.replace(/%.+$/,"")),f=0,d=-1;(d=c.indexOf(":",d+1))>=0;)f++;if(c.substr(0,2)==="::"&&f--,c.substr(-2,2)==="::"&&f--,f>l)return null;for(g=l-f,m=":";g--;)m+="0:";return c=c.replace("::",m),c[0]===":"&&(c=c.slice(1)),c[c.length-1]===":"&&(c=c.slice(0,-1)),l=function(){var b,w,S,x;for(S=c.split(":"),x=[],b=0,w=S.length;b=0&&l<=32))return d=[this.parse(f[1]),l],Object.defineProperty(d,"toString",{value:function(){return this.join("/")}}),d;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},e.IPv4.subnetMaskFromPrefixLength=function(c){var l,f,d;if(c=parseInt(c),c<0||c>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(d=[0,0,0,0],f=0,l=Math.floor(c/8);f=0&&l<=128))return d=[this.parse(f[1]),l],Object.defineProperty(d,"toString",{value:function(){return this.join("/")}}),d;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},e.isValid=function(c){return e.IPv6.isValid(c)||e.IPv4.isValid(c)},e.parse=function(c){if(e.IPv6.isValid(c))return e.IPv6.parse(c);if(e.IPv4.isValid(c))return e.IPv4.parse(c);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},e.parseCIDR=function(c){var l;try{return e.IPv6.parseCIDR(c)}catch(f){l=f;try{return e.IPv4.parseCIDR(c)}catch(d){throw l=d,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},e.fromByteArray=function(c){var l;if(l=c.length,l===4)return new e.IPv4(c);if(l===16)return new e.IPv6(c);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},e.process=function(c){var l;return l=this.parse(c),l.kind()==="ipv6"&&l.isIPv4MappedAddress()?l.toIPv4Address():l}}).call(L4)});var tE=E((h$e,sv)=>{"use strict";sv.exports=Aae;sv.exports.all=$4;sv.exports.compile=M4;var xae=P4(),F4=B4(),wae=/^[0-9]+$/,iv=F4.isValid,nv=F4.parse,q4={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function $4(t,e){var r=xae(t);if(!e)return r;typeof e!="function"&&(e=M4(e));for(var i=0;in)throw new TypeError("invalid range on address: "+t);return[i,s]}function _ae(t){var e=nv(t),r=e.kind();return r==="ipv4"?e.prefixLengthFromSubnetMask():null}function Aae(t,e){if(!t)throw new TypeError("req argument is required");if(!e)throw new TypeError("trust argument is required");var r=$4(t,e),i=r[r.length-1];return i}function Tae(){return!1}function Dae(t){return function(r){if(!iv(r))return!1;for(var i=nv(r),n,s=i.kind(),a=0;a{"use strict";j4.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;e[r]=n;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==n||a.enumerable!==!0)return!1}return!0}});var G4=E((g$e,H4)=>{"use strict";var V4=typeof Symbol<"u"&&Symbol,Iae=U4();H4.exports=function(){return typeof V4!="function"||typeof Symbol!="function"||typeof V4("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Iae()}});var W4=E((v$e,K4)=>{"use strict";var z4={foo:{}},Nae=Object;K4.exports=function(){return{__proto__:z4}.foo===z4.foo&&!({__proto__:null}instanceof Nae)}});var Q4=E((y$e,X4)=>{"use strict";var Rae="Function.prototype.bind called on incompatible ",Oae=Object.prototype.toString,Pae=Math.max,Lae="[object Function]",Y4=function(e,r){for(var i=[],n=0;n{"use strict";var Fae=Q4();J4.exports=Function.prototype.bind||Fae});var eP=E((x$e,Z4)=>{"use strict";var $ae=Function.prototype.call,Mae=Object.prototype.hasOwnProperty,jae=av();Z4.exports=jae.call($ae,Mae)});var eu=E((w$e,sP)=>{"use strict";var bt,Ep=SyntaxError,nP=Function,wp=TypeError,rE=function(t){try{return nP('"use strict"; return ('+t+").constructor;")()}catch{}},yc=Object.getOwnPropertyDescriptor;if(yc)try{yc({},"")}catch{yc=null}var iE=function(){throw new wp},Uae=yc?function(){try{return arguments.callee,iE}catch{try{return yc(arguments,"callee").get}catch{return iE}}}():iE,bp=G4()(),Vae=W4()(),si=Object.getPrototypeOf||(Vae?function(t){return t.__proto__}:null),xp={},Hae=typeof Uint8Array>"u"||!si?bt:si(Uint8Array),bc={"%AggregateError%":typeof AggregateError>"u"?bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?bt:ArrayBuffer,"%ArrayIteratorPrototype%":bp&&si?si([][Symbol.iterator]()):bt,"%AsyncFromSyncIteratorPrototype%":bt,"%AsyncFunction%":xp,"%AsyncGenerator%":xp,"%AsyncGeneratorFunction%":xp,"%AsyncIteratorPrototype%":xp,"%Atomics%":typeof Atomics>"u"?bt:Atomics,"%BigInt%":typeof BigInt>"u"?bt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?bt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?bt:FinalizationRegistry,"%Function%":nP,"%GeneratorFunction%":xp,"%Int8Array%":typeof Int8Array>"u"?bt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?bt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":bp&&si?si(si([][Symbol.iterator]())):bt,"%JSON%":typeof JSON=="object"?JSON:bt,"%Map%":typeof Map>"u"?bt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!bp||!si?bt:si(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?bt:Promise,"%Proxy%":typeof Proxy>"u"?bt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?bt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!bp||!si?bt:si(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":bp&&si?si(""[Symbol.iterator]()):bt,"%Symbol%":bp?Symbol:bt,"%SyntaxError%":Ep,"%ThrowTypeError%":Uae,"%TypedArray%":Hae,"%TypeError%":wp,"%Uint8Array%":typeof Uint8Array>"u"?bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?bt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?bt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?bt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?bt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?bt:WeakSet};if(si)try{null.error}catch(t){tP=si(si(t)),bc["%Error.prototype%"]=tP}var tP,Gae=function t(e){var r;if(e==="%AsyncFunction%")r=rE("async function () {}");else if(e==="%GeneratorFunction%")r=rE("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=rE("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");n&&si&&(r=si(n.prototype))}return bc[e]=r,r},rP={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},gh=av(),ov=eP(),zae=gh.call(Function.call,Array.prototype.concat),Kae=gh.call(Function.apply,Array.prototype.splice),iP=gh.call(Function.call,String.prototype.replace),uv=gh.call(Function.call,String.prototype.slice),Wae=gh.call(Function.call,RegExp.prototype.exec),Yae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Xae=/\\(\\)?/g,Qae=function(e){var r=uv(e,0,1),i=uv(e,-1);if(r==="%"&&i!=="%")throw new Ep("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new Ep("invalid intrinsic syntax, expected opening `%`");var n=[];return iP(e,Yae,function(s,a,o,u){n[n.length]=o?iP(u,Xae,"$1"):a||s}),n},Jae=function(e,r){var i=e,n;if(ov(rP,i)&&(n=rP[i],i="%"+n[0]+"%"),ov(bc,i)){var s=bc[i];if(s===xp&&(s=Gae(i)),typeof s>"u"&&!r)throw new wp("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new Ep("intrinsic "+e+" does not exist!")};sP.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new wp("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new wp('"allowMissing" argument must be a boolean');if(Wae(/^%?[^%]*%?$/,e)===null)throw new Ep("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=Qae(e),n=i.length>0?i[0]:"",s=Jae("%"+n+"%",r),a=s.name,o=s.value,u=!1,c=s.alias;c&&(n=c[0],Kae(i,zae([0,1],c)));for(var l=1,f=!0;l=i.length){var g=yc(o,d);f=!!g,f&&"get"in g&&!("originalValue"in g.get)?o=g.get:o=o[d]}else f=ov(o,d),o=o[d];f&&!u&&(bc[a]=o)}}return o}});var aE=E((E$e,aP)=>{"use strict";var Zae=eu(),nE=Zae("%Object.defineProperty%",!0),sE=function(){if(nE)try{return nE({},"a",{value:1}),!0}catch{return!1}return!1};sE.hasArrayLengthDefineBug=function(){if(!sE())return null;try{return nE([],"length",{value:1}).length!==1}catch{return!0}};aP.exports=sE});var oE=E((C$e,oP)=>{"use strict";var eoe=eu(),cv=eoe("%Object.getOwnPropertyDescriptor%",!0);if(cv)try{cv([],"length")}catch{cv=null}oP.exports=cv});var lP=E((S$e,cP)=>{"use strict";var toe=aE()(),uE=eu(),vh=toe&&uE("%Object.defineProperty%",!0);if(vh)try{vh({},"a",{value:1})}catch{vh=!1}var roe=uE("%SyntaxError%"),Cp=uE("%TypeError%"),uP=oE();cP.exports=function(e,r,i){if(!e||typeof e!="object"&&typeof e!="function")throw new Cp("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Cp("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Cp("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Cp("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Cp("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Cp("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,u=!!uP&&uP(e,r);if(vh)vh(e,r,{configurable:a===null&&u?u.configurable:!a,enumerable:n===null&&u?u.enumerable:!n,value:i,writable:s===null&&u?u.writable:!s});else if(o||!n&&!s&&!a)e[r]=i;else throw new roe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var gP=E((_$e,mP)=>{"use strict";var hP=eu(),pP=lP(),ioe=aE()(),fP=oE(),dP=hP("%TypeError%"),noe=hP("%Math.floor%");mP.exports=function(e,r){if(typeof e!="function")throw new dP("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||noe(r)!==r)throw new dP("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,s=!0;if("length"in e&&fP){var a=fP(e,"length");a&&!a.configurable&&(n=!1),a&&!a.writable&&(s=!1)}return(n||s||!i)&&(ioe?pP(e,"length",r,!0,!0):pP(e,"length",r)),e}});var wP=E((A$e,lv)=>{"use strict";var cE=av(),Sp=eu(),soe=gP(),aoe=Sp("%TypeError%"),yP=Sp("%Function.prototype.apply%"),bP=Sp("%Function.prototype.call%"),xP=Sp("%Reflect.apply%",!0)||cE.call(bP,yP),yh=Sp("%Object.defineProperty%",!0),ooe=Sp("%Math.max%");if(yh)try{yh({},"a",{value:1})}catch{yh=null}lv.exports=function(e){if(typeof e!="function")throw new aoe("a function is required");var r=xP(cE,bP,arguments);return soe(r,1+ooe(0,e.length-(arguments.length-1)),!0)};var vP=function(){return xP(cE,yP,arguments)};yh?yh(lv.exports,"apply",{value:vP}):lv.exports.apply=vP});var _P=E((T$e,SP)=>{"use strict";var EP=eu(),CP=wP(),uoe=CP(EP("String.prototype.indexOf"));SP.exports=function(e,r){var i=EP(e,!!r);return typeof i=="function"&&uoe(e,".prototype.")>-1?CP(i):i}});var TP=E((D$e,AP)=>{AP.exports=require("util").inspect});var KP=E((k$e,zP)=>{var bE=typeof Map=="function"&&Map.prototype,lE=Object.getOwnPropertyDescriptor&&bE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,fv=bE&&lE&&typeof lE.get=="function"?lE.get:null,DP=bE&&Map.prototype.forEach,xE=typeof Set=="function"&&Set.prototype,pE=Object.getOwnPropertyDescriptor&&xE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,dv=xE&&pE&&typeof pE.get=="function"?pE.get:null,kP=xE&&Set.prototype.forEach,coe=typeof WeakMap=="function"&&WeakMap.prototype,xh=coe?WeakMap.prototype.has:null,loe=typeof WeakSet=="function"&&WeakSet.prototype,wh=loe?WeakSet.prototype.has:null,poe=typeof WeakRef=="function"&&WeakRef.prototype,IP=poe?WeakRef.prototype.deref:null,foe=Boolean.prototype.valueOf,doe=Object.prototype.toString,hoe=Function.prototype.toString,moe=String.prototype.match,wE=String.prototype.slice,ru=String.prototype.replace,goe=String.prototype.toUpperCase,NP=String.prototype.toLowerCase,MP=RegExp.prototype.test,RP=Array.prototype.concat,oa=Array.prototype.join,voe=Array.prototype.slice,OP=Math.floor,hE=typeof BigInt=="function"?BigInt.prototype.valueOf:null,fE=Object.getOwnPropertySymbols,mE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,_p=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pi=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_p||"symbol")?Symbol.toStringTag:null,jP=Object.prototype.propertyIsEnumerable,PP=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function LP(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||MP.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var i=t<0?-OP(-t):OP(t);if(i!==t){var n=String(i),s=wE.call(e,n.length+1);return ru.call(n,r,"$&_")+"."+ru.call(ru.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ru.call(e,r,"$&_")}var gE=TP(),BP=gE.custom,qP=VP(BP)?BP:null;zP.exports=function t(e,r,i,n){var s=r||{};if(tu(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(tu(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=tu(s,"customInspect")?s.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(tu(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(tu(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=s.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return GP(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return o?LP(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return o?LP(e,c):c}var l=typeof s.depth>"u"?5:s.depth;if(typeof i>"u"&&(i=0),i>=l&&l>0&&typeof e=="object")return vE(e)?"[Array]":"[Object]";var f=Loe(s,i);if(typeof n>"u")n=[];else if(HP(n,e)>=0)return"[Circular]";function d(ue,Ae,M){if(Ae&&(n=voe.call(n),n.push(Ae)),M){var H={depth:s.depth};return tu(s,"quoteStyle")&&(H.quoteStyle=s.quoteStyle),t(ue,H,i+1,n)}return t(ue,s,i+1,n)}if(typeof e=="function"&&!FP(e)){var h=Aoe(e),m=pv(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+oa.call(m,", ")+" }":"")}if(VP(e)){var g=_p?ru.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):mE.call(e);return typeof e=="object"&&!_p?bh(g):g}if(Roe(e)){for(var y="<"+NP.call(String(e.nodeName)),b=e.attributes||[],w=0;w",y}if(vE(e)){if(e.length===0)return"[]";var S=pv(e,d);return f&&!Poe(S)?"["+yE(S,f)+"]":"[ "+oa.call(S,", ")+" ]"}if(xoe(e)){var x=pv(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!jP.call(e,"cause")?"{ ["+String(e)+"] "+oa.call(RP.call("[cause]: "+d(e.cause),x),", ")+" }":x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+oa.call(x,", ")+" }"}if(typeof e=="object"&&a){if(qP&&typeof e[qP]=="function"&&gE)return gE(e,{depth:l-i});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Toe(e)){var k=[];return DP&&DP.call(e,function(ue,Ae){k.push(d(Ae,e,!0)+" => "+d(ue,e))}),$P("Map",fv.call(e),k,f)}if(Ioe(e)){var R=[];return kP&&kP.call(e,function(ue){R.push(d(ue,e))}),$P("Set",dv.call(e),R,f)}if(Doe(e))return dE("WeakMap");if(Noe(e))return dE("WeakSet");if(koe(e))return dE("WeakRef");if(Eoe(e))return bh(d(Number(e)));if(Soe(e))return bh(d(hE.call(e)));if(Coe(e))return bh(foe.call(e));if(woe(e))return bh(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!boe(e)&&!FP(e)){var L=pv(e,d),j=PP?PP(e)===Object.prototype:e instanceof Object||e.constructor===Object,G=e instanceof Object?"":"null prototype",J=!j&&Pi&&Object(e)===e&&Pi in e?wE.call(iu(e),8,-1):G?"Object":"",q=j||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Z=q+(J||G?"["+oa.call(RP.call([],J||[],G||[]),": ")+"] ":"");return L.length===0?Z+"{}":f?Z+"{"+yE(L,f)+"}":Z+"{ "+oa.call(L,", ")+" }"}return String(e)};function UP(t,e,r){var i=(r.quoteStyle||e)==="double"?'"':"'";return i+t+i}function yoe(t){return ru.call(String(t),/"/g,""")}function vE(t){return iu(t)==="[object Array]"&&(!Pi||!(typeof t=="object"&&Pi in t))}function boe(t){return iu(t)==="[object Date]"&&(!Pi||!(typeof t=="object"&&Pi in t))}function FP(t){return iu(t)==="[object RegExp]"&&(!Pi||!(typeof t=="object"&&Pi in t))}function xoe(t){return iu(t)==="[object Error]"&&(!Pi||!(typeof t=="object"&&Pi in t))}function woe(t){return iu(t)==="[object String]"&&(!Pi||!(typeof t=="object"&&Pi in t))}function Eoe(t){return iu(t)==="[object Number]"&&(!Pi||!(typeof t=="object"&&Pi in t))}function Coe(t){return iu(t)==="[object Boolean]"&&(!Pi||!(typeof t=="object"&&Pi in t))}function VP(t){if(_p)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!mE)return!1;try{return mE.call(t),!0}catch{}return!1}function Soe(t){if(!t||typeof t!="object"||!hE)return!1;try{return hE.call(t),!0}catch{}return!1}var _oe=Object.prototype.hasOwnProperty||function(t){return t in this};function tu(t,e){return _oe.call(t,e)}function iu(t){return doe.call(t)}function Aoe(t){if(t.name)return t.name;var e=moe.call(hoe.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function HP(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return GP(wE.call(t,0,e.maxStringLength),e)+i}var n=ru.call(ru.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ooe);return UP(n,"single",e)}function Ooe(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+goe.call(e.toString(16))}function bh(t){return"Object("+t+")"}function dE(t){return t+" { ? }"}function $P(t,e,r,i){var n=i?yE(r,i):oa.call(r,", ");return t+" ("+e+") {"+n+"}"}function Poe(t){for(var e=0;e=0)return!1;return!0}function Loe(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=oa.call(Array(t.indent+1)," ");else return null;return{base:r,prev:oa.call(Array(e+1),r)}}function yE(t,e){if(t.length===0)return"";var r=` +`+e.prev+e.base;return r+oa.call(t,","+r)+` +`+e.prev}function pv(t,e){var r=vE(t),i=[];if(r){i.length=t.length;for(var n=0;n{"use strict";var EE=eu(),Ap=_P(),Boe=KP(),qoe=EE("%TypeError%"),hv=EE("%WeakMap%",!0),mv=EE("%Map%",!0),Foe=Ap("WeakMap.prototype.get",!0),$oe=Ap("WeakMap.prototype.set",!0),Moe=Ap("WeakMap.prototype.has",!0),joe=Ap("Map.prototype.get",!0),Uoe=Ap("Map.prototype.set",!0),Voe=Ap("Map.prototype.has",!0),CE=function(t,e){for(var r=t,i;(i=r.next)!==null;r=i)if(i.key===e)return r.next=i.next,i.next=t.next,t.next=i,i},Hoe=function(t,e){var r=CE(t,e);return r&&r.value},Goe=function(t,e,r){var i=CE(t,e);i?i.value=r:t.next={key:e,next:t.next,value:r}},zoe=function(t,e){return!!CE(t,e)};WP.exports=function(){var e,r,i,n={assert:function(s){if(!n.has(s))throw new qoe("Side channel does not contain "+Boe(s))},get:function(s){if(hv&&s&&(typeof s=="object"||typeof s=="function")){if(e)return Foe(e,s)}else if(mv){if(r)return joe(r,s)}else if(i)return Hoe(i,s)},has:function(s){if(hv&&s&&(typeof s=="object"||typeof s=="function")){if(e)return Moe(e,s)}else if(mv){if(r)return Voe(r,s)}else if(i)return zoe(i,s);return!1},set:function(s,a){hv&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new hv),$oe(e,s,a)):mv?(r||(r=new mv),Uoe(r,s,a)):(i||(i={key:{},next:null}),Goe(i,s,a))}};return n}});var gv=E((N$e,XP)=>{"use strict";var Koe=String.prototype.replace,Woe=/%20/g,SE={RFC1738:"RFC1738",RFC3986:"RFC3986"};XP.exports={default:SE.RFC3986,formatters:{RFC1738:function(t){return Koe.call(t,Woe,"+")},RFC3986:function(t){return String(t)}},RFC1738:SE.RFC1738,RFC3986:SE.RFC3986}});var AE=E((R$e,JP)=>{"use strict";var Yoe=gv(),_E=Object.prototype.hasOwnProperty,xc=Array.isArray,ua=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Xoe=function(e){for(;e.length>1;){var r=e.pop(),i=r.obj[r.prop];if(xc(i)){for(var n=[],s=0;s=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||s===Yoe.RFC1738&&(c===40||c===41)){o+=a.charAt(u);continue}if(c<128){o=o+ua[c];continue}if(c<2048){o=o+(ua[192|c>>6]+ua[128|c&63]);continue}if(c<55296||c>=57344){o=o+(ua[224|c>>12]+ua[128|c>>6&63]+ua[128|c&63]);continue}u+=1,c=65536+((c&1023)<<10|a.charCodeAt(u)&1023),o+=ua[240|c>>18]+ua[128|c>>12&63]+ua[128|c>>6&63]+ua[128|c&63]}return o},tue=function(e){for(var r=[{obj:{o:e},prop:"o"}],i=[],n=0;n{"use strict";var tL=YP(),vv=AE(),Eh=gv(),aue=Object.prototype.hasOwnProperty,ZP={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},io=Array.isArray,oue=Array.prototype.push,rL=function(t,e){oue.apply(t,io(e)?e:[e])},uue=Date.prototype.toISOString,eL=Eh.default,Li={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:vv.encode,encodeValuesOnly:!1,format:eL,formatter:Eh.formatters[eL],indices:!1,serializeDate:function(e){return uue.call(e)},skipNulls:!1,strictNullHandling:!1},cue=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},TE={},lue=function t(e,r,i,n,s,a,o,u,c,l,f,d,h,m,g,y){for(var b=e,w=y,S=0,x=!1;(w=w.get(TE))!==void 0&&!x;){var k=w.get(e);if(S+=1,typeof k<"u"){if(k===S)throw new RangeError("Cyclic object value");x=!0}typeof w.get(TE)>"u"&&(S=0)}if(typeof u=="function"?b=u(r,b):b instanceof Date?b=f(b):i==="comma"&&io(b)&&(b=vv.maybeMap(b,function(H){return H instanceof Date?f(H):H})),b===null){if(s)return o&&!m?o(r,Li.encoder,g,"key",d):r;b=""}if(cue(b)||vv.isBuffer(b)){if(o){var R=m?r:o(r,Li.encoder,g,"key",d);return[h(R)+"="+h(o(b,Li.encoder,g,"value",d))]}return[h(r)+"="+h(String(b))]}var L=[];if(typeof b>"u")return L;var j;if(i==="comma"&&io(b))m&&o&&(b=vv.maybeMap(b,o)),j=[{value:b.length>0?b.join(",")||null:void 0}];else if(io(u))j=u;else{var G=Object.keys(b);j=c?G.sort(c):G}for(var J=n&&io(b)&&b.length===1?r+"[]":r,q=0;q"u"?Li.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Li.charsetSentinel,delimiter:typeof e.delimiter>"u"?Li.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Li.encode,encoder:typeof e.encoder=="function"?e.encoder:Li.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Li.encodeValuesOnly,filter:s,format:i,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Li.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Li.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Li.strictNullHandling}};iL.exports=function(t,e){var r=t,i=pue(e),n,s;typeof i.filter=="function"?(s=i.filter,r=s("",r)):io(i.filter)&&(s=i.filter,n=s);var a=[];if(typeof r!="object"||r===null)return"";var o;e&&e.arrayFormat in ZP?o=e.arrayFormat:e&&"indices"in e?o=e.indices?"indices":"repeat":o="indices";var u=ZP[o];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=u==="comma"&&e&&e.commaRoundTrip;n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var l=tL(),f=0;f0?m+h:""}});var oL=E((P$e,aL)=>{"use strict";var Tp=AE(),DE=Object.prototype.hasOwnProperty,fue=Array.isArray,ai={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Tp.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},due=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},sL=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},hue="utf8=%26%2310003%3B",mue="utf8=%E2%9C%93",gue=function(e,r){var i={__proto__:null},n=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=r.parameterLimit===1/0?void 0:r.parameterLimit,a=n.split(r.delimiter,s),o=-1,u,c=r.charset;if(r.charsetSentinel)for(u=0;u-1&&(m=fue(m)?[m]:m),DE.call(i,h)?i[h]=Tp.combine(i[h],m):i[h]=m}return i},vue=function(t,e,r,i){for(var n=i?e:sL(e,r),s=t.length-1;s>=0;--s){var a,o=t[s];if(o==="[]"&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var u=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,c=parseInt(u,10);!r.parseArrays&&u===""?a={0:n}:!isNaN(c)&&o!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[],a[c]=n):u!=="__proto__"&&(a[u]=n)}n=a}return n},yue=function(e,r,i,n){if(e){var s=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,u=i.depth>0&&a.exec(s),c=u?s.slice(0,u.index):s,l=[];if(c){if(!i.plainObjects&&DE.call(Object.prototype,c)&&!i.allowPrototypes)return;l.push(c)}for(var f=0;i.depth>0&&(u=o.exec(s))!==null&&f"u"?ai.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?ai.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ai.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ai.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ai.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ai.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ai.comma,decoder:typeof e.decoder=="function"?e.decoder:ai.decoder,delimiter:typeof e.delimiter=="string"||Tp.isRegExp(e.delimiter)?e.delimiter:ai.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ai.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ai.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ai.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ai.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ai.strictNullHandling}};aL.exports=function(t,e){var r=bue(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var i=typeof t=="string"?gue(t,r):t,n=r.plainObjects?Object.create(null):{},s=Object.keys(i),a=0;a{"use strict";var xue=nL(),wue=oL(),Eue=gv();uL.exports={formats:Eue,parse:wue,stringify:xue}});var Sh=E(Jt=>{"use strict";var Ch=Jt&&Jt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.applyMixins=Jt.ExtensibleFunction=Jt.setCharset=Jt.compileTrust=Jt.compileQueryParser=Jt.compileETag=Jt.normalizeTypes=Jt.normalizeType=Jt.wetag=Jt.etag=void 0;var Cue=Ch(Wg()),lL=Ch(kO()),Sue=eE(),_ue=Ch(tE()),Aue=Ch(cL()),Tue=Ch(require("querystring")),kE=(t,e)=>t.split(e).map(r=>r.trim()),pL=t=>(e,r)=>{let i=Buffer.isBuffer(e)?e:Buffer.from(e,r);return(0,Cue.default)(i,t)},Due=t=>Aue.default.parse(t,{allowPrototypes:!0});Jt.etag=pL({weak:!1});Jt.wetag=pL({weak:!0});var kue=t=>~t.indexOf("/")?Nue(t):{value:Sue.mime.lookup(t),params:{}};Jt.normalizeType=kue;var Iue=t=>{let e=[];for(let r=0;r{let r=kE(t,";"),i={value:r[0],quality:1,params:{},originalIndex:e};for(let n=1;n{let e;if(typeof t=="function")return t;switch(t){case!0:case"weak":e=Jt.wetag;break;case!1:break;case"strong":e=Jt.etag;break;default:throw new TypeError(`unknown value for etag function: ${t}`)}return e};Jt.compileETag=Rue;var Oue=t=>{let e;if(typeof t=="function")return t;switch(t){case!0:case"simple":e=Tue.default.parse;break;case!1:break;case"extended":e=Due;break;default:throw new TypeError(`unknown value for query parser function: ${t}`)}return e};Jt.compileQueryParser=Oue;var Pue=t=>typeof t=="function"?t:t===!0?()=>!0:typeof t=="number"?(e,r)=>r{if(!t||!e)return t;let r=lL.default.parse(t);return r.parameters.charset=e,lL.default.format(r)};Jt.setCharset=Lue;var IE=class extends Function{constructor(e){return super(),Object.setPrototypeOf(e,new.target.prototype)}};Jt.ExtensibleFunction=IE;var Bue=(t,e)=>{e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(i=>{Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(r.prototype,i)||Object.create(null))})})};Jt.applyMixins=Bue});var dL=E((q$e,fL)=>{var Dp=1e3,kp=Dp*60,Ip=kp*60,wc=Ip*24,que=wc*7,Fue=wc*365.25;fL.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return $ue(t);if(r==="number"&&isFinite(t))return e.long?jue(t):Mue(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function $ue(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Fue;case"weeks":case"week":case"w":return r*que;case"days":case"day":case"d":return r*wc;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ip;case"minutes":case"minute":case"mins":case"min":case"m":return r*kp;case"seconds":case"second":case"secs":case"sec":case"s":return r*Dp;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Mue(t){var e=Math.abs(t);return e>=wc?Math.round(t/wc)+"d":e>=Ip?Math.round(t/Ip)+"h":e>=kp?Math.round(t/kp)+"m":e>=Dp?Math.round(t/Dp)+"s":t+"ms"}function jue(t){var e=Math.abs(t);return e>=wc?yv(t,e,wc,"day"):e>=Ip?yv(t,e,Ip,"hour"):e>=kp?yv(t,e,kp,"minute"):e>=Dp?yv(t,e,Dp,"second"):t+" ms"}function yv(t,e,r,i){var n=e>=r*1.5;return Math.round(t/r)+" "+i+(n?"s":"")}});var NE=E((F$e,hL)=>{function Uue(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=n,r.enabled=a,r.humanize=dL(),r.destroy=c,Object.keys(t).forEach(l=>{r[l]=t[l]}),r.names=[],r.skips=[],r.formatters={};function e(l){let f=0;for(let d=0;d{if(R==="%%")return"%";x++;let j=r.formatters[L];if(typeof j=="function"){let G=y[x];R=j.call(b,G),y.splice(x,1),x--}return R}),r.formatArgs.call(b,y),(b.log||r.log).apply(b,y)}return g.namespace=l,g.useColors=r.useColors(),g.color=r.selectColor(l),g.extend=i,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,m=r.enabled(l)),m),set:y=>{d=y}}),typeof r.init=="function"&&r.init(g),g}function i(l,f){let d=r(this.namespace+(typeof f>"u"?":":f)+l);return d.log=this.log,d}function n(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let f,d=(typeof l=="string"?l:"").split(/[\s,]+/),h=d.length;for(f=0;f"-"+f)].join(",");return r.enable(""),l}function a(l){if(l[l.length-1]==="*")return!0;let f,d;for(f=0,d=r.skips.length;f{Fn.formatArgs=Hue;Fn.save=Gue;Fn.load=zue;Fn.useColors=Vue;Fn.storage=Kue();Fn.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Fn.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Vue(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Hue(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+bv.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(i=r))}),t.splice(i,0,e)}Fn.log=console.debug||console.log||(()=>{});function Gue(t){try{t?Fn.storage.setItem("debug",t):Fn.storage.removeItem("debug")}catch{}}function zue(){let t;try{t=Fn.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Kue(){try{return localStorage}catch{}}bv.exports=NE()(Fn);var{formatters:Wue}=bv.exports;Wue.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var vL=E(($$e,gL)=>{"use strict";gL.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",i=e.indexOf(r+t),n=e.indexOf("--");return i!==-1&&(n===-1||i{"use strict";var Yue=require("os"),yL=require("tty"),ns=vL(),{env:oi}=process,nu;ns("no-color")||ns("no-colors")||ns("color=false")||ns("color=never")?nu=0:(ns("color")||ns("colors")||ns("color=true")||ns("color=always"))&&(nu=1);"FORCE_COLOR"in oi&&(oi.FORCE_COLOR==="true"?nu=1:oi.FORCE_COLOR==="false"?nu=0:nu=oi.FORCE_COLOR.length===0?1:Math.min(parseInt(oi.FORCE_COLOR,10),3));function RE(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function OE(t,e){if(nu===0)return 0;if(ns("color=16m")||ns("color=full")||ns("color=truecolor"))return 3;if(ns("color=256"))return 2;if(t&&!e&&nu===void 0)return 0;let r=nu||0;if(oi.TERM==="dumb")return r;if(process.platform==="win32"){let i=Yue.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in oi)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in oi)||oi.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in oi)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(oi.TEAMCITY_VERSION)?1:0;if(oi.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in oi){let i=parseInt((oi.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(oi.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(oi.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(oi.TERM)||"COLORTERM"in oi?1:r}function Xue(t){let e=OE(t,t&&t.isTTY);return RE(e)}bL.exports={supportsColor:Xue,stdout:RE(OE(!0,yL.isatty(1))),stderr:RE(OE(!0,yL.isatty(2)))}});var wL=E((Ei,wv)=>{var Que=require("tty"),xv=require("util");Ei.init=nce;Ei.log=tce;Ei.formatArgs=Zue;Ei.save=rce;Ei.load=ice;Ei.useColors=Jue;Ei.destroy=xv.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Ei.colors=[6,2,3,4,5,1];try{let t=PE();t&&(t.stderr||t).level>=2&&(Ei.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Ei.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,s)=>s.toUpperCase()),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[r]=i,t},{});function Jue(){return"colors"in Ei.inspectOpts?!!Ei.inspectOpts.colors:Que.isatty(process.stderr.fd)}function Zue(t){let{namespace:e,useColors:r}=this;if(r){let i=this.color,n="\x1B[3"+(i<8?i:"8;5;"+i),s=` ${n};1m${e} \x1B[0m`;t[0]=s+t[0].split(` +`).join(` +`+s),t.push(n+"m+"+wv.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ece()+e+" "+t[0]}function ece(){return Ei.inspectOpts.hideDate?"":new Date().toISOString()+" "}function tce(...t){return process.stderr.write(xv.format(...t)+` +`)}function rce(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ice(){return process.env.DEBUG}function nce(t){t.inspectOpts={};let e=Object.keys(Ei.inspectOpts);for(let r=0;re.trim()).join(" ")};xL.O=function(t){return this.inspectOpts.colors=this.useColors,xv.inspect(t,this.inspectOpts)}});var Ec=E((j$e,LE)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?LE.exports=mL():LE.exports=wL()});var _L=E((U$e,SL)=>{SL.exports=CL;var EL=/\((?!\?)/g;function CL(t,e,r){r=r||{},e=e||[];var i=r.strict,n=r.end!==!1,s=r.sensitive?"":"i",a=0,o=e.length,u=0,c=0,l;if(t instanceof RegExp){for(;l=EL.exec(t.source);)e.push({name:c++,optional:!1,offset:l.index});return t}if(Array.isArray(t))return t=t.map(function(h){return CL(h,e,r).source}),new RegExp("(?:"+t.join("|")+")",s);for(t=("^"+t+(i?"":t[t.length-1]==="/"?"?":"/?")).replace(/\/\(/g,"/(?:").replace(/([\/\.])/g,"\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g,function(h,m,g,y,b,w,S,x){m=m||"",g=g||"",b=b||"([^\\/"+g+"]+?)",S=S||"",e.push({name:y,optional:!!S,offset:x+a});var k=""+(S?"":m)+"(?:"+g+(S?m:"")+b+(w?"((?:[\\/"+g+"].+?)?)":"")+")"+S;return a+=k.length-h.length,k}).replace(/\*/g,function(h,m){for(var g=e.length;g-- >o&&e[g].offset>m;)e[g].offset+=3;return"(.*)"});l=EL.exec(t);){for(var f=0,d=l.index;t.charAt(--d)==="\\";)f++;f%2!==1&&((o+u===e.length||e[o+u].offset>l.index)&&e.splice(o+u,0,{name:c++,optional:!1,offset:l.index}),u++)}return t+=n?"$":t[t.length-1]==="/"?"":"(?=\\/|$)",new RegExp(t,s)}});var qE=E(Np=>{"use strict";var DL=Np&&Np.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Np,"__esModule",{value:!0});Np.Layer=void 0;var sce=DL(Ec()),ace=DL(_L()),oce=(0,sce.default)("express:router:layer"),uce=Object.prototype.hasOwnProperty,AL=t=>t&&typeof t=="object"&&typeof t.then=="function"&&typeof t.catch=="function",BE=class{constructor(e,r,i){this.keys=[],oce("new %o",e);let n=r||{};this.handle=i,this.name=i.name||"",this.params=void 0,this.path=void 0,this.regexp=(0,ace.default)(e,this.keys=[],n),this.regexp.fast_star=e==="*",this.regexp.fast_slash=e==="/"&&n.end===!1}handle_error(e,r,i,n){let s=this.handle;if(s.length!==4)return n(e);try{let a=s(e,r,i,n);AL(a)&&a.then(null,function(o){n(o||new Error("Rejected promise"))})}catch(a){n(a)}}handle_request(e,r,i){let n=this.handle;if(n.length>3)return i();try{let s=n(e,r,i);AL(s)&&s.then(null,function(a){i(a||new Error("Rejected promise"))})}catch(s){i(s)}}match(e){let r;if(e!=null){if(this.regexp.fast_slash)return this.params={},this.path="",!0;if(this.regexp.fast_star)return this.params={0:TL(e)},this.path=e,!0;r=this.regexp.exec(e)}if(!r)return this.params=void 0,this.path=void 0,!1;this.params={},this.path=r[0];let i=this.keys,n=this.params;for(let s=1;s{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});function cce(t){var e=[];return kL(t,e),e}FE.flatten=cce;function kL(t,e){for(var r=0;r{"use strict";var IL=require("http");NL.exports=lce()||pce();function lce(){return IL.METHODS&&IL.METHODS.map(function(e){return e.toLowerCase()})}function pce(){return["get","post","put","head","delete","options","trace","copy","lock","mkcol","move","purge","propfind","proppatch","unlock","report","mkactivity","checkout","merge","m-search","notify","subscribe","unsubscribe","patch","search","connect"]}});var $E=E(Rp=>{"use strict";var RL=Rp&&Rp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rp,"__esModule",{value:!0});Rp.Route=void 0;var OL=qE(),fce=RL(Ec()),PL=Ev(),dce=RL(Cv()),LL=(0,fce.default)("express:router:route"),BL=Array.prototype.slice,qL=Object.prototype.toString,Sv=class{constructor(e){this.stack=[],this.methods={},this.path=e,this.stack=[],LL("new %o",e),this.methods={}}_handles_method(e){if(this.methods._all)return!0;let r=e.toLowerCase();return r==="head"&&!this.methods.head&&(r="get"),!!this.methods[r]}_options(){let e=Object.keys(this.methods);this.methods.get&&!this.methods.head&&e.push("head");for(let r=0;r{FL=$L.exports=function(t,e){if(t&&e)for(var r in e)t[r]=e[r];return t}});var Op=E((K$e,jE)=>{"use strict";var jL=require("url"),ML=jL.parse,_v=jL.Url;jE.exports=UL;jE.exports.original=hce;function UL(t){var e=t.url;if(e!==void 0){var r=t._parsedUrl;return HL(e,r)?r:(r=VL(e),r._raw=e,t._parsedUrl=r)}}function hce(t){var e=t.originalUrl;if(typeof e!="string")return UL(t);var r=t._parsedOriginalUrl;return HL(e,r)?r:(r=VL(e),r._raw=e,t._parsedOriginalUrl=r)}function VL(t){if(typeof t!="string"||t.charCodeAt(0)!==47)return ML(t);for(var e=t,r=null,i=null,n=1;n{"use strict";var Tv=Cc&&Cc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.Router=void 0;var mce=Sh(),GL=qE(),gce=$E(),vce=Tv(Ec()),yce=Tv(Cv()),bce=Ev(),UE=Tv(ME()),xce=Tv(Op()),wce=[...yce.default,"all"],Av=(0,vce.default)("express:router"),Ece=/^\[object (\S+)\]$/,zL=Array.prototype.slice,Cce=Object.prototype.toString,_h=class extends mce.ExtensibleFunction{constructor(e={}){super((s,a,o)=>this.handle(s,a,o)),this._params={},this.params={},this.stack=[];let{caseSensitive:r=!1,mergeParams:i=!1,strict:n=!1}=e;this.caseSensitive=r,this.mergeParams=i,this.strict=n}param(e,r){if(!r)throw new TypeError("argument fn is required");if(typeof r!="function")throw new TypeError("argument fn must be a function");let i=this.params[e];return i||(i=this.params[e]=[]),i.push(r),this}handle(e,r,i){let n=this;Av("dispatching %s %s",e.method,e.url);let s=0,a=Ace(e.url)||"",o="",u=!1,c={},l=[],f=n.stack,d=e.params,h=e.baseUrl||"",m=Ice(i,e,"baseUrl","next","params");e.next=g,e.method==="OPTIONS"&&(m=Rce(m,function(b,w){if(w||l.length===0)return b(w);Nce(r,l,b)})),e.baseUrl=h,e.originalUrl=e.originalUrl||e.url,g();function g(b){let w=b==="route"?null:b;if(u&&(e.url=e.url.substring(1),u=!1),o.length!==0&&(e.baseUrl=h,e.url=a+o+e.url.substring(a.length),o=""),w==="router"){setImmediate(m,null);return}if(s>=f.length){setImmediate(m,w);return}let S=_ce(e);if(S==null)return m(w);let x,k,R;for(;k!==!0&&s=o.length)return s();if(l=0,f=o[u++],c=f.name,d=i.params[c],h=a[c],m=r[c],d===void 0||!h)return g();if(m&&(m.match===d||m.error&&m.error!=="route"))return i.params[c]=m.value,g(m.error);r[c]=m={error:null,match:d,value:d},y()}function y(b){let w=h[l++];if(m.value=i.params[f.name],b){m.error=b,g(b);return}if(!w)return g();try{w(i,n,y,d,f.name)}catch(S){y(S)}}g()}use(e){let r=0,i="/";if(typeof e!="function"){let s=e;for(;Array.isArray(s)&&s.length!==0;)s=s[0];typeof s!="function"&&(r=1,i=e)}let n=(0,bce.flatten)(zL.call(arguments,r));if(n.length===0)throw new TypeError("Router.use() requires a middleware function");for(let s=0;s");let o=new GL.Layer(i,{sensitive:this.caseSensitive,strict:!1,end:!1},a);o.route=void 0,this.stack.push(o)}return this}route(e){let r=new gce.Route(e),i=new GL.Layer(e,{sensitive:this.caseSensitive,strict:this.strict,end:!0},r.dispatch.bind(r));return i.route=r,this.stack.push(i),r}};Cc.Router=_h;wce.concat("all").forEach(function(t){_h.prototype[t]=function(e){let r=this.route(e);return r[t].apply(r,zL.call(arguments,1)),this}});function Sce(t,e){for(let r=0;r=0;i--)t[i+n]=t[i],i{"use strict";var WL=Pp&&Pp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pp,"__esModule",{value:!0});Pp.View=void 0;var Sc=require("path"),Oce=WL(Ec()),Pce=WL(require("fs")),Dv=(0,Oce.default)("express:view"),HE=class{constructor(e,r){if(this.defaultEngine=r.defaultEngine,this.ext=(0,Sc.extname)(e),this.name=e,this.root=r.root,!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");let i=e;if(this.ext||(this.ext=this.defaultEngine[0]!=="."?`.${this.defaultEngine}`:this.defaultEngine,i+=this.ext),!r.engines[this.ext]){let n=this.ext.substring(1);Dv('require "%s"',n);let s=require(n).__express;if(typeof s!="function")throw new Error(`Module "${n}" does not provide a view engine.`);r.engines[this.ext]=s}this.engine=r.engines[this.ext],this.path=this.lookup(i)}lookup(e){let r,i=[].concat(this.root);Dv('lookup "%s"',e);for(let n=0;n{var Ah=1e3,Th=Ah*60,Dh=Th*60,kh=Dh*24,Lce=kh*365.25;XL.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Bce(t);if(r==="number"&&isNaN(t)===!1)return e.long?Fce(t):qce(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Bce(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Lce;case"days":case"day":case"d":return r*kh;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Dh;case"minutes":case"minute":case"mins":case"min":case"m":return r*Th;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ah;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function qce(t){return t>=kh?Math.round(t/kh)+"d":t>=Dh?Math.round(t/Dh)+"h":t>=Th?Math.round(t/Th)+"m":t>=Ah?Math.round(t/Ah)+"s":t+"ms"}function Fce(t){return kv(t,kh,"day")||kv(t,Dh,"hour")||kv(t,Th,"minute")||kv(t,Ah,"second")||t+" ms"}function kv(t,e,r){if(!(t{qt=JL.exports=zE.debug=zE.default=zE;qt.coerce=Vce;qt.disable=jce;qt.enable=Mce;qt.enabled=Uce;qt.humanize=QL();qt.names=[];qt.skips=[];qt.formatters={};var GE;function $ce(t){var e=0,r;for(r in t)e=(e<<5)-e+t.charCodeAt(r),e|=0;return qt.colors[Math.abs(e)%qt.colors.length]}function zE(t){function e(){if(e.enabled){var r=e,i=+new Date,n=i-(GE||i);r.diff=n,r.prev=GE,r.curr=i,GE=i;for(var s=new Array(arguments.length),a=0;a{zi=e6.exports=KE();zi.log=zce;zi.formatArgs=Gce;zi.save=Kce;zi.load=ZL;zi.useColors=Hce;zi.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:Wce();zi.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function Hce(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}zi.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function Gce(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+zi.humanize(this.diff),!!e){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,function(s){s!=="%%"&&(i++,s==="%c"&&(n=i))}),t.splice(n,0,r)}}function zce(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Kce(t){try{t==null?zi.storage.removeItem("debug"):zi.storage.debug=t}catch{}}function ZL(){var t;try{t=zi.storage.debug}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}zi.enable(ZL());function Wce(){try{return window.localStorage}catch{}}});var s6=E((ui,n6)=>{var r6=require("tty"),Ih=require("util");ui=n6.exports=KE();ui.init=tle;ui.log=Jce;ui.formatArgs=Qce;ui.save=Zce;ui.load=i6;ui.useColors=Xce;ui.colors=[6,2,3,4,5,1];ui.inspectOpts=Object.keys(process.env).filter(function(t){return/^debug_/i.test(t)}).reduce(function(t,e){var r=e.substring(6).toLowerCase().replace(/_([a-z])/g,function(n,s){return s.toUpperCase()}),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[r]=i,t},{});var Lp=parseInt(process.env.DEBUG_FD,10)||2;Lp!==1&&Lp!==2&&Ih.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var Yce=Lp===1?process.stdout:Lp===2?process.stderr:ele(Lp);function Xce(){return"colors"in ui.inspectOpts?!!ui.inspectOpts.colors:r6.isatty(Lp)}ui.formatters.o=function(t){return this.inspectOpts.colors=this.useColors,Ih.inspect(t,this.inspectOpts).split(` +`).map(function(e){return e.trim()}).join(" ")};ui.formatters.O=function(t){return this.inspectOpts.colors=this.useColors,Ih.inspect(t,this.inspectOpts)};function Qce(t){var e=this.namespace,r=this.useColors;if(r){var i=this.color,n=" \x1B[3"+i+";1m"+e+" \x1B[0m";t[0]=n+t[0].split(` +`).join(` +`+n),t.push("\x1B[3"+i+"m+"+ui.humanize(this.diff)+"\x1B[0m")}else t[0]=new Date().toUTCString()+" "+e+" "+t[0]}function Jce(){return Yce.write(Ih.format.apply(Ih,arguments)+` +`)}function Zce(t){t==null?delete process.env.DEBUG:process.env.DEBUG=t}function i6(){return process.env.DEBUG}function ele(t){var e,r=process.binding("tty_wrap");switch(r.guessHandleType(t)){case"TTY":e=new r6.WriteStream(t),e._type="tty",e._handle&&e._handle.unref&&e._handle.unref();break;case"FILE":var i=require("fs");e=new i.SyncWriteStream(t,{autoClose:!1}),e._type="fs";break;case"PIPE":case"TCP":var n=require("net");e=new n.Socket({fd:t,readable:!1,writable:!0}),e.readable=!1,e.read=null,e._type="pipe",e._handle&&e._handle.unref&&e._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return e.fd=t,e._isStdio=!0,e}function tle(t){t.inspectOpts={};for(var e=Object.keys(ui.inspectOpts),r=0;r{typeof process<"u"&&process.type==="renderer"?WE.exports=t6():WE.exports=s6()});var Iv=E((J$e,YE)=>{"use strict";YE.exports=ile;YE.exports.isFinished=c6;var o6=ule(),u6=zw(),rle=typeof setImmediate=="function"?setImmediate:function(t){process.nextTick(t.bind.apply(t,arguments))};function ile(t,e){return c6(t)!==!1?(rle(e,null,t),t):(sle(t,cle(e)),t)}function c6(t){var e=t.socket;if(typeof t.finished=="boolean")return!!(t.finished||e&&!e.writable);if(typeof t.complete=="boolean")return!!(t.upgrade||!e||!e.readable||t.complete&&!t.readable)}function nle(t,e){var r,i,n=!1;function s(o){r.cancel(),i.cancel(),n=!0,e(o)}r=i=u6([[t,"end","finish"]],s);function a(o){t.removeListener("socket",a),!n&&r===i&&(i=u6([[o,"error","close"]],s))}if(t.socket){a(t.socket);return}t.on("socket",a),t.socket===void 0&&ole(t,a)}function sle(t,e){var r=t.__onFinished;(!r||!r.queue)&&(r=t.__onFinished=ale(t),nle(t,r)),r.queue.push(e)}function ale(t){function e(r){if(t.__onFinished===e&&(t.__onFinished=null),!!e.queue){var i=e.queue;e.queue=null;for(var n=0;n{lle.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var Nh=E((eMe,f6)=>{"use strict";var XE=l6();f6.exports=Is;Is.message=XE;Is.code=ple(XE);Is.codes=fle(XE);Is.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};Is.empty={204:!0,205:!0,304:!0};Is.retry={502:!0,503:!0,504:!0};function ple(t){var e={};return Object.keys(t).forEach(function(i){var n=t[i],s=Number(i);e[n.toLowerCase()]=s}),e}function fle(t){return Object.keys(t).map(function(r){return Number(r)})}function dle(t){var e=t.toLowerCase();if(!Object.prototype.hasOwnProperty.call(Is.code,e))throw new Error('invalid status message: "'+t+'"');return Is.code[e]}function p6(t){if(!Object.prototype.hasOwnProperty.call(Is.message,t))throw new Error("invalid status code: "+t);return Is.message[t]}function Is(t){if(typeof t=="number")return p6(t);if(typeof t!="string")throw new TypeError("code must be a number or string");var e=parseInt(t,10);return isNaN(e)?dle(t):p6(e)}});var h6=E((tMe,d6)=>{"use strict";d6.exports=mle;function hle(t){for(var e=t.listeners("data"),r=0;r{"use strict";var QE=a6()("finalhandler"),gle=fp(),vle=dp(),g6=Iv(),yle=Op(),v6=Nh(),ble=h6(),xle=/\x20{2}/g,wle=/\n/g,Ele=typeof setImmediate=="function"?setImmediate:function(t){process.nextTick(t.bind.apply(t,arguments))},Cle=g6.isFinished;function Sle(t){var e=vle(t).replace(wle,"
").replace(xle,"  ");return` + + + +Error + + +
`+e+`
+ + +`}y6.exports=_le;function _le(t,e,r){var i=r||{},n=i.env||process.env.NODE_ENV||"development",s=i.onerror;return function(a){var o,u,c;if(!a&&m6(e)){QE("cannot 404 after headers sent");return}if(a?(c=Dle(a),c===void 0?c=Ile(e):o=Ale(a),u=Tle(a,c,n)):(c=404,u="Cannot "+t.method+" "+gle(kle(t))),QE("default %s",c),a&&s&&Ele(s,a,t,e),m6(e)){QE("cannot %d after headers sent",c),t.socket.destroy();return}Nle(t,e,c,o,u)}}function Ale(t){if(!(!t.headers||typeof t.headers!="object")){for(var e=Object.create(null),r=Object.keys(t.headers),i=0;i=400&&t.status<600)return t.status;if(typeof t.statusCode=="number"&&t.statusCode>=400&&t.statusCode<600)return t.statusCode}function kle(t){try{return yle.original(t).pathname}catch{return"resource"}}function Ile(t){var e=t.statusCode;return(typeof e!="number"||e<400||e>599)&&(e=500),e}function m6(t){return typeof t.headersSent!="boolean"?!!t._header:t.headersSent}function Nle(t,e,r,i,n){function s(){var a=Sle(n);if(e.statusCode=r,e.statusMessage=v6.message[r],e.removeHeader("Content-Encoding"),e.removeHeader("Content-Language"),e.removeHeader("Content-Range"),Rle(e,i),e.setHeader("Content-Security-Policy","default-src 'none'"),e.setHeader("X-Content-Type-Options","nosniff"),e.setHeader("Content-Type","text/html; charset=utf-8"),e.setHeader("Content-Length",Buffer.byteLength(a,"utf8")),t.method==="HEAD"){e.end();return}e.end(a,"utf8")}if(Cle(t)){s();return}ble(t),g6(t,s),t.resume()}function Rle(t,e){if(e)for(var r=Object.keys(e),i=0;i{"use strict";var Rh=_c&&_c.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_c,"__esModule",{value:!0});_c.Express=void 0;var Rv=Sh(),Ole=require("events"),Ple=Sh(),Lle=VE(),Ble=YL(),qle=Rh(Ec()),Fle=Rh(b6()),$le=Ev(),Mle=Rh(require("http")),JE=Rh(ME()),eC=Rh(Cv()),jle=require("path"),Nv=(0,qle.default)("express:application"),x6=Array.prototype.slice,ZE="@@symbol:trust_proxy_default",Bp=class extends Ple.ExtensibleFunction{constructor(){super((e,r,i)=>this.handle(e,r,i)),this.cache={},this.engines={},this.settings={}}init(){this.cache={},this.engines={},this.settings={},this.defaultConfiguration()}defaultConfiguration(){let e=process.env.NODE_ENV||"development";this.enable("x-powered-by"),this.set("etag","weak"),this.set("env",e),this.set("query parser","extended"),this.set("subdomain offset",2),this.set("trust proxy",!1),Object.defineProperty(this.settings,ZE,{configurable:!0,value:!0}),Nv("booting in %s mode",e),this.on("mount",function(i){this.settings[ZE]===!0&&typeof i.settings["trust proxy fn"]=="function"&&(delete this.settings["trust proxy"],delete this.settings["trust proxy fn"]),Object.setPrototypeOf(this.request,i.request),Object.setPrototypeOf(this.response,i.response),Object.setPrototypeOf(this.engines,i.engines),Object.setPrototypeOf(this.settings,i.settings)}),this.locals=Object.create(null),this.mountpath="/",this.locals.settings=this.settings,this.set("view",Ble.View),this.set("views",(0,jle.resolve)("views")),this.set("jsonp callback name","callback"),e==="production"&&this.enable("view cache")}get router(){return this._router||(this._router=new Lle.Router({caseSensitive:this.enabled("case sensitive routing"),strict:this.enabled("strict routing")})),this._router}handle(e,r,i){let n=this.router,s=i||(0,Fle.default)(e,r,{env:this.get("env"),onerror:Ule.bind(this)});if(!n){Nv("no routes defined on app"),s();return}this.enabled("x-powered-by")&&r.setHeader("X-Powered-By","Express"),e.res=r,r.req=e,e.__proto__=this.request,r.__proto__=this.response,r.locals||(r.locals=Object.create(null)),n.handle(e,r,s)}use(e){let r=0,i="/";if(typeof e!="function"){let o=e;for(;Array.isArray(o)&&o.length!==0;)o=o[0];typeof o!="function"&&(r=1,i=e)}let n=(0,$le.flatten)(x6.call(arguments,r));if(n.length===0)throw new TypeError("app.use() requires a middleware function");let s=this.router,a=this;return n.forEach(function(o){if(!o||!o.handle||!o.set)return s.use(i,o);Nv(".use app under %s",i),o.mountpath=i,o.parent=a,s.use(i,function(c,l,f){let d=c.app;o.handle(c,l,function(h){Object.setPrototypeOf(c,d.request),Object.setPrototypeOf(l,d.response),f(h)})}),o.emit("mount",a)},this),this}route(e){return this.router.route(e)}engine(e,r){if(typeof r!="function")throw new Error("callback function required");let i=e[0]!=="."?`.${e}`:e;return this.engines[i]=r,this}param(e,r){if(Array.isArray(e)){for(let i=0;i1?`directories "${c.root.slice(0,-1).join('", "')}" or "${c.root[c.root.length-1]}"`:`directory "${c.root}"`,d=new Error(`Failed to lookup view "${e}" in views ${f}`);return d.view=c,s(d)}u.cache&&(n[e]=c)}Vle(c,u,s)}listen(...e){return Mle.default.createServer(this).listen(...e)}};_c.Express=Bp;eC.default.forEach(function(t){Bp.prototype[t]=function(...e){if(t==="get"&&arguments.length===1)return this.set(e[0]);let r=this.router.route(e[0]);return r[t].apply(r,x6.call(e,1)),this}});function Ule(t){this.get("env")!=="test"&&console.error(t.stack||t.toString())}function Vle(t,e,r){try{t.render(e,r)}catch(i){r(i)}}(0,Rv.applyMixins)(Bp,[Ole.EventEmitter]);_c.default=Bp});var iC=E((nMe,S6)=>{var Hle=require("path").relative;S6.exports=Yle;var Gle=process.cwd();function E6(t,e){for(var r=t.split(/[ ,]+/),i=String(e).toLowerCase(),n=0;n0}function Qle(t){if(process.noDeprecation)return!0;var e=process.env.NO_DEPRECATION||"";return E6(e,t)}function Jle(t){if(process.traceDeprecation)return!0;var e=process.env.TRACE_DEPRECATION||"";return E6(e,t)}function Ov(t,e){var r=Xle(process,"deprecation");if(!(!r&&this._ignored)){var i,n,s,a,o=0,u=!1,c=Pv(),l=this._file;for(e?(a=e,s=qp(c[1]),s.name=a.name,l=s[0]):(o=2,a=qp(c[o]),s=a);o",r=t.getLineNumber(),i=t.getColumnNumber();t.isEval()&&(e=t.getEvalOrigin()+", "+e);var n=[e,r,i];return n.callSite=t,n.name=t.getFunctionName(),n}function w6(t){var e=t.callSite,r=t.name;r||(r="");var i=e.getThis(),n=i&&e.getTypeName();return n==="Object"&&(n=void 0),n==="Function"&&(n=i.name||n),n&&e.getMethodName()?n+"."+r:r}function Zle(t,e,r){var i=new Date().toUTCString(),n=i+" "+this._namespace+" deprecated "+t;if(this._traced){for(var s=0;s{"use strict";var npe=iC()("http-errors"),_6=Ow(),Fp=Nh(),nC=qw(),spe=Fw();Ac.exports=Lv;Ac.exports.HttpError=ape();Ac.exports.isHttpError=upe(Ac.exports.HttpError);lpe(Ac.exports,Fp.codes,Ac.exports.HttpError);function A6(t){return+(String(t).charAt(0)+"00")}function Lv(){for(var t,e,r=500,i={},n=0;n=600)&&npe("non-error status code; use only 4xx or 5xx status codes"),(typeof r!="number"||!Fp.message[r]&&(r<400||r>=600))&&(r=500);var o=Lv[r]||Lv[A6(r)];t||(t=o?new o(e):new Error(e||Fp.message[r]),Error.captureStackTrace(t,Lv)),(!o||!(t instanceof o)||t.status!==r)&&(t.expose=r<500,t.status=t.statusCode=r);for(var u in i)u!=="status"&&u!=="statusCode"&&(t[u]=i[u]);return t}function ape(){function t(){throw new TypeError("cannot construct abstract class")}return nC(t,Error),t}function ope(t,e,r){var i=D6(e);function n(s){var a=s??Fp.message[r],o=new Error(a);return Error.captureStackTrace(o,n),_6(o,n.prototype),Object.defineProperty(o,"message",{enumerable:!0,configurable:!0,value:a,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:i,writable:!0}),o}return nC(n,t),T6(n,i),n.prototype.status=r,n.prototype.statusCode=r,n.prototype.expose=!0,n}function upe(t){return function(r){return!r||typeof r!="object"?!1:r instanceof t?!0:r instanceof Error&&typeof r.expose=="boolean"&&typeof r.statusCode=="number"&&r.status===r.statusCode}}function cpe(t,e,r){var i=D6(e);function n(s){var a=s??Fp.message[r],o=new Error(a);return Error.captureStackTrace(o,n),_6(o,n.prototype),Object.defineProperty(o,"message",{enumerable:!0,configurable:!0,value:a,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:i,writable:!0}),o}return nC(n,t),T6(n,i),n.prototype.status=r,n.prototype.statusCode=r,n.prototype.expose=!1,n}function T6(t,e){var r=Object.getOwnPropertyDescriptor(t,"name");r&&r.configurable&&(r.value=e,Object.defineProperty(t,"name",r))}function lpe(t,e,r){e.forEach(function(n){var s,a=spe(Fp.message[n]);switch(A6(n)){case 400:s=ope(r,a,n);break;case 500:s=cpe(r,a,n);break}s&&(t[n]=s,t[a]=s)})}function D6(t){return t.substr(-5)!=="Error"?t+"Error":t}});var N6=E((aMe,I6)=>{var Oh=1e3,Ph=Oh*60,Lh=Ph*60,Bh=Lh*24,ppe=Bh*365.25;I6.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return fpe(t);if(r==="number"&&isNaN(t)===!1)return e.long?hpe(t):dpe(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function fpe(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*ppe;case"days":case"day":case"d":return r*Bh;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Lh;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ph;case"seconds":case"second":case"secs":case"sec":case"s":return r*Oh;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function dpe(t){return t>=Bh?Math.round(t/Bh)+"d":t>=Lh?Math.round(t/Lh)+"h":t>=Ph?Math.round(t/Ph)+"m":t>=Oh?Math.round(t/Oh)+"s":t+"ms"}function hpe(t){return Bv(t,Bh,"day")||Bv(t,Lh,"hour")||Bv(t,Ph,"minute")||Bv(t,Oh,"second")||t+" ms"}function Bv(t,e,r){if(!(t{Ft=R6.exports=aC.debug=aC.default=aC;Ft.coerce=bpe;Ft.disable=vpe;Ft.enable=gpe;Ft.enabled=ype;Ft.humanize=N6();Ft.names=[];Ft.skips=[];Ft.formatters={};var sC;function mpe(t){var e=0,r;for(r in t)e=(e<<5)-e+t.charCodeAt(r),e|=0;return Ft.colors[Math.abs(e)%Ft.colors.length]}function aC(t){function e(){if(e.enabled){var r=e,i=+new Date,n=i-(sC||i);r.diff=n,r.prev=sC,r.curr=i,sC=i;for(var s=new Array(arguments.length),a=0;a{Ki=P6.exports=oC();Ki.log=Epe;Ki.formatArgs=wpe;Ki.save=Cpe;Ki.load=O6;Ki.useColors=xpe;Ki.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:Spe();Ki.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function xpe(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Ki.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function wpe(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+Ki.humanize(this.diff),!!e){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,function(s){s!=="%%"&&(i++,s==="%c"&&(n=i))}),t.splice(n,0,r)}}function Epe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Cpe(t){try{t==null?Ki.storage.removeItem("debug"):Ki.storage.debug=t}catch{}}function O6(){var t;try{t=Ki.storage.debug}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}Ki.enable(O6());function Spe(){try{return window.localStorage}catch{}}});var $6=E((ci,F6)=>{var B6=require("tty"),qh=require("util");ci=F6.exports=oC();ci.init=Npe;ci.log=Dpe;ci.formatArgs=Tpe;ci.save=kpe;ci.load=q6;ci.useColors=Ape;ci.colors=[6,2,3,4,5,1];ci.inspectOpts=Object.keys(process.env).filter(function(t){return/^debug_/i.test(t)}).reduce(function(t,e){var r=e.substring(6).toLowerCase().replace(/_([a-z])/g,function(n,s){return s.toUpperCase()}),i=process.env[e];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[r]=i,t},{});var $p=parseInt(process.env.DEBUG_FD,10)||2;$p!==1&&$p!==2&&qh.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var _pe=$p===1?process.stdout:$p===2?process.stderr:Ipe($p);function Ape(){return"colors"in ci.inspectOpts?!!ci.inspectOpts.colors:B6.isatty($p)}ci.formatters.o=function(t){return this.inspectOpts.colors=this.useColors,qh.inspect(t,this.inspectOpts).split(` +`).map(function(e){return e.trim()}).join(" ")};ci.formatters.O=function(t){return this.inspectOpts.colors=this.useColors,qh.inspect(t,this.inspectOpts)};function Tpe(t){var e=this.namespace,r=this.useColors;if(r){var i=this.color,n=" \x1B[3"+i+";1m"+e+" \x1B[0m";t[0]=n+t[0].split(` +`).join(` +`+n),t.push("\x1B[3"+i+"m+"+ci.humanize(this.diff)+"\x1B[0m")}else t[0]=new Date().toUTCString()+" "+e+" "+t[0]}function Dpe(){return _pe.write(qh.format.apply(qh,arguments)+` +`)}function kpe(t){t==null?delete process.env.DEBUG:process.env.DEBUG=t}function q6(){return process.env.DEBUG}function Ipe(t){var e,r=process.binding("tty_wrap");switch(r.guessHandleType(t)){case"TTY":e=new B6.WriteStream(t),e._type="tty",e._handle&&e._handle.unref&&e._handle.unref();break;case"FILE":var i=require("fs");e=new i.SyncWriteStream(t,{autoClose:!1}),e._type="fs";break;case"PIPE":case"TCP":var n=require("net");e=new n.Socket({fd:t,readable:!1,writable:!0}),e.readable=!1,e.read=null,e._type="pipe",e._handle&&e._handle.unref&&e._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return e.fd=t,e._isStdio=!0,e}function Npe(t){t.inspectOpts={};for(var e=Object.keys(ci.inspectOpts),r=0;r{typeof process<"u"&&process.type==="renderer"?uC.exports=L6():uC.exports=$6()});var V6=E((uMe,U6)=>{"use strict";var Rpe=require("events").EventEmitter,Ope=require("fs").ReadStream,j6=require("stream"),Tc=require("zlib");U6.exports=Ppe;function Ppe(t,e){return Mpe(t)?Lpe(t):jpe(t)?qpe(t):Fpe(t)&&t.destroy(),$pe(t)&&e&&(t.removeAllListeners("error"),t.addListener("error",Upe)),t}function Lpe(t){t.destroy(),typeof t.close=="function"&&t.on("open",Hpe)}function Bpe(t){if(t._hadError===!0){var e=t._binding===null?"_binding":"_handle";t[e]={close:function(){this[e]=null}}}t.close()}function qpe(t){typeof t.destroy=="function"?t._binding?(t.destroy(),t._processing?(t._needDrain=!0,t.once("drain",Vpe)):t._binding.clear()):t._destroy&&t._destroy!==j6.Transform.prototype._destroy?t.destroy():t._destroy&&typeof t.close=="function"?(t.destroyed=!0,t.close()):t.destroy():typeof t.close=="function"&&Bpe(t)}function Fpe(t){return t instanceof j6&&typeof t.destroy=="function"}function $pe(t){return t instanceof Rpe}function Mpe(t){return t instanceof Ope}function jpe(t){return t instanceof Tc.Gzip||t instanceof Tc.Gunzip||t instanceof Tc.Deflate||t instanceof Tc.DeflateRaw||t instanceof Tc.Inflate||t instanceof Tc.InflateRaw||t instanceof Tc.Unzip}function Upe(){}function Vpe(){this._binding.clear()}function Hpe(){typeof this.fd=="number"&&this.close()}});var G6=E((cMe,H6)=>{var Mp=1e3,jp=Mp*60,Up=jp*60,Dc=Up*24,Gpe=Dc*7,zpe=Dc*365.25;H6.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Kpe(t);if(r==="number"&&isFinite(t))return e.long?Ype(t):Wpe(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Kpe(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*zpe;case"weeks":case"week":case"w":return r*Gpe;case"days":case"day":case"d":return r*Dc;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Up;case"minutes":case"minute":case"mins":case"min":case"m":return r*jp;case"seconds":case"second":case"secs":case"sec":case"s":return r*Mp;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Wpe(t){var e=Math.abs(t);return e>=Dc?Math.round(t/Dc)+"d":e>=Up?Math.round(t/Up)+"h":e>=jp?Math.round(t/jp)+"m":e>=Mp?Math.round(t/Mp)+"s":t+"ms"}function Ype(t){var e=Math.abs(t);return e>=Dc?qv(t,e,Dc,"day"):e>=Up?qv(t,e,Up,"hour"):e>=jp?qv(t,e,jp,"minute"):e>=Mp?qv(t,e,Mp,"second"):t+" ms"}function qv(t,e,r,i){var n=e>=r*1.5;return Math.round(t/r)+" "+i+(n?"s":"")}});var eB=E((lMe,mC)=>{"use strict";var cC=k6(),_r=M6()("send"),kc=iC()("send"),Xpe=V6(),Qpe=fp(),pC=dp(),Jpe=Wg(),Zpe=Qg(),$v=require("fs"),fC=Gw(),W6=G6(),efe=Iv(),tfe=Zg(),Fh=require("path"),rfe=Nh(),Y6=require("stream"),ife=require("util"),nfe=Fh.extname,X6=Fh.join,lC=Fh.normalize,hC=Fh.resolve,Fv=Fh.sep,sfe=/^ *bytes=/,Q6=60*60*24*365*1e3,z6=/(?:^|[\\/])\.\.(?:[\\/]|$)/;mC.exports=afe;mC.exports.mime=fC;function afe(t,e,r){return new $t(t,e,r)}function $t(t,e,r){Y6.call(this);var i=r||{};if(this.options=i,this.path=e,this.req=t,this._acceptRanges=i.acceptRanges!==void 0?!!i.acceptRanges:!0,this._cacheControl=i.cacheControl!==void 0?!!i.cacheControl:!0,this._etag=i.etag!==void 0?!!i.etag:!0,this._dotfiles=i.dotfiles!==void 0?i.dotfiles:"ignore",this._dotfiles!=="ignore"&&this._dotfiles!=="allow"&&this._dotfiles!=="deny")throw new TypeError('dotfiles option must be "allow", "deny", or "ignore"');this._hidden=!!i.hidden,i.hidden!==void 0&&kc("hidden: use dotfiles: '"+(this._hidden?"allow":"ignore")+"' instead"),i.dotfiles===void 0&&(this._dotfiles=void 0),this._extensions=i.extensions!==void 0?dC(i.extensions,"extensions option"):[],this._immutable=i.immutable!==void 0?!!i.immutable:!1,this._index=i.index!==void 0?dC(i.index,"index option"):["index.html"],this._lastModified=i.lastModified!==void 0?!!i.lastModified:!0,this._maxage=i.maxAge||i.maxage,this._maxage=typeof this._maxage=="string"?W6(this._maxage):Number(this._maxage),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),Q6),this._root=i.root?hC(i.root):null,!this._root&&i.from&&this.from(i.from)}ife.inherits($t,Y6);$t.prototype.etag=kc.function(function(e){return this._etag=!!e,_r("etag %s",this._etag),this},"send.etag: pass etag as option");$t.prototype.hidden=kc.function(function(e){return this._hidden=!!e,this._dotfiles=void 0,_r("hidden %s",this._hidden),this},"send.hidden: use dotfiles option");$t.prototype.index=kc.function(function(e){var r=e?dC(e,"paths argument"):[];return _r("index %o",e),this._index=r,this},"send.index: pass index as option");$t.prototype.root=function(e){return this._root=hC(String(e)),_r("root %s",this._root),this};$t.prototype.from=kc.function($t.prototype.root,"send.from: pass root as option");$t.prototype.root=kc.function($t.prototype.root,"send.root: pass root as option");$t.prototype.maxage=kc.function(function(e){return this._maxage=typeof e=="string"?W6(e):Number(e),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),Q6),_r("max-age %d",this._maxage),this},"send.maxage: pass maxAge as option");$t.prototype.error=function(e,r){if(Z6(this,"error"))return this.emit("error",lfe(e,r));var i=this.res,n=rfe.message[e]||String(e),s=J6("Error",pC(n));ofe(i),r&&r.headers&&mfe(i,r.headers),i.statusCode=e,i.setHeader("Content-Type","text/html; charset=UTF-8"),i.setHeader("Content-Length",Buffer.byteLength(s)),i.setHeader("Content-Security-Policy","default-src 'none'"),i.setHeader("X-Content-Type-Options","nosniff"),i.end(s)};$t.prototype.hasTrailingSlash=function(){return this.path[this.path.length-1]==="/"};$t.prototype.isConditionalGET=function(){return this.req.headers["if-match"]||this.req.headers["if-unmodified-since"]||this.req.headers["if-none-match"]||this.req.headers["if-modified-since"]};$t.prototype.isPreconditionFailure=function(){var e=this.req,r=this.res,i=e.headers["if-match"];if(i){var n=r.getHeader("ETag");return!n||i!=="*"&&hfe(i).every(function(o){return o!==n&&o!=="W/"+n&&"W/"+o!==n})}var s=Mv(e.headers["if-unmodified-since"]);if(!isNaN(s)){var a=Mv(r.getHeader("Last-Modified"));return isNaN(a)||a>s}return!1};$t.prototype.removeContentHeaderFields=function(){var e=this.res;e.removeHeader("Content-Encoding"),e.removeHeader("Content-Language"),e.removeHeader("Content-Length"),e.removeHeader("Content-Range"),e.removeHeader("Content-Type")};$t.prototype.notModified=function(){var e=this.res;_r("not modified"),this.removeContentHeaderFields(),e.statusCode=304,e.end()};$t.prototype.headersAlreadySent=function(){var e=new Error("Can't set headers after they are sent.");_r("headers already sent"),this.error(500,e)};$t.prototype.isCachable=function(){var e=this.res.statusCode;return e>=200&&e<300||e===304};$t.prototype.onStatError=function(e){switch(e.code){case"ENAMETOOLONG":case"ENOENT":case"ENOTDIR":this.error(404,e);break;default:this.error(500,e);break}};$t.prototype.isFresh=function(){return Zpe(this.req.headers,{etag:this.res.getHeader("ETag"),"last-modified":this.res.getHeader("Last-Modified")})};$t.prototype.isRangeFresh=function(){var e=this.req.headers["if-range"];if(!e)return!0;if(e.indexOf('"')!==-1){var r=this.res.getHeader("ETag");return!!(r&&e.indexOf(r)!==-1)}var i=this.res.getHeader("Last-Modified");return Mv(i)<=Mv(e)};$t.prototype.redirect=function(e){var r=this.res;if(Z6(this,"directory")){this.emit("directory",r,e);return}if(this.hasTrailingSlash()){this.error(403);return}var i=Qpe(ufe(this.path+"/")),n=J6("Redirecting",'Redirecting to '+pC(i)+"");r.statusCode=301,r.setHeader("Content-Type","text/html; charset=UTF-8"),r.setHeader("Content-Length",Buffer.byteLength(n)),r.setHeader("Content-Security-Policy","default-src 'none'"),r.setHeader("X-Content-Type-Options","nosniff"),r.setHeader("Location",i),r.end(n)};$t.prototype.pipe=function(e){var r=this._root;this.res=e;var i=pfe(this.path);if(i===-1)return this.error(400),e;if(~i.indexOf("\0"))return this.error(400),e;var n;if(r!==null){if(i&&(i=lC("."+Fv+i)),z6.test(i))return _r('malicious path "%s"',i),this.error(403),e;n=i.split(Fv),i=lC(X6(r,i))}else{if(z6.test(i))return _r('malicious path "%s"',i),this.error(403),e;n=lC(i).split(Fv),i=hC(i)}if(cfe(n)){var s=this._dotfiles;switch(s===void 0&&(s=n[n.length-1][0]==="."?this._hidden?"allow":"ignore":"allow"),_r('%s dotfile "%s"',s,i),s){case"allow":break;case"deny":return this.error(403),e;case"ignore":default:return this.error(404),e}}return this._index.length&&this.hasTrailingSlash()?(this.sendIndex(i),e):(this.sendFile(i),e)};$t.prototype.send=function(e,r){var i=r.size,n=this.options,s={},a=this.res,o=this.req,u=o.headers.range,c=n.start||0;if(dfe(a)){this.headersAlreadySent();return}if(_r('pipe "%s"',e),this.setHeader(e,r),this.type(e),this.isConditionalGET()){if(this.isPreconditionFailure()){this.error(412);return}if(this.isCachable()&&this.isFresh()){this.notModified();return}}if(i=Math.max(0,i-c),n.end!==void 0){var l=n.end-c+1;i>l&&(i=l)}if(this._acceptRanges&&sfe.test(u)){if(u=tfe(i,u,{combine:!0}),this.isRangeFresh()||(_r("range stale"),u=-2),u===-1)return _r("range unsatisfiable"),a.setHeader("Content-Range",K6("bytes",i)),this.error(416,{headers:{"Content-Range":a.getHeader("Content-Range")}});u!==-2&&u.length===1&&(_r("range %j",u),a.statusCode=206,a.setHeader("Content-Range",K6("bytes",i,u[0])),c+=u[0].start,i=u[0].end-u[0].start+1)}for(var f in n)s[f]=n[f];if(s.start=c,s.end=Math.max(c,c+i-1),a.setHeader("Content-Length",i),o.method==="HEAD"){a.end();return}this.stream(e,s)};$t.prototype.sendFile=function(e){var r=0,i=this;_r('stat "%s"',e),$v.stat(e,function(a,o){if(a&&a.code==="ENOENT"&&!nfe(e)&&e[e.length-1]!==Fv)return n(a);if(a)return i.onStatError(a);if(o.isDirectory())return i.redirect(e);i.emit("file",e,o),i.send(e,o)});function n(s){if(i._extensions.length<=r)return s?i.onStatError(s):i.error(404);var a=e+"."+i._extensions[r++];_r('stat "%s"',a),$v.stat(a,function(o,u){if(o)return n(o);if(u.isDirectory())return n();i.emit("file",a,u),i.send(a,u)})}};$t.prototype.sendIndex=function(e){var r=-1,i=this;function n(s){if(++r>=i._index.length)return s?i.onStatError(s):i.error(404);var a=X6(e,i._index[r]);_r('stat "%s"',a),$v.stat(a,function(o,u){if(o)return n(o);if(u.isDirectory())return n();i.emit("file",a,u),i.send(a,u)})}n()};$t.prototype.stream=function(e,r){var i=this,n=this.res,s=$v.createReadStream(e,r);this.emit("stream",s),s.pipe(n);function a(){Xpe(s,!0)}efe(n,a),s.on("error",function(u){a(),i.onStatError(u)}),s.on("end",function(){i.emit("end")})};$t.prototype.type=function(e){var r=this.res;if(!r.getHeader("Content-Type")){var i=fC.lookup(e);if(!i){_r("no content-type");return}var n=fC.charsets.lookup(i);_r("content-type %s",i),r.setHeader("Content-Type",i+(n?"; charset="+n:""))}};$t.prototype.setHeader=function(e,r){var i=this.res;if(this.emit("headers",i,e,r),this._acceptRanges&&!i.getHeader("Accept-Ranges")&&(_r("accept ranges"),i.setHeader("Accept-Ranges","bytes")),this._cacheControl&&!i.getHeader("Cache-Control")){var n="public, max-age="+Math.floor(this._maxage/1e3);this._immutable&&(n+=", immutable"),_r("cache-control %s",n),i.setHeader("Cache-Control",n)}if(this._lastModified&&!i.getHeader("Last-Modified")){var s=r.mtime.toUTCString();_r("modified %s",s),i.setHeader("Last-Modified",s)}if(this._etag&&!i.getHeader("ETag")){var a=Jpe(r);_r("etag %s",a),i.setHeader("ETag",a)}};function ofe(t){for(var e=ffe(t),r=0;r1?"/"+t.substr(e):t}function cfe(t){for(var e=0;e1&&r[0]===".")return!0}return!1}function K6(t,e,r){return t+" "+(r?r.start+"-"+r.end:"*")+"/"+e}function J6(t,e){return` + + + +`+t+` + + +
`+e+`
+ + +`}function lfe(t,e){return e?e instanceof Error?cC(t,e,{expose:!1}):cC(t,e):cC(t)}function pfe(t){try{return decodeURIComponent(t)}catch{return-1}}function ffe(t){return typeof t.getHeaderNames!="function"?Object.keys(t._headers||{}):t.getHeaderNames()}function Z6(t,e){var r=typeof t.listenerCount!="function"?t.listeners(e).length:t.listenerCount(e);return r>0}function dfe(t){return typeof t.headersSent!="boolean"?!!t._header:t.headersSent}function dC(t,e){for(var r=[].concat(t||[]),i=0;i{"use strict";var gfe=fp(),tB=dp(),gC=Op(),vfe=require("path").resolve,rB=eB(),yfe=require("url");vC.exports=bfe;vC.exports.mime=rB.mime;function bfe(t,e){if(!t)throw new TypeError("root path required");if(typeof t!="string")throw new TypeError("root path must be a string");var r=Object.create(e||null),i=r.fallthrough!==!1,n=r.redirect!==!1,s=r.setHeaders;if(s&&typeof s!="function")throw new TypeError("option setHeaders must be function");r.maxage=r.maxage||r.maxAge||0,r.root=vfe(t);var a=n?Cfe():Efe();return function(u,c,l){if(u.method!=="GET"&&u.method!=="HEAD"){if(i)return l();c.statusCode=405,c.setHeader("Allow","GET, HEAD"),c.setHeader("Content-Length","0"),c.end();return}var f=!i,d=gC.original(u),h=gC(u).pathname;h==="/"&&d.pathname.substr(-1)!=="/"&&(h="");var m=rB(u,h,r);m.on("directory",a),s&&m.on("headers",s),i&&m.on("file",function(){f=!0}),m.on("error",function(y){if(f||!(y.statusCode<500)){l(y);return}l()}),m.pipe(c)}}function xfe(t){for(var e=0;e1?"/"+t.substr(e):t}function wfe(t,e){return` + + + +`+t+` + + +
`+e+`
+ + +`}function Efe(){return function(){this.error(404)}}function Cfe(){return function(e){if(this.hasTrailingSlash()){this.error(404);return}var r=gC.original(this.req);r.path=null,r.pathname=xfe(r.pathname+"/");var i=gfe(yfe.format(r)),n=wfe("Redirecting",'Redirecting to '+tB(i)+"");e.statusCode=301,e.setHeader("Content-Type","text/html; charset=UTF-8"),e.setHeader("Content-Length",Buffer.byteLength(n)),e.setHeader("Content-Security-Policy","default-src 'none'"),e.setHeader("X-Content-Type-Options","nosniff"),e.setHeader("Location",i),e.end(n)}}});var oB=E((fMe,yC)=>{"use strict";yC.exports=aB;yC.exports.preferredCharsets=aB;var Sfe=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function _fe(t){for(var e=t.split(","),r=0,i=0;r0}});var fB=E((dMe,bC)=>{"use strict";bC.exports=pB;bC.exports.preferredEncodings=pB;var Ife=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function Nfe(t){for(var e=t.split(","),r=!1,i=1,n=0,s=0;n0}});var vB=E((hMe,xC)=>{"use strict";xC.exports=gB;xC.exports.preferredLanguages=gB;var Lfe=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function Bfe(t){for(var e=t.split(","),r=0,i=0;r0}});var CB=E((mMe,wC)=>{"use strict";wC.exports=wB;wC.exports.preferredMediaTypes=wB;var Mfe=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function jfe(t){for(var e=zfe(t),r=0,i=0;r0)if(s.every(function(a){return e.params[a]=="*"||(e.params[a]||"").toLowerCase()==(i.params[a]||"").toLowerCase()}))n|=1;else return null;return{i:r,o:e.i,q:e.q,s:n}}function wB(t,e){var r=jfe(t===void 0?"*/*":t||"");if(!e)return r.filter(bB).sort(yB).map(Hfe);var i=e.map(function(s,a){return Ufe(s,r,a)});return i.filter(bB).sort(yB).map(function(s){return e[i.indexOf(s)]})}function yB(t,e){return e.q-t.q||e.s-t.s||t.o-e.o||t.i-e.i||0}function Hfe(t){return t.type+"/"+t.subtype}function bB(t){return t.q>0}function EB(t){for(var e=0,r=0;(r=t.indexOf('"',r))!==-1;)e++,r++;return e}function Gfe(t){var e=t.indexOf("="),r,i;return e===-1?r=t:(r=t.substr(0,e),i=t.substr(e+1)),[r,i]}function zfe(t){for(var e=t.split(","),r=1,i=0;r{"use strict";var Wfe=oB(),Yfe=fB(),Xfe=vB(),Qfe=CB();EC.exports=Kt;EC.exports.Negotiator=Kt;function Kt(t){if(!(this instanceof Kt))return new Kt(t);this.request=t}Kt.prototype.charset=function(e){var r=this.charsets(e);return r&&r[0]};Kt.prototype.charsets=function(e){return Wfe(this.request.headers["accept-charset"],e)};Kt.prototype.encoding=function(e){var r=this.encodings(e);return r&&r[0]};Kt.prototype.encodings=function(e){return Yfe(this.request.headers["accept-encoding"],e)};Kt.prototype.language=function(e){var r=this.languages(e);return r&&r[0]};Kt.prototype.languages=function(e){return Xfe(this.request.headers["accept-language"],e)};Kt.prototype.mediaType=function(e){var r=this.mediaTypes(e);return r&&r[0]};Kt.prototype.mediaTypes=function(e){return Qfe(this.request.headers.accept,e)};Kt.prototype.preferredCharset=Kt.prototype.charset;Kt.prototype.preferredCharsets=Kt.prototype.charsets;Kt.prototype.preferredEncoding=Kt.prototype.encoding;Kt.prototype.preferredEncodings=Kt.prototype.encodings;Kt.prototype.preferredLanguage=Kt.prototype.language;Kt.prototype.preferredLanguages=Kt.prototype.languages;Kt.prototype.preferredMediaType=Kt.prototype.mediaType;Kt.prototype.preferredMediaTypes=Kt.prototype.mediaTypes});var _B=E((vMe,Jfe)=>{Jfe.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var TB=E((yMe,AB)=>{AB.exports=_B()});var Uv=E(vn=>{"use strict";var jv=TB(),Zfe=require("path").extname,DB=/^\s*([^;\s]*)(?:;|\s|$)/,ede=/^text\//i;vn.charset=kB;vn.charsets={lookup:kB};vn.contentType=tde;vn.extension=rde;vn.extensions=Object.create(null);vn.lookup=ide;vn.types=Object.create(null);nde(vn.extensions,vn.types);function kB(t){if(!t||typeof t!="string")return!1;var e=DB.exec(t),r=e&&jv[e[1].toLowerCase()];return r&&r.charset?r.charset:e&&ede.test(e[1])?"UTF-8":!1}function tde(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?vn.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var r=vn.charset(e);r&&(e+="; charset="+r.toLowerCase())}return e}function rde(t){if(!t||typeof t!="string")return!1;var e=DB.exec(t),r=e&&vn.extensions[e[1].toLowerCase()];return!r||!r.length?!1:r[0]}function ide(t){if(!t||typeof t!="string")return!1;var e=Zfe("x."+t).toLowerCase().substr(1);return e&&vn.types[e]||!1}function nde(t,e){var r=["nginx","apache",void 0,"iana"];Object.keys(jv).forEach(function(n){var s=jv[n],a=s.extensions;if(!(!a||!a.length)){t[n]=a;for(var o=0;ol||c===l&&e[u].substr(0,12)==="application/"))continue}e[u]=n}}})}});var NB=E((xMe,IB)=>{"use strict";var sde=SB(),ade=Uv();IB.exports=$n;function $n(t){if(!(this instanceof $n))return new $n(t);this.headers=t.headers,this.negotiator=new sde(t)}$n.prototype.type=$n.prototype.types=function(t){var e=t;if(e&&!Array.isArray(e)){e=new Array(arguments.length);for(var r=0;r{var RB=/; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g,cde=/^[\u0020-\u007e\u0080-\u00ff]+$/,PB=/^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/,lde=/\\([\u0000-\u007f])/g,pde=/([\\"])/g,fde=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,OB=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,dde=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;CC.format=hde;CC.parse=mde;function hde(t){if(!t||typeof t!="object")throw new TypeError("argument obj is required");var e=t.parameters,r=t.subtype,i=t.suffix,n=t.type;if(!n||!OB.test(n))throw new TypeError("invalid type");if(!r||!fde.test(r))throw new TypeError("invalid subtype");var s=n+"/"+r;if(i){if(!OB.test(i))throw new TypeError("invalid suffix");s+="+"+i}if(e&&typeof e=="object")for(var a,o=Object.keys(e).sort(),u=0;u0&&!cde.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(pde,"\\$1")+'"'}function yde(t){var e=dde.exec(t.toLowerCase());if(!e)throw new TypeError("invalid media type");var r=e[1],i=e[2],n,s=i.lastIndexOf("+");s!==-1&&(n=i.substr(s+1),i=i.substr(0,s));var a={type:r,subtype:i,suffix:n};return a}});var jB=E((EMe,Vp)=>{"use strict";var BB=LB(),bde=Uv();Vp.exports=xde;Vp.exports.is=qB;Vp.exports.hasBody=FB;Vp.exports.normalize=$B;Vp.exports.match=MB;function qB(t,e){var r,i=e,n=Ede(t);if(!n)return!1;if(i&&!Array.isArray(i))for(i=new Array(arguments.length-1),r=0;r2){r=new Array(arguments.length-1);for(var i=0;i{"use strict";var Gp=Hp&&Hp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hp,"__esModule",{value:!0});Hp.req=void 0;var Cde=Gp(Zg()),Sde=require("http"),Vv=Gp(NB()),_de=Gp(Qg()),Ade=require("net"),Tde=Gp(Op()),UB=Gp(tE()),Dde=Gp(jB()),SC=class extends Sde.IncomingMessage{constructor(){super(...arguments),this.params={},this.body={}}header(e){if(!e)throw new TypeError("name argument is required to req.get");if(typeof e!="string")throw new TypeError("name must be a string to req.get");let r=e.toLowerCase();switch(r){case"referer":case"referrer":return this.headers.referrer||this.headers.referer;default:return this.headers[r]}}get(e){return this.header(e)}accepts(...e){return(0,Vv.default)(this).types(...e)}acceptsEncodings(...e){return(0,Vv.default)(this).encodings(...e)}acceptsCharsets(...e){return(0,Vv.default)(this).charsets(...e)}acceptsLanguages(...e){return(0,Vv.default)(this).languages(...e)}range(e,r={}){let{combine:i=!1}=r,n=this.get("Range");if(n)return(0,Cde.default)(e,n,{combine:i})}get query(){var e;let r=this.app.get("query parser fn");if(!r)return Object.create(null);let i=(e=(0,Tde.default)(this))===null||e===void 0?void 0:e.query;return r(i)}is(e){let r=e;if(!Array.isArray(e)){r=new Array(arguments.length);for(let i=0;i=200&&i<300||i===304?(0,_de.default)(this.headers,{etag:r.get("ETag"),"last-modified":r.get("Last-Modified")}):!1}get stale(){return!this.fresh}get xhr(){return(this.get("X-Requested-With")||"").toLowerCase()==="xmlhttprequest"}};Hp.req=Object.create(SC.prototype)});var GB=E((AC,HB)=>{var Hv=require("buffer"),ca=Hv.Buffer;function VB(t,e){for(var r in t)e[r]=t[r]}ca.from&&ca.alloc&&ca.allocUnsafe&&ca.allocUnsafeSlow?HB.exports=Hv:(VB(Hv,AC),AC.Buffer=Ic);function Ic(t,e,r){return ca(t,e,r)}Ic.prototype=Object.create(ca.prototype);VB(ca,Ic);Ic.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ca(t,e,r)};Ic.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=ca(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Ic.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ca(t)};Ic.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Hv.SlowBuffer(t)}});var QB=E((SMe,TC)=>{"use strict";TC.exports=$de;TC.exports.parse=Vde;var zB=require("path").basename,kde=GB().Buffer,Ide=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,Nde=/%[0-9A-Fa-f]{2}/,Rde=/%([0-9A-Fa-f]{2})/g,WB=/[^\x20-\x7e\xa0-\xff]/g,Ode=/\\([\u0000-\u007f])/g,Pde=/([\\"])/g,KB=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,Lde=/^[\x20-\x7e\x80-\xff]+$/,Bde=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,qde=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,Fde=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function $de(t,e){var r=e||{},i=r.type||"attachment",n=Mde(t,r.fallback);return jde(new XB(i,n))}function Mde(t,e){if(t!==void 0){var r={};if(typeof t!="string")throw new TypeError("filename must be a string");if(e===void 0&&(e=!0),typeof e!="string"&&typeof e!="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof e=="string"&&WB.test(e))throw new TypeError("fallback must be ISO-8859-1 string");var i=zB(t),n=Lde.test(i),s=typeof e!="string"?e&&YB(i):zB(e),a=typeof s=="string"&&s!==i;return(a||!n||Nde.test(i))&&(r["filename*"]=i),(n||a)&&(r.filename=a?s:i),r}}function jde(t){var e=t.parameters,r=t.type;if(!r||typeof r!="string"||!Bde.test(r))throw new TypeError("invalid type");var i=String(r).toLowerCase();if(e&&typeof e=="object")for(var n,s=Object.keys(e).sort(),a=0;a{"use strict";DC.parse=Xde;DC.serialize=Qde;var Wde=decodeURIComponent,Yde=encodeURIComponent,Gv=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Xde(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var r={},i=e||{},n=t.split(";"),s=i.decode||Wde,a=0;a{var ZB=require("crypto");zv.sign=function(t,e){if(typeof t!="string")throw new TypeError("Cookie value must be provided as a string.");if(e==null)throw new TypeError("Secret key must be provided.");return t+"."+ZB.createHmac("sha256",e).update(t).digest("base64").replace(/\=+$/,"")};zv.unsign=function(t,e){if(typeof t!="string")throw new TypeError("Signed cookie string must be provided.");if(e==null)throw new TypeError("Secret key must be provided.");var r=t.slice(0,t.lastIndexOf(".")),i=zv.sign(r,e),n=Buffer.from(i),s=Buffer.from(t);return n.length===s.length&&ZB.timingSafeEqual(n,s)?r:!1}});var IC=E((TMe,kC)=>{"use strict";kC.exports=ehe;kC.exports.append=r8;var Zde=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function r8(t,e){if(typeof t!="string")throw new TypeError("header argument is required");if(!e)throw new TypeError("field argument is required");for(var r=Array.isArray(e)?e:t8(String(e)),i=0;i{"use strict";var the=ss&&ss.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),rhe=ss&&ss.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ihe=ss&&ss.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&the(e,t,r);return rhe(e,t),e},Nc=ss&&ss.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ss,"__esModule",{value:!0});ss.res=void 0;var NC=require("path"),RC=Sh(),Kv=ihe(eE()),nhe=require("http"),i8=Nc(QB()),she=Nc(JB()),ahe=Nc(fp()),ohe=Nc(dp()),uhe=Nc(Iv()),che=e8(),lhe=Nc(Nh()),phe=Nc(IC()),n8=/;\s*charset\s*=/,OC=t=>{try{return(0,lhe.default)(t)}catch{return String(t)}},PC=class extends nhe.ServerResponse{status(e){return this.statusCode=e,this}links(e){let r=this.get("Link")||"";return r&&(r+=", "),this.set("Link",r+Object.keys(e).map(function(i){return`<${e[i]}>; rel="${i}"`}).join(", "))}send(e){let r=e,i,n=this.req,s,a=this.app;switch(typeof r){case"string":this.get("Content-Type")||this.type("html");break;case"boolean":case"number":case"object":if(r===null)r="";else if(Buffer.isBuffer(r))this.get("Content-Type")||this.type("bin");else return this.json(r);break}typeof r=="string"&&(i="utf8",s=this.get("Content-Type"),typeof s=="string"&&this.set("Content-Type",(0,RC.setCharset)(s,"utf-8")));let o=a.get("etag fn"),u=!this.get("ETag")&&typeof o=="function",c;r!==void 0&&(Buffer.isBuffer(r)?c=r.length:!u&&r.length<1e3?c=Buffer.byteLength(r,i):(r=Buffer.from(r,i),i=void 0,c=r.length),this.set("Content-Length",c));let l;return u&&c!==void 0&&(l=o(r,i))&&this.set("ETag",l),n.fresh&&(this.statusCode=304),(this.statusCode===204||this.statusCode===304)&&(this.removeHeader("Content-Type"),this.removeHeader("Content-Length"),this.removeHeader("Transfer-Encoding"),r=""),n.method==="HEAD"?this.end():this.end(r,i),this}json(e){let r=this.app,i=r.get("json escape"),n=r.get("json replacer"),s=r.get("json spaces"),a=s8(e,n,s,i);return this.get("Content-Type")||this.set("Content-Type","application/json"),this.send(a)}jsonp(e){let r=this.app,i=r.get("json escape"),n=r.get("json replacer"),s=r.get("json spaces"),a=s8(e,n,s,i),o=this.req.query[r.get("jsonp callback name")];return this.get("Content-Type")||(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","application/json")),Array.isArray(o)&&(o=o[0]),typeof o=="string"&&o.length!==0&&(this.set("X-Content-Type-Options","nosniff"),this.set("Content-Type","text/javascript"),o=o.replace(/[^[\]\w$.]/g,""),a=a.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"),a=`/**/ typeof ${o} === 'function' && ${o}(${a});`),this.send(a)}sendStatus(e){let r=OC(e)||String(e);return this.statusCode=e,this.type("txt"),this.send(r)}sendFile(e,r,i){let n=i,s=this.req,a=this,o=s.next,u=r||{};if(!e)throw new TypeError("path argument is required to res.sendFile");if(typeof e!="string")throw new TypeError("path must be a string to res.sendFile");if(typeof r=="function"&&(n=r,u={}),!u.root&&!(0,NC.isAbsolute)(e))throw new TypeError("path must be absolute or specify root to res.sendFile");let c=encodeURI(e),l=(0,Kv.default)(s,c,u);fhe(a,l,u,function(f){if(n)return n(f);if(f&&f.code==="EISDIR")return o();f&&f.code!=="ECONNABORTED"&&f.syscall!=="write"&&o(f)})}download(e,r,i,n){let s=n,a=r,o=i||null;typeof r=="function"?(s=r,a=null,o=null):typeof i=="function"&&(s=i,o=null);let u={"Content-Disposition":(0,i8.default)(a||e)};if(o&&o.headers){let l=Object.keys(o.headers);for(let f=0;f0?r.accepts(s):!1;if(this.vary("Accept"),a&&typeof a=="string")this.set("Content-Type",(0,RC.normalizeType)(a).value),e[a](r,this,i);else if(n)n();else{let o=new Error("Not Acceptable");o.status=o.statusCode=406,o.types=(0,RC.normalizeTypes)(s).map(function(u){return u.value}),i(o)}return this}attachment(e){return e&&this.type((0,NC.extname)(e)),this.set("Content-Disposition",(0,i8.default)(e)),this}append(e,r){let i=this.get(e),n=r;return i&&(n=Array.isArray(i)?i.concat(r):Array.isArray(r)?[i].concat(r):[i,r]),this.set(e,n)}header(e,r){if(arguments.length===2){let i=Array.isArray(r)?r.map(String):String(r);if(e.toLowerCase()==="content-type"){if(Array.isArray(i))throw new TypeError("Content-Type cannot be set to an Array");if(!n8.test(i)){let n=Kv.mime.charsets.lookup(i.split(";")[0]);n&&(i+=`; charset=${n.toLowerCase()}`)}}this.setHeader(e,i)}else for(let i in e)this.set(i,e[i]);return this}set(e,r){if(arguments.length===2){let i=Array.isArray(r)?r.map(String):String(r);if(e.toLowerCase()==="content-type"){if(Array.isArray(i))throw new TypeError("Content-Type cannot be set to an Array");if(!n8.test(i)){let n=Kv.mime.charsets.lookup(i.split(";")[0]);n&&(i+=`; charset=${n.toLowerCase()}`)}}this.setHeader(e,i)}else for(let i in e)this.set(i,e[i]);return this}get(e){return this.getHeader(e)}clearCookie(e,r){let i=Object.assign({expires:new Date(1),path:"/"},r);return this.cookie(e,"",i)}cookie(e,r,i={}){let n=Object.assign({},i),s=this.req.secret,a=n.signed;if(a&&!s)throw new Error('cookieParser("secret") required for signed cookies');let o=typeof r=="object"?`j:${JSON.stringify(r)}`:String(r);return a&&(o=`s:${(0,che.sign)(o,s)}`),typeof n.maxAge<"u"&&(n.expires=new Date(Date.now()+n.maxAge),n.maxAge/=1e3),n.path==null&&(n.path="/"),this.append("Set-Cookie",she.default.serialize(e,String(o),n)),this}location(e){let r=e;return e==="back"&&(r=this.req.get("Referrer")||"/"),this.set("Location",(0,ahe.default)(r))}redirect(e){let r=e,i,n=302;arguments.length===2&&(n=arguments[0],r=arguments[1]),r=this.location(r).get("Location"),this.format({text:function(){i=`${OC(n)}. Redirecting to ${r}`},html:function(){let s=(0,ohe.default)(r);i=`

${OC(n)}. Redirecting to ${s}

`},default:function(){i=""}}),this.statusCode=n,this.set("Content-Length",Buffer.byteLength(i)),this.req.method==="HEAD"?this.end():this.end(i)}vary(e){return(0,phe.default)(this,e),this}render(e,r,i){let n=this.req.app,s=i,a=r||{},o=this.req,u=this;typeof r=="function"&&(s=r,a={}),a._locals=u.locals,s=s||function(c,l){if(c)return o.next(c);u.send(l)},n.render(e,a,s)}},fhe=(t,e,r,i)=>{let n=!1,s;function a(){if(n)return;n=!0;let h=new Error("Request aborted");h.code="ECONNABORTED",i(h)}function o(){if(n)return;n=!0;let h=new Error("EISDIR, read");h.code="EISDIR",i(h)}function u(h){n||(n=!0,i(h))}function c(){n||(n=!0,i())}function l(){s=!1}function f(h){if(h&&h.code==="ECONNRESET")return a();if(h)return u(h);n||setImmediate(function(){if(s!==!1&&!n){a();return}n||(n=!0,i())})}function d(){s=!0}e.on("directory",o),e.on("end",c),e.on("error",u),e.on("file",l),e.on("stream",d),(0,uhe.default)(t,f),r.headers&&e.on("headers",function(m){let g=r.headers,y=Object.keys(g);for(let b=0;b{let n=e||r?JSON.stringify(t,e,r):JSON.stringify(t);return i&&(n=n.replace(/[<>&]/g,function(s){switch(s.charCodeAt(0)){case 60:return"\\u003c";case 62:return"\\u003e";case 38:return"\\u0026";default:return s}})),n};ss.res=Object.create(PC.prototype)});var o8=E(a8=>{"use strict";Object.defineProperty(a8,"__esModule",{value:!0})});var c8=E(br=>{"use strict";var dhe=br&&br.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),hhe=br&&br.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&dhe(e,t,r)},mhe=br&&br.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(br,"__esModule",{value:!0});br.Static=br.Router=br.Route=br.response=br.request=br.application=br.express=void 0;var ghe=tC(),vhe=$E();Object.defineProperty(br,"Route",{enumerable:!0,get:function(){return vhe.Route}});var yhe=VE();Object.defineProperty(br,"Router",{enumerable:!0,get:function(){return yhe.Router}});var bhe=mhe(iB());br.Static=bhe.default;var xhe=_C(),whe=LC(),u8=()=>{let t=new ghe.Express;return t.request=Object.create(xhe.req,{app:{configurable:!0,enumerable:!0,writable:!0,value:t}}),t.response=Object.create(whe.res,{app:{configurable:!0,enumerable:!0,writable:!0,value:t}}),t.init(),t};br.express=u8;br.default=u8;var Ehe=tC();Object.defineProperty(br,"application",{enumerable:!0,get:function(){return Ehe.Express}});var Che=_C();Object.defineProperty(br,"request",{enumerable:!0,get:function(){return Che.req}});var She=LC();Object.defineProperty(br,"response",{enumerable:!0,get:function(){return She.res}});hhe(o8(),br)});var su=E((NMe,l8)=>{"use strict";l8.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var A8=E((RMe,_8)=>{var h8=require("fs"),no=require("path"),m8=require("os"),g8=typeof __webpack_require__=="function"?__non_webpack_require__:require,_he=process.config&&process.config.variables||{},Ahe=!!process.env.PREBUILDS_ONLY,p8=process.versions.modules,BC=khe()?"electron":Dhe()?"node-webkit":"node",qC=process.env.npm_config_arch||m8.arch(),FC=process.env.npm_config_platform||m8.platform(),v8=process.env.LIBC||(Ihe(FC)?"musl":"glibc"),$C=process.env.ARM_VERSION||(qC==="arm64"?"8":_he.arm_version)||"",y8=(process.versions.uv||"").split(".")[0];_8.exports=la;function la(t){return g8(la.resolve(t))}la.resolve=la.path=function(t){t=no.resolve(t||".");try{var e=g8(no.join(t,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[e+"_PREBUILD"]&&(t=process.env[e+"_PREBUILD"])}catch{}if(!Ahe){var r=f8(no.join(t,"build/Release"),d8);if(r)return r;var i=f8(no.join(t,"build/Debug"),d8);if(i)return i}var n=o(t);if(n)return n;var s=o(no.dirname(process.execPath));if(s)return s;var a=["platform="+FC,"arch="+qC,"runtime="+BC,"abi="+p8,"uv="+y8,$C?"armv="+$C:"","libc="+v8,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"",typeof __webpack_require__=="function"?"webpack=true":""].filter(Boolean).join(" ");throw new Error("No native build was found for "+a+` + loaded from: `+t+` +`);function o(u){var c=MC(no.join(u,"prebuilds")).map(b8),l=c.filter(x8(FC,qC)).sort(w8)[0];if(l){var f=no.join(u,"prebuilds",l.name),d=MC(f).map(E8),h=d.filter(C8(BC,p8)),m=h.sort(S8(BC))[0];if(m)return no.join(f,m.file)}}};function MC(t){try{return h8.readdirSync(t)}catch{return[]}}function f8(t,e){var r=MC(t).filter(e);return r[0]&&no.join(t,r[0])}function d8(t){return/\.node$/.test(t)}function b8(t){var e=t.split("-");if(e.length===2){var r=e[0],i=e[1].split("+");if(r&&i.length&&i.every(Boolean))return{name:t,platform:r,architectures:i}}}function x8(t,e){return function(r){return r==null||r.platform!==t?!1:r.architectures.includes(e)}}function w8(t,e){return t.architectures.length-e.architectures.length}function E8(t){var e=t.split("."),r=e.pop(),i={file:t,specificity:0};if(r==="node"){for(var n=0;nr.specificity?-1:1:0}}function Dhe(){return!!(process.versions&&process.versions.nw)}function khe(){return process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE?!0:typeof window<"u"&&window.process&&window.process.type==="renderer"}function Ihe(t){return t==="linux"&&h8.existsSync("/etc/alpine-release")}la.parseTags=E8;la.matchTags=C8;la.compareTags=S8;la.parseTuple=b8;la.matchTuple=x8;la.compareTuples=w8});var T8=E((OMe,UC)=>{var jC=typeof __webpack_require__=="function"?__non_webpack_require__:require;typeof jC.addon=="function"?UC.exports=jC.addon.bind(jC):UC.exports=A8()});var k8=E((PMe,D8)=>{"use strict";var Nhe=(t,e,r,i,n)=>{for(var s=0;s{let r=t.length;for(var i=0;i{"use strict";try{VC.exports=T8()(__dirname)}catch{VC.exports=k8()}});var $h=E((BMe,Wv)=>{"use strict";var{EMPTY_BUFFER:Ohe}=su(),HC=Buffer[Symbol.species];function Phe(t,e){if(t.length===0)return Ohe;if(t.length===1)return t[0];let r=Buffer.allocUnsafe(e),i=0;for(let n=0;n{"use strict";var O8=Symbol("kDone"),zC=Symbol("kRun"),KC=class{constructor(e){this[O8]=()=>{this.pending--,this[zC]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[zC]()}[zC](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[O8])}}};P8.exports=KC});var Uh=E((FMe,$8)=>{"use strict";var Mh=require("zlib"),B8=$h(),Bhe=L8(),{kStatusCode:q8}=su(),qhe=Buffer[Symbol.species],Fhe=Buffer.from([0,0,255,255]),Qv=Symbol("permessage-deflate"),so=Symbol("total-length"),jh=Symbol("callback"),au=Symbol("buffers"),Xv=Symbol("error"),Yv,WC=class{constructor(e,r,i){if(this._maxPayload=i|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!r,this._deflate=null,this._inflate=null,this.params=null,!Yv){let n=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Yv=new Bhe(n)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[jh];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let r=this._options,i=e.find(n=>!(r.serverNoContextTakeover===!1&&n.server_no_context_takeover||n.server_max_window_bits&&(r.serverMaxWindowBits===!1||typeof r.serverMaxWindowBits=="number"&&r.serverMaxWindowBits>n.server_max_window_bits)||typeof r.clientMaxWindowBits=="number"&&!n.client_max_window_bits));if(!i)throw new Error("None of the extension offers can be accepted");return r.serverNoContextTakeover&&(i.server_no_context_takeover=!0),r.clientNoContextTakeover&&(i.client_no_context_takeover=!0),typeof r.serverMaxWindowBits=="number"&&(i.server_max_window_bits=r.serverMaxWindowBits),typeof r.clientMaxWindowBits=="number"?i.client_max_window_bits=r.clientMaxWindowBits:(i.client_max_window_bits===!0||r.clientMaxWindowBits===!1)&&delete i.client_max_window_bits,i}acceptAsClient(e){let r=e[0];if(this._options.clientNoContextTakeover===!1&&r.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!r.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(r.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&r.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return r}normalizeParams(e){return e.forEach(r=>{Object.keys(r).forEach(i=>{let n=r[i];if(n.length>1)throw new Error(`Parameter "${i}" must have only a single value`);if(n=n[0],i==="client_max_window_bits"){if(n!==!0){let s=+n;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${i}": ${n}`);n=s}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${i}": ${n}`)}else if(i==="server_max_window_bits"){let s=+n;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${i}": ${n}`);n=s}else if(i==="client_no_context_takeover"||i==="server_no_context_takeover"){if(n!==!0)throw new TypeError(`Invalid value for parameter "${i}": ${n}`)}else throw new Error(`Unknown parameter "${i}"`);r[i]=n})}),e}decompress(e,r,i){Yv.add(n=>{this._decompress(e,r,(s,a)=>{n(),i(s,a)})})}compress(e,r,i){Yv.add(n=>{this._compress(e,r,(s,a)=>{n(),i(s,a)})})}_decompress(e,r,i){let n=this._isServer?"client":"server";if(!this._inflate){let s=`${n}_max_window_bits`,a=typeof this.params[s]!="number"?Mh.Z_DEFAULT_WINDOWBITS:this.params[s];this._inflate=Mh.createInflateRaw({...this._options.zlibInflateOptions,windowBits:a}),this._inflate[Qv]=this,this._inflate[so]=0,this._inflate[au]=[],this._inflate.on("error",Mhe),this._inflate.on("data",F8)}this._inflate[jh]=i,this._inflate.write(e),r&&this._inflate.write(Fhe),this._inflate.flush(()=>{let s=this._inflate[Xv];if(s){this._inflate.close(),this._inflate=null,i(s);return}let a=B8.concat(this._inflate[au],this._inflate[so]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[so]=0,this._inflate[au]=[],r&&this.params[`${n}_no_context_takeover`]&&this._inflate.reset()),i(null,a)})}_compress(e,r,i){let n=this._isServer?"server":"client";if(!this._deflate){let s=`${n}_max_window_bits`,a=typeof this.params[s]!="number"?Mh.Z_DEFAULT_WINDOWBITS:this.params[s];this._deflate=Mh.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:a}),this._deflate[so]=0,this._deflate[au]=[],this._deflate.on("data",$he)}this._deflate[jh]=i,this._deflate.write(e),this._deflate.flush(Mh.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let s=B8.concat(this._deflate[au],this._deflate[so]);r&&(s=new qhe(s.buffer,s.byteOffset,s.length-4)),this._deflate[jh]=null,this._deflate[so]=0,this._deflate[au]=[],r&&this.params[`${n}_no_context_takeover`]&&this._deflate.reset(),i(null,s)})}};$8.exports=WC;function $he(t){this[au].push(t),this[so]+=t.length}function F8(t){if(this[so]+=t.length,this[Qv]._maxPayload<1||this[so]<=this[Qv]._maxPayload){this[au].push(t);return}this[Xv]=new RangeError("Max payload size exceeded"),this[Xv].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Xv][q8]=1009,this.removeListener("data",F8),this.reset()}function Mhe(t){this[Qv]._inflate=null,t[q8]=1007,this[jh](t)}});var Vh=E(($Me,Jv)=>{"use strict";var{isUtf8:M8}=require("buffer"),jhe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function Uhe(t){return t>=1e3&&t<=1014&&t!==1004&&t!==1005&&t!==1006||t>=3e3&&t<=4999}function YC(t){let e=t.length,r=0;for(;r=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||t[r]===224&&(t[r+1]&224)===128||t[r]===237&&(t[r+1]&224)===160)return!1;r+=3}else if((t[r]&248)===240){if(r+3>=e||(t[r+1]&192)!==128||(t[r+2]&192)!==128||(t[r+3]&192)!==128||t[r]===240&&(t[r+1]&240)===128||t[r]===244&&t[r+1]>143||t[r]>244)return!1;r+=4}else return!1;return!0}Jv.exports={isValidStatusCode:Uhe,isValidUTF8:YC,tokenChars:jhe};if(M8)Jv.exports.isValidUTF8=function(t){return t.length<24?YC(t):M8(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let t=require("utf-8-validate");Jv.exports.isValidUTF8=function(e){return e.length<32?YC(e):t(e)}}catch{}});var eS=E((MMe,K8)=>{"use strict";var{Writable:Vhe}=require("stream"),j8=Uh(),{BINARY_TYPES:Hhe,EMPTY_BUFFER:U8,kStatusCode:Ghe,kWebSocket:zhe}=su(),{concat:XC,toArrayBuffer:Khe,unmask:Whe}=$h(),{isValidStatusCode:Yhe,isValidUTF8:V8}=Vh(),Zv=Buffer[Symbol.species],Xhe=Promise.resolve(),QC=typeof queueMicrotask=="function"?queueMicrotask:Qhe,as=0,H8=1,G8=2,z8=3,JC=4,ey=5,ty=6,ZC=class extends Vhe{constructor(e={}){super(),this._allowSynchronousEvents=!!e.allowSynchronousEvents,this._binaryType=e.binaryType||Hhe[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[zhe]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=as}_write(e,r,i){if(this._opcode===8&&this._state==as)return i();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(i)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e=i.length?r.set(this._buffers.shift(),n):(r.set(new Uint8Array(i.buffer,i.byteOffset,e),n),this._buffers[0]=new Zv(i.buffer,i.byteOffset+e,i.length-e)),e-=i.length}while(e>0);return r}startLoop(e){this._loop=!0;do switch(this._state){case as:this.getInfo(e);break;case H8:this.getPayloadLength16(e);break;case G8:this.getPayloadLength64(e);break;case z8:this.getMask();break;case JC:this.getData(e);break;case ey:case ty:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let r=this.consume(2);if(r[0]&48){let n=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(n);return}let i=(r[0]&64)===64;if(i&&!this._extensions[j8.extensionName]){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(this._fin=(r[0]&128)===128,this._opcode=r[0]&15,this._payloadLength=r[1]&127,this._opcode===0){if(i){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(!this._fragmented){let n=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let n=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}this._compressed=i}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let n=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(n);return}if(i){let n=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(n);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let n=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(n);return}}else{let n=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(n);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(r[1]&128)===128,this._isServer){if(!this._masked){let n=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(n);return}}else if(this._masked){let n=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(n);return}this._payloadLength===126?this._state=H8:this._payloadLength===127?this._state=G8:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let r=this.consume(8),i=r.readUInt32BE(0);if(i>Math.pow(2,53-32)-1){let n=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(n);return}this._payloadLength=i*Math.pow(2,32)+r.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let r=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(r);return}this._masked?this._state=z8:this._state=JC}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=JC}getData(e){let r=U8;if(this._payloadLength){if(this._bufferedBytes7){this.controlMessage(r,e);return}if(this._compressed){this._state=ey,this.decompress(r,e);return}r.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(r)),this.dataMessage(e)}decompress(e,r){this._extensions[j8.extensionName].decompress(e,this._fin,(n,s)=>{if(n)return r(n);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let a=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");r(a);return}this._fragments.push(s)}this.dataMessage(r),this._state===as&&this.startLoop(r)})}dataMessage(e){if(!this._fin){this._state=as;return}let r=this._messageLength,i=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let n;this._binaryType==="nodebuffer"?n=XC(i,r):this._binaryType==="arraybuffer"?n=Khe(XC(i,r)):n=i,this._state===ey||this._allowSynchronousEvents?(this.emit("message",n,!0),this._state=as):(this._state=ty,QC(()=>{this.emit("message",n,!0),this._state=as,this.startLoop(e)}))}else{let n=XC(i,r);if(!this._skipUTF8Validation&&!V8(n)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(s);return}this._state===ey||this._allowSynchronousEvents?(this.emit("message",n,!1),this._state=as):(this._state=ty,QC(()=>{this.emit("message",n,!1),this._state=as,this.startLoop(e)}))}}controlMessage(e,r){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,U8),this.end();else{let i=e.readUInt16BE(0);if(!Yhe(i)){let s=this.createError(RangeError,`invalid status code ${i}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");r(s);return}let n=new Zv(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!V8(n)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");r(s);return}this._loop=!1,this.emit("conclude",i,n),this.end()}this._state=as;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=as):(this._state=ty,QC(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=as,this.startLoop(r)}))}createError(e,r,i,n,s){this._loop=!1,this._errored=!0;let a=new e(i?`Invalid WebSocket frame: ${r}`:r);return Error.captureStackTrace(a,this.createError),a.code=s,a[Ghe]=n,a}};K8.exports=ZC;function Qhe(t){Xhe.then(t).catch(Zhe)}function Jhe(t){throw t}function Zhe(t){process.nextTick(Jhe,t)}});var tS=E((UMe,X8)=>{"use strict";var{Duplex:jMe}=require("stream"),{randomFillSync:eme}=require("crypto"),W8=Uh(),{EMPTY_BUFFER:tme}=su(),{isValidStatusCode:rme}=Vh(),{mask:Y8,toBuffer:zp}=$h(),Ns=Symbol("kByteLength"),ime=Buffer.alloc(4),pa=class{constructor(e,r,i){this._extensions=r||{},i&&(this._generateMask=i,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,r){let i,n=!1,s=2,a=!1;r.mask&&(i=r.maskBuffer||ime,r.generateMask?r.generateMask(i):eme(i,0,4),a=(i[0]|i[1]|i[2]|i[3])===0,s=6);let o;typeof e=="string"?(!r.mask||a)&&r[Ns]!==void 0?o=r[Ns]:(e=Buffer.from(e),o=e.length):(o=e.length,n=r.mask&&r.readOnly&&!a);let u=o;o>=65536?(s+=8,u=127):o>125&&(s+=2,u=126);let c=Buffer.allocUnsafe(n?o+s:s);return c[0]=r.fin?r.opcode|128:r.opcode,r.rsv1&&(c[0]|=64),c[1]=u,u===126?c.writeUInt16BE(o,2):u===127&&(c[2]=c[3]=0,c.writeUIntBE(o,4,6)),r.mask?(c[1]|=128,c[s-4]=i[0],c[s-3]=i[1],c[s-2]=i[2],c[s-1]=i[3],a?[c,e]:n?(Y8(e,i,c,s,o),[c]):(Y8(e,i,e,0,o),[c,e])):[c,e]}close(e,r,i,n){let s;if(e===void 0)s=tme;else{if(typeof e!="number"||!rme(e))throw new TypeError("First argument must be a valid error code number");if(r===void 0||!r.length)s=Buffer.allocUnsafe(2),s.writeUInt16BE(e,0);else{let o=Buffer.byteLength(r);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");s=Buffer.allocUnsafe(2+o),s.writeUInt16BE(e,0),typeof r=="string"?s.write(r,2):s.set(r,2)}}let a={[Ns]:s.length,fin:!0,generateMask:this._generateMask,mask:i,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._deflating?this.enqueue([this.dispatch,s,!1,a,n]):this.sendFrame(pa.frame(s,a),n)}ping(e,r,i){let n,s;if(typeof e=="string"?(n=Buffer.byteLength(e),s=!1):(e=zp(e),n=e.length,s=zp.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[Ns]:n,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:9,readOnly:s,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,a,i]):this.sendFrame(pa.frame(e,a),i)}pong(e,r,i){let n,s;if(typeof e=="string"?(n=Buffer.byteLength(e),s=!1):(e=zp(e),n=e.length,s=zp.readOnly),n>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[Ns]:n,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:10,readOnly:s,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,a,i]):this.sendFrame(pa.frame(e,a),i)}send(e,r,i){let n=this._extensions[W8.extensionName],s=r.binary?2:1,a=r.compress,o,u;if(typeof e=="string"?(o=Buffer.byteLength(e),u=!1):(e=zp(e),o=e.length,u=zp.readOnly),this._firstFragment?(this._firstFragment=!1,a&&n&&n.params[n._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(a=o>=n._threshold),this._compress=a):(a=!1,s=0),r.fin&&(this._firstFragment=!0),n){let c={[Ns]:o,fin:r.fin,generateMask:this._generateMask,mask:r.mask,maskBuffer:this._maskBuffer,opcode:s,readOnly:u,rsv1:a};this._deflating?this.enqueue([this.dispatch,e,this._compress,c,i]):this.dispatch(e,this._compress,c,i)}else this.sendFrame(pa.frame(e,{[Ns]:o,fin:r.fin,generateMask:this._generateMask,mask:r.mask,maskBuffer:this._maskBuffer,opcode:s,readOnly:u,rsv1:!1}),i)}dispatch(e,r,i,n){if(!r){this.sendFrame(pa.frame(e,i),n);return}let s=this._extensions[W8.extensionName];this._bufferedBytes+=i[Ns],this._deflating=!0,s.compress(e,i.fin,(a,o)=>{if(this._socket.destroyed){let u=new Error("The socket was closed while data was being compressed");typeof n=="function"&&n(u);for(let c=0;c{"use strict";var{kForOnEventAttribute:Hh,kListener:rS}=su(),Q8=Symbol("kCode"),J8=Symbol("kData"),Z8=Symbol("kError"),eq=Symbol("kMessage"),tq=Symbol("kReason"),Kp=Symbol("kTarget"),rq=Symbol("kType"),iq=Symbol("kWasClean"),ao=class{constructor(e){this[Kp]=null,this[rq]=e}get target(){return this[Kp]}get type(){return this[rq]}};Object.defineProperty(ao.prototype,"target",{enumerable:!0});Object.defineProperty(ao.prototype,"type",{enumerable:!0});var Rc=class extends ao{constructor(e,r={}){super(e),this[Q8]=r.code===void 0?0:r.code,this[tq]=r.reason===void 0?"":r.reason,this[iq]=r.wasClean===void 0?!1:r.wasClean}get code(){return this[Q8]}get reason(){return this[tq]}get wasClean(){return this[iq]}};Object.defineProperty(Rc.prototype,"code",{enumerable:!0});Object.defineProperty(Rc.prototype,"reason",{enumerable:!0});Object.defineProperty(Rc.prototype,"wasClean",{enumerable:!0});var Wp=class extends ao{constructor(e,r={}){super(e),this[Z8]=r.error===void 0?null:r.error,this[eq]=r.message===void 0?"":r.message}get error(){return this[Z8]}get message(){return this[eq]}};Object.defineProperty(Wp.prototype,"error",{enumerable:!0});Object.defineProperty(Wp.prototype,"message",{enumerable:!0});var Gh=class extends ao{constructor(e,r={}){super(e),this[J8]=r.data===void 0?null:r.data}get data(){return this[J8]}};Object.defineProperty(Gh.prototype,"data",{enumerable:!0});var nme={addEventListener(t,e,r={}){for(let n of this.listeners(t))if(!r[Hh]&&n[rS]===e&&!n[Hh])return;let i;if(t==="message")i=function(s,a){let o=new Gh("message",{data:a?s:s.toString()});o[Kp]=this,ry(e,this,o)};else if(t==="close")i=function(s,a){let o=new Rc("close",{code:s,reason:a.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});o[Kp]=this,ry(e,this,o)};else if(t==="error")i=function(s){let a=new Wp("error",{error:s,message:s.message});a[Kp]=this,ry(e,this,a)};else if(t==="open")i=function(){let s=new ao("open");s[Kp]=this,ry(e,this,s)};else return;i[Hh]=!!r[Hh],i[rS]=e,r.once?this.once(t,i):this.on(t,i)},removeEventListener(t,e){for(let r of this.listeners(t))if(r[rS]===e&&!r[Hh]){this.removeListener(t,r);break}}};nq.exports={CloseEvent:Rc,ErrorEvent:Wp,Event:ao,EventTarget:nme,MessageEvent:Gh};function ry(t,e,r){typeof t=="object"&&t.handleEvent?t.handleEvent.call(t,r):t.call(e,r)}});var iS=E((HMe,aq)=>{"use strict";var{tokenChars:zh}=Vh();function fa(t,e,r){t[e]===void 0?t[e]=[r]:t[e].push(r)}function sme(t){let e=Object.create(null),r=Object.create(null),i=!1,n=!1,s=!1,a,o,u=-1,c=-1,l=-1,f=0;for(;f{let r=t[e];return Array.isArray(r)||(r=[r]),r.map(i=>[e].concat(Object.keys(i).map(n=>{let s=i[n];return Array.isArray(s)||(s=[s]),s.map(a=>a===!0?n:`${n}=${a}`).join("; ")})).join("; ")).join(", ")}).join(", ")}aq.exports={format:ame,parse:sme}});var uS=E((KMe,vq)=>{"use strict";var ome=require("events"),ume=require("https"),cme=require("http"),cq=require("net"),lme=require("tls"),{randomBytes:pme,createHash:fme}=require("crypto"),{Duplex:GMe,Readable:zMe}=require("stream"),{URL:nS}=require("url"),ou=Uh(),dme=eS(),hme=tS(),{BINARY_TYPES:oq,EMPTY_BUFFER:iy,GUID:mme,kForOnEventAttribute:sS,kListener:gme,kStatusCode:vme,kWebSocket:Bi,NOOP:lq}=su(),{EventTarget:{addEventListener:yme,removeEventListener:bme}}=sq(),{format:xme,parse:wme}=iS(),{toBuffer:Eme}=$h(),Cme=30*1e3,pq=Symbol("kAborted"),aS=[8,13],oo=["CONNECTING","OPEN","CLOSING","CLOSED"],Sme=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,Ye=class extends ome{constructor(e,r,i){super(),this._binaryType=oq[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=iy,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=Ye.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,r===void 0?r=[]:Array.isArray(r)||(typeof r=="object"&&r!==null?(i=r,r=[]):r=[r]),fq(this,e,r,i)):(this._autoPong=i.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){oq.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,r,i){let n=new dme({allowSynchronousEvents:i.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation});this._sender=new hme(e,this._extensions,i.generateMask),this._receiver=n,this._socket=e,n[Bi]=this,e[Bi]=this,n.on("conclude",Tme),n.on("drain",Dme),n.on("error",kme),n.on("message",Ime),n.on("ping",Nme),n.on("pong",Rme),e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),r.length>0&&e.unshift(r),e.on("close",hq),e.on("data",sy),e.on("end",mq),e.on("error",gq),this._readyState=Ye.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=Ye.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[ou.extensionName]&&this._extensions[ou.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=Ye.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,r){if(this.readyState!==Ye.CLOSED){if(this.readyState===Ye.CONNECTING){let i="WebSocket was closed before the connection was established";Mn(this,this._req,i);return}if(this.readyState===Ye.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=Ye.CLOSING,this._sender.close(e,r,!this._isServer,i=>{i||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),Cme)}}pause(){this.readyState===Ye.CONNECTING||this.readyState===Ye.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,r,i){if(this.readyState===Ye.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(i=e,e=r=void 0):typeof r=="function"&&(i=r,r=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==Ye.OPEN){oS(this,e,i);return}r===void 0&&(r=!this._isServer),this._sender.ping(e||iy,r,i)}pong(e,r,i){if(this.readyState===Ye.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(i=e,e=r=void 0):typeof r=="function"&&(i=r,r=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==Ye.OPEN){oS(this,e,i);return}r===void 0&&(r=!this._isServer),this._sender.pong(e||iy,r,i)}resume(){this.readyState===Ye.CONNECTING||this.readyState===Ye.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,r,i){if(this.readyState===Ye.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof r=="function"&&(i=r,r={}),typeof e=="number"&&(e=e.toString()),this.readyState!==Ye.OPEN){oS(this,e,i);return}let n={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...r};this._extensions[ou.extensionName]||(n.compress=!1),this._sender.send(e||iy,n,i)}terminate(){if(this.readyState!==Ye.CLOSED){if(this.readyState===Ye.CONNECTING){let e="WebSocket was closed before the connection was established";Mn(this,this._req,e);return}this._socket&&(this._readyState=Ye.CLOSING,this._socket.destroy())}}};Object.defineProperty(Ye,"CONNECTING",{enumerable:!0,value:oo.indexOf("CONNECTING")});Object.defineProperty(Ye.prototype,"CONNECTING",{enumerable:!0,value:oo.indexOf("CONNECTING")});Object.defineProperty(Ye,"OPEN",{enumerable:!0,value:oo.indexOf("OPEN")});Object.defineProperty(Ye.prototype,"OPEN",{enumerable:!0,value:oo.indexOf("OPEN")});Object.defineProperty(Ye,"CLOSING",{enumerable:!0,value:oo.indexOf("CLOSING")});Object.defineProperty(Ye.prototype,"CLOSING",{enumerable:!0,value:oo.indexOf("CLOSING")});Object.defineProperty(Ye,"CLOSED",{enumerable:!0,value:oo.indexOf("CLOSED")});Object.defineProperty(Ye.prototype,"CLOSED",{enumerable:!0,value:oo.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(t=>{Object.defineProperty(Ye.prototype,t,{enumerable:!0})});["open","error","close","message"].forEach(t=>{Object.defineProperty(Ye.prototype,`on${t}`,{enumerable:!0,get(){for(let e of this.listeners(t))if(e[sS])return e[gme];return null},set(e){for(let r of this.listeners(t))if(r[sS]){this.removeListener(t,r);break}typeof e=="function"&&this.addEventListener(t,e,{[sS]:!0})}})});Ye.prototype.addEventListener=yme;Ye.prototype.removeEventListener=bme;vq.exports=Ye;function fq(t,e,r,i){let n={allowSynchronousEvents:!1,autoPong:!0,protocolVersion:aS[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...i,createConnection:void 0,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(t._autoPong=n.autoPong,!aS.includes(n.protocolVersion))throw new RangeError(`Unsupported protocol version: ${n.protocolVersion} (supported versions: ${aS.join(", ")})`);let s;if(e instanceof nS)s=e;else try{s=new nS(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}s.protocol==="http:"?s.protocol="ws:":s.protocol==="https:"&&(s.protocol="wss:"),t._url=s.href;let a=s.protocol==="wss:",o=s.protocol==="ws+unix:",u;if(s.protocol!=="ws:"&&!a&&!o?u=`The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`:o&&!s.pathname?u="The URL's pathname is empty":s.hash&&(u="The URL contains a fragment identifier"),u){let g=new SyntaxError(u);if(t._redirects===0)throw g;ny(t,g);return}let c=a?443:80,l=pme(16).toString("base64"),f=a?ume.request:cme.request,d=new Set,h;if(n.createConnection=a?Ame:_me,n.defaultPort=n.defaultPort||c,n.port=s.port||c,n.host=s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname,n.headers={...n.headers,"Sec-WebSocket-Version":n.protocolVersion,"Sec-WebSocket-Key":l,Connection:"Upgrade",Upgrade:"websocket"},n.path=s.pathname+s.search,n.timeout=n.handshakeTimeout,n.perMessageDeflate&&(h=new ou(n.perMessageDeflate!==!0?n.perMessageDeflate:{},!1,n.maxPayload),n.headers["Sec-WebSocket-Extensions"]=xme({[ou.extensionName]:h.offer()})),r.length){for(let g of r){if(typeof g!="string"||!Sme.test(g)||d.has(g))throw new SyntaxError("An invalid or duplicated subprotocol was specified");d.add(g)}n.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(n.origin&&(n.protocolVersion<13?n.headers["Sec-WebSocket-Origin"]=n.origin:n.headers.Origin=n.origin),(s.username||s.password)&&(n.auth=`${s.username}:${s.password}`),o){let g=n.path.split(":");n.socketPath=g[0],n.path=g[1]}let m;if(n.followRedirects){if(t._redirects===0){t._originalIpc=o,t._originalSecure=a,t._originalHostOrSocketPath=o?n.socketPath:s.host;let g=i&&i.headers;if(i={...i,headers:{}},g)for(let[y,b]of Object.entries(g))i.headers[y.toLowerCase()]=b}else if(t.listenerCount("redirect")===0){let g=o?t._originalIpc?n.socketPath===t._originalHostOrSocketPath:!1:t._originalIpc?!1:s.host===t._originalHostOrSocketPath;(!g||t._originalSecure&&!a)&&(delete n.headers.authorization,delete n.headers.cookie,g||delete n.headers.host,n.auth=void 0)}n.auth&&!i.headers.authorization&&(i.headers.authorization="Basic "+Buffer.from(n.auth).toString("base64")),m=t._req=f(n),t._redirects&&t.emit("redirect",t.url,m)}else m=t._req=f(n);n.timeout&&m.on("timeout",()=>{Mn(t,m,"Opening handshake has timed out")}),m.on("error",g=>{m===null||m[pq]||(m=t._req=null,ny(t,g))}),m.on("response",g=>{let y=g.headers.location,b=g.statusCode;if(y&&n.followRedirects&&b>=300&&b<400){if(++t._redirects>n.maxRedirects){Mn(t,m,"Maximum redirects exceeded");return}m.abort();let w;try{w=new nS(y,e)}catch{let x=new SyntaxError(`Invalid URL: ${y}`);ny(t,x);return}fq(t,w,r,i)}else t.emit("unexpected-response",m,g)||Mn(t,m,`Unexpected server response: ${g.statusCode}`)}),m.on("upgrade",(g,y,b)=>{if(t.emit("upgrade",g),t.readyState!==Ye.CONNECTING)return;if(m=t._req=null,g.headers.upgrade.toLowerCase()!=="websocket"){Mn(t,y,"Invalid Upgrade header");return}let w=fme("sha1").update(l+mme).digest("base64");if(g.headers["sec-websocket-accept"]!==w){Mn(t,y,"Invalid Sec-WebSocket-Accept header");return}let S=g.headers["sec-websocket-protocol"],x;if(S!==void 0?d.size?d.has(S)||(x="Server sent an invalid subprotocol"):x="Server sent a subprotocol but none was requested":d.size&&(x="Server sent no subprotocol"),x){Mn(t,y,x);return}S&&(t._protocol=S);let k=g.headers["sec-websocket-extensions"];if(k!==void 0){if(!h){Mn(t,y,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let R;try{R=wme(k)}catch{Mn(t,y,"Invalid Sec-WebSocket-Extensions header");return}let L=Object.keys(R);if(L.length!==1||L[0]!==ou.extensionName){Mn(t,y,"Server indicated an extension that was not requested");return}try{h.accept(R[ou.extensionName])}catch{Mn(t,y,"Invalid Sec-WebSocket-Extensions header");return}t._extensions[ou.extensionName]=h}t.setSocket(y,b,{allowSynchronousEvents:n.allowSynchronousEvents,generateMask:n.generateMask,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation})}),n.finishRequest?n.finishRequest(m,t):m.end()}function ny(t,e){t._readyState=Ye.CLOSING,t.emit("error",e),t.emitClose()}function _me(t){return t.path=t.socketPath,cq.connect(t)}function Ame(t){return t.path=void 0,!t.servername&&t.servername!==""&&(t.servername=cq.isIP(t.host)?"":t.host),lme.connect(t)}function Mn(t,e,r){t._readyState=Ye.CLOSING;let i=new Error(r);Error.captureStackTrace(i,Mn),e.setHeader?(e[pq]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(ny,t,i)):(e.destroy(i),e.once("error",t.emit.bind(t,"error")),e.once("close",t.emitClose.bind(t)))}function oS(t,e,r){if(e){let i=Eme(e).length;t._socket?t._sender._bufferedBytes+=i:t._bufferedAmount+=i}if(r){let i=new Error(`WebSocket is not open: readyState ${t.readyState} (${oo[t.readyState]})`);process.nextTick(r,i)}}function Tme(t,e){let r=this[Bi];r._closeFrameReceived=!0,r._closeMessage=e,r._closeCode=t,r._socket[Bi]!==void 0&&(r._socket.removeListener("data",sy),process.nextTick(dq,r._socket),t===1005?r.close():r.close(t,e))}function Dme(){let t=this[Bi];t.isPaused||t._socket.resume()}function kme(t){let e=this[Bi];e._socket[Bi]!==void 0&&(e._socket.removeListener("data",sy),process.nextTick(dq,e._socket),e.close(t[vme])),e.emit("error",t)}function uq(){this[Bi].emitClose()}function Ime(t,e){this[Bi].emit("message",t,e)}function Nme(t){let e=this[Bi];e._autoPong&&e.pong(t,!this._isServer,lq),e.emit("ping",t)}function Rme(t){this[Bi].emit("pong",t)}function dq(t){t.resume()}function hq(){let t=this[Bi];this.removeListener("close",hq),this.removeListener("data",sy),this.removeListener("end",mq),t._readyState=Ye.CLOSING;let e;!this._readableState.endEmitted&&!t._closeFrameReceived&&!t._receiver._writableState.errorEmitted&&(e=t._socket.read())!==null&&t._receiver.write(e),t._receiver.end(),this[Bi]=void 0,clearTimeout(t._closeTimer),t._receiver._writableState.finished||t._receiver._writableState.errorEmitted?t.emitClose():(t._receiver.on("error",uq),t._receiver.on("finish",uq))}function sy(t){this[Bi]._receiver.write(t)||this.pause()}function mq(){let t=this[Bi];t._readyState=Ye.CLOSING,t._receiver.end(),this.end()}function gq(){let t=this[Bi];this.removeListener("error",gq),this.on("error",lq),t&&(t._readyState=Ye.CLOSING,this.destroy())}});var wq=E((WMe,xq)=>{"use strict";var{Duplex:Ome}=require("stream");function yq(t){t.emit("close")}function Pme(){!this.destroyed&&this._writableState.finished&&this.destroy()}function bq(t){this.removeListener("error",bq),this.destroy(),this.listenerCount("error")===0&&this.emit("error",t)}function Lme(t,e){let r=!0,i=new Ome({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return t.on("message",function(s,a){let o=!a&&i._readableState.objectMode?s.toString():s;i.push(o)||t.pause()}),t.once("error",function(s){i.destroyed||(r=!1,i.destroy(s))}),t.once("close",function(){i.destroyed||i.push(null)}),i._destroy=function(n,s){if(t.readyState===t.CLOSED){s(n),process.nextTick(yq,i);return}let a=!1;t.once("error",function(u){a=!0,s(u)}),t.once("close",function(){a||s(n),process.nextTick(yq,i)}),r&&t.terminate()},i._final=function(n){if(t.readyState===t.CONNECTING){t.once("open",function(){i._final(n)});return}t._socket!==null&&(t._socket._writableState.finished?(n(),i._readableState.endEmitted&&i.destroy()):(t._socket.once("finish",function(){n()}),t.close()))},i._read=function(){t.isPaused&&t.resume()},i._write=function(n,s,a){if(t.readyState===t.CONNECTING){t.once("open",function(){i._write(n,s,a)});return}t.send(n,a)},i.on("end",Pme),i.on("error",bq),i}xq.exports=Lme});var Cq=E((YMe,Eq)=>{"use strict";var{tokenChars:Bme}=Vh();function qme(t){let e=new Set,r=-1,i=-1,n=0;for(n;n{"use strict";var Fme=require("events"),ay=require("http"),{Duplex:XMe}=require("stream"),{createHash:$me}=require("crypto"),Sq=iS(),Oc=Uh(),Mme=Cq(),jme=uS(),{GUID:Ume,kWebSocket:Vme}=su(),Hme=/^[+/0-9A-Za-z]{22}==$/,_q=0,Aq=1,Dq=2,cS=class extends Fme{constructor(e,r){if(super(),e={allowSynchronousEvents:!1,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:jme,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=ay.createServer((i,n)=>{let s=ay.STATUS_CODES[426];n.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),n.end(s)}),this._server.listen(e.port,e.host,e.backlog,r)):e.server&&(this._server=e.server),this._server){let i=this.emit.bind(this,"connection");this._removeListeners=Gme(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(n,s,a)=>{this.handleUpgrade(n,s,a,i)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=_q}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===Dq){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(Kh,this);return}if(e&&this.once("close",e),this._state!==Aq)if(this._state=Aq,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(Kh,this):process.nextTick(Kh,this);else{let r=this._server;this._removeListeners(),this._removeListeners=this._server=null,r.close(()=>{Kh(this)})}}shouldHandle(e){if(this.options.path){let r=e.url.indexOf("?");if((r!==-1?e.url.slice(0,r):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,r,i,n){r.on("error",Tq);let s=e.headers["sec-websocket-key"],a=+e.headers["sec-websocket-version"];if(e.method!=="GET"){Pc(this,e,r,405,"Invalid HTTP method");return}if(e.headers.upgrade.toLowerCase()!=="websocket"){Pc(this,e,r,400,"Invalid Upgrade header");return}if(!s||!Hme.test(s)){Pc(this,e,r,400,"Missing or invalid Sec-WebSocket-Key header");return}if(a!==8&&a!==13){Pc(this,e,r,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(e)){Wh(r,400);return}let o=e.headers["sec-websocket-protocol"],u=new Set;if(o!==void 0)try{u=Mme.parse(o)}catch{Pc(this,e,r,400,"Invalid Sec-WebSocket-Protocol header");return}let c=e.headers["sec-websocket-extensions"],l={};if(this.options.perMessageDeflate&&c!==void 0){let f=new Oc(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let d=Sq.parse(c);d[Oc.extensionName]&&(f.accept(d[Oc.extensionName]),l[Oc.extensionName]=f)}catch{Pc(this,e,r,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let f={origin:e.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(f,(d,h,m,g)=>{if(!d)return Wh(r,h||401,m,g);this.completeUpgrade(l,s,u,e,r,i,n)});return}if(!this.options.verifyClient(f))return Wh(r,401)}this.completeUpgrade(l,s,u,e,r,i,n)}completeUpgrade(e,r,i,n,s,a,o){if(!s.readable||!s.writable)return s.destroy();if(s[Vme])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>_q)return Wh(s,503);let c=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${$me("sha1").update(r+Ume).digest("base64")}`],l=new this.options.WebSocket(null,void 0,this.options);if(i.size){let f=this.options.handleProtocols?this.options.handleProtocols(i,n):i.values().next().value;f&&(c.push(`Sec-WebSocket-Protocol: ${f}`),l._protocol=f)}if(e[Oc.extensionName]){let f=e[Oc.extensionName].params,d=Sq.format({[Oc.extensionName]:[f]});c.push(`Sec-WebSocket-Extensions: ${d}`),l._extensions=e}this.emit("headers",c,n),s.write(c.concat(`\r +`).join(`\r +`)),s.removeListener("error",Tq),l.setSocket(s,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(l),l.on("close",()=>{this.clients.delete(l),this._shouldEmitClose&&!this.clients.size&&process.nextTick(Kh,this)})),o(l,n)}};kq.exports=cS;function Gme(t,e){for(let r of Object.keys(e))t.on(r,e[r]);return function(){for(let i of Object.keys(e))t.removeListener(i,e[i])}}function Kh(t){t._state=Dq,t.emit("close")}function Tq(){this.destroy()}function Wh(t,e,r,i){r=r||ay.STATUS_CODES[e],i={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...i},t.once("finish",t.destroy),t.end(`HTTP/1.1 ${e} ${ay.STATUS_CODES[e]}\r +`+Object.keys(i).map(n=>`${n}: ${i[n]}`).join(`\r +`)+`\r +\r +`+r)}function Pc(t,e,r,i,n){if(t.listenerCount("wsClientError")){let s=new Error(n);Error.captureStackTrace(s,Pc),t.emit("wsClientError",s,r,e)}else Wh(r,i,n)}});var Rq=E((JMe,Nq)=>{"use strict";var uo=uS();uo.createWebSocketStream=wq();uo.Server=Iq();uo.Receiver=eS();uo.Sender=tS();uo.WebSocket=uo;uo.WebSocketServer=uo.Server;Nq.exports=uo});var it=E((ZMe,Oq)=>{Oq.exports={options:{usePureJavaScript:!1}}});var Bq=E((eje,Lq)=>{var lS={};Lq.exports=lS;var Pq={};lS.encode=function(t,e,r){if(typeof e!="string")throw new TypeError('"alphabet" must be a string.');if(r!==void 0&&typeof r!="number")throw new TypeError('"maxline" must be a number.');var i="";if(!(t instanceof Uint8Array))i=zme(t,e);else{var n=0,s=e.length,a=e.charAt(0),o=[0];for(n=0;n0;)o.push(c%s),c=c/s|0}for(n=0;t[n]===0&&n=0;--n)i+=e[o[n]]}if(r){var l=new RegExp(".{1,"+r+"}","g");i=i.match(l).join(`\r +`)}return i};lS.decode=function(t,e){if(typeof t!="string")throw new TypeError('"input" must be a string.');if(typeof e!="string")throw new TypeError('"alphabet" must be a string.');var r=Pq[e];if(!r){r=Pq[e]=[];for(var i=0;i>=8;for(;c>0;)a.push(c&255),c>>=8}for(var l=0;t[l]===s&&l0;)s.push(o%i),o=o/i|0}var u="";for(r=0;t.at(r)===0&&r=0;--r)u+=e[s[r]];return u}});var Dt=E((tje,Mq)=>{var qq=it(),Fq=Bq(),F=Mq.exports=qq.util=qq.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){F.nextTick=process.nextTick,typeof setImmediate=="function"?F.setImmediate=setImmediate:F.setImmediate=F.nextTick;return}if(typeof setImmediate=="function"){F.setImmediate=function(){return setImmediate.apply(void 0,arguments)},F.nextTick=function(o){return setImmediate(o)};return}if(F.setImmediate=function(o){setTimeout(o,0)},typeof window<"u"&&typeof window.postMessage=="function"){let o=function(u){if(u.source===window&&u.data===t){u.stopPropagation();var c=e.slice();e.length=0,c.forEach(function(l){l()})}};var a=o,t="forge.setImmediate",e=[];F.setImmediate=function(u){e.push(u),e.length===1&&window.postMessage(t,"*")},window.addEventListener("message",o,!0)}if(typeof MutationObserver<"u"){var r=Date.now(),i=!0,n=document.createElement("div"),e=[];new MutationObserver(function(){var u=e.slice();e.length=0,u.forEach(function(c){c()})}).observe(n,{attributes:!0});var s=F.setImmediate;F.setImmediate=function(u){Date.now()-r>15?(r=Date.now(),s(u)):(e.push(u),e.length===1&&n.setAttribute("a",i=!i))}}F.nextTick=F.setImmediate})();F.isNodejs=typeof process<"u"&&process.versions&&process.versions.node;F.globalScope=function(){return F.isNodejs?global:typeof self>"u"?window:self}();F.isArray=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};F.isArrayBuffer=function(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer};F.isArrayBufferView=function(t){return t&&F.isArrayBuffer(t.buffer)&&t.byteLength!==void 0};function Yh(t){if(!(t===8||t===16||t===24||t===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+t)}F.ByteBuffer=pS;function pS(t){if(this.data="",this.read=0,typeof t=="string")this.data=t;else if(F.isArrayBuffer(t)||F.isArrayBufferView(t))if(typeof Buffer<"u"&&t instanceof Buffer)this.data=t.toString("binary");else{var e=new Uint8Array(t);try{this.data=String.fromCharCode.apply(null,e)}catch{for(var r=0;rKme&&(this.data.substr(0,1),this._constructedStringLength=0)};F.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read};F.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0};F.ByteStringBuffer.prototype.putByte=function(t){return this.putBytes(String.fromCharCode(t))};F.ByteStringBuffer.prototype.fillWithByte=function(t,e){t=String.fromCharCode(t);for(var r=this.data;e>0;)e&1&&(r+=t),e>>>=1,e>0&&(t+=t);return this.data=r,this._optimizeConstructedString(e),this};F.ByteStringBuffer.prototype.putBytes=function(t){return this.data+=t,this._optimizeConstructedString(t.length),this};F.ByteStringBuffer.prototype.putString=function(t){return this.putBytes(F.encodeUtf8(t))};F.ByteStringBuffer.prototype.putInt16=function(t){return this.putBytes(String.fromCharCode(t>>8&255)+String.fromCharCode(t&255))};F.ByteStringBuffer.prototype.putInt24=function(t){return this.putBytes(String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(t&255))};F.ByteStringBuffer.prototype.putInt32=function(t){return this.putBytes(String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(t&255))};F.ByteStringBuffer.prototype.putInt16Le=function(t){return this.putBytes(String.fromCharCode(t&255)+String.fromCharCode(t>>8&255))};F.ByteStringBuffer.prototype.putInt24Le=function(t){return this.putBytes(String.fromCharCode(t&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255))};F.ByteStringBuffer.prototype.putInt32Le=function(t){return this.putBytes(String.fromCharCode(t&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>24&255))};F.ByteStringBuffer.prototype.putInt=function(t,e){Yh(e);var r="";do e-=8,r+=String.fromCharCode(t>>e&255);while(e>0);return this.putBytes(r)};F.ByteStringBuffer.prototype.putSignedInt=function(t,e){return t<0&&(t+=2<0);return e};F.ByteStringBuffer.prototype.getSignedInt=function(t){var e=this.getInt(t),r=2<=r&&(e-=r<<1),e};F.ByteStringBuffer.prototype.getBytes=function(t){var e;return t?(t=Math.min(this.length(),t),e=this.data.slice(this.read,this.read+t),this.read+=t):t===0?e="":(e=this.read===0?this.data:this.data.slice(this.read),this.clear()),e};F.ByteStringBuffer.prototype.bytes=function(t){return typeof t>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+t)};F.ByteStringBuffer.prototype.at=function(t){return this.data.charCodeAt(this.read+t)};F.ByteStringBuffer.prototype.setAt=function(t,e){return this.data=this.data.substr(0,this.read+t)+String.fromCharCode(e)+this.data.substr(this.read+t+1),this};F.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};F.ByteStringBuffer.prototype.copy=function(){var t=F.createBuffer(this.data);return t.read=this.read,t};F.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this};F.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this};F.ByteStringBuffer.prototype.truncate=function(t){var e=Math.max(0,this.length()-t);return this.data=this.data.substr(this.read,e),this.read=0,this};F.ByteStringBuffer.prototype.toHex=function(){for(var t="",e=this.read;e=t)return this;e=Math.max(e||this.growSize,t);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),i=new Uint8Array(this.length()+e);return i.set(r),this.data=new DataView(i.buffer),this};F.DataBuffer.prototype.putByte=function(t){return this.accommodate(1),this.data.setUint8(this.write++,t),this};F.DataBuffer.prototype.fillWithByte=function(t,e){this.accommodate(e);for(var r=0;r>8&65535),this.data.setInt8(this.write,t>>16&255),this.write+=3,this};F.DataBuffer.prototype.putInt32=function(t){return this.accommodate(4),this.data.setInt32(this.write,t),this.write+=4,this};F.DataBuffer.prototype.putInt16Le=function(t){return this.accommodate(2),this.data.setInt16(this.write,t,!0),this.write+=2,this};F.DataBuffer.prototype.putInt24Le=function(t){return this.accommodate(3),this.data.setInt8(this.write,t>>16&255),this.data.setInt16(this.write,t>>8&65535,!0),this.write+=3,this};F.DataBuffer.prototype.putInt32Le=function(t){return this.accommodate(4),this.data.setInt32(this.write,t,!0),this.write+=4,this};F.DataBuffer.prototype.putInt=function(t,e){Yh(e),this.accommodate(e/8);do e-=8,this.data.setInt8(this.write++,t>>e&255);while(e>0);return this};F.DataBuffer.prototype.putSignedInt=function(t,e){return Yh(e),this.accommodate(e/8),t<0&&(t+=2<0);return e};F.DataBuffer.prototype.getSignedInt=function(t){var e=this.getInt(t),r=2<=r&&(e-=r<<1),e};F.DataBuffer.prototype.getBytes=function(t){var e;return t?(t=Math.min(this.length(),t),e=this.data.slice(this.read,this.read+t),this.read+=t):t===0?e="":(e=this.read===0?this.data:this.data.slice(this.read),this.clear()),e};F.DataBuffer.prototype.bytes=function(t){return typeof t>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+t)};F.DataBuffer.prototype.at=function(t){return this.data.getUint8(this.read+t)};F.DataBuffer.prototype.setAt=function(t,e){return this.data.setUint8(t,e),this};F.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)};F.DataBuffer.prototype.copy=function(){return new F.DataBuffer(this)};F.DataBuffer.prototype.compact=function(){if(this.read>0){var t=new Uint8Array(this.data.buffer,this.read),e=new Uint8Array(t.byteLength);e.set(t),this.data=new DataView(e),this.write-=this.read,this.read=0}return this};F.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this};F.DataBuffer.prototype.truncate=function(t){return this.write=Math.max(0,this.length()-t),this.read=Math.min(this.read,this.write),this};F.DataBuffer.prototype.toHex=function(){for(var t="",e=this.read;e0;)e&1&&(r+=t),e>>>=1,e>0&&(t+=t);return r};F.xorBytes=function(t,e,r){for(var i="",n="",s="",a=0,o=0;r>0;--r,++a)n=t.charCodeAt(a)^e.charCodeAt(a),o>=10&&(i+=s,s="",o=0),s+=String.fromCharCode(n),++o;return i+=s,i};F.hexToBytes=function(t){var e="",r=0;for(t.length&!0&&(r=1,e+=String.fromCharCode(parseInt(t[0],16)));r>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(t&255)};var uu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",cu=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],$q="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";F.encode64=function(t,e){for(var r="",i="",n,s,a,o=0;o>2),r+=uu.charAt((n&3)<<4|s>>4),isNaN(s)?r+="==":(r+=uu.charAt((s&15)<<2|a>>6),r+=isNaN(a)?"=":uu.charAt(a&63)),e&&r.length>e&&(i+=r.substr(0,e)+`\r +`,r=r.substr(e));return i+=r,i};F.decode64=function(t){t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var e="",r,i,n,s,a=0;a>4),n!==64&&(e+=String.fromCharCode((i&15)<<4|n>>2),s!==64&&(e+=String.fromCharCode((n&3)<<6|s)));return e};F.encodeUtf8=function(t){return unescape(encodeURIComponent(t))};F.decodeUtf8=function(t){return decodeURIComponent(escape(t))};F.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:Fq.encode,decode:Fq.decode}};F.binary.raw.encode=function(t){return String.fromCharCode.apply(null,t)};F.binary.raw.decode=function(t,e,r){var i=e;i||(i=new Uint8Array(t.length)),r=r||0;for(var n=r,s=0;s>2),r+=uu.charAt((n&3)<<4|s>>4),isNaN(s)?r+="==":(r+=uu.charAt((s&15)<<2|a>>6),r+=isNaN(a)?"=":uu.charAt(a&63)),e&&r.length>e&&(i+=r.substr(0,e)+`\r +`,r=r.substr(e));return i+=r,i};F.binary.base64.decode=function(t,e,r){var i=e;i||(i=new Uint8Array(Math.ceil(t.length/4)*3)),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=r||0;for(var n,s,a,o,u=0,c=r;u>4,a!==64&&(i[c++]=(s&15)<<4|a>>2,o!==64&&(i[c++]=(a&3)<<6|o));return e?c-r:i.subarray(0,c)};F.binary.base58.encode=function(t,e){return F.binary.baseN.encode(t,$q,e)};F.binary.base58.decode=function(t,e){return F.binary.baseN.decode(t,$q,e)};F.text={utf8:{},utf16:{}};F.text.utf8.encode=function(t,e,r){t=F.encodeUtf8(t);var i=e;i||(i=new Uint8Array(t.length)),r=r||0;for(var n=r,s=0;s"u"&&(r=["web","flash"]);var n,s=!1,a=null;for(var o in r){n=r[o];try{if(n==="flash"||n==="both"){if(e[0]===null)throw new Error("Flash local storage not available.");i=t.apply(this,e),s=n==="flash"}(n==="web"||n==="both")&&(e[0]=localStorage,i=t.apply(this,e),s=!0)}catch(u){a=u}if(s)break}if(!s)throw a;return i};F.setItem=function(t,e,r,i,n){oy(Yme,arguments,n)};F.getItem=function(t,e,r,i){return oy(Xme,arguments,i)};F.removeItem=function(t,e,r,i){oy(Qme,arguments,i)};F.clearItems=function(t,e,r){oy(Jme,arguments,r)};F.isEmpty=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0};F.format=function(t){for(var e=/%./g,r,i,n=0,s=[],a=0;r=e.exec(t);){i=t.substring(a,e.lastIndex-2),i.length>0&&s.push(i),a=e.lastIndex;var o=r[0][1];switch(o){case"s":case"o":n");break;case"%":s.push("%");break;default:s.push("<%"+o+"?>")}}return s.push(t.substring(a)),s.join("")};F.formatNumber=function(t,e,r,i){var n=t,s=isNaN(e=Math.abs(e))?2:e,a=r===void 0?",":r,o=i===void 0?".":i,u=n<0?"-":"",c=parseInt(n=Math.abs(+n||0).toFixed(s),10)+"",l=c.length>3?c.length%3:0;return u+(l?c.substr(0,l)+o:"")+c.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+o)+(s?a+Math.abs(n-c).toFixed(s).slice(2):"")};F.formatSize=function(t){return t>=1073741824?t=F.formatNumber(t/1073741824,2,".","")+" GiB":t>=1048576?t=F.formatNumber(t/1048576,2,".","")+" MiB":t>=1024?t=F.formatNumber(t/1024,0)+" KiB":t=F.formatNumber(t,0)+" bytes",t};F.bytesFromIP=function(t){return t.indexOf(".")!==-1?F.bytesFromIPv4(t):t.indexOf(":")!==-1?F.bytesFromIPv6(t):null};F.bytesFromIPv4=function(t){if(t=t.split("."),t.length!==4)return null;for(var e=F.createBuffer(),r=0;rr[i].end-r[i].start&&(i=r.length-1))}e.push(s)}if(r.length>0){var u=r[i];u.end-u.start>0&&(e.splice(u.start,u.end-u.start+1,""),u.start===0&&e.unshift(""),u.end===7&&e.push(""))}return e.join(":")};F.estimateCores=function(t,e){if(typeof t=="function"&&(e=t,t={}),t=t||{},"cores"in F&&!t.update)return e(null,F.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return F.cores=navigator.hardwareConcurrency,e(null,F.cores);if(typeof Worker>"u")return F.cores=1,e(null,F.cores);if(typeof Blob>"u")return F.cores=2,e(null,F.cores);var r=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(a){for(var o=Date.now(),u=o+4;Date.now()h.st&&l.stl.st&&h.st{var li=it();Dt();jq.exports=li.cipher=li.cipher||{};li.cipher.algorithms=li.cipher.algorithms||{};li.cipher.createCipher=function(t,e){var r=t;if(typeof r=="string"&&(r=li.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+t);return new li.cipher.BlockCipher({algorithm:r,key:e,decrypt:!1})};li.cipher.createDecipher=function(t,e){var r=t;if(typeof r=="string"&&(r=li.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+t);return new li.cipher.BlockCipher({algorithm:r,key:e,decrypt:!0})};li.cipher.registerAlgorithm=function(t,e){t=t.toUpperCase(),li.cipher.algorithms[t]=e};li.cipher.getAlgorithm=function(t){return t=t.toUpperCase(),t in li.cipher.algorithms?li.cipher.algorithms[t]:null};var hS=li.cipher.BlockCipher=function(t){this.algorithm=t.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=t.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=t.decrypt,this.algorithm.initialize(t)};hS.prototype.start=function(t){t=t||{};var e={};for(var r in t)e[r]=t[r];e.decrypt=this._decrypt,this._finish=!1,this._input=li.util.createBuffer(),this.output=t.output||li.util.createBuffer(),this.mode.start(e)};hS.prototype.update=function(t){for(t&&this._input.putBuffer(t);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()};hS.prototype.finish=function(t){t&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(r){return t(this.blockSize,r,!1)},this.mode.unpad=function(r){return t(this.blockSize,r,!0)});var e={};return e.decrypt=this._decrypt,e.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,e)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,e))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,e))}});var gS=E((ije,Uq)=>{var pi=it();Dt();pi.cipher=pi.cipher||{};var ht=Uq.exports=pi.cipher.modes=pi.cipher.modes||{};ht.ecb=function(t){t=t||{},this.name="ECB",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};ht.ecb.prototype.start=function(t){};ht.ecb.prototype.encrypt=function(t,e,r){if(t.length()0))return!0;for(var i=0;i0))return!0;for(var i=0;i0)return!1;var r=t.length(),i=t.at(r-1);return i>this.blockSize<<2?!1:(t.truncate(i),!0)};ht.cbc=function(t){t=t||{},this.name="CBC",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};ht.cbc.prototype.start=function(t){if(t.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in t)this._iv=cy(t.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")};ht.cbc.prototype.encrypt=function(t,e,r){if(t.length()0))return!0;for(var i=0;i0))return!0;for(var i=0;i0)return!1;var r=t.length(),i=t.at(r-1);return i>this.blockSize<<2?!1:(t.truncate(i),!0)};ht.cfb=function(t){t=t||{},this.name="CFB",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=pi.util.createBuffer(),this._partialBytes=0};ht.cfb.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");this._iv=cy(t.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};ht.cfb.prototype.encrypt=function(t,e,r){var i=t.length();if(i===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&i>=this.blockSize){for(var n=0;n0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n0)t.read-=this.blockSize;else for(var n=0;n0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0};ht.cfb.prototype.decrypt=function(t,e,r){var i=t.length();if(i===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&i>=this.blockSize){for(var n=0;n0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n0)t.read-=this.blockSize;else for(var n=0;n0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0};ht.ofb=function(t){t=t||{},this.name="OFB",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=pi.util.createBuffer(),this._partialBytes=0};ht.ofb.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");this._iv=cy(t.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};ht.ofb.prototype.encrypt=function(t,e,r){var i=t.length();if(t.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&i>=this.blockSize){for(var n=0;n0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n0)t.read-=this.blockSize;else for(var n=0;n0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0};ht.ofb.prototype.decrypt=ht.ofb.prototype.encrypt;ht.ctr=function(t){t=t||{},this.name="CTR",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=pi.util.createBuffer(),this._partialBytes=0};ht.ctr.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");this._iv=cy(t.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};ht.ctr.prototype.encrypt=function(t,e,r){var i=t.length();if(i===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&i>=this.blockSize)for(var n=0;n0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n0&&(t.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}ly(this._inBlock)};ht.ctr.prototype.decrypt=ht.ctr.prototype.encrypt;ht.gcm=function(t){t=t||{},this.name="GCM",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=pi.util.createBuffer(),this._partialBytes=0,this._R=3774873600};ht.gcm.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");var e=pi.util.createBuffer(t.iv);this._cipherLength=0;var r;if("additionalData"in t?r=pi.util.createBuffer(t.additionalData):r=pi.util.createBuffer(),"tagLength"in t?this._tagLength=t.tagLength:this._tagLength=128,this._tag=null,t.decrypt&&(this._tag=pi.util.createBuffer(t.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var i=e.length();if(i===12)this._j0=[e.getInt32(),e.getInt32(),e.getInt32(),1];else{for(this._j0=[0,0,0,0];e.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[e.getInt32(),e.getInt32(),e.getInt32(),e.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(mS(i*8)))}this._inBlock=this._j0.slice(0),ly(this._inBlock),this._partialBytes=0,r=pi.util.createBuffer(r),this._aDataLength=mS(r.length()*8);var n=r.length()%this.blockSize;for(n&&r.fillWithByte(0,this.blockSize-n),this._s=[0,0,0,0];r.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()])};ht.gcm.prototype.encrypt=function(t,e,r){var i=t.length();if(i===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&i>=this.blockSize){for(var n=0;n0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.read-=this.blockSize,e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),ly(this._inBlock)};ht.gcm.prototype.decrypt=function(t,e,r){var i=t.length();if(i0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),ly(this._inBlock),this._hashBlock[0]=t.getInt32(),this._hashBlock[1]=t.getInt32(),this._hashBlock[2]=t.getInt32(),this._hashBlock[3]=t.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var n=0;n0;--i)e[i]=t[i]>>>1|(t[i-1]&1)<<31;e[0]=t[0]>>>1,r&&(e[0]^=this._R)};ht.gcm.prototype.tableMultiply=function(t){for(var e=[0,0,0,0],r=0;r<32;++r){var i=r/8|0,n=t[i]>>>(7-r%8)*4&15,s=this._m[r][n];e[0]^=s[0],e[1]^=s[1],e[2]^=s[2],e[3]^=s[3]}return e};ht.gcm.prototype.ghash=function(t,e,r){return e[0]^=r[0],e[1]^=r[1],e[2]^=r[2],e[3]^=r[3],this.tableMultiply(e)};ht.gcm.prototype.generateHashTable=function(t,e){for(var r=8/e,i=4*r,n=16*r,s=new Array(n),a=0;a>>1,n=new Array(r);n[i]=t.slice(0);for(var s=i>>>1;s>0;)this.pow(n[2*s],n[s]=[]),s>>=1;for(s=2;s4){var r=t;t=pi.util.createBuffer();for(var i=0;i{var nr=it();uy();gS();Dt();zq.exports=nr.aes=nr.aes||{};nr.aes.startEncrypting=function(t,e,r,i){var n=py({key:t,output:r,decrypt:!1,mode:i});return n.start(e),n};nr.aes.createEncryptionCipher=function(t,e){return py({key:t,output:null,decrypt:!1,mode:e})};nr.aes.startDecrypting=function(t,e,r,i){var n=py({key:t,output:r,decrypt:!0,mode:i});return n.start(e),n};nr.aes.createDecryptionCipher=function(t,e){return py({key:t,output:null,decrypt:!0,mode:e})};nr.aes.Algorithm=function(t,e){bS||Hq();var r=this;r.name=t,r.mode=new e({blockSize:16,cipher:{encrypt:function(i,n){return yS(r._w,i,n,!1)},decrypt:function(i,n){return yS(r._w,i,n,!0)}}}),r._init=!1};nr.aes.Algorithm.prototype.initialize=function(t){if(!this._init){var e=t.key,r;if(typeof e=="string"&&(e.length===16||e.length===24||e.length===32))e=nr.util.createBuffer(e);else if(nr.util.isArray(e)&&(e.length===16||e.length===24||e.length===32)){r=e,e=nr.util.createBuffer();for(var i=0;i>>2;for(var i=0;i>8^o&255^99,Wi[r]=o,vS[o]=r,u=t[o],n=t[r],s=t[n],a=t[s],c=u<<24^o<<16^o<<8^(o^u),l=(n^s^a)<<24^(r^a)<<16^(r^s^a)<<8^(r^n^a);for(var f=0;f<4;++f)Lc[f][r]=c,Rs[f][o]=l,c=c<<24|c>>>8,l=l<<24|l>>>8;r===0?r=i=1:(r=n^t[t[t[n^a]]],i^=t[t[i]])}}function Gq(t,e){for(var r=t.slice(0),i,n=1,s=r.length,a=s+6+1,o=Yp*a,u=s;u>>16&255]<<24^Wi[i>>>8&255]<<16^Wi[i&255]<<8^Wi[i>>>24]^Vq[n]<<24,n++):s>6&&u%s===4&&(i=Wi[i>>>24]<<24^Wi[i>>>16&255]<<16^Wi[i>>>8&255]<<8^Wi[i&255]),r[u]=r[u-s]^i;if(e){var c,l=Rs[0],f=Rs[1],d=Rs[2],h=Rs[3],m=r.slice(0);o=r.length;for(var u=0,g=o-Yp;u>>24]]^f[Wi[c>>>16&255]]^d[Wi[c>>>8&255]]^h[Wi[c&255]];r=m}return r}function yS(t,e,r,i){var n=t.length/4-1,s,a,o,u,c;i?(s=Rs[0],a=Rs[1],o=Rs[2],u=Rs[3],c=vS):(s=Lc[0],a=Lc[1],o=Lc[2],u=Lc[3],c=Wi);var l,f,d,h,m,g,y;l=e[0]^t[0],f=e[i?3:1]^t[1],d=e[2]^t[2],h=e[i?1:3]^t[3];for(var b=3,w=1;w>>24]^a[f>>>16&255]^o[d>>>8&255]^u[h&255]^t[++b],g=s[f>>>24]^a[d>>>16&255]^o[h>>>8&255]^u[l&255]^t[++b],y=s[d>>>24]^a[h>>>16&255]^o[l>>>8&255]^u[f&255]^t[++b],h=s[h>>>24]^a[l>>>16&255]^o[f>>>8&255]^u[d&255]^t[++b],l=m,f=g,d=y;r[0]=c[l>>>24]<<24^c[f>>>16&255]<<16^c[d>>>8&255]<<8^c[h&255]^t[++b],r[i?3:1]=c[f>>>24]<<24^c[d>>>16&255]<<16^c[h>>>8&255]<<8^c[l&255]^t[++b],r[2]=c[d>>>24]<<24^c[h>>>16&255]<<16^c[l>>>8&255]<<8^c[f&255]^t[++b],r[i?1:3]=c[h>>>24]<<24^c[l>>>16&255]<<16^c[f>>>8&255]<<8^c[d&255]^t[++b]}function py(t){t=t||{};var e=(t.mode||"CBC").toUpperCase(),r="AES-"+e,i;t.decrypt?i=nr.cipher.createDecipher(r,t.key):i=nr.cipher.createCipher(r,t.key);var n=i.start;return i.start=function(s,a){var o=null;a instanceof nr.util.ByteBuffer&&(o=a,a={}),a=a||{},a.output=o,a.iv=s,n.call(i,a)},i}});var pu=E((sje,Kq)=>{var Xh=it();Xh.pki=Xh.pki||{};var xS=Kq.exports=Xh.pki.oids=Xh.oids=Xh.oids||{};function se(t,e){xS[t]=e,xS[e]=t}function Mt(t,e){xS[t]=e}se("1.2.840.113549.1.1.1","rsaEncryption");se("1.2.840.113549.1.1.4","md5WithRSAEncryption");se("1.2.840.113549.1.1.5","sha1WithRSAEncryption");se("1.2.840.113549.1.1.7","RSAES-OAEP");se("1.2.840.113549.1.1.8","mgf1");se("1.2.840.113549.1.1.9","pSpecified");se("1.2.840.113549.1.1.10","RSASSA-PSS");se("1.2.840.113549.1.1.11","sha256WithRSAEncryption");se("1.2.840.113549.1.1.12","sha384WithRSAEncryption");se("1.2.840.113549.1.1.13","sha512WithRSAEncryption");se("1.3.101.112","EdDSA25519");se("1.2.840.10040.4.3","dsa-with-sha1");se("1.3.14.3.2.7","desCBC");se("1.3.14.3.2.26","sha1");se("1.3.14.3.2.29","sha1WithRSASignature");se("2.16.840.1.101.3.4.2.1","sha256");se("2.16.840.1.101.3.4.2.2","sha384");se("2.16.840.1.101.3.4.2.3","sha512");se("2.16.840.1.101.3.4.2.4","sha224");se("2.16.840.1.101.3.4.2.5","sha512-224");se("2.16.840.1.101.3.4.2.6","sha512-256");se("1.2.840.113549.2.2","md2");se("1.2.840.113549.2.5","md5");se("1.2.840.113549.1.7.1","data");se("1.2.840.113549.1.7.2","signedData");se("1.2.840.113549.1.7.3","envelopedData");se("1.2.840.113549.1.7.4","signedAndEnvelopedData");se("1.2.840.113549.1.7.5","digestedData");se("1.2.840.113549.1.7.6","encryptedData");se("1.2.840.113549.1.9.1","emailAddress");se("1.2.840.113549.1.9.2","unstructuredName");se("1.2.840.113549.1.9.3","contentType");se("1.2.840.113549.1.9.4","messageDigest");se("1.2.840.113549.1.9.5","signingTime");se("1.2.840.113549.1.9.6","counterSignature");se("1.2.840.113549.1.9.7","challengePassword");se("1.2.840.113549.1.9.8","unstructuredAddress");se("1.2.840.113549.1.9.14","extensionRequest");se("1.2.840.113549.1.9.20","friendlyName");se("1.2.840.113549.1.9.21","localKeyId");se("1.2.840.113549.1.9.22.1","x509Certificate");se("1.2.840.113549.1.12.10.1.1","keyBag");se("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag");se("1.2.840.113549.1.12.10.1.3","certBag");se("1.2.840.113549.1.12.10.1.4","crlBag");se("1.2.840.113549.1.12.10.1.5","secretBag");se("1.2.840.113549.1.12.10.1.6","safeContentsBag");se("1.2.840.113549.1.5.13","pkcs5PBES2");se("1.2.840.113549.1.5.12","pkcs5PBKDF2");se("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4");se("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4");se("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC");se("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC");se("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC");se("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC");se("1.2.840.113549.2.7","hmacWithSHA1");se("1.2.840.113549.2.8","hmacWithSHA224");se("1.2.840.113549.2.9","hmacWithSHA256");se("1.2.840.113549.2.10","hmacWithSHA384");se("1.2.840.113549.2.11","hmacWithSHA512");se("1.2.840.113549.3.7","des-EDE3-CBC");se("2.16.840.1.101.3.4.1.2","aes128-CBC");se("2.16.840.1.101.3.4.1.22","aes192-CBC");se("2.16.840.1.101.3.4.1.42","aes256-CBC");se("2.5.4.3","commonName");se("2.5.4.4","surname");se("2.5.4.5","serialNumber");se("2.5.4.6","countryName");se("2.5.4.7","localityName");se("2.5.4.8","stateOrProvinceName");se("2.5.4.9","streetAddress");se("2.5.4.10","organizationName");se("2.5.4.11","organizationalUnitName");se("2.5.4.12","title");se("2.5.4.13","description");se("2.5.4.15","businessCategory");se("2.5.4.17","postalCode");se("2.5.4.42","givenName");se("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName");se("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName");se("2.16.840.1.113730.1.1","nsCertType");se("2.16.840.1.113730.1.13","nsComment");Mt("2.5.29.1","authorityKeyIdentifier");Mt("2.5.29.2","keyAttributes");Mt("2.5.29.3","certificatePolicies");Mt("2.5.29.4","keyUsageRestriction");Mt("2.5.29.5","policyMapping");Mt("2.5.29.6","subtreesConstraint");Mt("2.5.29.7","subjectAltName");Mt("2.5.29.8","issuerAltName");Mt("2.5.29.9","subjectDirectoryAttributes");Mt("2.5.29.10","basicConstraints");Mt("2.5.29.11","nameConstraints");Mt("2.5.29.12","policyConstraints");Mt("2.5.29.13","basicConstraints");se("2.5.29.14","subjectKeyIdentifier");se("2.5.29.15","keyUsage");Mt("2.5.29.16","privateKeyUsagePeriod");se("2.5.29.17","subjectAltName");se("2.5.29.18","issuerAltName");se("2.5.29.19","basicConstraints");Mt("2.5.29.20","cRLNumber");Mt("2.5.29.21","cRLReason");Mt("2.5.29.22","expirationDate");Mt("2.5.29.23","instructionCode");Mt("2.5.29.24","invalidityDate");Mt("2.5.29.25","cRLDistributionPoints");Mt("2.5.29.26","issuingDistributionPoint");Mt("2.5.29.27","deltaCRLIndicator");Mt("2.5.29.28","issuingDistributionPoint");Mt("2.5.29.29","certificateIssuer");Mt("2.5.29.30","nameConstraints");se("2.5.29.31","cRLDistributionPoints");se("2.5.29.32","certificatePolicies");Mt("2.5.29.33","policyMappings");Mt("2.5.29.34","policyConstraints");se("2.5.29.35","authorityKeyIdentifier");Mt("2.5.29.36","policyConstraints");se("2.5.29.37","extKeyUsage");Mt("2.5.29.46","freshestCRL");Mt("2.5.29.54","inhibitAnyPolicy");se("1.3.6.1.4.1.11129.2.4.2","timestampList");se("1.3.6.1.5.5.7.1.1","authorityInfoAccess");se("1.3.6.1.5.5.7.3.1","serverAuth");se("1.3.6.1.5.5.7.3.2","clientAuth");se("1.3.6.1.5.5.7.3.3","codeSigning");se("1.3.6.1.5.5.7.3.4","emailProtection");se("1.3.6.1.5.5.7.3.8","timeStamping")});var Os=E((aje,Yq)=>{var lr=it();Dt();pu();var ye=Yq.exports=lr.asn1=lr.asn1||{};ye.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};ye.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30};ye.create=function(t,e,r,i,n){if(lr.util.isArray(i)){for(var s=[],a=0;ae){var i=new Error("Too few bytes to parse DER.");throw i.available=t.length(),i.remaining=e,i.requested=r,i}}var Zme=function(t,e){var r=t.getByte();if(e--,r!==128){var i,n=r&128;if(!n)i=r;else{var s=r&127;Qh(t,e,s),i=t.getInt(s<<3)}if(i<0)throw new Error("Negative length: "+i);return i}};ye.fromDer=function(t,e){e===void 0&&(e={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof e=="boolean"&&(e={strict:e,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in e||(e.strict=!0),"parseAllBytes"in e||(e.parseAllBytes=!0),"decodeBitStrings"in e||(e.decodeBitStrings=!0),typeof t=="string"&&(t=lr.util.createBuffer(t));var r=t.length(),i=fy(t,t.length(),0,e);if(e.parseAllBytes&&t.length()!==0){var n=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw n.byteCount=r,n.remaining=t.length(),n}return i};function fy(t,e,r,i){var n;Qh(t,e,2);var s=t.getByte();e--;var a=s&192,o=s&31;n=t.length();var u=Zme(t,e);if(e-=n-t.length(),u!==void 0&&u>e){if(i.strict){var c=new Error("Too few bytes to read ASN.1 value.");throw c.available=t.length(),c.remaining=e,c.requested=u,c}u=e}var l,f,d=(s&32)===32;if(d)if(l=[],u===void 0)for(;;){if(Qh(t,e,2),t.bytes(2)===String.fromCharCode(0,0)){t.getBytes(2),e-=2;break}n=t.length(),l.push(fy(t,e,r+1,i)),e-=n-t.length()}else for(;u>0;)n=t.length(),l.push(fy(t,u,r+1,i)),e-=n-t.length(),u-=n-t.length();if(l===void 0&&a===ye.Class.UNIVERSAL&&o===ye.Type.BITSTRING&&(f=t.bytes(u)),l===void 0&&i.decodeBitStrings&&a===ye.Class.UNIVERSAL&&o===ye.Type.BITSTRING&&u>1){var h=t.read,m=e,g=0;if(o===ye.Type.BITSTRING&&(Qh(t,e,1),g=t.getByte(),e--),g===0)try{n=t.length();var y={strict:!0,decodeBitStrings:!0},b=fy(t,e,r+1,y),w=n-t.length();e-=w,o==ye.Type.BITSTRING&&w++;var S=b.tagClass;w===u&&(S===ye.Class.UNIVERSAL||S===ye.Class.CONTEXT_SPECIFIC)&&(l=[b])}catch{}l===void 0&&(t.read=h,e=m)}if(l===void 0){if(u===void 0){if(i.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");u=e}if(o===ye.Type.BMPSTRING)for(l="";u>0;u-=2)Qh(t,e,2),l+=String.fromCharCode(t.getInt16()),e-=2;else l=t.getBytes(u),e-=u}var x=f===void 0?null:{bitStringContents:f};return ye.create(a,o,d,l,x)}ye.toDer=function(t){var e=lr.util.createBuffer(),r=t.tagClass|t.type,i=lr.util.createBuffer(),n=!1;if("bitStringContents"in t&&(n=!0,t.original&&(n=ye.equals(t,t.original))),n)i.putBytes(t.bitStringContents);else if(t.composed){t.constructed?r|=32:i.putByte(0);for(var s=0;s1&&(t.value.charCodeAt(0)===0&&!(t.value.charCodeAt(1)&128)||t.value.charCodeAt(0)===255&&(t.value.charCodeAt(1)&128)===128)?i.putBytes(t.value.substr(1)):i.putBytes(t.value);if(e.putByte(r),i.length()<=127)e.putByte(i.length()&127);else{var a=i.length(),o="";do o+=String.fromCharCode(a&255),a=a>>>8;while(a>0);e.putByte(o.length|128);for(var s=o.length-1;s>=0;--s)e.putByte(o.charCodeAt(s))}return e.putBuffer(i),e};ye.oidToDer=function(t){var e=t.split("."),r=lr.util.createBuffer();r.putByte(40*parseInt(e[0],10)+parseInt(e[1],10));for(var i,n,s,a,o=2;o>>7,i||(a|=128),n.push(a),i=!1;while(s>0);for(var u=n.length-1;u>=0;--u)r.putByte(n[u])}return r};ye.derToOid=function(t){var e;typeof t=="string"&&(t=lr.util.createBuffer(t));var r=t.getByte();e=Math.floor(r/40)+"."+r%40;for(var i=0;t.length()>0;)r=t.getByte(),i=i<<7,r&128?i+=r&127:(e+="."+(i+r),i=0);return e};ye.utcTimeToDate=function(t){var e=new Date,r=parseInt(t.substr(0,2),10);r=r>=50?1900+r:2e3+r;var i=parseInt(t.substr(2,2),10)-1,n=parseInt(t.substr(4,2),10),s=parseInt(t.substr(6,2),10),a=parseInt(t.substr(8,2),10),o=0;if(t.length>11){var u=t.charAt(10),c=10;u!=="+"&&u!=="-"&&(o=parseInt(t.substr(10,2),10),c+=2)}if(e.setUTCFullYear(r,i,n),e.setUTCHours(s,a,o,0),c&&(u=t.charAt(c),u==="+"||u==="-")){var l=parseInt(t.substr(c+1,2),10),f=parseInt(t.substr(c+4,2),10),d=l*60+f;d*=6e4,u==="+"?e.setTime(+e-d):e.setTime(+e+d)}return e};ye.generalizedTimeToDate=function(t){var e=new Date,r=parseInt(t.substr(0,4),10),i=parseInt(t.substr(4,2),10)-1,n=parseInt(t.substr(6,2),10),s=parseInt(t.substr(8,2),10),a=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),u=0,c=0,l=!1;t.charAt(t.length-1)==="Z"&&(l=!0);var f=t.length-5,d=t.charAt(f);if(d==="+"||d==="-"){var h=parseInt(t.substr(f+1,2),10),m=parseInt(t.substr(f+4,2),10);c=h*60+m,c*=6e4,d==="+"&&(c*=-1),l=!0}return t.charAt(14)==="."&&(u=parseFloat(t.substr(14),10)*1e3),l?(e.setUTCFullYear(r,i,n),e.setUTCHours(s,a,o,u),e.setTime(+e+c)):(e.setFullYear(r,i,n),e.setHours(s,a,o,u)),e};ye.dateToUtcTime=function(t){if(typeof t=="string")return t;var e="",r=[];r.push((""+t.getUTCFullYear()).substr(2)),r.push(""+(t.getUTCMonth()+1)),r.push(""+t.getUTCDate()),r.push(""+t.getUTCHours()),r.push(""+t.getUTCMinutes()),r.push(""+t.getUTCSeconds());for(var i=0;i=-128&&t<128)return e.putSignedInt(t,8);if(t>=-32768&&t<32768)return e.putSignedInt(t,16);if(t>=-8388608&&t<8388608)return e.putSignedInt(t,24);if(t>=-2147483648&&t<2147483648)return e.putSignedInt(t,32);var r=new Error("Integer too large; max is 32-bits.");throw r.integer=t,r};ye.derToInteger=function(t){typeof t=="string"&&(t=lr.util.createBuffer(t));var e=t.length()*8;if(e>32)throw new Error("Integer too large; max is 32-bits.");return t.getSignedInt(e)};ye.validate=function(t,e,r,i){var n=!1;if((t.tagClass===e.tagClass||typeof e.tagClass>"u")&&(t.type===e.type||typeof e.type>"u"))if(t.constructed===e.constructed||typeof e.constructed>"u"){if(n=!0,e.value&&lr.util.isArray(e.value))for(var s=0,a=0;n&&a0&&(i+=` +`);for(var n="",s=0;s1?i+="0x"+lr.util.bytesToHex(t.value.slice(1)):i+="(none)",t.value.length>0){var c=t.value.charCodeAt(0);c==1?i+=" (1 unused bit shown)":c>1&&(i+=" ("+c+" unused bits shown)")}}else if(t.type===ye.Type.OCTETSTRING)Wq.test(t.value)||(i+="("+t.value+") "),i+="0x"+lr.util.bytesToHex(t.value);else if(t.type===ye.Type.UTF8)try{i+=lr.util.decodeUtf8(t.value)}catch(l){if(l.message==="URI malformed")i+="0x"+lr.util.bytesToHex(t.value)+" (malformed UTF8)";else throw l}else t.type===ye.Type.PRINTABLESTRING||t.type===ye.Type.IA5String?i+=t.value:Wq.test(t.value)?i+="0x"+lr.util.bytesToHex(t.value):t.value.length===0?i+="[null]":i+=t.value}return i}});var da=E((oje,Xq)=>{var dy=it();Xq.exports=dy.md=dy.md||{};dy.md.algorithms=dy.md.algorithms||{}});var Qp=E((uje,Qq)=>{var co=it();da();Dt();var e0e=Qq.exports=co.hmac=co.hmac||{};e0e.create=function(){var t=null,e=null,r=null,i=null,n={};return n.start=function(s,a){if(s!==null)if(typeof s=="string")if(s=s.toLowerCase(),s in co.md.algorithms)e=co.md.algorithms[s].create();else throw new Error('Unknown hash algorithm "'+s+'"');else e=s;if(a===null)a=t;else{if(typeof a=="string")a=co.util.createBuffer(a);else if(co.util.isArray(a)){var o=a;a=co.util.createBuffer();for(var u=0;ue.blockLength&&(e.start(),e.update(a.bytes()),a=e.digest()),r=co.util.createBuffer(),i=co.util.createBuffer(),c=a.length();for(var u=0;u{var ha=it();da();Dt();var Zq=t9.exports=ha.md5=ha.md5||{};ha.md.md5=ha.md.algorithms.md5=Zq;Zq.create=function(){e9||t0e();var t=null,e=ha.util.createBuffer(),r=new Array(16),i={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};return i.start=function(){i.messageLength=0,i.fullMessageLength=i.messageLength64=[];for(var n=i.messageLengthSize/4,s=0;s>>0,a>>>0];for(var o=i.fullMessageLength.length-1;o>=0;--o)i.fullMessageLength[o]+=a[1],a[1]=a[0]+(i.fullMessageLength[o]/4294967296>>>0),i.fullMessageLength[o]=i.fullMessageLength[o]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(n),Jq(t,r,e),(e.read>2048||e.length()===0)&&e.compact(),i},i.digest=function(){var n=ha.util.createBuffer();n.putBytes(e.bytes());var s=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize,a=s&i.blockLength-1;n.putBytes(wS.substr(0,i.blockLength-a));for(var o,u=0,c=i.fullMessageLength.length-1;c>=0;--c)o=i.fullMessageLength[c]*8+u,u=o/4294967296>>>0,n.putInt32Le(o>>>0);var l={h0:t.h0,h1:t.h1,h2:t.h2,h3:t.h3};Jq(l,r,n);var f=ha.util.createBuffer();return f.putInt32Le(l.h0),f.putInt32Le(l.h1),f.putInt32Le(l.h2),f.putInt32Le(l.h3),f},i};var wS=null,hy=null,Jh=null,Jp=null,e9=!1;function t0e(){wS=String.fromCharCode(128),wS+=ha.util.fillString(String.fromCharCode(0),64),hy=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],Jh=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],Jp=new Array(64);for(var t=0;t<64;++t)Jp[t]=Math.floor(Math.abs(Math.sin(t+1))*4294967296);e9=!0}function Jq(t,e,r){for(var i,n,s,a,o,u,c,l,f=r.length();f>=64;){for(n=t.h0,s=t.h1,a=t.h2,o=t.h3,l=0;l<16;++l)e[l]=r.getInt32Le(),u=o^s&(a^o),i=n+u+Jp[l]+e[l],c=Jh[l],n=o,o=a,a=s,s+=i<>>32-c;for(;l<32;++l)u=a^o&(s^a),i=n+u+Jp[l]+e[hy[l]],c=Jh[l],n=o,o=a,a=s,s+=i<>>32-c;for(;l<48;++l)u=s^a^o,i=n+u+Jp[l]+e[hy[l]],c=Jh[l],n=o,o=a,a=s,s+=i<>>32-c;for(;l<64;++l)u=a^(s|~o),i=n+u+Jp[l]+e[hy[l]],c=Jh[l],n=o,o=a,a=s,s+=i<>>32-c;t.h0=t.h0+n|0,t.h1=t.h1+s|0,t.h2=t.h2+a|0,t.h3=t.h3+o|0,f-=64}}});var Bc=E((lje,i9)=>{var vy=it();Dt();var r9=i9.exports=vy.pem=vy.pem||{};r9.encode=function(t,e){e=e||{};var r="-----BEGIN "+t.type+`-----\r +`,i;if(t.procType&&(i={name:"Proc-Type",values:[String(t.procType.version),t.procType.type]},r+=gy(i)),t.contentDomain&&(i={name:"Content-Domain",values:[t.contentDomain]},r+=gy(i)),t.dekInfo&&(i={name:"DEK-Info",values:[t.dekInfo.algorithm]},t.dekInfo.parameters&&i.values.push(t.dekInfo.parameters),r+=gy(i)),t.headers)for(var n=0;n65&&a!==-1){var o=e[a];o===","?(++a,e=e.substr(0,a)+`\r + `+e.substr(a)):e=e.substr(0,a)+`\r +`+o+e.substr(a+1),s=n-a-1,a=-1,++n}else(e[n]===" "||e[n]===" "||e[n]===",")&&(a=n);return e}function r0e(t){return t.replace(/^\s+/,"")}});var Zh=E((pje,s9)=>{var xr=it();uy();gS();Dt();s9.exports=xr.des=xr.des||{};xr.des.startEncrypting=function(t,e,r,i){var n=yy({key:t,output:r,decrypt:!1,mode:i||(e===null?"ECB":"CBC")});return n.start(e),n};xr.des.createEncryptionCipher=function(t,e){return yy({key:t,output:null,decrypt:!1,mode:e})};xr.des.startDecrypting=function(t,e,r,i){var n=yy({key:t,output:r,decrypt:!0,mode:i||(e===null?"ECB":"CBC")});return n.start(e),n};xr.des.createDecryptionCipher=function(t,e){return yy({key:t,output:null,decrypt:!0,mode:e})};xr.des.Algorithm=function(t,e){var r=this;r.name=t,r.mode=new e({blockSize:8,cipher:{encrypt:function(i,n){return n9(r._keys,i,n,!1)},decrypt:function(i,n){return n9(r._keys,i,n,!0)}}}),r._init=!1};xr.des.Algorithm.prototype.initialize=function(t){if(!this._init){var e=xr.util.createBuffer(t.key);if(this.name.indexOf("3DES")===0&&e.length()!==24)throw new Error("Invalid Triple-DES key size: "+e.length()*8);this._keys=p0e(e),this._init=!0}};ma("DES-ECB",xr.cipher.modes.ecb);ma("DES-CBC",xr.cipher.modes.cbc);ma("DES-CFB",xr.cipher.modes.cfb);ma("DES-OFB",xr.cipher.modes.ofb);ma("DES-CTR",xr.cipher.modes.ctr);ma("3DES-ECB",xr.cipher.modes.ecb);ma("3DES-CBC",xr.cipher.modes.cbc);ma("3DES-CFB",xr.cipher.modes.cfb);ma("3DES-OFB",xr.cipher.modes.ofb);ma("3DES-CTR",xr.cipher.modes.ctr);function ma(t,e){var r=function(){return new xr.des.Algorithm(t,e)};xr.cipher.registerAlgorithm(t,r)}var i0e=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],n0e=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],s0e=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],a0e=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],o0e=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],u0e=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],c0e=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],l0e=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function p0e(t){for(var e=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],i=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],n=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],a=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],o=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],u=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],c=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],l=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],f=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],d=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],h=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],m=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],g=t.length()>8?3:1,y=[],b=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],w=0,S,x=0;x>>4^R)&252645135,R^=S,k^=S<<4,S=(R>>>-16^k)&65535,k^=S,R^=S<<-16,S=(k>>>2^R)&858993459,R^=S,k^=S<<2,S=(R>>>-16^k)&65535,k^=S,R^=S<<-16,S=(k>>>1^R)&1431655765,R^=S,k^=S<<1,S=(R>>>8^k)&16711935,k^=S,R^=S<<8,S=(k>>>1^R)&1431655765,R^=S,k^=S<<1,S=k<<8|R>>>20&240,k=R<<24|R<<8&16711680|R>>>8&65280|R>>>24&240,R=S;for(var L=0;L>>26,R=R<<2|R>>>26):(k=k<<1|k>>>27,R=R<<1|R>>>27),k&=-15,R&=-15;var j=e[k>>>28]|r[k>>>24&15]|i[k>>>20&15]|n[k>>>16&15]|s[k>>>12&15]|a[k>>>8&15]|o[k>>>4&15],G=u[R>>>28]|c[R>>>24&15]|l[R>>>20&15]|f[R>>>16&15]|d[R>>>12&15]|h[R>>>8&15]|m[R>>>4&15];S=(G>>>16^j)&65535,y[w++]=j^S,y[w++]=G^S<<16}}return y}function n9(t,e,r,i){var n=t.length===32?3:9,s;n===3?s=i?[30,-2,-2]:[0,32,2]:s=i?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var a,o=e[0],u=e[1];a=(o>>>4^u)&252645135,u^=a,o^=a<<4,a=(o>>>16^u)&65535,u^=a,o^=a<<16,a=(u>>>2^o)&858993459,o^=a,u^=a<<2,a=(u>>>8^o)&16711935,o^=a,u^=a<<8,a=(o>>>1^u)&1431655765,u^=a,o^=a<<1,o=o<<1|o>>>31,u=u<<1|u>>>31;for(var c=0;c>>4|u<<28)^t[d+1];a=o,o=u,u=a^(n0e[h>>>24&63]|a0e[h>>>16&63]|u0e[h>>>8&63]|l0e[h&63]|i0e[m>>>24&63]|s0e[m>>>16&63]|o0e[m>>>8&63]|c0e[m&63])}a=o,o=u,u=a}o=o>>>1|o<<31,u=u>>>1|u<<31,a=(o>>>1^u)&1431655765,u^=a,o^=a<<1,a=(u>>>8^o)&16711935,o^=a,u^=a<<8,a=(u>>>2^o)&858993459,o^=a,u^=a<<2,a=(o>>>16^u)&65535,u^=a,o^=a<<16,a=(o>>>4^u)&252645135,u^=a,o^=a<<4,r[0]=o,r[1]=u}function yy(t){t=t||{};var e=(t.mode||"CBC").toUpperCase(),r="DES-"+e,i;t.decrypt?i=xr.cipher.createDecipher(r,t.key):i=xr.cipher.createCipher(r,t.key);var n=i.start;return i.start=function(s,a){var o=null;a instanceof xr.util.ByteBuffer&&(o=a,a={}),a=a||{},a.output=o,a.iv=s,n.call(i,a)},i}});var by=E((fje,a9)=>{var Yi=it();Qp();da();Dt();var f0e=Yi.pkcs5=Yi.pkcs5||{},lo;Yi.util.isNodejs&&!Yi.options.usePureJavaScript&&(lo=require("crypto"));a9.exports=Yi.pbkdf2=f0e.pbkdf2=function(t,e,r,i,n,s){if(typeof n=="function"&&(s=n,n=null),Yi.util.isNodejs&&!Yi.options.usePureJavaScript&&lo.pbkdf2&&(n===null||typeof n!="object")&&(lo.pbkdf2Sync.length>4||!n||n==="sha1"))return typeof n!="string"&&(n="sha1"),t=Buffer.from(t,"binary"),e=Buffer.from(e,"binary"),s?lo.pbkdf2Sync.length===4?lo.pbkdf2(t,e,r,i,function(S,x){if(S)return s(S);s(null,x.toString("binary"))}):lo.pbkdf2(t,e,r,i,n,function(S,x){if(S)return s(S);s(null,x.toString("binary"))}):lo.pbkdf2Sync.length===4?lo.pbkdf2Sync(t,e,r,i).toString("binary"):lo.pbkdf2Sync(t,e,r,i,n).toString("binary");if((typeof n>"u"||n===null)&&(n="sha1"),typeof n=="string"){if(!(n in Yi.md.algorithms))throw new Error("Unknown hash algorithm: "+n);n=Yi.md[n].create()}var a=n.digestLength;if(i>4294967295*a){var o=new Error("Derived key is too long.");if(s)return s(o);throw o}var u=Math.ceil(i/a),c=i-(u-1)*a,l=Yi.hmac.create();l.start(n,t);var f="",d,h,m;if(!s){for(var g=1;g<=u;++g){l.start(null,null),l.update(e),l.update(Yi.util.int32ToBytes(g)),d=m=l.digest().getBytes();for(var y=2;y<=r;++y)l.start(null,null),l.update(m),h=l.digest().getBytes(),d=Yi.util.xorBytes(d,h,a),m=h;f+=gu)return s(null,f);l.start(null,null),l.update(e),l.update(Yi.util.int32ToBytes(g)),d=m=l.digest().getBytes(),y=2,w()}function w(){if(y<=r)return l.start(null,null),l.update(m),h=l.digest().getBytes(),d=Yi.util.xorBytes(d,h,a),m=h,++y,Yi.util.setImmediate(w);f+=g{var ga=it();da();Dt();var u9=p9.exports=ga.sha256=ga.sha256||{};ga.md.sha256=ga.md.algorithms.sha256=u9;u9.create=function(){c9||d0e();var t=null,e=ga.util.createBuffer(),r=new Array(64),i={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return i.start=function(){i.messageLength=0,i.fullMessageLength=i.messageLength64=[];for(var n=i.messageLengthSize/4,s=0;s>>0,a>>>0];for(var o=i.fullMessageLength.length-1;o>=0;--o)i.fullMessageLength[o]+=a[1],a[1]=a[0]+(i.fullMessageLength[o]/4294967296>>>0),i.fullMessageLength[o]=i.fullMessageLength[o]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(n),o9(t,r,e),(e.read>2048||e.length()===0)&&e.compact(),i},i.digest=function(){var n=ga.util.createBuffer();n.putBytes(e.bytes());var s=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize,a=s&i.blockLength-1;n.putBytes(ES.substr(0,i.blockLength-a));for(var o,u,c=i.fullMessageLength[0]*8,l=0;l>>0,c+=u,n.putInt32(c>>>0),c=o>>>0;n.putInt32(c);var f={h0:t.h0,h1:t.h1,h2:t.h2,h3:t.h3,h4:t.h4,h5:t.h5,h6:t.h6,h7:t.h7};o9(f,r,n);var d=ga.util.createBuffer();return d.putInt32(f.h0),d.putInt32(f.h1),d.putInt32(f.h2),d.putInt32(f.h3),d.putInt32(f.h4),d.putInt32(f.h5),d.putInt32(f.h6),d.putInt32(f.h7),d},i};var ES=null,c9=!1,l9=null;function d0e(){ES=String.fromCharCode(128),ES+=ga.util.fillString(String.fromCharCode(0),64),l9=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c9=!0}function o9(t,e,r){for(var i,n,s,a,o,u,c,l,f,d,h,m,g,y,b,w=r.length();w>=64;){for(c=0;c<16;++c)e[c]=r.getInt32();for(;c<64;++c)i=e[c-2],i=(i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,n=e[c-15],n=(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,e[c]=i+e[c-7]+n+e[c-16]|0;for(l=t.h0,f=t.h1,d=t.h2,h=t.h3,m=t.h4,g=t.h5,y=t.h6,b=t.h7,c=0;c<64;++c)a=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),o=y^m&(g^y),s=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),u=l&f|d&(l^f),i=b+a+o+l9[c]+e[c],n=s+u,b=y,y=g,g=m,m=h+i>>>0,h=d,d=f,f=l,l=i+n>>>0;t.h0=t.h0+l|0,t.h1=t.h1+f|0,t.h2=t.h2+d|0,t.h3=t.h3+h|0,t.h4=t.h4+m|0,t.h5=t.h5+g|0,t.h6=t.h6+y|0,t.h7=t.h7+b|0,w-=64}}});var SS=E((hje,f9)=>{var va=it();Dt();var xy=null;va.util.isNodejs&&!va.options.usePureJavaScript&&!process.versions["node-webkit"]&&(xy=require("crypto"));var h0e=f9.exports=va.prng=va.prng||{};h0e.create=function(t){for(var e={plugin:t,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},r=t.md,i=new Array(32),n=0;n<32;++n)i[n]=r.create();e.pools=i,e.pool=0,e.generate=function(c,l){if(!l)return e.generateSync(c);var f=e.plugin.cipher,d=e.plugin.increment,h=e.plugin.formatKey,m=e.plugin.formatSeed,g=va.util.createBuffer();e.key=null,y();function y(b){if(b)return l(b);if(g.length()>=c)return l(null,g.getBytes(c));if(e.generated>1048575&&(e.key=null),e.key===null)return va.util.nextTick(function(){s(y)});var w=f(e.key,e.seed);e.generated+=w.length,g.putBytes(w),e.key=h(f(e.key,d(e.seed))),e.seed=m(f(e.key,e.seed)),va.util.setImmediate(y)}},e.generateSync=function(c){var l=e.plugin.cipher,f=e.plugin.increment,d=e.plugin.formatKey,h=e.plugin.formatSeed;e.key=null;for(var m=va.util.createBuffer();m.length()1048575&&(e.key=null),e.key===null&&a();var g=l(e.key,e.seed);e.generated+=g.length,m.putBytes(g),e.key=d(l(e.key,f(e.seed))),e.seed=h(l(e.key,e.seed))}return m.getBytes(c)};function s(c){if(e.pools[0].messageLength>=32)return o(),c();var l=32-e.pools[0].messageLength<<5;e.seedFile(l,function(f,d){if(f)return c(f);e.collect(d),o(),c()})}function a(){if(e.pools[0].messageLength>=32)return o();var c=32-e.pools[0].messageLength<<5;e.collect(e.seedFileSync(c)),o()}function o(){e.reseeds=e.reseeds===4294967295?0:e.reseeds+1;var c=e.plugin.md.create();c.update(e.keyBytes);for(var l=1,f=0;f<32;++f)e.reseeds%l===0&&(c.update(e.pools[f].digest().getBytes()),e.pools[f].start()),l=l<<1;e.keyBytes=c.digest().getBytes(),c.start(),c.update(e.keyBytes);var d=c.digest().getBytes();e.key=e.plugin.formatKey(e.keyBytes),e.seed=e.plugin.formatSeed(d),e.generated=0}function u(c){var l=null,f=va.util.globalScope,d=f.crypto||f.msCrypto;d&&d.getRandomValues&&(l=function(k){return d.getRandomValues(k)});var h=va.util.createBuffer();if(l)for(;h.length()>16),w+=(b&32767)<<16,w+=b>>15,w=(w&2147483647)+(w>>31),x=w&4294967295;for(var y=0;y<3;++y)S=x>>>(y<<3),S^=Math.floor(Math.random()*256),h.putByte(S&255)}return h.getBytes(c)}return xy?(e.seedFile=function(c,l){xy.randomBytes(c,function(f,d){if(f)return l(f);l(null,d.toString())})},e.seedFileSync=function(c){return xy.randomBytes(c).toString()}):(e.seedFile=function(c,l){try{l(null,u(c))}catch(f){l(f)}},e.seedFileSync=u),e.collect=function(c){for(var l=c.length,f=0;f>d&255);e.collect(f)},e.registerWorker=function(c){if(c===self)e.seedFile=function(f,d){function h(m){var g=m.data;g.forge&&g.forge.prng&&(self.removeEventListener("message",h),d(g.forge.prng.err,g.forge.prng.bytes))}self.addEventListener("message",h),self.postMessage({forge:{prng:{needed:f}}})};else{var l=function(f){var d=f.data;d.forge&&d.forge.prng&&e.seedFile(d.forge.prng.needed,function(h,m){c.postMessage({forge:{prng:{err:h,bytes:m}}})})};c.addEventListener("message",l)}},e}});var os=E((mje,_S)=>{var fi=it();lu();CS();SS();Dt();(function(){if(fi.random&&fi.random.getBytes){_S.exports=fi.random;return}(function(t){var e={},r=new Array(4),i=fi.util.createBuffer();e.formatKey=function(f){var d=fi.util.createBuffer(f);return f=new Array(4),f[0]=d.getInt32(),f[1]=d.getInt32(),f[2]=d.getInt32(),f[3]=d.getInt32(),fi.aes._expandKey(f,!1)},e.formatSeed=function(f){var d=fi.util.createBuffer(f);return f=new Array(4),f[0]=d.getInt32(),f[1]=d.getInt32(),f[2]=d.getInt32(),f[3]=d.getInt32(),f},e.cipher=function(f,d){return fi.aes._updateBlock(f,d,r,!1),i.putInt32(r[0]),i.putInt32(r[1]),i.putInt32(r[2]),i.putInt32(r[3]),i.getBytes()},e.increment=function(f){return++f[3],f},e.md=fi.md.sha256;function n(){var f=fi.prng.create(e);return f.getBytes=function(d,h){return f.generate(d,h)},f.getBytesSync=function(d){return f.generate(d)},f}var s=n(),a=null,o=fi.util.globalScope,u=o.crypto||o.msCrypto;if(u&&u.getRandomValues&&(a=function(f){return u.getRandomValues(f)}),fi.options.usePureJavaScript||!fi.util.isNodejs&&!a){if(typeof window>"u"||window.document,s.collectInt(+new Date,32),typeof navigator<"u"){var c="";for(var l in navigator)try{typeof navigator[l]=="string"&&(c+=navigator[l])}catch{}s.collect(c),c=null}t&&(t().mousemove(function(f){s.collectInt(f.clientX,16),s.collectInt(f.clientY,16)}),t().keypress(function(f){s.collectInt(f.charCode,8)}))}if(!fi.random)fi.random=s;else for(var l in s)fi.random[l]=s[l];fi.random.createInstance=n,_S.exports=fi.random})(typeof jQuery<"u"?jQuery:null)})()});var TS=E((gje,m9)=>{var yn=it();Dt();var AS=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],d9=[1,2,3,5],m0e=function(t,e){return t<>16-e},g0e=function(t,e){return(t&65535)>>e|t<<16-e&65535};m9.exports=yn.rc2=yn.rc2||{};yn.rc2.expandKey=function(t,e){typeof t=="string"&&(t=yn.util.createBuffer(t)),e=e||128;var r=t,i=t.length(),n=e,s=Math.ceil(n/8),a=255>>(n&7),o;for(o=i;o<128;o++)r.putByte(AS[r.at(o-1)+r.at(o-i)&255]);for(r.setAt(128-s,AS[r.at(128-s)&a]),o=127-s;o>=0;o--)r.setAt(o,AS[r.at(o+1)^r.at(o+s)]);return r};var h9=function(t,e,r){var i=!1,n=null,s=null,a=null,o,u,c,l,f=[];for(t=yn.rc2.expandKey(t,e),c=0;c<64;c++)f.push(t.getInt16Le());r?(o=function(m){for(c=0;c<4;c++)m[c]+=f[l]+(m[(c+3)%4]&m[(c+2)%4])+(~m[(c+3)%4]&m[(c+1)%4]),m[c]=m0e(m[c],d9[c]),l++},u=function(m){for(c=0;c<4;c++)m[c]+=f[m[(c+3)%4]&63]}):(o=function(m){for(c=3;c>=0;c--)m[c]=g0e(m[c],d9[c]),m[c]-=f[l]+(m[(c+3)%4]&m[(c+2)%4])+(~m[(c+3)%4]&m[(c+1)%4]),l--},u=function(m){for(c=3;c>=0;c--)m[c]-=f[m[(c+3)%4]&63]});var d=function(m){var g=[];for(c=0;c<4;c++){var y=n.getInt16Le();a!==null&&(r?y^=a.getInt16Le():a.putInt16Le(y)),g.push(y&65535)}l=r?0:63;for(var b=0;b=8;)d([[5,o],[1,u],[6,o],[1,u],[5,o]])},finish:function(m){var g=!0;if(r)if(m)g=m(8,n,!r);else{var y=n.length()===8?8:8-n.length();n.fillWithByte(y,y)}if(g&&(i=!0,h.update()),!r&&(g=n.length()===0,g))if(m)g=m(8,s,!r);else{var b=s.length(),w=s.at(b-1);w>b?g=!1:s.truncate(w)}return g}},h};yn.rc2.startEncrypting=function(t,e,r){var i=yn.rc2.createEncryptionCipher(t,128);return i.start(e,r),i};yn.rc2.createEncryptionCipher=function(t,e){return h9(t,e,!0)};yn.rc2.startDecrypting=function(t,e,r){var i=yn.rc2.createDecryptionCipher(t,128);return i.start(e,r),i};yn.rc2.createDecryptionCipher=function(t,e){return h9(t,e,!1)}});var tm=E((vje,C9)=>{var DS=it();C9.exports=DS.jsbn=DS.jsbn||{};var po,v0e=0xdeadbeefcafe,g9=(v0e&16777215)==15715070;function te(t,e,r){this.data=[],t!=null&&(typeof t=="number"?this.fromNumber(t,e,r):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}DS.jsbn.BigInteger=te;function kt(){return new te(null)}function y0e(t,e,r,i,n,s){for(;--s>=0;){var a=e*this.data[t++]+r.data[i]+n;n=Math.floor(a/67108864),r.data[i++]=a&67108863}return n}function b0e(t,e,r,i,n,s){for(var a=e&32767,o=e>>15;--s>=0;){var u=this.data[t]&32767,c=this.data[t++]>>15,l=o*u+c*a;u=a*u+((l&32767)<<15)+r.data[i]+(n&1073741823),n=(u>>>30)+(l>>>15)+o*c+(n>>>30),r.data[i++]=u&1073741823}return n}function v9(t,e,r,i,n,s){for(var a=e&16383,o=e>>14;--s>=0;){var u=this.data[t]&16383,c=this.data[t++]>>14,l=o*u+c*a;u=a*u+((l&16383)<<14)+r.data[i]+n,n=(u>>28)+(l>>14)+o*c,r.data[i++]=u&268435455}return n}typeof navigator>"u"?(te.prototype.am=v9,po=28):g9&&navigator.appName=="Microsoft Internet Explorer"?(te.prototype.am=b0e,po=30):g9&&navigator.appName!="Netscape"?(te.prototype.am=y0e,po=26):(te.prototype.am=v9,po=28);te.prototype.DB=po;te.prototype.DM=(1<=0;--e)t.data[e]=this.data[e];t.t=this.t,t.s=this.s}function E0e(t){this.t=1,this.s=t<0?-1:0,t>0?this.data[0]=t:t<-1?this.data[0]=t+this.DV:this.t=0}function fu(t){var e=kt();return e.fromInt(t),e}function C0e(t,e){var r;if(e==16)r=4;else if(e==8)r=3;else if(e==256)r=8;else if(e==2)r=1;else if(e==32)r=5;else if(e==4)r=2;else{this.fromRadix(t,e);return}this.t=0,this.s=0;for(var i=t.length,n=!1,s=0;--i>=0;){var a=r==8?t[i]&255:b9(t,i);if(a<0){t.charAt(i)=="-"&&(n=!0);continue}n=!1,s==0?this.data[this.t++]=a:s+r>this.DB?(this.data[this.t-1]|=(a&(1<>this.DB-s):this.data[this.t-1]|=a<=this.DB&&(s-=this.DB)}r==8&&t[0]&128&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<0&&this.data[this.t-1]==t;)--this.t}function _0e(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var r=(1<0)for(o>o)>0&&(n=!0,s=y9(i));a>=0;)o>(o+=this.DB-e)):(i=this.data[a]>>(o-=e)&r,o<=0&&(o+=this.DB,--a)),i>0&&(n=!0),n&&(s+=y9(i));return n?s:"0"}function A0e(){var t=kt();return te.ZERO.subTo(this,t),t}function T0e(){return this.s<0?this.negate():this}function D0e(t){var e=this.s-t.s;if(e!=0)return e;var r=this.t;if(e=r-t.t,e!=0)return this.s<0?-e:e;for(;--r>=0;)if((e=this.data[r]-t.data[r])!=0)return e;return 0}function Ey(t){var e=1,r;return(r=t>>>16)!=0&&(t=r,e+=16),(r=t>>8)!=0&&(t=r,e+=8),(r=t>>4)!=0&&(t=r,e+=4),(r=t>>2)!=0&&(t=r,e+=2),(r=t>>1)!=0&&(t=r,e+=1),e}function k0e(){return this.t<=0?0:this.DB*(this.t-1)+Ey(this.data[this.t-1]^this.s&this.DM)}function I0e(t,e){var r;for(r=this.t-1;r>=0;--r)e.data[r+t]=this.data[r];for(r=t-1;r>=0;--r)e.data[r]=0;e.t=this.t+t,e.s=this.s}function N0e(t,e){for(var r=t;r=0;--o)e.data[o+s+1]=this.data[o]>>i|a,a=(this.data[o]&n)<=0;--o)e.data[o]=0;e.data[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()}function O0e(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB,n=this.DB-i,s=(1<>i;for(var a=r+1;a>i;i>0&&(e.data[this.t-r-1]|=(this.s&s)<>=this.DB;if(t.t>=this.DB;i+=this.s}else{for(i+=this.s;r>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e.data[r++]=this.DV+i:i>0&&(e.data[r++]=i),e.t=r,e.clamp()}function L0e(t,e){var r=this.abs(),i=t.abs(),n=r.t;for(e.t=n+i.t;--n>=0;)e.data[n]=0;for(n=0;n=0;)t.data[r]=0;for(r=0;r=e.DV&&(t.data[r+e.t]-=e.DV,t.data[r+e.t+1]=1)}t.t>0&&(t.data[t.t-1]+=e.am(r,e.data[r],t,2*r,0,1)),t.s=0,t.clamp()}function q0e(t,e,r){var i=t.abs();if(!(i.t<=0)){var n=this.abs();if(n.t0?(i.lShiftTo(u,s),n.lShiftTo(u,r)):(i.copyTo(s),n.copyTo(r));var c=s.t,l=s.data[c-1];if(l!=0){var f=l*(1<1?s.data[c-2]>>this.F2:0),d=this.FV/f,h=(1<=0&&(r.data[r.t++]=1,r.subTo(b,r)),te.ONE.dlShiftTo(c,b),b.subTo(s,s);s.t=0;){var w=r.data[--g]==l?this.DM:Math.floor(r.data[g]*d+(r.data[g-1]+m)*h);if((r.data[g]+=s.am(0,w,r,y,0,c))0&&r.rShiftTo(u,r),a<0&&te.ZERO.subTo(r,r)}}}function F0e(t){var e=kt();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(te.ZERO)>0&&t.subTo(e,e),e}function qc(t){this.m=t}function $0e(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t}function M0e(t){return t}function j0e(t){t.divRemTo(this.m,null,t)}function U0e(t,e,r){t.multiplyTo(e,r),this.reduce(r)}function V0e(t,e){t.squareTo(e),this.reduce(e)}qc.prototype.convert=$0e;qc.prototype.revert=M0e;qc.prototype.reduce=j0e;qc.prototype.mulTo=U0e;qc.prototype.sqrTo=V0e;function H0e(){if(this.t<1)return 0;var t=this.data[0];if(!(t&1))return 0;var e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e}function Fc(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(e,e),e}function z0e(t){var e=kt();return t.copyTo(e),this.reduce(e),e}function K0e(t){for(;t.t<=this.mt2;)t.data[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(r=e+this.m.t,t.data[r]+=this.m.am(0,i,t,e,0,this.m.t);t.data[r]>=t.DV;)t.data[r]-=t.DV,t.data[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function W0e(t,e){t.squareTo(e),this.reduce(e)}function Y0e(t,e,r){t.multiplyTo(e,r),this.reduce(r)}Fc.prototype.convert=G0e;Fc.prototype.revert=z0e;Fc.prototype.reduce=K0e;Fc.prototype.mulTo=Y0e;Fc.prototype.sqrTo=W0e;function X0e(){return(this.t>0?this.data[0]&1:this.s)==0}function Q0e(t,e){if(t>4294967295||t<1)return te.ONE;var r=kt(),i=kt(),n=e.convert(this),s=Ey(t)-1;for(n.copyTo(r);--s>=0;)if(e.sqrTo(r,i),(t&1<0)e.mulTo(i,n,r);else{var a=r;r=i,i=a}return e.revert(r)}function J0e(t,e){var r;return t<256||e.isEven()?r=new qc(e):r=new Fc(e),this.exp(t,r)}te.prototype.copyTo=w0e;te.prototype.fromInt=E0e;te.prototype.fromString=C0e;te.prototype.clamp=S0e;te.prototype.dlShiftTo=I0e;te.prototype.drShiftTo=N0e;te.prototype.lShiftTo=R0e;te.prototype.rShiftTo=O0e;te.prototype.subTo=P0e;te.prototype.multiplyTo=L0e;te.prototype.squareTo=B0e;te.prototype.divRemTo=q0e;te.prototype.invDigit=H0e;te.prototype.isEven=X0e;te.prototype.exp=Q0e;te.prototype.toString=_0e;te.prototype.negate=A0e;te.prototype.abs=T0e;te.prototype.compareTo=D0e;te.prototype.bitLength=k0e;te.prototype.mod=F0e;te.prototype.modPowInt=J0e;te.ZERO=fu(0);te.ONE=fu(1);function Z0e(){var t=kt();return this.copyTo(t),t}function ege(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<>24}function rge(){return this.t==0?this.s:this.data[0]<<16>>16}function ige(t){return Math.floor(Math.LN2*this.DB/Math.log(t))}function nge(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}function sge(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=fu(r),n=kt(),s=kt(),a="";for(this.divRemTo(i,n,s);n.signum()>0;)a=(r+s.intValue()).toString(t).substr(1)+a,n.divRemTo(i,n,s);return s.intValue().toString(t)+a}function age(t,e){this.fromInt(0),e==null&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),n=!1,s=0,a=0,o=0;o=r&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),n&&te.ZERO.subTo(this,this)}function oge(t,e,r){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(te.ONE.shiftLeft(t-1),IS,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(te.ONE.shiftLeft(t-1),this);else{var i=new Array,n=t&7;i.length=(t>>3)+1,e.nextBytes(i),n>0?i[0]&=(1<0)for(r>r)!=(this.s&this.DM)>>r&&(e[n++]=i|this.s<=0;)r<8?(i=(this.data[t]&(1<>(r+=this.DB-8)):(i=this.data[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),i&128&&(i|=-256),n==0&&(this.s&128)!=(i&128)&&++n,(n>0||i!=this.s)&&(e[n++]=i);return e}function cge(t){return this.compareTo(t)==0}function lge(t){return this.compareTo(t)<0?this:t}function pge(t){return this.compareTo(t)>0?this:t}function fge(t,e,r){var i,n,s=Math.min(t.t,this.t);for(i=0;i>=16,e+=16),t&255||(t>>=8,e+=8),t&15||(t>>=4,e+=4),t&3||(t>>=2,e+=2),t&1||++e,e}function Ege(){for(var t=0;t=this.t?this.s!=0:(this.data[e]&1<>=this.DB;if(t.t>=this.DB;i+=this.s}else{for(i+=this.s;r>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e.data[r++]=i:i<-1&&(e.data[r++]=this.DV+i),e.t=r,e.clamp()}function Nge(t){var e=kt();return this.addTo(t,e),e}function Rge(t){var e=kt();return this.subTo(t,e),e}function Oge(t){var e=kt();return this.multiplyTo(t,e),e}function Pge(t){var e=kt();return this.divRemTo(t,e,null),e}function Lge(t){var e=kt();return this.divRemTo(t,null,e),e}function Bge(t){var e=kt(),r=kt();return this.divRemTo(t,e,r),new Array(e,r)}function qge(t){this.data[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()}function Fge(t,e){if(t!=0){for(;this.t<=e;)this.data[this.t++]=0;for(this.data[e]+=t;this.data[e]>=this.DV;)this.data[e]-=this.DV,++e>=this.t&&(this.data[this.t++]=0),++this.data[e]}}function em(){}function E9(t){return t}function $ge(t,e,r){t.multiplyTo(e,r)}function Mge(t,e){t.squareTo(e)}em.prototype.convert=E9;em.prototype.revert=E9;em.prototype.mulTo=$ge;em.prototype.sqrTo=Mge;function jge(t){return this.exp(t,new em)}function Uge(t,e,r){var i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r.data[--i]=0;var n;for(n=r.t-this.t;i=0;)r.data[i]=0;for(i=Math.max(e-this.t,0);i2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=kt();return t.copyTo(e),this.reduce(e),e}function Gge(t){return t}function zge(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)}function Kge(t,e){t.squareTo(e),this.reduce(e)}function Wge(t,e,r){t.multiplyTo(e,r),this.reduce(r)}ef.prototype.convert=Hge;ef.prototype.revert=Gge;ef.prototype.reduce=zge;ef.prototype.mulTo=Wge;ef.prototype.sqrTo=Kge;function Yge(t,e){var r=t.bitLength(),i,n=fu(1),s;if(r<=0)return n;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?s=new qc(e):e.isEven()?s=new ef(e):s=new Fc(e);var a=new Array,o=3,u=i-1,c=(1<1){var l=kt();for(s.sqrTo(a[1],l);o<=c;)a[o]=kt(),s.mulTo(l,a[o-2],a[o]),o+=2}var f=t.t-1,d,h=!0,m=kt(),g;for(r=Ey(t.data[f])-1;f>=0;){for(r>=u?d=t.data[f]>>r-u&c:(d=(t.data[f]&(1<0&&(d|=t.data[f-1]>>this.DB+r-u)),o=i;!(d&1);)d>>=1,--o;if((r-=o)<0&&(r+=this.DB,--f),h)a[d].copyTo(n),h=!1;else{for(;o>1;)s.sqrTo(n,m),s.sqrTo(m,n),o-=2;o>0?s.sqrTo(n,m):(g=n,n=m,m=g),s.mulTo(m,a[d],n)}for(;f>=0&&!(t.data[f]&1<0&&(e.rShiftTo(s,e),r.rShiftTo(s,r));e.signum()>0;)(n=e.getLowestSetBit())>0&&e.rShiftTo(n,e),(n=r.getLowestSetBit())>0&&r.rShiftTo(n,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return s>0&&r.lShiftTo(s,r),r}function Qge(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(e==0)r=this.data[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this.data[i])%t;return r}function Jge(t){var e=t.isEven();if(this.isEven()&&e||t.signum()==0)return te.ZERO;for(var r=t.clone(),i=this.clone(),n=fu(1),s=fu(0),a=fu(0),o=fu(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),e?((!n.isEven()||!s.isEven())&&(n.addTo(this,n),s.subTo(t,s)),n.rShiftTo(1,n)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),e?((!a.isEven()||!o.isEven())&&(a.addTo(this,a),o.subTo(t,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);r.compareTo(i)>=0?(r.subTo(i,r),e&&n.subTo(a,n),s.subTo(o,s)):(i.subTo(r,i),e&&a.subTo(n,a),o.subTo(s,o))}if(i.compareTo(te.ONE)!=0)return te.ZERO;if(o.compareTo(t)>=0)return o.subtract(t);if(o.signum()<0)o.addTo(t,o);else return o;return o.signum()<0?o.add(t):o}var Ps=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],Zge=(1<<26)/Ps[Ps.length-1];function eve(t){var e,r=this.abs();if(r.t==1&&r.data[0]<=Ps[Ps.length-1]){for(e=0;e=0);var o=s.modPow(i,this);if(o.compareTo(te.ONE)!=0&&o.compareTo(e)!=0){for(var u=1;u++{var ya=it();da();Dt();var _9=T9.exports=ya.sha1=ya.sha1||{};ya.md.sha1=ya.md.algorithms.sha1=_9;_9.create=function(){A9||ive();var t=null,e=ya.util.createBuffer(),r=new Array(80),i={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return i.start=function(){i.messageLength=0,i.fullMessageLength=i.messageLength64=[];for(var n=i.messageLengthSize/4,s=0;s>>0,a>>>0];for(var o=i.fullMessageLength.length-1;o>=0;--o)i.fullMessageLength[o]+=a[1],a[1]=a[0]+(i.fullMessageLength[o]/4294967296>>>0),i.fullMessageLength[o]=i.fullMessageLength[o]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(n),S9(t,r,e),(e.read>2048||e.length()===0)&&e.compact(),i},i.digest=function(){var n=ya.util.createBuffer();n.putBytes(e.bytes());var s=i.fullMessageLength[i.fullMessageLength.length-1]+i.messageLengthSize,a=s&i.blockLength-1;n.putBytes(NS.substr(0,i.blockLength-a));for(var o,u,c=i.fullMessageLength[0]*8,l=0;l>>0,c+=u,n.putInt32(c>>>0),c=o>>>0;n.putInt32(c);var f={h0:t.h0,h1:t.h1,h2:t.h2,h3:t.h3,h4:t.h4};S9(f,r,n);var d=ya.util.createBuffer();return d.putInt32(f.h0),d.putInt32(f.h1),d.putInt32(f.h2),d.putInt32(f.h3),d.putInt32(f.h4),d},i};var NS=null,A9=!1;function ive(){NS=String.fromCharCode(128),NS+=ya.util.fillString(String.fromCharCode(0),64),A9=!0}function S9(t,e,r){for(var i,n,s,a,o,u,c,l,f=r.length();f>=64;){for(n=t.h0,s=t.h1,a=t.h2,o=t.h3,u=t.h4,l=0;l<16;++l)i=r.getInt32(),e[l]=i,c=o^s&(a^o),i=(n<<5|n>>>27)+c+u+1518500249+i,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=n,n=i;for(;l<20;++l)i=e[l-3]^e[l-8]^e[l-14]^e[l-16],i=i<<1|i>>>31,e[l]=i,c=o^s&(a^o),i=(n<<5|n>>>27)+c+u+1518500249+i,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=n,n=i;for(;l<32;++l)i=e[l-3]^e[l-8]^e[l-14]^e[l-16],i=i<<1|i>>>31,e[l]=i,c=s^a^o,i=(n<<5|n>>>27)+c+u+1859775393+i,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=n,n=i;for(;l<40;++l)i=e[l-6]^e[l-16]^e[l-28]^e[l-32],i=i<<2|i>>>30,e[l]=i,c=s^a^o,i=(n<<5|n>>>27)+c+u+1859775393+i,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=n,n=i;for(;l<60;++l)i=e[l-6]^e[l-16]^e[l-28]^e[l-32],i=i<<2|i>>>30,e[l]=i,c=s&a|o&(s^a),i=(n<<5|n>>>27)+c+u+2400959708+i,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=n,n=i;for(;l<80;++l)i=e[l-6]^e[l-16]^e[l-28]^e[l-32],i=i<<2|i>>>30,e[l]=i,c=s^a^o,i=(n<<5|n>>>27)+c+u+3395469782+i,u=o,o=a,a=(s<<30|s>>>2)>>>0,s=n,n=i;t.h0=t.h0+n|0,t.h1=t.h1+s|0,t.h2=t.h2+a|0,t.h3=t.h3+o|0,t.h4=t.h4+u|0,f-=64}}});var RS=E((bje,k9)=>{var ba=it();Dt();os();tf();var D9=k9.exports=ba.pkcs1=ba.pkcs1||{};D9.encode_rsa_oaep=function(t,e,r){var i,n,s,a;typeof r=="string"?(i=r,n=arguments[3]||void 0,s=arguments[4]||void 0):r&&(i=r.label||void 0,n=r.seed||void 0,s=r.md||void 0,r.mgf1&&r.mgf1.md&&(a=r.mgf1.md)),s?s.start():s=ba.md.sha1.create(),a||(a=s);var o=Math.ceil(t.n.bitLength()/8),u=o-2*s.digestLength-2;if(e.length>u){var c=new Error("RSAES-OAEP input message length is too long.");throw c.length=e.length,c.maxLength=u,c}i||(i=""),s.update(i,"raw");for(var l=s.digest(),f="",d=u-e.length,h=0;h>24&255,s>>16&255,s>>8&255,s&255);r.start(),r.update(t+a),i+=r.digest().getBytes()}return i.substring(0,e)}});var PS=E((xje,OS)=>{var du=it();Dt();tm();os();(function(){if(du.prime){OS.exports=du.prime;return}var t=OS.exports=du.prime=du.prime||{},e=du.jsbn.BigInteger,r=[6,4,2,4,2,4,6,2],i=new e(null);i.fromInt(30);var n=function(f,d){return f|d};t.generateProbablePrime=function(f,d,h){typeof d=="function"&&(h=d,d={}),d=d||{};var m=d.algorithm||"PRIMEINC";typeof m=="string"&&(m={name:m}),m.options=m.options||{};var g=d.prng||du.random,y={nextBytes:function(b){for(var w=g.getBytesSync(b.length),S=0;Sd&&(f=c(d,h)),f.isProbablePrime(g))return b(null,f);f.dAddOffset(r[m++%8],0)}while(y<0||+new Date-w"u")return a(f,d,h,m);var g=c(f,d),y=h.workers,b=h.workLoad||100,w=b*30/8,S=h.workerScript||"forge/prime.worker.js";if(y===-1)return du.util.estimateCores(function(k,R){k&&(R=2),y=R-1,x()});x();function x(){y=Math.max(1,y);for(var k=[],R=0;Rf&&(g=c(f,d));var ue=g.toString(16);J.target.postMessage({hex:ue,workLoad:b}),g.dAddOffset(w,0)}}}}function c(f,d){var h=new e(f,d),m=f-1;return h.testBit(m)||h.bitwiseTo(e.ONE.shiftLeft(m),n,h),h.dAddOffset(31-h.mod(i).byteValue(),0),h}function l(f){return f<=100?27:f<=150?18:f<=200?15:f<=250?12:f<=300?9:f<=350?8:f<=400?7:f<=500?6:f<=600?5:f<=800?4:f<=1250?3:2}})()});var rm=E((wje,B9)=>{var qe=it();Os();tm();pu();RS();PS();os();Dt();typeof St>"u"&&(St=qe.jsbn.BigInteger);var St,LS=qe.util.isNodejs?require("crypto"):null,V=qe.asn1,cs=qe.util;qe.pki=qe.pki||{};B9.exports=qe.pki.rsa=qe.rsa=qe.rsa||{};var Xe=qe.pki,nve=[6,4,2,4,2,4,6,2],sve={name:"PrivateKeyInfo",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:V.Class.UNIVERSAL,type:V.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},ave={name:"RSAPrivateKey",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},ove={name:"RSAPublicKey",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:V.Class.UNIVERSAL,type:V.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},uve=qe.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:V.Class.UNIVERSAL,type:V.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},cve={name:"DigestInfo",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:V.Class.UNIVERSAL,type:V.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:V.Class.UNIVERSAL,type:V.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:V.Class.UNIVERSAL,type:V.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:V.Class.UNIVERSAL,type:V.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},lve=function(t){var e;if(t.algorithm in Xe.oids)e=Xe.oids[t.algorithm];else{var r=new Error("Unknown message digest algorithm.");throw r.algorithm=t.algorithm,r}var i=V.oidToDer(e).getBytes(),n=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[]),s=V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[]);s.value.push(V.create(V.Class.UNIVERSAL,V.Type.OID,!1,i)),s.value.push(V.create(V.Class.UNIVERSAL,V.Type.NULL,!1,""));var a=V.create(V.Class.UNIVERSAL,V.Type.OCTETSTRING,!1,t.digest().getBytes());return n.value.push(s),n.value.push(a),V.toDer(n).getBytes()},P9=function(t,e,r){if(r)return t.modPow(e.e,e.n);if(!e.p||!e.q)return t.modPow(e.d,e.n);e.dP||(e.dP=e.d.mod(e.p.subtract(St.ONE))),e.dQ||(e.dQ=e.d.mod(e.q.subtract(St.ONE))),e.qInv||(e.qInv=e.q.modInverse(e.p));var i;do i=new St(qe.util.bytesToHex(qe.random.getBytes(e.n.bitLength()/8)),16);while(i.compareTo(e.n)>=0||!i.gcd(e.n).equals(St.ONE));t=t.multiply(i.modPow(e.e,e.n)).mod(e.n);for(var n=t.mod(e.p).modPow(e.dP,e.p),s=t.mod(e.q).modPow(e.dQ,e.q);n.compareTo(s)<0;)n=n.add(e.p);var a=n.subtract(s).multiply(e.qInv).mod(e.p).multiply(e.q).add(s);return a=a.multiply(i.modInverse(e.n)).mod(e.n),a};Xe.rsa.encrypt=function(t,e,r){var i=r,n,s=Math.ceil(e.n.bitLength()/8);r!==!1&&r!==!0?(i=r===2,n=L9(t,e,r)):(n=qe.util.createBuffer(),n.putBytes(t));for(var a=new St(n.toHex(),16),o=P9(a,e,i),u=o.toString(16),c=qe.util.createBuffer(),l=s-Math.ceil(u.length/2);l>0;)c.putByte(0),--l;return c.putBytes(qe.util.hexToBytes(u)),c.getBytes()};Xe.rsa.decrypt=function(t,e,r,i){var n=Math.ceil(e.n.bitLength()/8);if(t.length!==n){var s=new Error("Encrypted message length is invalid.");throw s.length=t.length,s.expected=n,s}var a=new St(qe.util.createBuffer(t).toHex(),16);if(a.compareTo(e.n)>=0)throw new Error("Encrypted message is invalid.");for(var o=P9(a,e,r),u=o.toString(16),c=qe.util.createBuffer(),l=n-Math.ceil(u.length/2);l>0;)c.putByte(0),--l;return c.putBytes(qe.util.hexToBytes(u)),i!==!1?Sy(c.getBytes(),e,r):c.getBytes()};Xe.rsa.createKeyPairGenerationState=function(t,e,r){typeof t=="string"&&(t=parseInt(t,10)),t=t||2048,r=r||{};var i=r.prng||qe.random,n={nextBytes:function(o){for(var u=i.getBytesSync(o.length),c=0;c>1,pBits:t-(t>>1),pqState:0,num:null,keys:null},a.e.fromInt(a.eInt);else throw new Error("Invalid key generation algorithm: "+s);return a};Xe.rsa.stepKeyPairGenerationState=function(t,e){"algorithm"in t||(t.algorithm="PRIMEINC");var r=new St(null);r.fromInt(30);for(var i=0,n=function(f,d){return f|d},s=+new Date,a,o=0;t.keys===null&&(e<=0||ou?t.pqState=0:t.num.isProbablePrime(fve(t.num.bitLength()))?++t.pqState:t.num.dAddOffset(nve[i++%8],0):t.pqState===2?t.pqState=t.num.subtract(St.ONE).gcd(t.e).compareTo(St.ONE)===0?3:0:t.pqState===3&&(t.pqState=0,t.p===null?t.p=t.num:t.q=t.num,t.p!==null&&t.q!==null&&++t.state,t.num=null)}else if(t.state===1)t.p.compareTo(t.q)<0&&(t.num=t.p,t.p=t.q,t.q=t.num),++t.state;else if(t.state===2)t.p1=t.p.subtract(St.ONE),t.q1=t.q.subtract(St.ONE),t.phi=t.p1.multiply(t.q1),++t.state;else if(t.state===3)t.phi.gcd(t.e).compareTo(St.ONE)===0?++t.state:(t.p=null,t.q=null,t.state=0);else if(t.state===4)t.n=t.p.multiply(t.q),t.n.bitLength()===t.bits?++t.state:(t.q=null,t.state=0);else if(t.state===5){var l=t.e.modInverse(t.phi);t.keys={privateKey:Xe.rsa.setPrivateKey(t.n,t.e,l,t.p,t.q,l.mod(t.p1),l.mod(t.q1),t.q.modInverse(t.p)),publicKey:Xe.rsa.setPublicKey(t.n,t.e)}}a=+new Date,o+=a-s,s=a}return t.keys!==null};Xe.rsa.generateKeyPair=function(t,e,r,i){if(arguments.length===1?typeof t=="object"?(r=t,t=void 0):typeof t=="function"&&(i=t,t=void 0):arguments.length===2?typeof t=="number"?typeof e=="function"?(i=e,e=void 0):typeof e!="number"&&(r=e,e=void 0):(r=t,i=e,t=void 0,e=void 0):arguments.length===3&&(typeof e=="number"?typeof r=="function"&&(i=r,r=void 0):(i=r,r=e,e=void 0)),r=r||{},t===void 0&&(t=r.bits||2048),e===void 0&&(e=r.e||65537),!qe.options.usePureJavaScript&&!r.prng&&t>=256&&t<=16384&&(e===65537||e===3)){if(i){if(I9("generateKeyPair"))return LS.generateKeyPair("rsa",{modulusLength:t,publicExponent:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(o,u,c){if(o)return i(o);i(null,{privateKey:Xe.privateKeyFromPem(c),publicKey:Xe.publicKeyFromPem(u)})});if(N9("generateKey")&&N9("exportKey"))return cs.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:t,publicExponent:O9(e),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(o){return cs.globalScope.crypto.subtle.exportKey("pkcs8",o.privateKey)}).then(void 0,function(o){i(o)}).then(function(o){if(o){var u=Xe.privateKeyFromAsn1(V.fromDer(qe.util.createBuffer(o)));i(null,{privateKey:u,publicKey:Xe.setRsaPublicKey(u.n,u.e)})}});if(R9("generateKey")&&R9("exportKey")){var n=cs.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:t,publicExponent:O9(e),hash:{name:"SHA-256"}},!0,["sign","verify"]);n.oncomplete=function(o){var u=o.target.result,c=cs.globalScope.msCrypto.subtle.exportKey("pkcs8",u.privateKey);c.oncomplete=function(l){var f=l.target.result,d=Xe.privateKeyFromAsn1(V.fromDer(qe.util.createBuffer(f)));i(null,{privateKey:d,publicKey:Xe.setRsaPublicKey(d.n,d.e)})},c.onerror=function(l){i(l)}},n.onerror=function(o){i(o)};return}}else if(I9("generateKeyPairSync")){var s=LS.generateKeyPairSync("rsa",{modulusLength:t,publicExponent:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:Xe.privateKeyFromPem(s.privateKey),publicKey:Xe.publicKeyFromPem(s.publicKey)}}}var a=Xe.rsa.createKeyPairGenerationState(t,e,r);if(!i)return Xe.rsa.stepKeyPairGenerationState(a,0),a.keys;pve(a,r,i)};Xe.setRsaPublicKey=Xe.rsa.setPublicKey=function(t,e){var r={n:t,e};return r.encrypt=function(i,n,s){if(typeof n=="string"?n=n.toUpperCase():n===void 0&&(n="RSAES-PKCS1-V1_5"),n==="RSAES-PKCS1-V1_5")n={encode:function(o,u,c){return L9(o,u,2).getBytes()}};else if(n==="RSA-OAEP"||n==="RSAES-OAEP")n={encode:function(o,u){return qe.pkcs1.encode_rsa_oaep(u,o,s)}};else if(["RAW","NONE","NULL",null].indexOf(n)!==-1)n={encode:function(o){return o}};else if(typeof n=="string")throw new Error('Unsupported encryption scheme: "'+n+'".');var a=n.encode(i,r,!0);return Xe.rsa.encrypt(a,r,!0)},r.verify=function(i,n,s,a){typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSASSA-PKCS1-V1_5"),a===void 0&&(a={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in a||(a._parseAllDigestBytes=!0),s==="RSASSA-PKCS1-V1_5"?s={verify:function(u,c){c=Sy(c,r,!0);var l=V.fromDer(c,{parseAllBytes:a._parseAllDigestBytes}),f={},d=[];if(!V.validate(l,cve,f,d)){var h=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw h.errors=d,h}var m=V.derToOid(f.algorithmIdentifier);if(!(m===qe.oids.md2||m===qe.oids.md5||m===qe.oids.sha1||m===qe.oids.sha224||m===qe.oids.sha256||m===qe.oids.sha384||m===qe.oids.sha512||m===qe.oids["sha512-224"]||m===qe.oids["sha512-256"])){var h=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw h.oid=m,h}if((m===qe.oids.md2||m===qe.oids.md5)&&!("parameters"in f))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters.");return u===f.digest}}:(s==="NONE"||s==="NULL"||s===null)&&(s={verify:function(u,c){return c=Sy(c,r,!0),u===c}});var o=Xe.rsa.decrypt(n,r,!0,!1);return s.verify(i,o,r.n.bitLength())},r};Xe.setRsaPrivateKey=Xe.rsa.setPrivateKey=function(t,e,r,i,n,s,a,o){var u={n:t,e,d:r,p:i,q:n,dP:s,dQ:a,qInv:o};return u.decrypt=function(c,l,f){typeof l=="string"?l=l.toUpperCase():l===void 0&&(l="RSAES-PKCS1-V1_5");var d=Xe.rsa.decrypt(c,u,!1,!1);if(l==="RSAES-PKCS1-V1_5")l={decode:Sy};else if(l==="RSA-OAEP"||l==="RSAES-OAEP")l={decode:function(h,m){return qe.pkcs1.decode_rsa_oaep(m,h,f)}};else if(["RAW","NONE","NULL",null].indexOf(l)!==-1)l={decode:function(h){return h}};else throw new Error('Unsupported encryption scheme: "'+l+'".');return l.decode(d,u,!1)},u.sign=function(c,l){var f=!1;typeof l=="string"&&(l=l.toUpperCase()),l===void 0||l==="RSASSA-PKCS1-V1_5"?(l={encode:lve},f=1):(l==="NONE"||l==="NULL"||l===null)&&(l={encode:function(){return c}},f=1);var d=l.encode(c,u.n.bitLength());return Xe.rsa.encrypt(d,u,f)},u};Xe.wrapRsaPrivateKey=function(t){return V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,V.integerToDer(0).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(Xe.oids.rsaEncryption).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.NULL,!1,"")]),V.create(V.Class.UNIVERSAL,V.Type.OCTETSTRING,!1,V.toDer(t).getBytes())])};Xe.privateKeyFromAsn1=function(t){var e={},r=[];if(V.validate(t,sve,e,r)&&(t=V.fromDer(qe.util.createBuffer(e.privateKey))),e={},r=[],!V.validate(t,ave,e,r)){var i=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw i.errors=r,i}var n,s,a,o,u,c,l,f;return n=qe.util.createBuffer(e.privateKeyModulus).toHex(),s=qe.util.createBuffer(e.privateKeyPublicExponent).toHex(),a=qe.util.createBuffer(e.privateKeyPrivateExponent).toHex(),o=qe.util.createBuffer(e.privateKeyPrime1).toHex(),u=qe.util.createBuffer(e.privateKeyPrime2).toHex(),c=qe.util.createBuffer(e.privateKeyExponent1).toHex(),l=qe.util.createBuffer(e.privateKeyExponent2).toHex(),f=qe.util.createBuffer(e.privateKeyCoefficient).toHex(),Xe.setRsaPrivateKey(new St(n,16),new St(s,16),new St(a,16),new St(o,16),new St(u,16),new St(c,16),new St(l,16),new St(f,16))};Xe.privateKeyToAsn1=Xe.privateKeyToRSAPrivateKey=function(t){return V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,V.integerToDer(0).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,xa(t.n)),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,xa(t.e)),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,xa(t.d)),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,xa(t.p)),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,xa(t.q)),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,xa(t.dP)),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,xa(t.dQ)),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,xa(t.qInv))])};Xe.publicKeyFromAsn1=function(t){var e={},r=[];if(V.validate(t,uve,e,r)){var i=V.derToOid(e.publicKeyOid);if(i!==Xe.oids.rsaEncryption){var n=new Error("Cannot read public key. Unknown OID.");throw n.oid=i,n}t=e.rsaPublicKey}if(r=[],!V.validate(t,ove,e,r)){var n=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw n.errors=r,n}var s=qe.util.createBuffer(e.publicKeyModulus).toHex(),a=qe.util.createBuffer(e.publicKeyExponent).toHex();return Xe.setRsaPublicKey(new St(s,16),new St(a,16))};Xe.publicKeyToAsn1=Xe.publicKeyToSubjectPublicKeyInfo=function(t){return V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.OID,!1,V.oidToDer(Xe.oids.rsaEncryption).getBytes()),V.create(V.Class.UNIVERSAL,V.Type.NULL,!1,"")]),V.create(V.Class.UNIVERSAL,V.Type.BITSTRING,!1,[Xe.publicKeyToRSAPublicKey(t)])])};Xe.publicKeyToRSAPublicKey=function(t){return V.create(V.Class.UNIVERSAL,V.Type.SEQUENCE,!0,[V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,xa(t.n)),V.create(V.Class.UNIVERSAL,V.Type.INTEGER,!1,xa(t.e))])};function L9(t,e,r){var i=qe.util.createBuffer(),n=Math.ceil(e.n.bitLength()/8);if(t.length>n-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=t.length,s.max=n-11,s}i.putByte(0),i.putByte(r);var a=n-3-t.length,o;if(r===0||r===1){o=r===0?0:255;for(var u=0;u0;){for(var c=0,l=qe.random.getBytes(a),u=0;u"u")throw new Error("Encryption block is invalid.");var u=0;if(o===0){u=n-3-i;for(var c=0;c1;){if(s.getByte()!==255){--s.read;break}++u}else if(o===2)for(u=0;s.length()>1;){if(s.getByte()===0){--s.read;break}++u}var l=s.getByte();if(l!==0||u!==n-3-s.length())throw new Error("Encryption block is invalid.");return s.getBytes()}function pve(t,e,r){typeof e=="function"&&(r=e,e={}),e=e||{};var i={algorithm:{name:e.algorithm||"PRIMEINC",options:{workers:e.workers||2,workLoad:e.workLoad||100,workerScript:e.workerScript}}};"prng"in e&&(i.prng=e.prng),n();function n(){s(t.pBits,function(o,u){if(o)return r(o);if(t.p=u,t.q!==null)return a(o,t.q);s(t.qBits,a)})}function s(o,u){qe.prime.generateProbablePrime(o,i,u)}function a(o,u){if(o)return r(o);if(t.q=u,t.p.compareTo(t.q)<0){var c=t.p;t.p=t.q,t.q=c}if(t.p.subtract(St.ONE).gcd(t.e).compareTo(St.ONE)!==0){t.p=null,n();return}if(t.q.subtract(St.ONE).gcd(t.e).compareTo(St.ONE)!==0){t.q=null,s(t.qBits,a);return}if(t.p1=t.p.subtract(St.ONE),t.q1=t.q.subtract(St.ONE),t.phi=t.p1.multiply(t.q1),t.phi.gcd(t.e).compareTo(St.ONE)!==0){t.p=t.q=null,n();return}if(t.n=t.p.multiply(t.q),t.n.bitLength()!==t.bits){t.q=null,s(t.qBits,a);return}var l=t.e.modInverse(t.phi);t.keys={privateKey:Xe.rsa.setPrivateKey(t.n,t.e,l,t.p,t.q,l.mod(t.p1),l.mod(t.q1),t.q.modInverse(t.p)),publicKey:Xe.rsa.setPublicKey(t.n,t.e)},r(null,t.keys)}}function xa(t){var e=t.toString(16);e[0]>="8"&&(e="00"+e);var r=qe.util.hexToBytes(e);return r.length>1&&(r.charCodeAt(0)===0&&!(r.charCodeAt(1)&128)||r.charCodeAt(0)===255&&(r.charCodeAt(1)&128)===128)?r.substr(1):r}function fve(t){return t<=100?27:t<=150?18:t<=200?15:t<=250?12:t<=300?9:t<=350?8:t<=400?7:t<=500?6:t<=600?5:t<=800?4:t<=1250?3:2}function I9(t){return qe.util.isNodejs&&typeof LS[t]=="function"}function N9(t){return typeof cs.globalScope<"u"&&typeof cs.globalScope.crypto=="object"&&typeof cs.globalScope.crypto.subtle=="object"&&typeof cs.globalScope.crypto.subtle[t]=="function"}function R9(t){return typeof cs.globalScope<"u"&&typeof cs.globalScope.msCrypto=="object"&&typeof cs.globalScope.msCrypto.subtle=="object"&&typeof cs.globalScope.msCrypto.subtle[t]=="function"}function O9(t){for(var e=qe.util.hexToBytes(t.toString(16)),r=new Uint8Array(e.length),i=0;i{var Ee=it();lu();Os();Zh();da();pu();by();Bc();os();TS();rm();Dt();typeof q9>"u"&&(q9=Ee.jsbn.BigInteger);var q9,Q=Ee.asn1,et=Ee.pki=Ee.pki||{};j9.exports=et.pbe=Ee.pbe=Ee.pbe||{};var $c=et.oids,dve={name:"EncryptedPrivateKeyInfo",tagClass:Q.Class.UNIVERSAL,type:Q.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:Q.Class.UNIVERSAL,type:Q.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Q.Class.UNIVERSAL,type:Q.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:Q.Class.UNIVERSAL,type:Q.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:Q.Class.UNIVERSAL,type:Q.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},hve={name:"PBES2Algorithms",tagClass:Q.Class.UNIVERSAL,type:Q.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:Q.Class.UNIVERSAL,type:Q.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:Q.Class.UNIVERSAL,type:Q.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:Q.Class.UNIVERSAL,type:Q.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:Q.Class.UNIVERSAL,type:Q.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:Q.Class.UNIVERSAL,type:Q.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:Q.Class.UNIVERSAL,type:Q.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:Q.Class.UNIVERSAL,type:Q.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:Q.Class.UNIVERSAL,type:Q.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:Q.Class.UNIVERSAL,type:Q.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:Q.Class.UNIVERSAL,type:Q.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:Q.Class.UNIVERSAL,type:Q.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},mve={name:"pkcs-12PbeParams",tagClass:Q.Class.UNIVERSAL,type:Q.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:Q.Class.UNIVERSAL,type:Q.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:Q.Class.UNIVERSAL,type:Q.Type.INTEGER,constructed:!1,capture:"iterations"}]};et.encryptPrivateKeyInfo=function(t,e,r){r=r||{},r.saltSize=r.saltSize||8,r.count=r.count||2048,r.algorithm=r.algorithm||"aes128",r.prfAlgorithm=r.prfAlgorithm||"sha1";var i=Ee.random.getBytesSync(r.saltSize),n=r.count,s=Q.integerToDer(n),a,o,u;if(r.algorithm.indexOf("aes")===0||r.algorithm==="des"){var c,l,f;switch(r.algorithm){case"aes128":a=16,c=16,l=$c["aes128-CBC"],f=Ee.aes.createEncryptionCipher;break;case"aes192":a=24,c=16,l=$c["aes192-CBC"],f=Ee.aes.createEncryptionCipher;break;case"aes256":a=32,c=16,l=$c["aes256-CBC"],f=Ee.aes.createEncryptionCipher;break;case"des":a=8,c=8,l=$c.desCBC,f=Ee.des.createEncryptionCipher;break;default:var d=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw d.algorithm=r.algorithm,d}var h="hmacWith"+r.prfAlgorithm.toUpperCase(),m=M9(h),g=Ee.pkcs5.pbkdf2(e,i,n,a,m),y=Ee.random.getBytesSync(c),b=f(g);b.start(y),b.update(Q.toDer(t)),b.finish(),u=b.output.getBytes();var w=gve(i,s,a,h);o=Q.create(Q.Class.UNIVERSAL,Q.Type.SEQUENCE,!0,[Q.create(Q.Class.UNIVERSAL,Q.Type.OID,!1,Q.oidToDer($c.pkcs5PBES2).getBytes()),Q.create(Q.Class.UNIVERSAL,Q.Type.SEQUENCE,!0,[Q.create(Q.Class.UNIVERSAL,Q.Type.SEQUENCE,!0,[Q.create(Q.Class.UNIVERSAL,Q.Type.OID,!1,Q.oidToDer($c.pkcs5PBKDF2).getBytes()),w]),Q.create(Q.Class.UNIVERSAL,Q.Type.SEQUENCE,!0,[Q.create(Q.Class.UNIVERSAL,Q.Type.OID,!1,Q.oidToDer(l).getBytes()),Q.create(Q.Class.UNIVERSAL,Q.Type.OCTETSTRING,!1,y)])])])}else if(r.algorithm==="3des"){a=24;var S=new Ee.util.ByteBuffer(i),g=et.pbe.generatePkcs12Key(e,S,1,n,a),y=et.pbe.generatePkcs12Key(e,S,2,n,a),b=Ee.des.createEncryptionCipher(g);b.start(y),b.update(Q.toDer(t)),b.finish(),u=b.output.getBytes(),o=Q.create(Q.Class.UNIVERSAL,Q.Type.SEQUENCE,!0,[Q.create(Q.Class.UNIVERSAL,Q.Type.OID,!1,Q.oidToDer($c["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),Q.create(Q.Class.UNIVERSAL,Q.Type.SEQUENCE,!0,[Q.create(Q.Class.UNIVERSAL,Q.Type.OCTETSTRING,!1,i),Q.create(Q.Class.UNIVERSAL,Q.Type.INTEGER,!1,s.getBytes())])])}else{var d=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw d.algorithm=r.algorithm,d}var x=Q.create(Q.Class.UNIVERSAL,Q.Type.SEQUENCE,!0,[o,Q.create(Q.Class.UNIVERSAL,Q.Type.OCTETSTRING,!1,u)]);return x};et.decryptPrivateKeyInfo=function(t,e){var r=null,i={},n=[];if(!Q.validate(t,dve,i,n)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var a=Q.derToOid(i.encryptionOid),o=et.pbe.getCipher(a,i.encryptionParams,e),u=Ee.util.createBuffer(i.encryptedData);return o.update(u),o.finish()&&(r=Q.fromDer(o.output)),r};et.encryptedPrivateKeyToPem=function(t,e){var r={type:"ENCRYPTED PRIVATE KEY",body:Q.toDer(t).getBytes()};return Ee.pem.encode(r,{maxline:e})};et.encryptedPrivateKeyFromPem=function(t){var e=Ee.pem.decode(t)[0];if(e.type!=="ENCRYPTED PRIVATE KEY"){var r=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw r.headerType=e.type,r}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return Q.fromDer(e.body)};et.encryptRsaPrivateKey=function(t,e,r){if(r=r||{},!r.legacy){var i=et.wrapRsaPrivateKey(et.privateKeyToAsn1(t));return i=et.encryptPrivateKeyInfo(i,e,r),et.encryptedPrivateKeyToPem(i)}var n,s,a,o;switch(r.algorithm){case"aes128":n="AES-128-CBC",a=16,s=Ee.random.getBytesSync(16),o=Ee.aes.createEncryptionCipher;break;case"aes192":n="AES-192-CBC",a=24,s=Ee.random.getBytesSync(16),o=Ee.aes.createEncryptionCipher;break;case"aes256":n="AES-256-CBC",a=32,s=Ee.random.getBytesSync(16),o=Ee.aes.createEncryptionCipher;break;case"3des":n="DES-EDE3-CBC",a=24,s=Ee.random.getBytesSync(8),o=Ee.des.createEncryptionCipher;break;case"des":n="DES-CBC",a=8,s=Ee.random.getBytesSync(8),o=Ee.des.createEncryptionCipher;break;default:var u=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+r.algorithm+'".');throw u.algorithm=r.algorithm,u}var c=Ee.pbe.opensslDeriveBytes(e,s.substr(0,8),a),l=o(c);l.start(s),l.update(Q.toDer(et.privateKeyToAsn1(t))),l.finish();var f={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:n,parameters:Ee.util.bytesToHex(s).toUpperCase()},body:l.output.getBytes()};return Ee.pem.encode(f)};et.decryptRsaPrivateKey=function(t,e){var r=null,i=Ee.pem.decode(t)[0];if(i.type!=="ENCRYPTED PRIVATE KEY"&&i.type!=="PRIVATE KEY"&&i.type!=="RSA PRIVATE KEY"){var n=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw n.headerType=n,n}if(i.procType&&i.procType.type==="ENCRYPTED"){var s,a;switch(i.dekInfo.algorithm){case"DES-CBC":s=8,a=Ee.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,a=Ee.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,a=Ee.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,a=Ee.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,a=Ee.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,a=function(f){return Ee.rc2.createDecryptionCipher(f,40)};break;case"RC2-64-CBC":s=8,a=function(f){return Ee.rc2.createDecryptionCipher(f,64)};break;case"RC2-128-CBC":s=16,a=function(f){return Ee.rc2.createDecryptionCipher(f,128)};break;default:var n=new Error('Could not decrypt private key; unsupported encryption algorithm "'+i.dekInfo.algorithm+'".');throw n.algorithm=i.dekInfo.algorithm,n}var o=Ee.util.hexToBytes(i.dekInfo.parameters),u=Ee.pbe.opensslDeriveBytes(e,o.substr(0,8),s),c=a(u);if(c.start(o),c.update(Ee.util.createBuffer(i.body)),c.finish())r=c.output.getBytes();else return r}else r=i.body;return i.type==="ENCRYPTED PRIVATE KEY"?r=et.decryptPrivateKeyInfo(Q.fromDer(r),e):r=Q.fromDer(r),r!==null&&(r=et.privateKeyFromAsn1(r)),r};et.pbe.generatePkcs12Key=function(t,e,r,i,n,s){var a,o;if(typeof s>"u"||s===null){if(!("sha1"in Ee.md))throw new Error('"sha1" hash algorithm unavailable.');s=Ee.md.sha1.create()}var u=s.digestLength,c=s.blockLength,l=new Ee.util.ByteBuffer,f=new Ee.util.ByteBuffer;if(t!=null){for(o=0;o=0;o--)Z=Z>>8,Z+=j.at(o)+q.at(o),q.setAt(o,Z&255);J.putBuffer(q)}S=J,l.putBuffer(R)}return l.truncate(l.length()-n),l};et.pbe.getCipher=function(t,e,r){switch(t){case et.oids.pkcs5PBES2:return et.pbe.getCipherForPBES2(t,e,r);case et.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case et.oids["pbewithSHAAnd40BitRC2-CBC"]:return et.pbe.getCipherForPKCS12PBE(t,e,r);default:var i=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw i.oid=t,i.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],i}};et.pbe.getCipherForPBES2=function(t,e,r){var i={},n=[];if(!Q.validate(e,hve,i,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}if(t=Q.derToOid(i.kdfOid),t!==et.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=t,s.supportedOids=["pkcs5PBKDF2"],s}if(t=Q.derToOid(i.encOid),t!==et.oids["aes128-CBC"]&&t!==et.oids["aes192-CBC"]&&t!==et.oids["aes256-CBC"]&&t!==et.oids["des-EDE3-CBC"]&&t!==et.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=t,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var a=i.kdfSalt,o=Ee.util.createBuffer(i.kdfIterationCount);o=o.getInt(o.length()<<3);var u,c;switch(et.oids[t]){case"aes128-CBC":u=16,c=Ee.aes.createDecryptionCipher;break;case"aes192-CBC":u=24,c=Ee.aes.createDecryptionCipher;break;case"aes256-CBC":u=32,c=Ee.aes.createDecryptionCipher;break;case"des-EDE3-CBC":u=24,c=Ee.des.createDecryptionCipher;break;case"desCBC":u=8,c=Ee.des.createDecryptionCipher;break}var l=$9(i.prfOid),f=Ee.pkcs5.pbkdf2(r,a,o,u,l),d=i.encIv,h=c(f);return h.start(d),h};et.pbe.getCipherForPKCS12PBE=function(t,e,r){var i={},n=[];if(!Q.validate(e,mve,i,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var a=Ee.util.createBuffer(i.salt),o=Ee.util.createBuffer(i.iterations);o=o.getInt(o.length()<<3);var u,c,l;switch(t){case et.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:u=24,c=8,l=Ee.des.startDecrypting;break;case et.oids["pbewithSHAAnd40BitRC2-CBC"]:u=5,c=8,l=function(g,y){var b=Ee.rc2.createDecryptionCipher(g,40);return b.start(y,null),b};break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=t,s}var f=$9(i.prfOid),d=et.pbe.generatePkcs12Key(r,a,1,o,u,f);f.start();var h=et.pbe.generatePkcs12Key(r,a,2,o,c,f);return l(d,h)};et.pbe.opensslDeriveBytes=function(t,e,r,i){if(typeof i>"u"||i===null){if(!("md5"in Ee.md))throw new Error('"md5" hash algorithm unavailable.');i=Ee.md.md5.create()}e===null&&(e="");for(var n=[F9(i,t+e)],s=16,a=1;s{var rf=it();Os();Dt();var be=rf.asn1,nf=H9.exports=rf.pkcs7asn1=rf.pkcs7asn1||{};rf.pkcs7=rf.pkcs7||{};rf.pkcs7.asn1=nf;var U9={name:"ContentInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:be.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};nf.contentInfoValidator=U9;var V9={name:"EncryptedContentInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:be.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:be.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};nf.envelopedDataValidator={name:"EnvelopedData",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:be.Class.UNIVERSAL,type:be.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(V9)};nf.encryptedDataValidator={name:"EncryptedData",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"version"}].concat(V9)};var vve={name:"SignerInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:be.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:be.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:be.Class.UNIVERSAL,type:be.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:be.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};nf.signedDataValidator={name:"SignedData",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:be.Class.UNIVERSAL,type:be.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},U9,{name:"SignedData.Certificates",tagClass:be.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:be.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:be.Class.UNIVERSAL,type:be.Type.SET,capture:"signerInfos",optional:!0,value:[vve]}]};nf.recipientInfoValidator={name:"RecipientInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:be.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:be.Class.UNIVERSAL,type:be.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]}});var FS=E((Sje,G9)=>{var Mc=it();Dt();Mc.mgf=Mc.mgf||{};var yve=G9.exports=Mc.mgf.mgf1=Mc.mgf1=Mc.mgf1||{};yve.create=function(t){var e={generate:function(r,i){for(var n=new Mc.util.ByteBuffer,s=Math.ceil(i/t.digestLength),a=0;a{var _y=it();FS();z9.exports=_y.mgf=_y.mgf||{};_y.mgf.mgf1=_y.mgf1});var Ay=E((Aje,W9)=>{var jc=it();os();Dt();var bve=W9.exports=jc.pss=jc.pss||{};bve.create=function(t){arguments.length===3&&(t={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var e=t.md,r=t.mgf,i=e.digestLength,n=t.salt||null;typeof n=="string"&&(n=jc.util.createBuffer(n));var s;if("saltLength"in t)s=t.saltLength;else if(n!==null)s=n.length();else throw new Error("Salt length not specified or specific salt not given.");if(n!==null&&n.length()!==s)throw new Error("Given salt length does not match length of given salt.");var a=t.prng||jc.random,o={};return o.encode=function(u,c){var l,f=c-1,d=Math.ceil(f/8),h=u.digest().getBytes();if(d>8*d-f&255;return k=String.fromCharCode(k.charCodeAt(0)&~R)+k.substr(1),k+y+String.fromCharCode(188)},o.verify=function(u,c,l){var f,d=l-1,h=Math.ceil(d/8);if(c=c.substr(-h),h>8*h-d&255;if(g.charCodeAt(0)&b)throw new Error("Bits beyond keysize not zero as expected.");var w=r.generate(y,m),S="";for(f=0;f{var Fe=it();lu();Os();Zh();da();K9();pu();Bc();Ay();rm();Dt();var A=Fe.asn1,fe=Z9.exports=Fe.pki=Fe.pki||{},_t=fe.oids,Rr={};Rr.CN=_t.commonName;Rr.commonName="CN";Rr.C=_t.countryName;Rr.countryName="C";Rr.L=_t.localityName;Rr.localityName="L";Rr.ST=_t.stateOrProvinceName;Rr.stateOrProvinceName="ST";Rr.O=_t.organizationName;Rr.organizationName="O";Rr.OU=_t.organizationalUnitName;Rr.organizationalUnitName="OU";Rr.E=_t.emailAddress;Rr.emailAddress="E";var X9=Fe.pki.rsa.publicKeyValidator,xve={name:"Certificate",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:A.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:A.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:A.Class.UNIVERSAL,type:A.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:A.Class.UNIVERSAL,type:A.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:A.Class.UNIVERSAL,type:A.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:A.Class.UNIVERSAL,type:A.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},X9,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:A.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:A.Class.UNIVERSAL,type:A.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:A.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:A.Class.UNIVERSAL,type:A.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:A.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:A.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:A.Class.UNIVERSAL,type:A.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},wve={name:"rsapss",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:A.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:A.Class.UNIVERSAL,type:A.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:A.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:A.Class.UNIVERSAL,type:A.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:A.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:A.Class.UNIVERSAL,type:A.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:A.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:A.Class.UNIVERSAL,type:A.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},Eve={name:"CertificationRequestInfo",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:A.Class.UNIVERSAL,type:A.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},X9,{name:"CertificationRequestInfo.attributes",tagClass:A.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:A.Class.UNIVERSAL,type:A.Type.SET,constructed:!0}]}]}]},Cve={name:"CertificationRequest",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[Eve,{name:"CertificationRequest.signatureAlgorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:A.Class.UNIVERSAL,type:A.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:A.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:A.Class.UNIVERSAL,type:A.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};fe.RDNAttributesAsArray=function(t,e){for(var r=[],i,n,s,a=0;a2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(u.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(a.validity.notBefore=u[0],a.validity.notAfter=u[1],a.tbsCertificate=r.tbsCertificate,e){a.md=Dy({signatureOid:a.signatureOid,type:"certificate"});var c=A.toDer(a.tbsCertificate);a.md.update(c.getBytes())}var l=Fe.md.sha1.create(),f=A.toDer(r.certIssuer);l.update(f.getBytes()),a.issuer.getField=function(m){return hu(a.issuer,m)},a.issuer.addField=function(m){ls([m]),a.issuer.attributes.push(m)},a.issuer.attributes=fe.RDNAttributesAsArray(r.certIssuer),r.certIssuerUniqueId&&(a.issuer.uniqueId=r.certIssuerUniqueId),a.issuer.hash=l.digest().toHex();var d=Fe.md.sha1.create(),h=A.toDer(r.certSubject);return d.update(h.getBytes()),a.subject.getField=function(m){return hu(a.subject,m)},a.subject.addField=function(m){ls([m]),a.subject.attributes.push(m)},a.subject.attributes=fe.RDNAttributesAsArray(r.certSubject),r.certSubjectUniqueId&&(a.subject.uniqueId=r.certSubjectUniqueId),a.subject.hash=d.digest().toHex(),r.certExtensions?a.extensions=fe.certificateExtensionsFromAsn1(r.certExtensions):a.extensions=[],a.publicKey=fe.publicKeyFromAsn1(r.subjectPublicKeyInfo),a};fe.certificateExtensionsFromAsn1=function(t){for(var e=[],r=0;r1&&(i=r.value.charCodeAt(1),n=r.value.length>2?r.value.charCodeAt(2):0),e.digitalSignature=(i&128)===128,e.nonRepudiation=(i&64)===64,e.keyEncipherment=(i&32)===32,e.dataEncipherment=(i&16)===16,e.keyAgreement=(i&8)===8,e.keyCertSign=(i&4)===4,e.cRLSign=(i&2)===2,e.encipherOnly=(i&1)===1,e.decipherOnly=(n&128)===128}else if(e.name==="basicConstraints"){var r=A.fromDer(e.value);r.value.length>0&&r.value[0].type===A.Type.BOOLEAN?e.cA=r.value[0].value.charCodeAt(0)!==0:e.cA=!1;var s=null;r.value.length>0&&r.value[0].type===A.Type.INTEGER?s=r.value[0].value:r.value.length>1&&(s=r.value[1].value),s!==null&&(e.pathLenConstraint=A.derToInteger(s))}else if(e.name==="extKeyUsage")for(var r=A.fromDer(e.value),a=0;a1&&(i=r.value.charCodeAt(1)),e.client=(i&128)===128,e.server=(i&64)===64,e.email=(i&32)===32,e.objsign=(i&16)===16,e.reserved=(i&8)===8,e.sslCA=(i&4)===4,e.emailCA=(i&2)===2,e.objCA=(i&1)===1}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.altNames=[];for(var u,r=A.fromDer(e.value),c=0;c"u"&&(e.type&&e.type in fe.oids?e.name=fe.oids[e.type]:e.shortName&&e.shortName in Rr&&(e.name=fe.oids[Rr[e.shortName]])),typeof e.type>"u")if(e.name&&e.name in fe.oids)e.type=fe.oids[e.name];else{var i=new Error("Attribute type not specified.");throw i.attribute=e,i}if(typeof e.shortName>"u"&&e.name&&e.name in Rr&&(e.shortName=Rr[e.name]),e.type===_t.extensionRequest&&(e.valueConstructed=!0,e.valueTagClass=A.Type.SEQUENCE,!e.value&&e.extensions)){e.value=[];for(var n=0;n"u"){var i=new Error("Attribute value not specified.");throw i.attribute=e,i}}}function J9(t,e){if(e=e||{},typeof t.name>"u"&&t.id&&t.id in fe.oids&&(t.name=fe.oids[t.id]),typeof t.id>"u")if(t.name&&t.name in fe.oids)t.id=fe.oids[t.name];else{var r=new Error("Extension ID not specified.");throw r.extension=t,r}if(typeof t.value<"u")return t;if(t.name==="keyUsage"){var i=0,n=0,s=0;t.digitalSignature&&(n|=128,i=7),t.nonRepudiation&&(n|=64,i=6),t.keyEncipherment&&(n|=32,i=5),t.dataEncipherment&&(n|=16,i=4),t.keyAgreement&&(n|=8,i=3),t.keyCertSign&&(n|=4,i=2),t.cRLSign&&(n|=2,i=1),t.encipherOnly&&(n|=1,i=0),t.decipherOnly&&(s|=128,i=7);var a=String.fromCharCode(i);s!==0?a+=String.fromCharCode(n)+String.fromCharCode(s):n!==0&&(a+=String.fromCharCode(n)),t.value=A.create(A.Class.UNIVERSAL,A.Type.BITSTRING,!1,a)}else if(t.name==="basicConstraints")t.value=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]),t.cA&&t.value.value.push(A.create(A.Class.UNIVERSAL,A.Type.BOOLEAN,!1,String.fromCharCode(255))),"pathLenConstraint"in t&&t.value.value.push(A.create(A.Class.UNIVERSAL,A.Type.INTEGER,!1,A.integerToDer(t.pathLenConstraint).getBytes()));else if(t.name==="extKeyUsage"){t.value=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]);var o=t.value.value;for(var u in t)t[u]===!0&&(u in _t?o.push(A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(_t[u]).getBytes())):u.indexOf(".")!==-1&&o.push(A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(u).getBytes())))}else if(t.name==="nsCertType"){var i=0,n=0;t.client&&(n|=128,i=7),t.server&&(n|=64,i=6),t.email&&(n|=32,i=5),t.objsign&&(n|=16,i=4),t.reserved&&(n|=8,i=3),t.sslCA&&(n|=4,i=2),t.emailCA&&(n|=2,i=1),t.objCA&&(n|=1,i=0);var a=String.fromCharCode(i);n!==0&&(a+=String.fromCharCode(n)),t.value=A.create(A.Class.UNIVERSAL,A.Type.BITSTRING,!1,a)}else if(t.name==="subjectAltName"||t.name==="issuerAltName"){t.value=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]);for(var c,l=0;l128)throw new Error('Invalid "nsComment" content.');t.value=A.create(A.Class.UNIVERSAL,A.Type.IA5STRING,!1,t.comment)}else if(t.name==="subjectKeyIdentifier"&&e.cert){var f=e.cert.generateSubjectKeyIdentifier();t.subjectKeyIdentifier=f.toHex(),t.value=A.create(A.Class.UNIVERSAL,A.Type.OCTETSTRING,!1,f.getBytes())}else if(t.name==="authorityKeyIdentifier"&&e.cert){t.value=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]);var o=t.value.value;if(t.keyIdentifier){var d=t.keyIdentifier===!0?e.cert.generateSubjectKeyIdentifier().getBytes():t.keyIdentifier;o.push(A.create(A.Class.CONTEXT_SPECIFIC,0,!1,d))}if(t.authorityCertIssuer){var h=[A.create(A.Class.CONTEXT_SPECIFIC,4,!0,[sf(t.authorityCertIssuer===!0?e.cert.issuer:t.authorityCertIssuer)])];o.push(A.create(A.Class.CONTEXT_SPECIFIC,1,!0,h))}if(t.serialNumber){var m=Fe.util.hexToBytes(t.serialNumber===!0?e.cert.serialNumber:t.serialNumber);o.push(A.create(A.Class.CONTEXT_SPECIFIC,2,!1,m))}}else if(t.name==="cRLDistributionPoints"){t.value=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]);for(var o=t.value.value,g=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]),y=A.create(A.Class.CONTEXT_SPECIFIC,0,!0,[]),c,l=0;l"u"){var r=new Error("Extension value not specified.");throw r.extension=t,r}return t}function $S(t,e){switch(t){case _t["RSASSA-PSS"]:var r=[];return e.hash.algorithmOid!==void 0&&r.push(A.create(A.Class.CONTEXT_SPECIFIC,0,!0,[A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(e.hash.algorithmOid).getBytes()),A.create(A.Class.UNIVERSAL,A.Type.NULL,!1,"")])])),e.mgf.algorithmOid!==void 0&&r.push(A.create(A.Class.CONTEXT_SPECIFIC,1,!0,[A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(e.mgf.algorithmOid).getBytes()),A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(e.mgf.hash.algorithmOid).getBytes()),A.create(A.Class.UNIVERSAL,A.Type.NULL,!1,"")])])])),e.saltLength!==void 0&&r.push(A.create(A.Class.CONTEXT_SPECIFIC,2,!0,[A.create(A.Class.UNIVERSAL,A.Type.INTEGER,!1,A.integerToDer(e.saltLength).getBytes())])),A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,r);default:return A.create(A.Class.UNIVERSAL,A.Type.NULL,!1,"")}}function Sve(t){var e=A.create(A.Class.CONTEXT_SPECIFIC,0,!0,[]);if(t.attributes.length===0)return e;for(var r=t.attributes,i=0;i=_ve&&t0&&i.value.push(fe.certificateExtensionsToAsn1(t.extensions)),i};fe.getCertificationRequestInfo=function(t){var e=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.INTEGER,!1,A.integerToDer(t.version).getBytes()),sf(t.subject),fe.publicKeyToAsn1(t.publicKey),Sve(t)]);return e};fe.distinguishedNameToAsn1=function(t){return sf(t)};fe.certificateToAsn1=function(t){var e=t.tbsCertificate||fe.getTBSCertificate(t);return A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[e,A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[A.create(A.Class.UNIVERSAL,A.Type.OID,!1,A.oidToDer(t.signatureOid).getBytes()),$S(t.signatureOid,t.signatureParameters)]),A.create(A.Class.UNIVERSAL,A.Type.BITSTRING,!1,String.fromCharCode(0)+t.signature)])};fe.certificateExtensionsToAsn1=function(t){var e=A.create(A.Class.CONTEXT_SPECIFIC,3,!0,[]),r=A.create(A.Class.UNIVERSAL,A.Type.SEQUENCE,!0,[]);e.value.push(r);for(var i=0;i"u"&&(n=new Date);var s=!0,a=null,o=0;do{var u=e.shift(),c=null,l=!1;if(n&&(nu.validity.notAfter)&&(a={message:"Certificate is not valid yet or has expired.",error:fe.certificateError.certificate_expired,notBefore:u.validity.notBefore,notAfter:u.validity.notAfter,now:n}),a===null){if(c=e[0]||t.getIssuer(u),c===null&&u.isIssuer(u)&&(l=!0,c=u),c){var f=c;Fe.util.isArray(f)||(f=[f]);for(var d=!1;!d&&f.length>0;){c=f.shift();try{d=c.verify(u)}catch{}}d||(a={message:"Certificate signature is invalid.",error:fe.certificateError.bad_certificate})}a===null&&(!c||l)&&!t.hasCertificate(u)&&(a={message:"Certificate is not trusted.",error:fe.certificateError.unknown_ca})}if(a===null&&c&&!u.isIssuer(c)&&(a={message:"Certificate issuer is invalid.",error:fe.certificateError.bad_certificate}),a===null)for(var h={keyUsage:!0,basicConstraints:!0},m=0;a===null&&my.pathLenConstraint&&(a={message:"Certificate basicConstraints pathLenConstraint violated.",error:fe.certificateError.bad_certificate})}}var S=a===null?!0:a.error,x=r.verify?r.verify(S,o,i):S;if(x===!0)a=null;else throw S===!0&&(a={message:"The application rejected the certificate.",error:fe.certificateError.bad_certificate}),(x||x===0)&&(typeof x=="object"&&!Fe.util.isArray(x)?(x.message&&(a.message=x.message),x.error&&(a.error=x.error)):typeof x=="string"&&(a.error=x)),a;s=!1,++o}while(e.length>0);return!0}});var jS=E((Dje,tF)=>{var sr=it();Os();Qp();pu();qS();BS();os();rm();tf();Dt();ky();var O=sr.asn1,mt=sr.pki,nm=tF.exports=sr.pkcs12=sr.pkcs12||{},eF={name:"ContentInfo",tagClass:O.Class.UNIVERSAL,type:O.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:O.Class.UNIVERSAL,type:O.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:O.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},Tve={name:"PFX",tagClass:O.Class.UNIVERSAL,type:O.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:O.Class.UNIVERSAL,type:O.Type.INTEGER,constructed:!1,capture:"version"},eF,{name:"PFX.macData",tagClass:O.Class.UNIVERSAL,type:O.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:O.Class.UNIVERSAL,type:O.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:O.Class.UNIVERSAL,type:O.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:O.Class.UNIVERSAL,type:O.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:O.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:O.Class.UNIVERSAL,type:O.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:O.Class.UNIVERSAL,type:O.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:O.Class.UNIVERSAL,type:O.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},Dve={name:"SafeBag",tagClass:O.Class.UNIVERSAL,type:O.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:O.Class.UNIVERSAL,type:O.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:O.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:O.Class.UNIVERSAL,type:O.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},kve={name:"Attribute",tagClass:O.Class.UNIVERSAL,type:O.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:O.Class.UNIVERSAL,type:O.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:O.Class.UNIVERSAL,type:O.Type.SET,constructed:!0,capture:"values"}]},Ive={name:"CertBag",tagClass:O.Class.UNIVERSAL,type:O.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:O.Class.UNIVERSAL,type:O.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:O.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:O.Class.UNIVERSAL,type:O.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function im(t,e,r,i){for(var n=[],s=0;s=0&&n.push(o)}}return n}nm.pkcs12FromAsn1=function(t,e,r){typeof e=="string"?(r=e,e=!0):e===void 0&&(e=!0);var i={},n=[];if(!O.validate(t,Tve,i,n)){var s=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw s.errors=s,s}var a={version:i.version.charCodeAt(0),safeContents:[],getBags:function(y){var b={},w;return"localKeyId"in y?w=y.localKeyId:"localKeyIdHex"in y&&(w=sr.util.hexToBytes(y.localKeyIdHex)),w===void 0&&!("friendlyName"in y)&&"bagType"in y&&(b[y.bagType]=im(a.safeContents,null,null,y.bagType)),w!==void 0&&(b.localKeyId=im(a.safeContents,"localKeyId",w,y.bagType)),"friendlyName"in y&&(b.friendlyName=im(a.safeContents,"friendlyName",y.friendlyName,y.bagType)),b},getBagsByFriendlyName:function(y,b){return im(a.safeContents,"friendlyName",y,b)},getBagsByLocalKeyId:function(y,b){return im(a.safeContents,"localKeyId",y,b)}};if(i.version.charCodeAt(0)!==3){var s=new Error("PKCS#12 PFX of version other than 3 not supported.");throw s.version=i.version.charCodeAt(0),s}if(O.derToOid(i.contentType)!==mt.oids.data){var s=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw s.oid=O.derToOid(i.contentType),s}var o=i.content.value[0];if(o.tagClass!==O.Class.UNIVERSAL||o.type!==O.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(o=MS(o),i.mac){var u=null,c=0,l=O.derToOid(i.macAlgorithm);switch(l){case mt.oids.sha1:u=sr.md.sha1.create(),c=20;break;case mt.oids.sha256:u=sr.md.sha256.create(),c=32;break;case mt.oids.sha384:u=sr.md.sha384.create(),c=48;break;case mt.oids.sha512:u=sr.md.sha512.create(),c=64;break;case mt.oids.md5:u=sr.md.md5.create(),c=16;break}if(u===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+l);var f=new sr.util.ByteBuffer(i.macSalt),d="macIterations"in i?parseInt(sr.util.bytesToHex(i.macIterations),16):1,h=nm.generateKey(r,f,3,d,c,u),m=sr.hmac.create();m.start(u,h),m.update(o.value);var g=m.getMac();if(g.getBytes()!==i.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return Nve(a,o.value,e,r),a};function MS(t){if(t.composed||t.constructed){for(var e=sr.util.createBuffer(),r=0;r0&&(s=O.create(O.Class.UNIVERSAL,O.Type.SET,!0,u));var c=[],l=[];e!==null&&(sr.util.isArray(e)?l=e:l=[e]);for(var f=[],d=0;d0){var y=O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,f),b=O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,[O.create(O.Class.UNIVERSAL,O.Type.OID,!1,O.oidToDer(mt.oids.data).getBytes()),O.create(O.Class.CONTEXT_SPECIFIC,0,!0,[O.create(O.Class.UNIVERSAL,O.Type.OCTETSTRING,!1,O.toDer(y).getBytes())])]);c.push(b)}var w=null;if(t!==null){var S=mt.wrapRsaPrivateKey(mt.privateKeyToAsn1(t));r===null?w=O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,[O.create(O.Class.UNIVERSAL,O.Type.OID,!1,O.oidToDer(mt.oids.keyBag).getBytes()),O.create(O.Class.CONTEXT_SPECIFIC,0,!0,[S]),s]):w=O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,[O.create(O.Class.UNIVERSAL,O.Type.OID,!1,O.oidToDer(mt.oids.pkcs8ShroudedKeyBag).getBytes()),O.create(O.Class.CONTEXT_SPECIFIC,0,!0,[mt.encryptPrivateKeyInfo(S,r,i)]),s]);var x=O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,[w]),k=O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,[O.create(O.Class.UNIVERSAL,O.Type.OID,!1,O.oidToDer(mt.oids.data).getBytes()),O.create(O.Class.CONTEXT_SPECIFIC,0,!0,[O.create(O.Class.UNIVERSAL,O.Type.OCTETSTRING,!1,O.toDer(x).getBytes())])]);c.push(k)}var R=O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,c),L;if(i.useMac){var o=sr.md.sha1.create(),j=new sr.util.ByteBuffer(sr.random.getBytes(i.saltSize)),G=i.count,t=nm.generateKey(r,j,3,G,20),J=sr.hmac.create();J.start(o,t),J.update(O.toDer(R).getBytes());var q=J.getMac();L=O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,[O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,[O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,[O.create(O.Class.UNIVERSAL,O.Type.OID,!1,O.oidToDer(mt.oids.sha1).getBytes()),O.create(O.Class.UNIVERSAL,O.Type.NULL,!1,"")]),O.create(O.Class.UNIVERSAL,O.Type.OCTETSTRING,!1,q.getBytes())]),O.create(O.Class.UNIVERSAL,O.Type.OCTETSTRING,!1,j.getBytes()),O.create(O.Class.UNIVERSAL,O.Type.INTEGER,!1,O.integerToDer(G).getBytes())])}return O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,[O.create(O.Class.UNIVERSAL,O.Type.INTEGER,!1,O.integerToDer(3).getBytes()),O.create(O.Class.UNIVERSAL,O.Type.SEQUENCE,!0,[O.create(O.Class.UNIVERSAL,O.Type.OID,!1,O.oidToDer(mt.oids.data).getBytes()),O.create(O.Class.CONTEXT_SPECIFIC,0,!0,[O.create(O.Class.UNIVERSAL,O.Type.OCTETSTRING,!1,O.toDer(R).getBytes())])]),L])};nm.generateKey=sr.pbe.generatePkcs12Key});var VS=E((kje,rF)=>{var mu=it();Os();pu();BS();Bc();by();jS();Ay();rm();Dt();ky();var US=mu.asn1,af=rF.exports=mu.pki=mu.pki||{};af.pemToDer=function(t){var e=mu.pem.decode(t)[0];if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return mu.util.createBuffer(e.body)};af.privateKeyFromPem=function(t){var e=mu.pem.decode(t)[0];if(e.type!=="PRIVATE KEY"&&e.type!=="RSA PRIVATE KEY"){var r=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw r.headerType=e.type,r}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var i=US.fromDer(e.body);return af.privateKeyFromAsn1(i)};af.privateKeyToPem=function(t,e){var r={type:"RSA PRIVATE KEY",body:US.toDer(af.privateKeyToAsn1(t)).getBytes()};return mu.pem.encode(r,{maxline:e})};af.privateKeyInfoToPem=function(t,e){var r={type:"PRIVATE KEY",body:US.toDer(t).getBytes()};return mu.pem.encode(r,{maxline:e})}});var YS=E((Ije,lF)=>{var re=it();Os();Qp();my();Bc();VS();os();tf();Dt();var Oy=function(t,e,r,i){var n=re.util.createBuffer(),s=t.length>>1,a=s+(t.length&1),o=t.substr(0,a),u=t.substr(s,a),c=re.util.createBuffer(),l=re.hmac.create();r=e+r;var f=Math.ceil(i/16),d=Math.ceil(i/20);l.start("MD5",o);var h=re.util.createBuffer();c.putBytes(r);for(var m=0;m0&&(D.queue(t,D.createAlert(t,{level:D.Alert.Level.warning,description:D.Alert.Description.no_renegotiation})),D.flush(t)),t.process()};D.parseHelloMessage=function(t,e,r){var i=null,n=t.entity===D.ConnectionEnd.client;if(r<38)t.error(t,{message:n?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.illegal_parameter}});else{var s=e.fragment,a=s.length();if(i={version:{major:s.getByte(),minor:s.getByte()},random:re.util.createBuffer(s.getBytes(32)),session_id:jn(s,1),extensions:[]},n?(i.cipher_suite=s.getBytes(2),i.compression_method=s.getByte()):(i.cipher_suites=jn(s,2),i.compression_methods=jn(s,1)),a=r-(a-s.length()),a>0){for(var o=jn(s,2);o.length()>0;)i.extensions.push({type:[o.getByte(),o.getByte()],data:jn(o,2)});if(!n)for(var u=0;u0;){var f=l.getByte();if(f!==0)break;t.session.extensions.server_name.serverNameList.push(jn(l,2).getBytes())}}}if(t.session.version&&(i.version.major!==t.session.version.major||i.version.minor!==t.session.version.minor))return t.error(t,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.protocol_version}});if(n)t.session.cipherSuite=D.getCipherSuite(i.cipher_suite);else for(var d=re.util.createBuffer(i.cipher_suites.bytes());d.length()>0&&(t.session.cipherSuite=D.getCipherSuite(d.getBytes(2)),t.session.cipherSuite===null););if(t.session.cipherSuite===null)return t.error(t,{message:"No cipher suites in common.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.handshake_failure},cipherSuite:re.util.bytesToHex(i.cipher_suite)});n?t.session.compressionMethod=i.compression_method:t.session.compressionMethod=D.CompressionMethod.none}return i};D.createSecurityParameters=function(t,e){var r=t.entity===D.ConnectionEnd.client,i=e.random.bytes(),n=r?t.session.sp.client_random:i,s=r?i:D.createRandom().getBytes();t.session.sp={entity:t.entity,prf_algorithm:D.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:t.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:n,server_random:s}};D.handleServerHello=function(t,e,r){var i=D.parseHelloMessage(t,e,r);if(!t.fail){if(i.version.minor<=t.version.minor)t.version.minor=i.version.minor;else return t.error(t,{message:"Incompatible TLS version.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.protocol_version}});t.session.version=t.version;var n=i.session_id.bytes();n.length>0&&n===t.session.id?(t.expect=sF,t.session.resuming=!0,t.session.sp.server_random=i.random.bytes()):(t.expect=$ve,t.session.resuming=!1,D.createSecurityParameters(t,i)),t.session.id=n,t.process()}};D.handleClientHello=function(t,e,r){var i=D.parseHelloMessage(t,e,r);if(!t.fail){var n=i.session_id.bytes(),s=null;if(t.sessionCache&&(s=t.sessionCache.getSession(n),s===null?n="":(s.version.major!==i.version.major||s.version.minor>i.version.minor)&&(s=null,n="")),n.length===0&&(n=re.random.getBytes(32)),t.session.id=n,t.session.clientHelloVersion=i.version,t.session.sp={},s)t.version=t.session.version=s.version,t.session.sp=s.sp;else{for(var a,o=1;o0;)s=jn(n.certificate_list,3),a=re.asn1.fromDer(s),s=re.pki.certificateFromAsn1(a,!0),o.push(s)}catch(c){return t.error(t,{message:"Could not parse certificate list.",cause:c,send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.bad_certificate}})}var u=t.entity===D.ConnectionEnd.client;(u||t.verifyClient===!0)&&o.length===0?t.error(t,{message:u?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.illegal_parameter}}):o.length===0?t.expect=u?iF:zS:(u?t.session.serverCertificate=o[0]:t.session.clientCertificate=o[0],D.verifyCertificateChain(t,o)&&(t.expect=u?iF:zS)),t.process()};D.handleServerKeyExchange=function(t,e,r){if(r>0)return t.error(t,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.unsupported_certificate}});t.expect=Mve,t.process()};D.handleClientKeyExchange=function(t,e,r){if(r<48)return t.error(t,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.unsupported_certificate}});var i=e.fragment,n={enc_pre_master_secret:jn(i,2).getBytes()},s=null;if(t.getPrivateKey)try{s=t.getPrivateKey(t,t.session.serverCertificate),s=re.pki.privateKeyFromPem(s)}catch(u){t.error(t,{message:"Could not get private key.",cause:u,send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}})}if(s===null)return t.error(t,{message:"No private key set.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}});try{var a=t.session.sp;a.pre_master_secret=s.decrypt(n.enc_pre_master_secret);var o=t.session.clientHelloVersion;if(o.major!==a.pre_master_secret.charCodeAt(0)||o.minor!==a.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{a.pre_master_secret=re.random.getBytes(48)}t.expect=KS,t.session.clientCertificate!==null&&(t.expect=Kve),t.process()};D.handleCertificateRequest=function(t,e,r){if(r<3)return t.error(t,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.illegal_parameter}});var i=e.fragment,n={certificate_types:jn(i,1),certificate_authorities:jn(i,2)};t.session.certificateRequest=n,t.expect=jve,t.process()};D.handleCertificateVerify=function(t,e,r){if(r<2)return t.error(t,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.illegal_parameter}});var i=e.fragment;i.read-=4;var n=i.bytes();i.read+=4;var s={signature:jn(i,2).getBytes()},a=re.util.createBuffer();a.putBuffer(t.session.md5.digest()),a.putBuffer(t.session.sha1.digest()),a=a.getBytes();try{var o=t.session.clientCertificate;if(!o.publicKey.verify(a,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");t.session.md5.update(n),t.session.sha1.update(n)}catch{return t.error(t,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.handshake_failure}})}t.expect=KS,t.process()};D.handleServerHelloDone=function(t,e,r){if(r>0)return t.error(t,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.record_overflow}});if(t.serverCertificate===null){var i={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.insufficient_security}},n=0,s=t.verify(t,i.alert.description,n,[]);if(s!==!0)return(s||s===0)&&(typeof s=="object"&&!re.util.isArray(s)?(s.message&&(i.message=s.message),s.alert&&(i.alert.description=s.alert)):typeof s=="number"&&(i.alert.description=s)),t.error(t,i)}t.session.certificateRequest!==null&&(e=D.createRecord(t,{type:D.ContentType.handshake,data:D.createCertificate(t)}),D.queue(t,e)),e=D.createRecord(t,{type:D.ContentType.handshake,data:D.createClientKeyExchange(t)}),D.queue(t,e),t.expect=Hve;var a=function(o,u){o.session.certificateRequest!==null&&o.session.clientCertificate!==null&&D.queue(o,D.createRecord(o,{type:D.ContentType.handshake,data:D.createCertificateVerify(o,u)})),D.queue(o,D.createRecord(o,{type:D.ContentType.change_cipher_spec,data:D.createChangeCipherSpec()})),o.state.pending=D.createConnectionState(o),o.state.current.write=o.state.pending.write,D.queue(o,D.createRecord(o,{type:D.ContentType.handshake,data:D.createFinished(o)})),o.expect=sF,D.flush(o),o.process()};if(t.session.certificateRequest===null||t.session.clientCertificate===null)return a(t,null);D.getClientSignature(t,a)};D.handleChangeCipherSpec=function(t,e){if(e.fragment.getByte()!==1)return t.error(t,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.illegal_parameter}});var r=t.entity===D.ConnectionEnd.client;(t.session.resuming&&r||!t.session.resuming&&!r)&&(t.state.pending=D.createConnectionState(t)),t.state.current.read=t.state.pending.read,(!t.session.resuming&&r||t.session.resuming&&!r)&&(t.state.pending=null),t.expect=r?Uve:Wve,t.process()};D.handleFinished=function(t,e,r){var i=e.fragment;i.read-=4;var n=i.bytes();i.read+=4;var s=e.fragment.getBytes();i=re.util.createBuffer(),i.putBuffer(t.session.md5.digest()),i.putBuffer(t.session.sha1.digest());var a=t.entity===D.ConnectionEnd.client,o=a?"server finished":"client finished",u=t.session.sp,c=12,l=Oy;if(i=l(u.master_secret,o,i.getBytes(),c),i.getBytes()!==s)return t.error(t,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.decrypt_error}});t.session.md5.update(n),t.session.sha1.update(n),(t.session.resuming&&a||!t.session.resuming&&!a)&&(D.queue(t,D.createRecord(t,{type:D.ContentType.change_cipher_spec,data:D.createChangeCipherSpec()})),t.state.current.write=t.state.pending.write,t.state.pending=null,D.queue(t,D.createRecord(t,{type:D.ContentType.handshake,data:D.createFinished(t)}))),t.expect=a?Vve:Yve,t.handshaking=!1,++t.handshakes,t.peerCertificate=a?t.session.serverCertificate:t.session.clientCertificate,D.flush(t),t.isConnected=!0,t.connected(t),t.process()};D.handleAlert=function(t,e){var r=e.fragment,i={level:r.getByte(),description:r.getByte()},n;switch(i.description){case D.Alert.Description.close_notify:n="Connection closed.";break;case D.Alert.Description.unexpected_message:n="Unexpected message.";break;case D.Alert.Description.bad_record_mac:n="Bad record MAC.";break;case D.Alert.Description.decryption_failed:n="Decryption failed.";break;case D.Alert.Description.record_overflow:n="Record overflow.";break;case D.Alert.Description.decompression_failure:n="Decompression failed.";break;case D.Alert.Description.handshake_failure:n="Handshake failure.";break;case D.Alert.Description.bad_certificate:n="Bad certificate.";break;case D.Alert.Description.unsupported_certificate:n="Unsupported certificate.";break;case D.Alert.Description.certificate_revoked:n="Certificate revoked.";break;case D.Alert.Description.certificate_expired:n="Certificate expired.";break;case D.Alert.Description.certificate_unknown:n="Certificate unknown.";break;case D.Alert.Description.illegal_parameter:n="Illegal parameter.";break;case D.Alert.Description.unknown_ca:n="Unknown certificate authority.";break;case D.Alert.Description.access_denied:n="Access denied.";break;case D.Alert.Description.decode_error:n="Decode error.";break;case D.Alert.Description.decrypt_error:n="Decrypt error.";break;case D.Alert.Description.export_restriction:n="Export restriction.";break;case D.Alert.Description.protocol_version:n="Unsupported protocol version.";break;case D.Alert.Description.insufficient_security:n="Insufficient security.";break;case D.Alert.Description.internal_error:n="Internal error.";break;case D.Alert.Description.user_canceled:n="User canceled.";break;case D.Alert.Description.no_renegotiation:n="Renegotiation not supported.";break;default:n="Unknown error.";break}if(i.description===D.Alert.Description.close_notify)return t.close();t.error(t,{message:n,send:!1,origin:t.entity===D.ConnectionEnd.client?"server":"client",alert:i}),t.process()};D.handleHandshake=function(t,e){var r=e.fragment,i=r.getByte(),n=r.getInt24();if(n>r.length())return t.fragmented=e,e.fragment=re.util.createBuffer(),r.read-=4,t.process();t.fragmented=null,r.read-=4;var s=r.bytes(n+4);r.read+=4,i in Ry[t.entity][t.expect]?(t.entity===D.ConnectionEnd.server&&!t.open&&!t.fail&&(t.handshaking=!0,t.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:re.md.md5.create(),sha1:re.md.sha1.create()}),i!==D.HandshakeType.hello_request&&i!==D.HandshakeType.certificate_verify&&i!==D.HandshakeType.finished&&(t.session.md5.update(s),t.session.sha1.update(s)),Ry[t.entity][t.expect][i](t,e,n)):D.handleUnexpected(t,e)};D.handleApplicationData=function(t,e){t.data.putBuffer(e.fragment),t.dataReady(t),t.process()};D.handleHeartbeat=function(t,e){var r=e.fragment,i=r.getByte(),n=r.getInt16(),s=r.getBytes(n);if(i===D.HeartbeatMessageType.heartbeat_request){if(t.handshaking||n>s.length)return t.process();D.queue(t,D.createRecord(t,{type:D.ContentType.heartbeat,data:D.createHeartbeat(D.HeartbeatMessageType.heartbeat_response,s)})),D.flush(t)}else if(i===D.HeartbeatMessageType.heartbeat_response){if(s!==t.expectedHeartbeatPayload)return t.process();t.heartbeatReceived&&t.heartbeatReceived(t,re.util.createBuffer(s))}t.process()};var Fve=0,$ve=1,iF=2,Mve=3,jve=4,sF=5,Uve=6,Vve=7,Hve=8,Gve=0,zve=1,zS=2,Kve=3,KS=4,Wve=5,Yve=6,T=D.handleUnexpected,aF=D.handleChangeCipherSpec,Ci=D.handleAlert,Xi=D.handleHandshake,oF=D.handleApplicationData,Si=D.handleHeartbeat,WS=[];WS[D.ConnectionEnd.client]=[[T,Ci,Xi,T,Si],[T,Ci,Xi,T,Si],[T,Ci,Xi,T,Si],[T,Ci,Xi,T,Si],[T,Ci,Xi,T,Si],[aF,Ci,T,T,Si],[T,Ci,Xi,T,Si],[T,Ci,Xi,oF,Si],[T,Ci,Xi,T,Si]];WS[D.ConnectionEnd.server]=[[T,Ci,Xi,T,Si],[T,Ci,Xi,T,Si],[T,Ci,Xi,T,Si],[T,Ci,Xi,T,Si],[aF,Ci,T,T,Si],[T,Ci,Xi,T,Si],[T,Ci,Xi,oF,Si],[T,Ci,Xi,T,Si]];var gu=D.handleHelloRequest,Xve=D.handleServerHello,uF=D.handleCertificate,nF=D.handleServerKeyExchange,HS=D.handleCertificateRequest,Iy=D.handleServerHelloDone,cF=D.handleFinished,Ry=[];Ry[D.ConnectionEnd.client]=[[T,T,Xve,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[gu,T,T,T,T,T,T,T,T,T,T,uF,nF,HS,Iy,T,T,T,T,T,T],[gu,T,T,T,T,T,T,T,T,T,T,T,nF,HS,Iy,T,T,T,T,T,T],[gu,T,T,T,T,T,T,T,T,T,T,T,T,HS,Iy,T,T,T,T,T,T],[gu,T,T,T,T,T,T,T,T,T,T,T,T,T,Iy,T,T,T,T,T,T],[gu,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[gu,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,cF],[gu,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[gu,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T]];var Qve=D.handleClientHello,Jve=D.handleClientKeyExchange,Zve=D.handleCertificateVerify;Ry[D.ConnectionEnd.server]=[[T,Qve,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,uF,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,Jve,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,Zve,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,cF],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T]];D.generateKeys=function(t,e){var r=Oy,i=e.client_random+e.server_random;t.session.resuming||(e.master_secret=r(e.pre_master_secret,"master secret",i,48).bytes(),e.pre_master_secret=null),i=e.server_random+e.client_random;var n=2*e.mac_key_length+2*e.enc_key_length,s=t.version.major===D.Versions.TLS_1_0.major&&t.version.minor===D.Versions.TLS_1_0.minor;s&&(n+=2*e.fixed_iv_length);var a=r(e.master_secret,"key expansion",i,n),o={client_write_MAC_key:a.getBytes(e.mac_key_length),server_write_MAC_key:a.getBytes(e.mac_key_length),client_write_key:a.getBytes(e.enc_key_length),server_write_key:a.getBytes(e.enc_key_length)};return s&&(o.client_write_IV=a.getBytes(e.fixed_iv_length),o.server_write_IV=a.getBytes(e.fixed_iv_length)),o};D.createConnectionState=function(t){var e=t.entity===D.ConnectionEnd.client,r=function(){var s={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(a){return!0},compressionState:null,compressFunction:function(a){return!0},updateSequenceNumber:function(){s.sequenceNumber[1]===4294967295?(s.sequenceNumber[1]=0,++s.sequenceNumber[0]):++s.sequenceNumber[1]}};return s},i={read:r(),write:r()};if(i.read.update=function(s,a){return i.read.cipherFunction(a,i.read)?i.read.compressFunction(s,a,i.read)||s.error(s,{message:"Could not decompress record.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.decompression_failure}}):s.error(s,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.bad_record_mac}}),!s.fail},i.write.update=function(s,a){return i.write.compressFunction(s,a,i.write)?i.write.cipherFunction(a,i.write)||s.error(s,{message:"Could not encrypt record.",send:!1,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}}):s.error(s,{message:"Could not compress record.",send:!1,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}}),!s.fail},t.session){var n=t.session.sp;switch(t.session.cipherSuite.initSecurityParameters(n),n.keys=D.generateKeys(t,n),i.read.macKey=e?n.keys.server_write_MAC_key:n.keys.client_write_MAC_key,i.write.macKey=e?n.keys.client_write_MAC_key:n.keys.server_write_MAC_key,t.session.cipherSuite.initConnectionState(i,t,n),n.compression_algorithm){case D.CompressionMethod.none:break;case D.CompressionMethod.deflate:i.read.compressFunction=qve,i.write.compressFunction=Bve;break;default:throw new Error("Unsupported compression algorithm.")}}return i};D.createRandom=function(){var t=new Date,e=+t+t.getTimezoneOffset()*6e4,r=re.util.createBuffer();return r.putInt32(e),r.putBytes(re.random.getBytes(28)),r};D.createRecord=function(t,e){if(!e.data)return null;var r={type:e.type,version:{major:t.version.major,minor:t.version.minor},length:e.data.length(),fragment:e.data};return r};D.createAlert=function(t,e){var r=re.util.createBuffer();return r.putByte(e.level),r.putByte(e.description),D.createRecord(t,{type:D.ContentType.alert,data:r})};D.createClientHello=function(t){t.session.clientHelloVersion={major:t.version.major,minor:t.version.minor};for(var e=re.util.createBuffer(),r=0;r0&&(f+=2);var d=t.session.id,h=d.length+1+2+4+28+2+n+1+a+f,m=re.util.createBuffer();return m.putByte(D.HandshakeType.client_hello),m.putInt24(h),m.putByte(t.version.major),m.putByte(t.version.minor),m.putBytes(t.session.sp.client_random),ps(m,1,re.util.createBuffer(d)),ps(m,2,e),ps(m,1,s),f>0&&ps(m,2,o),m};D.createServerHello=function(t){var e=t.session.id,r=e.length+1+2+4+28+2+1,i=re.util.createBuffer();return i.putByte(D.HandshakeType.server_hello),i.putInt24(r),i.putByte(t.version.major),i.putByte(t.version.minor),i.putBytes(t.session.sp.server_random),ps(i,1,re.util.createBuffer(e)),i.putByte(t.session.cipherSuite.id[0]),i.putByte(t.session.cipherSuite.id[1]),i.putByte(t.session.compressionMethod),i};D.createCertificate=function(t){var e=t.entity===D.ConnectionEnd.client,r=null;if(t.getCertificate){var i;e?i=t.session.certificateRequest:i=t.session.extensions.server_name.serverNameList,r=t.getCertificate(t,i)}var n=re.util.createBuffer();if(r!==null)try{re.util.isArray(r)||(r=[r]);for(var s=null,a=0;a0&&(r.putByte(D.HandshakeType.server_key_exchange),r.putInt24(e)),r};D.getClientSignature=function(t,e){var r=re.util.createBuffer();r.putBuffer(t.session.md5.digest()),r.putBuffer(t.session.sha1.digest()),r=r.getBytes(),t.getSignature=t.getSignature||function(i,n,s){var a=null;if(i.getPrivateKey)try{a=i.getPrivateKey(i,i.session.clientCertificate),a=re.pki.privateKeyFromPem(a)}catch(o){i.error(i,{message:"Could not get private key.",cause:o,send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}})}a===null?i.error(i,{message:"No private key set.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}}):n=a.sign(n,null),s(i,n)},t.getSignature(t,r,e)};D.createCertificateVerify=function(t,e){var r=e.length+2,i=re.util.createBuffer();return i.putByte(D.HandshakeType.certificate_verify),i.putInt24(r),i.putInt16(e.length),i.putBytes(e),i};D.createCertificateRequest=function(t){var e=re.util.createBuffer();e.putByte(1);var r=re.util.createBuffer();for(var i in t.caStore.certs){var n=t.caStore.certs[i],s=re.pki.distinguishedNameToAsn1(n.subject),a=re.asn1.toDer(s);r.putInt16(a.length()),r.putBuffer(a)}var o=1+e.length()+2+r.length(),u=re.util.createBuffer();return u.putByte(D.HandshakeType.certificate_request),u.putInt24(o),ps(u,1,e),ps(u,2,r),u};D.createServerHelloDone=function(t){var e=re.util.createBuffer();return e.putByte(D.HandshakeType.server_hello_done),e.putInt24(0),e};D.createChangeCipherSpec=function(){var t=re.util.createBuffer();return t.putByte(1),t};D.createFinished=function(t){var e=re.util.createBuffer();e.putBuffer(t.session.md5.digest()),e.putBuffer(t.session.sha1.digest());var r=t.entity===D.ConnectionEnd.client,i=t.session.sp,n=12,s=Oy,a=r?"client finished":"server finished";e=s(i.master_secret,a,e.getBytes(),n);var o=re.util.createBuffer();return o.putByte(D.HandshakeType.finished),o.putInt24(e.length()),o.putBuffer(e),o};D.createHeartbeat=function(t,e,r){typeof r>"u"&&(r=e.length);var i=re.util.createBuffer();i.putByte(t),i.putInt16(r),i.putBytes(e);var n=i.length(),s=Math.max(16,n-r-3);return i.putBytes(re.random.getBytes(s)),i};D.queue=function(t,e){if(e&&!(e.fragment.length()===0&&(e.type===D.ContentType.handshake||e.type===D.ContentType.alert||e.type===D.ContentType.change_cipher_spec))){if(e.type===D.ContentType.handshake){var r=e.fragment.bytes();t.session.md5.update(r),t.session.sha1.update(r),r=null}var i;if(e.fragment.length()<=D.MaxFragment)i=[e];else{i=[];for(var n=e.fragment.bytes();n.length>D.MaxFragment;)i.push(D.createRecord(t,{type:e.type,data:re.util.createBuffer(n.slice(0,D.MaxFragment))})),n=n.slice(D.MaxFragment);n.length>0&&i.push(D.createRecord(t,{type:e.type,data:re.util.createBuffer(n)}))}for(var s=0;s0&&(a=r.order[0]),a!==null&&a in r.cache){s=r.cache[a],delete r.cache[a];for(var o in r.order)if(r.order[o]===a){r.order.splice(o,1);break}}return s},r.setSession=function(n,s){if(r.order.length===r.capacity){var a=r.order.shift();delete r.cache[a]}var a=re.util.bytesToHex(n);r.order.push(a),r.cache[a]=s}}return r};D.createConnection=function(t){var e=null;t.caStore?re.util.isArray(t.caStore)?e=re.pki.createCaStore(t.caStore):e=t.caStore:e=re.pki.createCaStore();var r=t.cipherSuites||null;if(r===null){r=[];for(var i in D.CipherSuites)r.push(D.CipherSuites[i])}var n=t.server?D.ConnectionEnd.server:D.ConnectionEnd.client,s=t.sessionCache?D.createSessionCache(t.sessionCache):null,a={version:{major:D.Version.major,minor:D.Version.minor},entity:n,sessionId:t.sessionId,caStore:e,sessionCache:s,cipherSuites:r,connected:t.connected,virtualHost:t.virtualHost||null,verifyClient:t.verifyClient||!1,verify:t.verify||function(l,f,d,h){return f},verifyOptions:t.verifyOptions||{},getCertificate:t.getCertificate||null,getPrivateKey:t.getPrivateKey||null,getSignature:t.getSignature||null,input:re.util.createBuffer(),tlsData:re.util.createBuffer(),data:re.util.createBuffer(),tlsDataReady:t.tlsDataReady,dataReady:t.dataReady,heartbeatReceived:t.heartbeatReceived,closed:t.closed,error:function(l,f){f.origin=f.origin||(l.entity===D.ConnectionEnd.client?"client":"server"),f.send&&(D.queue(l,D.createAlert(l,f.alert)),D.flush(l));var d=f.fatal!==!1;d&&(l.fail=!0),t.error(l,f),d&&l.close(!1)},deflate:t.deflate||null,inflate:t.inflate||null};a.reset=function(l){a.version={major:D.Version.major,minor:D.Version.minor},a.record=null,a.session=null,a.peerCertificate=null,a.state={pending:null,current:null},a.expect=a.entity===D.ConnectionEnd.client?Fve:Gve,a.fragmented=null,a.records=[],a.open=!1,a.handshakes=0,a.handshaking=!1,a.isConnected=!1,a.fail=!(l||typeof l>"u"),a.input.clear(),a.tlsData.clear(),a.data.clear(),a.state.current=D.createConnectionState(a)},a.reset();var o=function(l,f){var d=f.type-D.ContentType.change_cipher_spec,h=WS[l.entity][l.expect];d in h?h[d](l,f):D.handleUnexpected(l,f)},u=function(l){var f=0,d=l.input,h=d.length();if(h<5)f=5-h;else{l.record={type:d.getByte(),version:{major:d.getByte(),minor:d.getByte()},length:d.getInt16(),fragment:re.util.createBuffer(),ready:!1};var m=l.record.version.major===l.version.major;m&&l.session&&l.session.version&&(m=l.record.version.minor===l.version.minor),m||l.error(l,{message:"Incompatible TLS version.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.protocol_version}})}return f},c=function(l){var f=0,d=l.input,h=d.length();if(h0&&(a.sessionCache&&(f=a.sessionCache.getSession(l)),f===null&&(l="")),l.length===0&&a.sessionCache&&(f=a.sessionCache.getSession(),f!==null&&(l=f.id)),a.session={id:l,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:re.md.md5.create(),sha1:re.md.sha1.create()},f&&(a.version=f.version,a.session.sp=f.sp),a.session.sp.client_random=D.createRandom().getBytes(),a.open=!0,D.queue(a,D.createRecord(a,{type:D.ContentType.handshake,data:D.createClientHello(a)})),D.flush(a)}},a.process=function(l){var f=0;return l&&a.input.putBytes(l),a.fail||(a.record!==null&&a.record.ready&&a.record.fragment.isEmpty()&&(a.record=null),a.record===null&&(f=u(a)),!a.fail&&a.record!==null&&!a.record.ready&&(f=c(a)),!a.fail&&a.record!==null&&a.record.ready&&o(a,a.record)),f},a.prepare=function(l){return D.queue(a,D.createRecord(a,{type:D.ContentType.application_data,data:re.util.createBuffer(l)})),D.flush(a)},a.prepareHeartbeatRequest=function(l,f){return l instanceof re.util.ByteBuffer&&(l=l.bytes()),typeof f>"u"&&(f=l.length),a.expectedHeartbeatPayload=l,D.queue(a,D.createRecord(a,{type:D.ContentType.heartbeat,data:D.createHeartbeat(D.HeartbeatMessageType.heartbeat_request,l,f)})),D.flush(a)},a.close=function(l){if(!a.fail&&a.sessionCache&&a.session){var f={id:a.session.id,version:a.session.version,sp:a.session.sp};f.sp.keys=null,a.sessionCache.setSession(f.id,f)}a.open&&(a.open=!1,a.input.clear(),(a.isConnected||a.handshaking)&&(a.isConnected=a.handshaking=!1,D.queue(a,D.createAlert(a,{level:D.Alert.Level.warning,description:D.Alert.Description.close_notify})),D.flush(a)),a.closed(a)),a.reset(l)},a};lF.exports=re.tls=re.tls||{};for(Ny in D)typeof D[Ny]!="function"&&(re.tls[Ny]=D[Ny]);var Ny;re.tls.prf_tls1=Oy;re.tls.hmac_sha1=Lve;re.tls.createSessionCache=D.createSessionCache;re.tls.createConnection=D.createConnection});var dF=E((Nje,fF)=>{var vu=it();lu();YS();var fs=fF.exports=vu.tls;fs.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(t){t.bulk_cipher_algorithm=fs.BulkCipherAlgorithm.aes,t.cipher_type=fs.CipherType.block,t.enc_key_length=16,t.block_length=16,t.fixed_iv_length=16,t.record_iv_length=16,t.mac_algorithm=fs.MACAlgorithm.hmac_sha1,t.mac_length=20,t.mac_key_length=20},initConnectionState:pF};fs.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(t){t.bulk_cipher_algorithm=fs.BulkCipherAlgorithm.aes,t.cipher_type=fs.CipherType.block,t.enc_key_length=32,t.block_length=16,t.fixed_iv_length=16,t.record_iv_length=16,t.mac_algorithm=fs.MACAlgorithm.hmac_sha1,t.mac_length=20,t.mac_key_length=20},initConnectionState:pF};function pF(t,e,r){var i=e.entity===vu.tls.ConnectionEnd.client;t.read.cipherState={init:!1,cipher:vu.cipher.createDecipher("AES-CBC",i?r.keys.server_write_key:r.keys.client_write_key),iv:i?r.keys.server_write_IV:r.keys.client_write_IV},t.write.cipherState={init:!1,cipher:vu.cipher.createCipher("AES-CBC",i?r.keys.client_write_key:r.keys.server_write_key),iv:i?r.keys.client_write_IV:r.keys.server_write_IV},t.read.cipherFunction=nye,t.write.cipherFunction=tye,t.read.macLength=t.write.macLength=r.mac_length,t.read.macFunction=t.write.macFunction=fs.hmac_sha1}function tye(t,e){var r=!1,i=e.macFunction(e.macKey,e.sequenceNumber,t);t.fragment.putBytes(i),e.updateSequenceNumber();var n;t.version.minor===fs.Versions.TLS_1_0.minor?n=e.cipherState.init?null:e.cipherState.iv:n=vu.random.getBytesSync(16),e.cipherState.init=!0;var s=e.cipherState.cipher;return s.start({iv:n}),t.version.minor>=fs.Versions.TLS_1_1.minor&&s.output.putBytes(n),s.update(t.fragment),s.finish(rye)&&(t.fragment=s.output,t.length=t.fragment.length(),r=!0),r}function rye(t,e,r){if(!r){var i=t-e.length()%t;e.fillWithByte(i-1,i)}return!0}function iye(t,e,r){var i=!0;if(r){for(var n=e.length(),s=e.last(),a=n-1-s;a=s?(t.fragment=n.output.getBytes(o-s),a=n.output.getBytes(s)):t.fragment=n.output.getBytes(),t.fragment=vu.util.createBuffer(t.fragment),t.length=t.fragment.length();var u=e.macFunction(e.macKey,e.sequenceNumber,t);return e.updateSequenceNumber(),r=sye(e.macKey,a,u)&&r,r}function sye(t,e,r){var i=vu.hmac.create();return i.start("SHA1",t),i.update(e),e=i.digest().getBytes(),i.start(null,null),i.update(r),r=i.digest().getBytes(),e===r}});var JS=E((Rje,vF)=>{var pr=it();da();Dt();var sm=vF.exports=pr.sha512=pr.sha512||{};pr.md.sha512=pr.md.algorithms.sha512=sm;var mF=pr.sha384=pr.sha512.sha384=pr.sha512.sha384||{};mF.create=function(){return sm.create("SHA-384")};pr.md.sha384=pr.md.algorithms.sha384=mF;pr.sha512.sha256=pr.sha512.sha256||{create:function(){return sm.create("SHA-512/256")}};pr.md["sha512/256"]=pr.md.algorithms["sha512/256"]=pr.sha512.sha256;pr.sha512.sha224=pr.sha512.sha224||{create:function(){return sm.create("SHA-512/224")}};pr.md["sha512/224"]=pr.md.algorithms["sha512/224"]=pr.sha512.sha224;sm.create=function(t){if(gF||aye(),typeof t>"u"&&(t="SHA-512"),!(t in Uc))throw new Error("Invalid SHA-512 algorithm: "+t);for(var e=Uc[t],r=null,i=pr.util.createBuffer(),n=new Array(80),s=0;s<80;++s)n[s]=new Array(2);var a=64;switch(t){case"SHA-384":a=48;break;case"SHA-512/256":a=32;break;case"SHA-512/224":a=28;break}var o={algorithm:t.replace("-","").toLowerCase(),blockLength:128,digestLength:a,messageLength:0,fullMessageLength:null,messageLengthSize:16};return o.start=function(){o.messageLength=0,o.fullMessageLength=o.messageLength128=[];for(var u=o.messageLengthSize/4,c=0;c>>0,l>>>0];for(var f=o.fullMessageLength.length-1;f>=0;--f)o.fullMessageLength[f]+=l[1],l[1]=l[0]+(o.fullMessageLength[f]/4294967296>>>0),o.fullMessageLength[f]=o.fullMessageLength[f]>>>0,l[0]=l[1]/4294967296>>>0;return i.putBytes(u),hF(r,n,i),(i.read>2048||i.length()===0)&&i.compact(),o},o.digest=function(){var u=pr.util.createBuffer();u.putBytes(i.bytes());var c=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize,l=c&o.blockLength-1;u.putBytes(XS.substr(0,o.blockLength-l));for(var f,d,h=o.fullMessageLength[0]*8,m=0;m>>0,h+=d,u.putInt32(h>>>0),h=f>>>0;u.putInt32(h);for(var g=new Array(r.length),m=0;m=128;){for(M=0;M<16;++M)e[M][0]=r.getInt32()>>>0,e[M][1]=r.getInt32()>>>0;for(;M<80;++M)Y=e[M-2],H=Y[0],z=Y[1],i=((H>>>19|z<<13)^(z>>>29|H<<3)^H>>>6)>>>0,n=((H<<13|z>>>19)^(z<<3|H>>>29)^(H<<26|z>>>6))>>>0,ae=e[M-15],H=ae[0],z=ae[1],s=((H>>>1|z<<31)^(H>>>8|z<<24)^H>>>7)>>>0,a=((H<<31|z>>>1)^(H<<24|z>>>8)^(H<<25|z>>>7))>>>0,he=e[M-7],xe=e[M-16],z=n+he[1]+a+xe[1],e[M][0]=i+he[0]+s+xe[0]+(z/4294967296>>>0)>>>0,e[M][1]=z>>>0;for(g=t[0][0],y=t[0][1],b=t[1][0],w=t[1][1],S=t[2][0],x=t[2][1],k=t[3][0],R=t[3][1],L=t[4][0],j=t[4][1],G=t[5][0],J=t[5][1],q=t[6][0],Z=t[6][1],ue=t[7][0],Ae=t[7][1],M=0;M<80;++M)c=((L>>>14|j<<18)^(L>>>18|j<<14)^(j>>>9|L<<23))>>>0,l=((L<<18|j>>>14)^(L<<14|j>>>18)^(j<<23|L>>>9))>>>0,f=(q^L&(G^q))>>>0,d=(Z^j&(J^Z))>>>0,o=((g>>>28|y<<4)^(y>>>2|g<<30)^(y>>>7|g<<25))>>>0,u=((g<<4|y>>>28)^(y<<30|g>>>2)^(y<<25|g>>>7))>>>0,h=(g&b|S&(g^b))>>>0,m=(y&w|x&(y^w))>>>0,z=Ae+l+d+QS[M][1]+e[M][1],i=ue+c+f+QS[M][0]+e[M][0]+(z/4294967296>>>0)>>>0,n=z>>>0,z=u+m,s=o+h+(z/4294967296>>>0)>>>0,a=z>>>0,ue=q,Ae=Z,q=G,Z=J,G=L,J=j,z=R+n,L=k+i+(z/4294967296>>>0)>>>0,j=z>>>0,k=S,R=x,S=b,x=w,b=g,w=y,z=n+a,g=i+s+(z/4294967296>>>0)>>>0,y=z>>>0;z=t[0][1]+y,t[0][0]=t[0][0]+g+(z/4294967296>>>0)>>>0,t[0][1]=z>>>0,z=t[1][1]+w,t[1][0]=t[1][0]+b+(z/4294967296>>>0)>>>0,t[1][1]=z>>>0,z=t[2][1]+x,t[2][0]=t[2][0]+S+(z/4294967296>>>0)>>>0,t[2][1]=z>>>0,z=t[3][1]+R,t[3][0]=t[3][0]+k+(z/4294967296>>>0)>>>0,t[3][1]=z>>>0,z=t[4][1]+j,t[4][0]=t[4][0]+L+(z/4294967296>>>0)>>>0,t[4][1]=z>>>0,z=t[5][1]+J,t[5][0]=t[5][0]+G+(z/4294967296>>>0)>>>0,t[5][1]=z>>>0,z=t[6][1]+Z,t[6][0]=t[6][0]+q+(z/4294967296>>>0)>>>0,t[6][1]=z>>>0,z=t[7][1]+Ae,t[7][0]=t[7][0]+ue+(z/4294967296>>>0)>>>0,t[7][1]=z>>>0,Pe-=128}}});var yF=E(ZS=>{var oye=it();Os();var di=oye.asn1;ZS.privateKeyValidator={name:"PrivateKeyInfo",tagClass:di.Class.UNIVERSAL,type:di.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:di.Class.UNIVERSAL,type:di.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:di.Class.UNIVERSAL,type:di.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:di.Class.UNIVERSAL,type:di.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:di.Class.UNIVERSAL,type:di.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]};ZS.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:di.Class.UNIVERSAL,type:di.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:di.Class.UNIVERSAL,type:di.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:di.Class.UNIVERSAL,type:di.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:di.Class.UNIVERSAL,type:di.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]}});var NF=E((Pje,IF)=>{var _i=it();tm();os();JS();Dt();var SF=yF(),uye=SF.publicKeyValidator,cye=SF.privateKeyValidator;typeof bF>"u"&&(bF=_i.jsbn.BigInteger);var bF,r_=_i.util.ByteBuffer,bn=typeof Buffer>"u"?Uint8Array:Buffer;_i.pki=_i.pki||{};IF.exports=_i.pki.ed25519=_i.ed25519=_i.ed25519||{};var gt=_i.ed25519;gt.constants={};gt.constants.PUBLIC_KEY_BYTE_LENGTH=32;gt.constants.PRIVATE_KEY_BYTE_LENGTH=64;gt.constants.SEED_BYTE_LENGTH=32;gt.constants.SIGN_BYTE_LENGTH=64;gt.constants.HASH_BYTE_LENGTH=64;gt.generateKeyPair=function(t){t=t||{};var e=t.seed;if(e===void 0)e=_i.random.getBytesSync(gt.constants.SEED_BYTE_LENGTH);else if(typeof e=="string"){if(e.length!==gt.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+gt.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(e instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');e=fo({message:e,encoding:"binary"});for(var r=new bn(gt.constants.PUBLIC_KEY_BYTE_LENGTH),i=new bn(gt.constants.PRIVATE_KEY_BYTE_LENGTH),n=0;n<32;++n)i[n]=e[n];return dye(r,i),{publicKey:r,privateKey:i}};gt.privateKeyFromAsn1=function(t){var e={},r=[],i=_i.asn1.validate(t,cye,e,r);if(!i){var n=new Error("Invalid Key.");throw n.errors=r,n}var s=_i.asn1.derToOid(e.privateKeyOid),a=_i.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var o=e.privateKey,u=fo({message:_i.asn1.fromDer(o).value,encoding:"binary"});return{privateKeyBytes:u}};gt.publicKeyFromAsn1=function(t){var e={},r=[],i=_i.asn1.validate(t,uye,e,r);if(!i){var n=new Error("Invalid Key.");throw n.errors=r,n}var s=_i.asn1.derToOid(e.publicKeyOid),a=_i.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var o=e.ed25519PublicKey;if(o.length!==gt.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return fo({message:o,encoding:"binary"})};gt.publicKeyFromPrivateKey=function(t){t=t||{};var e=fo({message:t.privateKey,encoding:"binary"});if(e.length!==gt.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+gt.constants.PRIVATE_KEY_BYTE_LENGTH);for(var r=new bn(gt.constants.PUBLIC_KEY_BYTE_LENGTH),i=0;i=0};function fo(t){var e=t.message;if(e instanceof Uint8Array||e instanceof bn)return e;var r=t.encoding;if(e===void 0)if(t.md)e=t.md.digest().getBytes(),r="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof e=="string"&&!r)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof e=="string"){if(typeof Buffer<"u")return Buffer.from(e,r);e=new r_(e,r)}else if(!(e instanceof r_))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var i=new bn(e.length()),n=0;n=32;--i){for(r=0,n=i-32,s=i-12;n>8,e[n]-=r*256;e[n]+=r,e[i]=0}for(r=0,n=0;n<32;++n)e[n]+=r-(e[31]>>4)*e_[n],r=e[n]>>8,e[n]&=255;for(n=0;n<32;++n)e[n]-=r*e_[n];for(i=0;i<32;++i)e[i+1]+=e[i]>>8,t[i]=e[i]&255}function n_(t){for(var e=new Float64Array(64),r=0;r<64;++r)e[r]=t[r],t[r]=0;_F(t,e)}function s_(t,e){var r=je(),i=je(),n=je(),s=je(),a=je(),o=je(),u=je(),c=je(),l=je();uf(r,t[1],t[0]),uf(l,e[1],e[0]),Zt(r,r,l),of(i,t[0],t[1]),of(l,e[0],e[1]),Zt(i,i,l),Zt(n,t[3],e[3]),Zt(n,n,pye),Zt(s,t[2],e[2]),of(s,s,s),uf(a,i,r),uf(o,s,n),of(u,s,n),of(c,i,r),Zt(t[0],a,o),Zt(t[1],c,u),Zt(t[2],u,o),Zt(t[3],a,c)}function EF(t,e,r){for(var i=0;i<4;++i)kF(t[i],e[i],r)}function a_(t,e){var r=je(),i=je(),n=je();xye(n,e[2]),Zt(r,e[0],n),Zt(i,e[1],n),Ly(t,i),t[31]^=TF(r)<<7}function Ly(t,e){var r,i,n,s=je(),a=je();for(r=0;r<16;++r)a[r]=e[r];for(t_(a),t_(a),t_(a),i=0;i<2;++i){for(s[0]=a[0]-65517,r=1;r<15;++r)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),n=s[15]>>16&1,s[14]&=65535,kF(a,s,1-n)}for(r=0;r<16;r++)t[2*r]=a[r]&255,t[2*r+1]=a[r]>>8}function gye(t,e){var r=je(),i=je(),n=je(),s=je(),a=je(),o=je(),u=je();return yu(t[2],Py),vye(t[1],e),Vc(n,t[1]),Zt(s,n,lye),uf(n,n,t[2]),of(s,t[2],s),Vc(a,s),Vc(o,a),Zt(u,o,a),Zt(r,u,n),Zt(r,r,s),yye(r,r),Zt(r,r,n),Zt(r,r,s),Zt(r,r,s),Zt(t[0],r,s),Vc(i,t[0]),Zt(i,i,s),CF(i,n)&&Zt(t[0],t[0],fye),Vc(i,t[0]),Zt(i,i,s),CF(i,n)?-1:(TF(t[0])===e[31]>>7&&uf(t[0],i_,t[0]),Zt(t[3],t[0],t[1]),0)}function vye(t,e){var r;for(r=0;r<16;++r)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function yye(t,e){var r=je(),i;for(i=0;i<16;++i)r[i]=e[i];for(i=250;i>=0;--i)Vc(r,r),i!==1&&Zt(r,r,e);for(i=0;i<16;++i)t[i]=r[i]}function CF(t,e){var r=new bn(32),i=new bn(32);return Ly(r,t),Ly(i,e),AF(r,0,i,0)}function AF(t,e,r,i){return bye(t,e,r,i,32)}function bye(t,e,r,i,n){var s,a=0;for(s=0;s>>8)-1}function TF(t){var e=new bn(32);return Ly(e,t),e[0]&1}function DF(t,e,r){var i,n;for(yu(t[0],i_),yu(t[1],Py),yu(t[2],Py),yu(t[3],i_),n=255;n>=0;--n)i=r[n/8|0]>>(n&7)&1,EF(t,e,i),s_(e,t),s_(t,t),EF(t,e,i)}function o_(t,e){var r=[je(),je(),je(),je()];yu(r[0],xF),yu(r[1],wF),yu(r[2],Py),Zt(r[3],xF,wF),DF(t,r,e)}function yu(t,e){var r;for(r=0;r<16;r++)t[r]=e[r]|0}function xye(t,e){var r=je(),i;for(i=0;i<16;++i)r[i]=e[i];for(i=253;i>=0;--i)Vc(r,r),i!==2&&i!==4&&Zt(r,r,e);for(i=0;i<16;++i)t[i]=r[i]}function t_(t){var e,r,i=1;for(e=0;e<16;++e)r=t[e]+i+65535,i=Math.floor(r/65536),t[e]=r-i*65536;t[0]+=i-1+37*(i-1)}function kF(t,e,r){for(var i,n=~(r-1),s=0;s<16;++s)i=n&(t[s]^e[s]),t[s]^=i,e[s]^=i}function je(t){var e,r=new Float64Array(16);if(t)for(e=0;e{var Un=it();Dt();os();tm();PF.exports=Un.kem=Un.kem||{};var RF=Un.jsbn.BigInteger;Un.kem.rsa={};Un.kem.rsa.create=function(t,e){e=e||{};var r=e.prng||Un.random,i={};return i.encrypt=function(n,s){var a=Math.ceil(n.n.bitLength()/8),o;do o=new RF(Un.util.bytesToHex(r.getBytesSync(a)),16).mod(n.n);while(o.compareTo(RF.ONE)<=0);o=Un.util.hexToBytes(o.toString(16));var u=a-o.length;u>0&&(o=Un.util.fillString(String.fromCharCode(0),u)+o);var c=n.encrypt(o,"NONE"),l=t.generate(o,s);return{encapsulation:c,key:l}},i.decrypt=function(n,s,a){var o=n.decrypt(s,"NONE");return t.generate(o,a)},i};Un.kem.kdf1=function(t,e){OF(this,t,0,e||t.digestLength)};Un.kem.kdf2=function(t,e){OF(this,t,1,e||t.digestLength)};function OF(t,e,r,i){t.generate=function(n,s){for(var a=new Un.util.ByteBuffer,o=Math.ceil(s/i)+r,u=new Un.util.ByteBuffer,c=r;c{var xt=it();Dt();FF.exports=xt.log=xt.log||{};xt.log.levels=["none","error","warning","info","debug","verbose","max"];var By={},l_=[],um=null;xt.log.LEVEL_LOCKED=2;xt.log.NO_LEVEL_CHECK=4;xt.log.INTERPOLATE=8;for(wa=0;wa"u"||e?t.flags|=xt.log.LEVEL_LOCKED:t.flags&=~xt.log.LEVEL_LOCKED};xt.log.addLogger=function(t){l_.push(t)};typeof console<"u"&&"log"in console?(console.error&&console.warn&&console.info&&console.debug?(BF={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},cm=function(t,e){xt.log.prepareStandard(e);var r=BF[e.level],i=[e.standard];i=i.concat(e.arguments.slice()),r.apply(console,i)},cf=xt.log.makeLogger(cm)):(cm=function(e,r){xt.log.prepareStandardFull(r),console.log(r.standardFull)},cf=xt.log.makeLogger(cm)),xt.log.setLevel(cf,"debug"),xt.log.addLogger(cf),um=cf):console={log:function(){}};var cf,BF,cm;um!==null&&typeof window<"u"&&window.location&&(om=new URL(window.location.href).searchParams,om.has("console.level")&&xt.log.setLevel(um,om.get("console.level").slice(-1)[0]),om.has("console.lock")&&(qF=om.get("console.lock").slice(-1)[0],qF=="true"&&xt.log.lock(um)));var om,qF;xt.log.consoleLogger=um});var jF=E((qje,MF)=>{MF.exports=da();my();tf();CS();JS()});var HF=E((Fje,VF)=>{var ge=it();lu();Os();Zh();pu();Bc();qS();os();Dt();ky();var B=ge.asn1,Qi=VF.exports=ge.pkcs7=ge.pkcs7||{};Qi.messageFromPem=function(t){var e=ge.pem.decode(t)[0];if(e.type!=="PKCS7"){var r=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw r.headerType=e.type,r}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var i=B.fromDer(e.body);return Qi.messageFromAsn1(i)};Qi.messageToPem=function(t,e){var r={type:"PKCS7",body:B.toDer(t.toAsn1()).getBytes()};return ge.pem.encode(r,{maxline:e})};Qi.messageFromAsn1=function(t){var e={},r=[];if(!B.validate(t,Qi.asn1.contentInfoValidator,e,r)){var i=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw i.errors=r,i}var n=B.derToOid(e.contentType),s;switch(n){case ge.pki.oids.envelopedData:s=Qi.createEnvelopedData();break;case ge.pki.oids.encryptedData:s=Qi.createEncryptedData();break;case ge.pki.oids.signedData:s=Qi.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+n+" is not (yet) supported.")}return s.fromAsn1(e.content.value[0]),s};Qi.createSignedData=function(){var t=null;return t={type:ge.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(i){if(f_(t,i,Qi.asn1.signedDataValidator),t.certificates=[],t.crls=[],t.digestAlgorithmIdentifiers=[],t.contentInfo=null,t.signerInfos=[],t.rawCapture.certificates)for(var n=t.rawCapture.certificates.value,s=0;s0&&a.value[0].value.push(B.create(B.Class.CONTEXT_SPECIFIC,0,!0,i)),s.length>0&&a.value[0].value.push(B.create(B.Class.CONTEXT_SPECIFIC,1,!0,s)),a.value[0].value.push(B.create(B.Class.UNIVERSAL,B.Type.SET,!0,t.signerInfos)),B.create(B.Class.UNIVERSAL,B.Type.SEQUENCE,!0,[B.create(B.Class.UNIVERSAL,B.Type.OID,!1,B.oidToDer(t.type).getBytes()),a])},addSigner:function(i){var n=i.issuer,s=i.serialNumber;if(i.certificate){var a=i.certificate;typeof a=="string"&&(a=ge.pki.certificateFromPem(a)),n=a.issuer.attributes,s=a.serialNumber}var o=i.key;if(!o)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof o=="string"&&(o=ge.pki.privateKeyFromPem(o));var u=i.digestAlgorithm||ge.pki.oids.sha1;switch(u){case ge.pki.oids.sha1:case ge.pki.oids.sha256:case ge.pki.oids.sha384:case ge.pki.oids.sha512:case ge.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+u)}var c=i.authenticatedAttributes||[];if(c.length>0){for(var l=!1,f=!1,d=0;d0){for(var r=B.create(B.Class.CONTEXT_SPECIFIC,1,!0,[]),i=0;i=r&&n{var Hr=it();lu();Qp();my();tf();Dt();var Fy=GF.exports=Hr.ssh=Hr.ssh||{};Fy.privateKeyToPutty=function(t,e,r){r=r||"",e=e||"";var i="ssh-rsa",n=e===""?"none":"aes256-cbc",s="PuTTY-User-Key-File-2: "+i+`\r +`;s+="Encryption: "+n+`\r +`,s+="Comment: "+r+`\r +`;var a=Hr.util.createBuffer();lf(a,i),Ea(a,t.e),Ea(a,t.n);var o=Hr.util.encode64(a.bytes(),64),u=Math.floor(o.length/66)+1;s+="Public-Lines: "+u+`\r +`,s+=o;var c=Hr.util.createBuffer();Ea(c,t.d),Ea(c,t.p),Ea(c,t.q),Ea(c,t.qInv);var l;if(!e)l=Hr.util.encode64(c.bytes(),64);else{var f=c.length()+16-1;f-=f%16;var d=qy(c.bytes());d.truncate(d.length()-f+c.length()),c.putBuffer(d);var h=Hr.util.createBuffer();h.putBuffer(qy("\0\0\0\0",e)),h.putBuffer(qy("\0\0\0",e));var m=Hr.aes.createEncryptionCipher(h.truncate(8),"CBC");m.start(Hr.util.createBuffer().fillWithByte(0,16)),m.update(c.copy()),m.finish();var g=m.output;g.truncate(16),l=Hr.util.encode64(g.bytes(),64)}u=Math.floor(l.length/66)+1,s+=`\r +Private-Lines: `+u+`\r +`,s+=l;var y=qy("putty-private-key-file-mac-key",e),b=Hr.util.createBuffer();lf(b,i),lf(b,n),lf(b,r),b.putInt32(a.length()),b.putBuffer(a),b.putInt32(c.length()),b.putBuffer(c);var w=Hr.hmac.create();return w.start("sha1",y),w.update(b.bytes()),s+=`\r +Private-MAC: `+w.digest().toHex()+`\r +`,s};Fy.publicKeyToOpenSSH=function(t,e){var r="ssh-rsa";e=e||"";var i=Hr.util.createBuffer();return lf(i,r),Ea(i,t.e),Ea(i,t.n),r+" "+Hr.util.encode64(i.bytes())+" "+e};Fy.privateKeyToOpenSSH=function(t,e){return e?Hr.pki.encryptRsaPrivateKey(t,e,{legacy:!0,algorithm:"aes128"}):Hr.pki.privateKeyToPem(t)};Fy.getPublicKeyFingerprint=function(t,e){e=e||{};var r=e.md||Hr.md.md5.create(),i="ssh-rsa",n=Hr.util.createBuffer();lf(n,i),Ea(n,t.e),Ea(n,t.n),r.start(),r.update(n.getBytes());var s=r.digest();if(e.encoding==="hex"){var a=s.toHex();return e.delimiter?a.match(/.{2}/g).join(e.delimiter):a}else{if(e.encoding==="binary")return s.getBytes();if(e.encoding)throw new Error('Unknown encoding "'+e.encoding+'".')}return s};function Ea(t,e){var r=e.toString(16);r[0]>="8"&&(r="00"+r);var i=Hr.util.hexToBytes(r);t.putInt32(i.length),t.putBytes(i)}function lf(t,e){t.putInt32(e.length),t.putString(e)}function qy(){for(var t=Hr.md.sha1.create(),e=arguments.length,r=0;r{KF.exports=it();lu();dF();Os();uy();Zh();NF();Qp();LF();$F();jF();FS();by();Bc();RS();jS();HF();VS();PS();SS();Ay();os();TS();zF();YS();Dt()});var QF=E(XF=>{var Wt=WF();function YF(t){var e=parseInt(t[0],16);return e<8?t:(e-=8,e.toString()+t.substring(1))}function Dye(t){switch(t){case"sha256":return Wt.md.sha256.create();default:return Wt.md.sha1.create()}}XF.generate=function(e,r,i){typeof e=="function"?(i=e,e=void 0):typeof r=="function"&&(i=r,r={}),r=r||{};var n=function(o){var u=Wt.pki.createCertificate();u.serialNumber=YF(Wt.util.bytesToHex(Wt.random.getBytesSync(9))),u.validity.notBefore=r.notBeforeDate||new Date;var c=new Date;u.validity.notAfter=c,u.validity.notAfter.setDate(c.getDate()+(r.days||365)),e=e||[{name:"commonName",value:"example.org"},{name:"countryName",value:"US"},{shortName:"ST",value:"Virginia"},{name:"localityName",value:"Blacksburg"},{name:"organizationName",value:"Test"},{shortName:"OU",value:"Test"}],u.setSubject(e),u.setIssuer(e),u.publicKey=o.publicKey,u.setExtensions(r.extensions||[{name:"basicConstraints",cA:!0},{name:"keyUsage",keyCertSign:!0,digitalSignature:!0,nonRepudiation:!0,keyEncipherment:!0,dataEncipherment:!0},{name:"subjectAltName",altNames:[{type:6,value:"http://example.org/webid#me"}]}]),u.sign(o.privateKey,Dye(r&&r.algorithm));let l=Wt.md.sha1.create().update(Wt.asn1.toDer(Wt.pki.certificateToAsn1(u)).getBytes()).digest().toHex().match(/.{2}/g).join(":");var f={private:Wt.pki.privateKeyToPem(o.privateKey),public:Wt.pki.publicKeyToPem(o.publicKey),cert:Wt.pki.certificateToPem(u),fingerprint:l};if(r&&r.pkcs7){var d=Wt.pkcs7.createSignedData();d.addCertificate(u),f.pkcs7=Wt.pkcs7.messageToPem(d)}if(r&&r.clientCertificate){var h=Wt.pki.rsa.generateKeyPair(r.clientCertificateKeySize||1024),m=Wt.pki.createCertificate();m.serialNumber=YF(Wt.util.bytesToHex(Wt.random.getBytesSync(9))),m.validity.notBefore=new Date,m.validity.notAfter=new Date,m.validity.notAfter.setFullYear(m.validity.notBefore.getFullYear()+1);for(var g=JSON.parse(JSON.stringify(e)),y=0;y{"use strict";var kye=pf&&pf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pf,"__esModule",{value:!0});pf.createCertificate=void 0;var Iye=kye(QF()),Nye=t=>Iye.default.generate(t,{algorithm:"sha256",days:30,keySize:2048,extensions:[{name:"keyUsage",keyCertSign:!0,digitalSignature:!0,nonRepudiation:!0,keyEncipherment:!0,dataEncipherment:!0},{name:"extKeyUsage",serverAuth:!0,clientAuth:!0,codeSigning:!0,timeStamping:!0},{name:"subjectAltName",altNames:[{type:2,value:"localhost"},{type:2,value:"localhost.localdomain"},{type:2,value:"lvh.me"},{type:2,value:"*.lvh.me"},{type:2,value:"[::1]"},{type:7,ip:"127.0.0.1"},{type:7,ip:"fe80::1"}]}]});pf.createCertificate=Nye});var ZF=E(df=>{"use strict";var m_=df&&df.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(df,"__esModule",{value:!0});df.getCertificate=void 0;var Rye=JF(),ff=m_(require("fs")),Oye=m_(require("os")),d_=m_(require("path")),h_=tp(),Pye=(t=".cache")=>{let e=t||d_.default.resolve()||Oye.default.tmpdir(),r=d_.default.join(e,"server.pem"),i=ff.default.existsSync(r);if(i){let s=ff.default.statSync(r);if((new Date-s.ctime)/864e5>30){h_.message.info("SSL Certificate is more than 30 days old. Removing.");try{ff.default.unlinkSync(r)}catch(o){h_.message.error(o.message,null,!1)}i=!1}}if(!i){h_.message.info(`Generating SSL Certificate "${d_.default.resolve(r)}"`);let n=[{name:"commonName",value:"localhost"}],s=(0,Rye.createCertificate)(n);ff.default.mkdirSync(e,{recursive:!0}),ff.default.writeFileSync(r,s.private+s.cert,{encoding:"utf8"})}return ff.default.readFileSync(r,{encoding:"utf-8"})};df.getCertificate=Pye});var t$=E(hf=>{"use strict";var Lye=hf&&hf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hf,"__esModule",{value:!0});hf.getNetworkAddress=void 0;var Bye=Lye(require("os")),e$=Bye.default.networkInterfaces(),qye=()=>{for(let t of Object.keys(e$))for(let e of e$[t]){let{address:r,family:i,internal:n}=e;if(i==="IPv4"&&!n)return r}};hf.getNetworkAddress=qye});var i$=E(bu=>{"use strict";var Fye=bu&&bu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bu,"__esModule",{value:!0});bu.openBrowser=bu.OpenBrowser=void 0;var g_=Xd(),v_=tp(),$ye=Fye(require("@yandeu/open-cjs")),$y=class{constructor(e){this._open=e}async launchDefaultBrowser(e){await this.launchBrowser(e,"default")}async open(e,r){if(!r||r==="default")return await this._open(e);let i=r.includes("--");if(!i)return await this._open(e,{app:{name:r}});if(i){let n=r.split("--").map(s=>s.trim());return await this._open(e,{app:{name:n.shift(),arguments:n.map(s=>`--${s}`)}})}}async launchBrowser(e,r="default",i=-1){let n;typeof r=="string"?n=await this.open(e,r):Array.isArray(r)&&r.length===0?n=await this.launchDefaultBrowser(e):Array.isArray(r)&&(i++,n=await this.open(e,r[i])),n&&n.once("exit",s=>{s&&s>0&&(typeof r=="string"?(v_.message.log((0,g_.colors)(`Could not open browser "${r}". Trying the default browser next.`,"yellow")),this.launchDefaultBrowser(e)):Array.isArray(r)&&(typeof r[i+1]>"u"?(v_.message.log((0,g_.colors)(`Could not open browser "${r[i]}". Trying the default browser next.`,"yellow")),this.launchDefaultBrowser(e)):(v_.message.log((0,g_.colors)(`Could not open browser "${r[i]}". Trying "${r[i+1]}" next.`,"yellow")),this.launchBrowser(e,r,i))))})}async openBrowser(e,r="",i="default"){if(!e||typeof e!="string"||r===null)return;e&&(e=e.replace(/\/+$/,""));let n=s=>/^https?.\/\//gm.test(s);if(!n(r)&&typeof r=="string"&&r.length>0&&!/^\//.test(r)&&(r=`/${r}`),Array.isArray(r))for(let s of r)n(s)?await this.launchBrowser(s,i):(typeof s=="string"&&!/^\//.test(s)&&(s=`/${s}`),await this.launchBrowser(`${e}${s}`,i));typeof r=="string"&&(n(r)?await this.launchBrowser(r,i):await this.launchBrowser(`${e}${r}`,i))}};bu.OpenBrowser=$y;var r$=new $y($ye.default);bu.openBrowser=r$.openBrowser.bind(r$)});var mf=E(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.FAVICON=qi.PREVIEW_FULLSCREEN=qi.PREVIEW=qi.PHP_TEMPLATE=qi.PHP_ERROR=qi.STATUS_CODE=qi.INJECTED_CODE=void 0;var Hc=require("path"),Gc=require("fs");qi.INJECTED_CODE=(0,Gc.readFileSync)((0,Hc.join)(__dirname,"../client/injected.js"),"utf8");qi.STATUS_CODE=(0,Gc.readFileSync)((0,Hc.join)(__dirname,"../public/serve-preview/status.html"),"utf8");qi.PHP_ERROR=(0,Gc.readFileSync)((0,Hc.join)(__dirname,"../public/serve-php/error.html"),"utf8");qi.PHP_TEMPLATE=(0,Gc.readFileSync)((0,Hc.join)(__dirname,"../public/serve-php/index.html"),"utf8");qi.PREVIEW=(0,Gc.readFileSync)((0,Hc.join)(__dirname,"../public/serve-preview/preview.html"),"utf8");qi.PREVIEW_FULLSCREEN=(0,Gc.readFileSync)((0,Hc.join)(__dirname,"../public/serve-preview/preview-fullscreen.html"),"utf8");qi.FAVICON=(0,Gc.readFileSync)((0,Hc.join)(__dirname,"../public/favicon.ico"),"utf8")});var x_=E(gf=>{"use strict";var Mye=gf&&gf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gf,"__esModule",{value:!0});gf.ExecPHP=void 0;var y_=mf(),jye=require("child_process"),Uye=Mye(require("fs")),b_=class{get path(){return this.php}get ini(){return this.phpIni}set path(e){this.php=e}set ini(e){this.phpIni=e}async parseFile(e,r){let i="";return new Promise(n=>{let s=(o,u)=>n(u.replace("{msg}",o));this.php||(i="Could not find PHP executable.",r.status(500)),!i&&this.php&&!Uye.default.existsSync(this.php)&&(i=`Could not find executable: "${this.php}"`,r.status(500)),i&&s(i,y_.PHP_TEMPLATE);let a=`"${this.php}" "${e}"`;(0,jye.exec)(a,{maxBuffer:1024*1024*2},function(o,u,c){o&&s(`

error: ${o.message}

`,y_.PHP_ERROR),c&&s(`

stderr: ${c}

`,y_.PHP_ERROR),n(u)})})}};gf.ExecPHP=b_});var jy=E((My,n$)=>{(function(t,e){typeof My=="object"&&typeof n$<"u"?e(My):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.acorn={}))})(My,function(t){"use strict";var e=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],i="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",n="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",s={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},a="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:a,"5module":a+" export import",6:a+" const class extends export import super"},u=/^in(stanceof)?$/,c=new RegExp("["+n+"]"),l=new RegExp("["+n+i+"]");function f(p,v){for(var C=65536,_=0;_p)return!1;if(C+=v[_+1],C>=p)return!0}return!1}function d(p,v){return p<65?p===36:p<91?!0:p<97?p===95:p<123?!0:p<=65535?p>=170&&c.test(String.fromCharCode(p)):v===!1?!1:f(p,r)}function h(p,v){return p<48?p===36:p<58?!0:p<65?!1:p<91?!0:p<97?p===95:p<123?!0:p<=65535?p>=170&&l.test(String.fromCharCode(p)):v===!1?!1:f(p,r)||f(p,e)}var m=function(v,C){C===void 0&&(C={}),this.label=v,this.keyword=C.keyword,this.beforeExpr=!!C.beforeExpr,this.startsExpr=!!C.startsExpr,this.isLoop=!!C.isLoop,this.isAssign=!!C.isAssign,this.prefix=!!C.prefix,this.postfix=!!C.postfix,this.binop=C.binop||null,this.updateContext=null};function g(p,v){return new m(p,{beforeExpr:!0,binop:v})}var y={beforeExpr:!0},b={startsExpr:!0},w={};function S(p,v){return v===void 0&&(v={}),v.keyword=p,w[p]=new m(p,v)}var x={num:new m("num",b),regexp:new m("regexp",b),string:new m("string",b),name:new m("name",b),privateId:new m("privateId",b),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",y),semi:new m(";",y),colon:new m(":",y),dot:new m("."),question:new m("?",y),questionDot:new m("?."),arrow:new m("=>",y),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",y),backQuote:new m("`",b),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:g("||",1),logicalAND:g("&&",2),bitwiseOR:g("|",3),bitwiseXOR:g("^",4),bitwiseAND:g("&",5),equality:g("==/!=/===/!==",6),relational:g("/<=/>=",7),bitShift:g("<>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:g("%",10),star:g("*",10),slash:g("/",10),starstar:new m("**",{beforeExpr:!0}),coalesce:g("??",1),_break:S("break"),_case:S("case",y),_catch:S("catch"),_continue:S("continue"),_debugger:S("debugger"),_default:S("default",y),_do:S("do",{isLoop:!0,beforeExpr:!0}),_else:S("else",y),_finally:S("finally"),_for:S("for",{isLoop:!0}),_function:S("function",b),_if:S("if"),_return:S("return",y),_switch:S("switch"),_throw:S("throw",y),_try:S("try"),_var:S("var"),_const:S("const"),_while:S("while",{isLoop:!0}),_with:S("with"),_new:S("new",{beforeExpr:!0,startsExpr:!0}),_this:S("this",b),_super:S("super",b),_class:S("class",b),_extends:S("extends",y),_export:S("export"),_import:S("import",b),_null:S("null",b),_true:S("true",b),_false:S("false",b),_in:S("in",{beforeExpr:!0,binop:7}),_instanceof:S("instanceof",{beforeExpr:!0,binop:7}),_typeof:S("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:S("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:S("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},k=/\r\n?|\n|\u2028|\u2029/,R=new RegExp(k.source,"g");function L(p){return p===10||p===13||p===8232||p===8233}function j(p,v,C){C===void 0&&(C=p.length);for(var _=v;_>10)+55296,(p&1023)+56320))}var he=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ae=function(v,C){this.line=v,this.column=C};ae.prototype.offset=function(v){return new ae(this.line,this.column+v)};var xe=function(v,C,_){this.start=C,this.end=_,v.sourceFile!==null&&(this.source=v.sourceFile)};function Pe(p,v){for(var C=1,_=0;;){var N=j(p,_,v);if(N<0)return new ae(C,v-_);++C,_=N}}var Qe={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Ve=!1;function ve(p){var v={};for(var C in Qe)v[C]=p&&Ae(p,C)?p[C]:Qe[C];if(v.ecmaVersion==="latest"?v.ecmaVersion=1e8:v.ecmaVersion==null?(!Ve&&typeof console=="object"&&console.warn&&(Ve=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. +Defaulting to 2020, but this will stop working in the future.`)),v.ecmaVersion=11):v.ecmaVersion>=2015&&(v.ecmaVersion-=2009),v.allowReserved==null&&(v.allowReserved=v.ecmaVersion<5),(!p||p.allowHashBang==null)&&(v.allowHashBang=v.ecmaVersion>=14),M(v.onToken)){var _=v.onToken;v.onToken=function(N){return _.push(N)}}return M(v.onComment)&&(v.onComment=me(v,v.onComment)),v}function me(p,v){return function(C,_,N,U,K,le){var de={type:C?"Block":"Line",value:_,start:N,end:U};p.locations&&(de.loc=new xe(this,K,le)),p.ranges&&(de.range=[N,U]),v.push(de)}}var rt=1,wt=2,ie=4,Oe=8,ee=16,Ce=32,$e=64,Me=128,ze=256,ea=rt|wt|ze;function _s(p,v){return wt|(p?ie:0)|(v?Oe:0)}var tc=0,Fd=1,Ni=2,Ln=3,$d=4,xg=5,gr=function(v,C,_){this.options=v=ve(v),this.sourceFile=v.sourceFile,this.keywords=z(o[v.ecmaVersion>=6?6:v.sourceType==="module"?"5module":5]);var N="";v.allowReserved!==!0&&(N=s[v.ecmaVersion>=6?6:v.ecmaVersion===5?5:3],v.sourceType==="module"&&(N+=" await")),this.reservedWords=z(N);var U=(N?N+" ":"")+s.strict;this.reservedWordsStrict=z(U),this.reservedWordsStrictBind=z(U+" "+s.strictBind),this.input=String(C),this.containsEsc=!1,_?(this.pos=_,this.lineStart=this.input.lastIndexOf(` +`,_-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(k).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=x.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=v.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&v.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(rt),this.regexpState=null,this.privateNameStack=[]},Qn={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};gr.prototype.parse=function(){var v=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(v)},Qn.inFunction.get=function(){return(this.currentVarScope().flags&wt)>0},Qn.inGenerator.get=function(){return(this.currentVarScope().flags&Oe)>0&&!this.currentVarScope().inClassFieldInit},Qn.inAsync.get=function(){return(this.currentVarScope().flags&ie)>0&&!this.currentVarScope().inClassFieldInit},Qn.canAwait.get=function(){for(var p=this.scopeStack.length-1;p>=0;p--){var v=this.scopeStack[p];if(v.inClassFieldInit||v.flags&ze)return!1;if(v.flags&wt)return(v.flags&ie)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Qn.allowSuper.get=function(){var p=this.currentThisScope(),v=p.flags,C=p.inClassFieldInit;return(v&$e)>0||C||this.options.allowSuperOutsideMethod},Qn.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Me)>0},Qn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Qn.allowNewDotTarget.get=function(){var p=this.currentThisScope(),v=p.flags,C=p.inClassFieldInit;return(v&(wt|ze))>0||C},Qn.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ze)>0},gr.extend=function(){for(var v=[],C=arguments.length;C--;)v[C]=arguments[C];for(var _=this,N=0;N=,?^&]/.test(N)||N==="!"&&this.input.charAt(_+1)==="=")}p+=v[0].length,J.lastIndex=p,p+=J.exec(this.input)[0].length,this.input[p]===";"&&p++}},wi.eat=function(p){return this.type===p?(this.next(),!0):!1},wi.isContextual=function(p){return this.type===x.name&&this.value===p&&!this.containsEsc},wi.eatContextual=function(p){return this.isContextual(p)?(this.next(),!0):!1},wi.expectContextual=function(p){this.eatContextual(p)||this.unexpected()},wi.canInsertSemicolon=function(){return this.type===x.eof||this.type===x.braceR||k.test(this.input.slice(this.lastTokEnd,this.start))},wi.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},wi.semicolon=function(){!this.eat(x.semi)&&!this.insertSemicolon()&&this.unexpected()},wi.afterTrailingComma=function(p,v){if(this.type===p)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),v||this.next(),!0},wi.expect=function(p){this.eat(p)||this.unexpected()},wi.unexpected=function(p){this.raise(p??this.start,"Unexpected token")};var ta=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};wi.checkPatternErrors=function(p,v){if(p){p.trailingComma>-1&&this.raiseRecoverable(p.trailingComma,"Comma is not permitted after the rest element");var C=v?p.parenthesizedAssign:p.parenthesizedBind;C>-1&&this.raiseRecoverable(C,v?"Assigning to rvalue":"Parenthesized pattern")}},wi.checkExpressionErrors=function(p,v){if(!p)return!1;var C=p.shorthandAssign,_=p.doubleProto;if(!v)return C>=0||_>=0;C>=0&&this.raise(C,"Shorthand property assignments are valid only in destructuring patterns"),_>=0&&this.raiseRecoverable(_,"Redefinition of __proto__ property")},wi.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&_<56320)return!0;if(d(_,!0)){for(var N=C+1;h(_=this.input.charCodeAt(N),!0);)++N;if(_===92||_>55295&&_<56320)return!0;var U=this.input.slice(C,N);if(!u.test(U))return!0}return!1},Ne.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;J.lastIndex=this.pos;var p=J.exec(this.input),v=this.pos+p[0].length,C;return!k.test(this.input.slice(this.pos,v))&&this.input.slice(v,v+8)==="function"&&(v+8===this.input.length||!(h(C=this.input.charCodeAt(v+8))||C>55295&&C<56320))},Ne.parseStatement=function(p,v,C){var _=this.type,N=this.startNode(),U;switch(this.isLet(p)&&(_=x._var,U="let"),_){case x._break:case x._continue:return this.parseBreakContinueStatement(N,_.keyword);case x._debugger:return this.parseDebuggerStatement(N);case x._do:return this.parseDoStatement(N);case x._for:return this.parseForStatement(N);case x._function:return p&&(this.strict||p!=="if"&&p!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(N,!1,!p);case x._class:return p&&this.unexpected(),this.parseClass(N,!0);case x._if:return this.parseIfStatement(N);case x._return:return this.parseReturnStatement(N);case x._switch:return this.parseSwitchStatement(N);case x._throw:return this.parseThrowStatement(N);case x._try:return this.parseTryStatement(N);case x._const:case x._var:return U=U||this.value,p&&U!=="var"&&this.unexpected(),this.parseVarStatement(N,U);case x._while:return this.parseWhileStatement(N);case x._with:return this.parseWithStatement(N);case x.braceL:return this.parseBlock(!0,N);case x.semi:return this.parseEmptyStatement(N);case x._export:case x._import:if(this.options.ecmaVersion>10&&_===x._import){J.lastIndex=this.pos;var K=J.exec(this.input),le=this.pos+K[0].length,de=this.input.charCodeAt(le);if(de===40||de===46)return this.parseExpressionStatement(N,this.parseExpression())}return this.options.allowImportExportEverywhere||(v||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),_===x._import?this.parseImport(N):this.parseExport(N,C);default:if(this.isAsyncFunction())return p&&this.unexpected(),this.next(),this.parseFunctionStatement(N,!0,!p);var Ze=this.value,ut=this.parseExpression();return _===x.name&&ut.type==="Identifier"&&this.eat(x.colon)?this.parseLabeledStatement(N,Ze,ut,p):this.parseExpressionStatement(N,ut)}},Ne.parseBreakContinueStatement=function(p,v){var C=v==="break";this.next(),this.eat(x.semi)||this.insertSemicolon()?p.label=null:this.type!==x.name?this.unexpected():(p.label=this.parseIdent(),this.semicolon());for(var _=0;_=6?this.eat(x.semi):this.semicolon(),this.finishNode(p,"DoWhileStatement")},Ne.parseForStatement=function(p){this.next();var v=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Gl),this.enterScope(0),this.expect(x.parenL),this.type===x.semi)return v>-1&&this.unexpected(v),this.parseFor(p,null);var C=this.isLet();if(this.type===x._var||this.type===x._const||C){var _=this.startNode(),N=C?"let":this.value;return this.next(),this.parseVar(_,!0,N),this.finishNode(_,"VariableDeclaration"),(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&_.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===x._in?v>-1&&this.unexpected(v):p.await=v>-1),this.parseForIn(p,_)):(v>-1&&this.unexpected(v),this.parseFor(p,_))}var U=this.isContextual("let"),K=!1,le=new ta,de=this.parseExpression(v>-1?"await":!0,le);return this.type===x._in||(K=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===x._in?v>-1&&this.unexpected(v):p.await=v>-1),U&&K&&this.raise(de.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(de,!1,le),this.checkLValPattern(de),this.parseForIn(p,de)):(this.checkExpressionErrors(le,!0),v>-1&&this.unexpected(v),this.parseFor(p,de))},Ne.parseFunctionStatement=function(p,v,C){return this.next(),this.parseFunction(p,ic|(C?0:Md),!1,v)},Ne.parseIfStatement=function(p){return this.next(),p.test=this.parseParenExpression(),p.consequent=this.parseStatement("if"),p.alternate=this.eat(x._else)?this.parseStatement("if"):null,this.finishNode(p,"IfStatement")},Ne.parseReturnStatement=function(p){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(x.semi)||this.insertSemicolon()?p.argument=null:(p.argument=this.parseExpression(),this.semicolon()),this.finishNode(p,"ReturnStatement")},Ne.parseSwitchStatement=function(p){this.next(),p.discriminant=this.parseParenExpression(),p.cases=[],this.expect(x.braceL),this.labels.push(rc),this.enterScope(0);for(var v,C=!1;this.type!==x.braceR;)if(this.type===x._case||this.type===x._default){var _=this.type===x._case;v&&this.finishNode(v,"SwitchCase"),p.cases.push(v=this.startNode()),v.consequent=[],this.next(),_?v.test=this.parseExpression():(C&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),C=!0,v.test=null),this.expect(x.colon)}else v||this.unexpected(),v.consequent.push(this.parseStatement(null));return this.exitScope(),v&&this.finishNode(v,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(p,"SwitchStatement")},Ne.parseThrowStatement=function(p){return this.next(),k.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),p.argument=this.parseExpression(),this.semicolon(),this.finishNode(p,"ThrowStatement")};var wg=[];Ne.parseCatchClauseParam=function(){var p=this.parseBindingAtom(),v=p.type==="Identifier";return this.enterScope(v?Ce:0),this.checkLValPattern(p,v?$d:Ni),this.expect(x.parenR),p},Ne.parseTryStatement=function(p){if(this.next(),p.block=this.parseBlock(),p.handler=null,this.type===x._catch){var v=this.startNode();this.next(),this.eat(x.parenL)?v.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),v.param=null,this.enterScope(0)),v.body=this.parseBlock(!1),this.exitScope(),p.handler=this.finishNode(v,"CatchClause")}return p.finalizer=this.eat(x._finally)?this.parseBlock():null,!p.handler&&!p.finalizer&&this.raise(p.start,"Missing catch or finally clause"),this.finishNode(p,"TryStatement")},Ne.parseVarStatement=function(p,v,C){return this.next(),this.parseVar(p,!1,v,C),this.semicolon(),this.finishNode(p,"VariableDeclaration")},Ne.parseWhileStatement=function(p){return this.next(),p.test=this.parseParenExpression(),this.labels.push(Gl),p.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(p,"WhileStatement")},Ne.parseWithStatement=function(p){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),p.object=this.parseParenExpression(),p.body=this.parseStatement("with"),this.finishNode(p,"WithStatement")},Ne.parseEmptyStatement=function(p){return this.next(),this.finishNode(p,"EmptyStatement")},Ne.parseLabeledStatement=function(p,v,C,_){for(var N=0,U=this.labels;N=0;de--){var Ze=this.labels[de];if(Ze.statementStart===p.start)Ze.statementStart=this.start,Ze.kind=le;else break}return this.labels.push({name:v,kind:le,statementStart:this.start}),p.body=this.parseStatement(_?_.indexOf("label")===-1?_+"label":_:"label"),this.labels.pop(),p.label=C,this.finishNode(p,"LabeledStatement")},Ne.parseExpressionStatement=function(p,v){return p.expression=v,this.semicolon(),this.finishNode(p,"ExpressionStatement")},Ne.parseBlock=function(p,v,C){for(p===void 0&&(p=!0),v===void 0&&(v=this.startNode()),v.body=[],this.expect(x.braceL),p&&this.enterScope(0);this.type!==x.braceR;){var _=this.parseStatement(null);v.body.push(_)}return C&&(this.strict=!1),this.next(),p&&this.exitScope(),this.finishNode(v,"BlockStatement")},Ne.parseFor=function(p,v){return p.init=v,this.expect(x.semi),p.test=this.type===x.semi?null:this.parseExpression(),this.expect(x.semi),p.update=this.type===x.parenR?null:this.parseExpression(),this.expect(x.parenR),p.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(p,"ForStatement")},Ne.parseForIn=function(p,v){var C=this.type===x._in;return this.next(),v.type==="VariableDeclaration"&&v.declarations[0].init!=null&&(!C||this.options.ecmaVersion<8||this.strict||v.kind!=="var"||v.declarations[0].id.type!=="Identifier")&&this.raise(v.start,(C?"for-in":"for-of")+" loop variable declaration may not have an initializer"),p.left=v,p.right=C?this.parseExpression():this.parseMaybeAssign(),this.expect(x.parenR),p.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(p,C?"ForInStatement":"ForOfStatement")},Ne.parseVar=function(p,v,C,_){for(p.declarations=[],p.kind=C;;){var N=this.startNode();if(this.parseVarId(N,C),this.eat(x.eq)?N.init=this.parseMaybeAssign(v):!_&&C==="const"&&!(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!_&&N.id.type!=="Identifier"&&!(v&&(this.type===x._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):N.init=null,p.declarations.push(this.finishNode(N,"VariableDeclarator")),!this.eat(x.comma))break}return p},Ne.parseVarId=function(p,v){p.id=this.parseBindingAtom(),this.checkLValPattern(p.id,v==="var"?Fd:Ni,!1)};var ic=1,Md=2,jd=4;Ne.parseFunction=function(p,v,C,_,N){this.initFunction(p),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!_)&&(this.type===x.star&&v&Md&&this.unexpected(),p.generator=this.eat(x.star)),this.options.ecmaVersion>=8&&(p.async=!!_),v&ic&&(p.id=v&jd&&this.type!==x.name?null:this.parseIdent(),p.id&&!(v&Md)&&this.checkLValSimple(p.id,this.strict||p.generator||p.async?this.treatFunctionsAsVar?Fd:Ni:Ln));var U=this.yieldPos,K=this.awaitPos,le=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_s(p.async,p.generator)),v&ic||(p.id=this.type===x.name?this.parseIdent():null),this.parseFunctionParams(p),this.parseFunctionBody(p,C,!1,N),this.yieldPos=U,this.awaitPos=K,this.awaitIdentPos=le,this.finishNode(p,v&ic?"FunctionDeclaration":"FunctionExpression")},Ne.parseFunctionParams=function(p){this.expect(x.parenL),p.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ne.parseClass=function(p,v){this.next();var C=this.strict;this.strict=!0,this.parseClassId(p,v),this.parseClassSuper(p);var _=this.enterClassBody(),N=this.startNode(),U=!1;for(N.body=[],this.expect(x.braceL);this.type!==x.braceR;){var K=this.parseClassElement(p.superClass!==null);K&&(N.body.push(K),K.type==="MethodDefinition"&&K.kind==="constructor"?(U&&this.raiseRecoverable(K.start,"Duplicate constructor in the same class"),U=!0):K.key&&K.key.type==="PrivateIdentifier"&&Jn(_,K)&&this.raiseRecoverable(K.key.start,"Identifier '#"+K.key.name+"' has already been declared"))}return this.strict=C,this.next(),p.body=this.finishNode(N,"ClassBody"),this.exitClassBody(),this.finishNode(p,v?"ClassDeclaration":"ClassExpression")},Ne.parseClassElement=function(p){if(this.eat(x.semi))return null;var v=this.options.ecmaVersion,C=this.startNode(),_="",N=!1,U=!1,K="method",le=!1;if(this.eatContextual("static")){if(v>=13&&this.eat(x.braceL))return this.parseClassStaticBlock(C),C;this.isClassElementNameStart()||this.type===x.star?le=!0:_="static"}if(C.static=le,!_&&v>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===x.star)&&!this.canInsertSemicolon()?U=!0:_="async"),!_&&(v>=9||!U)&&this.eat(x.star)&&(N=!0),!_&&!U&&!N){var de=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?K=de:_=de)}if(_?(C.computed=!1,C.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),C.key.name=_,this.finishNode(C.key,"Identifier")):this.parseClassElementName(C),v<13||this.type===x.parenL||K!=="method"||N||U){var Ze=!C.static&&zl(C,"constructor"),ut=Ze&&p;Ze&&K!=="method"&&this.raise(C.key.start,"Constructor can't have get/set modifier"),C.kind=Ze?"constructor":K,this.parseClassMethod(C,N,U,ut)}else this.parseClassField(C);return C},Ne.isClassElementNameStart=function(){return this.type===x.name||this.type===x.privateId||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword},Ne.parseClassElementName=function(p){this.type===x.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),p.computed=!1,p.key=this.parsePrivateIdent()):this.parsePropertyName(p)},Ne.parseClassMethod=function(p,v,C,_){var N=p.key;p.kind==="constructor"?(v&&this.raise(N.start,"Constructor can't be a generator"),C&&this.raise(N.start,"Constructor can't be an async method")):p.static&&zl(p,"prototype")&&this.raise(N.start,"Classes may not have a static property named prototype");var U=p.value=this.parseMethod(v,C,_);return p.kind==="get"&&U.params.length!==0&&this.raiseRecoverable(U.start,"getter should have no params"),p.kind==="set"&&U.params.length!==1&&this.raiseRecoverable(U.start,"setter should have exactly one param"),p.kind==="set"&&U.params[0].type==="RestElement"&&this.raiseRecoverable(U.params[0].start,"Setter cannot use rest params"),this.finishNode(p,"MethodDefinition")},Ne.parseClassField=function(p){if(zl(p,"constructor")?this.raise(p.key.start,"Classes can't have a field named 'constructor'"):p.static&&zl(p,"prototype")&&this.raise(p.key.start,"Classes can't have a static field named 'prototype'"),this.eat(x.eq)){var v=this.currentThisScope(),C=v.inClassFieldInit;v.inClassFieldInit=!0,p.value=this.parseMaybeAssign(),v.inClassFieldInit=C}else p.value=null;return this.semicolon(),this.finishNode(p,"PropertyDefinition")},Ne.parseClassStaticBlock=function(p){p.body=[];var v=this.labels;for(this.labels=[],this.enterScope(ze|$e);this.type!==x.braceR;){var C=this.parseStatement(null);p.body.push(C)}return this.next(),this.exitScope(),this.labels=v,this.finishNode(p,"StaticBlock")},Ne.parseClassId=function(p,v){this.type===x.name?(p.id=this.parseIdent(),v&&this.checkLValSimple(p.id,Ni,!1)):(v===!0&&this.unexpected(),p.id=null)},Ne.parseClassSuper=function(p){p.superClass=this.eat(x._extends)?this.parseExprSubscripts(null,!1):null},Ne.enterClassBody=function(){var p={declared:Object.create(null),used:[]};return this.privateNameStack.push(p),p.declared},Ne.exitClassBody=function(){var p=this.privateNameStack.pop(),v=p.declared,C=p.used;if(this.options.checkPrivateFields)for(var _=this.privateNameStack.length,N=_===0?null:this.privateNameStack[_-1],U=0;U=11&&(this.eatContextual("as")?(p.exported=this.parseModuleExportName(),this.checkExport(v,p.exported,this.lastTokStart)):p.exported=null),this.expectContextual("from"),this.type!==x.string&&this.unexpected(),p.source=this.parseExprAtom(),this.semicolon(),this.finishNode(p,"ExportAllDeclaration")},Ne.parseExport=function(p,v){if(this.next(),this.eat(x.star))return this.parseExportAllDeclaration(p,v);if(this.eat(x._default))return this.checkExport(v,"default",this.lastTokStart),p.declaration=this.parseExportDefaultDeclaration(),this.finishNode(p,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())p.declaration=this.parseExportDeclaration(p),p.declaration.type==="VariableDeclaration"?this.checkVariableExport(v,p.declaration.declarations):this.checkExport(v,p.declaration.id,p.declaration.id.start),p.specifiers=[],p.source=null;else{if(p.declaration=null,p.specifiers=this.parseExportSpecifiers(v),this.eatContextual("from"))this.type!==x.string&&this.unexpected(),p.source=this.parseExprAtom();else{for(var C=0,_=p.specifiers;C<_.length;C+=1){var N=_[C];this.checkUnreserved(N.local),this.checkLocalExport(N.local),N.local.type==="Literal"&&this.raise(N.local.start,"A string literal cannot be used as an exported binding without `from`.")}p.source=null}this.semicolon()}return this.finishNode(p,"ExportNamedDeclaration")},Ne.parseExportDeclaration=function(p){return this.parseStatement(null)},Ne.parseExportDefaultDeclaration=function(){var p;if(this.type===x._function||(p=this.isAsyncFunction())){var v=this.startNode();return this.next(),p&&this.next(),this.parseFunction(v,ic|jd,!1,p)}else if(this.type===x._class){var C=this.startNode();return this.parseClass(C,"nullableID")}else{var _=this.parseMaybeAssign();return this.semicolon(),_}},Ne.checkExport=function(p,v,C){p&&(typeof v!="string"&&(v=v.type==="Identifier"?v.name:v.value),Ae(p,v)&&this.raiseRecoverable(C,"Duplicate export '"+v+"'"),p[v]=!0)},Ne.checkPatternExport=function(p,v){var C=v.type;if(C==="Identifier")this.checkExport(p,v,v.start);else if(C==="ObjectPattern")for(var _=0,N=v.properties;_=13&&this.type===x.string){var p=this.parseLiteral(this.value);return he.test(p.value)&&this.raise(p.start,"An export name cannot include a lone surrogate."),p}return this.parseIdent(!0)},Ne.adaptDirectivePrologue=function(p){for(var v=0;v=5&&p.type==="ExpressionStatement"&&p.expression.type==="Literal"&&typeof p.expression.value=="string"&&(this.input[p.start]==='"'||this.input[p.start]==="'")};var pn=gr.prototype;pn.toAssignable=function(p,v,C){if(this.options.ecmaVersion>=6&&p)switch(p.type){case"Identifier":this.inAsync&&p.name==="await"&&this.raise(p.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":p.type="ObjectPattern",C&&this.checkPatternErrors(C,!0);for(var _=0,N=p.properties;_=8&&!le&&de.name==="async"&&!this.canInsertSemicolon()&&this.eat(x._function))return this.overrideContext(Qt.f_expr),this.parseFunction(this.startNodeAt(U,K),0,!1,!0,v);if(N&&!this.canInsertSemicolon()){if(this.eat(x.arrow))return this.parseArrowExpression(this.startNodeAt(U,K),[de],!1,v);if(this.options.ecmaVersion>=8&&de.name==="async"&&this.type===x.name&&!le&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return de=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(x.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(U,K),[de],!0,v)}return de;case x.regexp:var Ze=this.value;return _=this.parseLiteral(Ze.value),_.regex={pattern:Ze.pattern,flags:Ze.flags},_;case x.num:case x.string:return this.parseLiteral(this.value);case x._null:case x._true:case x._false:return _=this.startNode(),_.value=this.type===x._null?null:this.type===x._true,_.raw=this.type.keyword,this.next(),this.finishNode(_,"Literal");case x.parenL:var ut=this.start,Vr=this.parseParenAndDistinguishExpression(N,v);return p&&(p.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Vr)&&(p.parenthesizedAssign=ut),p.parenthesizedBind<0&&(p.parenthesizedBind=ut)),Vr;case x.bracketL:return _=this.startNode(),this.next(),_.elements=this.parseExprList(x.bracketR,!0,!0,p),this.finishNode(_,"ArrayExpression");case x.braceL:return this.overrideContext(Qt.b_expr),this.parseObj(!1,p);case x._function:return _=this.startNode(),this.next(),this.parseFunction(_,0);case x._class:return this.parseClass(this.startNode(),!1);case x._new:return this.parseNew();case x.backQuote:return this.parseTemplate();case x._import:return this.options.ecmaVersion>=11?this.parseExprImport(C):this.unexpected();default:return this.parseExprAtomDefault()}},He.parseExprAtomDefault=function(){this.unexpected()},He.parseExprImport=function(p){var v=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===x.parenL&&!p)return this.parseDynamicImport(v);if(this.type===x.dot){var C=this.startNodeAt(v.start,v.loc&&v.loc.start);return C.name="import",v.meta=this.finishNode(C,"Identifier"),this.parseImportMeta(v)}else this.unexpected()},He.parseDynamicImport=function(p){if(this.next(),p.source=this.parseMaybeAssign(),!this.eat(x.parenR)){var v=this.start;this.eat(x.comma)&&this.eat(x.parenR)?this.raiseRecoverable(v,"Trailing comma is not allowed in import()"):this.unexpected(v)}return this.finishNode(p,"ImportExpression")},He.parseImportMeta=function(p){this.next();var v=this.containsEsc;return p.property=this.parseIdent(!0),p.property.name!=="meta"&&this.raiseRecoverable(p.property.start,"The only valid meta property for import is 'import.meta'"),v&&this.raiseRecoverable(p.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(p.start,"Cannot use 'import.meta' outside a module"),this.finishNode(p,"MetaProperty")},He.parseLiteral=function(p){var v=this.startNode();return v.value=p,v.raw=this.input.slice(this.start,this.end),v.raw.charCodeAt(v.raw.length-1)===110&&(v.bigint=v.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(v,"Literal")},He.parseParenExpression=function(){this.expect(x.parenL);var p=this.parseExpression();return this.expect(x.parenR),p},He.shouldParseArrow=function(p){return!this.canInsertSemicolon()},He.parseParenAndDistinguishExpression=function(p,v){var C=this.start,_=this.startLoc,N,U=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var K=this.start,le=this.startLoc,de=[],Ze=!0,ut=!1,Vr=new ta,Xo=this.yieldPos,Yl=this.awaitPos,cc;for(this.yieldPos=0,this.awaitPos=0;this.type!==x.parenR;)if(Ze?Ze=!1:this.expect(x.comma),U&&this.afterTrailingComma(x.parenR,!0)){ut=!0;break}else if(this.type===x.ellipsis){cc=this.start,de.push(this.parseParenItem(this.parseRestBinding())),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else de.push(this.parseMaybeAssign(!1,Vr,this.parseParenItem));var Sg=this.lastTokEnd,Xl=this.lastTokEndLoc;if(this.expect(x.parenR),p&&this.shouldParseArrow(de)&&this.eat(x.arrow))return this.checkPatternErrors(Vr,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Xo,this.awaitPos=Yl,this.parseParenArrowList(C,_,de,v);(!de.length||ut)&&this.unexpected(this.lastTokStart),cc&&this.unexpected(cc),this.checkExpressionErrors(Vr,!0),this.yieldPos=Xo||this.yieldPos,this.awaitPos=Yl||this.awaitPos,de.length>1?(N=this.startNodeAt(K,le),N.expressions=de,this.finishNodeAt(N,"SequenceExpression",Sg,Xl)):N=de[0]}else N=this.parseParenExpression();if(this.options.preserveParens){var Ql=this.startNodeAt(C,_);return Ql.expression=N,this.finishNode(Ql,"ParenthesizedExpression")}else return N},He.parseParenItem=function(p){return p},He.parseParenArrowList=function(p,v,C,_){return this.parseArrowExpression(this.startNodeAt(p,v),C,!1,_)};var yx=[];He.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var p=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===x.dot){var v=this.startNodeAt(p.start,p.loc&&p.loc.start);v.name="new",p.meta=this.finishNode(v,"Identifier"),this.next();var C=this.containsEsc;return p.property=this.parseIdent(!0),p.property.name!=="target"&&this.raiseRecoverable(p.property.start,"The only valid meta property for new is 'new.target'"),C&&this.raiseRecoverable(p.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(p.start,"'new.target' can only be used in functions and class static block"),this.finishNode(p,"MetaProperty")}var _=this.start,N=this.startLoc;return p.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),_,N,!0,!1),this.eat(x.parenL)?p.arguments=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1):p.arguments=yx,this.finishNode(p,"NewExpression")},He.parseTemplateElement=function(p){var v=p.isTagged,C=this.startNode();return this.type===x.invalidTemplate?(v||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),C.value={raw:this.value,cooked:null}):C.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` +`),cooked:this.value},this.next(),C.tail=this.type===x.backQuote,this.finishNode(C,"TemplateElement")},He.parseTemplate=function(p){p===void 0&&(p={});var v=p.isTagged;v===void 0&&(v=!1);var C=this.startNode();this.next(),C.expressions=[];var _=this.parseTemplateElement({isTagged:v});for(C.quasis=[_];!_.tail;)this.type===x.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(x.dollarBraceL),C.expressions.push(this.parseExpression()),this.expect(x.braceR),C.quasis.push(_=this.parseTemplateElement({isTagged:v}));return this.next(),this.finishNode(C,"TemplateLiteral")},He.isAsyncProp=function(p){return!p.computed&&p.key.type==="Identifier"&&p.key.name==="async"&&(this.type===x.name||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===x.star)&&!k.test(this.input.slice(this.lastTokEnd,this.start))},He.parseObj=function(p,v){var C=this.startNode(),_=!0,N={};for(C.properties=[],this.next();!this.eat(x.braceR);){if(_)_=!1;else if(this.expect(x.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(x.braceR))break;var U=this.parseProperty(p,v);p||this.checkPropClash(U,N,v),C.properties.push(U)}return this.finishNode(C,p?"ObjectPattern":"ObjectExpression")},He.parseProperty=function(p,v){var C=this.startNode(),_,N,U,K;if(this.options.ecmaVersion>=9&&this.eat(x.ellipsis))return p?(C.argument=this.parseIdent(!1),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(C,"RestElement")):(C.argument=this.parseMaybeAssign(!1,v),this.type===x.comma&&v&&v.trailingComma<0&&(v.trailingComma=this.start),this.finishNode(C,"SpreadElement"));this.options.ecmaVersion>=6&&(C.method=!1,C.shorthand=!1,(p||v)&&(U=this.start,K=this.startLoc),p||(_=this.eat(x.star)));var le=this.containsEsc;return this.parsePropertyName(C),!p&&!le&&this.options.ecmaVersion>=8&&!_&&this.isAsyncProp(C)?(N=!0,_=this.options.ecmaVersion>=9&&this.eat(x.star),this.parsePropertyName(C)):N=!1,this.parsePropertyValue(C,p,_,N,U,K,v,le),this.finishNode(C,"Property")},He.parseGetterSetter=function(p){p.kind=p.key.name,this.parsePropertyName(p),p.value=this.parseMethod(!1);var v=p.kind==="get"?0:1;if(p.value.params.length!==v){var C=p.value.start;p.kind==="get"?this.raiseRecoverable(C,"getter should have no params"):this.raiseRecoverable(C,"setter should have exactly one param")}else p.kind==="set"&&p.value.params[0].type==="RestElement"&&this.raiseRecoverable(p.value.params[0].start,"Setter cannot use rest params")},He.parsePropertyValue=function(p,v,C,_,N,U,K,le){(C||_)&&this.type===x.colon&&this.unexpected(),this.eat(x.colon)?(p.value=v?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,K),p.kind="init"):this.options.ecmaVersion>=6&&this.type===x.parenL?(v&&this.unexpected(),p.kind="init",p.method=!0,p.value=this.parseMethod(C,_)):!v&&!le&&this.options.ecmaVersion>=5&&!p.computed&&p.key.type==="Identifier"&&(p.key.name==="get"||p.key.name==="set")&&this.type!==x.comma&&this.type!==x.braceR&&this.type!==x.eq?((C||_)&&this.unexpected(),this.parseGetterSetter(p)):this.options.ecmaVersion>=6&&!p.computed&&p.key.type==="Identifier"?((C||_)&&this.unexpected(),this.checkUnreserved(p.key),p.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=N),p.kind="init",v?p.value=this.parseMaybeDefault(N,U,this.copyNode(p.key)):this.type===x.eq&&K?(K.shorthandAssign<0&&(K.shorthandAssign=this.start),p.value=this.parseMaybeDefault(N,U,this.copyNode(p.key))):p.value=this.copyNode(p.key),p.shorthand=!0):this.unexpected()},He.parsePropertyName=function(p){if(this.options.ecmaVersion>=6){if(this.eat(x.bracketL))return p.computed=!0,p.key=this.parseMaybeAssign(),this.expect(x.bracketR),p.key;p.computed=!1}return p.key=this.type===x.num||this.type===x.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},He.initFunction=function(p){p.id=null,this.options.ecmaVersion>=6&&(p.generator=p.expression=!1),this.options.ecmaVersion>=8&&(p.async=!1)},He.parseMethod=function(p,v,C){var _=this.startNode(),N=this.yieldPos,U=this.awaitPos,K=this.awaitIdentPos;return this.initFunction(_),this.options.ecmaVersion>=6&&(_.generator=p),this.options.ecmaVersion>=8&&(_.async=!!v),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_s(v,_.generator)|$e|(C?Me:0)),this.expect(x.parenL),_.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(_,!1,!0,!1),this.yieldPos=N,this.awaitPos=U,this.awaitIdentPos=K,this.finishNode(_,"FunctionExpression")},He.parseArrowExpression=function(p,v,C,_){var N=this.yieldPos,U=this.awaitPos,K=this.awaitIdentPos;return this.enterScope(_s(C,!1)|ee),this.initFunction(p),this.options.ecmaVersion>=8&&(p.async=!!C),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,p.params=this.toAssignableList(v,!0),this.parseFunctionBody(p,!0,!1,_),this.yieldPos=N,this.awaitPos=U,this.awaitIdentPos=K,this.finishNode(p,"ArrowFunctionExpression")},He.parseFunctionBody=function(p,v,C,_){var N=v&&this.type!==x.braceL,U=this.strict,K=!1;if(N)p.body=this.parseMaybeAssign(_),p.expression=!0,this.checkParams(p,!1);else{var le=this.options.ecmaVersion>=7&&!this.isSimpleParamList(p.params);(!U||le)&&(K=this.strictDirective(this.end),K&&le&&this.raiseRecoverable(p.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var de=this.labels;this.labels=[],K&&(this.strict=!0),this.checkParams(p,!U&&!K&&!v&&!C&&this.isSimpleParamList(p.params)),this.strict&&p.id&&this.checkLValSimple(p.id,xg),p.body=this.parseBlock(!1,void 0,K&&!U),p.expression=!1,this.adaptDirectivePrologue(p.body.body),this.labels=de}this.exitScope()},He.isSimpleParamList=function(p){for(var v=0,C=p;v-1||N.functions.indexOf(p)>-1||N.var.indexOf(p)>-1,N.lexical.push(p),this.inModule&&N.flags&rt&&delete this.undefinedExports[p]}else if(v===$d){var U=this.currentScope();U.lexical.push(p)}else if(v===Ln){var K=this.currentScope();this.treatFunctionsAsVar?_=K.lexical.indexOf(p)>-1:_=K.lexical.indexOf(p)>-1||K.var.indexOf(p)>-1,K.functions.push(p)}else for(var le=this.scopeStack.length-1;le>=0;--le){var de=this.scopeStack[le];if(de.lexical.indexOf(p)>-1&&!(de.flags&Ce&&de.lexical[0]===p)||!this.treatFunctionsAsVarInScope(de)&&de.functions.indexOf(p)>-1){_=!0;break}if(de.var.push(p),this.inModule&&de.flags&rt&&delete this.undefinedExports[p],de.flags&ea)break}_&&this.raiseRecoverable(C,"Identifier '"+p+"' has already been declared")},ra.checkLocalExport=function(p){this.scopeStack[0].lexical.indexOf(p.name)===-1&&this.scopeStack[0].var.indexOf(p.name)===-1&&(this.undefinedExports[p.name]=p)},ra.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ra.currentVarScope=function(){for(var p=this.scopeStack.length-1;;p--){var v=this.scopeStack[p];if(v.flags&ea)return v}},ra.currentThisScope=function(){for(var p=this.scopeStack.length-1;;p--){var v=this.scopeStack[p];if(v.flags&ea&&!(v.flags&ee))return v}};var Ho=function(v,C,_){this.type="",this.start=C,this.end=0,v.options.locations&&(this.loc=new xe(v,_)),v.options.directSourceFile&&(this.sourceFile=v.options.directSourceFile),v.options.ranges&&(this.range=[C,0])},sc=gr.prototype;sc.startNode=function(){return new Ho(this,this.start,this.startLoc)},sc.startNodeAt=function(p,v){return new Ho(this,p,v)};function Vd(p,v,C,_){return p.type=v,p.end=C,this.options.locations&&(p.loc.end=_),this.options.ranges&&(p.range[1]=C),p}sc.finishNode=function(p,v){return Vd.call(this,p,v,this.lastTokEnd,this.lastTokEndLoc)},sc.finishNodeAt=function(p,v,C,_){return Vd.call(this,p,v,C,_)},sc.copyNode=function(p){var v=new Ho(this,p.start,this.startLoc);for(var C in p)v[C]=p[C];return v};var Eg="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Hd=Eg+" Extended_Pictographic",P=Hd,I=P+" EBase EComp EMod EPres ExtPict",$=I,W=$,X={9:Eg,10:Hd,11:P,12:I,13:$,14:W},we="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",We={9:"",10:"",11:"",12:"",13:"",14:we},yt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Tt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Er=Tt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",dt=Er+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tr=dt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Cr=tr+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",rr=Cr+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Ct={9:Tt,10:Er,11:dt,12:tr,13:Cr,14:rr},ir={};function Pt(p){var v=ir[p]={binary:z(X[p]+" "+yt),binaryOfStrings:z(We[p]),nonBinary:{General_Category:z(yt),Script:z(Ct[p])}};v.nonBinary.Script_Extensions=v.nonBinary.Script,v.nonBinary.gc=v.nonBinary.General_Category,v.nonBinary.sc=v.nonBinary.Script,v.nonBinary.scx=v.nonBinary.Script_Extensions}for(var Ts=0,Ri=[9,10,11,12,13,14];Ts=6?"uy":"")+(v.options.ecmaVersion>=9?"s":"")+(v.options.ecmaVersion>=13?"d":"")+(v.options.ecmaVersion>=15?"v":""),this.unicodeProperties=ir[v.options.ecmaVersion>=14?14:v.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};vr.prototype.reset=function(v,C,_){var N=_.indexOf("v")!==-1,U=_.indexOf("u")!==-1;this.start=v|0,this.source=C+"",this.flags=_,N&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=U&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=U&&this.parser.options.ecmaVersion>=9)},vr.prototype.raise=function(v){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+v)},vr.prototype.at=function(v,C){C===void 0&&(C=!1);var _=this.source,N=_.length;if(v>=N)return-1;var U=_.charCodeAt(v);if(!(C||this.switchU)||U<=55295||U>=57344||v+1>=N)return U;var K=_.charCodeAt(v+1);return K>=56320&&K<=57343?(U<<10)+K-56613888:U},vr.prototype.nextIndex=function(v,C){C===void 0&&(C=!1);var _=this.source,N=_.length;if(v>=N)return N;var U=_.charCodeAt(v),K;return!(C||this.switchU)||U<=55295||U>=57344||v+1>=N||(K=_.charCodeAt(v+1))<56320||K>57343?v+1:v+2},vr.prototype.current=function(v){return v===void 0&&(v=!1),this.at(this.pos,v)},vr.prototype.lookahead=function(v){return v===void 0&&(v=!1),this.at(this.nextIndex(this.pos,v),v)},vr.prototype.advance=function(v){v===void 0&&(v=!1),this.pos=this.nextIndex(this.pos,v)},vr.prototype.eat=function(v,C){return C===void 0&&(C=!1),this.current(C)===v?(this.advance(C),!0):!1},vr.prototype.eatChars=function(v,C){C===void 0&&(C=!1);for(var _=this.pos,N=0,U=v;N-1&&this.raise(p.start,"Duplicate regular expression flag"),K==="u"&&(_=!0),K==="v"&&(N=!0)}this.options.ecmaVersion>=15&&_&&N&&this.raise(p.start,"Invalid regular expression flag")},oe.validateRegExpPattern=function(p){this.regexp_pattern(p),!p.switchN&&this.options.ecmaVersion>=9&&p.groupNames.length>0&&(p.switchN=!0,this.regexp_pattern(p))},oe.regexp_pattern=function(p){p.pos=0,p.lastIntValue=0,p.lastStringValue="",p.lastAssertionIsQuantifiable=!1,p.numCapturingParens=0,p.maxBackReference=0,p.groupNames.length=0,p.backReferenceNames.length=0,this.regexp_disjunction(p),p.pos!==p.source.length&&(p.eat(41)&&p.raise("Unmatched ')'"),(p.eat(93)||p.eat(125))&&p.raise("Lone quantifier brackets")),p.maxBackReference>p.numCapturingParens&&p.raise("Invalid escape");for(var v=0,C=p.backReferenceNames;v=9&&(C=p.eat(60)),p.eat(61)||p.eat(33))return this.regexp_disjunction(p),p.eat(41)||p.raise("Unterminated group"),p.lastAssertionIsQuantifiable=!C,!0}return p.pos=v,!1},oe.regexp_eatQuantifier=function(p,v){return v===void 0&&(v=!1),this.regexp_eatQuantifierPrefix(p,v)?(p.eat(63),!0):!1},oe.regexp_eatQuantifierPrefix=function(p,v){return p.eat(42)||p.eat(43)||p.eat(63)||this.regexp_eatBracedQuantifier(p,v)},oe.regexp_eatBracedQuantifier=function(p,v){var C=p.pos;if(p.eat(123)){var _=0,N=-1;if(this.regexp_eatDecimalDigits(p)&&(_=p.lastIntValue,p.eat(44)&&this.regexp_eatDecimalDigits(p)&&(N=p.lastIntValue),p.eat(125)))return N!==-1&&N<_&&!v&&p.raise("numbers out of order in {} quantifier"),!0;p.switchU&&!v&&p.raise("Incomplete quantifier"),p.pos=C}return!1},oe.regexp_eatAtom=function(p){return this.regexp_eatPatternCharacters(p)||p.eat(46)||this.regexp_eatReverseSolidusAtomEscape(p)||this.regexp_eatCharacterClass(p)||this.regexp_eatUncapturingGroup(p)||this.regexp_eatCapturingGroup(p)},oe.regexp_eatReverseSolidusAtomEscape=function(p){var v=p.pos;if(p.eat(92)){if(this.regexp_eatAtomEscape(p))return!0;p.pos=v}return!1},oe.regexp_eatUncapturingGroup=function(p){var v=p.pos;if(p.eat(40)){if(p.eat(63)&&p.eat(58)){if(this.regexp_disjunction(p),p.eat(41))return!0;p.raise("Unterminated group")}p.pos=v}return!1},oe.regexp_eatCapturingGroup=function(p){if(p.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(p):p.current()===63&&p.raise("Invalid group"),this.regexp_disjunction(p),p.eat(41))return p.numCapturingParens+=1,!0;p.raise("Unterminated group")}return!1},oe.regexp_eatExtendedAtom=function(p){return p.eat(46)||this.regexp_eatReverseSolidusAtomEscape(p)||this.regexp_eatCharacterClass(p)||this.regexp_eatUncapturingGroup(p)||this.regexp_eatCapturingGroup(p)||this.regexp_eatInvalidBracedQuantifier(p)||this.regexp_eatExtendedPatternCharacter(p)},oe.regexp_eatInvalidBracedQuantifier=function(p){return this.regexp_eatBracedQuantifier(p,!0)&&p.raise("Nothing to repeat"),!1},oe.regexp_eatSyntaxCharacter=function(p){var v=p.current();return Hi(v)?(p.lastIntValue=v,p.advance(),!0):!1};function Hi(p){return p===36||p>=40&&p<=43||p===46||p===63||p>=91&&p<=94||p>=123&&p<=125}oe.regexp_eatPatternCharacters=function(p){for(var v=p.pos,C=0;(C=p.current())!==-1&&!Hi(C);)p.advance();return p.pos!==v},oe.regexp_eatExtendedPatternCharacter=function(p){var v=p.current();return v!==-1&&v!==36&&!(v>=40&&v<=43)&&v!==46&&v!==63&&v!==91&&v!==94&&v!==124?(p.advance(),!0):!1},oe.regexp_groupSpecifier=function(p){if(p.eat(63)){if(this.regexp_eatGroupName(p)){p.groupNames.indexOf(p.lastStringValue)!==-1&&p.raise("Duplicate capture group name"),p.groupNames.push(p.lastStringValue);return}p.raise("Invalid group")}},oe.regexp_eatGroupName=function(p){if(p.lastStringValue="",p.eat(60)){if(this.regexp_eatRegExpIdentifierName(p)&&p.eat(62))return!0;p.raise("Invalid capture group name")}return!1},oe.regexp_eatRegExpIdentifierName=function(p){if(p.lastStringValue="",this.regexp_eatRegExpIdentifierStart(p)){for(p.lastStringValue+=Y(p.lastIntValue);this.regexp_eatRegExpIdentifierPart(p);)p.lastStringValue+=Y(p.lastIntValue);return!0}return!1},oe.regexp_eatRegExpIdentifierStart=function(p){var v=p.pos,C=this.options.ecmaVersion>=11,_=p.current(C);return p.advance(C),_===92&&this.regexp_eatRegExpUnicodeEscapeSequence(p,C)&&(_=p.lastIntValue),Zn(_)?(p.lastIntValue=_,!0):(p.pos=v,!1)};function Zn(p){return d(p,!0)||p===36||p===95}oe.regexp_eatRegExpIdentifierPart=function(p){var v=p.pos,C=this.options.ecmaVersion>=11,_=p.current(C);return p.advance(C),_===92&&this.regexp_eatRegExpUnicodeEscapeSequence(p,C)&&(_=p.lastIntValue),Za(_)?(p.lastIntValue=_,!0):(p.pos=v,!1)};function Za(p){return h(p,!0)||p===36||p===95||p===8204||p===8205}oe.regexp_eatAtomEscape=function(p){return this.regexp_eatBackReference(p)||this.regexp_eatCharacterClassEscape(p)||this.regexp_eatCharacterEscape(p)||p.switchN&&this.regexp_eatKGroupName(p)?!0:(p.switchU&&(p.current()===99&&p.raise("Invalid unicode escape"),p.raise("Invalid escape")),!1)},oe.regexp_eatBackReference=function(p){var v=p.pos;if(this.regexp_eatDecimalEscape(p)){var C=p.lastIntValue;if(p.switchU)return C>p.maxBackReference&&(p.maxBackReference=C),!0;if(C<=p.numCapturingParens)return!0;p.pos=v}return!1},oe.regexp_eatKGroupName=function(p){if(p.eat(107)){if(this.regexp_eatGroupName(p))return p.backReferenceNames.push(p.lastStringValue),!0;p.raise("Invalid named reference")}return!1},oe.regexp_eatCharacterEscape=function(p){return this.regexp_eatControlEscape(p)||this.regexp_eatCControlLetter(p)||this.regexp_eatZero(p)||this.regexp_eatHexEscapeSequence(p)||this.regexp_eatRegExpUnicodeEscapeSequence(p,!1)||!p.switchU&&this.regexp_eatLegacyOctalEscapeSequence(p)||this.regexp_eatIdentityEscape(p)},oe.regexp_eatCControlLetter=function(p){var v=p.pos;if(p.eat(99)){if(this.regexp_eatControlLetter(p))return!0;p.pos=v}return!1},oe.regexp_eatZero=function(p){return p.current()===48&&!Kl(p.lookahead())?(p.lastIntValue=0,p.advance(),!0):!1},oe.regexp_eatControlEscape=function(p){var v=p.current();return v===116?(p.lastIntValue=9,p.advance(),!0):v===110?(p.lastIntValue=10,p.advance(),!0):v===118?(p.lastIntValue=11,p.advance(),!0):v===102?(p.lastIntValue=12,p.advance(),!0):v===114?(p.lastIntValue=13,p.advance(),!0):!1},oe.regexp_eatControlLetter=function(p){var v=p.current();return es(v)?(p.lastIntValue=v%32,p.advance(),!0):!1};function es(p){return p>=65&&p<=90||p>=97&&p<=122}oe.regexp_eatRegExpUnicodeEscapeSequence=function(p,v){v===void 0&&(v=!1);var C=p.pos,_=v||p.switchU;if(p.eat(117)){if(this.regexp_eatFixedHexDigits(p,4)){var N=p.lastIntValue;if(_&&N>=55296&&N<=56319){var U=p.pos;if(p.eat(92)&&p.eat(117)&&this.regexp_eatFixedHexDigits(p,4)){var K=p.lastIntValue;if(K>=56320&&K<=57343)return p.lastIntValue=(N-55296)*1024+(K-56320)+65536,!0}p.pos=U,p.lastIntValue=N}return!0}if(_&&p.eat(123)&&this.regexp_eatHexDigits(p)&&p.eat(125)&&ac(p.lastIntValue))return!0;_&&p.raise("Invalid unicode escape"),p.pos=C}return!1};function ac(p){return p>=0&&p<=1114111}oe.regexp_eatIdentityEscape=function(p){if(p.switchU)return this.regexp_eatSyntaxCharacter(p)?!0:p.eat(47)?(p.lastIntValue=47,!0):!1;var v=p.current();return v!==99&&(!p.switchN||v!==107)?(p.lastIntValue=v,p.advance(),!0):!1},oe.regexp_eatDecimalEscape=function(p){p.lastIntValue=0;var v=p.current();if(v>=49&&v<=57){do p.lastIntValue=10*p.lastIntValue+(v-48),p.advance();while((v=p.current())>=48&&v<=57);return!0}return!1};var oc=0,mn=1,Wr=2;oe.regexp_eatCharacterClassEscape=function(p){var v=p.current();if(Go(v))return p.lastIntValue=-1,p.advance(),mn;var C=!1;if(p.switchU&&this.options.ecmaVersion>=9&&((C=v===80)||v===112)){p.lastIntValue=-1,p.advance();var _;if(p.eat(123)&&(_=this.regexp_eatUnicodePropertyValueExpression(p))&&p.eat(125))return C&&_===Wr&&p.raise("Invalid property name"),_;p.raise("Invalid property name")}return oc};function Go(p){return p===100||p===68||p===115||p===83||p===119||p===87}oe.regexp_eatUnicodePropertyValueExpression=function(p){var v=p.pos;if(this.regexp_eatUnicodePropertyName(p)&&p.eat(61)){var C=p.lastStringValue;if(this.regexp_eatUnicodePropertyValue(p)){var _=p.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(p,C,_),mn}}if(p.pos=v,this.regexp_eatLoneUnicodePropertyNameOrValue(p)){var N=p.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(p,N)}return oc},oe.regexp_validateUnicodePropertyNameAndValue=function(p,v,C){Ae(p.unicodeProperties.nonBinary,v)||p.raise("Invalid property name"),p.unicodeProperties.nonBinary[v].test(C)||p.raise("Invalid property value")},oe.regexp_validateUnicodePropertyNameOrValue=function(p,v){if(p.unicodeProperties.binary.test(v))return mn;if(p.switchV&&p.unicodeProperties.binaryOfStrings.test(v))return Wr;p.raise("Invalid property name")},oe.regexp_eatUnicodePropertyName=function(p){var v=0;for(p.lastStringValue="";ts(v=p.current());)p.lastStringValue+=Y(v),p.advance();return p.lastStringValue!==""};function ts(p){return es(p)||p===95}oe.regexp_eatUnicodePropertyValue=function(p){var v=0;for(p.lastStringValue="";zo(v=p.current());)p.lastStringValue+=Y(v),p.advance();return p.lastStringValue!==""};function zo(p){return ts(p)||Kl(p)}oe.regexp_eatLoneUnicodePropertyNameOrValue=function(p){return this.regexp_eatUnicodePropertyValue(p)},oe.regexp_eatCharacterClass=function(p){if(p.eat(91)){var v=p.eat(94),C=this.regexp_classContents(p);return p.eat(93)||p.raise("Unterminated character class"),v&&C===Wr&&p.raise("Negated character class may contain strings"),!0}return!1},oe.regexp_classContents=function(p){return p.current()===93?mn:p.switchV?this.regexp_classSetExpression(p):(this.regexp_nonEmptyClassRanges(p),mn)},oe.regexp_nonEmptyClassRanges=function(p){for(;this.regexp_eatClassAtom(p);){var v=p.lastIntValue;if(p.eat(45)&&this.regexp_eatClassAtom(p)){var C=p.lastIntValue;p.switchU&&(v===-1||C===-1)&&p.raise("Invalid character class"),v!==-1&&C!==-1&&v>C&&p.raise("Range out of order in character class")}}},oe.regexp_eatClassAtom=function(p){var v=p.pos;if(p.eat(92)){if(this.regexp_eatClassEscape(p))return!0;if(p.switchU){var C=p.current();(C===99||Wo(C))&&p.raise("Invalid class escape"),p.raise("Invalid escape")}p.pos=v}var _=p.current();return _!==93?(p.lastIntValue=_,p.advance(),!0):!1},oe.regexp_eatClassEscape=function(p){var v=p.pos;if(p.eat(98))return p.lastIntValue=8,!0;if(p.switchU&&p.eat(45))return p.lastIntValue=45,!0;if(!p.switchU&&p.eat(99)){if(this.regexp_eatClassControlLetter(p))return!0;p.pos=v}return this.regexp_eatCharacterClassEscape(p)||this.regexp_eatCharacterEscape(p)},oe.regexp_classSetExpression=function(p){var v=mn,C;if(!this.regexp_eatClassSetRange(p))if(C=this.regexp_eatClassSetOperand(p)){C===Wr&&(v=Wr);for(var _=p.pos;p.eatChars([38,38]);){if(p.current()!==38&&(C=this.regexp_eatClassSetOperand(p))){C!==Wr&&(v=mn);continue}p.raise("Invalid character in character class")}if(_!==p.pos)return v;for(;p.eatChars([45,45]);)this.regexp_eatClassSetOperand(p)||p.raise("Invalid character in character class");if(_!==p.pos)return v}else p.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(p)){if(C=this.regexp_eatClassSetOperand(p),!C)return v;C===Wr&&(v=Wr)}},oe.regexp_eatClassSetRange=function(p){var v=p.pos;if(this.regexp_eatClassSetCharacter(p)){var C=p.lastIntValue;if(p.eat(45)&&this.regexp_eatClassSetCharacter(p)){var _=p.lastIntValue;return C!==-1&&_!==-1&&C>_&&p.raise("Range out of order in character class"),!0}p.pos=v}return!1},oe.regexp_eatClassSetOperand=function(p){return this.regexp_eatClassSetCharacter(p)?mn:this.regexp_eatClassStringDisjunction(p)||this.regexp_eatNestedClass(p)},oe.regexp_eatNestedClass=function(p){var v=p.pos;if(p.eat(91)){var C=p.eat(94),_=this.regexp_classContents(p);if(p.eat(93))return C&&_===Wr&&p.raise("Negated character class may contain strings"),_;p.pos=v}if(p.eat(92)){var N=this.regexp_eatCharacterClassEscape(p);if(N)return N;p.pos=v}return null},oe.regexp_eatClassStringDisjunction=function(p){var v=p.pos;if(p.eatChars([92,113])){if(p.eat(123)){var C=this.regexp_classStringDisjunctionContents(p);if(p.eat(125))return C}else p.raise("Invalid escape");p.pos=v}return null},oe.regexp_classStringDisjunctionContents=function(p){for(var v=this.regexp_classString(p);p.eat(124);)this.regexp_classString(p)===Wr&&(v=Wr);return v},oe.regexp_classString=function(p){for(var v=0;this.regexp_eatClassSetCharacter(p);)v++;return v===1?mn:Wr},oe.regexp_eatClassSetCharacter=function(p){var v=p.pos;if(p.eat(92))return this.regexp_eatCharacterEscape(p)||this.regexp_eatClassSetReservedPunctuator(p)?!0:p.eat(98)?(p.lastIntValue=8,!0):(p.pos=v,!1);var C=p.current();return C<0||C===p.lookahead()&&Gd(C)||eo(C)?!1:(p.advance(),p.lastIntValue=C,!0)};function Gd(p){return p===33||p>=35&&p<=38||p>=42&&p<=44||p===46||p>=58&&p<=64||p===94||p===96||p===126}function eo(p){return p===40||p===41||p===45||p===47||p>=91&&p<=93||p>=123&&p<=125}oe.regexp_eatClassSetReservedPunctuator=function(p){var v=p.current();return bx(v)?(p.lastIntValue=v,p.advance(),!0):!1};function bx(p){return p===33||p===35||p===37||p===38||p===44||p===45||p>=58&&p<=62||p===64||p===96||p===126}oe.regexp_eatClassControlLetter=function(p){var v=p.current();return Kl(v)||v===95?(p.lastIntValue=v%32,p.advance(),!0):!1},oe.regexp_eatHexEscapeSequence=function(p){var v=p.pos;if(p.eat(120)){if(this.regexp_eatFixedHexDigits(p,2))return!0;p.switchU&&p.raise("Invalid escape"),p.pos=v}return!1},oe.regexp_eatDecimalDigits=function(p){var v=p.pos,C=0;for(p.lastIntValue=0;Kl(C=p.current());)p.lastIntValue=10*p.lastIntValue+(C-48),p.advance();return p.pos!==v};function Kl(p){return p>=48&&p<=57}oe.regexp_eatHexDigits=function(p){var v=p.pos,C=0;for(p.lastIntValue=0;zd(C=p.current());)p.lastIntValue=16*p.lastIntValue+Ko(C),p.advance();return p.pos!==v};function zd(p){return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Ko(p){return p>=65&&p<=70?10+(p-65):p>=97&&p<=102?10+(p-97):p-48}oe.regexp_eatLegacyOctalEscapeSequence=function(p){if(this.regexp_eatOctalDigit(p)){var v=p.lastIntValue;if(this.regexp_eatOctalDigit(p)){var C=p.lastIntValue;v<=3&&this.regexp_eatOctalDigit(p)?p.lastIntValue=v*64+C*8+p.lastIntValue:p.lastIntValue=v*8+C}else p.lastIntValue=v;return!0}return!1},oe.regexp_eatOctalDigit=function(p){var v=p.current();return Wo(v)?(p.lastIntValue=v-48,p.advance(),!0):(p.lastIntValue=0,!1)};function Wo(p){return p>=48&&p<=55}oe.regexp_eatFixedHexDigits=function(p,v){var C=p.pos;p.lastIntValue=0;for(var _=0;_=this.input.length)return this.finishToken(x.eof);if(p.override)return p.override(this);this.readToken(this.fullCharCodeAtPos())},Je.readToken=function(p){return d(p,this.options.ecmaVersion>=6)||p===92?this.readWord():this.getTokenFromCode(p)},Je.fullCharCodeAtPos=function(){var p=this.input.charCodeAt(this.pos);if(p<=55295||p>=56320)return p;var v=this.input.charCodeAt(this.pos+1);return v<=56319||v>=57344?p:(p<<10)+v-56613888},Je.skipBlockComment=function(){var p=this.options.onComment&&this.curPosition(),v=this.pos,C=this.input.indexOf("*/",this.pos+=2);if(C===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=C+2,this.options.locations)for(var _=void 0,N=v;(_=j(this.input,N,this.pos))>-1;)++this.curLine,N=this.lineStart=_;this.options.onComment&&this.options.onComment(!0,this.input.slice(v+2,C),v,this.pos,p,this.curPosition())},Je.skipLineComment=function(p){for(var v=this.pos,C=this.options.onComment&&this.curPosition(),_=this.input.charCodeAt(this.pos+=p);this.pos8&&p<14||p>=5760&&G.test(String.fromCharCode(p)))++this.pos;else break e}}},Je.finishToken=function(p,v){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var C=this.type;this.type=p,this.value=v,this.updateContext(C)},Je.readToken_dot=function(){var p=this.input.charCodeAt(this.pos+1);if(p>=48&&p<=57)return this.readNumber(!0);var v=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&p===46&&v===46?(this.pos+=3,this.finishToken(x.ellipsis)):(++this.pos,this.finishToken(x.dot))},Je.readToken_slash=function(){var p=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):p===61?this.finishOp(x.assign,2):this.finishOp(x.slash,1)},Je.readToken_mult_modulo_exp=function(p){var v=this.input.charCodeAt(this.pos+1),C=1,_=p===42?x.star:x.modulo;return this.options.ecmaVersion>=7&&p===42&&v===42&&(++C,_=x.starstar,v=this.input.charCodeAt(this.pos+2)),v===61?this.finishOp(x.assign,C+1):this.finishOp(_,C)},Je.readToken_pipe_amp=function(p){var v=this.input.charCodeAt(this.pos+1);if(v===p){if(this.options.ecmaVersion>=12){var C=this.input.charCodeAt(this.pos+2);if(C===61)return this.finishOp(x.assign,3)}return this.finishOp(p===124?x.logicalOR:x.logicalAND,2)}return v===61?this.finishOp(x.assign,2):this.finishOp(p===124?x.bitwiseOR:x.bitwiseAND,1)},Je.readToken_caret=function(){var p=this.input.charCodeAt(this.pos+1);return p===61?this.finishOp(x.assign,2):this.finishOp(x.bitwiseXOR,1)},Je.readToken_plus_min=function(p){var v=this.input.charCodeAt(this.pos+1);return v===p?v===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||k.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(x.incDec,2):v===61?this.finishOp(x.assign,2):this.finishOp(x.plusMin,1)},Je.readToken_lt_gt=function(p){var v=this.input.charCodeAt(this.pos+1),C=1;return v===p?(C=p===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+C)===61?this.finishOp(x.assign,C+1):this.finishOp(x.bitShift,C)):v===33&&p===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(v===61&&(C=2),this.finishOp(x.relational,C))},Je.readToken_eq_excl=function(p){var v=this.input.charCodeAt(this.pos+1);return v===61?this.finishOp(x.equality,this.input.charCodeAt(this.pos+2)===61?3:2):p===61&&v===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(x.arrow)):this.finishOp(p===61?x.eq:x.prefix,1)},Je.readToken_question=function(){var p=this.options.ecmaVersion;if(p>=11){var v=this.input.charCodeAt(this.pos+1);if(v===46){var C=this.input.charCodeAt(this.pos+2);if(C<48||C>57)return this.finishOp(x.questionDot,2)}if(v===63){if(p>=12){var _=this.input.charCodeAt(this.pos+2);if(_===61)return this.finishOp(x.assign,3)}return this.finishOp(x.coalesce,2)}}return this.finishOp(x.question,1)},Je.readToken_numberSign=function(){var p=this.options.ecmaVersion,v=35;if(p>=13&&(++this.pos,v=this.fullCharCodeAtPos(),d(v,!0)||v===92))return this.finishToken(x.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Y(v)+"'")},Je.getTokenFromCode=function(p){switch(p){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(x.parenL);case 41:return++this.pos,this.finishToken(x.parenR);case 59:return++this.pos,this.finishToken(x.semi);case 44:return++this.pos,this.finishToken(x.comma);case 91:return++this.pos,this.finishToken(x.bracketL);case 93:return++this.pos,this.finishToken(x.bracketR);case 123:return++this.pos,this.finishToken(x.braceL);case 125:return++this.pos,this.finishToken(x.braceR);case 58:return++this.pos,this.finishToken(x.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(x.backQuote);case 48:var v=this.input.charCodeAt(this.pos+1);if(v===120||v===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(v===111||v===79)return this.readRadixNumber(8);if(v===98||v===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(p);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(p);case 124:case 38:return this.readToken_pipe_amp(p);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(p);case 60:case 62:return this.readToken_lt_gt(p);case 61:case 33:return this.readToken_eq_excl(p);case 63:return this.readToken_question();case 126:return this.finishOp(x.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Y(p)+"'")},Je.finishOp=function(p,v){var C=this.input.slice(this.pos,this.pos+v);return this.pos+=v,this.finishToken(p,C)},Je.readRegexp=function(){for(var p,v,C=this.pos;;){this.pos>=this.input.length&&this.raise(C,"Unterminated regular expression");var _=this.input.charAt(this.pos);if(k.test(_)&&this.raise(C,"Unterminated regular expression"),p)p=!1;else{if(_==="[")v=!0;else if(_==="]"&&v)v=!1;else if(_==="/"&&!v)break;p=_==="\\"}++this.pos}var N=this.input.slice(C,this.pos);++this.pos;var U=this.pos,K=this.readWord1();this.containsEsc&&this.unexpected(U);var le=this.regexpState||(this.regexpState=new vr(this));le.reset(C,N,K),this.validateRegExpFlags(le),this.validateRegExpPattern(le);var de=null;try{de=new RegExp(N,K)}catch{}return this.finishToken(x.regexp,{pattern:N,flags:K,value:de})},Je.readInt=function(p,v,C){for(var _=this.options.ecmaVersion>=12&&v===void 0,N=C&&this.input.charCodeAt(this.pos)===48,U=this.pos,K=0,le=0,de=0,Ze=v??1/0;de=97?Vr=ut-97+10:ut>=65?Vr=ut-65+10:ut>=48&&ut<=57?Vr=ut-48:Vr=1/0,Vr>=p)break;le=ut,K=K*p+Vr}return _&&le===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===U||v!=null&&this.pos-U!==v?null:K};function xx(p,v){return v?parseInt(p,8):parseFloat(p.replace(/_/g,""))}function Kd(p){return typeof BigInt!="function"?null:BigInt(p.replace(/_/g,""))}Je.readRadixNumber=function(p){var v=this.pos;this.pos+=2;var C=this.readInt(p);return C==null&&this.raise(this.start+2,"Expected number in radix "+p),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(C=Kd(this.input.slice(v,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,C)},Je.readNumber=function(p){var v=this.pos;!p&&this.readInt(10,void 0,!0)===null&&this.raise(v,"Invalid number");var C=this.pos-v>=2&&this.input.charCodeAt(v)===48;C&&this.strict&&this.raise(v,"Invalid number");var _=this.input.charCodeAt(this.pos);if(!C&&!p&&this.options.ecmaVersion>=11&&_===110){var N=Kd(this.input.slice(v,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,N)}C&&/[89]/.test(this.input.slice(v,this.pos))&&(C=!1),_===46&&!C&&(++this.pos,this.readInt(10),_=this.input.charCodeAt(this.pos)),(_===69||_===101)&&!C&&(_=this.input.charCodeAt(++this.pos),(_===43||_===45)&&++this.pos,this.readInt(10)===null&&this.raise(v,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var U=xx(this.input.slice(v,this.pos),C);return this.finishToken(x.num,U)},Je.readCodePoint=function(){var p=this.input.charCodeAt(this.pos),v;if(p===123){this.options.ecmaVersion<6&&this.unexpected();var C=++this.pos;v=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,v>1114111&&this.invalidStringToken(C,"Code point out of bounds")}else v=this.readHexChar(4);return v},Je.readString=function(p){for(var v="",C=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var _=this.input.charCodeAt(this.pos);if(_===p)break;_===92?(v+=this.input.slice(C,this.pos),v+=this.readEscapedChar(!1),C=this.pos):_===8232||_===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(L(_)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return v+=this.input.slice(C,this.pos++),this.finishToken(x.string,v)};var Cg={};Je.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(p){if(p===Cg)this.readInvalidTemplateToken();else throw p}this.inTemplateElement=!1},Je.invalidStringToken=function(p,v){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Cg;this.raise(p,v)},Je.readTmplToken=function(){for(var p="",v=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var C=this.input.charCodeAt(this.pos);if(C===96||C===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===x.template||this.type===x.invalidTemplate)?C===36?(this.pos+=2,this.finishToken(x.dollarBraceL)):(++this.pos,this.finishToken(x.backQuote)):(p+=this.input.slice(v,this.pos),this.finishToken(x.template,p));if(C===92)p+=this.input.slice(v,this.pos),p+=this.readEscapedChar(!0),v=this.pos;else if(L(C)){switch(p+=this.input.slice(v,this.pos),++this.pos,C){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:p+=` +`;break;default:p+=String.fromCharCode(C);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),v=this.pos}else++this.pos}},Je.readInvalidTemplateToken=function(){for(;this.pos=48&&v<=55){var _=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],N=parseInt(_,8);return N>255&&(_=_.slice(0,-1),N=parseInt(_,8)),this.pos+=_.length-1,v=this.input.charCodeAt(this.pos),(_!=="0"||v===56||v===57)&&(this.strict||p)&&this.invalidStringToken(this.pos-1-_.length,p?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(N)}return L(v)?"":String.fromCharCode(v)}},Je.readHexChar=function(p){var v=this.pos,C=this.readInt(16,p);return C===null&&this.invalidStringToken(v,"Bad character escape sequence"),C},Je.readWord1=function(){this.containsEsc=!1;for(var p="",v=!0,C=this.pos,_=this.options.ecmaVersion>=6;this.pos{s$.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var c$=E((Yje,w_)=>{"use strict";var Vye=a$(),Hye=/^[\da-fA-F]+$/,Gye=/^\d+$/,o$=new WeakMap;function u$(t){t=t.Parser.acorn||t;let e=o$.get(t);if(!e){let r=t.tokTypes,i=t.TokContext,n=t.TokenType,s=new i("...",!0,!0),u={tc_oTag:s,tc_cTag:a,tc_expr:o},c={jsxName:new n("jsxName"),jsxText:new n("jsxText",{beforeExpr:!0}),jsxTagStart:new n("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new n("jsxTagEnd")};c.jsxTagStart.updateContext=function(){this.context.push(o),this.context.push(s),this.exprAllowed=!1},c.jsxTagEnd.updateContext=function(l){let f=this.context.pop();f===s&&l===r.slash||f===a?(this.context.pop(),this.exprAllowed=this.curContext()===o):this.exprAllowed=!0},e={tokContexts:u,tokTypes:c},o$.set(t,e)}return e}function lm(t){if(!t)return t;if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return lm(t.object)+"."+lm(t.property)}w_.exports=function(t){return t=t||{},function(e){return zye({allowNamespaces:t.allowNamespaces!==!1,allowNamespacedObjects:!!t.allowNamespacedObjects},e)}};Object.defineProperty(w_.exports,"tokTypes",{get:function(){return u$(jy()).tokTypes},configurable:!0,enumerable:!0});function zye(t,e){let r=e.acorn||jy(),i=u$(r),n=r.tokTypes,s=i.tokTypes,a=r.tokContexts,o=i.tokContexts.tc_oTag,u=i.tokContexts.tc_cTag,c=i.tokContexts.tc_expr,l=r.isNewLine,f=r.isIdentifierStart,d=r.isIdentifierChar;return class extends e{static get acornJsx(){return i}jsx_readToken(){let h="",m=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let g=this.input.charCodeAt(this.pos);switch(g){case 60:case 123:return this.pos===this.start?g===60&&this.exprAllowed?(++this.pos,this.finishToken(s.jsxTagStart)):this.getTokenFromCode(g):(h+=this.input.slice(m,this.pos),this.finishToken(s.jsxText,h));case 38:h+=this.input.slice(m,this.pos),h+=this.jsx_readEntity(),m=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(g===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:l(g)?(h+=this.input.slice(m,this.pos),h+=this.jsx_readNewLine(!0),m=this.pos):++this.pos}}}jsx_readNewLine(h){let m=this.input.charCodeAt(this.pos),g;return++this.pos,m===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,g=h?` +`:`\r +`):g=String.fromCharCode(m),this.options.locations&&(++this.curLine,this.lineStart=this.pos),g}jsx_readString(h){let m="",g=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let y=this.input.charCodeAt(this.pos);if(y===h)break;y===38?(m+=this.input.slice(g,this.pos),m+=this.jsx_readEntity(),g=this.pos):l(y)?(m+=this.input.slice(g,this.pos),m+=this.jsx_readNewLine(!1),g=this.pos):++this.pos}return m+=this.input.slice(g,this.pos++),this.finishToken(n.string,m)}jsx_readEntity(){let h="",m=0,g,y=this.input[this.pos];y!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let b=++this.pos;for(;this.pos")}let S=b.name?"Element":"Fragment";return g["opening"+S]=b,g["closing"+S]=w,g.children=y,this.type===n.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(g,"JSX"+S)}jsx_parseText(){let h=this.parseLiteral(this.value);return h.type="JSXText",h}jsx_parseElement(){let h=this.start,m=this.startLoc;return this.next(),this.jsx_parseElementAt(h,m)}parseExprAtom(h){return this.type===s.jsxText?this.jsx_parseText():this.type===s.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(h)}readToken(h){let m=this.curContext();if(m===c)return this.jsx_readToken();if(m===o||m===u){if(f(h))return this.jsx_readWord();if(h==62)return++this.pos,this.finishToken(s.jsxTagEnd);if((h===34||h===39)&&m==o)return this.jsx_readString(h)}return h===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(s.jsxTagStart)):super.readToken(h)}updateContext(h){if(this.type==n.braceL){var m=this.curContext();m==o?this.context.push(a.b_expr):m==c?this.context.push(a.b_tmpl):super.updateContext(h),this.exprAllowed=!0}else if(this.type===n.slash&&h===s.jsxTagStart)this.context.length-=2,this.context.push(u),this.exprAllowed=!1;else return super.updateContext(h)}}}});var l$=E(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var pm={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},Kye=Object.keys(pm);for(let t of Kye)Object.freeze(pm[t]);Object.freeze(pm);var Wye=new Set(["parent","leadingComments","trailingComments"]);function Yye(t){return!Wye.has(t)&&t[0]!=="_"}function Xye(t){return Object.keys(t).filter(Yye)}function Qye(t){let e=Object.assign({},pm);for(let r of Object.keys(t))if(Object.prototype.hasOwnProperty.call(e,r)){let i=new Set(t[r]);for(let n of e[r])i.add(n);e[r]=Object.freeze(Array.from(i))}else e[r]=Object.freeze(Array.from(t[r]));return Object.freeze(e)}fm.KEYS=pm;fm.getKeys=Xye;fm.unionWith=Qye});var __=E(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var Jye=jy(),Zye=c$(),ebe=l$();function tbe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}function d$(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if(r!=="default"){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var p$=d$(Jye),rbe=tbe(Zye),ibe=d$(ebe),Ji={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function nbe(t,e){let r=t[0],i=t[t.length-1],n={type:Ji.Template,value:e.slice(r.start,i.end)};return r.loc&&(n.loc={start:r.loc.start,end:i.loc.end}),r.range&&(n.start=r.range[0],n.end=i.range[1],n.range=[n.start,n.end]),n}function C_(t,e){this._acornTokTypes=t,this._tokens=[],this._curlyBrace=null,this._code=e}C_.prototype={constructor:C_,translate(t,e){let r=t.type,i=this._acornTokTypes;if(r===i.name)t.type=Ji.Identifier,t.value==="static"&&(t.type=Ji.Keyword),e.ecmaVersion>5&&(t.value==="yield"||t.value==="let")&&(t.type=Ji.Keyword);else if(r===i.privateId)t.type=Ji.PrivateIdentifier;else if(r===i.semi||r===i.comma||r===i.parenL||r===i.parenR||r===i.braceL||r===i.braceR||r===i.dot||r===i.bracketL||r===i.colon||r===i.question||r===i.bracketR||r===i.ellipsis||r===i.arrow||r===i.jsxTagStart||r===i.incDec||r===i.starstar||r===i.jsxTagEnd||r===i.prefix||r===i.questionDot||r.binop&&!r.keyword||r.isAssign)t.type=Ji.Punctuator,t.value=this._code.slice(t.start,t.end);else if(r===i.jsxName)t.type=Ji.JSXIdentifier;else if(r.label==="jsxText"||r===i.jsxAttrValueToken)t.type=Ji.JSXText;else if(r.keyword)r.keyword==="true"||r.keyword==="false"?t.type=Ji.Boolean:r.keyword==="null"?t.type=Ji.Null:t.type=Ji.Keyword;else if(r===i.num)t.type=Ji.Numeric,t.value=this._code.slice(t.start,t.end);else if(r===i.string)e.jsxAttrValueToken?(e.jsxAttrValueToken=!1,t.type=Ji.JSXText):t.type=Ji.String,t.value=this._code.slice(t.start,t.end);else if(r===i.regexp){t.type=Ji.RegularExpression;let n=t.value;t.regex={flags:n.flags,pattern:n.pattern},t.value=`/${n.pattern}/${n.flags}`}return t},onToken(t,e){let r=this._acornTokTypes,i=e.tokens,n=this._tokens,s=()=>{i.push(nbe(this._tokens,this._code)),this._tokens=[]};if(t.type===r.eof){this._curlyBrace&&i.push(this.translate(this._curlyBrace,e));return}if(t.type===r.backQuote){this._curlyBrace&&(i.push(this.translate(this._curlyBrace,e)),this._curlyBrace=null),n.push(t),n.length>1&&s();return}if(t.type===r.dollarBraceL){n.push(t),s();return}if(t.type===r.braceR){this._curlyBrace&&i.push(this.translate(this._curlyBrace,e)),this._curlyBrace=t;return}if(t.type===r.template||t.type===r.invalidTemplate){this._curlyBrace&&(n.push(this._curlyBrace),this._curlyBrace=null),n.push(t);return}this._curlyBrace&&(i.push(this.translate(this._curlyBrace,e)),this._curlyBrace=null),i.push(this.translate(t,e))}};var Uy=[3,5,6,7,8,9,10,11,12,13,14,15];function h$(){return Uy[Uy.length-1]}function sbe(){return[...Uy]}function abe(t=5){let e=t==="latest"?h$():t;if(typeof e!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof t} instead.`);if(e>=2015&&(e-=2009),!Uy.includes(e))throw new Error("Invalid ecmaVersion.");return e}function obe(t="script"){if(t==="script"||t==="module")return t;if(t==="commonjs")return"script";throw new Error("Invalid sourceType.")}function ube(t){let e=abe(t.ecmaVersion),r=obe(t.sourceType),i=t.range===!0,n=t.loc===!0;if(e!==3&&t.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof t.allowReserved<"u"&&typeof t.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let s=e===3?t.allowReserved||"never":!1,a=t.ecmaFeatures||{},o=t.sourceType==="commonjs"||!!a.globalReturn;if(r==="module"&&e<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},t,{ecmaVersion:e,sourceType:r,ranges:i,locations:n,allowReserved:s,allowReturnOutsideFunction:o})}var zc=Symbol("espree's internal state"),E_=Symbol("espree's esprimaFinishNode");function cbe(t,e,r,i,n,s,a){let o;t?o="Block":a.slice(r,r+2)==="#!"?o="Hashbang":o="Line";let u={type:o,value:e};return typeof r=="number"&&(u.start=r,u.end=i,u.range=[r,i]),typeof n=="object"&&(u.loc={start:n,end:s}),u}var f$=()=>t=>{let e=Object.assign({},t.acorn.tokTypes);return t.acornJsx&&Object.assign(e,t.acornJsx.tokTypes),class extends t{constructor(i,n){(typeof i!="object"||i===null)&&(i={}),typeof n!="string"&&!(n instanceof String)&&(n=String(n));let s=i.sourceType,a=ube(i),o=a.ecmaFeatures||{},u=a.tokens===!0?new C_(e,n):null,c={originalSourceType:s||a.sourceType,tokens:u?[]:null,comments:a.comment===!0?[]:null,impliedStrict:o.impliedStrict===!0&&a.ecmaVersion>=5,ecmaVersion:a.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:a.ecmaVersion,sourceType:a.sourceType,ranges:a.ranges,locations:a.locations,allowReserved:a.allowReserved,allowReturnOutsideFunction:a.allowReturnOutsideFunction,onToken(l){u&&u.onToken(l,c),l.type!==e.eof&&(c.lastToken=l)},onComment(l,f,d,h,m,g){if(c.comments){let y=cbe(l,f,d,h,m,g,n);c.comments.push(y)}}},n),this[zc]=c}tokenize(){do this.next();while(this.type!==e.eof);this.next();let i=this[zc],n=i.tokens;return i.comments&&(n.comments=i.comments),n}finishNode(...i){let n=super.finishNode(...i);return this[E_](n)}finishNodeAt(...i){let n=super.finishNodeAt(...i);return this[E_](n)}parse(){let i=this[zc],n=super.parse();if(n.sourceType=i.originalSourceType,i.comments&&(n.comments=i.comments),i.tokens&&(n.tokens=i.tokens),n.body.length){let[s]=n.body;n.range&&(n.range[0]=s.range[0]),n.loc&&(n.loc.start=s.loc.start),n.start=s.start}return i.lastToken&&(n.range&&(n.range[1]=i.lastToken.range[1]),n.loc&&(n.loc.end=i.lastToken.loc.end),n.end=i.lastToken.end),this[zc].templateElements.forEach(s=>{let o=s.tail?1:2;s.start+=-1,s.end+=o,s.range&&(s.range[0]+=-1,s.range[1]+=o),s.loc&&(s.loc.start.column+=-1,s.loc.end.column+=o)}),n}parseTopLevel(i){return this[zc].impliedStrict&&(this.strict=!0),super.parseTopLevel(i)}raise(i,n){let s=t.acorn.getLineInfo(this.input,i),a=new SyntaxError(n);throw a.index=i,a.lineNumber=s.line,a.column=s.column+1,a}raiseRecoverable(i,n){this.raise(i,n)}unexpected(i){let n="Unexpected token";if(i!=null){if(this.pos=i,this.options.locations)for(;this.posthis.start&&(n+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,n)}jsx_readString(i){let n=super.jsx_readString(i);return this.type===e.string&&(this[zc].jsxAttrValueToken=!0),n}[E_](i){return i.type==="TemplateElement"&&this[zc].templateElements.push(i),i.type.includes("Function")&&!i.generator&&(i.generator=!1),i}}},lbe="9.6.1",m$={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=p$.Parser.extend(f$())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=p$.Parser.extend(rbe.default(),f$())),this._jsx},get(t){return!!(t&&t.ecmaFeatures&&t.ecmaFeatures.jsx)?this.jsx:this.regular}};function pbe(t,e){let r=m$.get(e);return(!e||e.tokens!==!0)&&(e=Object.assign({},e,{tokens:!0})),new r(e,t).tokenize()}function fbe(t,e){let r=m$.get(e);return new r(e,t).parse()}var dbe=lbe,hbe="espree",S_=function(){return ibe.KEYS}(),mbe=function(){let t,e={};typeof Object.create=="function"&&(e=Object.create(null));for(t in S_)Object.hasOwnProperty.call(S_,t)&&(e[t]=t);return typeof Object.freeze=="function"&&Object.freeze(e),e}(),gbe=h$(),vbe=sbe();Ca.Syntax=mbe;Ca.VisitorKeys=S_;Ca.latestEcmaVersion=gbe;Ca.name=hbe;Ca.parse=fbe;Ca.supportedEcmaVersions=vbe;Ca.tokenize=pbe;Ca.version=dbe});var A_=E((Vy,g$)=>{(function(t,e){typeof Vy=="object"&&typeof g$<"u"?e(Vy):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e((t.acorn=t.acorn||{},t.acorn.walk={})))})(Vy,function(t){"use strict";function e(y,b,w,S,x){w||(w=g),function k(R,L,j){var G=j||R.type;w[G](R,L,k),b[G]&&b[G](R,L)}(y,S,x)}function r(y,b,w,S,x){var k=[];w||(w=g),function R(L,j,G){var J=G||L.type,q=L!==k[k.length-1];q&&k.push(L),w[J](L,j,R),b[J]&&b[J](L,j||k,k),q&&k.pop()}(y,S,x)}function i(y,b,w,S,x){var k=w?d(w,S||void 0):S;(function R(L,j,G){k[G||L.type](L,j,R)})(y,b,x)}function n(y){return typeof y=="string"?function(b){return b===y}:y||function(){return!0}}var s=function(b,w){this.node=b,this.state=w};function a(y,b,w,S,x){w||(w=g);var k;(function R(L,j,G){var J=G||L.type;w[J](L,j,R),k!==L&&(b(L,j,J),k=L)})(y,S,x)}function o(y,b,w,S){w||(w=g);var x=[],k;(function R(L,j,G){var J=G||L.type,q=L!==x[x.length-1];q&&x.push(L),w[J](L,j,R),k!==L&&(b(L,j||x,x,J),k=L),q&&x.pop()})(y,S)}function u(y,b,w,S,x,k){x||(x=g),S=n(S);try{(function R(L,j,G){var J=G||L.type;if((b==null||L.start<=b)&&(w==null||L.end>=w)&&x[J](L,j,R),(b==null||L.start===b)&&(w==null||L.end===w)&&S(J,L))throw new s(L,j)})(y,k)}catch(R){if(R instanceof s)return R;throw R}}function c(y,b,w,S,x){w=n(w),S||(S=g);try{(function k(R,L,j){var G=j||R.type;if(!(R.start>b||R.end=b&&w(G,R))throw new s(R,L);S[G](R,L,k)}})(y,x)}catch(k){if(k instanceof s)return k;throw k}}function f(y,b,w,S,x){w=n(w),S||(S=g);var k;return function R(L,j,G){if(!(L.start>b)){var J=G||L.type;L.end<=b&&(!k||k.node.end{var ybe="2.0.0",bbe=Number.MAX_SAFE_INTEGER||9007199254740991,xbe=16,wbe=256-6,Ebe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];v$.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:xbe,MAX_SAFE_BUILD_LENGTH:wbe,MAX_SAFE_INTEGER:bbe,RELEASE_TYPES:Ebe,SEMVER_SPEC_VERSION:ybe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var hm=E((t7e,y$)=>{var Cbe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};y$.exports=Cbe});var vf=E((ho,b$)=>{var{MAX_SAFE_COMPONENT_LENGTH:T_,MAX_SAFE_BUILD_LENGTH:Sbe,MAX_LENGTH:_be}=dm(),Abe=hm();ho=b$.exports={};var Tbe=ho.re=[],Dbe=ho.safeRe=[],Se=ho.src=[],_e=ho.t={},kbe=0,D_="[a-zA-Z0-9-]",Ibe=[["\\s",1],["\\d",_be],[D_,Sbe]],Nbe=t=>{for(let[e,r]of Ibe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},nt=(t,e,r)=>{let i=Nbe(e),n=kbe++;Abe(t,n,e),_e[t]=n,Se[n]=e,Tbe[n]=new RegExp(e,r?"g":void 0),Dbe[n]=new RegExp(i,r?"g":void 0)};nt("NUMERICIDENTIFIER","0|[1-9]\\d*");nt("NUMERICIDENTIFIERLOOSE","\\d+");nt("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${D_}*`);nt("MAINVERSION",`(${Se[_e.NUMERICIDENTIFIER]})\\.(${Se[_e.NUMERICIDENTIFIER]})\\.(${Se[_e.NUMERICIDENTIFIER]})`);nt("MAINVERSIONLOOSE",`(${Se[_e.NUMERICIDENTIFIERLOOSE]})\\.(${Se[_e.NUMERICIDENTIFIERLOOSE]})\\.(${Se[_e.NUMERICIDENTIFIERLOOSE]})`);nt("PRERELEASEIDENTIFIER",`(?:${Se[_e.NUMERICIDENTIFIER]}|${Se[_e.NONNUMERICIDENTIFIER]})`);nt("PRERELEASEIDENTIFIERLOOSE",`(?:${Se[_e.NUMERICIDENTIFIERLOOSE]}|${Se[_e.NONNUMERICIDENTIFIER]})`);nt("PRERELEASE",`(?:-(${Se[_e.PRERELEASEIDENTIFIER]}(?:\\.${Se[_e.PRERELEASEIDENTIFIER]})*))`);nt("PRERELEASELOOSE",`(?:-?(${Se[_e.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Se[_e.PRERELEASEIDENTIFIERLOOSE]})*))`);nt("BUILDIDENTIFIER",`${D_}+`);nt("BUILD",`(?:\\+(${Se[_e.BUILDIDENTIFIER]}(?:\\.${Se[_e.BUILDIDENTIFIER]})*))`);nt("FULLPLAIN",`v?${Se[_e.MAINVERSION]}${Se[_e.PRERELEASE]}?${Se[_e.BUILD]}?`);nt("FULL",`^${Se[_e.FULLPLAIN]}$`);nt("LOOSEPLAIN",`[v=\\s]*${Se[_e.MAINVERSIONLOOSE]}${Se[_e.PRERELEASELOOSE]}?${Se[_e.BUILD]}?`);nt("LOOSE",`^${Se[_e.LOOSEPLAIN]}$`);nt("GTLT","((?:<|>)?=?)");nt("XRANGEIDENTIFIERLOOSE",`${Se[_e.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);nt("XRANGEIDENTIFIER",`${Se[_e.NUMERICIDENTIFIER]}|x|X|\\*`);nt("XRANGEPLAIN",`[v=\\s]*(${Se[_e.XRANGEIDENTIFIER]})(?:\\.(${Se[_e.XRANGEIDENTIFIER]})(?:\\.(${Se[_e.XRANGEIDENTIFIER]})(?:${Se[_e.PRERELEASE]})?${Se[_e.BUILD]}?)?)?`);nt("XRANGEPLAINLOOSE",`[v=\\s]*(${Se[_e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Se[_e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Se[_e.XRANGEIDENTIFIERLOOSE]})(?:${Se[_e.PRERELEASELOOSE]})?${Se[_e.BUILD]}?)?)?`);nt("XRANGE",`^${Se[_e.GTLT]}\\s*${Se[_e.XRANGEPLAIN]}$`);nt("XRANGELOOSE",`^${Se[_e.GTLT]}\\s*${Se[_e.XRANGEPLAINLOOSE]}$`);nt("COERCE",`(^|[^\\d])(\\d{1,${T_}})(?:\\.(\\d{1,${T_}}))?(?:\\.(\\d{1,${T_}}))?(?:$|[^\\d])`);nt("COERCERTL",Se[_e.COERCE],!0);nt("LONETILDE","(?:~>?)");nt("TILDETRIM",`(\\s*)${Se[_e.LONETILDE]}\\s+`,!0);ho.tildeTrimReplace="$1~";nt("TILDE",`^${Se[_e.LONETILDE]}${Se[_e.XRANGEPLAIN]}$`);nt("TILDELOOSE",`^${Se[_e.LONETILDE]}${Se[_e.XRANGEPLAINLOOSE]}$`);nt("LONECARET","(?:\\^)");nt("CARETTRIM",`(\\s*)${Se[_e.LONECARET]}\\s+`,!0);ho.caretTrimReplace="$1^";nt("CARET",`^${Se[_e.LONECARET]}${Se[_e.XRANGEPLAIN]}$`);nt("CARETLOOSE",`^${Se[_e.LONECARET]}${Se[_e.XRANGEPLAINLOOSE]}$`);nt("COMPARATORLOOSE",`^${Se[_e.GTLT]}\\s*(${Se[_e.LOOSEPLAIN]})$|^$`);nt("COMPARATOR",`^${Se[_e.GTLT]}\\s*(${Se[_e.FULLPLAIN]})$|^$`);nt("COMPARATORTRIM",`(\\s*)${Se[_e.GTLT]}\\s*(${Se[_e.LOOSEPLAIN]}|${Se[_e.XRANGEPLAIN]})`,!0);ho.comparatorTrimReplace="$1$2$3";nt("HYPHENRANGE",`^\\s*(${Se[_e.XRANGEPLAIN]})\\s+-\\s+(${Se[_e.XRANGEPLAIN]})\\s*$`);nt("HYPHENRANGELOOSE",`^\\s*(${Se[_e.XRANGEPLAINLOOSE]})\\s+-\\s+(${Se[_e.XRANGEPLAINLOOSE]})\\s*$`);nt("STAR","(<|>)?=?\\s*\\*");nt("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");nt("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Hy=E((r7e,x$)=>{var Rbe=Object.freeze({loose:!0}),Obe=Object.freeze({}),Pbe=t=>t?typeof t!="object"?Rbe:t:Obe;x$.exports=Pbe});var k_=E((i7e,C$)=>{var w$=/^[0-9]+$/,E$=(t,e)=>{let r=w$.test(t),i=w$.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:tE$(e,t);C$.exports={compareIdentifiers:E$,rcompareIdentifiers:Lbe}});var Fi=E((n7e,T$)=>{var Gy=hm(),{MAX_LENGTH:S$,MAX_SAFE_INTEGER:zy}=dm(),{safeRe:_$,t:A$}=vf(),Bbe=Hy(),{compareIdentifiers:yf}=k_(),Vn=class{constructor(e,r){if(r=Bbe(r),e instanceof Vn){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>S$)throw new TypeError(`version is longer than ${S$} characters`);Gy("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=e.trim().match(r.loose?_$[A$.LOOSE]:_$[A$.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>zy||this.major<0)throw new TypeError("Invalid major version");if(this.minor>zy||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>zy||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let s=+n;if(s>=0&&s=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let s=[r,n];i===!1&&(s=[r]),yf(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};T$.exports=Vn});var Kc=E((s7e,k$)=>{var D$=Fi(),qbe=(t,e,r=!1)=>{if(t instanceof D$)return t;try{return new D$(t,e)}catch(i){if(!r)return null;throw i}};k$.exports=qbe});var N$=E((a7e,I$)=>{var Fbe=Kc(),$be=(t,e)=>{let r=Fbe(t,e);return r?r.version:null};I$.exports=$be});var O$=E((o7e,R$)=>{var Mbe=Kc(),jbe=(t,e)=>{let r=Mbe(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};R$.exports=jbe});var B$=E((u7e,L$)=>{var P$=Fi(),Ube=(t,e,r,i,n)=>{typeof r=="string"&&(n=i,i=r,r=void 0);try{return new P$(t instanceof P$?t.version:t,r).inc(e,i,n).version}catch{return null}};L$.exports=Ube});var $$=E((c7e,F$)=>{var q$=Kc(),Vbe=(t,e)=>{let r=q$(t,null,!0),i=q$(e,null,!0),n=r.compare(i);if(n===0)return null;let s=n>0,a=s?r:i,o=s?i:r,u=!!a.prerelease.length;if(!!o.prerelease.length&&!u)return!o.patch&&!o.minor?"major":a.patch?"patch":a.minor?"minor":"major";let l=u?"pre":"";return r.major!==i.major?l+"major":r.minor!==i.minor?l+"minor":r.patch!==i.patch?l+"patch":"prerelease"};F$.exports=Vbe});var j$=E((l7e,M$)=>{var Hbe=Fi(),Gbe=(t,e)=>new Hbe(t,e).major;M$.exports=Gbe});var V$=E((p7e,U$)=>{var zbe=Fi(),Kbe=(t,e)=>new zbe(t,e).minor;U$.exports=Kbe});var G$=E((f7e,H$)=>{var Wbe=Fi(),Ybe=(t,e)=>new Wbe(t,e).patch;H$.exports=Ybe});var K$=E((d7e,z$)=>{var Xbe=Kc(),Qbe=(t,e)=>{let r=Xbe(t,e);return r&&r.prerelease.length?r.prerelease:null};z$.exports=Qbe});var ds=E((h7e,Y$)=>{var W$=Fi(),Jbe=(t,e,r)=>new W$(t,r).compare(new W$(e,r));Y$.exports=Jbe});var Q$=E((m7e,X$)=>{var Zbe=ds(),e1e=(t,e,r)=>Zbe(e,t,r);X$.exports=e1e});var Z$=E((g7e,J$)=>{var t1e=ds(),r1e=(t,e)=>t1e(t,e,!0);J$.exports=r1e});var Ky=E((v7e,tM)=>{var eM=Fi(),i1e=(t,e,r)=>{let i=new eM(t,r),n=new eM(e,r);return i.compare(n)||i.compareBuild(n)};tM.exports=i1e});var iM=E((y7e,rM)=>{var n1e=Ky(),s1e=(t,e)=>t.sort((r,i)=>n1e(r,i,e));rM.exports=s1e});var sM=E((b7e,nM)=>{var a1e=Ky(),o1e=(t,e)=>t.sort((r,i)=>a1e(i,r,e));nM.exports=o1e});var mm=E((x7e,aM)=>{var u1e=ds(),c1e=(t,e,r)=>u1e(t,e,r)>0;aM.exports=c1e});var Wy=E((w7e,oM)=>{var l1e=ds(),p1e=(t,e,r)=>l1e(t,e,r)<0;oM.exports=p1e});var I_=E((E7e,uM)=>{var f1e=ds(),d1e=(t,e,r)=>f1e(t,e,r)===0;uM.exports=d1e});var N_=E((C7e,cM)=>{var h1e=ds(),m1e=(t,e,r)=>h1e(t,e,r)!==0;cM.exports=m1e});var Yy=E((S7e,lM)=>{var g1e=ds(),v1e=(t,e,r)=>g1e(t,e,r)>=0;lM.exports=v1e});var Xy=E((_7e,pM)=>{var y1e=ds(),b1e=(t,e,r)=>y1e(t,e,r)<=0;pM.exports=b1e});var R_=E((A7e,fM)=>{var x1e=I_(),w1e=N_(),E1e=mm(),C1e=Yy(),S1e=Wy(),_1e=Xy(),A1e=(t,e,r,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return x1e(t,r,i);case"!=":return w1e(t,r,i);case">":return E1e(t,r,i);case">=":return C1e(t,r,i);case"<":return S1e(t,r,i);case"<=":return _1e(t,r,i);default:throw new TypeError(`Invalid operator: ${e}`)}};fM.exports=A1e});var hM=E((T7e,dM)=>{var T1e=Fi(),D1e=Kc(),{safeRe:Qy,t:Jy}=vf(),k1e=(t,e)=>{if(t instanceof T1e)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(Qy[Jy.COERCE]);else{let i;for(;(i=Qy[Jy.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||i.index+i[0].length!==r.index+r[0].length)&&(r=i),Qy[Jy.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Qy[Jy.COERCERTL].lastIndex=-1}return r===null?null:D1e(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)};dM.exports=k1e});var gM=E((D7e,mM)=>{"use strict";mM.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var yM=E((k7e,vM)=>{"use strict";vM.exports=Rt;Rt.Node=Wc;Rt.create=Rt;function Rt(t){var e=this;if(e instanceof Rt||(e=new Rt),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};Rt.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};Rt.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};Rt.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};Rt.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new Rt;if(ethis.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&ithis.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};Rt.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i{"use strict";var O1e=yM(),Yc=Symbol("max"),go=Symbol("length"),bf=Symbol("lengthCalculator"),vm=Symbol("allowStale"),Xc=Symbol("maxAge"),mo=Symbol("dispose"),bM=Symbol("noDisposeOnSet"),hi=Symbol("lruList"),Ls=Symbol("cache"),wM=Symbol("updateAgeOnGet"),O_=()=>1,L_=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let r=this[Yc]=e.max||1/0,i=e.length||O_;if(this[bf]=typeof i!="function"?O_:i,this[vm]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Xc]=e.maxAge||0,this[mo]=e.dispose,this[bM]=e.noDisposeOnSet||!1,this[wM]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Yc]=e||1/0,gm(this)}get max(){return this[Yc]}set allowStale(e){this[vm]=!!e}get allowStale(){return this[vm]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Xc]=e,gm(this)}get maxAge(){return this[Xc]}set lengthCalculator(e){typeof e!="function"&&(e=O_),e!==this[bf]&&(this[bf]=e,this[go]=0,this[hi].forEach(r=>{r.length=this[bf](r.value,r.key),this[go]+=r.length})),gm(this)}get lengthCalculator(){return this[bf]}get length(){return this[go]}get itemCount(){return this[hi].length}rforEach(e,r){r=r||this;for(let i=this[hi].tail;i!==null;){let n=i.prev;xM(this,e,i,r),i=n}}forEach(e,r){r=r||this;for(let i=this[hi].head;i!==null;){let n=i.next;xM(this,e,i,r),i=n}}keys(){return this[hi].toArray().map(e=>e.key)}values(){return this[hi].toArray().map(e=>e.value)}reset(){this[mo]&&this[hi]&&this[hi].length&&this[hi].forEach(e=>this[mo](e.key,e.value)),this[Ls]=new Map,this[hi]=new O1e,this[go]=0}dump(){return this[hi].map(e=>Zy(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[hi]}set(e,r,i){if(i=i||this[Xc],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let n=i?Date.now():0,s=this[bf](r,e);if(this[Ls].has(e)){if(s>this[Yc])return xf(this,this[Ls].get(e)),!1;let u=this[Ls].get(e).value;return this[mo]&&(this[bM]||this[mo](e,u.value)),u.now=n,u.maxAge=i,u.value=r,this[go]+=s-u.length,u.length=s,this.get(e),gm(this),!0}let a=new B_(e,r,s,n,i);return a.length>this[Yc]?(this[mo]&&this[mo](e,r),!1):(this[go]+=a.length,this[hi].unshift(a),this[Ls].set(e,this[hi].head),gm(this),!0)}has(e){if(!this[Ls].has(e))return!1;let r=this[Ls].get(e).value;return!Zy(this,r)}get(e){return P_(this,e,!0)}peek(e){return P_(this,e,!1)}pop(){let e=this[hi].tail;return e?(xf(this,e),e.value):null}del(e){xf(this,this[Ls].get(e))}load(e){this.reset();let r=Date.now();for(let i=e.length-1;i>=0;i--){let n=e[i],s=n.e||0;if(s===0)this.set(n.k,n.v);else{let a=s-r;a>0&&this.set(n.k,n.v,a)}}}prune(){this[Ls].forEach((e,r)=>P_(this,r,!1))}},P_=(t,e,r)=>{let i=t[Ls].get(e);if(i){let n=i.value;if(Zy(t,n)){if(xf(t,i),!t[vm])return}else r&&(t[wM]&&(i.value.now=Date.now()),t[hi].unshiftNode(i));return n.value}},Zy=(t,e)=>{if(!e||!e.maxAge&&!t[Xc])return!1;let r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[Xc]&&r>t[Xc]},gm=t=>{if(t[go]>t[Yc])for(let e=t[hi].tail;t[go]>t[Yc]&&e!==null;){let r=e.prev;xf(t,e),e=r}},xf=(t,e)=>{if(e){let r=e.value;t[mo]&&t[mo](r.key,r.value),t[go]-=r.length,t[Ls].delete(r.key),t[hi].removeNode(e)}},B_=class{constructor(e,r,i,n,s){this.key=e,this.value=r,this.length=i,this.now=n,this.maxAge=s||0}},xM=(t,e,r,i)=>{let n=r.value;Zy(t,n)&&(xf(t,r),t[vm]||(n=void 0)),n&&e.call(i,n.value,n.key,t)};EM.exports=L_});var hs=E((N7e,TM)=>{var Qc=class{constructor(e,r){if(r=L1e(r),e instanceof Qc)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new Qc(e.raw,r);if(e instanceof q_)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(n=>!_M(n[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&U1e(n[0])){this.set=[n];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&M1e)|(this.options.loose&&j1e))+":"+e,n=SM.get(i);if(n)return n;let s=this.options.loose,a=s?xn[Zi.HYPHENRANGELOOSE]:xn[Zi.HYPHENRANGE];e=e.replace(a,J1e(this.options.includePrerelease)),fr("hyphen replace",e),e=e.replace(xn[Zi.COMPARATORTRIM],q1e),fr("comparator trim",e),e=e.replace(xn[Zi.TILDETRIM],F1e),fr("tilde trim",e),e=e.replace(xn[Zi.CARETTRIM],$1e),fr("caret trim",e);let o=e.split(" ").map(f=>V1e(f,this.options)).join(" ").split(/\s+/).map(f=>Q1e(f,this.options));s&&(o=o.filter(f=>(fr("loose invalid filter",f,this.options),!!f.match(xn[Zi.COMPARATORLOOSE])))),fr("range list",o);let u=new Map,c=o.map(f=>new q_(f,this.options));for(let f of c){if(_M(f))return[f];u.set(f.value,f)}u.size>1&&u.has("")&&u.delete("");let l=[...u.values()];return SM.set(i,l),l}intersects(e,r){if(!(e instanceof Qc))throw new TypeError("a Range is required");return this.set.some(i=>AM(i,r)&&e.set.some(n=>AM(n,r)&&i.every(s=>n.every(a=>s.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new B1e(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0",U1e=t=>t.value==="",AM=(t,e)=>{let r=!0,i=t.slice(),n=i.pop();for(;r&&i.length;)r=i.every(s=>n.intersects(s,e)),n=i.pop();return r},V1e=(t,e)=>(fr("comp",t,e),t=z1e(t,e),fr("caret",t),t=H1e(t,e),fr("tildes",t),t=W1e(t,e),fr("xrange",t),t=X1e(t,e),fr("stars",t),t),en=t=>!t||t.toLowerCase()==="x"||t==="*",H1e=(t,e)=>t.trim().split(/\s+/).map(r=>G1e(r,e)).join(" "),G1e=(t,e)=>{let r=e.loose?xn[Zi.TILDELOOSE]:xn[Zi.TILDE];return t.replace(r,(i,n,s,a,o)=>{fr("tilde",t,i,n,s,a,o);let u;return en(n)?u="":en(s)?u=`>=${n}.0.0 <${+n+1}.0.0-0`:en(a)?u=`>=${n}.${s}.0 <${n}.${+s+1}.0-0`:o?(fr("replaceTilde pr",o),u=`>=${n}.${s}.${a}-${o} <${n}.${+s+1}.0-0`):u=`>=${n}.${s}.${a} <${n}.${+s+1}.0-0`,fr("tilde return",u),u})},z1e=(t,e)=>t.trim().split(/\s+/).map(r=>K1e(r,e)).join(" "),K1e=(t,e)=>{fr("caret",t,e);let r=e.loose?xn[Zi.CARETLOOSE]:xn[Zi.CARET],i=e.includePrerelease?"-0":"";return t.replace(r,(n,s,a,o,u)=>{fr("caret",t,n,s,a,o,u);let c;return en(s)?c="":en(a)?c=`>=${s}.0.0${i} <${+s+1}.0.0-0`:en(o)?s==="0"?c=`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:c=`>=${s}.${a}.0${i} <${+s+1}.0.0-0`:u?(fr("replaceCaret pr",u),s==="0"?a==="0"?c=`>=${s}.${a}.${o}-${u} <${s}.${a}.${+o+1}-0`:c=`>=${s}.${a}.${o}-${u} <${s}.${+a+1}.0-0`:c=`>=${s}.${a}.${o}-${u} <${+s+1}.0.0-0`):(fr("no pr"),s==="0"?a==="0"?c=`>=${s}.${a}.${o}${i} <${s}.${a}.${+o+1}-0`:c=`>=${s}.${a}.${o}${i} <${s}.${+a+1}.0-0`:c=`>=${s}.${a}.${o} <${+s+1}.0.0-0`),fr("caret return",c),c})},W1e=(t,e)=>(fr("replaceXRanges",t,e),t.split(/\s+/).map(r=>Y1e(r,e)).join(" ")),Y1e=(t,e)=>{t=t.trim();let r=e.loose?xn[Zi.XRANGELOOSE]:xn[Zi.XRANGE];return t.replace(r,(i,n,s,a,o,u)=>{fr("xRange",t,i,n,s,a,o,u);let c=en(s),l=c||en(a),f=l||en(o),d=f;return n==="="&&d&&(n=""),u=e.includePrerelease?"-0":"",c?n===">"||n==="<"?i="<0.0.0-0":i="*":n&&d?(l&&(a=0),o=0,n===">"?(n=">=",l?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):n==="<="&&(n="<",l?s=+s+1:a=+a+1),n==="<"&&(u="-0"),i=`${n+s}.${a}.${o}${u}`):l?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:f&&(i=`>=${s}.${a}.0${u} <${s}.${+a+1}.0-0`),fr("xRange return",i),i})},X1e=(t,e)=>(fr("replaceStars",t,e),t.trim().replace(xn[Zi.STAR],"")),Q1e=(t,e)=>(fr("replaceGTE0",t,e),t.trim().replace(xn[e.includePrerelease?Zi.GTE0PRE:Zi.GTE0],"")),J1e=t=>(e,r,i,n,s,a,o,u,c,l,f,d,h)=>(en(i)?r="":en(n)?r=`>=${i}.0.0${t?"-0":""}`:en(s)?r=`>=${i}.${n}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,en(c)?u="":en(l)?u=`<${+c+1}.0.0-0`:en(f)?u=`<${c}.${+l+1}.0-0`:d?u=`<=${c}.${l}.${f}-${d}`:t?u=`<${c}.${l}.${+f+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),Z1e=(t,e,r)=>{for(let i=0;i0){let n=t[i].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}});var ym=E((R7e,OM)=>{var bm=Symbol("SemVer ANY"),wf=class{static get ANY(){return bm}constructor(e,r){if(r=DM(r),e instanceof wf){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),$_("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===bm?this.value="":this.value=this.operator+this.semver.version,$_("comp",this)}parse(e){let r=this.options.loose?kM[IM.COMPARATORLOOSE]:kM[IM.COMPARATOR],i=e.match(r);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new NM(i[2],this.options.loose):this.semver=bm}toString(){return this.value}test(e){if($_("Comparator.test",e,this.options.loose),this.semver===bm||e===bm)return!0;if(typeof e=="string")try{e=new NM(e,this.options)}catch{return!1}return F_(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof wf))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new RM(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new RM(this.value,r).test(e.semver):(r=DM(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||F_(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||F_(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};OM.exports=wf;var DM=Hy(),{safeRe:kM,t:IM}=vf(),F_=R_(),$_=hm(),NM=Fi(),RM=hs()});var xm=E((O7e,PM)=>{var e2e=hs(),t2e=(t,e,r)=>{try{e=new e2e(e,r)}catch{return!1}return e.test(t)};PM.exports=t2e});var BM=E((P7e,LM)=>{var r2e=hs(),i2e=(t,e)=>new r2e(t,e).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));LM.exports=i2e});var FM=E((L7e,qM)=>{var n2e=Fi(),s2e=hs(),a2e=(t,e,r)=>{let i=null,n=null,s=null;try{s=new s2e(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!i||n.compare(a)===-1)&&(i=a,n=new n2e(i,r))}),i};qM.exports=a2e});var MM=E((B7e,$M)=>{var o2e=Fi(),u2e=hs(),c2e=(t,e,r)=>{let i=null,n=null,s=null;try{s=new u2e(e,r)}catch{return null}return t.forEach(a=>{s.test(a)&&(!i||n.compare(a)===1)&&(i=a,n=new o2e(i,r))}),i};$M.exports=c2e});var VM=E((q7e,UM)=>{var M_=Fi(),l2e=hs(),jM=mm(),p2e=(t,e)=>{t=new l2e(t,e);let r=new M_("0.0.0");if(t.test(r)||(r=new M_("0.0.0-0"),t.test(r)))return r;r=null;for(let i=0;i{let o=new M_(a.semver.version);switch(a.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!s||jM(o,s))&&(s=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||jM(r,s))&&(r=s)}return r&&t.test(r)?r:null};UM.exports=p2e});var GM=E((F7e,HM)=>{var f2e=hs(),d2e=(t,e)=>{try{return new f2e(t,e).range||"*"}catch{return null}};HM.exports=d2e});var eb=E(($7e,YM)=>{var h2e=Fi(),WM=ym(),{ANY:m2e}=WM,g2e=hs(),v2e=xm(),zM=mm(),KM=Wy(),y2e=Xy(),b2e=Yy(),x2e=(t,e,r,i)=>{t=new h2e(t,i),e=new g2e(e,i);let n,s,a,o,u;switch(r){case">":n=zM,s=y2e,a=KM,o=">",u=">=";break;case"<":n=KM,s=b2e,a=zM,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(v2e(t,e,i))return!1;for(let c=0;c{h.semver===m2e&&(h=new WM(">=0.0.0")),f=f||h,d=d||h,n(h.semver,f.semver,i)?f=h:a(h.semver,d.semver,i)&&(d=h)}),f.operator===o||f.operator===u||(!d.operator||d.operator===o)&&s(t,d.semver))return!1;if(d.operator===u&&a(t,d.semver))return!1}return!0};YM.exports=x2e});var QM=E((M7e,XM)=>{var w2e=eb(),E2e=(t,e,r)=>w2e(t,e,">",r);XM.exports=E2e});var ZM=E((j7e,JM)=>{var C2e=eb(),S2e=(t,e,r)=>C2e(t,e,"<",r);JM.exports=S2e});var rj=E((U7e,tj)=>{var ej=hs(),_2e=(t,e,r)=>(t=new ej(t,r),e=new ej(e,r),t.intersects(e,r));tj.exports=_2e});var nj=E((V7e,ij)=>{var A2e=xm(),T2e=ds();ij.exports=(t,e,r)=>{let i=[],n=null,s=null,a=t.sort((l,f)=>T2e(l,f,r));for(let l of a)A2e(l,e,r)?(s=l,n||(n=l)):(s&&i.push([n,s]),s=null,n=null);n&&i.push([n,null]);let o=[];for(let[l,f]of i)l===f?o.push(l):!f&&l===a[0]?o.push("*"):f?l===a[0]?o.push(`<=${f}`):o.push(`${l} - ${f}`):o.push(`>=${l}`);let u=o.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return u.length{var sj=hs(),U_=ym(),{ANY:j_}=U_,wm=xm(),V_=ds(),D2e=(t,e,r={})=>{if(t===e)return!0;t=new sj(t,r),e=new sj(e,r);let i=!1;e:for(let n of t.set){for(let s of e.set){let a=I2e(n,s,r);if(i=i||a!==null,a)continue e}if(i)return!1}return!0},k2e=[new U_(">=0.0.0-0")],aj=[new U_(">=0.0.0")],I2e=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===j_){if(e.length===1&&e[0].semver===j_)return!0;r.includePrerelease?t=k2e:t=aj}if(e.length===1&&e[0].semver===j_){if(r.includePrerelease)return!0;e=aj}let i=new Set,n,s;for(let h of t)h.operator===">"||h.operator===">="?n=oj(n,h,r):h.operator==="<"||h.operator==="<="?s=uj(s,h,r):i.add(h.semver);if(i.size>1)return null;let a;if(n&&s){if(a=V_(n.semver,s.semver,r),a>0)return null;if(a===0&&(n.operator!==">="||s.operator!=="<="))return null}for(let h of i){if(n&&!wm(h,String(n),r)||s&&!wm(h,String(s),r))return null;for(let m of e)if(!wm(h,String(m),r))return!1;return!0}let o,u,c,l,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,d=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let h of e){if(l=l||h.operator===">"||h.operator===">=",c=c||h.operator==="<"||h.operator==="<=",n){if(d&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===d.major&&h.semver.minor===d.minor&&h.semver.patch===d.patch&&(d=!1),h.operator===">"||h.operator===">="){if(o=oj(n,h,r),o===h&&o!==n)return!1}else if(n.operator===">="&&!wm(n.semver,String(h),r))return!1}if(s){if(f&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===f.major&&h.semver.minor===f.minor&&h.semver.patch===f.patch&&(f=!1),h.operator==="<"||h.operator==="<="){if(u=uj(s,h,r),u===h&&u!==s)return!1}else if(s.operator==="<="&&!wm(s.semver,String(h),r))return!1}if(!h.operator&&(s||n)&&a!==0)return!1}return!(n&&c&&!s&&a!==0||s&&l&&!n&&a!==0||d||f)},oj=(t,e,r)=>{if(!t)return e;let i=V_(t.semver,e.semver,r);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},uj=(t,e,r)=>{if(!t)return e;let i=V_(t.semver,e.semver,r);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};cj.exports=D2e});var G_=E((G7e,dj)=>{var H_=vf(),pj=dm(),N2e=Fi(),fj=k_(),R2e=Kc(),O2e=N$(),P2e=O$(),L2e=B$(),B2e=$$(),q2e=j$(),F2e=V$(),$2e=G$(),M2e=K$(),j2e=ds(),U2e=Q$(),V2e=Z$(),H2e=Ky(),G2e=iM(),z2e=sM(),K2e=mm(),W2e=Wy(),Y2e=I_(),X2e=N_(),Q2e=Yy(),J2e=Xy(),Z2e=R_(),exe=hM(),txe=ym(),rxe=hs(),ixe=xm(),nxe=BM(),sxe=FM(),axe=MM(),oxe=VM(),uxe=GM(),cxe=eb(),lxe=QM(),pxe=ZM(),fxe=rj(),dxe=nj(),hxe=lj();dj.exports={parse:R2e,valid:O2e,clean:P2e,inc:L2e,diff:B2e,major:q2e,minor:F2e,patch:$2e,prerelease:M2e,compare:j2e,rcompare:U2e,compareLoose:V2e,compareBuild:H2e,sort:G2e,rsort:z2e,gt:K2e,lt:W2e,eq:Y2e,neq:X2e,gte:Q2e,lte:J2e,cmp:Z2e,coerce:exe,Comparator:txe,Range:rxe,satisfies:ixe,toComparators:nxe,maxSatisfying:sxe,minSatisfying:axe,minVersion:oxe,validRange:uxe,outside:cxe,gtr:lxe,ltr:pxe,intersects:fxe,simplifyRange:dxe,subset:hxe,SemVer:N2e,re:H_.re,src:H_.src,tokens:H_.t,SEMVER_SPEC_VERSION:pj.SEMVER_SPEC_VERSION,RELEASE_TYPES:pj.RELEASE_TYPES,compareIdentifiers:fj.compareIdentifiers,rcompareIdentifiers:fj.rcompareIdentifiers}});var tb=E((z7e,bj)=>{"use strict";var z_,mj,gj,vj,yj=!0;typeof process<"u"&&({FORCE_COLOR:z_,NODE_DISABLE_COLORS:mj,NO_COLOR:gj,TERM:vj}=process.env||{},yj=process.stdout&&process.stdout.isTTY);var Gt={enabled:!mj&&gj==null&&vj!=="dumb"&&(z_!=null&&z_!=="0"||yj),reset:ar(0,0),bold:ar(1,22),dim:ar(2,22),italic:ar(3,23),underline:ar(4,24),inverse:ar(7,27),hidden:ar(8,28),strikethrough:ar(9,29),black:ar(30,39),red:ar(31,39),green:ar(32,39),yellow:ar(33,39),blue:ar(34,39),magenta:ar(35,39),cyan:ar(36,39),white:ar(37,39),gray:ar(90,39),grey:ar(90,39),bgBlack:ar(40,49),bgRed:ar(41,49),bgGreen:ar(42,49),bgYellow:ar(43,49),bgBlue:ar(44,49),bgMagenta:ar(45,49),bgCyan:ar(46,49),bgWhite:ar(47,49)};function hj(t,e){let r=0,i,n="",s="";for(;r{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.regexpCode=It.getEsmExportName=It.getProperty=It.safeStringify=It.stringify=It.strConcat=It.addCodeArg=It.str=It._=It.nil=It._Code=It.Name=It.IDENTIFIER=It._CodeOrName=void 0;var Em=class{};It._CodeOrName=Em;It.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Jc=class extends Em{constructor(e){if(super(),!It.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};It.Name=Jc;var ms=class extends Em{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,i)=>`${r}${i}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,i)=>(i instanceof Jc&&(r[i.str]=(r[i.str]||0)+1),r),{})}};It._Code=ms;It.nil=new ms("");function xj(t,...e){let r=[t[0]],i=0;for(;i{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.ValueScope=tn.ValueScopeName=tn.Scope=tn.varKinds=tn.UsedValueState=void 0;var wn=Sm(),Y_=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},X_;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(X_=tn.UsedValueState||(tn.UsedValueState={}));tn.varKinds={const:new wn.Name("const"),let:new wn.Name("let"),var:new wn.Name("var")};var rb=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof wn.Name?e:this.name(e)}name(e){return new wn.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,i;if(!((i=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||i===void 0)&&i.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};tn.Scope=rb;var ib=class extends wn.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:i}){this.value=e,this.scopePath=(0,wn._)`.${new wn.Name(r)}[${i}]`}};tn.ValueScopeName=ib;var Sxe=(0,wn._)`\n`,Q_=class extends rb{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Sxe:wn.nil}}get(){return this._scope}name(e){return new ib(e,this._newName(e))}value(e,r){var i;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:s}=n,a=(i=r.key)!==null&&i!==void 0?i:r.ref,o=this._values[s];if(o){let l=o.get(a);if(l)return l}else o=this._values[s]=new Map;o.set(a,n);let u=this._scope[s]||(this._scope[s]=[]),c=u.length;return u[c]=r.ref,n.setValue(r,{property:s,itemIndex:c}),n}getValue(e,r){let i=this._values[e];if(i)return i.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,wn._)`${e}${i.scopePath}`})}scopeCode(e=this._values,r,i){return this._reduceValues(e,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,i)}_reduceValues(e,r,i={},n){let s=wn.nil;for(let a in e){let o=e[a];if(!o)continue;let u=i[a]=i[a]||new Map;o.forEach(c=>{if(u.has(c))return;u.set(c,X_.Started);let l=r(c);if(l){let f=this.opts.es5?tn.varKinds.var:tn.varKinds.const;s=(0,wn._)`${s}${f} ${c} = ${l};${this.opts._n}`}else if(l=n?.(c))s=(0,wn._)`${s}${l}${this.opts._n}`;else throw new Y_(c);u.set(c,X_.Completed)})}return s}};tn.ValueScope=Q_});var ct=E(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.or=st.and=st.not=st.CodeGen=st.operators=st.varKinds=st.ValueScopeName=st.ValueScope=st.Scope=st.Name=st.regexpCode=st.stringify=st.getProperty=st.nil=st.strConcat=st.str=st._=void 0;var Et=Sm(),Bs=J_(),xu=Sm();Object.defineProperty(st,"_",{enumerable:!0,get:function(){return xu._}});Object.defineProperty(st,"str",{enumerable:!0,get:function(){return xu.str}});Object.defineProperty(st,"strConcat",{enumerable:!0,get:function(){return xu.strConcat}});Object.defineProperty(st,"nil",{enumerable:!0,get:function(){return xu.nil}});Object.defineProperty(st,"getProperty",{enumerable:!0,get:function(){return xu.getProperty}});Object.defineProperty(st,"stringify",{enumerable:!0,get:function(){return xu.stringify}});Object.defineProperty(st,"regexpCode",{enumerable:!0,get:function(){return xu.regexpCode}});Object.defineProperty(st,"Name",{enumerable:!0,get:function(){return xu.Name}});var ob=J_();Object.defineProperty(st,"Scope",{enumerable:!0,get:function(){return ob.Scope}});Object.defineProperty(st,"ValueScope",{enumerable:!0,get:function(){return ob.ValueScope}});Object.defineProperty(st,"ValueScopeName",{enumerable:!0,get:function(){return ob.ValueScopeName}});Object.defineProperty(st,"varKinds",{enumerable:!0,get:function(){return ob.varKinds}});st.operators={GT:new Et._Code(">"),GTE:new Et._Code(">="),LT:new Et._Code("<"),LTE:new Et._Code("<="),EQ:new Et._Code("==="),NEQ:new Et._Code("!=="),NOT:new Et._Code("!"),OR:new Et._Code("||"),AND:new Et._Code("&&"),ADD:new Et._Code("+")};var vo=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},Z_=class extends vo{constructor(e,r,i){super(),this.varKind=e,this.name=r,this.rhs=i}render({es5:e,_n:r}){let i=e?Bs.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=Cf(this.rhs,e,r)),this}get names(){return this.rhs instanceof Et._CodeOrName?this.rhs.names:{}}},nb=class extends vo{constructor(e,r,i){super(),this.lhs=e,this.rhs=r,this.sideEffects=i}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof Et.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Cf(this.rhs,e,r),this}get names(){let e=this.lhs instanceof Et.Name?{}:{...this.lhs.names};return ab(e,this.rhs)}},eA=class extends nb{constructor(e,r,i,n){super(e,i,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},tA=class extends vo{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},rA=class extends vo{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},iA=class extends vo{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},nA=class extends vo{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Cf(this.code,e,r),this}get names(){return this.code instanceof Et._CodeOrName?this.code.names:{}}},_m=class extends vo{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,i)=>r+i.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let i=e[r].optimizeNodes();Array.isArray(i)?e.splice(r,1,...i):i?e[r]=i:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:i}=this,n=i.length;for(;n--;){let s=i[n];s.optimizeNames(e,r)||(_xe(e,s.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>el(e,r.names),{})}},yo=class extends _m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},sA=class extends _m{},Ef=class extends yo{};Ef.kind="else";var qs=class extends yo{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let i=r.optimizeNodes();r=this.else=Array.isArray(i)?new Ef(i):i}if(r)return e===!1?r instanceof qs?r:r.nodes:this.nodes.length?this:new qs(Ej(e),r instanceof qs?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var i;if(this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Cf(this.condition,e,r),this}get names(){let e=super.names;return ab(e,this.condition),this.else&&el(e,this.else.names),e}};qs.kind="if";var Zc=class extends yo{};Zc.kind="for";var aA=class extends Zc{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=Cf(this.iteration,e,r),this}get names(){return el(super.names,this.iteration.names)}},oA=class extends Zc{constructor(e,r,i,n){super(),this.varKind=e,this.name=r,this.from=i,this.to=n}render(e){let r=e.es5?Bs.varKinds.var:this.varKind,{name:i,from:n,to:s}=this;return`for(${r} ${i}=${n}; ${i}<${s}; ${i}++)`+super.render(e)}get names(){let e=ab(super.names,this.from);return ab(e,this.to)}},sb=class extends Zc{constructor(e,r,i,n){super(),this.loop=e,this.varKind=r,this.name=i,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=Cf(this.iterable,e,r),this}get names(){return el(super.names,this.iterable.names)}},Am=class extends yo{constructor(e,r,i){super(),this.name=e,this.args=r,this.async=i}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Am.kind="func";var Tm=class extends _m{render(e){return"return "+super.render(e)}};Tm.kind="return";var uA=class extends yo{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var i,n;return super.optimizeNames(e,r),(i=this.catch)===null||i===void 0||i.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&el(e,this.catch.names),this.finally&&el(e,this.finally.names),e}},Dm=class extends yo{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};Dm.kind="catch";var km=class extends yo{render(e){return"finally"+super.render(e)}};km.kind="finally";var cA=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?` +`:""},this._extScope=e,this._scope=new Bs.Scope({parent:e}),this._nodes=[new sA]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let i=this._extScope.value(e,r);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,i,n){let s=this._scope.toName(r);return i!==void 0&&n&&(this._constants[s.str]=i),this._leafNode(new Z_(e,s,i)),s}const(e,r,i){return this._def(Bs.varKinds.const,e,r,i)}let(e,r,i){return this._def(Bs.varKinds.let,e,r,i)}var(e,r,i){return this._def(Bs.varKinds.var,e,r,i)}assign(e,r,i){return this._leafNode(new nb(e,r,i))}add(e,r){return this._leafNode(new eA(e,st.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==Et.nil&&this._leafNode(new nA(e)),this}object(...e){let r=["{"];for(let[i,n]of e)r.length>1&&r.push(","),r.push(i),(i!==n||this.opts.es5)&&(r.push(":"),(0,Et.addCodeArg)(r,n));return r.push("}"),new Et._Code(r)}if(e,r,i){if(this._blockNode(new qs(e)),r&&i)this.code(r).else().code(i).endIf();else if(r)this.code(r).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new qs(e))}else(){return this._elseNode(new Ef)}endIf(){return this._endBlockNode(qs,Ef)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new aA(e),r)}forRange(e,r,i,n,s=this.opts.es5?Bs.varKinds.var:Bs.varKinds.let){let a=this._scope.toName(e);return this._for(new oA(s,a,r,i),()=>n(a))}forOf(e,r,i,n=Bs.varKinds.const){let s=this._scope.toName(e);if(this.opts.es5){let a=r instanceof Et.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Et._)`${a}.length`,o=>{this.var(s,(0,Et._)`${a}[${o}]`),i(s)})}return this._for(new sb("of",n,s,r),()=>i(s))}forIn(e,r,i,n=this.opts.es5?Bs.varKinds.var:Bs.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Et._)`Object.keys(${r})`,i);let s=this._scope.toName(e);return this._for(new sb("in",n,s,r),()=>i(s))}endFor(){return this._endBlockNode(Zc)}label(e){return this._leafNode(new tA(e))}break(e){return this._leafNode(new rA(e))}return(e){let r=new Tm;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Tm)}try(e,r,i){if(!r&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new uA;if(this._blockNode(n),this.code(e),r){let s=this.name("e");this._currNode=n.catch=new Dm(s),r(s)}return i&&(this._currNode=n.finally=new km,this.code(i)),this._endBlockNode(Dm,km)}throw(e){return this._leafNode(new iA(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-r;if(i<0||e!==void 0&&i!==e)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=Et.nil,i,n){return this._blockNode(new Am(e,r,i)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(Am)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let i=this._currNode;if(i instanceof e||r&&i instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof qs))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};st.CodeGen=cA;function el(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function ab(t,e){return e instanceof Et._CodeOrName?el(t,e.names):t}function Cf(t,e,r){if(t instanceof Et.Name)return i(t);if(!n(t))return t;return new Et._Code(t._items.reduce((s,a)=>(a instanceof Et.Name&&(a=i(a)),a instanceof Et._Code?s.push(...a._items):s.push(a),s),[]));function i(s){let a=r[s.str];return a===void 0||e[s.str]!==1?s:(delete e[s.str],a)}function n(s){return s instanceof Et._Code&&s._items.some(a=>a instanceof Et.Name&&e[a.str]===1&&r[a.str]!==void 0)}}function _xe(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function Ej(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Et._)`!${lA(t)}`}st.not=Ej;var Axe=Cj(st.operators.AND);function Txe(...t){return t.reduce(Axe)}st.and=Txe;var Dxe=Cj(st.operators.OR);function kxe(...t){return t.reduce(Dxe)}st.or=kxe;function Cj(t){return(e,r)=>e===Et.nil?r:r===Et.nil?e:(0,Et._)`${lA(e)} ${t} ${lA(r)}`}function lA(t){return t instanceof Et.Name?t:(0,Et._)`(${t})`}});var Nt=E(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.checkStrictMode=at.getErrorPath=at.Type=at.useFunc=at.setEvaluated=at.evaluatedPropsToName=at.mergeEvaluated=at.eachItem=at.unescapeJsonPointer=at.escapeJsonPointer=at.escapeFragment=at.unescapeFragment=at.schemaRefOrVal=at.schemaHasRulesButRef=at.schemaHasRules=at.checkUnknownRules=at.alwaysValidSchema=at.toHash=void 0;var er=ct(),Ixe=Sm();function Nxe(t){let e={};for(let r of t)e[r]=!0;return e}at.toHash=Nxe;function Rxe(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(Aj(t,e),!Tj(e,t.self.RULES.all))}at.alwaysValidSchema=Rxe;function Aj(t,e=t.schema){let{opts:r,self:i}=t;if(!r.strictSchema||typeof e=="boolean")return;let n=i.RULES.keywords;for(let s in e)n[s]||Nj(t,`unknown keyword: "${s}"`)}at.checkUnknownRules=Aj;function Tj(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}at.schemaHasRules=Tj;function Oxe(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}at.schemaHasRulesButRef=Oxe;function Pxe({topSchemaRef:t,schemaPath:e},r,i,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,er._)`${r}`}return(0,er._)`${t}${e}${(0,er.getProperty)(i)}`}at.schemaRefOrVal=Pxe;function Lxe(t){return Dj(decodeURIComponent(t))}at.unescapeFragment=Lxe;function Bxe(t){return encodeURIComponent(pA(t))}at.escapeFragment=Bxe;function pA(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}at.escapeJsonPointer=pA;function Dj(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}at.unescapeJsonPointer=Dj;function qxe(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}at.eachItem=qxe;function Sj({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:i}){return(n,s,a,o)=>{let u=a===void 0?s:a instanceof er.Name?(s instanceof er.Name?t(n,s,a):e(n,s,a),a):s instanceof er.Name?(e(n,a,s),s):r(s,a);return o===er.Name&&!(u instanceof er.Name)?i(n,u):u}}at.mergeEvaluated={props:Sj({mergeNames:(t,e,r)=>t.if((0,er._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,er._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,er._)`${r} || {}`).code((0,er._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,er._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,er._)`${r} || {}`),fA(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:kj}),items:Sj({mergeNames:(t,e,r)=>t.if((0,er._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,er._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,er._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,er._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function kj(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,er._)`{}`);return e!==void 0&&fA(t,r,e),r}at.evaluatedPropsToName=kj;function fA(t,e,r){Object.keys(r).forEach(i=>t.assign((0,er._)`${e}${(0,er.getProperty)(i)}`,!0))}at.setEvaluated=fA;var _j={};function Fxe(t,e){return t.scopeValue("func",{ref:e,code:_j[e.code]||(_j[e.code]=new Ixe._Code(e.code))})}at.useFunc=Fxe;var Ij;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Ij=at.Type||(at.Type={}));function $xe(t,e,r){if(t instanceof er.Name){let i=e===Ij.Num;return r?i?(0,er._)`"[" + ${t} + "]"`:(0,er._)`"['" + ${t} + "']"`:i?(0,er._)`"/" + ${t}`:(0,er._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,er.getProperty)(t).toString():"/"+pA(t)}at.getErrorPath=$xe;function Nj(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}at.checkStrictMode=Nj});var bo=E(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});var $i=ct(),Mxe={data:new $i.Name("data"),valCxt:new $i.Name("valCxt"),instancePath:new $i.Name("instancePath"),parentData:new $i.Name("parentData"),parentDataProperty:new $i.Name("parentDataProperty"),rootData:new $i.Name("rootData"),dynamicAnchors:new $i.Name("dynamicAnchors"),vErrors:new $i.Name("vErrors"),errors:new $i.Name("errors"),this:new $i.Name("this"),self:new $i.Name("self"),scope:new $i.Name("scope"),json:new $i.Name("json"),jsonPos:new $i.Name("jsonPos"),jsonLen:new $i.Name("jsonLen"),jsonPart:new $i.Name("jsonPart")};dA.default=Mxe});var Im=E(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.extendErrors=Mi.resetErrorsCount=Mi.reportExtraError=Mi.reportError=Mi.keyword$DataError=Mi.keywordError=void 0;var At=ct(),ub=Nt(),rn=bo();Mi.keywordError={message:({keyword:t})=>(0,At.str)`must pass "${t}" keyword validation`};Mi.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,At.str)`"${t}" keyword must be ${e} ($data)`:(0,At.str)`"${t}" keyword is invalid ($data)`};function jxe(t,e=Mi.keywordError,r,i){let{it:n}=t,{gen:s,compositeRule:a,allErrors:o}=n,u=Pj(t,e,r);i??(a||o)?Rj(s,u):Oj(n,(0,At._)`[${u}]`)}Mi.reportError=jxe;function Uxe(t,e=Mi.keywordError,r){let{it:i}=t,{gen:n,compositeRule:s,allErrors:a}=i,o=Pj(t,e,r);Rj(n,o),s||a||Oj(i,rn.default.vErrors)}Mi.reportExtraError=Uxe;function Vxe(t,e){t.assign(rn.default.errors,e),t.if((0,At._)`${rn.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,At._)`${rn.default.vErrors}.length`,e),()=>t.assign(rn.default.vErrors,null)))}Mi.resetErrorsCount=Vxe;function Hxe({gen:t,keyword:e,schemaValue:r,data:i,errsCount:n,it:s}){if(n===void 0)throw new Error("ajv implementation error");let a=t.name("err");t.forRange("i",n,rn.default.errors,o=>{t.const(a,(0,At._)`${rn.default.vErrors}[${o}]`),t.if((0,At._)`${a}.instancePath === undefined`,()=>t.assign((0,At._)`${a}.instancePath`,(0,At.strConcat)(rn.default.instancePath,s.errorPath))),t.assign((0,At._)`${a}.schemaPath`,(0,At.str)`${s.errSchemaPath}/${e}`),s.opts.verbose&&(t.assign((0,At._)`${a}.schema`,r),t.assign((0,At._)`${a}.data`,i))})}Mi.extendErrors=Hxe;function Rj(t,e){let r=t.const("err",e);t.if((0,At._)`${rn.default.vErrors} === null`,()=>t.assign(rn.default.vErrors,(0,At._)`[${r}]`),(0,At._)`${rn.default.vErrors}.push(${r})`),t.code((0,At._)`${rn.default.errors}++`)}function Oj(t,e){let{gen:r,validateName:i,schemaEnv:n}=t;n.$async?r.throw((0,At._)`new ${t.ValidationError}(${e})`):(r.assign((0,At._)`${i}.errors`,e),r.return(!1))}var tl={keyword:new At.Name("keyword"),schemaPath:new At.Name("schemaPath"),params:new At.Name("params"),propertyName:new At.Name("propertyName"),message:new At.Name("message"),schema:new At.Name("schema"),parentSchema:new At.Name("parentSchema")};function Pj(t,e,r){let{createErrors:i}=t.it;return i===!1?(0,At._)`{}`:Gxe(t,e,r)}function Gxe(t,e,r={}){let{gen:i,it:n}=t,s=[zxe(n,r),Kxe(t,r)];return Wxe(t,e,s),i.object(...s)}function zxe({errorPath:t},{instancePath:e}){let r=e?(0,At.str)`${t}${(0,ub.getErrorPath)(e,ub.Type.Str)}`:t;return[rn.default.instancePath,(0,At.strConcat)(rn.default.instancePath,r)]}function Kxe({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:i}){let n=i?e:(0,At.str)`${e}/${t}`;return r&&(n=(0,At.str)`${n}${(0,ub.getErrorPath)(r,ub.Type.Str)}`),[tl.schemaPath,n]}function Wxe(t,{params:e,message:r},i){let{keyword:n,data:s,schemaValue:a,it:o}=t,{opts:u,propertyName:c,topSchemaRef:l,schemaPath:f}=o;i.push([tl.keyword,n],[tl.params,typeof e=="function"?e(t):e||(0,At._)`{}`]),u.messages&&i.push([tl.message,typeof r=="function"?r(t):r]),u.verbose&&i.push([tl.schema,a],[tl.parentSchema,(0,At._)`${l}${f}`],[rn.default.data,s]),c&&i.push([tl.propertyName,c])}});var Bj=E(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.boolOrEmptySchema=Sf.topBoolOrEmptySchema=void 0;var Yxe=Im(),Xxe=ct(),Qxe=bo(),Jxe={message:"boolean schema is false"};function Zxe(t){let{gen:e,schema:r,validateName:i}=t;r===!1?Lj(t,!1):typeof r=="object"&&r.$async===!0?e.return(Qxe.default.data):(e.assign((0,Xxe._)`${i}.errors`,null),e.return(!0))}Sf.topBoolOrEmptySchema=Zxe;function ewe(t,e){let{gen:r,schema:i}=t;i===!1?(r.var(e,!1),Lj(t)):r.var(e,!0)}Sf.boolOrEmptySchema=ewe;function Lj(t,e){let{gen:r,data:i}=t,n={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,Yxe.reportError)(n,Jxe,void 0,e)}});var hA=E(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.getRules=_f.isJSONType=void 0;var twe=["string","number","integer","boolean","null","object","array"],rwe=new Set(twe);function iwe(t){return typeof t=="string"&&rwe.has(t)}_f.isJSONType=iwe;function nwe(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}_f.getRules=nwe});var mA=E(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.shouldUseRule=wu.shouldUseGroup=wu.schemaHasRulesForType=void 0;function swe({schema:t,self:e},r){let i=e.RULES.types[r];return i&&i!==!0&&qj(t,i)}wu.schemaHasRulesForType=swe;function qj(t,e){return e.rules.some(r=>Fj(t,r))}wu.shouldUseGroup=qj;function Fj(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(i=>t[i]!==void 0))}wu.shouldUseRule=Fj});var Rm=E(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.reportTypeError=Ai.checkDataTypes=Ai.checkDataType=Ai.coerceAndCheckDataType=Ai.getJSONTypes=Ai.getSchemaTypes=Ai.DataType=void 0;var awe=hA(),owe=mA(),uwe=Im(),tt=ct(),$j=Nt(),Nm;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Nm=Ai.DataType||(Ai.DataType={}));function cwe(t){let e=Mj(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Ai.getSchemaTypes=cwe;function Mj(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(awe.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ai.getJSONTypes=Mj;function lwe(t,e){let{gen:r,data:i,opts:n}=t,s=pwe(e,n.coerceTypes),a=e.length>0&&!(s.length===0&&e.length===1&&(0,owe.schemaHasRulesForType)(t,e[0]));if(a){let o=vA(e,i,n.strictNumbers,Nm.Wrong);r.if(o,()=>{s.length?fwe(t,e,s):yA(t)})}return a}Ai.coerceAndCheckDataType=lwe;var jj=new Set(["string","number","integer","boolean","null"]);function pwe(t,e){return e?t.filter(r=>jj.has(r)||e==="array"&&r==="array"):[]}function fwe(t,e,r){let{gen:i,data:n,opts:s}=t,a=i.let("dataType",(0,tt._)`typeof ${n}`),o=i.let("coerced",(0,tt._)`undefined`);s.coerceTypes==="array"&&i.if((0,tt._)`${a} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>i.assign(n,(0,tt._)`${n}[0]`).assign(a,(0,tt._)`typeof ${n}`).if(vA(e,n,s.strictNumbers),()=>i.assign(o,n))),i.if((0,tt._)`${o} !== undefined`);for(let c of r)(jj.has(c)||c==="array"&&s.coerceTypes==="array")&&u(c);i.else(),yA(t),i.endIf(),i.if((0,tt._)`${o} !== undefined`,()=>{i.assign(n,o),dwe(t,o)});function u(c){switch(c){case"string":i.elseIf((0,tt._)`${a} == "number" || ${a} == "boolean"`).assign(o,(0,tt._)`"" + ${n}`).elseIf((0,tt._)`${n} === null`).assign(o,(0,tt._)`""`);return;case"number":i.elseIf((0,tt._)`${a} == "boolean" || ${n} === null + || (${a} == "string" && ${n} && ${n} == +${n})`).assign(o,(0,tt._)`+${n}`);return;case"integer":i.elseIf((0,tt._)`${a} === "boolean" || ${n} === null + || (${a} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(o,(0,tt._)`+${n}`);return;case"boolean":i.elseIf((0,tt._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(o,!1).elseIf((0,tt._)`${n} === "true" || ${n} === 1`).assign(o,!0);return;case"null":i.elseIf((0,tt._)`${n} === "" || ${n} === 0 || ${n} === false`),i.assign(o,null);return;case"array":i.elseIf((0,tt._)`${a} === "string" || ${a} === "number" + || ${a} === "boolean" || ${n} === null`).assign(o,(0,tt._)`[${n}]`)}}}function dwe({gen:t,parentData:e,parentDataProperty:r},i){t.if((0,tt._)`${e} !== undefined`,()=>t.assign((0,tt._)`${e}[${r}]`,i))}function gA(t,e,r,i=Nm.Correct){let n=i===Nm.Correct?tt.operators.EQ:tt.operators.NEQ,s;switch(t){case"null":return(0,tt._)`${e} ${n} null`;case"array":s=(0,tt._)`Array.isArray(${e})`;break;case"object":s=(0,tt._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":s=a((0,tt._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":s=a();break;default:return(0,tt._)`typeof ${e} ${n} ${t}`}return i===Nm.Correct?s:(0,tt.not)(s);function a(o=tt.nil){return(0,tt.and)((0,tt._)`typeof ${e} == "number"`,o,r?(0,tt._)`isFinite(${e})`:tt.nil)}}Ai.checkDataType=gA;function vA(t,e,r,i){if(t.length===1)return gA(t[0],e,r,i);let n,s=(0,$j.toHash)(t);if(s.array&&s.object){let a=(0,tt._)`typeof ${e} != "object"`;n=s.null?a:(0,tt._)`!${e} || ${a}`,delete s.null,delete s.array,delete s.object}else n=tt.nil;s.number&&delete s.integer;for(let a in s)n=(0,tt.and)(n,gA(a,e,r,i));return n}Ai.checkDataTypes=vA;var hwe={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,tt._)`{type: ${t}}`:(0,tt._)`{type: ${e}}`};function yA(t){let e=mwe(t);(0,uwe.reportError)(e,hwe)}Ai.reportTypeError=yA;function mwe(t){let{gen:e,data:r,schema:i}=t,n=(0,$j.schemaRefOrVal)(t,i,"type");return{gen:e,keyword:"type",data:r,schema:i.type,schemaCode:n,schemaValue:n,parentSchema:i,params:{},it:t}}});var Vj=E(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0});cb.assignDefaults=void 0;var Af=ct(),gwe=Nt();function vwe(t,e){let{properties:r,items:i}=t.schema;if(e==="object"&&r)for(let n in r)Uj(t,n,r[n].default);else e==="array"&&Array.isArray(i)&&i.forEach((n,s)=>Uj(t,s,n.default))}cb.assignDefaults=vwe;function Uj(t,e,r){let{gen:i,compositeRule:n,data:s,opts:a}=t;if(r===void 0)return;let o=(0,Af._)`${s}${(0,Af.getProperty)(e)}`;if(n){(0,gwe.checkStrictMode)(t,`default is ignored for: ${o}`);return}let u=(0,Af._)`${o} === undefined`;a.useDefaults==="empty"&&(u=(0,Af._)`${u} || ${o} === null || ${o} === ""`),i.if(u,(0,Af._)`${o} = ${(0,Af.stringify)(r)}`)}});var gs=E(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.validateUnion=Yt.validateArray=Yt.usePattern=Yt.callValidateCode=Yt.schemaProperties=Yt.allSchemaProperties=Yt.noPropertyInData=Yt.propertyInData=Yt.isOwnProperty=Yt.hasPropFunc=Yt.reportMissingProp=Yt.checkMissingProp=Yt.checkReportMissingProp=void 0;var dr=ct(),bA=Nt(),Eu=bo(),ywe=Nt();function bwe(t,e){let{gen:r,data:i,it:n}=t;r.if(wA(r,i,e,n.opts.ownProperties),()=>{t.setParams({missingProperty:(0,dr._)`${e}`},!0),t.error()})}Yt.checkReportMissingProp=bwe;function xwe({gen:t,data:e,it:{opts:r}},i,n){return(0,dr.or)(...i.map(s=>(0,dr.and)(wA(t,e,s,r.ownProperties),(0,dr._)`${n} = ${s}`)))}Yt.checkMissingProp=xwe;function wwe(t,e){t.setParams({missingProperty:e},!0),t.error()}Yt.reportMissingProp=wwe;function Hj(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,dr._)`Object.prototype.hasOwnProperty`})}Yt.hasPropFunc=Hj;function xA(t,e,r){return(0,dr._)`${Hj(t)}.call(${e}, ${r})`}Yt.isOwnProperty=xA;function Ewe(t,e,r,i){let n=(0,dr._)`${e}${(0,dr.getProperty)(r)} !== undefined`;return i?(0,dr._)`${n} && ${xA(t,e,r)}`:n}Yt.propertyInData=Ewe;function wA(t,e,r,i){let n=(0,dr._)`${e}${(0,dr.getProperty)(r)} === undefined`;return i?(0,dr.or)(n,(0,dr.not)(xA(t,e,r))):n}Yt.noPropertyInData=wA;function Gj(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Yt.allSchemaProperties=Gj;function Cwe(t,e){return Gj(e).filter(r=>!(0,bA.alwaysValidSchema)(t,e[r]))}Yt.schemaProperties=Cwe;function Swe({schemaCode:t,data:e,it:{gen:r,topSchemaRef:i,schemaPath:n,errorPath:s},it:a},o,u,c){let l=c?(0,dr._)`${t}, ${e}, ${i}${n}`:e,f=[[Eu.default.instancePath,(0,dr.strConcat)(Eu.default.instancePath,s)],[Eu.default.parentData,a.parentData],[Eu.default.parentDataProperty,a.parentDataProperty],[Eu.default.rootData,Eu.default.rootData]];a.opts.dynamicRef&&f.push([Eu.default.dynamicAnchors,Eu.default.dynamicAnchors]);let d=(0,dr._)`${l}, ${r.object(...f)}`;return u!==dr.nil?(0,dr._)`${o}.call(${u}, ${d})`:(0,dr._)`${o}(${d})`}Yt.callValidateCode=Swe;var _we=(0,dr._)`new RegExp`;function Awe({gen:t,it:{opts:e}},r){let i=e.unicodeRegExp?"u":"",{regExp:n}=e.code,s=n(r,i);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,dr._)`${n.code==="new RegExp"?_we:(0,ywe.useFunc)(t,n)}(${r}, ${i})`})}Yt.usePattern=Awe;function Twe(t){let{gen:e,data:r,keyword:i,it:n}=t,s=e.name("valid");if(n.allErrors){let o=e.let("valid",!0);return a(()=>e.assign(o,!1)),o}return e.var(s,!0),a(()=>e.break()),s;function a(o){let u=e.const("len",(0,dr._)`${r}.length`);e.forRange("i",0,u,c=>{t.subschema({keyword:i,dataProp:c,dataPropType:bA.Type.Num},s),e.if((0,dr.not)(s),o)})}}Yt.validateArray=Twe;function Dwe(t){let{gen:e,schema:r,keyword:i,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,bA.alwaysValidSchema)(n,u))&&!n.opts.unevaluated)return;let a=e.let("valid",!1),o=e.name("_valid");e.block(()=>r.forEach((u,c)=>{let l=t.subschema({keyword:i,schemaProp:c,compositeRule:!0},o);e.assign(a,(0,dr._)`${a} || ${o}`),t.mergeValidEvaluated(l,o)||e.if((0,dr.not)(a))})),t.result(a,()=>t.reset(),()=>t.error(!0))}Yt.validateUnion=Dwe});var Wj=E(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.validateKeywordUsage=Sa.validSchemaType=Sa.funcKeywordCode=Sa.macroKeywordCode=void 0;var nn=ct(),rl=bo(),kwe=gs(),Iwe=Im();function Nwe(t,e){let{gen:r,keyword:i,schema:n,parentSchema:s,it:a}=t,o=e.macro.call(a.self,n,s,a),u=Kj(r,i,o);a.opts.validateSchema!==!1&&a.self.validateSchema(o,!0);let c=r.name("valid");t.subschema({schema:o,schemaPath:nn.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:u,compositeRule:!0},c),t.pass(c,()=>t.error(!0))}Sa.macroKeywordCode=Nwe;function Rwe(t,e){var r;let{gen:i,keyword:n,schema:s,parentSchema:a,$data:o,it:u}=t;Pwe(u,e);let c=!o&&e.compile?e.compile.call(u.self,s,a,u):e.validate,l=Kj(i,n,c),f=i.let("valid");t.block$data(f,d),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function d(){if(e.errors===!1)g(),e.modifying&&zj(t),y(()=>t.error());else{let b=e.async?h():m();e.modifying&&zj(t),y(()=>Owe(t,b))}}function h(){let b=i.let("ruleErrs",null);return i.try(()=>g((0,nn._)`await `),w=>i.assign(f,!1).if((0,nn._)`${w} instanceof ${u.ValidationError}`,()=>i.assign(b,(0,nn._)`${w}.errors`),()=>i.throw(w))),b}function m(){let b=(0,nn._)`${l}.errors`;return i.assign(b,null),g(nn.nil),b}function g(b=e.async?(0,nn._)`await `:nn.nil){let w=u.opts.passContext?rl.default.this:rl.default.self,S=!("compile"in e&&!o||e.schema===!1);i.assign(f,(0,nn._)`${b}${(0,kwe.callValidateCode)(t,l,w,S)}`,e.modifying)}function y(b){var w;i.if((0,nn.not)((w=e.valid)!==null&&w!==void 0?w:f),b)}}Sa.funcKeywordCode=Rwe;function zj(t){let{gen:e,data:r,it:i}=t;e.if(i.parentData,()=>e.assign(r,(0,nn._)`${i.parentData}[${i.parentDataProperty}]`))}function Owe(t,e){let{gen:r}=t;r.if((0,nn._)`Array.isArray(${e})`,()=>{r.assign(rl.default.vErrors,(0,nn._)`${rl.default.vErrors} === null ? ${e} : ${rl.default.vErrors}.concat(${e})`).assign(rl.default.errors,(0,nn._)`${rl.default.vErrors}.length`),(0,Iwe.extendErrors)(t)},()=>t.error())}function Pwe({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function Kj(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,nn.stringify)(r)})}function Lwe(t,e,r=!1){return!e.length||e.some(i=>i==="array"?Array.isArray(t):i==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==i||r&&typeof t>"u")}Sa.validSchemaType=Lwe;function Bwe({schema:t,opts:e,self:r,errSchemaPath:i},n,s){if(Array.isArray(n.keyword)?!n.keyword.includes(s):n.keyword!==s)throw new Error("ajv implementation error");let a=n.dependencies;if(a?.some(o=>!Object.prototype.hasOwnProperty.call(t,o)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[s])){let u=`keyword "${s}" value is invalid at path "${i}": `+r.errorsText(n.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}Sa.validateKeywordUsage=Bwe});var Xj=E(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.extendSubschemaMode=Cu.extendSubschemaData=Cu.getSubschema=void 0;var _a=ct(),Yj=Nt();function qwe(t,{keyword:e,schemaProp:r,schema:i,schemaPath:n,errSchemaPath:s,topSchemaRef:a}){if(e!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let o=t.schema[e];return r===void 0?{schema:o,schemaPath:(0,_a._)`${t.schemaPath}${(0,_a.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[r],schemaPath:(0,_a._)`${t.schemaPath}${(0,_a.getProperty)(e)}${(0,_a.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,Yj.escapeFragment)(r)}`}}if(i!==void 0){if(n===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:n,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Cu.getSubschema=qwe;function Fwe(t,e,{dataProp:r,dataPropType:i,data:n,dataTypes:s,propertyName:a}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=e;if(r!==void 0){let{errorPath:c,dataPathArr:l,opts:f}=e,d=o.let("data",(0,_a._)`${e.data}${(0,_a.getProperty)(r)}`,!0);u(d),t.errorPath=(0,_a.str)`${c}${(0,Yj.getErrorPath)(r,i,f.jsPropertySyntax)}`,t.parentDataProperty=(0,_a._)`${r}`,t.dataPathArr=[...l,t.parentDataProperty]}if(n!==void 0){let c=n instanceof _a.Name?n:o.let("data",n,!0);u(c),a!==void 0&&(t.propertyName=a)}s&&(t.dataTypes=s);function u(c){t.data=c,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,c]}}Cu.extendSubschemaData=Fwe;function $we(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:i,createErrors:n,allErrors:s}){i!==void 0&&(t.compositeRule=i),n!==void 0&&(t.createErrors=n),s!==void 0&&(t.allErrors=s),t.jtdDiscriminator=e,t.jtdMetadata=r}Cu.extendSubschemaMode=$we});var EA=E((oUe,Qj)=>{"use strict";Qj.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var i,n,s;if(Array.isArray(e)){if(i=e.length,i!=r.length)return!1;for(n=i;n--!==0;)if(!t(e[n],r[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),i=s.length,i!==Object.keys(r).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[n]))return!1;for(n=i;n--!==0;){var a=s[n];if(!t(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}});var Zj=E((uUe,Jj)=>{"use strict";var Su=Jj.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var i=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};lb(e,i,n,t,"",t)};Su.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Su.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Su.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Su.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function lb(t,e,r,i,n,s,a,o,u,c){if(i&&typeof i=="object"&&!Array.isArray(i)){e(i,n,s,a,o,u,c);for(var l in i){var f=i[l];if(Array.isArray(f)){if(l in Su.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.getSchemaRefs=En.resolveUrl=En.normalizeId=En._getFullPath=En.getFullPath=En.inlineRef=void 0;var jwe=Nt(),Uwe=EA(),Vwe=Zj(),Hwe=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Gwe(t,e=!0){return typeof t=="boolean"?!0:e===!0?!CA(t):e?e7(t)<=e:!1}En.inlineRef=Gwe;var zwe=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function CA(t){for(let e in t){if(zwe.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(CA)||typeof r=="object"&&CA(r))return!0}return!1}function e7(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!Hwe.has(r)&&(typeof t[r]=="object"&&(0,jwe.eachItem)(t[r],i=>e+=e7(i)),e===1/0))return 1/0}return e}function t7(t,e="",r){r!==!1&&(e=Tf(e));let i=t.parse(e);return r7(t,i)}En.getFullPath=t7;function r7(t,e){return t.serialize(e).split("#")[0]+"#"}En._getFullPath=r7;var Kwe=/#\/?$/;function Tf(t){return t?t.replace(Kwe,""):""}En.normalizeId=Tf;function Wwe(t,e,r){return r=Tf(r),t.resolve(e,r)}En.resolveUrl=Wwe;var Ywe=/^[a-z_][-a-z0-9._]*$/i;function Xwe(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:i}=this.opts,n=Tf(t[r]||e),s={"":n},a=t7(i,n,!1),o={},u=new Set;return Vwe(t,{allKeys:!0},(f,d,h,m)=>{if(m===void 0)return;let g=a+d,y=s[m];typeof f[r]=="string"&&(y=b.call(this,f[r])),w.call(this,f.$anchor),w.call(this,f.$dynamicAnchor),s[d]=y;function b(S){let x=this.opts.uriResolver.resolve;if(S=Tf(y?x(y,S):S),u.has(S))throw l(S);u.add(S);let k=this.refs[S];return typeof k=="string"&&(k=this.refs[k]),typeof k=="object"?c(f,k.schema,S):S!==Tf(g)&&(S[0]==="#"?(c(f,o[S],S),o[S]=f):this.refs[S]=g),S}function w(S){if(typeof S=="string"){if(!Ywe.test(S))throw new Error(`invalid anchor "${S}"`);b.call(this,`#${S}`)}}}),o;function c(f,d,h){if(d!==void 0&&!Uwe(f,d))throw l(h)}function l(f){return new Error(`reference "${f}" resolves to more than one schema`)}}En.getSchemaRefs=Xwe});var Bm=E(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.getData=_u.KeywordCxt=_u.validateFunctionCode=void 0;var o7=Bj(),i7=Rm(),_A=mA(),pb=Rm(),Qwe=Vj(),Lm=Wj(),SA=Xj(),Re=ct(),Ge=bo(),Jwe=Om(),xo=Nt(),Pm=Im();function Zwe(t){if(l7(t)&&(p7(t),c7(t))){rEe(t);return}u7(t,()=>(0,o7.topBoolOrEmptySchema)(t))}_u.validateFunctionCode=Zwe;function u7({gen:t,validateName:e,schema:r,schemaEnv:i,opts:n},s){n.code.es5?t.func(e,(0,Re._)`${Ge.default.data}, ${Ge.default.valCxt}`,i.$async,()=>{t.code((0,Re._)`"use strict"; ${n7(r,n)}`),tEe(t,n),t.code(s)}):t.func(e,(0,Re._)`${Ge.default.data}, ${eEe(n)}`,i.$async,()=>t.code(n7(r,n)).code(s))}function eEe(t){return(0,Re._)`{${Ge.default.instancePath}="", ${Ge.default.parentData}, ${Ge.default.parentDataProperty}, ${Ge.default.rootData}=${Ge.default.data}${t.dynamicRef?(0,Re._)`, ${Ge.default.dynamicAnchors}={}`:Re.nil}}={}`}function tEe(t,e){t.if(Ge.default.valCxt,()=>{t.var(Ge.default.instancePath,(0,Re._)`${Ge.default.valCxt}.${Ge.default.instancePath}`),t.var(Ge.default.parentData,(0,Re._)`${Ge.default.valCxt}.${Ge.default.parentData}`),t.var(Ge.default.parentDataProperty,(0,Re._)`${Ge.default.valCxt}.${Ge.default.parentDataProperty}`),t.var(Ge.default.rootData,(0,Re._)`${Ge.default.valCxt}.${Ge.default.rootData}`),e.dynamicRef&&t.var(Ge.default.dynamicAnchors,(0,Re._)`${Ge.default.valCxt}.${Ge.default.dynamicAnchors}`)},()=>{t.var(Ge.default.instancePath,(0,Re._)`""`),t.var(Ge.default.parentData,(0,Re._)`undefined`),t.var(Ge.default.parentDataProperty,(0,Re._)`undefined`),t.var(Ge.default.rootData,Ge.default.data),e.dynamicRef&&t.var(Ge.default.dynamicAnchors,(0,Re._)`{}`)})}function rEe(t){let{schema:e,opts:r,gen:i}=t;u7(t,()=>{r.$comment&&e.$comment&&d7(t),oEe(t),i.let(Ge.default.vErrors,null),i.let(Ge.default.errors,0),r.unevaluated&&iEe(t),f7(t),lEe(t)})}function iEe(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,Re._)`${r}.evaluated`),e.if((0,Re._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,Re._)`${t.evaluated}.props`,(0,Re._)`undefined`)),e.if((0,Re._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,Re._)`${t.evaluated}.items`,(0,Re._)`undefined`))}function n7(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,Re._)`/*# sourceURL=${r} */`:Re.nil}function nEe(t,e){if(l7(t)&&(p7(t),c7(t))){sEe(t,e);return}(0,o7.boolOrEmptySchema)(t,e)}function c7({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function l7(t){return typeof t.schema!="boolean"}function sEe(t,e){let{schema:r,gen:i,opts:n}=t;n.$comment&&r.$comment&&d7(t),uEe(t),cEe(t);let s=i.const("_errs",Ge.default.errors);f7(t,s),i.var(e,(0,Re._)`${s} === ${Ge.default.errors}`)}function p7(t){(0,xo.checkUnknownRules)(t),aEe(t)}function f7(t,e){if(t.opts.jtd)return s7(t,[],!1,e);let r=(0,i7.getSchemaTypes)(t.schema),i=(0,i7.coerceAndCheckDataType)(t,r);s7(t,r,!i,e)}function aEe(t){let{schema:e,errSchemaPath:r,opts:i,self:n}=t;e.$ref&&i.ignoreKeywordsWithRef&&(0,xo.schemaHasRulesButRef)(e,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function oEe(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,xo.checkStrictMode)(t,"default is ignored in the schema root")}function uEe(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,Jwe.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function cEe(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function d7({gen:t,schemaEnv:e,schema:r,errSchemaPath:i,opts:n}){let s=r.$comment;if(n.$comment===!0)t.code((0,Re._)`${Ge.default.self}.logger.log(${s})`);else if(typeof n.$comment=="function"){let a=(0,Re.str)`${i}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,Re._)`${Ge.default.self}.opts.$comment(${s}, ${a}, ${o}.schema)`)}}function lEe(t){let{gen:e,schemaEnv:r,validateName:i,ValidationError:n,opts:s}=t;r.$async?e.if((0,Re._)`${Ge.default.errors} === 0`,()=>e.return(Ge.default.data),()=>e.throw((0,Re._)`new ${n}(${Ge.default.vErrors})`)):(e.assign((0,Re._)`${i}.errors`,Ge.default.vErrors),s.unevaluated&&pEe(t),e.return((0,Re._)`${Ge.default.errors} === 0`))}function pEe({gen:t,evaluated:e,props:r,items:i}){r instanceof Re.Name&&t.assign((0,Re._)`${e}.props`,r),i instanceof Re.Name&&t.assign((0,Re._)`${e}.items`,i)}function s7(t,e,r,i){let{gen:n,schema:s,data:a,allErrors:o,opts:u,self:c}=t,{RULES:l}=c;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,xo.schemaHasRulesButRef)(s,l))){n.block(()=>m7(t,"$ref",l.all.$ref.definition));return}u.jtd||fEe(t,e),n.block(()=>{for(let d of l.rules)f(d);f(l.post)});function f(d){(0,_A.shouldUseGroup)(s,d)&&(d.type?(n.if((0,pb.checkDataType)(d.type,a,u.strictNumbers)),a7(t,d),e.length===1&&e[0]===d.type&&r&&(n.else(),(0,pb.reportTypeError)(t)),n.endIf()):a7(t,d),o||n.if((0,Re._)`${Ge.default.errors} === ${i||0}`))}}function a7(t,e){let{gen:r,schema:i,opts:{useDefaults:n}}=t;n&&(0,Qwe.assignDefaults)(t,e.type),r.block(()=>{for(let s of e.rules)(0,_A.shouldUseRule)(i,s)&&m7(t,s.keyword,s.definition,e.type)})}function fEe(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(dEe(t,e),t.opts.allowUnionTypes||hEe(t,e),mEe(t,t.dataTypes))}function dEe(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{h7(t.dataTypes,r)||AA(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),vEe(t,e)}}function hEe(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&AA(t,"use allowUnionTypes to allow union type keyword")}function mEe(t,e){let r=t.self.RULES.all;for(let i in r){let n=r[i];if(typeof n=="object"&&(0,_A.shouldUseRule)(t.schema,n)){let{type:s}=n.definition;s.length&&!s.some(a=>gEe(e,a))&&AA(t,`missing type "${s.join(",")}" for keyword "${i}"`)}}}function gEe(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function h7(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function vEe(t,e){let r=[];for(let i of t.dataTypes)h7(e,i)?r.push(i):e.includes("integer")&&i==="number"&&r.push("integer");t.dataTypes=r}function AA(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,xo.checkStrictMode)(t,e,t.opts.strictTypes)}var fb=class{constructor(e,r,i){if((0,Lm.validateKeywordUsage)(e,r,i),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=i,this.data=e.data,this.schema=e.schema[i],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,xo.schemaRefOrVal)(e,this.schema,i,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",g7(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Lm.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${i} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",Ge.default.errors))}result(e,r,i){this.failResult((0,Re.not)(e),r,i)}failResult(e,r,i){this.gen.if(e),i?i():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,Re.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,Re._)`${r} !== undefined && (${(0,Re.or)(this.invalid$data(),e)})`)}error(e,r,i){if(r){this.setParams(r),this._error(e,i),this.setParams({});return}this._error(e,i)}_error(e,r){(e?Pm.reportExtraError:Pm.reportError)(this,this.def.error,r)}$dataError(){(0,Pm.reportError)(this,this.def.$dataError||Pm.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Pm.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,i=Re.nil){this.gen.block(()=>{this.check$data(e,i),r()})}check$data(e=Re.nil,r=Re.nil){if(!this.$data)return;let{gen:i,schemaCode:n,schemaType:s,def:a}=this;i.if((0,Re.or)((0,Re._)`${n} === undefined`,r)),e!==Re.nil&&i.assign(e,!0),(s.length||a.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),e!==Re.nil&&i.assign(e,!1)),i.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:i,def:n,it:s}=this;return(0,Re.or)(a(),o());function a(){if(i.length){if(!(r instanceof Re.Name))throw new Error("ajv implementation error");let u=Array.isArray(i)?i:[i];return(0,Re._)`${(0,pb.checkDataTypes)(u,r,s.opts.strictNumbers,pb.DataType.Wrong)}`}return Re.nil}function o(){if(n.validateSchema){let u=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,Re._)`!${u}(${r})`}return Re.nil}}subschema(e,r){let i=(0,SA.getSubschema)(this.it,e);(0,SA.extendSubschemaData)(i,this.it,e),(0,SA.extendSubschemaMode)(i,e);let n={...this.it,...i,items:void 0,props:void 0};return nEe(n,r),n}mergeEvaluated(e,r){let{it:i,gen:n}=this;i.opts.unevaluated&&(i.props!==!0&&e.props!==void 0&&(i.props=xo.mergeEvaluated.props(n,e.props,i.props,r)),i.items!==!0&&e.items!==void 0&&(i.items=xo.mergeEvaluated.items(n,e.items,i.items,r)))}mergeValidEvaluated(e,r){let{it:i,gen:n}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return n.if(r,()=>this.mergeEvaluated(e,Re.Name)),!0}};_u.KeywordCxt=fb;function m7(t,e,r,i){let n=new fb(t,r,e);"code"in r?r.code(n,i):n.$data&&r.validate?(0,Lm.funcKeywordCode)(n,r):"macro"in r?(0,Lm.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,Lm.funcKeywordCode)(n,r)}var yEe=/^\/(?:[^~]|~0|~1)*$/,bEe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function g7(t,{dataLevel:e,dataNames:r,dataPathArr:i}){let n,s;if(t==="")return Ge.default.rootData;if(t[0]==="/"){if(!yEe.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);n=t,s=Ge.default.rootData}else{let c=bEe.exec(t);if(!c)throw new Error(`Invalid JSON-pointer: ${t}`);let l=+c[1];if(n=c[2],n==="#"){if(l>=e)throw new Error(u("property/index",l));return i[e-l]}if(l>e)throw new Error(u("data",l));if(s=r[e-l],!n)return s}let a=s,o=n.split("/");for(let c of o)c&&(s=(0,Re._)`${s}${(0,Re.getProperty)((0,xo.unescapeJsonPointer)(c))}`,a=(0,Re._)`${a} && ${s}`);return a;function u(c,l){return`Cannot access ${c} ${l} levels up, current level is ${e}`}}_u.getData=g7});var db=E(DA=>{"use strict";Object.defineProperty(DA,"__esModule",{value:!0});var TA=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};DA.default=TA});var hb=E(NA=>{"use strict";Object.defineProperty(NA,"__esModule",{value:!0});var kA=Om(),IA=class extends Error{constructor(e,r,i,n){super(n||`can't resolve reference ${i} from id ${r}`),this.missingRef=(0,kA.resolveUrl)(e,r,i),this.missingSchema=(0,kA.normalizeId)((0,kA.getFullPath)(e,this.missingRef))}};NA.default=IA});var gb=E(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.resolveSchema=vs.getCompilingSchema=vs.resolveRef=vs.compileSchema=vs.SchemaEnv=void 0;var Fs=ct(),xEe=db(),il=bo(),$s=Om(),v7=Nt(),wEe=Bm(),Df=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let i;typeof e.schema=="object"&&(i=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,$s.normalizeId)(i?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=i?.$async,this.refs={}}};vs.SchemaEnv=Df;function OA(t){let e=y7.call(this,t);if(e)return e;let r=(0,$s.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:i,lines:n}=this.opts.code,{ownProperties:s}=this.opts,a=new Fs.CodeGen(this.scope,{es5:i,lines:n,ownProperties:s}),o;t.$async&&(o=a.scopeValue("Error",{ref:xEe.default,code:(0,Fs._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");t.validateName=u;let c={gen:a,allErrors:this.opts.allErrors,data:il.default.data,parentData:il.default.parentData,parentDataProperty:il.default.parentDataProperty,dataNames:[il.default.data],dataPathArr:[Fs.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Fs.stringify)(t.schema)}:{ref:t.schema}),validateName:u,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Fs.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Fs._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(t),(0,wEe.validateFunctionCode)(c),a.optimize(this.opts.code.optimize);let f=a.toString();l=`${a.scopeRefs(il.default.scope)}return ${f}`,this.opts.code.process&&(l=this.opts.code.process(l,t));let h=new Function(`${il.default.self}`,`${il.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:m,items:g}=c;h.evaluated={props:m instanceof Fs.Name?void 0:m,items:g instanceof Fs.Name?void 0:g,dynamicProps:m instanceof Fs.Name,dynamicItems:g instanceof Fs.Name},h.source&&(h.source.evaluated=(0,Fs.stringify)(h.evaluated))}return t.validate=h,t}catch(f){throw delete t.validate,delete t.validateName,l&&this.logger.error("Error compiling schema, function code:",l),f}finally{this._compilations.delete(t)}}vs.compileSchema=OA;function EEe(t,e,r){var i;r=(0,$s.resolveUrl)(this.opts.uriResolver,e,r);let n=t.refs[r];if(n)return n;let s=_Ee.call(this,t,r);if(s===void 0){let a=(i=t.localRefs)===null||i===void 0?void 0:i[r],{schemaId:o}=this.opts;a&&(s=new Df({schema:a,schemaId:o,root:t,baseId:e}))}if(s!==void 0)return t.refs[r]=CEe.call(this,s)}vs.resolveRef=EEe;function CEe(t){return(0,$s.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:OA.call(this,t)}function y7(t){for(let e of this._compilations)if(SEe(e,t))return e}vs.getCompilingSchema=y7;function SEe(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function _Ee(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||mb.call(this,t,e)}function mb(t,e){let r=this.opts.uriResolver.parse(e),i=(0,$s._getFullPath)(this.opts.uriResolver,r),n=(0,$s.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&i===n)return RA.call(this,r,t);let s=(0,$s.normalizeId)(i),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let o=mb.call(this,t,a);return typeof o?.schema!="object"?void 0:RA.call(this,r,o)}if(typeof a?.schema=="object"){if(a.validate||OA.call(this,a),s===(0,$s.normalizeId)(e)){let{schema:o}=a,{schemaId:u}=this.opts,c=o[u];return c&&(n=(0,$s.resolveUrl)(this.opts.uriResolver,n,c)),new Df({schema:o,schemaId:u,root:t,baseId:n})}return RA.call(this,r,a)}}vs.resolveSchema=mb;var AEe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function RA(t,{baseId:e,schema:r,root:i}){var n;if(((n=t.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(let o of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,v7.unescapeFragment)(o)];if(u===void 0)return;r=u;let c=typeof r=="object"&&r[this.opts.schemaId];!AEe.has(o)&&c&&(e=(0,$s.resolveUrl)(this.opts.uriResolver,e,c))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,v7.schemaHasRulesButRef)(r,this.RULES)){let o=(0,$s.resolveUrl)(this.opts.uriResolver,e,r.$ref);s=mb.call(this,i,o)}let{schemaId:a}=this.opts;if(s=s||new Df({schema:r,schemaId:a,root:i,baseId:e}),s.schema!==s.root.schema)return s}});var b7=E((hUe,TEe)=>{TEe.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var w7=E((vb,x7)=>{(function(t,e){typeof vb=="object"&&typeof x7<"u"?e(vb):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(vb,function(t){"use strict";function e(){for(var P=arguments.length,I=Array(P),$=0;$1){I[0]=I[0].slice(0,-1);for(var W=I.length-1,X=1;X= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G=h-m,J=Math.floor,q=String.fromCharCode;function Z(P){throw new RangeError(j[P])}function ue(P,I){for(var $=[],W=P.length;W--;)$[W]=I(P[W]);return $}function Ae(P,I){var $=P.split("@"),W="";$.length>1&&(W=$[0]+"@",P=$[1]),P=P.replace(L,".");var X=P.split("."),we=ue(X,I).join(".");return W+we}function M(P){for(var I=[],$=0,W=P.length;$=55296&&X<=56319&&$>1,I+=J(I/$);I>G*g>>1;X+=h)I=J(I/G);return J(X+(G+1)*I/(I+y))},ae=function(I){var $=[],W=I.length,X=0,we=S,We=w,yt=I.lastIndexOf(x);yt<0&&(yt=0);for(var Tt=0;Tt=128&&Z("not-basic"),$.push(I.charCodeAt(Tt));for(var Er=yt>0?yt+1:0;Er=W&&Z("invalid-input");var rr=z(I.charCodeAt(Er++));(rr>=h||rr>J((d-X)/tr))&&Z("overflow"),X+=rr*tr;var Ct=Cr<=We?m:Cr>=We+g?g:Cr-We;if(rrJ(d/ir)&&Z("overflow"),tr*=ir}var Pt=$.length+1;We=he(X-dt,Pt,dt==0),J(X/Pt)>d-we&&Z("overflow"),we+=J(X/Pt),X%=Pt,$.splice(X++,0,we)}return String.fromCodePoint.apply(String,$)},xe=function(I){var $=[];I=M(I);var W=I.length,X=S,we=0,We=w,yt=!0,Tt=!1,Er=void 0;try{for(var dt=I[Symbol.iterator](),tr;!(yt=(tr=dt.next()).done);yt=!0){var Cr=tr.value;Cr<128&&$.push(q(Cr))}}catch(eo){Tt=!0,Er=eo}finally{try{!yt&&dt.return&&dt.return()}finally{if(Tt)throw Er}}var rr=$.length,Ct=rr;for(rr&&$.push(x);Ct=X&&vrJ((d-we)/Hi)&&Z("overflow"),we+=(ir-X)*Hi,X=ir;var Zn=!0,Za=!1,es=void 0;try{for(var ac=I[Symbol.iterator](),oc;!(Zn=(oc=ac.next()).done);Zn=!0){var mn=oc.value;if(mnd&&Z("overflow"),mn==X){for(var Wr=we,Go=h;;Go+=h){var ts=Go<=We?m:Go>=We+g?g:Go-We;if(Wr>6|192).toString(16).toUpperCase()+"%"+(I&63|128).toString(16).toUpperCase():$="%"+(I>>12|224).toString(16).toUpperCase()+"%"+(I>>6&63|128).toString(16).toUpperCase()+"%"+(I&63|128).toString(16).toUpperCase(),$}function rt(P){for(var I="",$=0,W=P.length;$=194&&X<224){if(W-$>=6){var we=parseInt(P.substr($+4,2),16);I+=String.fromCharCode((X&31)<<6|we&63)}else I+=P.substr($,6);$+=6}else if(X>=224){if(W-$>=9){var We=parseInt(P.substr($+4,2),16),yt=parseInt(P.substr($+7,2),16);I+=String.fromCharCode((X&15)<<12|(We&63)<<6|yt&63)}else I+=P.substr($,9);$+=9}else I+=P.substr($,3),$+=3}return I}function wt(P,I){function $(W){var X=rt(W);return X.match(I.UNRESERVED)?X:W}return P.scheme&&(P.scheme=String(P.scheme).replace(I.PCT_ENCODED,$).toLowerCase().replace(I.NOT_SCHEME,"")),P.userinfo!==void 0&&(P.userinfo=String(P.userinfo).replace(I.PCT_ENCODED,$).replace(I.NOT_USERINFO,me).replace(I.PCT_ENCODED,n)),P.host!==void 0&&(P.host=String(P.host).replace(I.PCT_ENCODED,$).toLowerCase().replace(I.NOT_HOST,me).replace(I.PCT_ENCODED,n)),P.path!==void 0&&(P.path=String(P.path).replace(I.PCT_ENCODED,$).replace(P.scheme?I.NOT_PATH:I.NOT_PATH_NOSCHEME,me).replace(I.PCT_ENCODED,n)),P.query!==void 0&&(P.query=String(P.query).replace(I.PCT_ENCODED,$).replace(I.NOT_QUERY,me).replace(I.PCT_ENCODED,n)),P.fragment!==void 0&&(P.fragment=String(P.fragment).replace(I.PCT_ENCODED,$).replace(I.NOT_FRAGMENT,me).replace(I.PCT_ENCODED,n)),P}function ie(P){return P.replace(/^0*(.*)/,"$1")||"0"}function Oe(P,I){var $=P.match(I.IPV4ADDRESS)||[],W=l($,2),X=W[1];return X?X.split(".").map(ie).join("."):P}function ee(P,I){var $=P.match(I.IPV6ADDRESS)||[],W=l($,3),X=W[1],we=W[2];if(X){for(var We=X.toLowerCase().split("::").reverse(),yt=l(We,2),Tt=yt[0],Er=yt[1],dt=Er?Er.split(":").map(ie):[],tr=Tt.split(":").map(ie),Cr=I.IPV4ADDRESS.test(tr[tr.length-1]),rr=Cr?7:8,Ct=tr.length-rr,ir=Array(rr),Pt=0;Pt1){var oe=ir.slice(0,Ri.index),vr=ir.slice(Ri.index+Ri.length);hn=oe.join(":")+"::"+vr.join(":")}else hn=ir.join(":");return we&&(hn+="%"+we),hn}else return P}var Ce=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,$e="".match(/(){0}/)[1]===void 0;function Me(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$={},W=I.iri!==!1?c:u;I.reference==="suffix"&&(P=(I.scheme?I.scheme+":":"")+"//"+P);var X=P.match(Ce);if(X){$e?($.scheme=X[1],$.userinfo=X[3],$.host=X[4],$.port=parseInt(X[5],10),$.path=X[6]||"",$.query=X[7],$.fragment=X[8],isNaN($.port)&&($.port=X[5])):($.scheme=X[1]||void 0,$.userinfo=P.indexOf("@")!==-1?X[3]:void 0,$.host=P.indexOf("//")!==-1?X[4]:void 0,$.port=parseInt(X[5],10),$.path=X[6]||"",$.query=P.indexOf("?")!==-1?X[7]:void 0,$.fragment=P.indexOf("#")!==-1?X[8]:void 0,isNaN($.port)&&($.port=P.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?X[4]:void 0)),$.host&&($.host=ee(Oe($.host,W),W)),$.scheme===void 0&&$.userinfo===void 0&&$.host===void 0&&$.port===void 0&&!$.path&&$.query===void 0?$.reference="same-document":$.scheme===void 0?$.reference="relative":$.fragment===void 0?$.reference="absolute":$.reference="uri",I.reference&&I.reference!=="suffix"&&I.reference!==$.reference&&($.error=$.error||"URI is not a "+I.reference+" reference.");var we=ve[(I.scheme||$.scheme||"").toLowerCase()];if(!I.unicodeSupport&&(!we||!we.unicodeSupport)){if($.host&&(I.domainHost||we&&we.domainHost))try{$.host=Ve.toASCII($.host.replace(W.PCT_ENCODED,rt).toLowerCase())}catch(We){$.error=$.error||"Host's domain name can not be converted to ASCII via punycode: "+We}wt($,u)}else wt($,W);we&&we.parse&&we.parse($,I)}else $.error=$.error||"URI can not be parsed.";return $}function ze(P,I){var $=I.iri!==!1?c:u,W=[];return P.userinfo!==void 0&&(W.push(P.userinfo),W.push("@")),P.host!==void 0&&W.push(ee(Oe(String(P.host),$),$).replace($.IPV6ADDRESS,function(X,we,We){return"["+we+(We?"%25"+We:"")+"]"})),(typeof P.port=="number"||typeof P.port=="string")&&(W.push(":"),W.push(String(P.port))),W.length?W.join(""):void 0}var ea=/^\.\.?\//,_s=/^\/\.(\/|$)/,tc=/^\/\.\.(\/|$)/,Fd=/^\/?(?:.|\n)*?(?=\/|$)/;function Ni(P){for(var I=[];P.length;)if(P.match(ea))P=P.replace(ea,"");else if(P.match(_s))P=P.replace(_s,"/");else if(P.match(tc))P=P.replace(tc,"/"),I.pop();else if(P==="."||P==="..")P="";else{var $=P.match(Fd);if($){var W=$[0];P=P.slice(W.length),I.push(W)}else throw new Error("Unexpected dot segment condition")}return I.join("")}function Ln(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=I.iri?c:u,W=[],X=ve[(I.scheme||P.scheme||"").toLowerCase()];if(X&&X.serialize&&X.serialize(P,I),P.host&&!$.IPV6ADDRESS.test(P.host)){if(I.domainHost||X&&X.domainHost)try{P.host=I.iri?Ve.toUnicode(P.host):Ve.toASCII(P.host.replace($.PCT_ENCODED,rt).toLowerCase())}catch(yt){P.error=P.error||"Host's domain name can not be converted to "+(I.iri?"Unicode":"ASCII")+" via punycode: "+yt}}wt(P,$),I.reference!=="suffix"&&P.scheme&&(W.push(P.scheme),W.push(":"));var we=ze(P,I);if(we!==void 0&&(I.reference!=="suffix"&&W.push("//"),W.push(we),P.path&&P.path.charAt(0)!=="/"&&W.push("/")),P.path!==void 0){var We=P.path;!I.absolutePath&&(!X||!X.absolutePath)&&(We=Ni(We)),we===void 0&&(We=We.replace(/^\/\//,"/%2F")),W.push(We)}return P.query!==void 0&&(W.push("?"),W.push(P.query)),P.fragment!==void 0&&(W.push("#"),W.push(P.fragment)),W.join("")}function $d(P,I){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=arguments[3],X={};return W||(P=Me(Ln(P,$),$),I=Me(Ln(I,$),$)),$=$||{},!$.tolerant&&I.scheme?(X.scheme=I.scheme,X.userinfo=I.userinfo,X.host=I.host,X.port=I.port,X.path=Ni(I.path||""),X.query=I.query):(I.userinfo!==void 0||I.host!==void 0||I.port!==void 0?(X.userinfo=I.userinfo,X.host=I.host,X.port=I.port,X.path=Ni(I.path||""),X.query=I.query):(I.path?(I.path.charAt(0)==="/"?X.path=Ni(I.path):((P.userinfo!==void 0||P.host!==void 0||P.port!==void 0)&&!P.path?X.path="/"+I.path:P.path?X.path=P.path.slice(0,P.path.lastIndexOf("/")+1)+I.path:X.path=I.path,X.path=Ni(X.path)),X.query=I.query):(X.path=P.path,I.query!==void 0?X.query=I.query:X.query=P.query),X.userinfo=P.userinfo,X.host=P.host,X.port=P.port),X.scheme=P.scheme),X.fragment=I.fragment,X}function xg(P,I,$){var W=a({scheme:"null"},$);return Ln($d(Me(P,W),Me(I,W),W,!0),W)}function gr(P,I){return typeof P=="string"?P=Ln(Me(P,I),I):i(P)==="object"&&(P=Me(Ln(P,I),I)),P}function Qn(P,I,$){return typeof P=="string"?P=Ln(Me(P,$),$):i(P)==="object"&&(P=Ln(P,$)),typeof I=="string"?I=Ln(Me(I,$),$):i(I)==="object"&&(I=Ln(I,$)),P===I}function wi(P,I){return P&&P.toString().replace(!I||!I.iri?u.ESCAPE:c.ESCAPE,me)}function As(P,I){return P&&P.toString().replace(!I||!I.iri?u.PCT_ENCODED:c.PCT_ENCODED,rt)}var ta={scheme:"http",domainHost:!0,parse:function(I,$){return I.host||(I.error=I.error||"HTTP URIs must have a host."),I},serialize:function(I,$){var W=String(I.scheme).toLowerCase()==="https";return(I.port===(W?443:80)||I.port==="")&&(I.port=void 0),I.path||(I.path="/"),I}},Ne={scheme:"https",domainHost:ta.domainHost,parse:ta.parse,serialize:ta.serialize};function Gl(P){return typeof P.secure=="boolean"?P.secure:String(P.scheme).toLowerCase()==="wss"}var rc={scheme:"ws",domainHost:!0,parse:function(I,$){var W=I;return W.secure=Gl(W),W.resourceName=(W.path||"/")+(W.query?"?"+W.query:""),W.path=void 0,W.query=void 0,W},serialize:function(I,$){if((I.port===(Gl(I)?443:80)||I.port==="")&&(I.port=void 0),typeof I.secure=="boolean"&&(I.scheme=I.secure?"wss":"ws",I.secure=void 0),I.resourceName){var W=I.resourceName.split("?"),X=l(W,2),we=X[0],We=X[1];I.path=we&&we!=="/"?we:void 0,I.query=We,I.resourceName=void 0}return I.fragment=void 0,I}},wg={scheme:"wss",domainHost:rc.domainHost,parse:rc.parse,serialize:rc.serialize},ic={},Md=!0,jd="[A-Za-z0-9\\-\\.\\_\\~"+(Md?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Jn="[0-9A-Fa-f]",zl=r(r("%[EFef]"+Jn+"%"+Jn+Jn+"%"+Jn+Jn)+"|"+r("%[89A-Fa-f]"+Jn+"%"+Jn+Jn)+"|"+r("%"+Jn+Jn)),pn="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",dn="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Qt=e(dn,'[\\"\\\\]'),Vo="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",He=new RegExp(jd,"g"),Ja=new RegExp(zl,"g"),yx=new RegExp(e("[^]",pn,"[\\.]",'[\\"]',Qt),"g"),nc=new RegExp(e("[^]",jd,Vo),"g"),ra=nc;function Ud(P){var I=rt(P);return I.match(He)?I:P}var Ho={scheme:"mailto",parse:function(I,$){var W=I,X=W.to=W.path?W.path.split(","):[];if(W.path=void 0,W.query){for(var we=!1,We={},yt=W.query.split("&"),Tt=0,Er=yt.length;Tt{"use strict";Object.defineProperty(PA,"__esModule",{value:!0});var E7=w7();E7.code='require("ajv/dist/runtime/uri").default';PA.default=E7});var N7=E(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.CodeGen=Ti.Name=Ti.nil=Ti.stringify=Ti.str=Ti._=Ti.KeywordCxt=void 0;var DEe=Bm();Object.defineProperty(Ti,"KeywordCxt",{enumerable:!0,get:function(){return DEe.KeywordCxt}});var kf=ct();Object.defineProperty(Ti,"_",{enumerable:!0,get:function(){return kf._}});Object.defineProperty(Ti,"str",{enumerable:!0,get:function(){return kf.str}});Object.defineProperty(Ti,"stringify",{enumerable:!0,get:function(){return kf.stringify}});Object.defineProperty(Ti,"nil",{enumerable:!0,get:function(){return kf.nil}});Object.defineProperty(Ti,"Name",{enumerable:!0,get:function(){return kf.Name}});Object.defineProperty(Ti,"CodeGen",{enumerable:!0,get:function(){return kf.CodeGen}});var kEe=db(),D7=hb(),IEe=hA(),qm=gb(),NEe=ct(),Fm=Om(),yb=Rm(),BA=Nt(),S7=b7(),REe=C7(),k7=(t,e)=>new RegExp(t,e);k7.code="new RegExp";var OEe=["removeAdditional","useDefaults","coerceTypes"],PEe=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),LEe={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},BEe={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_7=200;function qEe(t){var e,r,i,n,s,a,o,u,c,l,f,d,h,m,g,y,b,w,S,x,k,R,L,j,G;let J=t.strict,q=(e=t.code)===null||e===void 0?void 0:e.optimize,Z=q===!0||q===void 0?1:q||0,ue=(i=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&i!==void 0?i:k7,Ae=(n=t.uriResolver)!==null&&n!==void 0?n:REe.default;return{strictSchema:(a=(s=t.strictSchema)!==null&&s!==void 0?s:J)!==null&&a!==void 0?a:!0,strictNumbers:(u=(o=t.strictNumbers)!==null&&o!==void 0?o:J)!==null&&u!==void 0?u:!0,strictTypes:(l=(c=t.strictTypes)!==null&&c!==void 0?c:J)!==null&&l!==void 0?l:"log",strictTuples:(d=(f=t.strictTuples)!==null&&f!==void 0?f:J)!==null&&d!==void 0?d:"log",strictRequired:(m=(h=t.strictRequired)!==null&&h!==void 0?h:J)!==null&&m!==void 0?m:!1,code:t.code?{...t.code,optimize:Z,regExp:ue}:{optimize:Z,regExp:ue},loopRequired:(g=t.loopRequired)!==null&&g!==void 0?g:_7,loopEnum:(y=t.loopEnum)!==null&&y!==void 0?y:_7,meta:(b=t.meta)!==null&&b!==void 0?b:!0,messages:(w=t.messages)!==null&&w!==void 0?w:!0,inlineRefs:(S=t.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(x=t.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(k=t.addUsedSchema)!==null&&k!==void 0?k:!0,validateSchema:(R=t.validateSchema)!==null&&R!==void 0?R:!0,validateFormats:(L=t.validateFormats)!==null&&L!==void 0?L:!0,unicodeRegExp:(j=t.unicodeRegExp)!==null&&j!==void 0?j:!0,int32range:(G=t.int32range)!==null&&G!==void 0?G:!0,uriResolver:Ae}}var $m=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...qEe(e)};let{es5:r,lines:i}=this.opts.code;this.scope=new NEe.ValueScope({scope:{},prefixes:PEe,es5:r,lines:i}),this.logger=VEe(e.logger);let n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,IEe.getRules)(),A7.call(this,LEe,e,"NOT SUPPORTED"),A7.call(this,BEe,e,"DEPRECATED","warn"),this._metaOpts=jEe.call(this),e.formats&&$Ee.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&MEe.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),FEe.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:i}=this.opts,n=S7;i==="id"&&(n={...S7},n.id=n.$id,delete n.$id),r&&e&&this.addMetaSchema(n,n[i],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let i;if(typeof e=="string"){if(i=this.getSchema(e),!i)throw new Error(`no schema with key or ref "${e}"`)}else i=this.compile(e);let n=i(r);return"$async"in i||(this.errors=i.errors),n}compile(e,r){let i=this._addSchema(e,r);return i.validate||this._compileSchemaEnv(i)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:i}=this.opts;return n.call(this,e,r);async function n(l,f){await s.call(this,l.$schema);let d=this._addSchema(l,f);return d.validate||a.call(this,d)}async function s(l){l&&!this.getSchema(l)&&await n.call(this,{$ref:l},!0)}async function a(l){try{return this._compileSchemaEnv(l)}catch(f){if(!(f instanceof D7.default))throw f;return o.call(this,f),await u.call(this,f.missingSchema),a.call(this,l)}}function o({missingSchema:l,missingRef:f}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${f} cannot be resolved`)}async function u(l){let f=await c.call(this,l);this.refs[l]||await s.call(this,f.$schema),this.refs[l]||this.addSchema(f,l,r)}async function c(l){let f=this._loading[l];if(f)return f;try{return await(this._loading[l]=i(l))}finally{delete this._loading[l]}}}addSchema(e,r,i,n=this.opts.validateSchema){if(Array.isArray(e)){for(let a of e)this.addSchema(a,void 0,i,n);return this}let s;if(typeof e=="object"){let{schemaId:a}=this.opts;if(s=e[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Fm.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(e,i,r,n,!0),this}addMetaSchema(e,r,i=this.opts.validateSchema){return this.addSchema(e,r,!0,i),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let i;if(i=e.$schema,i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this.opts.defaultMeta||this.defaultMeta(),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(i,e);if(!n&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return n}getSchema(e){let r;for(;typeof(r=T7.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:i}=this.opts,n=new qm.SchemaEnv({schema:{},schemaId:i});if(r=qm.resolveSchema.call(this,n,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=T7.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let i=e[this.opts.schemaId];return i&&(i=(0,Fm.normalizeId)(i),delete this.schemas[i],delete this.refs[i]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let i;if(typeof e=="string")i=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=i);else if(typeof e=="object"&&r===void 0){if(r=e,i=r.keyword,Array.isArray(i)&&!i.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(GEe.call(this,i,r),!r)return(0,BA.eachItem)(i,s=>LA.call(this,s)),this;KEe.call(this,r);let n={...r,type:(0,yb.getJSONTypes)(r.type),schemaType:(0,yb.getJSONTypes)(r.schemaType)};return(0,BA.eachItem)(i,n.type.length===0?s=>LA.call(this,s,n):s=>n.type.forEach(a=>LA.call(this,s,n,a))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let i of r.rules){let n=i.rules.findIndex(s=>s.keyword===e);n>=0&&i.rules.splice(n,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:i="data"}={}){return!e||e.length===0?"No errors":e.map(n=>`${i}${n.instancePath} ${n.message}`).reduce((n,s)=>n+r+s)}$dataMetaSchema(e,r){let i=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let n of r){let s=n.split("/").slice(1),a=e;for(let o of s)a=a[o];for(let o in i){let u=i[o];if(typeof u!="object")continue;let{$data:c}=u.definition,l=a[o];c&&l&&(a[o]=I7(l))}}return e}_removeAllSchemas(e,r){for(let i in e){let n=e[i];(!r||r.test(i))&&(typeof n=="string"?delete e[i]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[i]))}}_addSchema(e,r,i,n=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:o}=this.opts;if(typeof e=="object")a=e[o];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(u!==void 0)return u;i=(0,Fm.normalizeId)(a||i);let c=Fm.getSchemaRefs.call(this,e,i);return u=new qm.SchemaEnv({schema:e,schemaId:o,meta:r,baseId:i,localRefs:c}),this._cache.set(u.schema,u),s&&!i.startsWith("#")&&(i&&this._checkUnique(i),this.refs[i]=u),n&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):qm.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{qm.compileSchema.call(this,e)}finally{this.opts=r}}};Ti.default=$m;$m.ValidationError=kEe.default;$m.MissingRefError=D7.default;function A7(t,e,r,i="error"){for(let n in t){let s=n;s in e&&this.logger[i](`${r}: option ${n}. ${t[s]}`)}}function T7(t){return t=(0,Fm.normalizeId)(t),this.schemas[t]||this.refs[t]}function FEe(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function $Ee(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function MEe(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function jEe(){let t={...this.opts};for(let e of OEe)delete t[e];return t}var UEe={log(){},warn(){},error(){}};function VEe(t){if(t===!1)return UEe;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var HEe=/^[a-z_$][a-z0-9_$:-]*$/i;function GEe(t,e){let{RULES:r}=this;if((0,BA.eachItem)(t,i=>{if(r.keywords[i])throw new Error(`Keyword ${i} is already defined`);if(!HEe.test(i))throw new Error(`Keyword ${i} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function LA(t,e,r){var i;let n=e?.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=n?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[t]=!0,!e)return;let o={keyword:t,definition:{...e,type:(0,yb.getJSONTypes)(e.type),schemaType:(0,yb.getJSONTypes)(e.schemaType)}};e.before?zEe.call(this,a,o,e.before):a.rules.push(o),s.all[t]=o,(i=e.implements)===null||i===void 0||i.forEach(u=>this.addKeyword(u))}function zEe(t,e,r){let i=t.rules.findIndex(n=>n.keyword===r);i>=0?t.rules.splice(i,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function KEe(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=I7(e)),t.validateSchema=this.compile(e,!0))}var WEe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function I7(t){return{anyOf:[t,WEe]}}});var R7=E(qA=>{"use strict";Object.defineProperty(qA,"__esModule",{value:!0});var YEe={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};qA.default=YEe});var B7=E(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.callRef=nl.getValidate=void 0;var XEe=hb(),O7=gs(),Cn=ct(),If=bo(),P7=gb(),bb=Nt(),QEe={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:i}=t,{baseId:n,schemaEnv:s,validateName:a,opts:o,self:u}=i,{root:c}=s;if((r==="#"||r==="#/")&&n===c.baseId)return f();let l=P7.resolveRef.call(u,c,n,r);if(l===void 0)throw new XEe.default(i.opts.uriResolver,n,r);if(l instanceof P7.SchemaEnv)return d(l);return h(l);function f(){if(s===c)return xb(t,a,s,s.$async);let m=e.scopeValue("root",{ref:c});return xb(t,(0,Cn._)`${m}.validate`,c,c.$async)}function d(m){let g=L7(t,m);xb(t,g,m,m.$async)}function h(m){let g=e.scopeValue("schema",o.code.source===!0?{ref:m,code:(0,Cn.stringify)(m)}:{ref:m}),y=e.name("valid"),b=t.subschema({schema:m,dataTypes:[],schemaPath:Cn.nil,topSchemaRef:g,errSchemaPath:r},y);t.mergeEvaluated(b),t.ok(y)}}};function L7(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,Cn._)`${r.scopeValue("wrapper",{ref:e})}.validate`}nl.getValidate=L7;function xb(t,e,r,i){let{gen:n,it:s}=t,{allErrors:a,schemaEnv:o,opts:u}=s,c=u.passContext?If.default.this:Cn.nil;i?l():f();function l(){if(!o.$async)throw new Error("async schema referenced by sync schema");let m=n.let("valid");n.try(()=>{n.code((0,Cn._)`await ${(0,O7.callValidateCode)(t,e,c)}`),h(e),a||n.assign(m,!0)},g=>{n.if((0,Cn._)`!(${g} instanceof ${s.ValidationError})`,()=>n.throw(g)),d(g),a||n.assign(m,!1)}),t.ok(m)}function f(){t.result((0,O7.callValidateCode)(t,e,c),()=>h(e),()=>d(e))}function d(m){let g=(0,Cn._)`${m}.errors`;n.assign(If.default.vErrors,(0,Cn._)`${If.default.vErrors} === null ? ${g} : ${If.default.vErrors}.concat(${g})`),n.assign(If.default.errors,(0,Cn._)`${If.default.vErrors}.length`)}function h(m){var g;if(!s.opts.unevaluated)return;let y=(g=r?.validate)===null||g===void 0?void 0:g.evaluated;if(s.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(s.props=bb.mergeEvaluated.props(n,y.props,s.props));else{let b=n.var("props",(0,Cn._)`${m}.evaluated.props`);s.props=bb.mergeEvaluated.props(n,b,s.props,Cn.Name)}if(s.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(s.items=bb.mergeEvaluated.items(n,y.items,s.items));else{let b=n.var("items",(0,Cn._)`${m}.evaluated.items`);s.items=bb.mergeEvaluated.items(n,b,s.items,Cn.Name)}}}nl.callRef=xb;nl.default=QEe});var q7=E(FA=>{"use strict";Object.defineProperty(FA,"__esModule",{value:!0});var JEe=R7(),ZEe=B7(),eCe=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",JEe.default,ZEe.default];FA.default=eCe});var F7=E($A=>{"use strict";Object.defineProperty($A,"__esModule",{value:!0});var wb=ct(),Au=wb.operators,Eb={maximum:{okStr:"<=",ok:Au.LTE,fail:Au.GT},minimum:{okStr:">=",ok:Au.GTE,fail:Au.LT},exclusiveMaximum:{okStr:"<",ok:Au.LT,fail:Au.GTE},exclusiveMinimum:{okStr:">",ok:Au.GT,fail:Au.LTE}},tCe={message:({keyword:t,schemaCode:e})=>(0,wb.str)`must be ${Eb[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,wb._)`{comparison: ${Eb[t].okStr}, limit: ${e}}`},rCe={keyword:Object.keys(Eb),type:"number",schemaType:"number",$data:!0,error:tCe,code(t){let{keyword:e,data:r,schemaCode:i}=t;t.fail$data((0,wb._)`${r} ${Eb[e].fail} ${i} || isNaN(${r})`)}};$A.default=rCe});var $7=E(MA=>{"use strict";Object.defineProperty(MA,"__esModule",{value:!0});var Mm=ct(),iCe={message:({schemaCode:t})=>(0,Mm.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Mm._)`{multipleOf: ${t}}`},nCe={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:iCe,code(t){let{gen:e,data:r,schemaCode:i,it:n}=t,s=n.opts.multipleOfPrecision,a=e.let("res"),o=s?(0,Mm._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Mm._)`${a} !== parseInt(${a})`;t.fail$data((0,Mm._)`(${i} === 0 || (${a} = ${r}/${i}, ${o}))`)}};MA.default=nCe});var j7=E(jA=>{"use strict";Object.defineProperty(jA,"__esModule",{value:!0});function M7(t){let e=t.length,r=0,i=0,n;for(;i=55296&&n<=56319&&i{"use strict";Object.defineProperty(UA,"__esModule",{value:!0});var sl=ct(),sCe=Nt(),aCe=j7(),oCe={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,sl.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,sl._)`{limit: ${t}}`},uCe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:oCe,code(t){let{keyword:e,data:r,schemaCode:i,it:n}=t,s=e==="maxLength"?sl.operators.GT:sl.operators.LT,a=n.opts.unicode===!1?(0,sl._)`${r}.length`:(0,sl._)`${(0,sCe.useFunc)(t.gen,aCe.default)}(${r})`;t.fail$data((0,sl._)`${a} ${s} ${i}`)}};UA.default=uCe});var V7=E(VA=>{"use strict";Object.defineProperty(VA,"__esModule",{value:!0});var cCe=gs(),Cb=ct(),lCe={message:({schemaCode:t})=>(0,Cb.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Cb._)`{pattern: ${t}}`},pCe={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:lCe,code(t){let{data:e,$data:r,schema:i,schemaCode:n,it:s}=t,a=s.opts.unicodeRegExp?"u":"",o=r?(0,Cb._)`(new RegExp(${n}, ${a}))`:(0,cCe.usePattern)(t,i);t.fail$data((0,Cb._)`!${o}.test(${e})`)}};VA.default=pCe});var H7=E(HA=>{"use strict";Object.defineProperty(HA,"__esModule",{value:!0});var jm=ct(),fCe={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,jm.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,jm._)`{limit: ${t}}`},dCe={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:fCe,code(t){let{keyword:e,data:r,schemaCode:i}=t,n=e==="maxProperties"?jm.operators.GT:jm.operators.LT;t.fail$data((0,jm._)`Object.keys(${r}).length ${n} ${i}`)}};HA.default=dCe});var G7=E(GA=>{"use strict";Object.defineProperty(GA,"__esModule",{value:!0});var Um=gs(),Vm=ct(),hCe=Nt(),mCe={message:({params:{missingProperty:t}})=>(0,Vm.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Vm._)`{missingProperty: ${t}}`},gCe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:mCe,code(t){let{gen:e,schema:r,schemaCode:i,data:n,$data:s,it:a}=t,{opts:o}=a;if(!s&&r.length===0)return;let u=r.length>=o.loopRequired;if(a.allErrors?c():l(),o.strictRequired){let h=t.parentSchema.properties,{definedProperties:m}=t.it;for(let g of r)if(h?.[g]===void 0&&!m.has(g)){let y=a.schemaEnv.baseId+a.errSchemaPath,b=`required property "${g}" is not defined at "${y}" (strictRequired)`;(0,hCe.checkStrictMode)(a,b,a.opts.strictRequired)}}function c(){if(u||s)t.block$data(Vm.nil,f);else for(let h of r)(0,Um.checkReportMissingProp)(t,h)}function l(){let h=e.let("missing");if(u||s){let m=e.let("valid",!0);t.block$data(m,()=>d(h,m)),t.ok(m)}else e.if((0,Um.checkMissingProp)(t,r,h)),(0,Um.reportMissingProp)(t,h),e.else()}function f(){e.forOf("prop",i,h=>{t.setParams({missingProperty:h}),e.if((0,Um.noPropertyInData)(e,n,h,o.ownProperties),()=>t.error())})}function d(h,m){t.setParams({missingProperty:h}),e.forOf(h,i,()=>{e.assign(m,(0,Um.propertyInData)(e,n,h,o.ownProperties)),e.if((0,Vm.not)(m),()=>{t.error(),e.break()})},Vm.nil)}}};GA.default=gCe});var z7=E(zA=>{"use strict";Object.defineProperty(zA,"__esModule",{value:!0});var Hm=ct(),vCe={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,Hm.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,Hm._)`{limit: ${t}}`},yCe={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:vCe,code(t){let{keyword:e,data:r,schemaCode:i}=t,n=e==="maxItems"?Hm.operators.GT:Hm.operators.LT;t.fail$data((0,Hm._)`${r}.length ${n} ${i}`)}};zA.default=yCe});var Sb=E(KA=>{"use strict";Object.defineProperty(KA,"__esModule",{value:!0});var K7=EA();K7.code='require("ajv/dist/runtime/equal").default';KA.default=K7});var W7=E(YA=>{"use strict";Object.defineProperty(YA,"__esModule",{value:!0});var WA=Rm(),Di=ct(),bCe=Nt(),xCe=Sb(),wCe={message:({params:{i:t,j:e}})=>(0,Di.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Di._)`{i: ${t}, j: ${e}}`},ECe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:wCe,code(t){let{gen:e,data:r,$data:i,schema:n,parentSchema:s,schemaCode:a,it:o}=t;if(!i&&!n)return;let u=e.let("valid"),c=s.items?(0,WA.getSchemaTypes)(s.items):[];t.block$data(u,l,(0,Di._)`${a} === false`),t.ok(u);function l(){let m=e.let("i",(0,Di._)`${r}.length`),g=e.let("j");t.setParams({i:m,j:g}),e.assign(u,!0),e.if((0,Di._)`${m} > 1`,()=>(f()?d:h)(m,g))}function f(){return c.length>0&&!c.some(m=>m==="object"||m==="array")}function d(m,g){let y=e.name("item"),b=(0,WA.checkDataTypes)(c,y,o.opts.strictNumbers,WA.DataType.Wrong),w=e.const("indices",(0,Di._)`{}`);e.for((0,Di._)`;${m}--;`,()=>{e.let(y,(0,Di._)`${r}[${m}]`),e.if(b,(0,Di._)`continue`),c.length>1&&e.if((0,Di._)`typeof ${y} == "string"`,(0,Di._)`${y} += "_"`),e.if((0,Di._)`typeof ${w}[${y}] == "number"`,()=>{e.assign(g,(0,Di._)`${w}[${y}]`),t.error(),e.assign(u,!1).break()}).code((0,Di._)`${w}[${y}] = ${m}`)})}function h(m,g){let y=(0,bCe.useFunc)(e,xCe.default),b=e.name("outer");e.label(b).for((0,Di._)`;${m}--;`,()=>e.for((0,Di._)`${g} = ${m}; ${g}--;`,()=>e.if((0,Di._)`${y}(${r}[${m}], ${r}[${g}])`,()=>{t.error(),e.assign(u,!1).break(b)})))}}};YA.default=ECe});var Y7=E(QA=>{"use strict";Object.defineProperty(QA,"__esModule",{value:!0});var XA=ct(),CCe=Nt(),SCe=Sb(),_Ce={message:"must be equal to constant",params:({schemaCode:t})=>(0,XA._)`{allowedValue: ${t}}`},ACe={keyword:"const",$data:!0,error:_Ce,code(t){let{gen:e,data:r,$data:i,schemaCode:n,schema:s}=t;i||s&&typeof s=="object"?t.fail$data((0,XA._)`!${(0,CCe.useFunc)(e,SCe.default)}(${r}, ${n})`):t.fail((0,XA._)`${s} !== ${r}`)}};QA.default=ACe});var X7=E(JA=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});var Gm=ct(),TCe=Nt(),DCe=Sb(),kCe={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Gm._)`{allowedValues: ${t}}`},ICe={keyword:"enum",schemaType:"array",$data:!0,error:kCe,code(t){let{gen:e,data:r,$data:i,schema:n,schemaCode:s,it:a}=t;if(!i&&n.length===0)throw new Error("enum must have non-empty array");let o=n.length>=a.opts.loopEnum,u,c=()=>u??(u=(0,TCe.useFunc)(e,DCe.default)),l;if(o||i)l=e.let("valid"),t.block$data(l,f);else{if(!Array.isArray(n))throw new Error("ajv implementation error");let h=e.const("vSchema",s);l=(0,Gm.or)(...n.map((m,g)=>d(h,g)))}t.pass(l);function f(){e.assign(l,!1),e.forOf("v",s,h=>e.if((0,Gm._)`${c()}(${r}, ${h})`,()=>e.assign(l,!0).break()))}function d(h,m){let g=n[m];return typeof g=="object"&&g!==null?(0,Gm._)`${c()}(${r}, ${h}[${m}])`:(0,Gm._)`${r} === ${g}`}}};JA.default=ICe});var Q7=E(ZA=>{"use strict";Object.defineProperty(ZA,"__esModule",{value:!0});var NCe=F7(),RCe=$7(),OCe=U7(),PCe=V7(),LCe=H7(),BCe=G7(),qCe=z7(),FCe=W7(),$Ce=Y7(),MCe=X7(),jCe=[NCe.default,RCe.default,OCe.default,PCe.default,LCe.default,BCe.default,qCe.default,FCe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},$Ce.default,MCe.default];ZA.default=jCe});var tT=E(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.validateAdditionalItems=void 0;var al=ct(),eT=Nt(),UCe={message:({params:{len:t}})=>(0,al.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,al._)`{limit: ${t}}`},VCe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:UCe,code(t){let{parentSchema:e,it:r}=t,{items:i}=e;if(!Array.isArray(i)){(0,eT.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}J7(t,i)}};function J7(t,e){let{gen:r,schema:i,data:n,keyword:s,it:a}=t;a.items=!0;let o=r.const("len",(0,al._)`${n}.length`);if(i===!1)t.setParams({len:e.length}),t.pass((0,al._)`${o} <= ${e.length}`);else if(typeof i=="object"&&!(0,eT.alwaysValidSchema)(a,i)){let c=r.var("valid",(0,al._)`${o} <= ${e.length}`);r.if((0,al.not)(c),()=>u(c)),t.ok(c)}function u(c){r.forRange("i",e.length,o,l=>{t.subschema({keyword:s,dataProp:l,dataPropType:eT.Type.Num},c),a.allErrors||r.if((0,al.not)(c),()=>r.break())})}}zm.validateAdditionalItems=J7;zm.default=VCe});var rT=E(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.validateTuple=void 0;var Z7=ct(),_b=Nt(),HCe=gs(),GCe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return eU(t,"additionalItems",e);r.items=!0,!(0,_b.alwaysValidSchema)(r,e)&&t.ok((0,HCe.validateArray)(t))}};function eU(t,e,r=t.schema){let{gen:i,parentSchema:n,data:s,keyword:a,it:o}=t;l(n),o.opts.unevaluated&&r.length&&o.items!==!0&&(o.items=_b.mergeEvaluated.items(i,r.length,o.items));let u=i.name("valid"),c=i.const("len",(0,Z7._)`${s}.length`);r.forEach((f,d)=>{(0,_b.alwaysValidSchema)(o,f)||(i.if((0,Z7._)`${c} > ${d}`,()=>t.subschema({keyword:a,schemaProp:d,dataProp:d},u)),t.ok(u))});function l(f){let{opts:d,errSchemaPath:h}=o,m=r.length,g=m===f.minItems&&(m===f.maxItems||f[e]===!1);if(d.strictTuples&&!g){let y=`"${a}" is ${m}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,_b.checkStrictMode)(o,y,d.strictTuples)}}}Km.validateTuple=eU;Km.default=GCe});var tU=E(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});var zCe=rT(),KCe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,zCe.validateTuple)(t,"items")};iT.default=KCe});var iU=E(nT=>{"use strict";Object.defineProperty(nT,"__esModule",{value:!0});var rU=ct(),WCe=Nt(),YCe=gs(),XCe=tT(),QCe={message:({params:{len:t}})=>(0,rU.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,rU._)`{limit: ${t}}`},JCe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:QCe,code(t){let{schema:e,parentSchema:r,it:i}=t,{prefixItems:n}=r;i.items=!0,!(0,WCe.alwaysValidSchema)(i,e)&&(n?(0,XCe.validateAdditionalItems)(t,n):t.ok((0,YCe.validateArray)(t)))}};nT.default=JCe});var nU=E(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});var ys=ct(),Ab=Nt(),ZCe={message:({params:{min:t,max:e}})=>e===void 0?(0,ys.str)`must contain at least ${t} valid item(s)`:(0,ys.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,ys._)`{minContains: ${t}}`:(0,ys._)`{minContains: ${t}, maxContains: ${e}}`},eSe={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:ZCe,code(t){let{gen:e,schema:r,parentSchema:i,data:n,it:s}=t,a,o,{minContains:u,maxContains:c}=i;s.opts.next?(a=u===void 0?1:u,o=c):a=1;let l=e.const("len",(0,ys._)`${n}.length`);if(t.setParams({min:a,max:o}),o===void 0&&a===0){(0,Ab.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&a>o){(0,Ab.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Ab.alwaysValidSchema)(s,r)){let g=(0,ys._)`${l} >= ${a}`;o!==void 0&&(g=(0,ys._)`${g} && ${l} <= ${o}`),t.pass(g);return}s.items=!0;let f=e.name("valid");o===void 0&&a===1?h(f,()=>e.if(f,()=>e.break())):a===0?(e.let(f,!0),o!==void 0&&e.if((0,ys._)`${n}.length > 0`,d)):(e.let(f,!1),d()),t.result(f,()=>t.reset());function d(){let g=e.name("_valid"),y=e.let("count",0);h(g,()=>e.if(g,()=>m(y)))}function h(g,y){e.forRange("i",0,l,b=>{t.subschema({keyword:"contains",dataProp:b,dataPropType:Ab.Type.Num,compositeRule:!0},g),y()})}function m(g){e.code((0,ys._)`${g}++`),o===void 0?e.if((0,ys._)`${g} >= ${a}`,()=>e.assign(f,!0).break()):(e.if((0,ys._)`${g} > ${o}`,()=>e.assign(f,!1).break()),a===1?e.assign(f,!0):e.if((0,ys._)`${g} >= ${a}`,()=>e.assign(f,!0)))}}};sT.default=eSe});var oU=E(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.validateSchemaDeps=Aa.validatePropertyDeps=Aa.error=void 0;var aT=ct(),tSe=Nt(),Wm=gs();Aa.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let i=e===1?"property":"properties";return(0,aT.str)`must have ${i} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:i}})=>(0,aT._)`{property: ${t}, + missingProperty: ${i}, + depsCount: ${e}, + deps: ${r}}`};var rSe={keyword:"dependencies",type:"object",schemaType:"object",error:Aa.error,code(t){let[e,r]=iSe(t);sU(t,e),aU(t,r)}};function iSe({schema:t}){let e={},r={};for(let i in t){if(i==="__proto__")continue;let n=Array.isArray(t[i])?e:r;n[i]=t[i]}return[e,r]}function sU(t,e=t.schema){let{gen:r,data:i,it:n}=t;if(Object.keys(e).length===0)return;let s=r.let("missing");for(let a in e){let o=e[a];if(o.length===0)continue;let u=(0,Wm.propertyInData)(r,i,a,n.opts.ownProperties);t.setParams({property:a,depsCount:o.length,deps:o.join(", ")}),n.allErrors?r.if(u,()=>{for(let c of o)(0,Wm.checkReportMissingProp)(t,c)}):(r.if((0,aT._)`${u} && (${(0,Wm.checkMissingProp)(t,o,s)})`),(0,Wm.reportMissingProp)(t,s),r.else())}}Aa.validatePropertyDeps=sU;function aU(t,e=t.schema){let{gen:r,data:i,keyword:n,it:s}=t,a=r.name("valid");for(let o in e)(0,tSe.alwaysValidSchema)(s,e[o])||(r.if((0,Wm.propertyInData)(r,i,o,s.opts.ownProperties),()=>{let u=t.subschema({keyword:n,schemaProp:o},a);t.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),t.ok(a))}Aa.validateSchemaDeps=aU;Aa.default=rSe});var cU=E(oT=>{"use strict";Object.defineProperty(oT,"__esModule",{value:!0});var uU=ct(),nSe=Nt(),sSe={message:"property name must be valid",params:({params:t})=>(0,uU._)`{propertyName: ${t.propertyName}}`},aSe={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:sSe,code(t){let{gen:e,schema:r,data:i,it:n}=t;if((0,nSe.alwaysValidSchema)(n,r))return;let s=e.name("valid");e.forIn("key",i,a=>{t.setParams({propertyName:a}),t.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),e.if((0,uU.not)(s),()=>{t.error(!0),n.allErrors||e.break()})}),t.ok(s)}};oT.default=aSe});var cT=E(uT=>{"use strict";Object.defineProperty(uT,"__esModule",{value:!0});var Tb=gs(),Ms=ct(),oSe=bo(),Db=Nt(),uSe={message:"must NOT have additional properties",params:({params:t})=>(0,Ms._)`{additionalProperty: ${t.additionalProperty}}`},cSe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:uSe,code(t){let{gen:e,schema:r,parentSchema:i,data:n,errsCount:s,it:a}=t;if(!s)throw new Error("ajv implementation error");let{allErrors:o,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Db.alwaysValidSchema)(a,r))return;let c=(0,Tb.allSchemaProperties)(i.properties),l=(0,Tb.allSchemaProperties)(i.patternProperties);f(),t.ok((0,Ms._)`${s} === ${oSe.default.errors}`);function f(){e.forIn("key",n,y=>{!c.length&&!l.length?m(y):e.if(d(y),()=>m(y))})}function d(y){let b;if(c.length>8){let w=(0,Db.schemaRefOrVal)(a,i.properties,"properties");b=(0,Tb.isOwnProperty)(e,w,y)}else c.length?b=(0,Ms.or)(...c.map(w=>(0,Ms._)`${y} === ${w}`)):b=Ms.nil;return l.length&&(b=(0,Ms.or)(b,...l.map(w=>(0,Ms._)`${(0,Tb.usePattern)(t,w)}.test(${y})`))),(0,Ms.not)(b)}function h(y){e.code((0,Ms._)`delete ${n}[${y}]`)}function m(y){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(y);return}if(r===!1){t.setParams({additionalProperty:y}),t.error(),o||e.break();return}if(typeof r=="object"&&!(0,Db.alwaysValidSchema)(a,r)){let b=e.name("valid");u.removeAdditional==="failing"?(g(y,b,!1),e.if((0,Ms.not)(b),()=>{t.reset(),h(y)})):(g(y,b),o||e.if((0,Ms.not)(b),()=>e.break()))}}function g(y,b,w){let S={keyword:"additionalProperties",dataProp:y,dataPropType:Db.Type.Str};w===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(S,b)}}};uT.default=cSe});var fU=E(pT=>{"use strict";Object.defineProperty(pT,"__esModule",{value:!0});var lSe=Bm(),lU=gs(),lT=Nt(),pU=cT(),pSe={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:i,data:n,it:s}=t;s.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&pU.default.code(new lSe.KeywordCxt(s,pU.default,"additionalProperties"));let a=(0,lU.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=lT.mergeEvaluated.props(e,(0,lT.toHash)(a),s.props));let o=a.filter(f=>!(0,lT.alwaysValidSchema)(s,r[f]));if(o.length===0)return;let u=e.name("valid");for(let f of o)c(f)?l(f):(e.if((0,lU.propertyInData)(e,n,f,s.opts.ownProperties)),l(f),s.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(u);function c(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}function l(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};pT.default=pSe});var gU=E(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});var dU=gs(),kb=ct(),hU=Nt(),mU=Nt(),fSe={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:i,parentSchema:n,it:s}=t,{opts:a}=s,o=(0,dU.allSchemaProperties)(r),u=o.filter(g=>(0,hU.alwaysValidSchema)(s,r[g]));if(o.length===0||u.length===o.length&&(!s.opts.unevaluated||s.props===!0))return;let c=a.strictSchema&&!a.allowMatchingProperties&&n.properties,l=e.name("valid");s.props!==!0&&!(s.props instanceof kb.Name)&&(s.props=(0,mU.evaluatedPropsToName)(e,s.props));let{props:f}=s;d();function d(){for(let g of o)c&&h(g),s.allErrors?m(g):(e.var(l,!0),m(g),e.if(l))}function h(g){for(let y in c)new RegExp(g).test(y)&&(0,hU.checkStrictMode)(s,`property ${y} matches pattern ${g} (use allowMatchingProperties)`)}function m(g){e.forIn("key",i,y=>{e.if((0,kb._)`${(0,dU.usePattern)(t,g)}.test(${y})`,()=>{let b=u.includes(g);b||t.subschema({keyword:"patternProperties",schemaProp:g,dataProp:y,dataPropType:mU.Type.Str},l),s.opts.unevaluated&&f!==!0?e.assign((0,kb._)`${f}[${y}]`,!0):!b&&!s.allErrors&&e.if((0,kb.not)(l),()=>e.break())})})}}};fT.default=fSe});var vU=E(dT=>{"use strict";Object.defineProperty(dT,"__esModule",{value:!0});var dSe=Nt(),hSe={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:i}=t;if((0,dSe.alwaysValidSchema)(i,r)){t.fail();return}let n=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),t.failResult(n,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};dT.default=hSe});var yU=E(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});var mSe=gs(),gSe={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:mSe.validateUnion,error:{message:"must match a schema in anyOf"}};hT.default=gSe});var bU=E(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});var Ib=ct(),vSe=Nt(),ySe={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Ib._)`{passingSchemas: ${t.passing}}`},bSe={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:ySe,code(t){let{gen:e,schema:r,parentSchema:i,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&i.discriminator)return;let s=r,a=e.let("valid",!1),o=e.let("passing",null),u=e.name("_valid");t.setParams({passing:o}),e.block(c),t.result(a,()=>t.reset(),()=>t.error(!0));function c(){s.forEach((l,f)=>{let d;(0,vSe.alwaysValidSchema)(n,l)?e.var(u,!0):d=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&e.if((0,Ib._)`${u} && ${a}`).assign(a,!1).assign(o,(0,Ib._)`[${o}, ${f}]`).else(),e.if(u,()=>{e.assign(a,!0),e.assign(o,f),d&&t.mergeEvaluated(d,Ib.Name)})})}}};mT.default=bSe});var xU=E(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});var xSe=Nt(),wSe={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let n=e.name("valid");r.forEach((s,a)=>{if((0,xSe.alwaysValidSchema)(i,s))return;let o=t.subschema({keyword:"allOf",schemaProp:a},n);t.ok(n),t.mergeEvaluated(o)})}};gT.default=wSe});var CU=E(vT=>{"use strict";Object.defineProperty(vT,"__esModule",{value:!0});var Nb=ct(),EU=Nt(),ESe={message:({params:t})=>(0,Nb.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Nb._)`{failingKeyword: ${t.ifClause}}`},CSe={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:ESe,code(t){let{gen:e,parentSchema:r,it:i}=t;r.then===void 0&&r.else===void 0&&(0,EU.checkStrictMode)(i,'"if" without "then" and "else" is ignored');let n=wU(i,"then"),s=wU(i,"else");if(!n&&!s)return;let a=e.let("valid",!0),o=e.name("_valid");if(u(),t.reset(),n&&s){let l=e.let("ifClause");t.setParams({ifClause:l}),e.if(o,c("then",l),c("else",l))}else n?e.if(o,c("then")):e.if((0,Nb.not)(o),c("else"));t.pass(a,()=>t.error(!0));function u(){let l=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(l)}function c(l,f){return()=>{let d=t.subschema({keyword:l},o);e.assign(a,o),t.mergeValidEvaluated(d,a),f?e.assign(f,(0,Nb._)`${l}`):t.setParams({ifClause:l})}}}};function wU(t,e){let r=t.schema[e];return r!==void 0&&!(0,EU.alwaysValidSchema)(t,r)}vT.default=CSe});var SU=E(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});var SSe=Nt(),_Se={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,SSe.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};yT.default=_Se});var _U=E(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});var ASe=tT(),TSe=tU(),DSe=rT(),kSe=iU(),ISe=nU(),NSe=oU(),RSe=cU(),OSe=cT(),PSe=fU(),LSe=gU(),BSe=vU(),qSe=yU(),FSe=bU(),$Se=xU(),MSe=CU(),jSe=SU();function USe(t=!1){let e=[BSe.default,qSe.default,FSe.default,$Se.default,MSe.default,jSe.default,RSe.default,OSe.default,NSe.default,PSe.default,LSe.default];return t?e.push(TSe.default,kSe.default):e.push(ASe.default,DSe.default),e.push(ISe.default),e}bT.default=USe});var AU=E(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0});var Fr=ct(),VSe={message:({schemaCode:t})=>(0,Fr.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Fr._)`{format: ${t}}`},HSe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:VSe,code(t,e){let{gen:r,data:i,$data:n,schema:s,schemaCode:a,it:o}=t,{opts:u,errSchemaPath:c,schemaEnv:l,self:f}=o;if(!u.validateFormats)return;n?d():h();function d(){let m=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),g=r.const("fDef",(0,Fr._)`${m}[${a}]`),y=r.let("fType"),b=r.let("format");r.if((0,Fr._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>r.assign(y,(0,Fr._)`${g}.type || "string"`).assign(b,(0,Fr._)`${g}.validate`),()=>r.assign(y,(0,Fr._)`"string"`).assign(b,g)),t.fail$data((0,Fr.or)(w(),S()));function w(){return u.strictSchema===!1?Fr.nil:(0,Fr._)`${a} && !${b}`}function S(){let x=l.$async?(0,Fr._)`(${g}.async ? await ${b}(${i}) : ${b}(${i}))`:(0,Fr._)`${b}(${i})`,k=(0,Fr._)`(typeof ${b} == "function" ? ${x} : ${b}.test(${i}))`;return(0,Fr._)`${b} && ${b} !== true && ${y} === ${e} && !${k}`}}function h(){let m=f.formats[s];if(!m){w();return}if(m===!0)return;let[g,y,b]=S(m);g===e&&t.pass(x());function w(){if(u.strictSchema===!1){f.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function S(k){let R=k instanceof RegExp?(0,Fr.regexpCode)(k):u.code.formats?(0,Fr._)`${u.code.formats}${(0,Fr.getProperty)(s)}`:void 0,L=r.scopeValue("formats",{key:s,ref:k,code:R});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,Fr._)`${L}.validate`]:["string",k,L]}function x(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Fr._)`await ${b}(${i})`}return typeof y=="function"?(0,Fr._)`${b}(${i})`:(0,Fr._)`${b}.test(${i})`}}}};xT.default=HSe});var TU=E(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});var GSe=AU(),zSe=[GSe.default];wT.default=zSe});var DU=E(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.contentVocabulary=Nf.metadataVocabulary=void 0;Nf.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Nf.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var IU=E(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});var KSe=q7(),WSe=Q7(),YSe=_U(),XSe=TU(),kU=DU(),QSe=[KSe.default,WSe.default,(0,YSe.default)(),XSe.default,kU.metadataVocabulary,kU.contentVocabulary];ET.default=QSe});var NU=E(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.DiscrError=void 0;var JSe;(function(t){t.Tag="tag",t.Mapping="mapping"})(JSe=Ym.DiscrError||(Ym.DiscrError={}))});var OU=E(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});var Rf=ct(),CT=NU(),RU=gb(),ZSe=Nt(),e_e={message:({params:{discrError:t,tagName:e}})=>t===CT.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,Rf._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},t_e={keyword:"discriminator",type:"object",schemaType:"object",error:e_e,code(t){let{gen:e,data:r,schema:i,parentSchema:n,it:s}=t,{oneOf:a}=n;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=i.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=e.let("valid",!1),c=e.const("tag",(0,Rf._)`${r}${(0,Rf.getProperty)(o)}`);e.if((0,Rf._)`typeof ${c} == "string"`,()=>l(),()=>t.error(!1,{discrError:CT.DiscrError.Tag,tag:c,tagName:o})),t.ok(u);function l(){let h=d();e.if(!1);for(let m in h)e.elseIf((0,Rf._)`${c} === ${m}`),e.assign(u,f(h[m]));e.else(),t.error(!1,{discrError:CT.DiscrError.Mapping,tag:c,tagName:o}),e.endIf()}function f(h){let m=e.name("valid"),g=t.subschema({keyword:"oneOf",schemaProp:h},m);return t.mergeEvaluated(g,Rf.Name),m}function d(){var h;let m={},g=b(n),y=!0;for(let x=0;x{r_e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var _T=E((Ar,BU)=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.MissingRefError=Ar.ValidationError=Ar.CodeGen=Ar.Name=Ar.nil=Ar.stringify=Ar.str=Ar._=Ar.KeywordCxt=void 0;var i_e=N7(),n_e=IU(),s_e=OU(),LU=PU(),a_e=["/properties"],Rb="http://json-schema.org/draft-07/schema",Ob=class extends i_e.default{_addVocabularies(){super._addVocabularies(),n_e.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(s_e.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(LU,a_e):LU;this.addMetaSchema(e,Rb,!1),this.refs["http://json-schema.org/schema"]=Rb}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Rb)?Rb:void 0)}};BU.exports=Ar=Ob;Object.defineProperty(Ar,"__esModule",{value:!0});Ar.default=Ob;var o_e=Bm();Object.defineProperty(Ar,"KeywordCxt",{enumerable:!0,get:function(){return o_e.KeywordCxt}});var Of=ct();Object.defineProperty(Ar,"_",{enumerable:!0,get:function(){return Of._}});Object.defineProperty(Ar,"str",{enumerable:!0,get:function(){return Of.str}});Object.defineProperty(Ar,"stringify",{enumerable:!0,get:function(){return Of.stringify}});Object.defineProperty(Ar,"nil",{enumerable:!0,get:function(){return Of.nil}});Object.defineProperty(Ar,"Name",{enumerable:!0,get:function(){return Of.Name}});Object.defineProperty(Ar,"CodeGen",{enumerable:!0,get:function(){return Of.CodeGen}});var u_e=db();Object.defineProperty(Ar,"ValidationError",{enumerable:!0,get:function(){return u_e.default}});var c_e=hb();Object.defineProperty(Ar,"MissingRefError",{enumerable:!0,get:function(){return c_e.default}})});var Pb=E((iVe,$U)=>{"use strict";var l_e=function(e){return p_e(e)&&!f_e(e)};function p_e(t){return!!t&&typeof t=="object"}function f_e(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||m_e(t)}var d_e=typeof Symbol=="function"&&Symbol.for,h_e=d_e?Symbol.for("react.element"):60103;function m_e(t){return t.$$typeof===h_e}function g_e(t){return Array.isArray(t)?[]:{}}function Xm(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Pf(g_e(t),t,e):t}function v_e(t,e,r){return t.concat(e).map(function(i){return Xm(i,r)})}function y_e(t,e){if(!e.customMerge)return Pf;var r=e.customMerge(t);return typeof r=="function"?r:Pf}function b_e(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function qU(t){return Object.keys(t).concat(b_e(t))}function FU(t,e){try{return e in t}catch{return!1}}function x_e(t,e){return FU(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function w_e(t,e,r){var i={};return r.isMergeableObject(t)&&qU(t).forEach(function(n){i[n]=Xm(t[n],r)}),qU(e).forEach(function(n){x_e(t,n)||(FU(t,n)&&r.isMergeableObject(e[n])?i[n]=y_e(n,r)(t[n],e[n],r):i[n]=Xm(e[n],r))}),i}function Pf(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||v_e,r.isMergeableObject=r.isMergeableObject||l_e,r.cloneUnlessOtherwiseSpecified=Xm;var i=Array.isArray(e),n=Array.isArray(t),s=i===n;return s?i?r.arrayMerge(t,e,r):w_e(t,e,r):Xm(e,r)}Pf.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,n){return Pf(i,n,r)},{})};var E_e=Pf;$U.exports=E_e});var Qm=E(Tr=>{"use strict";var Lf=qb(),MU=new Map;function C_e(t){let e=t.replace(/[*]+/g,".+");return new RegExp(`^${e}$`)}function S_e(t){return new RegExp(`^${t}$`)}function __e(t){let e=MU.get(t);if(e)return e;let r=t.match(/^\/(.*)\/$/),i=r?S_e(r[1]):C_e(t);return MU.set(t,i),i}function A_e(t,e){for(let r of t)if(__e(r).test(e))return!0;return!1}function T_e(t,e,r=(i,n)=>i.includes(n)){let{include:i,exclude:n}=t;return!!(i&&!r(i,e)||n&&r(n,e))}var jU=Symbol(Bf.name),UU=Symbol(qf.name),Lb=Symbol(HU.name);function VU(t){return!Bf(t)&&!HU(t)}function D_e(t){let e=r=>{let i=r.getAttribute("aria-hidden");return!!(i&&i.value==="true")};return{byParent:t.parent?Bf(t.parent):!1,bySelf:e(t)}}function Bf(t,e){let r=t.cacheGet(jU);if(r)return e?r:r.byParent||r.bySelf;let i=t.cacheSet(jU,D_e(t));return e?i:i.byParent||i.bySelf}function k_e(t){let e=r=>{let i=r.getAttribute("hidden");return i!==null&&i.isStatic};return{byParent:t.parent?qf(t.parent):!1,bySelf:e(t)}}function qf(t,e){let r=t.cacheGet(UU);if(r)return e?r:r.byParent||r.bySelf;let i=t.cacheSet(UU,k_e(t));return e?i:i.byParent||i.bySelf}function HU(t){if(t.cacheExists(Lb))return!!t.cacheGet(Lb);let e=t;do{let r=e.getAttribute("role");if(r&&r.value==="presentation")return e.cacheSet(Lb,!0);if(!e.parent)break;e=e.parent}while(!e.isRootElement());return t.cacheSet(Lb,!1)}var Bb=DT.name,I_e=Symbol(`${Bb}|html`),N_e=Symbol(`${Bb}|a11y`),R_e=Symbol(`${Bb}|html|ignore-hidden-root`),O_e=Symbol(`${Bb}|a11y|ignore-hidden-root`);Tr.TextClassification=void 0;(function(t){t[t.EMPTY_TEXT=0]="EMPTY_TEXT",t[t.DYNAMIC_TEXT=1]="DYNAMIC_TEXT",t[t.STATIC_TEXT=2]="STATIC_TEXT"})(Tr.TextClassification||(Tr.TextClassification={}));function P_e(t){let{accessible:e=!1,ignoreHiddenRoot:r=!1}=t;return e&&r?O_e:r?R_e:e?N_e:I_e}function L_e(t){return t.is("select")||t.is("textarea")}function DT(t,e={}){let{accessible:r=!1,ignoreHiddenRoot:i=!1}=e,n=P_e(e);if(t.cacheExists(n))return t.cacheGet(n);if(!i&&qf(t)||!i&&r&&Bf(t)||L_e(t))return t.cacheSet(n,Tr.TextClassification.EMPTY_TEXT);let s=GU(t,{...e,ignoreHiddenRoot:!1});return s.some(a=>a.isDynamic)?t.cacheSet(n,Tr.TextClassification.DYNAMIC_TEXT):s.some(a=>a.textContent.match(/\S/)!==null)?t.cacheSet(n,Tr.TextClassification.STATIC_TEXT):t.cacheSet(n,Tr.TextClassification.EMPTY_TEXT)}function GU(t,e){let{accessible:r=!1}=e,i=[];for(let n of t.childNodes)if(Lf.isTextNode(n))i.push(n);else if(Lf.isElementNode(n)){if(qf(n,!0).bySelf||r&&Bf(n,!0).bySelf)continue;i=i.concat(GU(n,e))}return i}function zU(t){let e=t.getAttribute("alt");return e===null||e.value===null?!1:e.isDynamic||e.value.toString()!==""}function B_e(t){let e=t.getAttribute("aria-label");return e===null||e.value===null?!1:e.isDynamic||e.value.toString()!==""}function q_e(t,e="or"){switch(t.length){case 0:return"";case 1:return t[0];case 2:return`${t[0]} ${e} ${t[1]}`;default:return`${t.slice(0,-1).join(", ")} ${e} ${t.slice(-1)[0]}`}}function F_e(t,e){let r=[[],[]];return t.reduce((i,n,s)=>{let a=e(n,s,t);return i[a?0:1].push(n),i},r)}var TT=class{constructor(e,r){if(Array.isArray(e)||(e=[e]),e.length===0)throw new Lf.ConfigError(`Missing style for ${r} rule`);this.styles=this.parseStyle(e,r)}match(e){return this.styles.some(r=>e.match(r.pattern))}get name(){let e=this.styles.map(r=>r.name);switch(this.styles.length){case 1:return e[0];case 2:return e.join(" or ");default:{let r=e.slice(-1);return`${e.slice(0,-1).join(", ")} or ${r[0]}`}}}parseStyle(e,r){return e.map(i=>{switch(i.toLowerCase()){case"lowercase":return{pattern:/^[a-z]*$/,name:"lowercase"};case"uppercase":return{pattern:/^[A-Z]*$/,name:"uppercase"};case"pascalcase":return{pattern:/^[A-Z][A-Za-z]*$/,name:"PascalCase"};case"camelcase":return{pattern:/^[a-z][A-Za-z]*$/,name:"camelCase"};default:throw new Lf.ConfigError(`Invalid style "${i}" for ${r} rule`)}})}},AT=Symbol(KU.name);function $_e(t,e){let{reference:r}=e;return r&&r.isSameNode(t)?!1:qf(t)||!VU(t)}function M_e(t,e){if(t.is("img"))return zU(t);if(t.is("svg"))return t.textContent.trim()!=="";for(let r of t.querySelectorAll("img, svg"))if(kT(r,e))return!0;return!1}function j_e(t){var e;return!!((e=t.getAttributeValue("aria-label"))!==null&&e!==void 0?e:"").trim()}function U_e(t,e){let{document:r,reference:i}=e;if(i)return!1;let n=t.ariaLabelledby;return n instanceof Lf.DynamicValue?!0:n===null?!1:n.some(s=>{let a=Lf.generateIdSelector(s);return r.querySelectorAll(a).some(o=>kT(o,{document:r,reference:o}))})}function kT(t,e){let{reference:r}=e;if($_e(t,e))return!1;let i=!!(r&&r.isSameNode(t));return!!(DT(t,{accessible:!0,ignoreHiddenRoot:i})!==Tr.TextClassification.EMPTY_TEXT||M_e(t,e)||j_e(t)||U_e(t,e))}function KU(t,e){if(e.cacheExists(AT))return!!e.cacheGet(AT);let r=kT(e,{document:t,reference:null});return e.cacheSet(AT,r)}Tr.CaseStyle=TT;Tr.classifyNodeText=DT;Tr.hasAccessibleName=KU;Tr.hasAltText=zU;Tr.hasAriaLabel=B_e;Tr.inAccessibilityTree=VU;Tr.isAriaHidden=Bf;Tr.isHTMLHidden=qf;Tr.isKeywordIgnored=T_e;Tr.keywordPatternMatcher=A_e;Tr.naturalJoin=q_e;Tr.partition=F_e});var Fb=E(NT=>{"use strict";var IT=Qm();function V_e(t){return t}function H_e(...t){return e=>t.some(i=>e.hasAttribute(i))?null:`requires ${IT.naturalJoin(t.map(i=>`"${i}"`))} attribute to be present`}function G_e(...t){return e=>{let r=t.filter(n=>e.hasAttribute(n));return r.length===0?null:`cannot be used at the same time as ${IT.naturalJoin(r.map(n=>`"${n}"`))}`}}function z_e(t,e,{defaultValue:r}={}){return i=>{let n=i.getAttribute(t);if(n?.isDynamic)return null;let s=n?.value?n.value.toString():r;if(s&&e.includes(s.toLocaleLowerCase()))return null;let a=IT.naturalJoin(e.map(o=>`"${o}"`));return`"${t}" attribute must be ${a}`}}var K_e={allowedIfAttributeIsPresent:H_e,allowedIfAttributeIsAbsent:G_e,allowedIfAttributeHasValue:z_e};NT.defineMetadata=V_e;NT.metadataHelper=K_e});var OT=E($b=>{"use strict";var WU=Fb(),{allowedIfAttributeIsPresent:Xr,allowedIfAttributeIsAbsent:RT,allowedIfAttributeHasValue:Sn}=WU.metadataHelper,YU=WU.defineMetadata({"*":{attributes:{contenteditable:{omit:!0,enum:["true","false"]},contextmenu:{deprecated:!0},dir:{enum:["ltr","rtl","auto"]},draggable:{enum:["true","false"]},hidden:{boolean:!0},id:{enum:["/\\S+/"]},tabindex:{enum:["/-?\\d+/"]}}},a:{flow:!0,phrasing:!0,interactive:!0,transparent:!0,attributes:{charset:{deprecated:!0},coords:{deprecated:!0},datafld:{deprecated:!0},datasrc:{deprecated:!0},download:{allowed:Xr("href"),omit:!0,enum:["/.+/"]},href:{enum:["/.*/"]},hreflang:{allowed:Xr("href")},itemprop:{allowed:Xr("href")},methods:{deprecated:!0},name:{deprecated:!0},ping:{allowed:Xr("href")},referrerpolicy:{allowed:Xr("href")},rel:{allowed:Xr("href")},shape:{deprecated:!0},target:{allowed:Xr("href"),enum:["/[^_].*/","_blank","_self","_parent","_top"]},type:{allowed:Xr("href")},urn:{deprecated:!0}},permittedDescendants:[{exclude:"@interactive"}]},abbr:{flow:!0,phrasing:!0,permittedContent:["@phrasing"]},acronym:{deprecated:{message:"use instead",documentation:"`` can be used as a replacement.",source:"html5"}},address:{flow:!0,permittedContent:["@flow"],permittedDescendants:[{exclude:["address","header","footer","@heading","@sectioning"]}]},applet:{deprecated:{source:"html5"},attributes:{datafld:{deprecated:!0},datasrc:{deprecated:!0}}},area:{flow:["isDescendant","map"],phrasing:["isDescendant","map"],void:!0,attributes:{alt:{},coords:{allowed(t){let e=t.getAttribute("shape");return e&&e.valueMatches("default",!1)?'cannot be used when "shape" attribute is "default"':null}},download:{allowed:Xr("href")},nohref:{deprecated:!0},itemprop:{allowed:Xr("href")},ping:{allowed:Xr("href")},referrerpolicy:{allowed:Xr("href")},rel:{allowed:Xr("href")},shape:{allowed(t,e){switch(e.value||"rect"){case"circ":case"circle":case"poly":case"polygon":case"rect":case"rectangle":return Xr("coords")(t,e);default:return null}},enum:["rect","circle","poly","default"]},target:{allowed:Xr("href"),enum:["/[^_].*/","_blank","_self","_parent","_top"]}},requiredAncestors:["map"]},article:{flow:!0,sectioning:!0,permittedContent:["@flow"],permittedDescendants:[{exclude:["main"]}]},aside:{flow:!0,sectioning:!0,permittedContent:["@flow"],permittedDescendants:[{exclude:["main"]}]},audio:{flow:!0,phrasing:!0,embedded:!0,interactive:["hasAttribute","controls"],transparent:["@flow"],attributes:{crossorigin:{omit:!0,enum:["anonymous","use-credentials"]},itemprop:{allowed:Xr("src")},preload:{omit:!0,enum:["none","metadata","auto"]}},permittedContent:["@flow","track","source"],permittedDescendants:[{exclude:["audio","video"]}],permittedOrder:["source","track","@flow"]},b:{flow:!0,phrasing:!0,permittedContent:["@phrasing"]},base:{metadata:!0,void:!0,permittedParent:["head"]},basefont:{deprecated:{message:"use CSS instead",documentation:"Use CSS `font-size` property instead.",source:"html4"}},bdi:{flow:!0,phrasing:!0,permittedContent:["@phrasing"]},bdo:{flow:!0,phrasing:!0,permittedContent:["@phrasing"]},bgsound:{deprecated:{message:"use