@browserless.io/browserless 2.2.0-beta-8 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -2
- package/bin/browserless.js +1 -1
- package/bin/scaffold/README.md +8 -7
- package/build/browserless.js +7 -6
- package/build/browsers/chrome.cdp.d.ts +6 -0
- package/build/browsers/chrome.cdp.js +6 -0
- package/build/browsers/chrome.playwright.d.ts +6 -0
- package/build/browsers/chrome.playwright.js +6 -0
- package/build/browsers/{cdp-chromium.d.ts → chromium.cdp.d.ts} +3 -2
- package/build/browsers/{cdp-chromium.js → chromium.cdp.js} +16 -10
- package/build/browsers/{playwright-chromium.d.ts → chromium.playwright.d.ts} +3 -2
- package/build/browsers/{playwright-chromium.js → chromium.playwright.js} +6 -5
- package/build/browsers/{playwright-firefox.d.ts → firefox.playwright.d.ts} +2 -2
- package/build/browsers/{playwright-firefox.js → firefox.playwright.js} +4 -4
- package/build/browsers/index.d.ts +20 -10
- package/build/browsers/index.js +110 -11
- package/build/browsers/{playwright-webkit.d.ts → webkit.playwright.d.ts} +2 -2
- package/build/browsers/{playwright-webkit.js → webkit.playwright.js} +4 -4
- package/build/data/selectors.json +1 -1
- package/build/exports.d.ts +6 -4
- package/build/exports.js +6 -4
- package/build/hooks.d.ts +4 -5
- package/build/hooks.js +4 -6
- package/build/http.d.ts +22 -1
- package/build/http.js +21 -0
- package/build/router.js +19 -3
- package/build/routes/{chromium/http/content-post.body.json → chrome/http/content.post.body.json} +8 -8
- package/build/routes/chrome/http/content.post.d.ts +7 -0
- package/build/routes/chrome/http/content.post.js +6 -0
- package/build/routes/chrome/http/download.post.d.ts +7 -0
- package/build/routes/chrome/http/download.post.js +6 -0
- package/build/routes/chrome/http/function.post.d.ts +7 -0
- package/build/routes/chrome/http/function.post.js +6 -0
- package/build/routes/chrome/http/json-list.get.d.ts +1 -0
- package/build/routes/chrome/http/json-list.get.js +1 -0
- package/build/routes/chrome/http/json-new.put.d.ts +1 -0
- package/build/routes/chrome/http/json-new.put.js +1 -0
- package/build/routes/chrome/http/json-protocol.get.d.ts +1 -0
- package/build/routes/chrome/http/json-protocol.get.js +1 -0
- package/build/routes/chrome/http/json-version.get.d.ts +1 -0
- package/build/routes/chrome/http/json-version.get.js +1 -0
- package/build/routes/chrome/http/json-version.get.response.json +44 -0
- package/build/routes/{chromium/http/pdf-post.body.json → chrome/http/pdf.post.body.json} +8 -8
- package/build/routes/chrome/http/pdf.post.d.ts +7 -0
- package/build/routes/chrome/http/pdf.post.js +6 -0
- package/build/routes/chrome/http/performance.post.d.ts +7 -0
- package/build/routes/chrome/http/performance.post.js +6 -0
- package/build/routes/{chromium/http/scrape-post.body.json → chrome/http/scrape.post.body.json} +8 -8
- package/build/routes/chrome/http/scrape.post.d.ts +7 -0
- package/build/routes/chrome/http/scrape.post.js +6 -0
- package/build/routes/{chromium/http/screenshot-post.body.json → chrome/http/screenshot.post.body.json} +8 -8
- package/build/routes/chrome/http/screenshot.post.d.ts +7 -0
- package/build/routes/chrome/http/screenshot.post.js +6 -0
- package/build/routes/chrome/tests/content.spec.js +311 -0
- package/build/routes/chrome/tests/download.spec.js +67 -0
- package/build/routes/chrome/tests/function.spec.d.ts +1 -0
- package/build/routes/chrome/tests/function.spec.js +245 -0
- package/build/routes/chrome/tests/json-version.spec.d.ts +1 -0
- package/build/routes/chrome/tests/json-version.spec.js +37 -0
- package/build/routes/chrome/tests/page-websocket.spec.d.ts +1 -0
- package/build/routes/chrome/tests/page-websocket.spec.js +97 -0
- package/build/routes/chrome/tests/pdf.spec.d.ts +1 -0
- package/build/routes/chrome/tests/pdf.spec.js +333 -0
- package/build/routes/chrome/tests/performance.spec.d.ts +1 -0
- package/build/routes/chrome/tests/performance.spec.js +124 -0
- package/build/routes/chrome/tests/scrape.spec.d.ts +1 -0
- package/build/routes/chrome/tests/scrape.spec.js +354 -0
- package/build/routes/chrome/tests/screenshot.spec.d.ts +1 -0
- package/build/routes/chrome/tests/screenshot.spec.js +339 -0
- package/build/routes/chrome/tests/websocket.spec.d.ts +1 -0
- package/build/routes/chrome/tests/websocket.spec.js +371 -0
- package/build/routes/chrome/ws/browser.d.ts +6 -0
- package/build/routes/chrome/ws/browser.js +5 -0
- package/build/routes/chrome/ws/cdp.d.ts +7 -0
- package/build/routes/chrome/ws/cdp.js +6 -0
- package/build/routes/chrome/ws/cdp.query.json +120 -0
- package/build/routes/chrome/ws/page.d.ts +6 -0
- package/build/routes/chrome/ws/page.js +5 -0
- package/build/routes/chrome/ws/page.query.json +120 -0
- package/build/routes/chrome/ws/playwright.d.ts +7 -0
- package/build/routes/chrome/ws/playwright.js +6 -0
- package/build/routes/chromium/http/content.post.body.json +510 -0
- package/build/routes/chromium/http/content.post.d.ts +1 -0
- package/build/routes/chromium/http/content.post.js +1 -0
- package/build/routes/chromium/http/content.post.query.json +183 -0
- package/build/routes/chromium/http/content.post.response.json +5 -0
- package/build/routes/chromium/http/download.post.body.json +32 -0
- package/build/routes/chromium/http/download.post.d.ts +1 -0
- package/build/routes/chromium/http/download.post.js +1 -0
- package/build/routes/chromium/http/download.post.query.json +120 -0
- package/build/routes/chromium/http/download.post.response.json +4 -0
- package/build/routes/chromium/http/function.post.body.json +32 -0
- package/build/routes/chromium/http/function.post.d.ts +1 -0
- package/build/routes/chromium/http/function.post.js +1 -0
- package/build/routes/chromium/http/function.post.query.json +120 -0
- package/build/routes/chromium/http/function.post.response.json +4 -0
- package/build/routes/chromium/http/json-list.get.d.ts +1 -0
- package/build/routes/chromium/http/json-list.get.js +1 -0
- package/build/routes/chromium/http/json-list.get.response.json +52 -0
- package/build/routes/chromium/http/json-new.put.d.ts +1 -0
- package/build/routes/chromium/http/json-new.put.js +1 -0
- package/build/routes/chromium/http/json-new.put.response.json +44 -0
- package/build/routes/chromium/http/json-protocol.get.d.ts +1 -0
- package/build/routes/chromium/http/json-protocol.get.js +1 -0
- package/build/routes/chromium/http/json-protocol.get.response.json +6 -0
- package/build/routes/chromium/http/json-version.get.d.ts +1 -0
- package/build/routes/chromium/http/json-version.get.js +1 -0
- package/build/routes/chromium/http/json-version.get.response.json +44 -0
- package/build/routes/chromium/http/pdf.post.body.json +654 -0
- package/build/routes/chromium/http/pdf.post.d.ts +1 -0
- package/build/routes/chromium/http/pdf.post.js +1 -0
- package/build/routes/chromium/http/pdf.post.query.json +120 -0
- package/build/routes/chromium/http/pdf.post.response.json +5 -0
- package/build/routes/chromium/http/performance.post.body.json +26 -0
- package/build/routes/chromium/http/performance.post.d.ts +1 -0
- package/build/routes/chromium/http/performance.post.js +1 -0
- package/build/routes/chromium/http/performance.post.query.json +120 -0
- package/build/routes/chromium/http/performance.post.response.json +7 -0
- package/build/routes/chromium/http/scrape.post.body.json +557 -0
- package/build/routes/chromium/http/scrape.post.d.ts +1 -0
- package/build/routes/chromium/http/scrape.post.js +1 -0
- package/build/routes/chromium/http/scrape.post.query.json +183 -0
- package/build/routes/chromium/http/scrape.post.response.json +309 -0
- package/build/routes/chromium/http/screenshot.post.body.json +600 -0
- package/build/routes/chromium/http/screenshot.post.d.ts +1 -0
- package/build/routes/chromium/http/screenshot.post.js +1 -0
- package/build/routes/chromium/http/screenshot.post.query.json +120 -0
- package/build/routes/chromium/http/screenshot.post.response.json +5 -0
- package/build/routes/chromium/tests/content.spec.js +16 -16
- package/build/routes/chromium/tests/download.spec.js +3 -3
- package/build/routes/chromium/tests/function.spec.js +10 -10
- package/build/routes/chromium/tests/page-websocket.spec.d.ts +1 -0
- package/build/routes/chromium/tests/page-websocket.spec.js +97 -0
- package/build/routes/chromium/tests/pdf.spec.js +16 -16
- package/build/routes/chromium/tests/performance.spec.js +7 -7
- package/build/routes/chromium/tests/scrape.spec.js +15 -15
- package/build/routes/chromium/tests/screenshot.spec.js +17 -17
- package/build/routes/chromium/tests/websocket.spec.js +31 -37
- package/build/routes/chromium/ws/browser.d.ts +1 -16
- package/build/routes/chromium/ws/browser.js +1 -10
- package/build/routes/chromium/ws/cdp.d.ts +1 -0
- package/build/routes/chromium/ws/cdp.js +1 -0
- package/build/routes/chromium/ws/cdp.query.json +120 -0
- package/build/routes/chromium/ws/page.d.ts +1 -16
- package/build/routes/chromium/ws/page.js +1 -10
- package/build/routes/chromium/ws/playwright.d.ts +1 -0
- package/build/routes/chromium/ws/playwright.js +1 -0
- package/build/routes/firefox/ws/{playwright-firefox.d.ts → playwright.d.ts} +5 -5
- package/build/routes/firefox/ws/{playwright-firefox.js → playwright.js} +4 -4
- package/build/routes/management/http/{sessions-get.response.json → sessions.get.response.json} +11 -1
- package/build/routes/management/http/{static-get.js → static.get.js} +2 -2
- package/build/routes/webkit/ws/{playwright-webkit.d.ts → playwright.d.ts} +5 -5
- package/build/routes/webkit/ws/{playwright-webkit.js → playwright.js} +4 -4
- package/build/routes/webkit/ws/playwright.query.json +100 -0
- package/build/{routes/chromium/ws/cdp-chromium.d.ts → shared/browser.ws.d.ts} +4 -4
- package/build/shared/browser.ws.js +12 -0
- package/build/{routes/chromium/ws/playwright-chromium.d.ts → shared/chromium.playwright.ws.d.ts} +4 -4
- package/build/{routes/chromium/ws/playwright-chromium.js → shared/chromium.playwright.ws.js} +6 -3
- package/build/shared/chromium.ws.d.ts +16 -0
- package/build/shared/chromium.ws.js +10 -0
- package/build/{routes/chromium/http/content-post.d.ts → shared/content.http.d.ts} +3 -3
- package/build/{routes/chromium/http/content-post.js → shared/content.http.js} +3 -3
- package/build/{routes/chromium/http/download-post.d.ts → shared/download.http.d.ts} +3 -3
- package/build/{routes/chromium/http/download-post.js → shared/download.http.js} +4 -4
- package/build/{routes/chromium/http/function-post.d.ts → shared/function.http.d.ts} +3 -3
- package/build/{routes/chromium/http/function-post.js → shared/function.http.js} +4 -4
- package/build/{routes/chromium/http/json-new.d.ts → shared/json-list.http.d.ts} +2 -3
- package/build/{routes/chromium/http/json-list.js → shared/json-list.http.js} +5 -8
- package/build/{routes/chromium/http/json-list.d.ts → shared/json-new.http.d.ts} +2 -3
- package/build/shared/json-new.http.js +34 -0
- package/build/{routes/chromium/http/json-protocol-get.js → shared/json-protocol.http.js} +2 -2
- package/build/{routes/chromium/http/json-version-get.js → shared/json-version.http.js} +3 -3
- package/build/shared/page.ws.d.ts +16 -0
- package/build/shared/page.ws.js +13 -0
- package/build/{routes/chromium/http/pdf-post.d.ts → shared/pdf.http.d.ts} +3 -3
- package/build/{routes/chromium/http/pdf-post.js → shared/pdf.http.js} +3 -3
- package/build/{routes/chromium/http/performance.d.ts → shared/performance.http.d.ts} +3 -3
- package/build/{routes/chromium/http/performance.js → shared/performance.http.js} +4 -4
- package/build/{routes/chromium/http/scrape-post.d.ts → shared/scrape.http.d.ts} +3 -3
- package/build/{routes/chromium/http/scrape-post.js → shared/scrape.http.js} +3 -3
- package/build/{routes/chromium/http/screenshot-post.d.ts → shared/screenshot.http.d.ts} +3 -3
- package/build/{routes/chromium/http/screenshot-post.js → shared/screenshot.http.js} +3 -3
- package/build/shared/utils/performance/child.d.ts +1 -0
- package/build/{routes/chromium → shared}/utils/performance/main.js +1 -1
- package/build/shared/utils/performance/types.js +1 -0
- package/build/shim.js +2 -1
- package/build/types.d.ts +10 -8
- package/build/utils.d.ts +8 -3
- package/build/utils.js +24 -11
- package/docker/base/Dockerfile +1 -1
- package/docker/chrome/Dockerfile +4 -4
- package/docker/chromium/.dockerignore +16 -0
- package/docker/chromium/Dockerfile +40 -0
- package/docker/firefox/Dockerfile +1 -1
- package/docker/multi/Dockerfile +13 -1
- package/docker/webkit/Dockerfile +1 -1
- package/extensions/ublock/3p-filters.html +1 -1
- package/extensions/ublock/_locales/ar/messages.json +4 -0
- package/extensions/ublock/_locales/az/messages.json +4 -0
- package/extensions/ublock/_locales/be/messages.json +4 -0
- package/extensions/ublock/_locales/bg/messages.json +5 -1
- package/extensions/ublock/_locales/bn/messages.json +4 -0
- package/extensions/ublock/_locales/br_FR/messages.json +6 -2
- package/extensions/ublock/_locales/bs/messages.json +4 -0
- package/extensions/ublock/_locales/ca/messages.json +4 -0
- package/extensions/ublock/_locales/cs/messages.json +4 -0
- package/extensions/ublock/_locales/cv/messages.json +4 -0
- package/extensions/ublock/_locales/cy/messages.json +1294 -0
- package/extensions/ublock/_locales/da/messages.json +4 -0
- package/extensions/ublock/_locales/de/messages.json +5 -1
- package/extensions/ublock/_locales/el/messages.json +4 -0
- package/extensions/ublock/_locales/en/messages.json +4 -0
- package/extensions/ublock/_locales/en_GB/messages.json +4 -0
- package/extensions/ublock/_locales/eo/messages.json +9 -5
- package/extensions/ublock/_locales/es/messages.json +4 -0
- package/extensions/ublock/_locales/et/messages.json +4 -0
- package/extensions/ublock/_locales/eu/messages.json +8 -4
- package/extensions/ublock/_locales/fa/messages.json +4 -0
- package/extensions/ublock/_locales/fi/messages.json +4 -0
- package/extensions/ublock/_locales/fil/messages.json +4 -0
- package/extensions/ublock/_locales/fr/messages.json +4 -0
- package/extensions/ublock/_locales/fy/messages.json +4 -0
- package/extensions/ublock/_locales/gl/messages.json +4 -0
- package/extensions/ublock/_locales/gu/messages.json +4 -0
- package/extensions/ublock/_locales/he/messages.json +4 -0
- package/extensions/ublock/_locales/hi/messages.json +4 -0
- package/extensions/ublock/_locales/hr/messages.json +4 -0
- package/extensions/ublock/_locales/hu/messages.json +4 -0
- package/extensions/ublock/_locales/hy/messages.json +4 -0
- package/extensions/ublock/_locales/id/messages.json +5 -1
- package/extensions/ublock/_locales/it/messages.json +4 -0
- package/extensions/ublock/_locales/ja/messages.json +4 -0
- package/extensions/ublock/_locales/ka/messages.json +34 -30
- package/extensions/ublock/_locales/kk/messages.json +4 -0
- package/extensions/ublock/_locales/kn/messages.json +4 -0
- package/extensions/ublock/_locales/ko/messages.json +4 -0
- package/extensions/ublock/_locales/ku/messages.json +4 -0
- package/extensions/ublock/_locales/lt/messages.json +4 -0
- package/extensions/ublock/_locales/lv/messages.json +4 -0
- package/extensions/ublock/_locales/mk/messages.json +4 -0
- package/extensions/ublock/_locales/ml/messages.json +4 -0
- package/extensions/ublock/_locales/mr/messages.json +4 -0
- package/extensions/ublock/_locales/ms/messages.json +13 -9
- package/extensions/ublock/_locales/nb/messages.json +4 -0
- package/extensions/ublock/_locales/nl/messages.json +4 -0
- package/extensions/ublock/_locales/no/messages.json +4 -0
- package/extensions/ublock/_locales/oc/messages.json +4 -0
- package/extensions/ublock/_locales/pa/messages.json +4 -0
- package/extensions/ublock/_locales/pl/messages.json +5 -1
- package/extensions/ublock/_locales/pt_BR/messages.json +4 -0
- package/extensions/ublock/_locales/pt_PT/messages.json +4 -0
- package/extensions/ublock/_locales/ro/messages.json +5 -1
- package/extensions/ublock/_locales/ru/messages.json +4 -0
- package/extensions/ublock/_locales/si/messages.json +4 -0
- package/extensions/ublock/_locales/sk/messages.json +4 -0
- package/extensions/ublock/_locales/sl/messages.json +4 -0
- package/extensions/ublock/_locales/so/messages.json +4 -0
- package/extensions/ublock/_locales/sq/messages.json +4 -0
- package/extensions/ublock/_locales/sr/messages.json +4 -0
- package/extensions/ublock/_locales/sv/messages.json +4 -0
- package/extensions/ublock/_locales/sw/messages.json +4 -0
- package/extensions/ublock/_locales/ta/messages.json +4 -0
- package/extensions/ublock/_locales/te/messages.json +4 -0
- package/extensions/ublock/_locales/th/messages.json +12 -8
- package/extensions/ublock/_locales/tr/messages.json +4 -0
- package/extensions/ublock/_locales/uk/messages.json +4 -0
- package/extensions/ublock/_locales/ur/messages.json +4 -0
- package/extensions/ublock/_locales/vi/messages.json +4 -0
- package/extensions/ublock/_locales/zh_CN/messages.json +6 -2
- package/extensions/ublock/_locales/zh_TW/messages.json +6 -2
- package/extensions/ublock/assets/assets.json +11 -11
- package/extensions/ublock/assets/resources/scriptlets.js +660 -378
- package/extensions/ublock/assets/thirdparties/easylist/easylist.txt +7173 -3455
- package/extensions/ublock/assets/thirdparties/easylist/easyprivacy.txt +18829 -1918
- package/extensions/ublock/assets/thirdparties/pgl.yoyo.org/as/serverlist +21 -26
- package/extensions/ublock/assets/thirdparties/publicsuffix.org/list/effective_tld_names.dat +118 -46
- package/extensions/ublock/assets/thirdparties/urlhaus-filter/urlhaus-filter-online.txt +710 -1117
- package/extensions/ublock/assets/ublock/badlists.txt +0 -4
- package/extensions/ublock/assets/ublock/badware.min.txt +116 -105
- package/extensions/ublock/assets/ublock/filters.min.txt +1443 -1097
- package/extensions/ublock/assets/ublock/privacy.min.txt +50 -31
- package/extensions/ublock/assets/ublock/quick-fixes.min.txt +97 -108
- package/extensions/ublock/assets/ublock/unbreak.min.txt +64 -21
- package/extensions/ublock/css/1p-filters.css +4 -0
- package/extensions/ublock/css/3p-filters.css +6 -4
- package/extensions/ublock/css/common.css +1 -1
- package/extensions/ublock/css/fa-icons.css +1 -0
- package/extensions/ublock/css/logger-ui.css +72 -52
- package/extensions/ublock/css/popup-fenix.css +1 -1
- package/extensions/ublock/img/fontawesome/fontawesome-defs.svg +1 -0
- package/extensions/ublock/js/3p-filters.js +3 -3
- package/extensions/ublock/js/assets.js +7 -4
- package/extensions/ublock/js/background.js +1 -3
- package/extensions/ublock/js/benchmarks.js +1 -0
- package/extensions/ublock/js/broadcast.js +12 -0
- package/extensions/ublock/js/click2load.js +2 -3
- package/extensions/ublock/js/codemirror/ubo-static-filtering.js +1 -0
- package/extensions/ublock/js/commands.js +10 -0
- package/extensions/ublock/js/contentscript-extra.js +13 -11
- package/extensions/ublock/js/contentscript.js +0 -31
- package/extensions/ublock/js/contextmenu.js +5 -1
- package/extensions/ublock/js/dyna-rules.js +83 -52
- package/extensions/ublock/js/fa-icons.js +1 -0
- package/extensions/ublock/js/filtering-context.js +0 -2
- package/extensions/ublock/js/i18n.js +1 -5
- package/extensions/ublock/js/logger-ui.js +71 -38
- package/extensions/ublock/js/logger.js +18 -14
- package/extensions/ublock/js/messaging.js +17 -5
- package/extensions/ublock/js/popup-fenix.js +6 -6
- package/extensions/ublock/js/scriptlet-filtering-core.js +14 -12
- package/extensions/ublock/js/scriptlet-filtering.js +149 -53
- package/extensions/ublock/js/scriptlets/scriptlet-loglevel-1.js +49 -0
- package/extensions/ublock/js/scriptlets/scriptlet-loglevel-2.js +49 -0
- package/extensions/ublock/js/scriptlets/should-inject-contentscript.js +1 -1
- package/extensions/ublock/js/static-dnr-filtering.js +4 -2
- package/extensions/ublock/js/static-filtering-parser.js +14 -8
- package/extensions/ublock/js/static-net-filtering.js +32 -30
- package/extensions/ublock/js/storage.js +18 -4
- package/extensions/ublock/js/traffic.js +3 -3
- package/extensions/ublock/js/ublock.js +1 -1
- package/extensions/ublock/js/vapi-background.js +15 -7
- package/extensions/ublock/logger-ui.html +18 -10
- package/extensions/ublock/manifest.json +4 -1
- package/extensions/ublock/web_accessible_resources/chartbeat.js +3 -0
- package/package.json +12 -11
- package/scripts/build-function.js +1 -1
- package/scripts/build-open-api.js +3 -2
- package/scripts/clean.js +6 -1
- package/scripts/install-debugger.js +20 -0
- package/scripts/install-devtools.js +40 -0
- package/src/browserless.ts +11 -9
- package/src/browsers/chrome.cdp.ts +10 -0
- package/src/browsers/chrome.playwright.ts +10 -0
- package/src/browsers/{cdp-chromium.ts → chromium.cdp.ts} +20 -13
- package/src/browsers/{playwright-chromium.ts → chromium.playwright.ts} +7 -6
- package/src/browsers/{playwright-firefox.ts → firefox.playwright.ts} +5 -5
- package/src/browsers/index.ts +160 -23
- package/src/browsers/{playwright-webkit.ts → webkit.playwright.ts} +5 -5
- package/src/exports.ts +6 -4
- package/src/hooks.ts +4 -12
- package/src/http.ts +21 -0
- package/src/router.ts +21 -5
- package/src/routes/chrome/http/content.post.ts +14 -0
- package/src/routes/chrome/http/download.post.ts +14 -0
- package/src/routes/chrome/http/function.post.ts +14 -0
- package/src/routes/chrome/http/json-list.get.ts +1 -0
- package/src/routes/chrome/http/json-new.put.ts +1 -0
- package/src/routes/chrome/http/json-protocol.get.ts +1 -0
- package/src/routes/chrome/http/json-version.get.ts +1 -0
- package/src/routes/chrome/http/pdf.post.ts +14 -0
- package/src/routes/chrome/http/performance.post.ts +14 -0
- package/src/routes/chrome/http/scrape.post.ts +14 -0
- package/src/routes/chrome/http/screenshot.post.ts +14 -0
- package/src/routes/chrome/tests/content.spec.ts +375 -0
- package/src/routes/chrome/tests/download.spec.ts +77 -0
- package/src/routes/chrome/tests/function.spec.ts +282 -0
- package/src/routes/chrome/tests/json-version.spec.ts +52 -0
- package/src/routes/chrome/tests/page-websocket.spec.ts +129 -0
- package/src/routes/chrome/tests/pdf.spec.ts +380 -0
- package/src/routes/chrome/tests/performance.spec.ts +155 -0
- package/src/routes/chrome/tests/scrape.spec.ts +417 -0
- package/src/routes/chrome/tests/screenshot.spec.ts +387 -0
- package/src/routes/chrome/tests/websocket.spec.ts +491 -0
- package/src/routes/chrome/ws/browser.ts +8 -0
- package/src/routes/chrome/ws/cdp.ts +12 -0
- package/src/routes/chrome/ws/page.ts +8 -0
- package/src/routes/chrome/ws/playwright.ts +12 -0
- package/src/routes/chromium/http/content.post.ts +6 -0
- package/src/routes/chromium/http/download.post.ts +6 -0
- package/src/routes/chromium/http/function.post.ts +6 -0
- package/src/routes/chromium/http/json-list.get.ts +1 -0
- package/src/routes/chromium/http/json-new.put.ts +1 -0
- package/src/routes/chromium/http/json-protocol.get.ts +1 -0
- package/src/routes/chromium/http/json-version.get.ts +1 -0
- package/src/routes/chromium/http/pdf.post.ts +6 -0
- package/src/routes/chromium/http/performance.post.ts +6 -0
- package/src/routes/chromium/http/scrape.post.ts +6 -0
- package/src/routes/chromium/http/screenshot.post.ts +6 -0
- package/src/routes/chromium/tests/content.spec.ts +36 -28
- package/src/routes/chromium/tests/download.spec.ts +3 -3
- package/src/routes/chromium/tests/function.spec.ts +18 -15
- package/src/routes/chromium/tests/page-websocket.spec.ts +129 -0
- package/src/routes/chromium/tests/pdf.spec.ts +31 -26
- package/src/routes/chromium/tests/performance.spec.ts +46 -34
- package/src/routes/chromium/tests/scrape.spec.ts +23 -20
- package/src/routes/chromium/tests/screenshot.spec.ts +24 -24
- package/src/routes/chromium/tests/websocket.spec.ts +31 -40
- package/src/routes/chromium/ws/browser.ts +1 -29
- package/src/routes/chromium/ws/cdp.ts +1 -0
- package/src/routes/chromium/ws/page.ts +1 -29
- package/src/routes/chromium/ws/playwright.ts +4 -0
- package/src/routes/firefox/ws/{playwright-firefox.ts → playwright.ts} +5 -5
- package/src/routes/management/http/{static-get.ts → static.get.ts} +2 -2
- package/src/routes/webkit/ws/{playwright-webkit.ts → playwright.ts} +5 -5
- package/src/shared/browser.ws.ts +34 -0
- package/src/{routes/chromium/ws/playwright-chromium.ts → shared/chromium.playwright.ws.ts} +7 -4
- package/src/{routes/chromium/ws/cdp-chromium.ts → shared/chromium.ws.ts} +6 -6
- package/src/{routes/chromium/http/content-post.ts → shared/content.http.ts} +4 -4
- package/src/{routes/chromium/http/download-post.ts → shared/download.http.ts} +4 -4
- package/src/{routes/chromium/http/function-post.ts → shared/function.http.ts} +4 -4
- package/src/shared/json-list.http.ts +35 -0
- package/src/{routes/chromium/http/json-new.ts → shared/json-new.http.ts} +23 -7
- package/src/{routes/chromium/http/json-protocol-get.ts → shared/json-protocol.http.ts} +3 -5
- package/src/{routes/chromium/http/json-version-get.ts → shared/json-version.http.ts} +4 -5
- package/src/shared/page.ws.ts +35 -0
- package/src/{routes/chromium/http/pdf-post.ts → shared/pdf.http.ts} +4 -4
- package/src/{routes/chromium/http/performance.ts → shared/performance.http.ts} +4 -4
- package/src/{routes/chromium/http/scrape-post.ts → shared/scrape.http.ts} +4 -4
- package/src/{routes/chromium/http/screenshot-post.ts → shared/screenshot.http.ts} +4 -4
- package/src/{routes/chromium → shared}/utils/function/handler.ts +2 -2
- package/src/{routes/chromium → shared}/utils/performance/main.ts +1 -2
- package/src/shim.ts +2 -1
- package/src/types.ts +27 -20
- package/src/utils.ts +32 -14
- package/static/devtools/Images/accelerometer-back.svg +1 -0
- package/static/devtools/Images/accelerometer-bottom.png +0 -0
- package/static/devtools/Images/accelerometer-front.svg +1 -0
- package/static/devtools/Images/accelerometer-left.png +0 -0
- package/static/devtools/Images/accelerometer-right.png +0 -0
- package/static/devtools/Images/accelerometer-top.png +0 -0
- package/static/devtools/Images/baseline-icon.svg +1 -0
- package/static/devtools/Images/breaking_change_icon.svg +1 -0
- package/static/devtools/Images/checkboxCheckmark.svg +1 -0
- package/static/devtools/Images/checker.png +0 -0
- package/static/devtools/Images/chevrons.svg +1 -0
- package/static/devtools/Images/chromeDisabledSelect.png +0 -0
- package/static/devtools/Images/chromeDisabledSelect_2x.png +0 -0
- package/static/devtools/Images/chromeLeft.avif +0 -0
- package/static/devtools/Images/chromeMiddle.avif +0 -0
- package/static/devtools/Images/chromeRight.avif +0 -0
- package/static/devtools/Images/chromeSelect.svg +1 -0
- package/static/devtools/Images/chromeSelectDark.svg +1 -0
- package/static/devtools/Images/cssoverview_icons_2x.avif +0 -0
- package/static/devtools/Images/dropdown_7x6_icon.svg +1 -0
- package/static/devtools/Images/elements_panel_icon.svg +1 -0
- package/static/devtools/Images/errorWave.svg +1 -0
- package/static/devtools/Images/error_icon.svg +1 -0
- package/static/devtools/Images/feedback_thin_16x16_icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-center-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-end-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-space-around-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-space-between-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-space-evenly-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-start-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-stretch-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-center-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-flex-end-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-flex-start-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-stretch-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-center-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-flex-end-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-flex-start-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-stretch-icon.svg +1 -0
- package/static/devtools/Images/flex-direction-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-center-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-flex-end-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-flex-start-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-space-around-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-space-between-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-space-evenly-icon.svg +1 -0
- package/static/devtools/Images/ic_checkmark_16x16.svg +3 -0
- package/static/devtools/Images/ic_delete_filter.svg +1 -0
- package/static/devtools/Images/ic_delete_list.svg +1 -0
- package/static/devtools/Images/ic_info_black_18dp.svg +1 -0
- package/static/devtools/Images/ic_page_next_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_page_prev_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_redo_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_show_node_16x16.svg +4 -0
- package/static/devtools/Images/ic_suggest_color.svg +6 -0
- package/static/devtools/Images/ic_undo_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_warning_black_18dp.svg +1 -0
- package/static/devtools/Images/issue-text-icon.svg +1 -0
- package/static/devtools/Images/largeIcons.svg +1 -0
- package/static/devtools/Images/lighthouse_logo.svg +1 -0
- package/static/devtools/Images/link_icon.svg +1 -0
- package/static/devtools/Images/mediumIcons.svg +1 -0
- package/static/devtools/Images/navigationControls.png +0 -0
- package/static/devtools/Images/navigationControls_2x.png +0 -0
- package/static/devtools/Images/network_panel_icon.svg +1 -0
- package/static/devtools/Images/nodeIcon.avif +0 -0
- package/static/devtools/Images/node_search_icon.svg +1 -0
- package/static/devtools/Images/popoverArrows.png +0 -0
- package/static/devtools/Images/profileGroupIcon.png +0 -0
- package/static/devtools/Images/profileIcon.png +0 -0
- package/static/devtools/Images/profileSmallIcon.png +0 -0
- package/static/devtools/Images/radioDot-dark-theme.png +0 -0
- package/static/devtools/Images/radioDot.png +0 -0
- package/static/devtools/Images/refresh_12x12_icon.svg +1 -0
- package/static/devtools/Images/resizeDiagonal.svg +1 -0
- package/static/devtools/Images/resizeHorizontal.svg +1 -0
- package/static/devtools/Images/resizeVertical.svg +1 -0
- package/static/devtools/Images/resourceCSSIcon.png +0 -0
- package/static/devtools/Images/resourceDocumentIcon.png +0 -0
- package/static/devtools/Images/resourceDocumentIconSmall.png +0 -0
- package/static/devtools/Images/resourceJSIcon.png +0 -0
- package/static/devtools/Images/resourcePlainIcon.png +0 -0
- package/static/devtools/Images/resourcePlainIconSmall.png +0 -0
- package/static/devtools/Images/resourcesTimeGraphIcon.avif +0 -0
- package/static/devtools/Images/searchNext.png +0 -0
- package/static/devtools/Images/searchPrev.png +0 -0
- package/static/devtools/Images/securityIcons.svg +1 -0
- package/static/devtools/Images/settings_14x14_icon.svg +1 -0
- package/static/devtools/Images/smallIcons.svg +1 -0
- package/static/devtools/Images/sources_panel_icon.svg +1 -0
- package/static/devtools/Images/speech.png +0 -0
- package/static/devtools/Images/toolbarResizerVertical.png +0 -0
- package/static/devtools/Images/touchCursor.png +0 -0
- package/static/devtools/Images/touchCursor_2x.png +0 -0
- package/static/devtools/Images/treeoutlineTriangles.svg +1 -0
- package/static/devtools/Images/warning_icon.svg +1 -0
- package/static/devtools/Images/whatsnew.avif +0 -0
- package/static/devtools/Tests.js +1654 -0
- package/static/devtools/accessibility/accessibility-legacy.js +1 -0
- package/static/devtools/accessibility/accessibility-meta.js +1 -0
- package/static/devtools/accessibility/accessibility.js +1 -0
- package/static/devtools/accessibility/accessibility_module.js +1 -0
- package/static/devtools/accessibility_test_runner/accessibility_test_runner.js +77 -0
- package/static/devtools/accessibility_test_runner/accessibility_test_runner_module.js +0 -0
- package/static/devtools/animation/animation-legacy.js +1 -0
- package/static/devtools/animation/animation-meta.js +1 -0
- package/static/devtools/animation/animation.js +1 -0
- package/static/devtools/animation/animation_module.js +1 -0
- package/static/devtools/application_test_runner/AppcacheTestRunner.js +220 -0
- package/static/devtools/application_test_runner/CacheStorageTestRunner.js +286 -0
- package/static/devtools/application_test_runner/IndexedDBTestRunner.js +476 -0
- package/static/devtools/application_test_runner/ResourceTreeTestRunner.js +99 -0
- package/static/devtools/application_test_runner/ResourcesTestRunner.js +167 -0
- package/static/devtools/application_test_runner/ServiceWorkersTestRunner.js +131 -0
- package/static/devtools/application_test_runner/application_test_runner.js +10 -0
- package/static/devtools/application_test_runner/application_test_runner_module.js +0 -0
- package/static/devtools/axe_core_test_runner/axe_core_test_runner.js +174 -0
- package/static/devtools/axe_core_test_runner/axe_core_test_runner_module.js +0 -0
- package/static/devtools/bindings/bindings-legacy.js +1 -0
- package/static/devtools/bindings/bindings.js +1 -0
- package/static/devtools/bindings_test_runner/AutomappingTestRunner.js +130 -0
- package/static/devtools/bindings_test_runner/BindingsTestRunner.js +238 -0
- package/static/devtools/bindings_test_runner/IsolatedFilesystemTestRunner.js +287 -0
- package/static/devtools/bindings_test_runner/OverridesTestRunner.js +26 -0
- package/static/devtools/bindings_test_runner/PersistenceTestRunner.js +109 -0
- package/static/devtools/bindings_test_runner/bindings_test_runner.js +9 -0
- package/static/devtools/bindings_test_runner/bindings_test_runner_module.js +0 -0
- package/static/devtools/browser_debugger/browser_debugger-legacy.js +1 -0
- package/static/devtools/browser_debugger/browser_debugger-meta.js +1 -0
- package/static/devtools/browser_debugger/browser_debugger.js +1 -0
- package/static/devtools/browser_debugger/browser_debugger_module.js +1 -0
- package/static/devtools/browser_sdk/browser_sdk-meta.js +1 -0
- package/static/devtools/browser_sdk/browser_sdk.js +1 -0
- package/static/devtools/changes/changes-legacy.js +1 -0
- package/static/devtools/changes/changes-meta.js +1 -0
- package/static/devtools/changes/changes.js +1 -0
- package/static/devtools/changes/changes_module.js +1 -0
- package/static/devtools/client_variations/client_variations.js +1 -0
- package/static/devtools/client_variations/client_variations_module.js +0 -0
- package/static/devtools/cm/cm.js +1 -0
- package/static/devtools/cm/cm_module.js +1 -0
- package/static/devtools/cm_headless/cm_headless.js +1 -0
- package/static/devtools/color_picker/color_picker-legacy.js +1 -0
- package/static/devtools/color_picker/color_picker.js +1 -0
- package/static/devtools/color_picker/color_picker_module.js +1 -0
- package/static/devtools/common/common-legacy.js +1 -0
- package/static/devtools/common/common.js +1 -0
- package/static/devtools/component_helpers/component_helpers.js +1 -0
- package/static/devtools/components/components-legacy.js +1 -0
- package/static/devtools/components/components.js +1 -0
- package/static/devtools/console/console-legacy.js +1 -0
- package/static/devtools/console/console-meta.js +1 -0
- package/static/devtools/console/console.js +6 -0
- package/static/devtools/console/console_module.js +1 -0
- package/static/devtools/console_counters/console_counters-legacy.js +1 -0
- package/static/devtools/console_counters/console_counters.js +1 -0
- package/static/devtools/console_test_runner/console_test_runner.js +696 -0
- package/static/devtools/console_test_runner/console_test_runner_module.js +0 -0
- package/static/devtools/cookie_table/cookie_table-legacy.js +1 -0
- package/static/devtools/cookie_table/cookie_table.js +1 -0
- package/static/devtools/cookie_table/cookie_table_module.js +1 -0
- package/static/devtools/coverage/coverage-legacy.js +1 -0
- package/static/devtools/coverage/coverage-meta.js +1 -0
- package/static/devtools/coverage/coverage.js +1 -0
- package/static/devtools/coverage/coverage_module.js +1 -0
- package/static/devtools/coverage_test_runner/coverage_test_runner.js +151 -0
- package/static/devtools/coverage_test_runner/coverage_test_runner_module.js +0 -0
- package/static/devtools/cpu_profiler_test_runner/cpu_profiler_test_runner.js +72 -0
- package/static/devtools/cpu_profiler_test_runner/cpu_profiler_test_runner_module.js +0 -0
- package/static/devtools/css_overview/css_overview-meta.js +1 -0
- package/static/devtools/css_overview/css_overview.js +146 -0
- package/static/devtools/css_overview/css_overview_module.js +1 -0
- package/static/devtools/data_grid/data_grid-legacy.js +1 -0
- package/static/devtools/data_grid/data_grid.js +1 -0
- package/static/devtools/data_grid/data_grid_module.js +1 -0
- package/static/devtools/data_grid_test_runner/data_grid_test_runner.js +78 -0
- package/static/devtools/data_grid_test_runner/data_grid_test_runner_module.js +0 -0
- package/static/devtools/developer_resources/developer_resources-legacy.js +1 -0
- package/static/devtools/developer_resources/developer_resources-meta.js +1 -0
- package/static/devtools/developer_resources/developer_resources.js +1 -0
- package/static/devtools/developer_resources/developer_resources_module.js +1 -0
- package/static/devtools/device_mode_test_runner/device_mode_test_runner.js +45 -0
- package/static/devtools/device_mode_test_runner/device_mode_test_runner_module.js +0 -0
- package/static/devtools/devtools_app.html +20 -0
- package/static/devtools/devtools_app.js +1 -0
- package/static/devtools/devtools_compatibility.js +1546 -0
- package/static/devtools/diff/diff-legacy.js +1 -0
- package/static/devtools/diff/diff.js +1 -0
- package/static/devtools/diff/diff_module.js +0 -0
- package/static/devtools/dom_extension/dom_extension.js +1 -0
- package/static/devtools/elements/elements-legacy.js +1 -0
- package/static/devtools/elements/elements-meta.js +1 -0
- package/static/devtools/elements/elements.js +469 -0
- package/static/devtools/elements/elements_module.js +1 -0
- package/static/devtools/elements_test_runner/EditDOMTestRunner.js +78 -0
- package/static/devtools/elements_test_runner/ElementsPanelShadowSelectionOnRefreshTestRunner.js +39 -0
- package/static/devtools/elements_test_runner/ElementsTestRunner.js +1280 -0
- package/static/devtools/elements_test_runner/SetOuterHTMLTestRunner.js +115 -0
- package/static/devtools/elements_test_runner/StylesUpdateLinksTestRunner.js +134 -0
- package/static/devtools/elements_test_runner/elements_test_runner.js +9 -0
- package/static/devtools/elements_test_runner/elements_test_runner_module.js +0 -0
- package/static/devtools/emulated_devices/emulated_devices_module.js +0 -0
- package/static/devtools/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPad-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPad-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
- package/static/devtools/emulation/emulation-legacy.js +1 -0
- package/static/devtools/emulation/emulation-meta.js +1 -0
- package/static/devtools/emulation/emulation.js +1 -0
- package/static/devtools/event_listeners/event_listeners-legacy.js +1 -0
- package/static/devtools/event_listeners/event_listeners.js +1 -0
- package/static/devtools/event_listeners/event_listeners_module.js +1 -0
- package/static/devtools/extensions/extensions-legacy.js +1 -0
- package/static/devtools/extensions/extensions.js +1 -0
- package/static/devtools/extensions_test_runner/ExtensionsNetworkTestRunner.js +27 -0
- package/static/devtools/extensions_test_runner/ExtensionsTestRunner.js +68 -0
- package/static/devtools/extensions_test_runner/extensions_test_runner.js +6 -0
- package/static/devtools/extensions_test_runner/extensions_test_runner_module.js +0 -0
- package/static/devtools/formatter/formatter-legacy.js +1 -0
- package/static/devtools/formatter/formatter.js +1 -0
- package/static/devtools/formatter/formatter_module.js +0 -0
- package/static/devtools/formatter_worker/FormatterActions.js +1 -0
- package/static/devtools/formatter_worker/formatter_worker-entrypoint.js +1 -0
- package/static/devtools/formatter_worker/formatter_worker.js +1 -0
- package/static/devtools/har_importer/har_importer-legacy.js +1 -0
- package/static/devtools/har_importer/har_importer.js +1 -0
- package/static/devtools/har_importer/har_importer_module.js +0 -0
- package/static/devtools/heap_profiler_test_runner/heap_profiler_test_runner.js +740 -0
- package/static/devtools/heap_profiler_test_runner/heap_profiler_test_runner_module.js +0 -0
- package/static/devtools/heap_snapshot_model/heap_snapshot_model-legacy.js +1 -0
- package/static/devtools/heap_snapshot_model/heap_snapshot_model.js +1 -0
- package/static/devtools/heap_snapshot_model/heap_snapshot_model_module.js +0 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +1 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker-legacy.js +1 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker.js +1 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker_module.js +0 -0
- package/static/devtools/help/help-legacy.js +1 -0
- package/static/devtools/help/help-meta.js +1 -0
- package/static/devtools/help/help.js +1 -0
- package/static/devtools/help/help_module.js +1 -0
- package/static/devtools/host/host-legacy.js +1 -0
- package/static/devtools/host/host.js +1 -0
- package/static/devtools/i18n/i18n.js +1 -0
- package/static/devtools/i18n/i18n_locales-tsconfig.json +8 -0
- package/static/devtools/i18n/locales/en-US.json +3566 -0
- package/static/devtools/inline_editor/inline_editor-legacy.js +1 -0
- package/static/devtools/inline_editor/inline_editor.js +203 -0
- package/static/devtools/inline_editor/inline_editor_module.js +1 -0
- package/static/devtools/input/input-legacy.js +1 -0
- package/static/devtools/input/input-meta.js +1 -0
- package/static/devtools/input/input.js +1 -0
- package/static/devtools/input/input_module.js +1 -0
- package/static/devtools/inspector.html +20 -0
- package/static/devtools/inspector.js +1 -0
- package/static/devtools/inspector_main/inspector_main-legacy.js +1 -0
- package/static/devtools/inspector_main/inspector_main-meta.js +1 -0
- package/static/devtools/inspector_main/inspector_main.js +1 -0
- package/static/devtools/integration_test_runner.html +14 -0
- package/static/devtools/integration_test_runner.js +2 -0
- package/static/devtools/issues/issues-legacy.js +1 -0
- package/static/devtools/issues/issues-meta.js +1 -0
- package/static/devtools/issues/issues.js +67 -0
- package/static/devtools/issues/issues_module.js +1 -0
- package/static/devtools/javascript_metadata/javascript_metadata-legacy.js +1 -0
- package/static/devtools/javascript_metadata/javascript_metadata.js +1 -0
- package/static/devtools/javascript_metadata/javascript_metadata_module.js +0 -0
- package/static/devtools/js_app.html +20 -0
- package/static/devtools/js_app.js +1 -0
- package/static/devtools/js_main/js_main-legacy.js +1 -0
- package/static/devtools/js_main/js_main.js +1 -0
- package/static/devtools/js_profiler/js_profiler-meta.js +1 -0
- package/static/devtools/js_profiler/js_profiler.js +1 -0
- package/static/devtools/js_profiler/js_profiler_module.js +0 -0
- package/static/devtools/layer_viewer/layer_viewer-legacy.js +1 -0
- package/static/devtools/layer_viewer/layer_viewer.js +1 -0
- package/static/devtools/layer_viewer/layer_viewer_module.js +1 -0
- package/static/devtools/layers/layers-legacy.js +1 -0
- package/static/devtools/layers/layers-meta.js +1 -0
- package/static/devtools/layers/layers.js +1 -0
- package/static/devtools/layers/layers_module.js +0 -0
- package/static/devtools/layers_test_runner/layers_test_runner.js +156 -0
- package/static/devtools/layers_test_runner/layers_test_runner_module.js +0 -0
- package/static/devtools/lighthouse/lighthouse-legacy.js +1 -0
- package/static/devtools/lighthouse/lighthouse-meta.js +1 -0
- package/static/devtools/lighthouse/lighthouse.js +70 -0
- package/static/devtools/lighthouse/lighthouse_module.js +1 -0
- package/static/devtools/lighthouse_test_runner/lighthouse_test_runner.js +136 -0
- package/static/devtools/lighthouse_test_runner/lighthouse_test_runner_module.js +0 -0
- package/static/devtools/lighthouse_worker/LighthouseService.js +195 -0
- package/static/devtools/lighthouse_worker/lighthouse_worker.js +6 -0
- package/static/devtools/lighthouse_worker.js +1 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector-legacy.js +1 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector-meta.js +1 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector.js +399 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector_module.js +0 -0
- package/static/devtools/main/main-legacy.js +1 -0
- package/static/devtools/main/main.js +1 -0
- package/static/devtools/media/media-legacy.js +1 -0
- package/static/devtools/media/media-meta.js +1 -0
- package/static/devtools/media/media.js +1 -0
- package/static/devtools/media/media_module.js +1 -0
- package/static/devtools/mobile_throttling/mobile_throttling-legacy.js +1 -0
- package/static/devtools/mobile_throttling/mobile_throttling-meta.js +1 -0
- package/static/devtools/mobile_throttling/mobile_throttling.js +1 -0
- package/static/devtools/ndb_app.html +20 -0
- package/static/devtools/ndb_app.js +1 -0
- package/static/devtools/network/network-legacy.js +1 -0
- package/static/devtools/network/network-meta.js +1 -0
- package/static/devtools/network/network.js +72 -0
- package/static/devtools/network/network_module.js +1 -0
- package/static/devtools/network_test_runner/network_test_runner.js +280 -0
- package/static/devtools/network_test_runner/network_test_runner_module.js +0 -0
- package/static/devtools/node_app.html +20 -0
- package/static/devtools/node_app.js +1 -0
- package/static/devtools/node_debugger/node_debugger-meta.js +1 -0
- package/static/devtools/node_debugger/node_debugger.js +1 -0
- package/static/devtools/node_debugger/node_debugger_module.js +0 -0
- package/static/devtools/node_main/node_main-legacy.js +1 -0
- package/static/devtools/node_main/node_main-meta.js +1 -0
- package/static/devtools/node_main/node_main.js +1 -0
- package/static/devtools/object_ui/object_ui-legacy.js +1 -0
- package/static/devtools/object_ui/object_ui.js +3 -0
- package/static/devtools/object_ui/object_ui_module.js +1 -0
- package/static/devtools/perf_ui/perf_ui-legacy.js +1 -0
- package/static/devtools/perf_ui/perf_ui.js +152 -0
- package/static/devtools/perf_ui/perf_ui_module.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor-legacy.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor-meta.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor_module.js +1 -0
- package/static/devtools/performance_test_runner/TimelineDataTestRunner.js +5375 -0
- package/static/devtools/performance_test_runner/TimelineTestRunner.js +446 -0
- package/static/devtools/performance_test_runner/performance_test_runner.js +6 -0
- package/static/devtools/performance_test_runner/performance_test_runner_module.js +0 -0
- package/static/devtools/persistence/persistence-legacy.js +1 -0
- package/static/devtools/persistence/persistence-meta.js +1 -0
- package/static/devtools/persistence/persistence.js +1 -0
- package/static/devtools/platform/platform.js +1 -0
- package/static/devtools/profiler/profiler-legacy.js +1 -0
- package/static/devtools/profiler/profiler-meta.js +1 -0
- package/static/devtools/profiler/profiler.js +8 -0
- package/static/devtools/profiler/profiler_module.js +1 -0
- package/static/devtools/protocol_client/protocol_client-legacy.js +1 -0
- package/static/devtools/protocol_client/protocol_client.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor-legacy.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor-meta.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor_module.js +1 -0
- package/static/devtools/quick_open/quick_open-legacy.js +1 -0
- package/static/devtools/quick_open/quick_open.js +1 -0
- package/static/devtools/quick_open/quick_open_module.js +1 -0
- package/static/devtools/recorder/recorder.js +1 -0
- package/static/devtools/resources/resources-legacy.js +1 -0
- package/static/devtools/resources/resources-meta.js +1 -0
- package/static/devtools/resources/resources.js +28 -0
- package/static/devtools/resources/resources_module.js +1 -0
- package/static/devtools/root/root-legacy.js +1 -0
- package/static/devtools/root/root.js +1 -0
- package/static/devtools/screencast/screencast-legacy.js +1 -0
- package/static/devtools/screencast/screencast.js +1 -0
- package/static/devtools/sdk/sdk-legacy.js +1 -0
- package/static/devtools/sdk/sdk.js +2 -0
- package/static/devtools/sdk_test_runner/sdk_test_runner.js +297 -0
- package/static/devtools/sdk_test_runner/sdk_test_runner_module.js +0 -0
- package/static/devtools/search/search-legacy.js +1 -0
- package/static/devtools/search/search.js +1 -0
- package/static/devtools/search/search_module.js +1 -0
- package/static/devtools/security/security-legacy.js +1 -0
- package/static/devtools/security/security-meta.js +1 -0
- package/static/devtools/security/security.js +1 -0
- package/static/devtools/security/security_module.js +1 -0
- package/static/devtools/security_test_runner/security_test_runner.js +32 -0
- package/static/devtools/security_test_runner/security_test_runner_module.js +0 -0
- package/static/devtools/services/services-legacy.js +1 -0
- package/static/devtools/services/services.js +1 -0
- package/static/devtools/settings/settings-legacy.js +1 -0
- package/static/devtools/settings/settings-meta.js +1 -0
- package/static/devtools/settings/settings.js +1 -0
- package/static/devtools/settings/settings_module.js +1 -0
- package/static/devtools/shell.js +1 -0
- package/static/devtools/snippets/snippets-legacy.js +1 -0
- package/static/devtools/snippets/snippets.js +1 -0
- package/static/devtools/snippets/snippets_module.js +0 -0
- package/static/devtools/source_frame/source_frame-legacy.js +1 -0
- package/static/devtools/source_frame/source_frame.js +1 -0
- package/static/devtools/source_frame/source_frame_module.js +1 -0
- package/static/devtools/sources/sources-legacy.js +1 -0
- package/static/devtools/sources/sources-meta.js +1 -0
- package/static/devtools/sources/sources.js +13 -0
- package/static/devtools/sources/sources_module.js +1 -0
- package/static/devtools/sources_test_runner/AutocompleteTestRunner.js +46 -0
- package/static/devtools/sources_test_runner/DebuggerTestRunner.js +895 -0
- package/static/devtools/sources_test_runner/EditorTestRunner.js +237 -0
- package/static/devtools/sources_test_runner/LiveEditTestRunner.js +33 -0
- package/static/devtools/sources_test_runner/SearchTestRunner.js +158 -0
- package/static/devtools/sources_test_runner/SourcesTestRunner.js +173 -0
- package/static/devtools/sources_test_runner/sources_test_runner.js +10 -0
- package/static/devtools/sources_test_runner/sources_test_runner_module.js +0 -0
- package/static/devtools/startup/startup.js +1 -0
- package/static/devtools/test_runner/test_runner.js +1 -0
- package/static/devtools/text_editor/text_editor-legacy.js +1 -0
- package/static/devtools/text_editor/text_editor.js +1 -0
- package/static/devtools/text_editor/text_editor_module.js +1 -0
- package/static/devtools/text_utils/text_utils-legacy.js +1 -0
- package/static/devtools/text_utils/text_utils.js +1 -0
- package/static/devtools/theme_support/theme_support.js +1 -0
- package/static/devtools/third_party/acorn/acorn-tsconfig.json +8 -0
- package/static/devtools/third_party/acorn/acorn.js +1 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.d.ts +209 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.mjs +5261 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.mjs.d.ts +2 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.mjs.map +1 -0
- package/static/devtools/third_party/acorn-loose/acorn-loose-tsconfig.json +8 -0
- package/static/devtools/third_party/acorn-loose/package/dist/acorn-loose.d.ts +16 -0
- package/static/devtools/third_party/acorn-loose/package/dist/acorn-loose.mjs +1418 -0
- package/static/devtools/third_party/axe-core/axe.js +16423 -0
- package/static/devtools/third_party/chromium/chromium-tsconfig.json +8 -0
- package/static/devtools/third_party/chromium/client-variations/ClientVariations.d.ts +13 -0
- package/static/devtools/third_party/chromium/client-variations/ClientVariations.js +27 -0
- package/static/devtools/third_party/codemirror/codemirror-tsconfig.json +72 -0
- package/static/devtools/third_party/codemirror/package/addon/comment/comment.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/addon/comment/comment.js +211 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/closebrackets.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/closebrackets.js +201 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/matchbrackets.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/matchbrackets.js +158 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/brace-fold.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/brace-fold.js +105 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldcode.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldcode.js +157 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldgutter.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldgutter.js +163 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/multiplex.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/multiplex.js +131 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/overlay.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/overlay.js +90 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/simple.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/simple.js +216 -0
- package/static/devtools/third_party/codemirror/package/addon/runmode/runmode-standalone.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/runmode/runmode-standalone.js +333 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/active-line.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/active-line.js +72 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/mark-selection.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/mark-selection.js +119 -0
- package/static/devtools/third_party/codemirror/package/lib/codemirror.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/lib/codemirror.js +9800 -0
- package/static/devtools/third_party/codemirror/package/mode/clike/clike.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/clike/clike.js +935 -0
- package/static/devtools/third_party/codemirror/package/mode/clojure/clojure.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/clojure/clojure.js +292 -0
- package/static/devtools/third_party/codemirror/package/mode/coffeescript/coffeescript.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/coffeescript/coffeescript.js +359 -0
- package/static/devtools/third_party/codemirror/package/mode/css/css.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/css/css.js +864 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlembedded/htmlembedded.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlembedded/htmlembedded.js +37 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlmixed/htmlmixed.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlmixed/htmlmixed.js +153 -0
- package/static/devtools/third_party/codemirror/package/mode/javascript/javascript.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/javascript/javascript.js +942 -0
- package/static/devtools/third_party/codemirror/package/mode/jsx/jsx.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/jsx/jsx.js +148 -0
- package/static/devtools/third_party/codemirror/package/mode/livescript/livescript.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/livescript/livescript.js +280 -0
- package/static/devtools/third_party/codemirror/package/mode/markdown/markdown.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/markdown/markdown.js +886 -0
- package/static/devtools/third_party/codemirror/package/mode/php/php.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/php/php.js +234 -0
- package/static/devtools/third_party/codemirror/package/mode/python/python.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/python/python.js +399 -0
- package/static/devtools/third_party/codemirror/package/mode/shell/shell.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/shell/shell.js +168 -0
- package/static/devtools/third_party/codemirror/package/mode/wast/wast.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/wast/wast.js +41 -0
- package/static/devtools/third_party/codemirror/package/mode/xml/xml.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/xml/xml.js +413 -0
- package/static/devtools/third_party/i18n/bundle-tsconfig.json +8 -0
- package/static/devtools/third_party/i18n/i18n.d.ts +108 -0
- package/static/devtools/third_party/i18n/i18n.js +4336 -0
- package/static/devtools/third_party/lighthouse/lighthouse-dt-bundle.d.ts +1 -0
- package/static/devtools/third_party/lighthouse/lighthouse-dt-bundle.js +1140 -0
- package/static/devtools/third_party/lighthouse/lighthouse-tsconfig.json +10 -0
- package/static/devtools/third_party/lighthouse/locales/ar-XB.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ar.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/bg.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ca.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/cs.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/da.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/de.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/el.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/en-GB.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/en-US.json +2297 -0
- package/static/devtools/third_party/lighthouse/locales/en-XA.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/en-XL.json +2297 -0
- package/static/devtools/third_party/lighthouse/locales/es-419.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/es.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/fi.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/fil.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/fr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/he.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/hi.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/hr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/hu.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/id.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/it.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ja.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ko.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/lt.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/lv.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/nl.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/no.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/pl.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/pt-PT.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/pt.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ro.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ru.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sk.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sl.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sr-Latn.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sv.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ta.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/te.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/th.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/tr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/uk.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/vi.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/zh-HK.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/zh-TW.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/zh.json +2066 -0
- package/static/devtools/third_party/lighthouse/report-assets/report-generator.d.ts +1 -0
- package/static/devtools/third_party/lighthouse/report-assets/report-generator.js +167 -0
- package/static/devtools/third_party/lighthouse/report-assets/report.d.ts +1 -0
- package/static/devtools/third_party/lighthouse/report-assets/report.js +5032 -0
- package/static/devtools/third_party/lit-html/lit-html-tsconfig.json +22 -0
- package/static/devtools/third_party/lit-html/lit-html.js +120 -0
- package/static/devtools/third_party/lit-html/package/directives/class-map.d.ts +28 -0
- package/static/devtools/third_party/lit-html/package/directives/class-map.js +101 -0
- package/static/devtools/third_party/lit-html/package/directives/class-map.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/if-defined.d.ts +22 -0
- package/static/devtools/third_party/lit-html/package/directives/if-defined.js +37 -0
- package/static/devtools/third_party/lit-html/package/directives/if-defined.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/live.d.ts +38 -0
- package/static/devtools/third_party/lit-html/package/directives/live.js +73 -0
- package/static/devtools/third_party/lit-html/package/directives/live.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/repeat.d.ts +37 -0
- package/static/devtools/third_party/lit-html/package/directives/repeat.js +415 -0
- package/static/devtools/third_party/lit-html/package/directives/repeat.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/style-map.d.ts +36 -0
- package/static/devtools/third_party/lit-html/package/directives/style-map.js +78 -0
- package/static/devtools/third_party/lit-html/package/directives/style-map.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/default-template-processor.d.ts +39 -0
- package/static/devtools/third_party/lit-html/package/lib/default-template-processor.js +52 -0
- package/static/devtools/third_party/lit-html/package/lib/default-template-processor.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/directive.d.ts +59 -0
- package/static/devtools/third_party/lit-html/package/lib/directive.js +63 -0
- package/static/devtools/third_party/lit-html/package/lib/directive.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/dom.d.ts +29 -0
- package/static/devtools/third_party/lit-html/package/lib/dom.js +44 -0
- package/static/devtools/third_party/lit-html/package/lib/dom.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/part.d.ts +46 -0
- package/static/devtools/third_party/lit-html/package/lib/part.js +23 -0
- package/static/devtools/third_party/lit-html/package/lib/part.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/parts.d.ts +148 -0
- package/static/devtools/third_party/lit-html/package/lib/parts.js +476 -0
- package/static/devtools/third_party/lit-html/package/lib/parts.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/render.d.ts +33 -0
- package/static/devtools/third_party/lit-html/package/lib/render.js +43 -0
- package/static/devtools/third_party/lit-html/package/lib/render.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template-factory.d.ts +57 -0
- package/static/devtools/third_party/lit-html/package/lib/template-factory.js +48 -0
- package/static/devtools/third_party/lit-html/package/lib/template-factory.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template-instance.d.ts +30 -0
- package/static/devtools/third_party/lit-html/package/lib/template-instance.js +134 -0
- package/static/devtools/third_party/lit-html/package/lib/template-instance.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template-result.d.ts +42 -0
- package/static/devtools/third_party/lit-html/package/lib/template-result.js +131 -0
- package/static/devtools/third_party/lit-html/package/lib/template-result.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template.d.ts +92 -0
- package/static/devtools/third_party/lit-html/package/lib/template.js +215 -0
- package/static/devtools/third_party/lit-html/package/lib/template.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lit-html.d.ts +42 -0
- package/static/devtools/third_party/lit-html/package/lit-html.js +59 -0
- package/static/devtools/third_party/lit-html/package/lit-html.js.map +1 -0
- package/static/devtools/third_party/marked/marked-tsconfig.json +8 -0
- package/static/devtools/third_party/marked/marked.js +1 -0
- package/static/devtools/third_party/marked/package/lib/marked.esm.d.ts +1 -0
- package/static/devtools/third_party/marked/package/lib/marked.esm.js +2584 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts +53 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.js +64 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts +176 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js +356 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +21 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +81 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +423 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +516 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +39 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +76 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +30 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +120 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +266 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.js +15 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts +72 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js +60 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +181 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +316 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +174 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +647 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts +53 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +77 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +33 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js +873 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +76 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js +92 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts +25 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.js +33 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +34 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +37 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +59 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.js +15 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts +89 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +109 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts +82 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.js +83 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +189 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +313 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +60 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js +66 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +735 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +962 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +276 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +421 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +128 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +150 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +322 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +463 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +439 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +724 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +62 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +145 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +80 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +262 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +152 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js +31 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +910 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +1343 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.d.ts +21 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.js +15 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +135 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +133 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +24 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.js +0 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +66 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +157 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts +61 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.js +72 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +98 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +137 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts +28 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.js +43 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts +47 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +94 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +40 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.js +403 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +102 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +109 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js +24 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts +17 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js +20 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts +66 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +288 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +17 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.js +16 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +39 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.js +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +132 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +468 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +40 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +197 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +42 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.js +0 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +16 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +469 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +29 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +34 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +31 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +61 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +156 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +183 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +151 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js +23 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.js +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +19 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.js +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.js +53 -0
- package/static/devtools/third_party/puppeteer/puppeteer-tsconfig.json +58 -0
- package/static/devtools/third_party/puppeteer/puppeteer.js +1 -0
- package/static/devtools/third_party/wasmparser/package/dist/esm/WasmDis.js +1595 -0
- package/static/devtools/third_party/wasmparser/package/dist/esm/WasmParser.js +3120 -0
- package/static/devtools/third_party/wasmparser/wasmparser-tsconfig.json +9 -0
- package/static/devtools/timeline/timeline-legacy.js +1 -0
- package/static/devtools/timeline/timeline-meta.js +1 -0
- package/static/devtools/timeline/timeline.js +1 -0
- package/static/devtools/timeline/timeline_module.js +1 -0
- package/static/devtools/timeline_model/timeline_model-legacy.js +1 -0
- package/static/devtools/timeline_model/timeline_model.js +1 -0
- package/static/devtools/timeline_model/timeline_model_module.js +0 -0
- package/static/devtools/toolbox.html +20 -0
- package/static/devtools/toolbox.js +1 -0
- package/static/devtools/toolbox_bootstrap/toolbox_bootstrap.js +1 -0
- package/static/devtools/ui/components/components.js +378 -0
- package/static/devtools/ui/ui-legacy.js +1 -0
- package/static/devtools/ui/ui.js +3 -0
- package/static/devtools/ui/utils/utils.js +1 -0
- package/static/devtools/wasmparser_worker/wasmparser_worker-entrypoint.js +1 -0
- package/static/devtools/wasmparser_worker/wasmparser_worker.js +1 -0
- package/static/devtools/web_audio/graph_visualizer/graph_visualizer.js +1 -0
- package/static/devtools/web_audio/web_audio-legacy.js +1 -0
- package/static/devtools/web_audio/web_audio-meta.js +1 -0
- package/static/devtools/web_audio/web_audio.js +23 -0
- package/static/devtools/web_audio/web_audio_module.js +1 -0
- package/static/devtools/webauthn/webauthn-legacy.js +1 -0
- package/static/devtools/webauthn/webauthn-meta.js +1 -0
- package/static/devtools/webauthn/webauthn.js +6 -0
- package/static/devtools/webauthn/webauthn_module.js +1 -0
- package/static/devtools/worker_app.html +20 -0
- package/static/devtools/worker_app.js +1 -0
- package/static/devtools/worker_main/worker_main-legacy.js +1 -0
- package/static/devtools/worker_main/worker_main.js +1 -0
- package/static/devtools/worker_service/worker_service.js +1 -0
- package/static/devtools/workspace/workspace-legacy.js +1 -0
- package/static/devtools/workspace/workspace.js +1 -0
- package/static/devtools/workspace_diff/workspace_diff-legacy.js +1 -0
- package/static/devtools/workspace_diff/workspace_diff.js +1 -0
- package/static/devtools/workspace_diff/workspace_diff_module.js +0 -0
- package/static/docs/swagger.json +2337 -279
- package/static/function/client.js +1037 -992
- package/build/routes/chromium/http/json-new.js +0 -23
- package/build/routes/chromium/http/json-version-get.response.json +0 -37
- package/build/routes/chromium/utils/cdp.d.ts +0 -2
- package/build/routes/chromium/utils/cdp.js +0 -14
- package/build/routes/chromium/ws/cdp-chromium.js +0 -10
- package/src/routes/chromium/http/json-list.ts +0 -50
- package/src/routes/chromium/utils/cdp.ts +0 -19
- package/build/routes/{chromium/http/content-post.query.json → chrome/http/content.post.query.json} +0 -0
- package/build/routes/{chromium/http/content-post.response.json → chrome/http/content.post.response.json} +0 -0
- package/build/routes/{chromium/http/download-post.body.json → chrome/http/download.post.body.json} +0 -0
- package/build/routes/{chromium/http/download-post.query.json → chrome/http/download.post.query.json} +0 -0
- package/build/routes/{chromium/http/download-post.response.json → chrome/http/download.post.response.json} +0 -0
- package/build/routes/{chromium/http/function-post.body.json → chrome/http/function.post.body.json} +0 -0
- package/build/routes/{chromium/http/function-post.query.json → chrome/http/function.post.query.json} +0 -0
- package/build/routes/{chromium/http/function-post.response.json → chrome/http/function.post.response.json} +0 -0
- package/build/routes/{chromium/http/json-list.response.json → chrome/http/json-list.get.response.json} +0 -0
- package/build/routes/{chromium/http/json-new.response.json → chrome/http/json-new.put.response.json} +0 -0
- package/build/routes/{chromium/http/json-protocol-get.response.json → chrome/http/json-protocol.get.response.json} +0 -0
- package/build/routes/{chromium/http/pdf-post.query.json → chrome/http/pdf.post.query.json} +0 -0
- package/build/routes/{chromium/http/pdf-post.response.json → chrome/http/pdf.post.response.json} +0 -0
- package/build/routes/{chromium/http/performance.body.json → chrome/http/performance.post.body.json} +0 -0
- package/build/routes/{chromium/http/performance.query.json → chrome/http/performance.post.query.json} +0 -0
- package/build/routes/{chromium/http/performance.response.json → chrome/http/performance.post.response.json} +0 -0
- package/build/routes/{chromium/http/scrape-post.query.json → chrome/http/scrape.post.query.json} +0 -0
- package/build/routes/{chromium/http/scrape-post.response.json → chrome/http/scrape.post.response.json} +0 -0
- package/build/routes/{chromium/http/screenshot-post.query.json → chrome/http/screenshot.post.query.json} +0 -0
- package/build/routes/{chromium/http/screenshot-post.response.json → chrome/http/screenshot.post.response.json} +0 -0
- package/build/routes/{chromium/utils/performance/child.d.ts → chrome/tests/content.spec.d.ts} +0 -0
- package/build/routes/{chromium/utils/performance/types.js → chrome/tests/download.spec.d.ts} +0 -0
- package/build/routes/{chromium/ws/cdp-chromium.query.json → chrome/ws/browser.query.json} +0 -0
- package/build/routes/{chromium/ws/playwright-chromium.query.json → chrome/ws/playwright.query.json} +0 -0
- package/build/routes/{firefox/ws/playwright-firefox.query.json → chromium/ws/playwright.query.json} +0 -0
- package/build/routes/{webkit/ws/playwright-webkit.query.json → firefox/ws/playwright.query.json} +0 -0
- package/build/routes/management/http/{config-get.d.ts → config.get.d.ts} +0 -0
- package/build/routes/management/http/{config-get.js → config.get.js} +0 -0
- package/build/routes/management/http/{config-get.response.json → config.get.response.json} +0 -0
- package/build/routes/management/http/{metrics-total-get.d.ts → metrics-total.get.d.ts} +0 -0
- package/build/routes/management/http/{metrics-total-get.js → metrics-total.get.js} +0 -0
- package/build/routes/management/http/{metrics-total-get.response.json → metrics-total.get.response.json} +0 -0
- package/build/routes/management/http/{metrics-get.d.ts → metrics.get.d.ts} +0 -0
- package/build/routes/management/http/{metrics-get.js → metrics.get.js} +0 -0
- package/build/routes/management/http/{metrics-get.response.json → metrics.get.response.json} +0 -0
- package/build/routes/management/http/{sessions-get.d.ts → sessions.get.d.ts} +0 -0
- package/build/routes/management/http/{sessions-get.js → sessions.get.js} +0 -0
- package/build/routes/management/http/{static-get.d.ts → static.get.d.ts} +0 -0
- package/build/{routes/chromium/http/json-protocol-get.d.ts → shared/json-protocol.http.d.ts} +1 -1
- package/build/{routes/chromium/http/json-version-get.d.ts → shared/json-version.http.d.ts} +1 -1
- /package/build/{routes/chromium → shared}/utils/function/client.d.ts +0 -0
- /package/build/{routes/chromium → shared}/utils/function/client.js +0 -0
- /package/build/{routes/chromium → shared}/utils/function/handler.d.ts +0 -0
- /package/build/{routes/chromium → shared}/utils/function/handler.js +0 -0
- /package/build/{routes/chromium → shared}/utils/performance/child.js +0 -0
- /package/build/{routes/chromium → shared}/utils/performance/main.d.ts +0 -0
- /package/build/{routes/chromium → shared}/utils/performance/types.d.ts +0 -0
- /package/src/routes/management/http/{config-get.ts → config.get.ts} +0 -0
- /package/src/routes/management/http/{metrics-total-get.ts → metrics-total.get.ts} +0 -0
- /package/src/routes/management/http/{metrics-get.ts → metrics.get.ts} +0 -0
- /package/src/routes/management/http/{sessions-get.ts → sessions.get.ts} +0 -0
- /package/src/{routes/chromium → shared}/utils/function/client.ts +0 -0
- /package/src/{routes/chromium → shared}/utils/performance/child.ts +0 -0
- /package/src/{routes/chromium → shared}/utils/performance/types.ts +0 -0
|
@@ -0,0 +1,935 @@
|
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
2
|
+
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
|
3
|
+
|
|
4
|
+
(function(mod) {
|
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
|
6
|
+
mod(require("../../lib/codemirror"));
|
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
|
8
|
+
define(["../../lib/codemirror"], mod);
|
|
9
|
+
else // Plain browser env
|
|
10
|
+
mod(CodeMirror);
|
|
11
|
+
})(function(CodeMirror) {
|
|
12
|
+
"use strict";
|
|
13
|
+
|
|
14
|
+
function Context(indented, column, type, info, align, prev) {
|
|
15
|
+
this.indented = indented;
|
|
16
|
+
this.column = column;
|
|
17
|
+
this.type = type;
|
|
18
|
+
this.info = info;
|
|
19
|
+
this.align = align;
|
|
20
|
+
this.prev = prev;
|
|
21
|
+
}
|
|
22
|
+
function pushContext(state, col, type, info) {
|
|
23
|
+
var indent = state.indented;
|
|
24
|
+
if (state.context && state.context.type == "statement" && type != "statement")
|
|
25
|
+
indent = state.context.indented;
|
|
26
|
+
return state.context = new Context(indent, col, type, info, null, state.context);
|
|
27
|
+
}
|
|
28
|
+
function popContext(state) {
|
|
29
|
+
var t = state.context.type;
|
|
30
|
+
if (t == ")" || t == "]" || t == "}")
|
|
31
|
+
state.indented = state.context.indented;
|
|
32
|
+
return state.context = state.context.prev;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function typeBefore(stream, state, pos) {
|
|
36
|
+
if (state.prevToken == "variable" || state.prevToken == "type") return true;
|
|
37
|
+
if (/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(stream.string.slice(0, pos))) return true;
|
|
38
|
+
if (state.typeAtEndOfLine && stream.column() == stream.indentation()) return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function isTopScope(context) {
|
|
42
|
+
for (;;) {
|
|
43
|
+
if (!context || context.type == "top") return true;
|
|
44
|
+
if (context.type == "}" && context.prev.info != "namespace") return false;
|
|
45
|
+
context = context.prev;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
CodeMirror.defineMode("clike", function(config, parserConfig) {
|
|
50
|
+
var indentUnit = config.indentUnit,
|
|
51
|
+
statementIndentUnit = parserConfig.statementIndentUnit || indentUnit,
|
|
52
|
+
dontAlignCalls = parserConfig.dontAlignCalls,
|
|
53
|
+
keywords = parserConfig.keywords || {},
|
|
54
|
+
types = parserConfig.types || {},
|
|
55
|
+
builtin = parserConfig.builtin || {},
|
|
56
|
+
blockKeywords = parserConfig.blockKeywords || {},
|
|
57
|
+
defKeywords = parserConfig.defKeywords || {},
|
|
58
|
+
atoms = parserConfig.atoms || {},
|
|
59
|
+
hooks = parserConfig.hooks || {},
|
|
60
|
+
multiLineStrings = parserConfig.multiLineStrings,
|
|
61
|
+
indentStatements = parserConfig.indentStatements !== false,
|
|
62
|
+
indentSwitch = parserConfig.indentSwitch !== false,
|
|
63
|
+
namespaceSeparator = parserConfig.namespaceSeparator,
|
|
64
|
+
isPunctuationChar = parserConfig.isPunctuationChar || /[\[\]{}\(\),;\:\.]/,
|
|
65
|
+
numberStart = parserConfig.numberStart || /[\d\.]/,
|
|
66
|
+
number = parserConfig.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,
|
|
67
|
+
isOperatorChar = parserConfig.isOperatorChar || /[+\-*&%=<>!?|\/]/,
|
|
68
|
+
isIdentifierChar = parserConfig.isIdentifierChar || /[\w\$_\xa1-\uffff]/,
|
|
69
|
+
// An optional function that takes a {string} token and returns true if it
|
|
70
|
+
// should be treated as a builtin.
|
|
71
|
+
isReservedIdentifier = parserConfig.isReservedIdentifier || false;
|
|
72
|
+
|
|
73
|
+
var curPunc, isDefKeyword;
|
|
74
|
+
|
|
75
|
+
function tokenBase(stream, state) {
|
|
76
|
+
var ch = stream.next();
|
|
77
|
+
if (hooks[ch]) {
|
|
78
|
+
var result = hooks[ch](stream, state);
|
|
79
|
+
if (result !== false) return result;
|
|
80
|
+
}
|
|
81
|
+
if (ch == '"' || ch == "'") {
|
|
82
|
+
state.tokenize = tokenString(ch);
|
|
83
|
+
return state.tokenize(stream, state);
|
|
84
|
+
}
|
|
85
|
+
if (numberStart.test(ch)) {
|
|
86
|
+
stream.backUp(1)
|
|
87
|
+
if (stream.match(number)) return "number"
|
|
88
|
+
stream.next()
|
|
89
|
+
}
|
|
90
|
+
if (isPunctuationChar.test(ch)) {
|
|
91
|
+
curPunc = ch;
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
if (ch == "/") {
|
|
95
|
+
if (stream.eat("*")) {
|
|
96
|
+
state.tokenize = tokenComment;
|
|
97
|
+
return tokenComment(stream, state);
|
|
98
|
+
}
|
|
99
|
+
if (stream.eat("/")) {
|
|
100
|
+
stream.skipToEnd();
|
|
101
|
+
return "comment";
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (isOperatorChar.test(ch)) {
|
|
105
|
+
while (!stream.match(/^\/[\/*]/, false) && stream.eat(isOperatorChar)) {}
|
|
106
|
+
return "operator";
|
|
107
|
+
}
|
|
108
|
+
stream.eatWhile(isIdentifierChar);
|
|
109
|
+
if (namespaceSeparator) while (stream.match(namespaceSeparator))
|
|
110
|
+
stream.eatWhile(isIdentifierChar);
|
|
111
|
+
|
|
112
|
+
var cur = stream.current();
|
|
113
|
+
if (contains(keywords, cur)) {
|
|
114
|
+
if (contains(blockKeywords, cur)) curPunc = "newstatement";
|
|
115
|
+
if (contains(defKeywords, cur)) isDefKeyword = true;
|
|
116
|
+
return "keyword";
|
|
117
|
+
}
|
|
118
|
+
if (contains(types, cur)) return "type";
|
|
119
|
+
if (contains(builtin, cur)
|
|
120
|
+
|| (isReservedIdentifier && isReservedIdentifier(cur))) {
|
|
121
|
+
if (contains(blockKeywords, cur)) curPunc = "newstatement";
|
|
122
|
+
return "builtin";
|
|
123
|
+
}
|
|
124
|
+
if (contains(atoms, cur)) return "atom";
|
|
125
|
+
return "variable";
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function tokenString(quote) {
|
|
129
|
+
return function(stream, state) {
|
|
130
|
+
var escaped = false, next, end = false;
|
|
131
|
+
while ((next = stream.next()) != null) {
|
|
132
|
+
if (next == quote && !escaped) {end = true; break;}
|
|
133
|
+
escaped = !escaped && next == "\\";
|
|
134
|
+
}
|
|
135
|
+
if (end || !(escaped || multiLineStrings))
|
|
136
|
+
state.tokenize = null;
|
|
137
|
+
return "string";
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function tokenComment(stream, state) {
|
|
142
|
+
var maybeEnd = false, ch;
|
|
143
|
+
while (ch = stream.next()) {
|
|
144
|
+
if (ch == "/" && maybeEnd) {
|
|
145
|
+
state.tokenize = null;
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
maybeEnd = (ch == "*");
|
|
149
|
+
}
|
|
150
|
+
return "comment";
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function maybeEOL(stream, state) {
|
|
154
|
+
if (parserConfig.typeFirstDefinitions && stream.eol() && isTopScope(state.context))
|
|
155
|
+
state.typeAtEndOfLine = typeBefore(stream, state, stream.pos)
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// Interface
|
|
159
|
+
|
|
160
|
+
return {
|
|
161
|
+
startState: function(basecolumn) {
|
|
162
|
+
return {
|
|
163
|
+
tokenize: null,
|
|
164
|
+
context: new Context((basecolumn || 0) - indentUnit, 0, "top", null, false),
|
|
165
|
+
indented: 0,
|
|
166
|
+
startOfLine: true,
|
|
167
|
+
prevToken: null
|
|
168
|
+
};
|
|
169
|
+
},
|
|
170
|
+
|
|
171
|
+
token: function(stream, state) {
|
|
172
|
+
var ctx = state.context;
|
|
173
|
+
if (stream.sol()) {
|
|
174
|
+
if (ctx.align == null) ctx.align = false;
|
|
175
|
+
state.indented = stream.indentation();
|
|
176
|
+
state.startOfLine = true;
|
|
177
|
+
}
|
|
178
|
+
if (stream.eatSpace()) { maybeEOL(stream, state); return null; }
|
|
179
|
+
curPunc = isDefKeyword = null;
|
|
180
|
+
var style = (state.tokenize || tokenBase)(stream, state);
|
|
181
|
+
if (style == "comment" || style == "meta") return style;
|
|
182
|
+
if (ctx.align == null) ctx.align = true;
|
|
183
|
+
|
|
184
|
+
if (curPunc == ";" || curPunc == ":" || (curPunc == "," && stream.match(/^\s*(?:\/\/.*)?$/, false)))
|
|
185
|
+
while (state.context.type == "statement") popContext(state);
|
|
186
|
+
else if (curPunc == "{") pushContext(state, stream.column(), "}");
|
|
187
|
+
else if (curPunc == "[") pushContext(state, stream.column(), "]");
|
|
188
|
+
else if (curPunc == "(") pushContext(state, stream.column(), ")");
|
|
189
|
+
else if (curPunc == "}") {
|
|
190
|
+
while (ctx.type == "statement") ctx = popContext(state);
|
|
191
|
+
if (ctx.type == "}") ctx = popContext(state);
|
|
192
|
+
while (ctx.type == "statement") ctx = popContext(state);
|
|
193
|
+
}
|
|
194
|
+
else if (curPunc == ctx.type) popContext(state);
|
|
195
|
+
else if (indentStatements &&
|
|
196
|
+
(((ctx.type == "}" || ctx.type == "top") && curPunc != ";") ||
|
|
197
|
+
(ctx.type == "statement" && curPunc == "newstatement"))) {
|
|
198
|
+
pushContext(state, stream.column(), "statement", stream.current());
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (style == "variable" &&
|
|
202
|
+
((state.prevToken == "def" ||
|
|
203
|
+
(parserConfig.typeFirstDefinitions && typeBefore(stream, state, stream.start) &&
|
|
204
|
+
isTopScope(state.context) && stream.match(/^\s*\(/, false)))))
|
|
205
|
+
style = "def";
|
|
206
|
+
|
|
207
|
+
if (hooks.token) {
|
|
208
|
+
var result = hooks.token(stream, state, style);
|
|
209
|
+
if (result !== undefined) style = result;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (style == "def" && parserConfig.styleDefs === false) style = "variable";
|
|
213
|
+
|
|
214
|
+
state.startOfLine = false;
|
|
215
|
+
state.prevToken = isDefKeyword ? "def" : style || curPunc;
|
|
216
|
+
maybeEOL(stream, state);
|
|
217
|
+
return style;
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
indent: function(state, textAfter) {
|
|
221
|
+
if (state.tokenize != tokenBase && state.tokenize != null || state.typeAtEndOfLine) return CodeMirror.Pass;
|
|
222
|
+
var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
|
|
223
|
+
var closing = firstChar == ctx.type;
|
|
224
|
+
if (ctx.type == "statement" && firstChar == "}") ctx = ctx.prev;
|
|
225
|
+
if (parserConfig.dontIndentStatements)
|
|
226
|
+
while (ctx.type == "statement" && parserConfig.dontIndentStatements.test(ctx.info))
|
|
227
|
+
ctx = ctx.prev
|
|
228
|
+
if (hooks.indent) {
|
|
229
|
+
var hook = hooks.indent(state, ctx, textAfter, indentUnit);
|
|
230
|
+
if (typeof hook == "number") return hook
|
|
231
|
+
}
|
|
232
|
+
var switchBlock = ctx.prev && ctx.prev.info == "switch";
|
|
233
|
+
if (parserConfig.allmanIndentation && /[{(]/.test(firstChar)) {
|
|
234
|
+
while (ctx.type != "top" && ctx.type != "}") ctx = ctx.prev
|
|
235
|
+
return ctx.indented
|
|
236
|
+
}
|
|
237
|
+
if (ctx.type == "statement")
|
|
238
|
+
return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit);
|
|
239
|
+
if (ctx.align && (!dontAlignCalls || ctx.type != ")"))
|
|
240
|
+
return ctx.column + (closing ? 0 : 1);
|
|
241
|
+
if (ctx.type == ")" && !closing)
|
|
242
|
+
return ctx.indented + statementIndentUnit;
|
|
243
|
+
|
|
244
|
+
return ctx.indented + (closing ? 0 : indentUnit) +
|
|
245
|
+
(!closing && switchBlock && !/^(?:case|default)\b/.test(textAfter) ? indentUnit : 0);
|
|
246
|
+
},
|
|
247
|
+
|
|
248
|
+
electricInput: indentSwitch ? /^\s*(?:case .*?:|default:|\{\}?|\})$/ : /^\s*[{}]$/,
|
|
249
|
+
blockCommentStart: "/*",
|
|
250
|
+
blockCommentEnd: "*/",
|
|
251
|
+
blockCommentContinue: " * ",
|
|
252
|
+
lineComment: "//",
|
|
253
|
+
fold: "brace"
|
|
254
|
+
};
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
function words(str) {
|
|
258
|
+
var obj = {}, words = str.split(" ");
|
|
259
|
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
|
260
|
+
return obj;
|
|
261
|
+
}
|
|
262
|
+
function contains(words, word) {
|
|
263
|
+
if (typeof words === "function") {
|
|
264
|
+
return words(word);
|
|
265
|
+
} else {
|
|
266
|
+
return words.propertyIsEnumerable(word);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
var cKeywords = "auto if break case register continue return default do sizeof " +
|
|
270
|
+
"static else struct switch extern typedef union for goto while enum const " +
|
|
271
|
+
"volatile inline restrict asm fortran";
|
|
272
|
+
|
|
273
|
+
// Keywords from https://en.cppreference.com/w/cpp/keyword includes C++20.
|
|
274
|
+
var cppKeywords = "alignas alignof and and_eq audit axiom bitand bitor catch " +
|
|
275
|
+
"class compl concept constexpr const_cast decltype delete dynamic_cast " +
|
|
276
|
+
"explicit export final friend import module mutable namespace new noexcept " +
|
|
277
|
+
"not not_eq operator or or_eq override private protected public " +
|
|
278
|
+
"reinterpret_cast requires static_assert static_cast template this " +
|
|
279
|
+
"thread_local throw try typeid typename using virtual xor xor_eq";
|
|
280
|
+
|
|
281
|
+
var objCKeywords = "bycopy byref in inout oneway out self super atomic nonatomic retain copy " +
|
|
282
|
+
"readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd " +
|
|
283
|
+
"@interface @implementation @end @protocol @encode @property @synthesize @dynamic @class " +
|
|
284
|
+
"@public @package @private @protected @required @optional @try @catch @finally @import " +
|
|
285
|
+
"@selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available";
|
|
286
|
+
|
|
287
|
+
var objCBuiltins = "FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION " +
|
|
288
|
+
" NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER " +
|
|
289
|
+
"NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION " +
|
|
290
|
+
"NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT"
|
|
291
|
+
|
|
292
|
+
// Do not use this. Use the cTypes function below. This is global just to avoid
|
|
293
|
+
// excessive calls when cTypes is being called multiple times during a parse.
|
|
294
|
+
var basicCTypes = words("int long char short double float unsigned signed " +
|
|
295
|
+
"void bool");
|
|
296
|
+
|
|
297
|
+
// Do not use this. Use the objCTypes function below. This is global just to avoid
|
|
298
|
+
// excessive calls when objCTypes is being called multiple times during a parse.
|
|
299
|
+
var basicObjCTypes = words("SEL instancetype id Class Protocol BOOL");
|
|
300
|
+
|
|
301
|
+
// Returns true if identifier is a "C" type.
|
|
302
|
+
// C type is defined as those that are reserved by the compiler (basicTypes),
|
|
303
|
+
// and those that end in _t (Reserved by POSIX for types)
|
|
304
|
+
// http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html
|
|
305
|
+
function cTypes(identifier) {
|
|
306
|
+
return contains(basicCTypes, identifier) || /.+_t$/.test(identifier);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// Returns true if identifier is a "Objective C" type.
|
|
310
|
+
function objCTypes(identifier) {
|
|
311
|
+
return cTypes(identifier) || contains(basicObjCTypes, identifier);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
var cBlockKeywords = "case do else for if switch while struct enum union";
|
|
315
|
+
var cDefKeywords = "struct enum union";
|
|
316
|
+
|
|
317
|
+
function cppHook(stream, state) {
|
|
318
|
+
if (!state.startOfLine) return false
|
|
319
|
+
for (var ch, next = null; ch = stream.peek();) {
|
|
320
|
+
if (ch == "\\" && stream.match(/^.$/)) {
|
|
321
|
+
next = cppHook
|
|
322
|
+
break
|
|
323
|
+
} else if (ch == "/" && stream.match(/^\/[\/\*]/, false)) {
|
|
324
|
+
break
|
|
325
|
+
}
|
|
326
|
+
stream.next()
|
|
327
|
+
}
|
|
328
|
+
state.tokenize = next
|
|
329
|
+
return "meta"
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
function pointerHook(_stream, state) {
|
|
333
|
+
if (state.prevToken == "type") return "type";
|
|
334
|
+
return false;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
// For C and C++ (and ObjC): identifiers starting with __
|
|
338
|
+
// or _ followed by a capital letter are reserved for the compiler.
|
|
339
|
+
function cIsReservedIdentifier(token) {
|
|
340
|
+
if (!token || token.length < 2) return false;
|
|
341
|
+
if (token[0] != '_') return false;
|
|
342
|
+
return (token[1] == '_') || (token[1] !== token[1].toLowerCase());
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
function cpp14Literal(stream) {
|
|
346
|
+
stream.eatWhile(/[\w\.']/);
|
|
347
|
+
return "number";
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
function cpp11StringHook(stream, state) {
|
|
351
|
+
stream.backUp(1);
|
|
352
|
+
// Raw strings.
|
|
353
|
+
if (stream.match(/(R|u8R|uR|UR|LR)/)) {
|
|
354
|
+
var match = stream.match(/"([^\s\\()]{0,16})\(/);
|
|
355
|
+
if (!match) {
|
|
356
|
+
return false;
|
|
357
|
+
}
|
|
358
|
+
state.cpp11RawStringDelim = match[1];
|
|
359
|
+
state.tokenize = tokenRawString;
|
|
360
|
+
return tokenRawString(stream, state);
|
|
361
|
+
}
|
|
362
|
+
// Unicode strings/chars.
|
|
363
|
+
if (stream.match(/(u8|u|U|L)/)) {
|
|
364
|
+
if (stream.match(/["']/, /* eat */ false)) {
|
|
365
|
+
return "string";
|
|
366
|
+
}
|
|
367
|
+
return false;
|
|
368
|
+
}
|
|
369
|
+
// Ignore this hook.
|
|
370
|
+
stream.next();
|
|
371
|
+
return false;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
function cppLooksLikeConstructor(word) {
|
|
375
|
+
var lastTwo = /(\w+)::~?(\w+)$/.exec(word);
|
|
376
|
+
return lastTwo && lastTwo[1] == lastTwo[2];
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// C#-style strings where "" escapes a quote.
|
|
380
|
+
function tokenAtString(stream, state) {
|
|
381
|
+
var next;
|
|
382
|
+
while ((next = stream.next()) != null) {
|
|
383
|
+
if (next == '"' && !stream.eat('"')) {
|
|
384
|
+
state.tokenize = null;
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
return "string";
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// C++11 raw string literal is <prefix>"<delim>( anything )<delim>", where
|
|
392
|
+
// <delim> can be a string up to 16 characters long.
|
|
393
|
+
function tokenRawString(stream, state) {
|
|
394
|
+
// Escape characters that have special regex meanings.
|
|
395
|
+
var delim = state.cpp11RawStringDelim.replace(/[^\w\s]/g, '\\$&');
|
|
396
|
+
var match = stream.match(new RegExp(".*?\\)" + delim + '"'));
|
|
397
|
+
if (match)
|
|
398
|
+
state.tokenize = null;
|
|
399
|
+
else
|
|
400
|
+
stream.skipToEnd();
|
|
401
|
+
return "string";
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
function def(mimes, mode) {
|
|
405
|
+
if (typeof mimes == "string") mimes = [mimes];
|
|
406
|
+
var words = [];
|
|
407
|
+
function add(obj) {
|
|
408
|
+
if (obj) for (var prop in obj) if (obj.hasOwnProperty(prop))
|
|
409
|
+
words.push(prop);
|
|
410
|
+
}
|
|
411
|
+
add(mode.keywords);
|
|
412
|
+
add(mode.types);
|
|
413
|
+
add(mode.builtin);
|
|
414
|
+
add(mode.atoms);
|
|
415
|
+
if (words.length) {
|
|
416
|
+
mode.helperType = mimes[0];
|
|
417
|
+
CodeMirror.registerHelper("hintWords", mimes[0], words);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
for (var i = 0; i < mimes.length; ++i)
|
|
421
|
+
CodeMirror.defineMIME(mimes[i], mode);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
def(["text/x-csrc", "text/x-c", "text/x-chdr"], {
|
|
425
|
+
name: "clike",
|
|
426
|
+
keywords: words(cKeywords),
|
|
427
|
+
types: cTypes,
|
|
428
|
+
blockKeywords: words(cBlockKeywords),
|
|
429
|
+
defKeywords: words(cDefKeywords),
|
|
430
|
+
typeFirstDefinitions: true,
|
|
431
|
+
atoms: words("NULL true false"),
|
|
432
|
+
isReservedIdentifier: cIsReservedIdentifier,
|
|
433
|
+
hooks: {
|
|
434
|
+
"#": cppHook,
|
|
435
|
+
"*": pointerHook,
|
|
436
|
+
},
|
|
437
|
+
modeProps: {fold: ["brace", "include"]}
|
|
438
|
+
});
|
|
439
|
+
|
|
440
|
+
def(["text/x-c++src", "text/x-c++hdr"], {
|
|
441
|
+
name: "clike",
|
|
442
|
+
keywords: words(cKeywords + " " + cppKeywords),
|
|
443
|
+
types: cTypes,
|
|
444
|
+
blockKeywords: words(cBlockKeywords + " class try catch"),
|
|
445
|
+
defKeywords: words(cDefKeywords + " class namespace"),
|
|
446
|
+
typeFirstDefinitions: true,
|
|
447
|
+
atoms: words("true false NULL nullptr"),
|
|
448
|
+
dontIndentStatements: /^template$/,
|
|
449
|
+
isIdentifierChar: /[\w\$_~\xa1-\uffff]/,
|
|
450
|
+
isReservedIdentifier: cIsReservedIdentifier,
|
|
451
|
+
hooks: {
|
|
452
|
+
"#": cppHook,
|
|
453
|
+
"*": pointerHook,
|
|
454
|
+
"u": cpp11StringHook,
|
|
455
|
+
"U": cpp11StringHook,
|
|
456
|
+
"L": cpp11StringHook,
|
|
457
|
+
"R": cpp11StringHook,
|
|
458
|
+
"0": cpp14Literal,
|
|
459
|
+
"1": cpp14Literal,
|
|
460
|
+
"2": cpp14Literal,
|
|
461
|
+
"3": cpp14Literal,
|
|
462
|
+
"4": cpp14Literal,
|
|
463
|
+
"5": cpp14Literal,
|
|
464
|
+
"6": cpp14Literal,
|
|
465
|
+
"7": cpp14Literal,
|
|
466
|
+
"8": cpp14Literal,
|
|
467
|
+
"9": cpp14Literal,
|
|
468
|
+
token: function(stream, state, style) {
|
|
469
|
+
if (style == "variable" && stream.peek() == "(" &&
|
|
470
|
+
(state.prevToken == ";" || state.prevToken == null ||
|
|
471
|
+
state.prevToken == "}") &&
|
|
472
|
+
cppLooksLikeConstructor(stream.current()))
|
|
473
|
+
return "def";
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
namespaceSeparator: "::",
|
|
477
|
+
modeProps: {fold: ["brace", "include"]}
|
|
478
|
+
});
|
|
479
|
+
|
|
480
|
+
def("text/x-java", {
|
|
481
|
+
name: "clike",
|
|
482
|
+
keywords: words("abstract assert break case catch class const continue default " +
|
|
483
|
+
"do else enum extends final finally for goto if implements import " +
|
|
484
|
+
"instanceof interface native new package private protected public " +
|
|
485
|
+
"return static strictfp super switch synchronized this throw throws transient " +
|
|
486
|
+
"try volatile while @interface"),
|
|
487
|
+
types: words("byte short int long float double boolean char void Boolean Byte Character Double Float " +
|
|
488
|
+
"Integer Long Number Object Short String StringBuffer StringBuilder Void"),
|
|
489
|
+
blockKeywords: words("catch class do else finally for if switch try while"),
|
|
490
|
+
defKeywords: words("class interface enum @interface"),
|
|
491
|
+
typeFirstDefinitions: true,
|
|
492
|
+
atoms: words("true false null"),
|
|
493
|
+
number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
|
|
494
|
+
hooks: {
|
|
495
|
+
"@": function(stream) {
|
|
496
|
+
// Don't match the @interface keyword.
|
|
497
|
+
if (stream.match('interface', false)) return false;
|
|
498
|
+
|
|
499
|
+
stream.eatWhile(/[\w\$_]/);
|
|
500
|
+
return "meta";
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
modeProps: {fold: ["brace", "import"]}
|
|
504
|
+
});
|
|
505
|
+
|
|
506
|
+
def("text/x-csharp", {
|
|
507
|
+
name: "clike",
|
|
508
|
+
keywords: words("abstract as async await base break case catch checked class const continue" +
|
|
509
|
+
" default delegate do else enum event explicit extern finally fixed for" +
|
|
510
|
+
" foreach goto if implicit in interface internal is lock namespace new" +
|
|
511
|
+
" operator out override params private protected public readonly ref return sealed" +
|
|
512
|
+
" sizeof stackalloc static struct switch this throw try typeof unchecked" +
|
|
513
|
+
" unsafe using virtual void volatile while add alias ascending descending dynamic from get" +
|
|
514
|
+
" global group into join let orderby partial remove select set value var yield"),
|
|
515
|
+
types: words("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func" +
|
|
516
|
+
" Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32" +
|
|
517
|
+
" UInt64 bool byte char decimal double short int long object" +
|
|
518
|
+
" sbyte float string ushort uint ulong"),
|
|
519
|
+
blockKeywords: words("catch class do else finally for foreach if struct switch try while"),
|
|
520
|
+
defKeywords: words("class interface namespace struct var"),
|
|
521
|
+
typeFirstDefinitions: true,
|
|
522
|
+
atoms: words("true false null"),
|
|
523
|
+
hooks: {
|
|
524
|
+
"@": function(stream, state) {
|
|
525
|
+
if (stream.eat('"')) {
|
|
526
|
+
state.tokenize = tokenAtString;
|
|
527
|
+
return tokenAtString(stream, state);
|
|
528
|
+
}
|
|
529
|
+
stream.eatWhile(/[\w\$_]/);
|
|
530
|
+
return "meta";
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
function tokenTripleString(stream, state) {
|
|
536
|
+
var escaped = false;
|
|
537
|
+
while (!stream.eol()) {
|
|
538
|
+
if (!escaped && stream.match('"""')) {
|
|
539
|
+
state.tokenize = null;
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
escaped = stream.next() == "\\" && !escaped;
|
|
543
|
+
}
|
|
544
|
+
return "string";
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
function tokenNestedComment(depth) {
|
|
548
|
+
return function (stream, state) {
|
|
549
|
+
var ch
|
|
550
|
+
while (ch = stream.next()) {
|
|
551
|
+
if (ch == "*" && stream.eat("/")) {
|
|
552
|
+
if (depth == 1) {
|
|
553
|
+
state.tokenize = null
|
|
554
|
+
break
|
|
555
|
+
} else {
|
|
556
|
+
state.tokenize = tokenNestedComment(depth - 1)
|
|
557
|
+
return state.tokenize(stream, state)
|
|
558
|
+
}
|
|
559
|
+
} else if (ch == "/" && stream.eat("*")) {
|
|
560
|
+
state.tokenize = tokenNestedComment(depth + 1)
|
|
561
|
+
return state.tokenize(stream, state)
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
return "comment"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
def("text/x-scala", {
|
|
569
|
+
name: "clike",
|
|
570
|
+
keywords: words(
|
|
571
|
+
/* scala */
|
|
572
|
+
"abstract case catch class def do else extends final finally for forSome if " +
|
|
573
|
+
"implicit import lazy match new null object override package private protected return " +
|
|
574
|
+
"sealed super this throw trait try type val var while with yield _ " +
|
|
575
|
+
|
|
576
|
+
/* package scala */
|
|
577
|
+
"assert assume require print println printf readLine readBoolean readByte readShort " +
|
|
578
|
+
"readChar readInt readLong readFloat readDouble"
|
|
579
|
+
),
|
|
580
|
+
types: words(
|
|
581
|
+
"AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either " +
|
|
582
|
+
"Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable " +
|
|
583
|
+
"Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering " +
|
|
584
|
+
"Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder " +
|
|
585
|
+
"StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector " +
|
|
586
|
+
|
|
587
|
+
/* package java.lang */
|
|
588
|
+
"Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " +
|
|
589
|
+
"Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " +
|
|
590
|
+
"Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " +
|
|
591
|
+
"StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
|
|
592
|
+
),
|
|
593
|
+
multiLineStrings: true,
|
|
594
|
+
blockKeywords: words("catch class enum do else finally for forSome if match switch try while"),
|
|
595
|
+
defKeywords: words("class enum def object package trait type val var"),
|
|
596
|
+
atoms: words("true false null"),
|
|
597
|
+
indentStatements: false,
|
|
598
|
+
indentSwitch: false,
|
|
599
|
+
isOperatorChar: /[+\-*&%=<>!?|\/#:@]/,
|
|
600
|
+
hooks: {
|
|
601
|
+
"@": function(stream) {
|
|
602
|
+
stream.eatWhile(/[\w\$_]/);
|
|
603
|
+
return "meta";
|
|
604
|
+
},
|
|
605
|
+
'"': function(stream, state) {
|
|
606
|
+
if (!stream.match('""')) return false;
|
|
607
|
+
state.tokenize = tokenTripleString;
|
|
608
|
+
return state.tokenize(stream, state);
|
|
609
|
+
},
|
|
610
|
+
"'": function(stream) {
|
|
611
|
+
stream.eatWhile(/[\w\$_\xa1-\uffff]/);
|
|
612
|
+
return "atom";
|
|
613
|
+
},
|
|
614
|
+
"=": function(stream, state) {
|
|
615
|
+
var cx = state.context
|
|
616
|
+
if (cx.type == "}" && cx.align && stream.eat(">")) {
|
|
617
|
+
state.context = new Context(cx.indented, cx.column, cx.type, cx.info, null, cx.prev)
|
|
618
|
+
return "operator"
|
|
619
|
+
} else {
|
|
620
|
+
return false
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
|
|
624
|
+
"/": function(stream, state) {
|
|
625
|
+
if (!stream.eat("*")) return false
|
|
626
|
+
state.tokenize = tokenNestedComment(1)
|
|
627
|
+
return state.tokenize(stream, state)
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
modeProps: {closeBrackets: {pairs: '()[]{}""', triples: '"'}}
|
|
631
|
+
});
|
|
632
|
+
|
|
633
|
+
function tokenKotlinString(tripleString){
|
|
634
|
+
return function (stream, state) {
|
|
635
|
+
var escaped = false, next, end = false;
|
|
636
|
+
while (!stream.eol()) {
|
|
637
|
+
if (!tripleString && !escaped && stream.match('"') ) {end = true; break;}
|
|
638
|
+
if (tripleString && stream.match('"""')) {end = true; break;}
|
|
639
|
+
next = stream.next();
|
|
640
|
+
if(!escaped && next == "$" && stream.match('{'))
|
|
641
|
+
stream.skipTo("}");
|
|
642
|
+
escaped = !escaped && next == "\\" && !tripleString;
|
|
643
|
+
}
|
|
644
|
+
if (end || !tripleString)
|
|
645
|
+
state.tokenize = null;
|
|
646
|
+
return "string";
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
def("text/x-kotlin", {
|
|
651
|
+
name: "clike",
|
|
652
|
+
keywords: words(
|
|
653
|
+
/*keywords*/
|
|
654
|
+
"package as typealias class interface this super val operator " +
|
|
655
|
+
"var fun for is in This throw return annotation " +
|
|
656
|
+
"break continue object if else while do try when !in !is as? " +
|
|
657
|
+
|
|
658
|
+
/*soft keywords*/
|
|
659
|
+
"file import where by get set abstract enum open inner override private public internal " +
|
|
660
|
+
"protected catch finally out final vararg reified dynamic companion constructor init " +
|
|
661
|
+
"sealed field property receiver param sparam lateinit data inline noinline tailrec " +
|
|
662
|
+
"external annotation crossinline const operator infix suspend actual expect setparam"
|
|
663
|
+
),
|
|
664
|
+
types: words(
|
|
665
|
+
/* package java.lang */
|
|
666
|
+
"Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable " +
|
|
667
|
+
"Compiler Double Exception Float Integer Long Math Number Object Package Pair Process " +
|
|
668
|
+
"Runtime Runnable SecurityManager Short StackTraceElement StrictMath String " +
|
|
669
|
+
"StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray " +
|
|
670
|
+
"ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy " +
|
|
671
|
+
"LazyThreadSafetyMode LongArray Nothing ShortArray Unit"
|
|
672
|
+
),
|
|
673
|
+
intendSwitch: false,
|
|
674
|
+
indentStatements: false,
|
|
675
|
+
multiLineStrings: true,
|
|
676
|
+
number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
|
|
677
|
+
blockKeywords: words("catch class do else finally for if where try while enum"),
|
|
678
|
+
defKeywords: words("class val var object interface fun"),
|
|
679
|
+
atoms: words("true false null this"),
|
|
680
|
+
hooks: {
|
|
681
|
+
"@": function(stream) {
|
|
682
|
+
stream.eatWhile(/[\w\$_]/);
|
|
683
|
+
return "meta";
|
|
684
|
+
},
|
|
685
|
+
'*': function(_stream, state) {
|
|
686
|
+
return state.prevToken == '.' ? 'variable' : 'operator';
|
|
687
|
+
},
|
|
688
|
+
'"': function(stream, state) {
|
|
689
|
+
state.tokenize = tokenKotlinString(stream.match('""'));
|
|
690
|
+
return state.tokenize(stream, state);
|
|
691
|
+
},
|
|
692
|
+
"/": function(stream, state) {
|
|
693
|
+
if (!stream.eat("*")) return false;
|
|
694
|
+
state.tokenize = tokenNestedComment(1);
|
|
695
|
+
return state.tokenize(stream, state)
|
|
696
|
+
},
|
|
697
|
+
indent: function(state, ctx, textAfter, indentUnit) {
|
|
698
|
+
var firstChar = textAfter && textAfter.charAt(0);
|
|
699
|
+
if ((state.prevToken == "}" || state.prevToken == ")") && textAfter == "")
|
|
700
|
+
return state.indented;
|
|
701
|
+
if ((state.prevToken == "operator" && textAfter != "}" && state.context.type != "}") ||
|
|
702
|
+
state.prevToken == "variable" && firstChar == "." ||
|
|
703
|
+
(state.prevToken == "}" || state.prevToken == ")") && firstChar == ".")
|
|
704
|
+
return indentUnit * 2 + ctx.indented;
|
|
705
|
+
if (ctx.align && ctx.type == "}")
|
|
706
|
+
return ctx.indented + (state.context.type == (textAfter || "").charAt(0) ? 0 : indentUnit);
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
modeProps: {closeBrackets: {triples: '"'}}
|
|
710
|
+
});
|
|
711
|
+
|
|
712
|
+
def(["x-shader/x-vertex", "x-shader/x-fragment"], {
|
|
713
|
+
name: "clike",
|
|
714
|
+
keywords: words("sampler1D sampler2D sampler3D samplerCube " +
|
|
715
|
+
"sampler1DShadow sampler2DShadow " +
|
|
716
|
+
"const attribute uniform varying " +
|
|
717
|
+
"break continue discard return " +
|
|
718
|
+
"for while do if else struct " +
|
|
719
|
+
"in out inout"),
|
|
720
|
+
types: words("float int bool void " +
|
|
721
|
+
"vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 " +
|
|
722
|
+
"mat2 mat3 mat4"),
|
|
723
|
+
blockKeywords: words("for while do if else struct"),
|
|
724
|
+
builtin: words("radians degrees sin cos tan asin acos atan " +
|
|
725
|
+
"pow exp log exp2 sqrt inversesqrt " +
|
|
726
|
+
"abs sign floor ceil fract mod min max clamp mix step smoothstep " +
|
|
727
|
+
"length distance dot cross normalize ftransform faceforward " +
|
|
728
|
+
"reflect refract matrixCompMult " +
|
|
729
|
+
"lessThan lessThanEqual greaterThan greaterThanEqual " +
|
|
730
|
+
"equal notEqual any all not " +
|
|
731
|
+
"texture1D texture1DProj texture1DLod texture1DProjLod " +
|
|
732
|
+
"texture2D texture2DProj texture2DLod texture2DProjLod " +
|
|
733
|
+
"texture3D texture3DProj texture3DLod texture3DProjLod " +
|
|
734
|
+
"textureCube textureCubeLod " +
|
|
735
|
+
"shadow1D shadow2D shadow1DProj shadow2DProj " +
|
|
736
|
+
"shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod " +
|
|
737
|
+
"dFdx dFdy fwidth " +
|
|
738
|
+
"noise1 noise2 noise3 noise4"),
|
|
739
|
+
atoms: words("true false " +
|
|
740
|
+
"gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex " +
|
|
741
|
+
"gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 " +
|
|
742
|
+
"gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 " +
|
|
743
|
+
"gl_FogCoord gl_PointCoord " +
|
|
744
|
+
"gl_Position gl_PointSize gl_ClipVertex " +
|
|
745
|
+
"gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor " +
|
|
746
|
+
"gl_TexCoord gl_FogFragCoord " +
|
|
747
|
+
"gl_FragCoord gl_FrontFacing " +
|
|
748
|
+
"gl_FragData gl_FragDepth " +
|
|
749
|
+
"gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix " +
|
|
750
|
+
"gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse " +
|
|
751
|
+
"gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse " +
|
|
752
|
+
"gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose " +
|
|
753
|
+
"gl_ProjectionMatrixInverseTranspose " +
|
|
754
|
+
"gl_ModelViewProjectionMatrixInverseTranspose " +
|
|
755
|
+
"gl_TextureMatrixInverseTranspose " +
|
|
756
|
+
"gl_NormalScale gl_DepthRange gl_ClipPlane " +
|
|
757
|
+
"gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel " +
|
|
758
|
+
"gl_FrontLightModelProduct gl_BackLightModelProduct " +
|
|
759
|
+
"gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ " +
|
|
760
|
+
"gl_FogParameters " +
|
|
761
|
+
"gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords " +
|
|
762
|
+
"gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats " +
|
|
763
|
+
"gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits " +
|
|
764
|
+
"gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits " +
|
|
765
|
+
"gl_MaxDrawBuffers"),
|
|
766
|
+
indentSwitch: false,
|
|
767
|
+
hooks: {"#": cppHook},
|
|
768
|
+
modeProps: {fold: ["brace", "include"]}
|
|
769
|
+
});
|
|
770
|
+
|
|
771
|
+
def("text/x-nesc", {
|
|
772
|
+
name: "clike",
|
|
773
|
+
keywords: words(cKeywords + " as atomic async call command component components configuration event generic " +
|
|
774
|
+
"implementation includes interface module new norace nx_struct nx_union post provides " +
|
|
775
|
+
"signal task uses abstract extends"),
|
|
776
|
+
types: cTypes,
|
|
777
|
+
blockKeywords: words(cBlockKeywords),
|
|
778
|
+
atoms: words("null true false"),
|
|
779
|
+
hooks: {"#": cppHook},
|
|
780
|
+
modeProps: {fold: ["brace", "include"]}
|
|
781
|
+
});
|
|
782
|
+
|
|
783
|
+
def("text/x-objectivec", {
|
|
784
|
+
name: "clike",
|
|
785
|
+
keywords: words(cKeywords + " " + objCKeywords),
|
|
786
|
+
types: objCTypes,
|
|
787
|
+
builtin: words(objCBuiltins),
|
|
788
|
+
blockKeywords: words(cBlockKeywords + " @synthesize @try @catch @finally @autoreleasepool @synchronized"),
|
|
789
|
+
defKeywords: words(cDefKeywords + " @interface @implementation @protocol @class"),
|
|
790
|
+
dontIndentStatements: /^@.*$/,
|
|
791
|
+
typeFirstDefinitions: true,
|
|
792
|
+
atoms: words("YES NO NULL Nil nil true false nullptr"),
|
|
793
|
+
isReservedIdentifier: cIsReservedIdentifier,
|
|
794
|
+
hooks: {
|
|
795
|
+
"#": cppHook,
|
|
796
|
+
"*": pointerHook,
|
|
797
|
+
},
|
|
798
|
+
modeProps: {fold: ["brace", "include"]}
|
|
799
|
+
});
|
|
800
|
+
|
|
801
|
+
def("text/x-objectivec++", {
|
|
802
|
+
name: "clike",
|
|
803
|
+
keywords: words(cKeywords + " " + objCKeywords + " " + cppKeywords),
|
|
804
|
+
types: objCTypes,
|
|
805
|
+
builtin: words(objCBuiltins),
|
|
806
|
+
blockKeywords: words(cBlockKeywords + " @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),
|
|
807
|
+
defKeywords: words(cDefKeywords + " @interface @implementation @protocol @class class namespace"),
|
|
808
|
+
dontIndentStatements: /^@.*$|^template$/,
|
|
809
|
+
typeFirstDefinitions: true,
|
|
810
|
+
atoms: words("YES NO NULL Nil nil true false nullptr"),
|
|
811
|
+
isReservedIdentifier: cIsReservedIdentifier,
|
|
812
|
+
hooks: {
|
|
813
|
+
"#": cppHook,
|
|
814
|
+
"*": pointerHook,
|
|
815
|
+
"u": cpp11StringHook,
|
|
816
|
+
"U": cpp11StringHook,
|
|
817
|
+
"L": cpp11StringHook,
|
|
818
|
+
"R": cpp11StringHook,
|
|
819
|
+
"0": cpp14Literal,
|
|
820
|
+
"1": cpp14Literal,
|
|
821
|
+
"2": cpp14Literal,
|
|
822
|
+
"3": cpp14Literal,
|
|
823
|
+
"4": cpp14Literal,
|
|
824
|
+
"5": cpp14Literal,
|
|
825
|
+
"6": cpp14Literal,
|
|
826
|
+
"7": cpp14Literal,
|
|
827
|
+
"8": cpp14Literal,
|
|
828
|
+
"9": cpp14Literal,
|
|
829
|
+
token: function(stream, state, style) {
|
|
830
|
+
if (style == "variable" && stream.peek() == "(" &&
|
|
831
|
+
(state.prevToken == ";" || state.prevToken == null ||
|
|
832
|
+
state.prevToken == "}") &&
|
|
833
|
+
cppLooksLikeConstructor(stream.current()))
|
|
834
|
+
return "def";
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
namespaceSeparator: "::",
|
|
838
|
+
modeProps: {fold: ["brace", "include"]}
|
|
839
|
+
});
|
|
840
|
+
|
|
841
|
+
def("text/x-squirrel", {
|
|
842
|
+
name: "clike",
|
|
843
|
+
keywords: words("base break clone continue const default delete enum extends function in class" +
|
|
844
|
+
" foreach local resume return this throw typeof yield constructor instanceof static"),
|
|
845
|
+
types: cTypes,
|
|
846
|
+
blockKeywords: words("case catch class else for foreach if switch try while"),
|
|
847
|
+
defKeywords: words("function local class"),
|
|
848
|
+
typeFirstDefinitions: true,
|
|
849
|
+
atoms: words("true false null"),
|
|
850
|
+
hooks: {"#": cppHook},
|
|
851
|
+
modeProps: {fold: ["brace", "include"]}
|
|
852
|
+
});
|
|
853
|
+
|
|
854
|
+
// Ceylon Strings need to deal with interpolation
|
|
855
|
+
var stringTokenizer = null;
|
|
856
|
+
function tokenCeylonString(type) {
|
|
857
|
+
return function(stream, state) {
|
|
858
|
+
var escaped = false, next, end = false;
|
|
859
|
+
while (!stream.eol()) {
|
|
860
|
+
if (!escaped && stream.match('"') &&
|
|
861
|
+
(type == "single" || stream.match('""'))) {
|
|
862
|
+
end = true;
|
|
863
|
+
break;
|
|
864
|
+
}
|
|
865
|
+
if (!escaped && stream.match('``')) {
|
|
866
|
+
stringTokenizer = tokenCeylonString(type);
|
|
867
|
+
end = true;
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
next = stream.next();
|
|
871
|
+
escaped = type == "single" && !escaped && next == "\\";
|
|
872
|
+
}
|
|
873
|
+
if (end)
|
|
874
|
+
state.tokenize = null;
|
|
875
|
+
return "string";
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
def("text/x-ceylon", {
|
|
880
|
+
name: "clike",
|
|
881
|
+
keywords: words("abstracts alias assembly assert assign break case catch class continue dynamic else" +
|
|
882
|
+
" exists extends finally for function given if import in interface is let module new" +
|
|
883
|
+
" nonempty object of out outer package return satisfies super switch then this throw" +
|
|
884
|
+
" try value void while"),
|
|
885
|
+
types: function(word) {
|
|
886
|
+
// In Ceylon all identifiers that start with an uppercase are types
|
|
887
|
+
var first = word.charAt(0);
|
|
888
|
+
return (first === first.toUpperCase() && first !== first.toLowerCase());
|
|
889
|
+
},
|
|
890
|
+
blockKeywords: words("case catch class dynamic else finally for function if interface module new object switch try while"),
|
|
891
|
+
defKeywords: words("class dynamic function interface module object package value"),
|
|
892
|
+
builtin: words("abstract actual aliased annotation by default deprecated doc final formal late license" +
|
|
893
|
+
" native optional sealed see serializable shared suppressWarnings tagged throws variable"),
|
|
894
|
+
isPunctuationChar: /[\[\]{}\(\),;\:\.`]/,
|
|
895
|
+
isOperatorChar: /[+\-*&%=<>!?|^~:\/]/,
|
|
896
|
+
numberStart: /[\d#$]/,
|
|
897
|
+
number: /^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,
|
|
898
|
+
multiLineStrings: true,
|
|
899
|
+
typeFirstDefinitions: true,
|
|
900
|
+
atoms: words("true false null larger smaller equal empty finished"),
|
|
901
|
+
indentSwitch: false,
|
|
902
|
+
styleDefs: false,
|
|
903
|
+
hooks: {
|
|
904
|
+
"@": function(stream) {
|
|
905
|
+
stream.eatWhile(/[\w\$_]/);
|
|
906
|
+
return "meta";
|
|
907
|
+
},
|
|
908
|
+
'"': function(stream, state) {
|
|
909
|
+
state.tokenize = tokenCeylonString(stream.match('""') ? "triple" : "single");
|
|
910
|
+
return state.tokenize(stream, state);
|
|
911
|
+
},
|
|
912
|
+
'`': function(stream, state) {
|
|
913
|
+
if (!stringTokenizer || !stream.match('`')) return false;
|
|
914
|
+
state.tokenize = stringTokenizer;
|
|
915
|
+
stringTokenizer = null;
|
|
916
|
+
return state.tokenize(stream, state);
|
|
917
|
+
},
|
|
918
|
+
"'": function(stream) {
|
|
919
|
+
stream.eatWhile(/[\w\$_\xa1-\uffff]/);
|
|
920
|
+
return "atom";
|
|
921
|
+
},
|
|
922
|
+
token: function(_stream, state, style) {
|
|
923
|
+
if ((style == "variable" || style == "type") &&
|
|
924
|
+
state.prevToken == ".") {
|
|
925
|
+
return "variable-2";
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
},
|
|
929
|
+
modeProps: {
|
|
930
|
+
fold: ["brace", "import"],
|
|
931
|
+
closeBrackets: {triples: '"'}
|
|
932
|
+
}
|
|
933
|
+
});
|
|
934
|
+
|
|
935
|
+
});
|