@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,446 @@
|
|
|
1
|
+
// Copyright 2017 The Chromium Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @fileoverview using private properties isn't a Closure violation in tests.
|
|
7
|
+
*/
|
|
8
|
+
self.PerformanceTestRunner = self.PerformanceTestRunner || {};
|
|
9
|
+
|
|
10
|
+
PerformanceTestRunner.timelinePropertyFormatters = {
|
|
11
|
+
children: 'formatAsTypeName',
|
|
12
|
+
endTime: 'formatAsTypeName',
|
|
13
|
+
requestId: 'formatAsTypeName',
|
|
14
|
+
startTime: 'formatAsTypeName',
|
|
15
|
+
responseTime: 'formatAsTypeName',
|
|
16
|
+
stackTrace: 'formatAsTypeName',
|
|
17
|
+
url: 'formatAsURL',
|
|
18
|
+
fileName: 'formatAsURL',
|
|
19
|
+
scriptName: 'formatAsTypeName',
|
|
20
|
+
scriptId: 'formatAsTypeName',
|
|
21
|
+
usedHeapSizeDelta: 'skip',
|
|
22
|
+
id: 'formatAsTypeName',
|
|
23
|
+
timerId: 'formatAsTypeName',
|
|
24
|
+
layerId: 'formatAsTypeName',
|
|
25
|
+
frameId: 'formatAsTypeName',
|
|
26
|
+
frame: 'formatAsTypeName',
|
|
27
|
+
page: 'formatAsTypeName',
|
|
28
|
+
encodedDataLength: 'formatAsTypeName',
|
|
29
|
+
identifier: 'formatAsTypeName',
|
|
30
|
+
clip: 'formatAsTypeName',
|
|
31
|
+
root: 'formatAsTypeName',
|
|
32
|
+
backendNodeId: 'formatAsTypeName',
|
|
33
|
+
nodeId: 'formatAsTypeName',
|
|
34
|
+
rootNode: 'formatAsTypeName',
|
|
35
|
+
finishTime: 'formatAsTypeName',
|
|
36
|
+
thread: 'formatAsTypeName',
|
|
37
|
+
allottedMilliseconds: 'formatAsTypeName',
|
|
38
|
+
timedOut: 'formatAsTypeName',
|
|
39
|
+
networkTime: 'formatAsTypeName',
|
|
40
|
+
timing: 'formatAsTypeName',
|
|
41
|
+
streamed: 'formatAsTypeName',
|
|
42
|
+
producedCacheSize: 'formatAsTypeName',
|
|
43
|
+
consumedCacheSize: 'formatAsTypeName'
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
PerformanceTestRunner.InvalidationFormatters = {
|
|
47
|
+
_tracingEvent: 'skip',
|
|
48
|
+
cause: 'formatAsInvalidationCause',
|
|
49
|
+
frame: 'skip',
|
|
50
|
+
invalidatedSelectorId: 'skip',
|
|
51
|
+
invalidationList: 'skip',
|
|
52
|
+
invalidationSet: 'skip',
|
|
53
|
+
linkedRecalcStyleEvent: 'skip',
|
|
54
|
+
linkedLayoutEvent: 'skip',
|
|
55
|
+
nodeId: 'skip',
|
|
56
|
+
paintId: 'skip',
|
|
57
|
+
startTime: 'skip'
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
TestRunner.formatters.formatAsInvalidationCause = function(cause) {
|
|
61
|
+
if (!cause) {
|
|
62
|
+
return '<undefined>';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
let stackTrace;
|
|
66
|
+
|
|
67
|
+
if (cause.stackTrace && cause.stackTrace.length) {
|
|
68
|
+
stackTrace =
|
|
69
|
+
TestRunner.formatters.formatAsURL(cause.stackTrace[0].url) + ':' + (cause.stackTrace[0].lineNumber + 1);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return '{reason: ' + cause.reason + ', stackTrace: ' + stackTrace + '}';
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
PerformanceTestRunner.createTracingModel = function(events) {
|
|
76
|
+
const model = new SDK.TracingModel(new Bindings.TempFileBackingStorage('tracing'));
|
|
77
|
+
model.addEvents(events);
|
|
78
|
+
model.tracingComplete();
|
|
79
|
+
return model;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
PerformanceTestRunner.tracingModel = function() {
|
|
83
|
+
return UI.panels.timeline._performanceModel.tracingModel();
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
PerformanceTestRunner.invokeWithTracing = function(functionName, callback, additionalCategories, enableJSSampling) {
|
|
87
|
+
let categories = '-*,disabled-by-default-devtools.timeline*,devtools.timeline,blink.user_timing,' +
|
|
88
|
+
SDK.TracingModel.LegacyTopLevelEventCategory;
|
|
89
|
+
|
|
90
|
+
if (additionalCategories) {
|
|
91
|
+
categories += ',' + additionalCategories;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const timelinePanel = UI.panels.timeline;
|
|
95
|
+
const timelineController = PerformanceTestRunner.createTimelineController();
|
|
96
|
+
timelinePanel._timelineController = timelineController;
|
|
97
|
+
timelineController._startRecordingWithCategories(categories, enableJSSampling).then(tracingStarted);
|
|
98
|
+
|
|
99
|
+
function tracingStarted() {
|
|
100
|
+
timelinePanel._recordingStarted();
|
|
101
|
+
TestRunner.callFunctionInPageAsync(functionName).then(onPageActionsDone);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function onPageActionsDone() {
|
|
105
|
+
PerformanceTestRunner.runWhenTimelineIsReady(callback);
|
|
106
|
+
timelineController.stopRecording();
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
PerformanceTestRunner.performanceModel = function() {
|
|
111
|
+
return UI.panels.timeline._performanceModel;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
PerformanceTestRunner.timelineModel = function() {
|
|
115
|
+
return PerformanceTestRunner.performanceModel().timelineModel();
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
PerformanceTestRunner.timelineFrameModel = function() {
|
|
119
|
+
return PerformanceTestRunner.performanceModel().frameModel();
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
PerformanceTestRunner.createPerformanceModelWithEvents = function(events) {
|
|
123
|
+
const tracingModel = new SDK.TracingModel(new Bindings.TempFileBackingStorage('tracing'));
|
|
124
|
+
tracingModel.addEvents(events);
|
|
125
|
+
tracingModel.tracingComplete();
|
|
126
|
+
const performanceModel = new Timeline.PerformanceModel();
|
|
127
|
+
performanceModel.setTracingModel(tracingModel);
|
|
128
|
+
UI.panels.timeline._performanceModel = performanceModel;
|
|
129
|
+
UI.panels.timeline._applyFilters(performanceModel);
|
|
130
|
+
return performanceModel;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
PerformanceTestRunner.createTimelineController = function() {
|
|
134
|
+
const controller = new Timeline.TimelineController(self.SDK.targetManager.mainTarget(), UI.panels.timeline);
|
|
135
|
+
controller._tracingManager = TestRunner.tracingManager;
|
|
136
|
+
return controller;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
PerformanceTestRunner.runWhenTimelineIsReady = function(callback) {
|
|
140
|
+
TestRunner.addSniffer(UI.panels.timeline, 'loadingComplete', () => callback());
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
PerformanceTestRunner.startTimeline = function() {
|
|
144
|
+
const panel = UI.panels.timeline;
|
|
145
|
+
panel._toggleRecording();
|
|
146
|
+
return TestRunner.addSnifferPromise(panel, '_recordingStarted');
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
PerformanceTestRunner.stopTimeline = function() {
|
|
150
|
+
return new Promise(resolve => {
|
|
151
|
+
PerformanceTestRunner.runWhenTimelineIsReady(resolve);
|
|
152
|
+
UI.panels.timeline._toggleRecording();
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
PerformanceTestRunner.runPerfTraceWithReload = async function() {
|
|
157
|
+
await PerformanceTestRunner.startTimeline();
|
|
158
|
+
await TestRunner.reloadPagePromise();
|
|
159
|
+
await PerformanceTestRunner.stopTimeline();
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
PerformanceTestRunner.getTimelineWidget = async function() {
|
|
163
|
+
return await self.UI.viewManager.view('timeline').widget();
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
PerformanceTestRunner.getNetworkFlameChartElement = async function() {
|
|
167
|
+
const widget = await PerformanceTestRunner.getTimelineWidget();
|
|
168
|
+
return widget._flameChart._networkFlameChart.contentElement;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
PerformanceTestRunner.getMainFlameChartElement = async function() {
|
|
172
|
+
const widget = await PerformanceTestRunner.getTimelineWidget();
|
|
173
|
+
return widget._flameChart._mainFlameChart.contentElement;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
PerformanceTestRunner.evaluateWithTimeline = async function(actions) {
|
|
177
|
+
await PerformanceTestRunner.startTimeline();
|
|
178
|
+
await TestRunner.evaluateInPageAnonymously(actions);
|
|
179
|
+
await PerformanceTestRunner.stopTimeline();
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
PerformanceTestRunner.invokeAsyncWithTimeline = async function(functionName) {
|
|
183
|
+
await PerformanceTestRunner.startTimeline();
|
|
184
|
+
await TestRunner.callFunctionInPageAsync(functionName);
|
|
185
|
+
await PerformanceTestRunner.stopTimeline();
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
PerformanceTestRunner.performActionsAndPrint = async function(actions, typeName, includeTimeStamps) {
|
|
189
|
+
await PerformanceTestRunner.evaluateWithTimeline(actions);
|
|
190
|
+
await PerformanceTestRunner.printTimelineRecordsWithDetails(typeName);
|
|
191
|
+
if (includeTimeStamps) {
|
|
192
|
+
TestRunner.addResult('Timestamp records: ');
|
|
193
|
+
PerformanceTestRunner.printTimestampRecords(typeName);
|
|
194
|
+
}
|
|
195
|
+
TestRunner.completeTest();
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
PerformanceTestRunner.printTimelineRecords = function(name) {
|
|
199
|
+
for (const event of PerformanceTestRunner.timelineModel().inspectedTargetEvents()) {
|
|
200
|
+
if (event.name === name) {
|
|
201
|
+
PerformanceTestRunner.printTraceEventProperties(event);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
PerformanceTestRunner.printTimelineRecordsWithDetails = async function(name) {
|
|
207
|
+
for (const event of PerformanceTestRunner.timelineModel().inspectedTargetEvents()) {
|
|
208
|
+
if (name === event.name) {
|
|
209
|
+
await PerformanceTestRunner.printTraceEventPropertiesWithDetails(event);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
PerformanceTestRunner.walkTimelineEventTree = async function(callback) {
|
|
215
|
+
const view = new Timeline.EventsTimelineTreeView(UI.panels.timeline._filters, null);
|
|
216
|
+
view.setModel(PerformanceTestRunner.performanceModel(), PerformanceTestRunner.mainTrack());
|
|
217
|
+
const selection = Timeline.TimelineSelection.fromRange(
|
|
218
|
+
PerformanceTestRunner.timelineModel().minimumRecordTime(),
|
|
219
|
+
PerformanceTestRunner.timelineModel().maximumRecordTime());
|
|
220
|
+
view.updateContents(selection);
|
|
221
|
+
await PerformanceTestRunner.walkTimelineEventTreeUnderNode(callback, view._currentTree, 0);
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
PerformanceTestRunner.walkTimelineEventTreeUnderNode = async function(callback, root, level) {
|
|
225
|
+
const event = root.event;
|
|
226
|
+
|
|
227
|
+
if (event) {
|
|
228
|
+
await callback(event, level, root);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
for (const child of root.children().values()) {
|
|
232
|
+
await PerformanceTestRunner.walkTimelineEventTreeUnderNode(callback, child, (level || 0) + 1);
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
PerformanceTestRunner.printTimestampRecords = function(typeName) {
|
|
237
|
+
const dividers = PerformanceTestRunner.timelineModel().timeMarkerEvents();
|
|
238
|
+
|
|
239
|
+
for (const event of dividers) {
|
|
240
|
+
if (event.name === typeName) {
|
|
241
|
+
PerformanceTestRunner.printTraceEventProperties(event);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
PerformanceTestRunner.forAllEvents = async function(events, callback) {
|
|
247
|
+
const eventStack = [];
|
|
248
|
+
|
|
249
|
+
for (const event of events) {
|
|
250
|
+
while (eventStack.length && eventStack[eventStack.length - 1].endTime <= event.startTime) {
|
|
251
|
+
eventStack.pop();
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
await callback(event, eventStack);
|
|
255
|
+
|
|
256
|
+
if (event.endTime) {
|
|
257
|
+
eventStack.push(event);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
PerformanceTestRunner.printTraceEventProperties = function(traceEvent) {
|
|
263
|
+
TestRunner.addResult(traceEvent.name + ' Properties:');
|
|
264
|
+
const data = traceEvent.args['beginData'] || traceEvent.args['data'];
|
|
265
|
+
const frameId = data && data['frame'];
|
|
266
|
+
|
|
267
|
+
const object = {
|
|
268
|
+
data: traceEvent.args['data'] || traceEvent.args,
|
|
269
|
+
endTime: traceEvent.endTime || traceEvent.startTime,
|
|
270
|
+
frameId: frameId,
|
|
271
|
+
stackTrace: TimelineModel.TimelineData.forEvent(traceEvent).stackTrace,
|
|
272
|
+
startTime: traceEvent.startTime,
|
|
273
|
+
type: traceEvent.name
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
for (const field in object) {
|
|
277
|
+
if (object[field] === null || object[field] === undefined) {
|
|
278
|
+
delete object[field];
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
TestRunner.addObject(object, PerformanceTestRunner.timelinePropertyFormatters);
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
PerformanceTestRunner.printTraceEventPropertiesWithDetails = async function(event) {
|
|
286
|
+
PerformanceTestRunner.printTraceEventProperties(event);
|
|
287
|
+
const details = await Timeline.TimelineUIUtils.buildDetailsTextForTraceEvent(
|
|
288
|
+
event, self.SDK.targetManager.mainTarget(), new Components.Linkifier());
|
|
289
|
+
TestRunner.waitForPendingLiveLocationUpdates();
|
|
290
|
+
TestRunner.addResult(`Text details for ${event.name}: ${details}`);
|
|
291
|
+
|
|
292
|
+
if (TimelineModel.TimelineData.forEvent(event).warning) {
|
|
293
|
+
TestRunner.addResult(`${event.name} has a warning`);
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
PerformanceTestRunner.mainTrack = function() {
|
|
298
|
+
let mainTrack;
|
|
299
|
+
for (const track of PerformanceTestRunner.timelineModel().tracks()) {
|
|
300
|
+
if (track.type === TimelineModel.TimelineModel.TrackType.MainThread && track.forMainFrame) {
|
|
301
|
+
mainTrack = track;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return mainTrack;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
PerformanceTestRunner.mainTrackEvents = function() {
|
|
308
|
+
return PerformanceTestRunner.mainTrack().events;
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
PerformanceTestRunner.findTimelineEvent = function(name, index) {
|
|
312
|
+
return PerformanceTestRunner.mainTrackEvents().filter(e => e.name === name)[index || 0];
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
PerformanceTestRunner.findChildEvent = function(events, parentIndex, name) {
|
|
316
|
+
const endTime = events[parentIndex].endTime;
|
|
317
|
+
|
|
318
|
+
for (let i = parentIndex + 1; i < events.length && (!events[i].endTime || events[i].endTime <= endTime); ++i) {
|
|
319
|
+
if (events[i].name === name) {
|
|
320
|
+
return events[i];
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
return null;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
PerformanceTestRunner.dumpFrame = function(frame) {
|
|
328
|
+
const fieldsToDump = [
|
|
329
|
+
'cpuTime', 'duration', 'startTime', 'endTime', 'id', 'mainThreadFrameId', 'timeByCategory', 'other', 'scripting',
|
|
330
|
+
'painting', 'rendering', 'committedFrom', 'idle'
|
|
331
|
+
];
|
|
332
|
+
|
|
333
|
+
function formatFields(object) {
|
|
334
|
+
const result = {};
|
|
335
|
+
|
|
336
|
+
for (const key in object) {
|
|
337
|
+
if (fieldsToDump.indexOf(key) < 0) {
|
|
338
|
+
continue;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
let value = object[key];
|
|
342
|
+
|
|
343
|
+
if (typeof value === 'number') {
|
|
344
|
+
value = Number(value.toFixed(7));
|
|
345
|
+
} else if (typeof value === 'object' && value) {
|
|
346
|
+
value = formatFields(value);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
result[key] = value;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
return result;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
TestRunner.addObject(formatFields(frame));
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
PerformanceTestRunner.dumpInvalidations = function(recordType, index, comment) {
|
|
359
|
+
const event = PerformanceTestRunner.findTimelineEvent(recordType, index || 0);
|
|
360
|
+
|
|
361
|
+
TestRunner.addArray(
|
|
362
|
+
TimelineModel.InvalidationTracker.invalidationEventsFor(event), PerformanceTestRunner.InvalidationFormatters, '',
|
|
363
|
+
comment);
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
PerformanceTestRunner.dumpFlameChartProvider = function(provider, includeGroups) {
|
|
367
|
+
const includeGroupsSet = includeGroups && new Set(includeGroups);
|
|
368
|
+
const timelineData = provider.timelineData();
|
|
369
|
+
const stackDepth = provider.maxStackDepth();
|
|
370
|
+
const entriesByLevel = new Platform.MapUtilities.Multimap();
|
|
371
|
+
|
|
372
|
+
for (let i = 0; i < timelineData.entryLevels.length; ++i) {
|
|
373
|
+
entriesByLevel.set(timelineData.entryLevels[i], i);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
for (let groupIndex = 0; groupIndex < timelineData.groups.length; ++groupIndex) {
|
|
377
|
+
const group = timelineData.groups[groupIndex];
|
|
378
|
+
|
|
379
|
+
if (includeGroupsSet && !includeGroupsSet.has(group.name)) {
|
|
380
|
+
continue;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
const maxLevel =
|
|
384
|
+
(groupIndex + 1 < timelineData.groups.length ? timelineData.groups[groupIndex + 1].startLevel : stackDepth);
|
|
385
|
+
TestRunner.addResult(`Group: ${group.name}`);
|
|
386
|
+
|
|
387
|
+
for (let level = group.startLevel; level < maxLevel; ++level) {
|
|
388
|
+
TestRunner.addResult(`Level ${level - group.startLevel}`);
|
|
389
|
+
const entries = entriesByLevel.get(level);
|
|
390
|
+
|
|
391
|
+
for (const index of entries) {
|
|
392
|
+
const title = provider.entryTitle(index);
|
|
393
|
+
const color = provider.entryColor(index);
|
|
394
|
+
TestRunner.addResult(`${title} (${color})`);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
PerformanceTestRunner.dumpTimelineFlameChart = function(includeGroups) {
|
|
401
|
+
const provider = UI.panels.timeline._flameChart._mainDataProvider;
|
|
402
|
+
TestRunner.addResult('Timeline Flame Chart');
|
|
403
|
+
PerformanceTestRunner.dumpFlameChartProvider(provider, includeGroups);
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
PerformanceTestRunner.loadTimeline = function(timelineData) {
|
|
407
|
+
const promise = new Promise(fulfill => PerformanceTestRunner.runWhenTimelineIsReady(fulfill));
|
|
408
|
+
|
|
409
|
+
UI.panels.timeline._loadFromFile(new Blob([timelineData], {type: 'text/plain'}));
|
|
410
|
+
|
|
411
|
+
return promise;
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
TestRunner.deprecatedInitAsync(`
|
|
415
|
+
function wrapCallFunctionForTimeline(f) {
|
|
416
|
+
let script = document.createElement('script');
|
|
417
|
+
script.textContent = '(' + f.toString() + ')()\\n//# sourceURL=wrapCallFunctionForTimeline.js';
|
|
418
|
+
document.body.appendChild(script);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
function generateFrames(count) {
|
|
422
|
+
let promise = Promise.resolve();
|
|
423
|
+
|
|
424
|
+
for (let i = count; i > 0; --i)
|
|
425
|
+
promise = promise.then(changeBackgroundAndWaitForFrame.bind(null, i));
|
|
426
|
+
|
|
427
|
+
return promise;
|
|
428
|
+
|
|
429
|
+
function changeBackgroundAndWaitForFrame(i) {
|
|
430
|
+
document.body.style.backgroundColor = (i & 1 ? 'rgb(200, 200, 200)' : 'rgb(240, 240, 240)');
|
|
431
|
+
return waitForFrame();
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
function waitForFrame() {
|
|
436
|
+
let callback;
|
|
437
|
+
let promise = new Promise(fulfill => callback = fulfill);
|
|
438
|
+
|
|
439
|
+
if (window.testRunner)
|
|
440
|
+
testRunner.updateAllLifecyclePhasesAndCompositeThen(callback);
|
|
441
|
+
else
|
|
442
|
+
window.requestAnimationFrame(callback);
|
|
443
|
+
|
|
444
|
+
return promise;
|
|
445
|
+
}
|
|
446
|
+
`);
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Automapping as e,FileSystemWorkspaceBinding as s,IsolatedFileSystem as t,IsolatedFileSystemManager as i,NetworkPersistenceManager as n,PersistenceActions as r,Persistence as c,PersistenceUtils as P,PlatformFileSystem as a,WorkspaceSettingsTab as o}from"./persistence.js";self.Persistence=self.Persistence||{},Persistence=Persistence||{},Persistence.Automapping=e.Automapping,Persistence.AutomappingStatus=e.AutomappingStatus,Persistence.FileSystemWorkspaceBinding=s.FileSystemWorkspaceBinding,Persistence.FileSystemWorkspaceBinding.FileSystem=s.FileSystem,Persistence.IsolatedFileSystem=t.IsolatedFileSystem,Persistence.IsolatedFileSystemManager=i.IsolatedFileSystemManager,Persistence.IsolatedFileSystemManager.Events=i.Events,Persistence.NetworkPersistenceManager=n.NetworkPersistenceManager,Persistence.NetworkPersistenceManager.Events=n.Events,Persistence.PersistenceActions={},Persistence.PersistenceActions.ContextMenuProvider=r.ContextMenuProvider,Persistence.Persistence=c.PersistenceImpl,Persistence.Persistence.Events=c.Events,Persistence.Persistence._NodeShebang=c.NodeShebang,Persistence.Persistence._NodePrefix=c.NodePrefix,Persistence.Persistence._NodeSuffix=c.NodeSuffix,Persistence.PathEncoder=c.PathEncoder,Persistence.PersistenceBinding=c.PersistenceBinding,Persistence.PersistenceUtils=P.PersistenceUtils,Persistence.PlatformFileSystem=a.PlatformFileSystem,Persistence.WorkspaceSettingsTab=o.WorkspaceSettingsTab;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i18n as e}from"../i18n/i18n.js";import{Runtime as t}from"../root/root.js";import{ViewManager as o}from"../ui/ui.js";const i={workspace:"Workspace",showWorkspace:"Show Workspace"},s=e.registerUIStrings("persistence/persistence-meta.ts",i),r=e.getLazilyComputedLocalizedString.bind(void 0,s);let a;o.registerViewExtension({location:"settings-view",id:"workspace",title:r(i.workspace),commandPrompt:r(i.showWorkspace),order:1,loadView:async()=>(await async function(){return a||(await t.Runtime.instance().loadModulePromise("persistence"),a=await import("./persistence.js")),a}()).WorkspaceSettingsTab.WorkspaceSettingsTab.instance()});export{i as UIStrings};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{NetworkProject as e}from"../bindings/bindings.js";import{Settings as t,ParsedURL as s,ResourceType as i,ObjectWrapper as n,Console as o,EventTarget as r,Throttler as d,CharacterIdMap as a,Trie as l,Revealer as c}from"../common/common.js";import{i18n as h}from"../i18n/i18n.js";import{StringUtilities as u,MapUtilities as m,ArrayUtilities as p}from"../platform/platform.js";import{SDKModel as _,NetworkManager as f,Resource as S}from"../sdk/sdk.js";import{Workspace as g,UISourceCode as y,FileManager as F}from"../workspace/workspace.js";import{TextUtils as v}from"../text_utils/text_utils.js";import{InspectorFrontendHost as C,Platform as w,userMetrics as P,UserMetrics as k,InspectorFrontendHostAPI as I}from"../host/host.js";import{Linkifier as b}from"../components/components.js";import{Icon as E,Tooltip as x,Widget as T,UIUtils as U,ListWidget as R,ARIAUtils as L,Toolbar as j}from"../ui/ui.js";const M={unableToReadFilesWithThis:"Unable to read files with this implementation."},W=h.registerUIStrings("persistence/PlatformFileSystem.js",M),A=h.getLocalizedString.bind(void 0,W);class B{constructor(e,t){this._path=e,this._type=t}getMetadata(e){return Promise.resolve(null)}initialFilePaths(){return[]}initialGitFolders(){return[]}path(){return this._path}embedderPath(){throw new Error("Not implemented")}type(){return this._type}async createFile(e,t){return Promise.resolve(null)}deleteFile(e){return Promise.resolve(!1)}requestFileBlob(e){return Promise.resolve(null)}async requestFileContent(e){return{content:null,error:A(M.unableToReadFilesWithThis),isEncoded:!1}}setFileContent(e,t,s){throw new Error("Not implemented")}renameFile(e,t,s){s(!1)}addExcludedFolder(e){}removeExcludedFolder(e){}fileSystemRemoved(){}isFileExcluded(e){return!1}excludedFolders(){return new Set}searchInPath(e,t){return Promise.resolve([])}indexContent(e){queueMicrotask((()=>{e.done()}))}mimeFromPath(e){throw new Error("Not implemented")}canExcludeFolder(e){return!1}contentType(e){throw new Error("Not implemented")}tooltipForURL(e){throw new Error("Not implemented")}supportsAutomapping(){throw new Error("Not implemented")}}var N=Object.freeze({__proto__:null,UIStrings:M,PlatformFileSystem:B});const H={fileSystemErrorS:"File system error: {PH1}",blobCouldNotBeLoaded:"Blob could not be loaded.",cantReadFileSS:"Can't read file: {PH1}: {PH2}",unknownErrorReadingFileS:"Unknown error reading file: {PH1}",linkedToS:"Linked to {PH1}"},q=h.registerUIStrings("persistence/IsolatedFileSystem.js",H),O=h.getLocalizedString.bind(void 0,q);class z extends B{constructor(e,s,i,n,o){super(s,o),this._manager=e,this._embedderPath=i,this._domFileSystem=n,this._excludedFoldersSetting=t.Settings.instance().createLocalSetting("workspaceExcludedFolders",{}),this._excludedFolders=new Set(this._excludedFoldersSetting.get()[s]||[]),this._excludedEmbedderFolders=[],this._initialFilePaths=new Set,this._initialGitFolders=new Set,this._fileLocks=new Map}static create(e,t,s,i,n,o){const r=C.InspectorFrontendHostInstance.isolatedFileSystem(n,o);if(!r)return Promise.resolve(null);const d=new z(e,t,s,r,i);return d._initializeFilePaths().then((()=>d)).catch((e=>(console.error(e),null)))}static errorMessage(e){return O(H.fileSystemErrorS,{PH1:e.message})}_serializedFileOperation(e,t){const s=Promise.resolve(this._fileLocks.get(e)).then((()=>t.call(null)));return this._fileLocks.set(e,s),s}getMetadata(e){let t;const s=new Promise((e=>{t=e}));return this._domFileSystem.root.getFile(e,void 0,(function(e){e.getMetadata(t,i)}),i),s;function i(s){const i=z.errorMessage(s);console.error(i+" when getting file metadata '"+e),t(null)}}initialFilePaths(){return[...this._initialFilePaths]}initialGitFolders(){return[...this._initialGitFolders]}embedderPath(){return this._embedderPath}_initializeFilePaths(){return new Promise((e=>{let t=1;const i=function(n){for(let e=0;e<n.length;++e){const o=n[e];if(o.isDirectory){if(o.fullPath.endsWith("/.git")){const e=o.fullPath.lastIndexOf("/"),t=o.fullPath.substring(1,e);this._initialGitFolders.add(t)}if(this.isFileExcluded(o.fullPath+"/")){this._excludedEmbedderFolders.push(s.ParsedURL.urlToPlatformPath(this.path()+o.fullPath,w.isWin()));continue}++t,this._requestEntries(o.fullPath,i)}else{if(this.isFileExcluded(o.fullPath))continue;this._initialFilePaths.add(o.fullPath.substr(1))}}0==--t&&e()}.bind(this);this._requestEntries("",i)}))}async _createFoldersIfNotExist(e){let t=await new Promise((t=>this._domFileSystem.root.getDirectory(e,void 0,t,(()=>t(null)))));if(t)return t;const s=e.split("/");let i="";for(const e of s)if(i=i+"/"+e,t=await this._innerCreateFolderIfNeeded(i),!t)return null;return t}_innerCreateFolderIfNeeded(e){return new Promise((t=>{this._domFileSystem.root.getDirectory(e,{create:!0},(e=>t(e)),(s=>{const i=z.errorMessage(s);console.error(i+" trying to create directory '"+e+"'"),t(null)}))}))}async createFile(e,t){const s=await this._createFoldersIfNotExist(e);if(!s)return null;const i=await this._serializedFileOperation(e,function t(i,n){return new Promise((o=>{const r=i+(n||"");s.getFile(r,{create:!0,exclusive:!0},o,(s=>{if("InvalidModificationError"===s.name)return void o(t.call(this,i,n?n+1:1));const d=z.errorMessage(s);console.error(d+" when testing if file exists '"+this.path()+"/"+e+"/"+r+"'"),o(null)}))}))}.bind(this,t||"NewFile"));return i?i.fullPath.substr(1):null}deleteFile(e){let t;const s=new Promise((e=>{t=e}));return this._domFileSystem.root.getFile(e,void 0,function(e){e.remove(i,n.bind(this))}.bind(this),n.bind(this)),s;function i(){t(!0)}function n(s){const i=z.errorMessage(s);console.error(i+" when deleting file '"+this.path()+"/"+e+"'"),t(!1)}}requestFileBlob(e){return new Promise((t=>{function s(s){if("NotFoundError"===s.name)return void t(null);const i=z.errorMessage(s);console.error(i+" when getting content for file '"+this.path()+"/"+e+"'"),t(null)}this._domFileSystem.root.getFile(e,void 0,(e=>{e.file(t,s.bind(this))}),s.bind(this))}))}requestFileContent(e){return this._serializedFileOperation(e,(()=>this._innerRequestFileContent(e)))}async _innerRequestFileContent(e){const t=await this.requestFileBlob(e);if(!t)return{content:null,error:O(H.blobCouldNotBeLoaded),isEncoded:!1};const i=new FileReader,n=s.ParsedURL.extractExtension(e),o=J.has(n),r=new Promise((e=>{i.onloadend=e}));if(o?i.readAsBinaryString(t):i.readAsText(t),await r,i.error){const t=O(H.cantReadFileSS,{PH1:e,PH2:i.error});return console.error(t),{content:null,isEncoded:!1,error:t}}let d=null,a=null;try{d=i.result}catch(t){d=null,a=O(H.cantReadFileSS,{PH1:e,PH2:t.message})}return null==d?(a=a||O(H.unknownErrorReadingFileS,{PH1:e}),console.error(a),{content:null,isEncoded:!1,error:a}):{isEncoded:o,content:o?btoa(d):d}}async setFileContent(e,t,s){let i;P.actionTaken(k.Action.FileSavedInWorkspace);function n(e){e.createWriter(o.bind(this),r.bind(this))}async function o(e){let n;e.onerror=r.bind(this),e.onwriteend=function(){e.onwriteend=i,e.truncate(n.size)},n=s?await(await fetch("data:application/octet-stream;base64,"+t)).blob():new Blob([t],{type:"text/plain"}),e.write(n)}function r(t){const s=z.errorMessage(t);console.error(s+" when setting content for file '"+this.path()+"/"+e+"'"),i(void 0)}this._serializedFileOperation(e,(()=>{const t=new Promise((e=>{i=e}));return this._domFileSystem.root.getFile(e,{create:!0},n.bind(this),r.bind(this)),t}))}renameFile(e,t,s){if(!(t=t?t.trim():t)||-1!==t.indexOf("/"))return void s(!1);let i,n;function o(e){n=e,n.getFile(t,void 0,r,d.bind(this))}function r(e){s(!1)}function d(e){"NotFoundError"===e.name?i.moveTo(n,t,a,l.bind(this)):s(!1)}function a(e){s(!0,e.name)}function l(i){const n=z.errorMessage(i);console.error(n+" when renaming file '"+this.path()+"/"+e+"' to '"+t+"'"),s(!1)}this._domFileSystem.root.getFile(e,void 0,function(e){if(e.name===t)return void s(!1);i=e,i.getParent(o.bind(this),l.bind(this))}.bind(this),l.bind(this))}_readDirectory(e,t){const s=e.createReader();let i=[];function n(s){const i=z.errorMessage(s);console.error(i+" when reading directory '"+e.fullPath+"'"),t([])}s.readEntries((function e(o){var r;o.length?(i=i.concat((r=o,Array.prototype.slice.call(r||[],0))),s.readEntries(e,n)):t(i.sort())}),n)}_requestEntries(e,t){this._domFileSystem.root.getDirectory(e,void 0,function(e){this._readDirectory(e,t)}.bind(this),(function(s){const i=z.errorMessage(s);console.error(i+" when requesting entry '"+e+"'"),t([])}))}_saveExcludedFolders(){const e=this._excludedFoldersSetting.get();e[this.path()]=[...this._excludedFolders],this._excludedFoldersSetting.set(e)}addExcludedFolder(e){this._excludedFolders.add(e),this._saveExcludedFolders(),this._manager.dispatchEventToListeners(te.ExcludedFolderAdded,e)}removeExcludedFolder(e){this._excludedFolders.delete(e),this._saveExcludedFolders(),this._manager.dispatchEventToListeners(te.ExcludedFolderRemoved,e)}fileSystemRemoved(){const e=this._excludedFoldersSetting.get();delete e[this.path()],this._excludedFoldersSetting.set(e)}isFileExcluded(e){if(this._excludedFolders.has(e))return!0;const t=this._manager.workspaceFolderExcludePatternSetting().asRegExp();return Boolean(t&&t.test(e))}excludedFolders(){return this._excludedFolders}searchInPath(e,t){return new Promise((i=>{const n=this._manager.registerCallback((function(e){i(e.map((e=>s.ParsedURL.platformPathToURL(e)))),t.worked(1)}));C.InspectorFrontendHostInstance.searchInPath(n,this._embedderPath,e)}))}indexContent(e){e.setTotalWork(1);const t=this._manager.registerProgress(e);C.InspectorFrontendHostInstance.indexPath(t,this._embedderPath,JSON.stringify(this._excludedEmbedderFolders))}mimeFromPath(e){return i.ResourceType.mimeFromURL(e)||"text/plain"}canExcludeFolder(e){return Boolean(e)&&"overrides"!==this.type()}contentType(e){const t=s.ParsedURL.extractExtension(e);return D.has(t)?i.resourceTypes.Stylesheet:G.has(t)?i.resourceTypes.Document:$.has(t)?i.resourceTypes.Image:V.has(t)?i.resourceTypes.Script:J.has(t)?i.resourceTypes.Other:i.resourceTypes.Document}tooltipForURL(e){const t=u.trimMiddle(s.ParsedURL.urlToPlatformPath(e,w.isWin()),150);return O(H.linkedToS,{PH1:t})}supportsAutomapping(){return"overrides"!==this.type()}}const D=new Set(["css","scss","sass","less"]),G=new Set(["htm","html","asp","aspx","phtml","jsp"]),V=new Set(["asp","aspx","c","cc","cljs","coffee","cpp","cs","dart","java","js","jsp","jsx","h","m","mjs","mm","py","sh","ts","tsx","ls"]),$=new Set(["jpeg","jpg","svg","gif","webp","png","ico","tiff","tif","bmp"]),J=new Set(["cmd","com","exe","a","ar","iso","tar","bz2","gz","lz","lzma","z","7z","apk","arc","cab","dmg","jar","pak","rar","zip","3gp","aac","aiff","flac","m4a","mmf","mp3","ogg","oga","raw","sln","wav","wma","webm","mkv","flv","vob","ogv","gifv","avi","mov","qt","mp4","m4p","m4v","mpg","mpeg","jpeg","jpg","gif","webp","png","ico","tiff","tif","bmp"]);var Y=Object.freeze({__proto__:null,UIStrings:H,IsolatedFileSystem:z,BinaryExtensions:J});const K={unableToAddFilesystemS:"Unable to add filesystem: {PH1}"},Q=h.registerUIStrings("persistence/IsolatedFileSystemManager.js",K),X=h.getLocalizedString.bind(void 0,Q);let Z;class ee extends n.ObjectWrapper{constructor(){super(),this._fileSystems=new Map,this._callbacks=new Map,this._progresses=new Map,C.InspectorFrontendHostInstance.events.addEventListener(I.Events.FileSystemRemoved,this._onFileSystemRemoved,this),C.InspectorFrontendHostInstance.events.addEventListener(I.Events.FileSystemAdded,(e=>{this._onFileSystemAdded(e)}),this),C.InspectorFrontendHostInstance.events.addEventListener(I.Events.FileSystemFilesChangedAddedRemoved,this._onFileSystemFilesChanged,this),C.InspectorFrontendHostInstance.events.addEventListener(I.Events.IndexingTotalWorkCalculated,this._onIndexingTotalWorkCalculated,this),C.InspectorFrontendHostInstance.events.addEventListener(I.Events.IndexingWorked,this._onIndexingWorked,this),C.InspectorFrontendHostInstance.events.addEventListener(I.Events.IndexingDone,this._onIndexingDone,this),C.InspectorFrontendHostInstance.events.addEventListener(I.Events.SearchCompleted,this._onSearchCompleted,this);const e=["/Thumbs.db$","/ehthumbs.db$","/Desktop.ini$","/\\$RECYCLE.BIN/"],s=["/\\.DS_Store$","/\\.Trashes$","/\\.Spotlight-V100$","/\\.AppleDouble$","/\\.LSOverride$","/Icon$","/\\._.*$"],i=["/.*~$"];let n=["/node_modules/","/bower_components/","/\\.devtools","/\\.git/","/\\.sass-cache/","/\\.hg/","/\\.idea/","/\\.svn/","/\\.cache/","/\\.project/"];n=w.isWin()?n.concat(e):w.isMac()?n.concat(s):n.concat(i);const o=n.join("|");this._workspaceFolderExcludePatternSetting=t.Settings.instance().createRegExpSetting("workspaceFolderExcludePattern",o,w.isWin()?"i":""),this._fileSystemRequestResolve=null,this._fileSystemsLoadedPromise=this._requestFileSystems()}static instance(e={forceNew:null}){const{forceNew:t}=e;return Z&&!t||(Z=new ee),Z}_requestFileSystems(){let e;const t=new Promise((t=>{e=t}));return C.InspectorFrontendHostInstance.events.addEventListener(I.Events.FileSystemsLoaded,(function(e){const t=e.data,i=[];for(let e=0;e<t.length;++e)i.push(this._innerAddFileSystem(t[e],!1));Promise.all(i).then(s)}),this),C.InspectorFrontendHostInstance.requestFileSystems(),t;function s(t){e(t.filter((e=>Boolean(e))))}}addFileSystem(e){return new Promise((t=>{this._fileSystemRequestResolve=t,C.InspectorFrontendHostInstance.addFileSystem(e||"")}))}removeFileSystem(e){C.InspectorFrontendHostInstance.removeFileSystem(e.embedderPath())}waitForFileSystems(){return this._fileSystemsLoadedPromise}_innerAddFileSystem(e,t){const i=e.fileSystemPath,n=s.ParsedURL.platformPathToURL(e.fileSystemPath);return z.create(this,n,i,e.type,e.fileSystemName,e.rootURL).then(function(e){if(!e)return null;this._fileSystems.set(n,e),t&&this.dispatchEventToListeners(te.FileSystemAdded,e);return e}.bind(this))}addPlatformFileSystem(e,t){this._fileSystems.set(e,t),this.dispatchEventToListeners(te.FileSystemAdded,t)}_onFileSystemAdded(e){const t=e.data.errorMessage,s=e.data.fileSystem;if(t){if("<selection cancelled>"!==t&&o.Console.instance().error(X(K.unableToAddFilesystemS,{PH1:t})),!this._fileSystemRequestResolve)return;this._fileSystemRequestResolve.call(null,null),this._fileSystemRequestResolve=null}else s&&this._innerAddFileSystem(s,!0).then((e=>{this._fileSystemRequestResolve&&(this._fileSystemRequestResolve.call(null,e),this._fileSystemRequestResolve=null)}))}_onFileSystemRemoved(e){const t=e.data,i=s.ParsedURL.platformPathToURL(t),n=this._fileSystems.get(i);n&&(this._fileSystems.delete(i),n.fileSystemRemoved(),this.dispatchEventToListeners(te.FileSystemRemoved,n))}_onFileSystemFilesChanged(e){const t={changed:i.call(this,e.data.changed),added:i.call(this,e.data.added),removed:i.call(this,e.data.removed)};function i(e){const t=new m.Multimap;for(const i of e){const e=s.ParsedURL.platformPathToURL(i);for(const s of this._fileSystems.keys()){const n=this._fileSystems.get(s);if(n&&n.isFileExcluded(i))continue;const o=s.endsWith("/")?s:s+"/";e.startsWith(o)&&t.set(s,e)}}return t}this.dispatchEventToListeners(te.FileSystemFilesChanged,t)}fileSystems(){return[...this._fileSystems.values()]}fileSystem(e){return this._fileSystems.get(e)||null}workspaceFolderExcludePatternSetting(){return this._workspaceFolderExcludePatternSetting}registerCallback(e){const t=++se;return this._callbacks.set(t,e),t}registerProgress(e){const t=++se;return this._progresses.set(t,e),t}_onIndexingTotalWorkCalculated(e){const t=e.data.requestId,s=e.data.totalWork,i=this._progresses.get(t);i&&i.setTotalWork(s)}_onIndexingWorked(e){const t=e.data.requestId,s=e.data.worked,i=this._progresses.get(t);i&&(i.worked(s),i.isCanceled()&&(C.InspectorFrontendHostInstance.stopIndexing(t),this._onIndexingDone(e)))}_onIndexingDone(e){const t=e.data.requestId,s=this._progresses.get(t);s&&(s.done(),this._progresses.delete(t))}_onSearchCompleted(e){const t=e.data.requestId,s=e.data.files,i=this._callbacks.get(t);i&&(i.call(null,s),this._callbacks.delete(t))}}const te={FileSystemAdded:Symbol("FileSystemAdded"),FileSystemRemoved:Symbol("FileSystemRemoved"),FileSystemFilesChanged:Symbol("FileSystemFilesChanged"),ExcludedFolderAdded:Symbol("ExcludedFolderAdded"),ExcludedFolderRemoved:Symbol("ExcludedFolderRemoved")};let se=0;var ie=Object.freeze({__proto__:null,UIStrings:K,IsolatedFileSystemManager:ee,Events:te,FileSystem:undefined});class ne{constructor(e,t){this._isolatedFileSystemManager=e,this._workspace=t,this._eventListeners=[this._isolatedFileSystemManager.addEventListener(te.FileSystemAdded,this._onFileSystemAdded,this),this._isolatedFileSystemManager.addEventListener(te.FileSystemRemoved,this._onFileSystemRemoved,this),this._isolatedFileSystemManager.addEventListener(te.FileSystemFilesChanged,this._fileSystemFilesChanged,this)],this._boundFileSystems=new Map,this._isolatedFileSystemManager.waitForFileSystems().then(this._onFileSystemsLoaded.bind(this))}static projectId(e){return e}static relativePath(e){const t=e.project()._fileSystemBaseURL;return e.url().substring(t.length).split("/")}static tooltipForUISourceCode(e){return e.project()._fileSystem.tooltipForURL(e.url())}static fileSystemType(e){return e._fileSystem.type()}static fileSystemSupportsAutomapping(e){return e._fileSystem.supportsAutomapping()}static completeURL(e,t){return e._fileSystemBaseURL+t}static fileSystemPath(e){return e}fileSystemManager(){return this._isolatedFileSystemManager}_onFileSystemsLoaded(e){for(const t of e)this._addFileSystem(t)}_onFileSystemAdded(e){const t=e.data;this._addFileSystem(t)}_addFileSystem(e){const t=new oe(this,e,this._workspace);this._boundFileSystems.set(e.path(),t)}_onFileSystemRemoved(e){const t=e.data,s=this._boundFileSystems.get(t.path());s&&s.dispose(),this._boundFileSystems.delete(t.path())}_fileSystemFilesChanged(e){const t=e.data;for(const e of t.changed.keysArray()){const s=this._boundFileSystems.get(e);s&&t.changed.get(e).forEach((e=>s._fileChanged(e)))}for(const e of t.added.keysArray()){const s=this._boundFileSystems.get(e);s&&t.added.get(e).forEach((e=>s._fileChanged(e)))}for(const e of t.removed.keysArray()){const s=this._boundFileSystems.get(e);s&&t.removed.get(e).forEach((e=>s.removeUISourceCode(e)))}}dispose(){r.EventTarget.removeEventListeners(this._eventListeners);for(const e of this._boundFileSystems.values())e.dispose(),this._boundFileSystems.delete(e._fileSystem.path())}}class oe extends g.ProjectStore{constructor(e,t,s){const i=t.path(),n=ne.projectId(i);console.assert(!s.project(n));const o=i.substr(i.lastIndexOf("/")+1);super(s,n,g.projectTypes.FileSystem,o),this._fileSystem=t,this._fileSystemBaseURL=this._fileSystem.path()+"/",this._fileSystemParentURL=this._fileSystemBaseURL.substr(0,i.lastIndexOf("/")+1),this._fileSystemWorkspaceBinding=e,this._fileSystemPath=i,this._creatingFilesGuard=new Set,s.addProject(this),this.populate()}fileSystemPath(){return this._fileSystemPath}fileSystem(){return this._fileSystem}mimeType(e){return this._fileSystem.mimeFromPath(e.url())}initialGitFolders(){return this._fileSystem.initialGitFolders().map((e=>this._fileSystemPath+"/"+e))}_filePathForUISourceCode(e){return e.url().substring(this._fileSystemPath.length)}isServiceProject(){return!1}requestMetadata(e){const t=re.get(e);if(t)return t;const s=this._filePathForUISourceCode(e),i=this._fileSystem.getMetadata(s).then((function(e){if(!e)return null;return new y.UISourceCodeMetadata(e.modificationTime,e.size)}));return re.set(e,i),i}requestFileBlob(e){return this._fileSystem.requestFileBlob(this._filePathForUISourceCode(e))}requestFileContent(e){const t=this._filePathForUISourceCode(e);return this._fileSystem.requestFileContent(t)}canSetFileContent(){return!0}async setFileContent(e,t,s){const i=this._filePathForUISourceCode(e);await this._fileSystem.setFileContent(i,t,s)}fullDisplayName(e){const t=e.project()._fileSystemParentURL;return e.url().substring(t.length)}canRename(){return!0}rename(e,t,s){if(t===e.name())return void s(!0,e.name(),e.url(),e.contentType());let i=this._filePathForUISourceCode(e);this._fileSystem.renameFile(i,t,function(t,n){if(!t||!n)return void s(!1,n);console.assert(Boolean(n));const o=i.lastIndexOf("/"),r=i.substring(0,o);i=r+"/"+n,i=i.substr(1);const d=this._fileSystemBaseURL+i,a=this._fileSystem.contentType(n);this.renameUISourceCode(e,n),s(!0,n,d,a)}.bind(this))}async searchInFileContent(e,t,s,i){const n=this._filePathForUISourceCode(e),{content:o}=await this._fileSystem.requestFileContent(n);return o?v.performSearchInContent(o,t,s,i):[]}async findFilesMatchingSearchRequest(e,t,s){let i=t;const n=e.queries().slice();n.length||n.push(""),s.setTotalWork(n.length);for(const t of n){const n=await this._fileSystem.searchInPath(e.isRegex()?"":t,s);i=p.intersectOrdered(i,n.sort(),u.naturalOrderComparator),s.worked(1)}return s.done(),i}indexContent(e){this._fileSystem.indexContent(e)}populate(){const e=this._fileSystem.initialFilePaths();(function t(s){const i=Math.min(s+1e3,e.length);for(let t=s;t<i;++t)this._addFile(e[t]);i<e.length&&setTimeout(t.bind(this,i),100)}).call(this,0)}excludeFolder(e){let t=e.substring(this._fileSystemBaseURL.length);t.startsWith("/")||(t="/"+t),t.endsWith("/")||(t+="/"),this._fileSystem.addExcludedFolder(t);const s=this.uiSourceCodes().slice();for(let t=0;t<s.length;++t){const i=s[t];i.url().startsWith(e)&&this.removeUISourceCode(i.url())}}canExcludeFolder(e){return this._fileSystem.canExcludeFolder(e)}canCreateFile(){return!0}async createFile(e,t,s,i){const n=this._fileSystemPath+e+(e.endsWith("/")?"":"/")+t;this._creatingFilesGuard.add(n);const o=await this._fileSystem.createFile(e,t);if(!o)return null;const r=this._addFile(o);return r.setContent(s,Boolean(i)),this._creatingFilesGuard.delete(n),r}deleteFile(e){const t=this._filePathForUISourceCode(e);this._fileSystem.deleteFile(t).then((t=>{t&&this.removeUISourceCode(e.url())}))}remove(){this._fileSystemWorkspaceBinding._isolatedFileSystemManager.removeFileSystem(this._fileSystem)}_addFile(e){const t=this._fileSystem.contentType(e),s=this.createUISourceCode(this._fileSystemBaseURL+e,t);return this.addUISourceCode(s),s}_fileChanged(e){if(this._creatingFilesGuard.has(e))return;const t=this.uiSourceCodeForURL(e);if(t)re.delete(t),t.checkContentUpdated();else{const t=this._fileSystem.contentType(e);this.addUISourceCode(this.createUISourceCode(e,t))}}tooltipForURL(e){return this._fileSystem.tooltipForURL(e)}dispose(){this.removeProject()}}const re=new WeakMap;var de=Object.freeze({__proto__:null,FileSystemWorkspaceBinding:ne,FileSystem:oe,FilesChangedData:undefined});let ae;class le extends n.ObjectWrapper{constructor(e){super(),this._bindings=new WeakMap,this._originalResponseContentPromises=new WeakMap,this._savingForOverrides=new WeakSet,this._savingSymbol=Symbol("SavingForOverrides"),this._enabledSetting=t.Settings.instance().moduleSetting("persistenceNetworkOverridesEnabled"),this._enabledSetting.addChangeListener(this._enabledChanged,this),this._workspace=e,this._networkUISourceCodeForEncodedPath=new Map,this._interceptionHandlerBound=this._interceptionHandler.bind(this),this._updateInterceptionThrottler=new d.Throttler(50),this._project=null,this._activeProject=null,this._active=!1,this._enabled=!1,this._workspace.addEventListener(g.Events.ProjectAdded,(e=>{this._onProjectAdded(e.data)})),this._workspace.addEventListener(g.Events.ProjectRemoved,(e=>{this._onProjectRemoved(e.data)})),Fe.instance().addNetworkInterceptor(this._canHandleNetworkUISourceCode.bind(this)),this._eventDescriptors=[],this._enabledChanged()}static instance(e={forceNew:null,workspace:null}){const{forceNew:t,workspace:s}=e;if(!ae||t){if(!s)throw new Error("Missing workspace for NetworkPersistenceManager");ae=new le(s)}return ae}active(){return this._active}project(){return this._project}originalContentForUISourceCode(e){const t=this._bindings.get(e);if(!t)return null;const s=t.fileSystem;return this._originalResponseContentPromises.get(s)||null}async _enabledChanged(){this._enabled!==this._enabledSetting.get()&&(this._enabled=this._enabledSetting.get(),this._enabled?(this._eventDescriptors=[g.WorkspaceImpl.instance().addEventListener(g.Events.UISourceCodeRenamed,(e=>{this._uiSourceCodeRenamedListener(e)})),g.WorkspaceImpl.instance().addEventListener(g.Events.UISourceCodeAdded,(e=>{this._uiSourceCodeAdded(e)})),g.WorkspaceImpl.instance().addEventListener(g.Events.UISourceCodeRemoved,(e=>{this._uiSourceCodeRemovedListener(e)})),g.WorkspaceImpl.instance().addEventListener(g.Events.WorkingCopyCommitted,(e=>this._onUISourceCodeWorkingCopyCommitted(e.data.uiSourceCode)))],await this._updateActiveProject()):(r.EventTarget.removeEventListeners(this._eventDescriptors),await this._updateActiveProject()))}async _uiSourceCodeRenamedListener(e){const t=e.data.uiSourceCode;await this._onUISourceCodeRemoved(t),await this._onUISourceCodeAdded(t)}async _uiSourceCodeRemovedListener(e){await this._onUISourceCodeRemoved(e.data)}async _uiSourceCodeAdded(e){await this._onUISourceCodeAdded(e.data)}async _updateActiveProject(){const e=this._active;if(this._active=Boolean(this._enabledSetting.get()&&_.TargetManager.instance().mainTarget()&&this._project),this._active!==e){if(this._active&&this._project){await Promise.all(this._project.uiSourceCodes().map((e=>this._filesystemUISourceCodeAdded(e))));const e=this._workspace.projectsForType(g.projectTypes.Network);for(const t of e)await Promise.all(t.uiSourceCodes().map((e=>this._networkUISourceCodeAdded(e))))}else this._project&&(await Promise.all(this._project.uiSourceCodes().map((e=>this._filesystemUISourceCodeRemoved(e)))),this._networkUISourceCodeForEncodedPath.clear());Fe.instance().refreshAutomapping()}}_encodedPathFromUrl(e){if(!this._active||!this._project)return"";let t=s.ParsedURL.urlWithoutHash(e.replace(/^https?:\/\//,""));t.endsWith("/")&&-1===t.indexOf("?")&&(t+="index.html");let i=function(e){const t=[];for(const i of function(e){const t=(e=s.ParsedURL.urlWithoutHash(e)).indexOf("?");if(-1===t)return e.split("/");if(0===t)return[e];const i=e.substr(t),n=e.substr(0,e.length-i.length).split("/");return n[n.length-1]+=i,n}(e)){if(!i)continue;let e=encodeURI(i).replace(/[\/:\?\*]/g,(e=>"%"+e[0].charCodeAt(0).toString(16)));ce.has(e.toLowerCase())&&(e=e.split("").map((e=>"%"+e.charCodeAt(0).toString(16))).join(""));"."===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)+"%2e"),t.push(e)}return t}(t);const n=ne.fileSystemPath(this._project.id()),o=i.join("/");if(n.length+o.length>200){const e=i[0],n=i[i.length-1],r=n?n.substr(0,10)+"-":"",d=s.ParsedURL.extractExtension(t),a=d?"."+d.substr(0,10):"";i=[e,"longurls",r+u.hashCode(o).toString(16)+a]}return i.join("/")}_decodeLocalPathToUrlPath(e){try{return unescape(e)}catch(e){console.error(e)}return e}async _unbind(e){const t=this._bindings.get(e);t&&(this._bindings.delete(t.network),this._bindings.delete(t.fileSystem),await Fe.instance().removeBinding(t))}async _bind(e,t){this._bindings.has(e)&&await this._unbind(e),this._bindings.has(t)&&await this._unbind(t);const s=new Te(e,t);this._bindings.set(e,s),this._bindings.set(t,s),await Fe.instance().addBinding(s);const i=this._savingForOverrides.has(e)?e:t,[{content:n},o]=await Promise.all([i.requestContent(),i.contentEncoded()]);Fe.instance().syncContent(i,n||"",o)}_onUISourceCodeWorkingCopyCommitted(e){this.saveUISourceCodeForOverrides(e)}canSaveUISourceCodeForOverrides(e){return this._active&&e.project().type()===g.projectTypes.Network&&!this._bindings.has(e)&&!this._savingForOverrides.has(e)}async saveUISourceCodeForOverrides(e){if(!this.canSaveUISourceCodeForOverrides(e))return;this._savingForOverrides.add(e);let t=this._encodedPathFromUrl(e.url());const s=(await e.requestContent()).content||"",i=await e.contentEncoded(),n=t.lastIndexOf("/"),o=t.substr(n+1);t=t.substr(0,n),this._project&&await this._project.createFile(t,o,s,i),this._fileCreatedForTest(t,o),this._savingForOverrides.delete(e)}_fileCreatedForTest(e,t){}_patternForFileSystemUISourceCode(e){const t=ne.relativePath(e);return t.length<2?"":"longurls"===t[1]&&2!==t.length?"http?://"+t[0]+"/*":"http?://"+this._decodeLocalPathToUrlPath(t.join("/"))}async _onUISourceCodeAdded(e){await this._networkUISourceCodeAdded(e),await this._filesystemUISourceCodeAdded(e)}_canHandleNetworkUISourceCode(e){return this._active&&!e.url().startsWith("snippet://")}async _networkUISourceCodeAdded(e){if(e.project().type()!==g.projectTypes.Network||!this._canHandleNetworkUISourceCode(e))return;const t=s.ParsedURL.urlWithoutHash(e.url());this._networkUISourceCodeForEncodedPath.set(this._encodedPathFromUrl(t),e);const i=this._project,n=i.uiSourceCodeForURL(i.fileSystemPath()+"/"+this._encodedPathFromUrl(t));n&&await this._bind(e,n)}async _filesystemUISourceCodeAdded(e){if(!this._active||e.project()!==this._project)return;this._updateInterceptionPatterns();const t=ne.relativePath(e),s=this._networkUISourceCodeForEncodedPath.get(t.join("/"));s&&await this._bind(s,e)}_updateInterceptionPatterns(){this._updateInterceptionThrottler.schedule(function(){if(!this._active||!this._project)return f.MultitargetNetworkManager.instance().setInterceptionHandlerForPatterns([],this._interceptionHandlerBound);const e=new Set,t="index.html";for(const s of this._project.uiSourceCodes()){const i=this._patternForFileSystemUISourceCode(s);e.add(i),i.endsWith("/index.html")&&e.add(i.substr(0,i.length-t.length))}return f.MultitargetNetworkManager.instance().setInterceptionHandlerForPatterns(Array.from(e).map((e=>({urlPattern:e,interceptionStage:Protocol.Network.InterceptionStage.HeadersReceived}))),this._interceptionHandlerBound)}.bind(this))}async _onUISourceCodeRemoved(e){await this._networkUISourceCodeRemoved(e),await this._filesystemUISourceCodeRemoved(e)}async _networkUISourceCodeRemoved(e){e.project().type()===g.projectTypes.Network&&(await this._unbind(e),this._networkUISourceCodeForEncodedPath.delete(this._encodedPathFromUrl(e.url())))}async _filesystemUISourceCodeRemoved(e){e.project()===this._project&&(this._updateInterceptionPatterns(),this._originalResponseContentPromises.delete(e),await this._unbind(e))}async _setProject(e){e!==this._project&&(this._project&&await Promise.all(this._project.uiSourceCodes().map((e=>this._filesystemUISourceCodeRemoved(e)))),this._project=e,this._project&&await Promise.all(this._project.uiSourceCodes().map((e=>this._filesystemUISourceCodeAdded(e)))),await this._updateActiveProject(),this.dispatchEventToListeners(he.ProjectChanged,this._project))}async _onProjectAdded(e){if(e.type()!==g.projectTypes.FileSystem||"overrides"!==ne.fileSystemType(e))return;ne.fileSystemPath(e.id())&&(this._project&&this._project.remove(),await this._setProject(e))}async _onProjectRemoved(e){e===this._project&&await this._setProject(null)}async _interceptionHandler(e){const t=e.request.method;if(!this._active||"GET"!==t&&"POST"!==t)return;const s=this._project,n=s.fileSystemPath()+"/"+this._encodedPathFromUrl(e.request.url),o=s.uiSourceCodeForURL(n);if(!o)return;let r="";if(e.responseHeaders){r=f.NetworkManager.lowercaseHeaders(e.responseHeaders)["content-type"]}if(!r){const t=i.resourceTypes[e.resourceType]||i.resourceTypes.Other;r=o.mimeType(),i.ResourceType.fromMimeType(r)!==t&&(r=t.canonicalMimeType())}const d=o.project();this._originalResponseContentPromises.set(o,e.responseBody().then((e=>e.error||null===e.content?null:e.encoded?atob(e.content):e.content)));const a=await d.requestFileBlob(o);a&&e.continueRequestWithContent(new Blob([a],{type:r}))}}const ce=new Set(["con","prn","aux","nul","com1","com2","com3","com4","com5","com6","com7","com8","com9","lpt1","lpt2","lpt3","lpt4","lpt5","lpt6","lpt7","lpt8","lpt9"]),he={ProjectChanged:Symbol("ProjectChanged")};var ue=Object.freeze({__proto__:null,NetworkPersistenceManager:le,Events:he});const me={linkedToSourceMapS:"Linked to source map: {PH1}",linkedToS:"Linked to {PH1}"},pe=h.registerUIStrings("persistence/PersistenceUtils.js",me),_e=h.getLocalizedString.bind(void 0,pe);class fe{static tooltipForUISourceCode(e){const t=Fe.instance().binding(e);return t?e===t.network?ne.tooltipForUISourceCode(t.fileSystem):t.network.contentType().isFromSourceMap()?_e(me.linkedToSourceMapS,{PH1:u.trimMiddle(t.network.url(),150)}):_e(me.linkedToS,{PH1:u.trimMiddle(t.network.url(),150)}):""}static iconForUISourceCode(e){const t=Fe.instance().binding(e);if(t){if(!t.fileSystem.url().startsWith("file://"))return null;const e=E.Icon.create("mediumicon-file-sync");return x.Tooltip.install(e,fe.tooltipForUISourceCode(t.network)),le.instance().project()===t.fileSystem.project()&&(e.style.filter="hue-rotate(160deg)"),e}if(e.project().type()!==g.projectTypes.FileSystem||!e.url().startsWith("file://"))return null;const s=E.Icon.create("mediumicon-file");return x.Tooltip.install(s,fe.tooltipForUISourceCode(e)),s}}class Se extends n.ObjectWrapper{constructor(e){super(),e.addEventListener(Ee.BindingCreated,this._bindingChanged,this),e.addEventListener(Ee.BindingRemoved,this._bindingChanged,this)}_bindingChanged(e){const t=e.data;this.dispatchEventToListeners(b.LinkDecorator.Events.LinkIconChanged,t.network)}linkIcon(e){return fe.iconForUISourceCode(e)}}var ge=Object.freeze({__proto__:null,UIStrings:me,PersistenceUtils:fe,LinkDecorator:Se});let ye;class Fe extends n.ObjectWrapper{constructor(e,t){super(),this._workspace=e,this._breakpointManager=t,this._filePathPrefixesToBindingCount=new Map,this._subscribedBindingEventListeners=new m.Multimap;const s=new Se(this);b.Linkifier.setLinkDecorator(s),this._mapping=new Me(this._workspace,this._onStatusAdded.bind(this),this._onStatusRemoved.bind(this))}static instance(e={forceNew:null,workspace:null,breakpointManager:null}){const{forceNew:t,workspace:s,breakpointManager:i}=e;if(!ye||t){if(!s||!i)throw new Error("Missing arguments for workspace");ye=new Fe(s,i)}return ye}addNetworkInterceptor(e){this._mapping.addNetworkInterceptor(e)}refreshAutomapping(){this._mapping.scheduleRemap()}async addBinding(e){await this._innerAddBinding(e)}async addBindingForTest(e){await this._innerAddBinding(e)}async removeBinding(e){await this._innerRemoveBinding(e)}async removeBindingForTest(e){await this._innerRemoveBinding(e)}async _innerAddBinding(e){ve.set(e.network,e),ve.set(e.fileSystem,e),e.fileSystem.forceLoadOnCheckContent(),e.network.addEventListener(y.Events.WorkingCopyCommitted,this._onWorkingCopyCommitted,this),e.fileSystem.addEventListener(y.Events.WorkingCopyCommitted,this._onWorkingCopyCommitted,this),e.network.addEventListener(y.Events.WorkingCopyChanged,this._onWorkingCopyChanged,this),e.fileSystem.addEventListener(y.Events.WorkingCopyChanged,this._onWorkingCopyChanged,this),this._addFilePathBindingPrefixes(e.fileSystem.url()),await this._moveBreakpoints(e.fileSystem,e.network),console.assert(!e.fileSystem.isDirty()||!e.network.isDirty()),e.fileSystem.isDirty()?this._syncWorkingCopy(e.fileSystem):e.network.isDirty()?this._syncWorkingCopy(e.network):e.network.hasCommits()&&e.network.content()!==e.fileSystem.content()&&(e.network.setWorkingCopy(e.network.content()),this._syncWorkingCopy(e.network)),this._notifyBindingEvent(e.network),this._notifyBindingEvent(e.fileSystem),this.dispatchEventToListeners(Ee.BindingCreated,e)}async _innerRemoveBinding(e){ve.get(e.network)===e&&(console.assert(ve.get(e.network)===ve.get(e.fileSystem),"ERROR: inconsistent binding for networkURL "+e.network.url()),ve.delete(e.network),ve.delete(e.fileSystem),e.network.removeEventListener(y.Events.WorkingCopyCommitted,this._onWorkingCopyCommitted,this),e.fileSystem.removeEventListener(y.Events.WorkingCopyCommitted,this._onWorkingCopyCommitted,this),e.network.removeEventListener(y.Events.WorkingCopyChanged,this._onWorkingCopyChanged,this),e.fileSystem.removeEventListener(y.Events.WorkingCopyChanged,this._onWorkingCopyChanged,this),this._removeFilePathBindingPrefixes(e.fileSystem.url()),await this._breakpointManager.copyBreakpoints(e.network.url(),e.fileSystem),this._notifyBindingEvent(e.network),this._notifyBindingEvent(e.fileSystem),this.dispatchEventToListeners(Ee.BindingRemoved,e))}async _onStatusAdded(e){const t=new Te(e.network,e.fileSystem);Ce.set(e,t),await this._innerAddBinding(t)}async _onStatusRemoved(e){const t=Ce.get(e);await this._innerRemoveBinding(t)}_onWorkingCopyChanged(e){const t=e.data;this._syncWorkingCopy(t)}_syncWorkingCopy(t){const s=ve.get(t);if(!s||Pe.has(s))return;const i=s.network===t?s.fileSystem:s.network;if(!t.isDirty())return Pe.add(s),i.resetWorkingCopy(),Pe.delete(s),void this._contentSyncedForTest();const n=e.NetworkProject.targetForUISourceCode(s.network);if(n&&n.type()===_.Type.Node){const e=t.workingCopy();i.requestContent().then((()=>{const t=Fe.rewrapNodeJSContent(i,i.workingCopy(),e);o.call(this,(()=>t))}))}else o.call(this,(()=>t.workingCopy()));function o(e){s&&Pe.add(s),i.setWorkingCopyGetter(e),s&&Pe.delete(s),this._contentSyncedForTest()}}_onWorkingCopyCommitted(e){const t=e.data.uiSourceCode,s=e.data.content;this.syncContent(t,s,e.data.encoded)}syncContent(t,s,i){const n=ve.get(t);if(!n||we.has(n))return;const o=n.network===t?n.fileSystem:n.network,r=e.NetworkProject.targetForUISourceCode(n.network);function d(e){n&&we.add(n),o.setContent(e,i),n&&we.delete(n),this._contentSyncedForTest()}r&&r.type()===_.Type.Node?o.requestContent().then((e=>{const t=Fe.rewrapNodeJSContent(o,e.content||"",s);d.call(this,t)})):d.call(this,s)}static rewrapNodeJSContent(e,t,s){return e.project().type()===g.projectTypes.FileSystem?(s.startsWith(ke)&&s.endsWith(Ie)&&(s=s.substring(ke.length,s.length-Ie.length)),t.startsWith(be)&&(s=be+s)):(s.startsWith(be)&&(s=s.substring(be.length)),t.startsWith(ke)&&t.endsWith(Ie)&&(s=ke+s+Ie)),s}_contentSyncedForTest(){}async _moveBreakpoints(e,t){const s=this._breakpointManager.breakpointLocationsForUISourceCode(e).map((e=>e.breakpoint));await Promise.all(s.map((e=>(e.remove(!1),this._breakpointManager.setBreakpoint(t,e.lineNumber(),e.columnNumber(),e.condition(),e.enabled())))))}hasUnsavedCommittedChanges(e){return!this._workspace.hasResourceContentTrackingExtensions()&&(!e.project().canSetFileContent()&&(!ve.has(e)&&Boolean(e.hasCommits())))}binding(e){return ve.get(e)||null}subscribeForBindingEvent(e,t){this._subscribedBindingEventListeners.set(e,t)}unsubscribeFromBindingEvent(e,t){this._subscribedBindingEventListeners.delete(e,t)}_notifyBindingEvent(e){if(!this._subscribedBindingEventListeners.has(e))return;const t=Array.from(this._subscribedBindingEventListeners.get(e));for(const e of t)e.call(null)}fileSystem(e){const t=this.binding(e);return t?t.fileSystem:null}network(e){const t=this.binding(e);return t?t.network:null}_addFilePathBindingPrefixes(e){let t="";for(const s of e.split("/")){t+=s+"/";const e=this._filePathPrefixesToBindingCount.get(t)||0;this._filePathPrefixesToBindingCount.set(t,e+1)}}_removeFilePathBindingPrefixes(e){let t="";for(const s of e.split("/")){t+=s+"/";const e=this._filePathPrefixesToBindingCount.get(t);1===e?this._filePathPrefixesToBindingCount.delete(t):void 0!==e&&this._filePathPrefixesToBindingCount.set(t,e-1)}}filePathHasBindings(e){return e.endsWith("/")||(e+="/"),this._filePathPrefixesToBindingCount.has(e)}}const ve=new WeakMap,Ce=new WeakMap,we=new WeakSet,Pe=new WeakSet,ke="(function (exports, require, module, __filename, __dirname) { ",Ie="\n});",be="#!/usr/bin/env node",Ee={BindingCreated:Symbol("BindingCreated"),BindingRemoved:Symbol("BindingRemoved")};class xe{constructor(){this._encoder=new a.CharacterIdMap}encode(e){return e.split("/").map((e=>this._encoder.toChar(e))).join("")}decode(e){return e.split("").map((e=>this._encoder.fromChar(e))).join("/")}}class Te{constructor(e,t){this.network=e,this.fileSystem=t}}var Ue=Object.freeze({__proto__:null,PersistenceImpl:Fe,NodePrefix:ke,NodeSuffix:Ie,NodeShebang:be,Events:Ee,PathEncoder:xe,PersistenceBinding:Te});const Re={theAttemptToBindSInTheWorkspace:'The attempt to bind "{PH1}" in the workspace failed as this URI is malformed.'},Le=h.registerUIStrings("persistence/Automapping.js",Re),je=h.getLocalizedString.bind(void 0,Le);class Me{constructor(e,t,s){this._workspace=e,this._onStatusAdded=t,this._onStatusRemoved=s,this._statuses=new Set,this._fileSystemUISourceCodes=new Map,this._sweepThrottler=new d.Throttler(100),this._sourceCodeToProcessingPromiseMap=new WeakMap,this._sourceCodeToAutoMappingStatusMap=new WeakMap,this._sourceCodeToMetadataMap=new WeakMap;const i=new xe;this._filesIndex=new We(i),this._projectFoldersIndex=new Ae(i),this._activeFoldersIndex=new Ae(i),this._interceptors=[],this._workspace.addEventListener(g.Events.UISourceCodeAdded,(e=>this._onUISourceCodeAdded(e.data))),this._workspace.addEventListener(g.Events.UISourceCodeRemoved,(e=>this._onUISourceCodeRemoved(e.data))),this._workspace.addEventListener(g.Events.UISourceCodeRenamed,this._onUISourceCodeRenamed,this),this._workspace.addEventListener(g.Events.ProjectAdded,(e=>this._onProjectAdded(e.data)),this),this._workspace.addEventListener(g.Events.ProjectRemoved,(e=>this._onProjectRemoved(e.data)),this);for(const t of e.projects())this._onProjectAdded(t);for(const t of e.uiSourceCodes())this._onUISourceCodeAdded(t)}addNetworkInterceptor(e){this._interceptors.push(e),this.scheduleRemap()}scheduleRemap(){for(const e of this._statuses.values())this._clearNetworkStatus(e.network);this._scheduleSweep()}_scheduleSweep(){this._sweepThrottler.schedule(function(){const e=this._workspace.projectsForType(g.projectTypes.Network);for(const t of e)for(const e of t.uiSourceCodes())this._computeNetworkStatus(e);return this._onSweepHappenedForTest(),Promise.resolve()}.bind(this))}_onSweepHappenedForTest(){}_onProjectRemoved(e){for(const t of e.uiSourceCodes())this._onUISourceCodeRemoved(t);if(e.type()!==g.projectTypes.FileSystem)return;const t=e;for(const e of t.initialGitFolders())this._projectFoldersIndex.removeFolder(e);this._projectFoldersIndex.removeFolder(t.fileSystemPath()),this.scheduleRemap()}_onProjectAdded(e){if(e.type()!==g.projectTypes.FileSystem)return;const t=e;for(const e of t.initialGitFolders())this._projectFoldersIndex.addFolder(e);this._projectFoldersIndex.addFolder(t.fileSystemPath()),e.uiSourceCodes().forEach(this._onUISourceCodeAdded.bind(this)),this.scheduleRemap()}_onUISourceCodeAdded(e){const t=e.project();if(t.type()===g.projectTypes.FileSystem){if(!ne.fileSystemSupportsAutomapping(t))return;this._filesIndex.addPath(e.url()),this._fileSystemUISourceCodes.set(e.url(),e),this._scheduleSweep()}else t.type()===g.projectTypes.Network&&this._computeNetworkStatus(e)}_onUISourceCodeRemoved(e){if(e.project().type()===g.projectTypes.FileSystem){this._filesIndex.removePath(e.url()),this._fileSystemUISourceCodes.delete(e.url());const t=this._sourceCodeToAutoMappingStatusMap.get(e);t&&this._clearNetworkStatus(t.network)}else e.project().type()===g.projectTypes.Network&&this._clearNetworkStatus(e)}_onUISourceCodeRenamed(e){const t=e.data.uiSourceCode,s=e.data.oldURL;if(t.project().type()!==g.projectTypes.FileSystem)return;this._filesIndex.removePath(s),this._fileSystemUISourceCodes.delete(s);const i=this._sourceCodeToAutoMappingStatusMap.get(t);i&&this._clearNetworkStatus(i.network),this._filesIndex.addPath(t.url()),this._fileSystemUISourceCodes.set(t.url(),t),this._scheduleSweep()}_computeNetworkStatus(t){if(this._sourceCodeToProcessingPromiseMap.has(t)||this._sourceCodeToAutoMappingStatusMap.has(t))return;if(this._interceptors.some((e=>e(t))))return;if(t.url().startsWith("wasm://"))return;const s=this._createBinding(t).then(async function(i){if(!i)return null;if(this._sourceCodeToProcessingPromiseMap.get(t)!==s)return null;if(i.network.contentType().isFromSourceMap()||!i.fileSystem.contentType().isTextType())return i;if(i.fileSystem.isDirty()&&(i.network.isDirty()||i.network.hasCommits()))return null;const[n,o]=await Promise.all([i.fileSystem.requestContent(),i.network.project().requestFileContent(i.network)]);if(null===n.content||null===o)return null;if(this._sourceCodeToProcessingPromiseMap.get(t)!==s)return null;const r=e.NetworkProject.targetForUISourceCode(i.network);let d=!1;const a=n.content;if(r&&r.type()===_.Type.Node){if(o.content){const e=Fe.rewrapNodeJSContent(i.fileSystem,a,o.content);d=a===e}}else o.content&&(d=a.trimRight()===o.content.trimRight());if(!d)return this._prevalidationFailedForTest(i),null;return i}.bind(this)).then(function(e){if(this._sourceCodeToProcessingPromiseMap.get(t)!==s)return;if(this._sourceCodeToProcessingPromiseMap.delete(t),!e)return void this._onBindingFailedForTest();if(this._sourceCodeToAutoMappingStatusMap.has(e.network)||this._sourceCodeToAutoMappingStatusMap.has(e.fileSystem))return;if(this._statuses.add(e),this._sourceCodeToAutoMappingStatusMap.set(e.network,e),this._sourceCodeToAutoMappingStatusMap.set(e.fileSystem,e),e.exactMatch){const t=this._projectFoldersIndex.closestParentFolder(e.fileSystem.url());!!t&&this._activeFoldersIndex.addFolder(t)&&this._scheduleSweep()}this._onStatusAdded.call(null,e)}.bind(this));this._sourceCodeToProcessingPromiseMap.set(t,s)}_prevalidationFailedForTest(e){}_onBindingFailedForTest(){}_clearNetworkStatus(e){if(this._sourceCodeToProcessingPromiseMap.has(e))return void this._sourceCodeToProcessingPromiseMap.delete(e);const t=this._sourceCodeToAutoMappingStatusMap.get(e);if(t){if(this._statuses.delete(t),this._sourceCodeToAutoMappingStatusMap.delete(t.network),this._sourceCodeToAutoMappingStatusMap.delete(t.fileSystem),t.exactMatch){const e=this._projectFoldersIndex.closestParentFolder(t.fileSystem.url());e&&this._activeFoldersIndex.removeFolder(e)}this._onStatusRemoved.call(null,t)}}_createBinding(e){const t=e.url();if(t.startsWith("file://")||t.startsWith("snippet://")){const s=d(t);if(!s)return Promise.resolve(null);const i=this._fileSystemUISourceCodes.get(s),n=i?new Be(e,i,!1):null;return Promise.resolve(n)}let i=s.ParsedURL.extractPath(t);if(null===i)return Promise.resolve(null);i.endsWith("/")&&(i+="index.html");const n=d(i);if(!n)return Promise.resolve(null);const r=this._filesIndex.similarFiles(n).map((e=>this._fileSystemUISourceCodes.get(e)));return r.length?this._pullMetadatas(r.concat(e)).then(function(){const t=r.filter((e=>Boolean(e)&&Boolean(this._activeFoldersIndex.closestParentFolder(e.url())))),s=this._sourceCodeToMetadataMap.get(e);if(!s||!s.modificationTime&&"number"!=typeof s.contentSize)return 1!==t.length?null:new Be(e,t[0],!1);let i=this._filterWithMetadata(t,s);i.length||(i=this._filterWithMetadata(r,s));if(1!==i.length)return null;return new Be(e,i[0],!0)}.bind(this)):Promise.resolve(null);function d(e){try{return decodeURI(e)}catch(t){return o.Console.instance().error(je(Re.theAttemptToBindSInTheWorkspace,{PH1:e})),null}}}_pullMetadatas(e){return Promise.all(e.map((async e=>{this._sourceCodeToMetadataMap.set(e,await e.requestMetadata())})))}_filterWithMetadata(e,t){return e.filter((e=>{const s=this._sourceCodeToMetadataMap.get(e);if(!s)return!1;const i=!t.modificationTime||!s.modificationTime||Math.abs(t.modificationTime.getTime()-s.modificationTime.getTime())<1e3,n=!t.contentSize||s.contentSize===t.contentSize;return i&&n}))}}class We{constructor(e){this._encoder=e,this._reversedIndex=new l.Trie}addPath(e){const t=this._encoder.encode(e);this._reversedIndex.add(u.reverse(t))}removePath(e){const t=this._encoder.encode(e);this._reversedIndex.remove(u.reverse(t))}similarFiles(e){const t=this._encoder.encode(e),s=u.reverse(t),i=this._reversedIndex.longestPrefix(s,!1);return i?this._reversedIndex.words(i).map((e=>this._encoder.decode(u.reverse(e)))):[]}}class Ae{constructor(e){this._encoder=e,this._index=new l.Trie,this._folderCount=new Map}addFolder(e){e.endsWith("/")&&(e=e.substring(0,e.length-1));const t=this._encoder.encode(e);this._index.add(t);const s=this._folderCount.get(t)||0;return this._folderCount.set(t,s+1),0===s}removeFolder(e){e.endsWith("/")&&(e=e.substring(0,e.length-1));const t=this._encoder.encode(e),s=this._folderCount.get(t)||0;return!!s&&(s>1?(this._folderCount.set(t,s-1),!1):(this._index.remove(t),this._folderCount.delete(t),!0))}closestParentFolder(e){const t=this._encoder.encode(e),s=this._index.longestPrefix(t,!0);return this._encoder.decode(s)}}class Be{constructor(e,t,s){this.network=e,this.fileSystem=t,this.exactMatch=s}}var Ne=Object.freeze({__proto__:null,UIStrings:Re,Automapping:Me,AutomappingStatus:Be});const He={excludedFolders:"Excluded folders",add:"Add",none:"None",sViaDevtools:"{PH1} (via .devtools)",folderPath:"Folder path",enterAPath:"Enter a path",enterAUniquePath:"Enter a unique path"},qe=h.registerUIStrings("persistence/EditFileSystemView.js",He),Oe=h.getLocalizedString.bind(void 0,qe);class ze extends T.VBox{constructor(e){super(!0),this.registerRequiredCSS("persistence/editFileSystemView.css",{enableLegacyPatching:!1}),this._fileSystemPath=e,this._excludedFolders=[],this._eventListeners=[ee.instance().addEventListener(te.ExcludedFolderAdded,this._update,this),ee.instance().addEventListener(te.ExcludedFolderRemoved,this._update,this)];const t=this.contentElement.createChild("div","file-system-header");t.createChild("div","file-system-header-text").textContent=Oe(He.excludedFolders),t.appendChild(U.createTextButton(Oe(He.add),this._addExcludedFolderButtonClicked.bind(this),"add-button")),this._excludedFoldersList=new R.ListWidget(this),this._excludedFoldersList.element.classList.add("file-system-list"),this._excludedFoldersList.registerRequiredCSS("persistence/editFileSystemView.css",{enableLegacyPatching:!1});const s=document.createElement("div");s.classList.add("file-system-list-empty"),s.textContent=Oe(He.none),this._excludedFoldersList.setEmptyPlaceholder(s),this._excludedFoldersList.show(this.contentElement),this._update()}dispose(){r.EventTarget.removeEventListeners(this._eventListeners)}_getFileSystem(){return ee.instance().fileSystem(this._fileSystemPath)}_update(){if(!this._muteUpdate){this._excludedFoldersList.clear(),this._excludedFolders=[];for(const e of this._getFileSystem().excludedFolders().values())this._excludedFolders.push(e),this._excludedFoldersList.appendItem(e,!0)}}_addExcludedFolderButtonClicked(){this._excludedFoldersList.addNewItem(0,"")}renderItem(e,t){const s=document.createElement("div");s.classList.add("file-system-list-item");const i=t?e:Oe(He.sViaDevtools,{PH1:e}),n=s.createChild("div","file-system-value");return n.textContent=i,x.Tooltip.install(n,i),s}removeItemRequested(e,t){this._getFileSystem().removeExcludedFolder(this._excludedFolders[t])}commitEdit(e,t,s){this._muteUpdate=!0,s||this._getFileSystem().removeExcludedFolder(e),this._getFileSystem().addExcludedFolder(this._normalizePrefix(t.control("pathPrefix").value)),this._muteUpdate=!1,this._update()}beginEdit(e){const t=this._createExcludedFolderEditor();return t.control("pathPrefix").value=e,t}_createExcludedFolderEditor(){if(this._excludedFolderEditor)return this._excludedFolderEditor;const e=new R.Editor;this._excludedFolderEditor=e;const t=e.contentElement();t.createChild("div","file-system-edit-row").createChild("div","file-system-value").textContent=Oe(He.folderPath);return t.createChild("div","file-system-edit-row").createChild("div","file-system-value").appendChild(e.createInput("pathPrefix","text","/path/to/folder/",function(e,t,s){const i=this._normalizePrefix(s.value.trim());if(!i)return{valid:!1,errorMessage:Oe(He.enterAPath)};const n=this._getFileSystem().excludedFolders().size;for(let e=0;e<n;++e)if(e!==t&&this._excludedFolders[e]===i)return{valid:!1,errorMessage:Oe(He.enterAUniquePath)};return{valid:!0,errorMessage:void 0}}.bind(this))),e}_normalizePrefix(e){return e?e+("/"===e[e.length-1]?"":"/"):""}}var De=Object.freeze({__proto__:null,UIStrings:He,EditFileSystemView:ze});const Ge={saveAs:"Save as...",saveImage:"Save image",saveForOverrides:"Save for overrides",openInContainingFolder:"Open in containing folder"},Ve=h.registerUIStrings("persistence/PersistenceActions.js",Ge),$e=h.getLocalizedString.bind(void 0,Ve);var Je=Object.freeze({__proto__:null,UIStrings:Ge,ContextMenuProvider:class{appendApplicableItems(e,t,i){const n=i;n.contentType().isDocumentOrScriptOrStyleSheet()?t.saveSection().appendItem($e(Ge.saveAs),(async function(){n instanceof y.UISourceCode&&n.commitWorkingCopy();let e=(await n.requestContent()).content||"";await n.contentEncoded()&&(e=window.atob(e));const t=n.contentURL();F.FileManager.instance().save(t,e,!0),F.FileManager.instance().close(t)})):n instanceof S.Resource&&n.contentType().isImage()&&t.saveSection().appendItem($e(Ge.saveImage),(async function(){const e=n,t=(await e.requestContent()).content||"",s=document.createElement("a");s.download=e.displayName,s.href="data:"+e.mimeType+";base64,"+t,s.click()}));const o=g.WorkspaceImpl.instance().uiSourceCodeForURL(n.contentURL());o&&le.instance().canSaveUISourceCodeForOverrides(o)&&t.saveSection().appendItem($e(Ge.saveForOverrides),(()=>{o.commitWorkingCopy(),le.instance().saveUISourceCodeForOverrides(o),c.reveal(o)}));const r=o&&Fe.instance().binding(o),d=r?r.fileSystem.contentURL():n.contentURL();if(d.startsWith("file://")){const e=s.ParsedURL.urlToPlatformPath(d,w.isWin());t.revealSection().appendItem($e(Ge.openInContainingFolder),(()=>C.InspectorFrontendHostInstance.showItemInFolder(e)))}}}});const Ye={workspace:"Workspace",mappingsAreInferredAutomatically:"Mappings are inferred automatically.",addFolder:"Add folder…",folderExcludePattern:"Folder exclude pattern",remove:"Remove"},Ke=h.registerUIStrings("persistence/WorkspaceSettingsTab.js",Ye),Qe=h.getLocalizedString.bind(void 0,Ke);let Xe;class Ze extends T.VBox{constructor(){super(),this.registerRequiredCSS("persistence/workspaceSettingsTab.css",{enableLegacyPatching:!0});const e=this.element.createChild("header");U.createTextChild(e.createChild("h1"),Qe(Ye.workspace)),this.containerElement=this.element.createChild("div","settings-container-wrapper").createChild("div","settings-tab settings-content settings-container"),ee.instance().addEventListener(te.FileSystemAdded,(e=>this._fileSystemAdded(e.data)),this),ee.instance().addEventListener(te.FileSystemRemoved,(e=>this._fileSystemRemoved(e.data)),this);const t=this._createFolderExcludePatternInput();t.classList.add("folder-exclude-pattern"),this.containerElement.appendChild(t);const s=this.containerElement.createChild("div","settings-info-message");U.createTextChild(s,Qe(Ye.mappingsAreInferredAutomatically)),this._fileSystemsListContainer=this.containerElement.createChild("div","");const i=U.createTextButton(Qe(Ye.addFolder),this._addFileSystemClicked.bind(this));this.containerElement.appendChild(i),this.setDefaultFocusedElement(i),this._elementByPath=new Map,this._mappingViewByPath=new Map;const n=ee.instance().fileSystems();for(let e=0;e<n.length;++e)this._addItem(n[e])}static instance(e={forceNew:null}){const{forceNew:t}=e;return Xe&&!t||(Xe=new Ze),Xe}_createFolderExcludePatternInput(){const e=document.createElement("p"),t=e.createChild("label");t.textContent=Qe(Ye.folderExcludePattern);const s=U.createInput("","text");L.bindLabelToControl(t,s),e.appendChild(s),s.style.width="270px";const i=ee.instance().workspaceFolderExcludePatternSetting(),n=U.bindInput(s,i.set.bind(i),(function(e){let t;try{t=new RegExp(e)}catch(e){}return{valid:Boolean(t),errorMessage:void 0}}),!1);return i.addChangeListener((()=>n.call(null,i.get()))),n(i.get()),e}_addItem(e){if(!(e instanceof z))return;const t=le.instance().project();if(t&&ee.instance().fileSystem(t.fileSystemPath())===e)return;const s=this._renderFileSystem(e);this._elementByPath.set(e.path(),s),this._fileSystemsListContainer.appendChild(s);const i=new ze(e.path());this._mappingViewByPath.set(e.path(),i),i.element.classList.add("file-system-mapping-view"),i.show(s)}_renderFileSystem(e){const t=e.path(),s=t.lastIndexOf("/"),i=t.substr(s+1),n=document.createElement("div");n.classList.add("file-system-container");const o=n.createChild("div","file-system-header"),r=o.createChild("div","file-system-name");r.textContent=i,L.markAsHeading(r,2);const d=o.createChild("div","file-system-path");d.textContent=t,x.Tooltip.install(d,t);const a=new j.Toolbar(""),l=new j.ToolbarButton(Qe(Ye.remove),"largeicon-delete");return l.addEventListener(j.ToolbarButton.Events.Click,this._removeFileSystemClicked.bind(this,e)),a.appendToolbarItem(l),o.appendChild(a.element),n}_removeFileSystemClicked(e){ee.instance().removeFileSystem(e)}_addFileSystemClicked(){ee.instance().addFileSystem()}_fileSystemAdded(e){this._addItem(e)}_fileSystemRemoved(e){const t=this._mappingViewByPath.get(e.path());t&&(t.dispose(),this._mappingViewByPath.delete(e.path()));const s=this._elementByPath.get(e.path());s&&(this._elementByPath.delete(e.path()),s.remove())}}var et=Object.freeze({__proto__:null,UIStrings:Ye,WorkspaceSettingsTab:Ze});export{Ne as Automapping,De as EditFileSystemView,de as FileSystemWorkspaceBinding,Y as IsolatedFileSystem,ie as IsolatedFileSystemManager,ue as NetworkPersistenceManager,Ue as Persistence,Je as PersistenceActions,ge as PersistenceUtils,N as PlatformFileSystem,et as WorkspaceSettingsTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(e,t)=>{let r=!1;for(let n=0;n<t.length;++n)if(-1!==e.indexOf(t.charAt(n))){r=!0;break}if(!r)return String(e);let n="";for(let r=0;r<e.length;++r)-1!==t.indexOf(e.charAt(r))&&(n+="\\"),n+=e.charAt(r);return n},t=function(e,t){const r=[];function n(e){e&&(r.length&&"string"===r[r.length-1].type?r[r.length-1].value+=e:r.push({type:"string",value:e}))}function i(e,t,n){r.push({type:"specifier",specifier:e,precision:t,substitutionIndex:n,value:void 0})}function o(e){const t=["black","red","green","yellow","blue","magenta","cyan","lightGray","","default"],n=["darkGray","lightRed","lightGreen","lightYellow","lightBlue","lightMagenta","lightCyan","white",""],i={color:t,colorLight:n,bgColor:t,bgColorLight:n},o={3:"color",9:"colorLight",4:"bgColor",10:"bgColorLight"}[Math.floor(e/10)];if(!o)return;const s=i[o][e%10];s&&r.push({type:"specifier",specifier:"c",value:{description:(o.startsWith("bg")?"background : ":"color: ")+s},precision:void 0,substitutionIndex:void 0})}let s=0,u=0;const l=new RegExp(`%%|%(?:(\\d+)\\$)?(?:\\.(\\d*))?([${Object.keys(t).join("")}])|\\u001b\\[(\\d+)m`,"g");for(let t=l.exec(e);null!==t;t=l.exec(e)){const r=t.index;if(r>s&&n(e.substring(s,r)),"%%"===t[0])n("%");else if(t[0].startsWith("%")){const[,e,r,n]=t;e&&Number(e)>0&&(u=Number(e)-1);i(n,r?Number(r):-1,u),++u}else{o(Number(t[4]))}s=r+t[0].length}return n(e.substring(s)),r},r=function(e,r,n,i,o,s){if(!e||(!r||!r.length)&&-1===e.search(/\u001b\[(\d+)m/))return{formattedResult:o(i,e),unusedSubstitutions:r};function u(){return'String.format("'+e+'", "'+Array.prototype.join.call(r,'", "')+'")'}function l(e){console.error(u()+": "+e)}let a=i;const c=s||t(e,n),f={},g=r||[];for(const e of c){if("string"===e.type){a=o(a,e.value);continue}if("specifier"!==e.type){l('Unknown token type "'+e.type+'" found.');continue}if(!e.value&&void 0!==e.substitutionIndex&&e.substitutionIndex>=g.length){l("not enough substitution arguments. Had "+g.length+" but needed "+(e.substitutionIndex+1)+", so substitution was skipped."),a=o(a,"%"+(void 0!==e.precision&&e.precision>-1?e.precision:"")+e.specifier);continue}if(e.value||void 0===e.substitutionIndex||(f[e.substitutionIndex]=!0),void 0===e.specifier||!(e.specifier in n)){h="unsupported format character “"+e.specifier+"”. Treating as a string.",console.warn(u()+": "+h);a=o(a,e.value||void 0===e.substitutionIndex?"":String(g[e.substitutionIndex]));continue}a=o(a,(0,n[e.specifier])(e.value||(void 0!==e.substitutionIndex?g[e.substitutionIndex]:void 0),e))}var h;const d=[];for(let e=0;e<g.length;++e)e in f||d.push(g[e]);return{formattedResult:a,unusedSubstitutions:d}},n={d:function(e){return isNaN(e)?0:e},f:function(e,t){e&&"number"==typeof e&&void 0!==t.precision&&t.precision>-1&&(e=e.toFixed(t.precision));const r=void 0!==t.precision&&t.precision>-1?Number(0).toFixed(t.precision):"0";return isNaN(e)?r:e},s:function(e){return e}},i=function(e,t){return r(e,t,n,"",((e,t)=>e+t)).formattedResult},o=function(e,...t){return i(e,t)},s=(e,t)=>{const r=[];let n=e.indexOf(t);for(;-1!==n;)r.push(n),n=e.indexOf(t,n+t.length);return r},u=function(){return"^[]{}()\\.^$*+?|-,"},l=function(e,t){return(e=e.toUpperCase())===(t=t.toUpperCase())?0:e>t?1:-1};var a=Object.freeze({__proto__:null,escapeCharacters:e,tokenizeFormatString:t,format:r,standardFormatters:n,vsprintf:i,sprintf:o,toBase64:e=>{function t(e){return e<26?e+65:e<52?e+71:e<62?e-4:62===e?43:63===e?47:65}const r=(new TextEncoder).encode(e.toString()),n=r.length;let i,o="";if(0===n)return o;let s=0;for(let e=0;e<n;e++)i=e%3,s|=r[e]<<(16>>>i&24),2===i&&(o+=String.fromCharCode(t(s>>>18&63),t(s>>>12&63),t(s>>>6&63),t(63&s)),s=0);return 0===i?o+=String.fromCharCode(t(s>>>18&63),t(s>>>12&63),61,61):1===i&&(o+=String.fromCharCode(t(s>>>18&63),t(s>>>12&63),t(s>>>6&63),61)),o},findIndexesOfSubString:s,findLineEndingIndexes:e=>{const t=s(e,"\n");return t.push(e.length),t},isWhitespace:e=>/^\s*$/.test(e),trimURL:(e,t)=>{let r=e.replace(/^(https|http|file):\/\//i,"");return t&&r.toLowerCase().startsWith(t.toLowerCase())&&(r=r.substr(t.length)),r},collapseWhitespace:e=>e.replace(/[\s\xA0]+/g," "),reverse:e=>e.split("").reverse().join(""),replaceControlCharacters:e=>e.replace(/[\0-\x08\x0B\f\x0E-\x1F\x80-\x9F]/g,"�"),countWtf8Bytes:e=>{let t=0;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(n<=127)t++;else if(n<=2047)t+=2;else if(n<55296||57343<n)t+=3;else{if(n<=56319&&r+1<e.length){const n=e.charCodeAt(r+1);if(56320<=n&&n<=57343){t+=4,r++;continue}}t+=3}}return t},stripLineBreaks:e=>e.replace(/(\r)?\n/g,""),toTitleCase:e=>e.substring(0,1).toUpperCase()+e.substring(1),removeURLFragment:e=>{const t=new URL(e);return t.hash="",t.toString()},regexSpecialCharacters:u,filterRegex:function(e){let t="";for(let r=0;r<e.length;++r){let n=e.charAt(r);-1!=="^[]{}()\\.^$*+?|-,".indexOf(n)&&(n="\\"+n),r&&(t+="[^\\0"+n+"]*"),t+=n}return new RegExp(t,"i")},createSearchRegex:function(e,t,r){const n=t?"g":"gi";let i;if(r)try{i=new RegExp(e,n)}catch(e){}return i||(i=self.createPlainTextSearchRegex(e,n)),i},caseInsensetiveComparator:l,hashCode:function(e){if(!e)return 0;const t=4294967291;let r=0,n=1;for(let i=0;i<e.length;i++){r=(r+n*(1506996573*e.charCodeAt(i)))%t,n=1345575271*n%t}return r=(r+n*(t-1))%t,Math.abs(0|r)},compare:(e,t)=>e>t?1:e<t?-1:0,trimMiddle:(e,t)=>{if(e.length<=t)return String(e);let r=t>>1,n=t-r-1;return e.codePointAt(e.length-n-1)>=65536&&(--n,++r),r>0&&e.codePointAt(r-1)>=65536&&--r,e.substr(0,r)+"…"+e.substr(e.length-n,n)},trimEndWithMaxLength:(e,t)=>e.length<=t?String(e):e.substr(0,t-1)+"…",escapeForRegExp:t=>e(t,"^[]{}()\\.^$*+?|-,"),naturalOrderComparator:(e,t)=>{const r=/^\d+|^\D+/;let n,i,o,s;for(;;){if(!e)return t?-1:0;if(!t)return 1;if(n=e.match(r)[0],i=t.match(r)[0],o=!Number.isNaN(Number(n)),s=!Number.isNaN(Number(i)),o&&!s)return-1;if(s&&!o)return 1;if(o&&s){const e=Number(n)-Number(i);if(e)return e;if(n.length!==i.length)return Number(n)||Number(i)?i.length-n.length:n.length-i.length}else if(n!==i)return n<i?-1:1;e=e.substring(n.length),t=t.substring(i.length)}}});function c(e){"complete"===document.readyState||"interactive"===document.readyState?e():window.addEventListener("DOMContentLoaded",(function t(){window.removeEventListener("DOMContentLoaded",t,!1),e()}),!1)}function f(e,t){throw new Error(t)}String.sprintf=o,String.regexSpecialCharacters=u,String.caseInsensetiveComparator=l,self.createPlainTextSearchRegex=function(e,t){let r="";for(let t=0;t<e.length;++t){const n=e.charAt(t);-1!=="^[]{}()\\.^$*+?|-,".indexOf(n)&&(r+="\\"),r+=n}return new RegExp(r,t||"")},self.base64ToSize=function(e){if(!e)return 0;let t=3*e.length/4;return"="===e[e.length-1]&&t--,e.length>1&&"="===e[e.length-2]&&t--,t};function g(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function h(e,t,r,n,i,o){if(n<=r)return;const s=function(e,t,r,n,i){const o=e[i];g(e,n,i);let s=r;for(let i=r;i<n;++i)t(e[i],o)<0&&(g(e,s,i),++s);return g(e,n,s),s}(e,t,r,n,Math.floor(Math.random()*(n-r))+r);i<s&&h(e,t,r,s-1,i,o),s<o&&h(e,t,s+1,n,i,o)}function d(e,t,r,n){const i=[];let o=0,s=0;for(;o<e.length&&s<t.length;){const u=r(e[o],t[s]);!n&&u||i.push(u<=0?e[o]:t[s]),u<=0&&o++,u>=0&&s++}if(n){for(;o<e.length;)i.push(e[o++]);for(;s<t.length;)i.push(t[s++])}return i}function p(e,t,r,n,i){let o=n||0,s=void 0!==i?i:e.length;for(;o<s;){const n=o+s>>1;r(t,e[n])>0?o=n+1:s=n}return s}var m=Object.freeze({__proto__:null,removeElement:(e,t,r)=>{let n=e.indexOf(t);if(-1===n)return!1;if(r)return e.splice(n,1),!0;for(let r=n+1,i=e.length;r<i;++r)e[r]!==t&&(e[n++]=e[r]);return e.length=n,!0},sortRange:function(e,t,r,n,i,o){return 0===r&&n===e.length-1&&0===i&&o>=n?e.sort(t):h(e,t,r,n,i,o),e},binaryIndexOf:(e,t,r)=>{const n=p(e,t,r);return n<e.length&&0===r(t,e[n])?n:-1},intersectOrdered:(e,t,r)=>d(e,t,r,!1),mergeOrdered:(e,t,r)=>d(e,t,r,!0),DEFAULT_COMPARATOR:(e,t)=>e<t?-1:e>t?1:0,lowerBound:p,upperBound:function(e,t,r,n,i){let o=n||0,s=void 0!==i?i:e.length;for(;o<s;){const n=o+s>>1;r(t,e[n])>=0?o=n+1:s=n}return s}});var b=Object.freeze({__proto__:null,isValid:e=>!isNaN(e.getTime()),toISO8601Compact:e=>{function t(e){return(e>9?"":"0")+e}return e.getFullYear()+t(e.getMonth()+1)+t(e.getDate())+"T"+t(e.getHours())+t(e.getMinutes())+t(e.getSeconds())}});const x=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);var v=Object.freeze({__proto__:null,ARROW_KEYS:x,keyIsArrowKey:function(e){return x.has(e)}});class S{constructor(){this.map=new Map}set(e,t){let r=this.map.get(e);r||(r=new Set,this.map.set(e,r)),r.add(t)}get(e){return this.map.get(e)||new Set}has(e){return this.map.has(e)}hasValue(e,t){const r=this.map.get(e);return!!r&&r.has(t)}get size(){return this.map.size}delete(e,t){const r=this.get(e);if(!r)return!1;const n=r.delete(t);return r.size||this.map.delete(e),n}deleteAll(e){this.map.delete(e)}keysArray(){return[...this.map.keys()]}valuesArray(){const e=[];for(const t of this.map.values())e.push(...t.values());return e}clear(){this.map.clear()}}var _=Object.freeze({__proto__:null,inverse:function(e){const t=new S;for(const[r,n]of e.entries())t.set(n,r);return t},Multimap:S});function w(e,...t){return i(e,Array.prototype.slice.call(arguments,1))}function y(e){return e}const C=new WeakMap;var N=Object.freeze({__proto__:null,LocalizedEmptyString:"",UIString:w,serializeUIString:function(e,t=[]){const r={messageParts:[e],values:t};return JSON.stringify(r)},deserializeUIString:function(e){return e?JSON.parse(e):{}},localize:y,UIStringFormat:class{constructor(e){this.localizedFormat=e,this.tokenizedFormat=t(this.localizedFormat,n)}format(...e){return r(this.localizedFormat,arguments,n,"",((e,t)=>e+t),this.tokenizedFormat).formattedResult}},ls:function(e,...t){if("string"==typeof e)return e;let r=C.get(e);return r||(r=e.join("%s"),C.set(e,r)),w(r,...t)}});var O=Object.freeze({__proto__:null,clamp:(e,t,r)=>{let n=e;return e<t?n=t:e>r&&(n=r),n},mod:(e,t)=>(e%t+t)%t,bytesToString:e=>{if(e<1e3)return w("%.0f B",e);const t=e/1e3;if(t<100)return w("%.1f kB",t);if(t<1e3)return w("%.0f kB",t);const r=t/1e3;return w(r<100?"%.1f MB":"%.0f MB",r)},toFixedIfFloating:e=>{if(!e||Number.isNaN(Number(e)))return e;const t=Number(e);return t%1?t.toFixed(3):String(t)},floor:(e,t=0)=>{const r=Math.pow(10,t);return Math.floor(e*r)/r}});var A=Object.freeze({__proto__:null,addAll:function(e,t){for(const r of t)e.add(r)},isEqual:function(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}});function z(e){if(null===e)throw new Error("Expected given value to not be null but it was: "+e)}var I=Object.freeze({__proto__:null,assertNotNull:z});const{ls:R}=N;export{m as ArrayUtilities,b as DateUtilities,v as KeyboardUtilities,_ as MapUtilities,O as NumberUtilities,A as SetUtilities,a as StringUtilities,I as TypeScriptUtilities,N as UIString,f as assertNever,z as assertNotNull,R as ls,c as runOnWindowLoad};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CPUProfileFlameChart as e,CPUProfileView as r,HeapProfileView as i,HeapProfilerPanel as o,HeapSnapshotDataGrids as a,HeapSnapshotGridNodes as l,HeapSnapshotProxy as P,HeapSnapshotView as f,HeapTimelineOverview as p,IsolateSelector as t,LiveHeapProfileView as n,ProfileDataGrid as s,ProfileHeader as H,ProfileLauncherView as S,ProfileTypeRegistry as d,ProfileView as h,ProfilesPanel as D}from"./profiler.js";self.Profiler=self.Profiler||{},Profiler=Profiler||{},Profiler.CPUProfileFlameChart=e.CPUProfileFlameChart,Profiler.CPUProfileView=r.CPUProfileView,Profiler.CPUProfileHeader=r.CPUProfileHeader,Profiler.HeapProfileView=i.HeapProfileView,Profiler.SamplingHeapProfileType=i.SamplingHeapProfileType,Profiler.SamplingHeapProfileNode=i.SamplingHeapProfileNode,Profiler.HeapProfilerPanel=o.HeapProfilerPanel,Profiler.HeapSnapshotSortableDataGrid=a.HeapSnapshotSortableDataGrid,Profiler.HeapSnapshotSortableDataGridEvents=a.HeapSnapshotSortableDataGridEvents,Profiler.HeapSnapshotContainmentDataGrid=a.HeapSnapshotContainmentDataGrid,Profiler.HeapSnapshotRetainmentDataGrid=a.HeapSnapshotRetainmentDataGrid,Profiler.HeapSnapshotRetainmentDataGridEvents=a.HeapSnapshotRetainmentDataGridEvents,Profiler.HeapSnapshotConstructorsDataGrid=a.HeapSnapshotConstructorsDataGrid,Profiler.HeapSnapshotDiffDataGrid=a.HeapSnapshotDiffDataGrid,Profiler.HeapSnapshotGridNode=l.HeapSnapshotGridNode,Profiler.HeapSnapshotDiffNode=l.HeapSnapshotDiffNode,Profiler.HeapSnapshotProxy=P.HeapSnapshotProxy,Profiler.HeapSnapshotWorkerProxy=P.HeapSnapshotWorkerProxy,Profiler.HeapSnapshotProviderProxy=P.HeapSnapshotProviderProxy,Profiler.HeapSnapshotView=f.HeapSnapshotView,Profiler.HeapSnapshotProfileType=f.HeapSnapshotProfileType,Profiler.HeapProfileHeader=f.HeapProfileHeader,Profiler.HeapTimelineOverview=p.HeapTimelineOverview,Profiler.IsolateSelector=t.IsolateSelector,Profiler.LiveHeapProfileView=n.LiveHeapProfileView,Profiler.LiveHeapProfileView.ActionDelegate=n.ActionDelegate,Profiler.ProfileDataGridNode=s.ProfileDataGridNode,Profiler.ProfileHeader=H.ProfileHeader,Profiler.ProfileHeader.Events=H.Events,Profiler.ProfileLauncherView=S.ProfileLauncherView,Profiler.ProfileType=H.ProfileType,Profiler.ProfileTypeRegistry=d.ProfileTypeRegistry,Profiler.ProfileTypeRegistry.instance=d.instance,Profiler.ProfileView=h.ProfileView,Profiler.ProfilesPanel=D.ProfilesPanel,Profiler.ProfileTypeSidebarSection=D.ProfileTypeSidebarSection,Profiler.JSProfilerPanel=D.JSProfilerPanel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Settings as e}from"../common/common.js";import{i18n as o}from"../i18n/i18n.js";import{Runtime as t}from"../root/root.js";import{ViewManager as i,ActionRegistration as r}from"../ui/ui.js";let a;const n={memory:"Memory",liveHeapProfile:"Live Heap Profile",startRecordingHeapAllocations:"Start recording heap allocations",stopRecordingHeapAllocations:"Stop recording heap allocations",startRecordingHeapAllocationsAndReload:"Start recording heap allocations and reload the page",startStopRecording:"Start/stop recording",showNativeFunctions:"Show native functions in JS Profile",showMemory:"Show Memory",showLiveHeapProfile:"Show Live Heap Profile"},l=o.registerUIStrings("profiler/profiler-meta.ts",n),s=o.getLazilyComputedLocalizedString.bind(void 0,l);async function c(){return a||(await t.Runtime.instance().loadModulePromise("profiler"),a=await import("./profiler.js")),a}function g(e){return void 0===a?[]:e(a)}i.registerViewExtension({location:"panel",id:"heap_profiler",commandPrompt:s(n.showMemory),title:s(n.memory),order:60,loadView:async()=>(await c()).HeapProfilerPanel.HeapProfilerPanel.instance()}),i.registerViewExtension({location:"drawer-view",id:"live_heap_profile",commandPrompt:s(n.showLiveHeapProfile),title:s(n.liveHeapProfile),persistence:"closeable",order:100,loadView:async()=>(await c()).LiveHeapProfileView.LiveHeapProfileView.instance(),experiment:t.ExperimentName.LIVE_HEAP_PROFILE}),r.registerActionExtension({actionId:"live-heap-profile.toggle-recording",iconClass:"largeicon-start-recording",toggleable:!0,toggledIconClass:"largeicon-stop-recording",toggleWithRedColor:!0,loadActionDelegate:async()=>(await c()).LiveHeapProfileView.ActionDelegate.instance(),category:r.ActionCategory.MEMORY,experiment:t.ExperimentName.LIVE_HEAP_PROFILE,options:[{value:!0,title:s(n.startRecordingHeapAllocations)},{value:!1,title:s(n.stopRecordingHeapAllocations)}]}),r.registerActionExtension({actionId:"live-heap-profile.start-with-reload",iconClass:"largeicon-refresh",loadActionDelegate:async()=>(await c()).LiveHeapProfileView.ActionDelegate.instance(),category:r.ActionCategory.MEMORY,experiment:t.ExperimentName.LIVE_HEAP_PROFILE,title:s(n.startRecordingHeapAllocationsAndReload)}),r.registerActionExtension({actionId:"profiler.heap-toggle-recording",category:r.ActionCategory.MEMORY,iconClass:"largeicon-start-recording",title:s(n.startStopRecording),toggleable:!0,toggledIconClass:"largeicon-stop-recording",toggleWithRedColor:!0,contextTypes:()=>g((e=>[e.HeapProfilerPanel.HeapProfilerPanel])),loadActionDelegate:async()=>(await c()).HeapProfilerPanel.HeapProfilerPanel.instance(),bindings:[{platform:"windows,linux",shortcut:"Ctrl+E"},{platform:"mac",shortcut:"Meta+E"}]}),r.registerActionExtension({actionId:"profiler.js-toggle-recording",category:r.ActionCategory.JAVASCRIPT_PROFILER,title:s(n.startStopRecording),iconClass:"largeicon-start-recording",toggleable:!0,toggledIconClass:"largeicon-stop-recording",toggleWithRedColor:!0,contextTypes:()=>g((e=>[e.ProfilesPanel.JSProfilerPanel])),loadActionDelegate:async()=>(await c()).ProfilesPanel.JSProfilerPanel.instance(),bindings:[{platform:"windows,linux",shortcut:"Ctrl+E"},{platform:"mac",shortcut:"Meta+E"}]}),e.registerSettingExtension({category:e.SettingCategoryObject.PERFORMANCE,title:s(n.showNativeFunctions),settingName:"showNativeFunctionsInJSProfile",settingType:e.SettingTypeObject.BOOLEAN,defaultValue:!0});export{n as UIStrings};
|