@react-native/debugger-frontend 0.73.0-nightly-20230922-52104c6ee
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/BUILD_INFO +10 -0
- package/README.md +22 -0
- package/dist/third-party/LICENSE +28 -0
- package/dist/third-party/front_end/Images/3d-center.svg +1 -0
- package/dist/third-party/front_end/Images/3d-pan.svg +1 -0
- package/dist/third-party/front_end/Images/3d-rotate.svg +1 -0
- package/dist/third-party/front_end/Images/Images.js +223 -0
- package/dist/third-party/front_end/Images/accelerometer-back.svg +1 -0
- package/dist/third-party/front_end/Images/accelerometer-bottom.png +0 -0
- package/dist/third-party/front_end/Images/accelerometer-front.svg +1 -0
- package/dist/third-party/front_end/Images/accelerometer-left.png +0 -0
- package/dist/third-party/front_end/Images/accelerometer-right.png +0 -0
- package/dist/third-party/front_end/Images/accelerometer-top.png +0 -0
- package/dist/third-party/front_end/Images/align-content-center.svg +1 -0
- package/dist/third-party/front_end/Images/align-content-end.svg +1 -0
- package/dist/third-party/front_end/Images/align-content-space-around.svg +1 -0
- package/dist/third-party/front_end/Images/align-content-space-between.svg +1 -0
- package/dist/third-party/front_end/Images/align-content-space-evenly.svg +1 -0
- package/dist/third-party/front_end/Images/align-content-start.svg +1 -0
- package/dist/third-party/front_end/Images/align-content-stretch.svg +1 -0
- package/dist/third-party/front_end/Images/align-items-baseline.svg +1 -0
- package/dist/third-party/front_end/Images/align-items-center.svg +1 -0
- package/dist/third-party/front_end/Images/align-items-end.svg +1 -0
- package/dist/third-party/front_end/Images/align-items-start.svg +1 -0
- package/dist/third-party/front_end/Images/align-items-stretch.svg +1 -0
- package/dist/third-party/front_end/Images/align-self-center.svg +1 -0
- package/dist/third-party/front_end/Images/align-self-end.svg +1 -0
- package/dist/third-party/front_end/Images/align-self-start.svg +1 -0
- package/dist/third-party/front_end/Images/align-self-stretch.svg +1 -0
- package/dist/third-party/front_end/Images/arrow-down.svg +1 -0
- package/dist/third-party/front_end/Images/arrow-drop-down-dark.svg +1 -0
- package/dist/third-party/front_end/Images/arrow-drop-down-light.svg +1 -0
- package/dist/third-party/front_end/Images/arrow-up-down-circle.svg +1 -0
- package/dist/third-party/front_end/Images/arrow-up-down.svg +1 -0
- package/dist/third-party/front_end/Images/arrow-up.svg +1 -0
- package/dist/third-party/front_end/Images/bell.svg +1 -0
- package/dist/third-party/front_end/Images/bezier-curve-filled.svg +1 -0
- package/dist/third-party/front_end/Images/bin.svg +1 -0
- package/dist/third-party/front_end/Images/bottom-panel-close.svg +1 -0
- package/dist/third-party/front_end/Images/bottom-panel-open.svg +1 -0
- package/dist/third-party/front_end/Images/brackets.svg +1 -0
- package/dist/third-party/front_end/Images/breakpoint-circle.svg +1 -0
- package/dist/third-party/front_end/Images/breakpoint-crossed-filled.svg +1 -0
- package/dist/third-party/front_end/Images/breakpoint-crossed.svg +1 -0
- package/dist/third-party/front_end/Images/brush-filled.svg +1 -0
- package/dist/third-party/front_end/Images/brush.svg +1 -0
- package/dist/third-party/front_end/Images/bug.svg +1 -0
- package/dist/third-party/front_end/Images/bundle.svg +1 -0
- package/dist/third-party/front_end/Images/check-circle.svg +1 -0
- package/dist/third-party/front_end/Images/check-double.svg +1 -0
- package/dist/third-party/front_end/Images/checker.svg +1 -0
- package/dist/third-party/front_end/Images/checkmark.svg +1 -0
- package/dist/third-party/front_end/Images/chevron-double-right.svg +1 -0
- package/dist/third-party/front_end/Images/chevron-down.svg +1 -0
- package/dist/third-party/front_end/Images/chevron-left-dot.svg +1 -0
- package/dist/third-party/front_end/Images/chevron-left.svg +1 -0
- package/dist/third-party/front_end/Images/chevron-right.svg +1 -0
- package/dist/third-party/front_end/Images/chevron-up.svg +1 -0
- package/dist/third-party/front_end/Images/chromeLeft.avif +0 -0
- package/dist/third-party/front_end/Images/chromeMiddle.avif +0 -0
- package/dist/third-party/front_end/Images/chromeRight.avif +0 -0
- package/dist/third-party/front_end/Images/clear-list.svg +1 -0
- package/dist/third-party/front_end/Images/clear.svg +1 -0
- package/dist/third-party/front_end/Images/cloud.svg +1 -0
- package/dist/third-party/front_end/Images/code-circle.svg +1 -0
- package/dist/third-party/front_end/Images/code.svg +1 -0
- package/dist/third-party/front_end/Images/colon.svg +1 -0
- package/dist/third-party/front_end/Images/color-picker-filled.svg +1 -0
- package/dist/third-party/front_end/Images/color-picker.svg +1 -0
- package/dist/third-party/front_end/Images/console-conditional-breakpoint.svg +1 -0
- package/dist/third-party/front_end/Images/console-logpoint.svg +1 -0
- package/dist/third-party/front_end/Images/cookie.svg +1 -0
- package/dist/third-party/front_end/Images/copy.svg +1 -0
- package/dist/third-party/front_end/Images/credit-card.svg +1 -0
- package/dist/third-party/front_end/Images/cross-circle-filled.svg +1 -0
- package/dist/third-party/front_end/Images/cross-circle.svg +1 -0
- package/dist/third-party/front_end/Images/cross.svg +1 -0
- package/dist/third-party/front_end/Images/cssoverview_icons_2x.avif +0 -0
- package/dist/third-party/front_end/Images/custom-typography.svg +1 -0
- package/dist/third-party/front_end/Images/database.svg +1 -0
- package/dist/third-party/front_end/Images/deployed.svg +1 -0
- package/dist/third-party/front_end/Images/device-fold.svg +1 -0
- package/dist/third-party/front_end/Images/devices.svg +1 -0
- package/dist/third-party/front_end/Images/dock-bottom.svg +1 -0
- package/dist/third-party/front_end/Images/dock-left.svg +1 -0
- package/dist/third-party/front_end/Images/dock-right.svg +1 -0
- package/dist/third-party/front_end/Images/dock-window.svg +1 -0
- package/dist/third-party/front_end/Images/document.svg +1 -0
- package/dist/third-party/front_end/Images/dots-horizontal.svg +1 -0
- package/dist/third-party/front_end/Images/dots-vertical.svg +1 -0
- package/dist/third-party/front_end/Images/download.svg +1 -0
- package/dist/third-party/front_end/Images/edit.svg +1 -0
- package/dist/third-party/front_end/Images/empty.svg +1 -0
- package/dist/third-party/front_end/Images/errorWave.svg +1 -0
- package/dist/third-party/front_end/Images/exclamation.svg +1 -0
- package/dist/third-party/front_end/Images/experiment-check.svg +1 -0
- package/dist/third-party/front_end/Images/experiment.svg +1 -0
- package/dist/third-party/front_end/Images/eye.svg +1 -0
- package/dist/third-party/front_end/Images/file-document.svg +1 -0
- package/dist/third-party/front_end/Images/file-font.svg +1 -0
- package/dist/third-party/front_end/Images/file-generic.svg +1 -0
- package/dist/third-party/front_end/Images/file-image.svg +1 -0
- package/dist/third-party/front_end/Images/file-script.svg +1 -0
- package/dist/third-party/front_end/Images/file-snippet.svg +1 -0
- package/dist/third-party/front_end/Images/file-stylesheet.svg +1 -0
- package/dist/third-party/front_end/Images/filter-clear.svg +1 -0
- package/dist/third-party/front_end/Images/filter-filled.svg +1 -0
- package/dist/third-party/front_end/Images/filter.svg +1 -0
- package/dist/third-party/front_end/Images/flex-direction.svg +1 -0
- package/dist/third-party/front_end/Images/flex-no-wrap.svg +1 -0
- package/dist/third-party/front_end/Images/flex-wrap.svg +1 -0
- package/dist/third-party/front_end/Images/flow.svg +1 -0
- package/dist/third-party/front_end/Images/fold-more.svg +1 -0
- package/dist/third-party/front_end/Images/folder.svg +1 -0
- package/dist/third-party/front_end/Images/frame-crossed.svg +1 -0
- package/dist/third-party/front_end/Images/frame-icon.svg +1 -0
- package/dist/third-party/front_end/Images/frame.svg +1 -0
- package/dist/third-party/front_end/Images/gear-filled.svg +1 -0
- package/dist/third-party/front_end/Images/gear.svg +1 -0
- package/dist/third-party/front_end/Images/gears.svg +1 -0
- package/dist/third-party/front_end/Images/heap-snapshot.svg +1 -0
- package/dist/third-party/front_end/Images/heap-snapshots.svg +1 -0
- package/dist/third-party/front_end/Images/help.svg +1 -0
- package/dist/third-party/front_end/Images/iframe-crossed.svg +1 -0
- package/dist/third-party/front_end/Images/iframe.svg +1 -0
- package/dist/third-party/front_end/Images/import.svg +1 -0
- package/dist/third-party/front_end/Images/info-filled.svg +1 -0
- package/dist/third-party/front_end/Images/info.svg +1 -0
- package/dist/third-party/front_end/Images/issue-cross-filled.svg +1 -0
- package/dist/third-party/front_end/Images/issue-exclamation-filled.svg +1 -0
- package/dist/third-party/front_end/Images/issue-questionmark-filled.svg +1 -0
- package/dist/third-party/front_end/Images/issue-text-filled.svg +1 -0
- package/dist/third-party/front_end/Images/justify-content-center.svg +1 -0
- package/dist/third-party/front_end/Images/justify-content-end.svg +1 -0
- package/dist/third-party/front_end/Images/justify-content-space-around.svg +1 -0
- package/dist/third-party/front_end/Images/justify-content-space-between.svg +1 -0
- package/dist/third-party/front_end/Images/justify-content-space-evenly.svg +1 -0
- package/dist/third-party/front_end/Images/justify-content-start.svg +1 -0
- package/dist/third-party/front_end/Images/justify-items-center.svg +1 -0
- package/dist/third-party/front_end/Images/justify-items-end.svg +1 -0
- package/dist/third-party/front_end/Images/justify-items-start.svg +1 -0
- package/dist/third-party/front_end/Images/justify-items-stretch.svg +1 -0
- package/dist/third-party/front_end/Images/keyboard-pen.svg +1 -0
- package/dist/third-party/front_end/Images/large-arrow-right-filled.svg +1 -0
- package/dist/third-party/front_end/Images/largeIcons.svg +2 -0
- package/dist/third-party/front_end/Images/layers-filled.svg +1 -0
- package/dist/third-party/front_end/Images/layers.svg +1 -0
- package/dist/third-party/front_end/Images/left-panel-close.svg +1 -0
- package/dist/third-party/front_end/Images/left-panel-open.svg +1 -0
- package/dist/third-party/front_end/Images/lighthouse_logo.svg +1 -0
- package/dist/third-party/front_end/Images/list.svg +1 -0
- package/dist/third-party/front_end/Images/mediumIcons.svg +1 -0
- package/dist/third-party/front_end/Images/memory.svg +1 -0
- package/dist/third-party/front_end/Images/minus.svg +1 -0
- package/dist/third-party/front_end/Images/minus_icon.svg +1 -0
- package/dist/third-party/front_end/Images/navigationControls.png +0 -0
- package/dist/third-party/front_end/Images/navigationControls_2x.png +0 -0
- package/dist/third-party/front_end/Images/network-settings.svg +1 -0
- package/dist/third-party/front_end/Images/nodeIcon.avif +0 -0
- package/dist/third-party/front_end/Images/node_search_icon.svg +1 -0
- package/dist/third-party/front_end/Images/open-externally.svg +1 -0
- package/dist/third-party/front_end/Images/pause.svg +1 -0
- package/dist/third-party/front_end/Images/performance.svg +1 -0
- package/dist/third-party/front_end/Images/person.svg +1 -0
- package/dist/third-party/front_end/Images/play.svg +1 -0
- package/dist/third-party/front_end/Images/plus.svg +1 -0
- package/dist/third-party/front_end/Images/popoverArrows.png +0 -0
- package/dist/third-party/front_end/Images/popup.svg +1 -0
- package/dist/third-party/front_end/Images/preview_feature_video_thumbnail.svg +1 -0
- package/dist/third-party/front_end/Images/profile.svg +1 -0
- package/dist/third-party/front_end/Images/react_native/welcomeIcon.png +0 -0
- package/dist/third-party/front_end/Images/record-start.svg +1 -0
- package/dist/third-party/front_end/Images/record-stop.svg +1 -0
- package/dist/third-party/front_end/Images/redo.svg +1 -0
- package/dist/third-party/front_end/Images/refresh.svg +1 -0
- package/dist/third-party/front_end/Images/replace.svg +1 -0
- package/dist/third-party/front_end/Images/replay.svg +1 -0
- package/dist/third-party/front_end/Images/resizeDiagonal.svg +1 -0
- package/dist/third-party/front_end/Images/resizeHorizontal.svg +1 -0
- package/dist/third-party/front_end/Images/resizeVertical.svg +1 -0
- package/dist/third-party/front_end/Images/resume.svg +1 -0
- package/dist/third-party/front_end/Images/review.svg +1 -0
- package/dist/third-party/front_end/Images/right-panel-close.svg +1 -0
- package/dist/third-party/front_end/Images/right-panel-open.svg +1 -0
- package/dist/third-party/front_end/Images/screen-rotation.svg +1 -0
- package/dist/third-party/front_end/Images/search.svg +1 -0
- package/dist/third-party/front_end/Images/securityIcons.svg +1 -0
- package/dist/third-party/front_end/Images/select-element.svg +1 -0
- package/dist/third-party/front_end/Images/settings_14x14_icon.svg +1 -0
- package/dist/third-party/front_end/Images/shadow.svg +1 -0
- package/dist/third-party/front_end/Images/smallIcons.svg +1 -0
- package/dist/third-party/front_end/Images/snippet.svg +1 -0
- package/dist/third-party/front_end/Images/star.svg +1 -0
- package/dist/third-party/front_end/Images/step-into.svg +1 -0
- package/dist/third-party/front_end/Images/step-out.svg +1 -0
- package/dist/third-party/front_end/Images/step-over.svg +1 -0
- package/dist/third-party/front_end/Images/step.svg +1 -0
- package/dist/third-party/front_end/Images/stop.svg +1 -0
- package/dist/third-party/front_end/Images/symbol.svg +1 -0
- package/dist/third-party/front_end/Images/sync.svg +1 -0
- package/dist/third-party/front_end/Images/table.svg +1 -0
- package/dist/third-party/front_end/Images/toolbarResizerVertical.png +0 -0
- package/dist/third-party/front_end/Images/top-panel-close.svg +1 -0
- package/dist/third-party/front_end/Images/top-panel-open.svg +1 -0
- package/dist/third-party/front_end/Images/touchCursor.png +0 -0
- package/dist/third-party/front_end/Images/touchCursor_2x.png +0 -0
- package/dist/third-party/front_end/Images/triangle-bottom-right.svg +1 -0
- package/dist/third-party/front_end/Images/triangle-down.svg +1 -0
- package/dist/third-party/front_end/Images/triangle-left.svg +1 -0
- package/dist/third-party/front_end/Images/triangle-right.svg +1 -0
- package/dist/third-party/front_end/Images/triangle-up.svg +1 -0
- package/dist/third-party/front_end/Images/undo.svg +1 -0
- package/dist/third-party/front_end/Images/warning-filled.svg +1 -0
- package/dist/third-party/front_end/Images/warning.svg +1 -0
- package/dist/third-party/front_end/Images/warning_icon.svg +1 -0
- package/dist/third-party/front_end/Images/watch.svg +1 -0
- package/dist/third-party/front_end/Images/whatsnew.avif +0 -0
- package/dist/third-party/front_end/Images/width.svg +1 -0
- package/dist/third-party/front_end/Tests.js +1662 -0
- package/dist/third-party/front_end/core/common/common-legacy.js +1 -0
- package/dist/third-party/front_end/core/common/common.js +1 -0
- package/dist/third-party/front_end/core/dom_extension/dom_extension.js +1 -0
- package/dist/third-party/front_end/core/host/host-legacy.js +1 -0
- package/dist/third-party/front_end/core/host/host.js +1 -0
- package/dist/third-party/front_end/core/i18n/i18n.js +1 -0
- package/dist/third-party/front_end/core/i18n/locales/en-US.json +1 -0
- package/dist/third-party/front_end/core/i18n/locales/zh.json +1 -0
- package/dist/third-party/front_end/core/platform/platform.js +1 -0
- package/dist/third-party/front_end/core/protocol_client/protocol_client-legacy.js +1 -0
- package/dist/third-party/front_end/core/protocol_client/protocol_client.js +1 -0
- package/dist/third-party/front_end/core/root/root-legacy.js +1 -0
- package/dist/third-party/front_end/core/root/root.js +1 -0
- package/dist/third-party/front_end/core/sdk/sdk-legacy.js +1 -0
- package/dist/third-party/front_end/core/sdk/sdk-meta.js +1 -0
- package/dist/third-party/front_end/core/sdk/sdk.js +1 -0
- package/dist/third-party/front_end/device_mode_emulation_frame.html +20 -0
- package/dist/third-party/front_end/devtools_app.html +20 -0
- package/dist/third-party/front_end/devtools_compatibility.js +1595 -0
- package/dist/third-party/front_end/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nest-hub-horizontal.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nest-hub-max-horizontal.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/iPad-landscape.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/iPad-portrait.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
- package/dist/third-party/front_end/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
- package/dist/third-party/front_end/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.js +1 -0
- package/dist/third-party/front_end/entrypoints/devtools_app/devtools_app.js +1 -0
- package/dist/third-party/front_end/entrypoints/formatter_worker/FormatterActions.js +1 -0
- package/dist/third-party/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.js +1 -0
- package/dist/third-party/front_end/entrypoints/formatter_worker/formatter_worker.js +1 -0
- package/dist/third-party/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +1 -0
- package/dist/third-party/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker-legacy.js +1 -0
- package/dist/third-party/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js +1 -0
- package/dist/third-party/front_end/entrypoints/inspector/inspector.js +1 -0
- package/dist/third-party/front_end/entrypoints/inspector_main/inspector_main-meta.js +1 -0
- package/dist/third-party/front_end/entrypoints/inspector_main/inspector_main.js +1 -0
- package/dist/third-party/front_end/entrypoints/js_app/js_app.js +1 -0
- package/dist/third-party/front_end/entrypoints/lighthouse_worker/lighthouse_worker.js +1 -0
- package/dist/third-party/front_end/entrypoints/main/main-legacy.js +1 -0
- package/dist/third-party/front_end/entrypoints/main/main-meta.js +1 -0
- package/dist/third-party/front_end/entrypoints/main/main.js +1 -0
- package/dist/third-party/front_end/entrypoints/ndb_app/ndb_app.js +1 -0
- package/dist/third-party/front_end/entrypoints/node_app/node_app.js +1 -0
- package/dist/third-party/front_end/entrypoints/rn_inspector/rn_inspector.js +1 -0
- package/dist/third-party/front_end/entrypoints/shell/shell.js +1 -0
- package/dist/third-party/front_end/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js +1 -0
- package/dist/third-party/front_end/entrypoints/wasmparser_worker/wasmparser_worker.js +1 -0
- package/dist/third-party/front_end/entrypoints/worker_app/worker_app.js +1 -0
- package/dist/third-party/front_end/inspector.html +20 -0
- package/dist/third-party/front_end/integration_test_runner.html +40 -0
- package/dist/third-party/front_end/js_app.html +20 -0
- package/dist/third-party/front_end/legacy_test_runner/legacy_test_runner.js +36 -0
- package/dist/third-party/front_end/legacy_test_runner/test_runner/test_runner.js +1 -0
- package/dist/third-party/front_end/models/bindings/bindings-legacy.js +1 -0
- package/dist/third-party/front_end/models/bindings/bindings.js +1 -0
- package/dist/third-party/front_end/models/breakpoints/breakpoints-legacy.js +1 -0
- package/dist/third-party/front_end/models/breakpoints/breakpoints.js +1 -0
- package/dist/third-party/front_end/models/emulation/emulation.js +1 -0
- package/dist/third-party/front_end/models/extensions/extensions-legacy.js +1 -0
- package/dist/third-party/front_end/models/extensions/extensions.js +1 -0
- package/dist/third-party/front_end/models/formatter/formatter-legacy.js +1 -0
- package/dist/third-party/front_end/models/formatter/formatter.js +1 -0
- package/dist/third-party/front_end/models/har/har.js +1 -0
- package/dist/third-party/front_end/models/heap_snapshot_model/heap_snapshot_model-legacy.js +1 -0
- package/dist/third-party/front_end/models/heap_snapshot_model/heap_snapshot_model.js +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/CoepCorpNotSameOrigin.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/CoepCorpNotSameSite.md +7 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/CompatibilityModeQuirks.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/LowTextContrast.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteInvalidSameParty.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteUnspecifiedTreatedAsLaxRead.md +9 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteUnspecifiedTreatedAsLaxSet.md +9 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arInsecureContext.md +7 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arOsSourceIgnored.md +18 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arOsTriggerIgnored.md +19 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arSourceAndTriggerHeaders.md +9 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arSourceIgnored.md +13 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arTriggerIgnored.md +12 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +10 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/arWebAndOsHeaders.md +11 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/bounceTrackingMitigations.md +3 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/clientHintMetaTagModifiedHTML.md +4 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/cookieExcludeBlockedWithinFirstPartySet.md +4 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/cookieExcludeDomainNonAscii.md +11 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/cookieWarnDomainNonAscii.md +11 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsAllowCredentialsRequired.md +6 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsDisabledScheme.md +7 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsDisallowedByMode.md +7 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsInsecurePrivateNetwork.md +10 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsInvalidHeaderValues.md +7 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsOriginMismatch.md +6 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsPreflightAllowPrivateNetworkError.md +10 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsPreflightResponseInvalid.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsRedirectContainsCredentials.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/corsWildcardOriginNotAllowed.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/cspEvalViolation.md +9 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/cspInlineViolation.md +10 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/cspTrustedTypesPolicyViolation.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/cspTrustedTypesSinkViolation.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/cspURLViolation.md +10 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/deprecation.md +3 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestCanceled.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataHttpNotFound.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataInvalidResponse.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataNoResponse.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestErrorIdToken.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestTooManyRequests.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/genericCrossOriginPortalPostMessageError.md +3 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormAriaLabelledByToNonExistingId.md +8 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormDuplicateIdForInputError.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormInputWithNoLabelError.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormLabelForNameError.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormLabelHasNeitherForNorNestedInput.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/heavyAd.md +10 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/mixedContent.md +5 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/sharedArrayBuffer.md +7 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/stylesheetLateImport.md +4 -0
- package/dist/third-party/front_end/models/issues_manager/descriptions/stylesheetRequestFailed.md +3 -0
- package/dist/third-party/front_end/models/issues_manager/issues_manager.js +1 -0
- package/dist/third-party/front_end/models/javascript_metadata/javascript_metadata.js +1 -0
- package/dist/third-party/front_end/models/logs/logs-meta.js +1 -0
- package/dist/third-party/front_end/models/logs/logs.js +1 -0
- package/dist/third-party/front_end/models/persistence/persistence-legacy.js +1 -0
- package/dist/third-party/front_end/models/persistence/persistence-meta.js +1 -0
- package/dist/third-party/front_end/models/persistence/persistence.js +1 -0
- package/dist/third-party/front_end/models/source_map_scopes/source_map_scopes.js +1 -0
- package/dist/third-party/front_end/models/text_utils/text_utils-legacy.js +1 -0
- package/dist/third-party/front_end/models/text_utils/text_utils.js +1 -0
- package/dist/third-party/front_end/models/timeline_model/timeline_model-legacy.js +1 -0
- package/dist/third-party/front_end/models/timeline_model/timeline_model.js +1 -0
- package/dist/third-party/front_end/models/trace/extras/extras.js +1 -0
- package/dist/third-party/front_end/models/trace/handlers/handlers.js +1 -0
- package/dist/third-party/front_end/models/trace/helpers/helpers.js +1 -0
- package/dist/third-party/front_end/models/trace/trace.js +1 -0
- package/dist/third-party/front_end/models/trace/types/types.js +1 -0
- package/dist/third-party/front_end/models/workspace/workspace-legacy.js +1 -0
- package/dist/third-party/front_end/models/workspace/workspace.js +1 -0
- package/dist/third-party/front_end/models/workspace_diff/workspace_diff-legacy.js +1 -0
- package/dist/third-party/front_end/models/workspace_diff/workspace_diff.js +1 -0
- package/dist/third-party/front_end/ndb_app.html +20 -0
- package/dist/third-party/front_end/node_app.html +20 -0
- package/dist/third-party/front_end/panels/accessibility/accessibility-legacy.js +1 -0
- package/dist/third-party/front_end/panels/accessibility/accessibility-meta.js +1 -0
- package/dist/third-party/front_end/panels/accessibility/accessibility.js +1 -0
- package/dist/third-party/front_end/panels/animation/animation-legacy.js +1 -0
- package/dist/third-party/front_end/panels/animation/animation-meta.js +1 -0
- package/dist/third-party/front_end/panels/animation/animation.js +1 -0
- package/dist/third-party/front_end/panels/application/application-legacy.js +1 -0
- package/dist/third-party/front_end/panels/application/application-meta.js +1 -0
- package/dist/third-party/front_end/panels/application/application.js +1 -0
- package/dist/third-party/front_end/panels/application/components/components.js +1 -0
- package/dist/third-party/front_end/panels/application/preloading/components/components.js +1 -0
- package/dist/third-party/front_end/panels/browser_debugger/browser_debugger-legacy.js +1 -0
- package/dist/third-party/front_end/panels/browser_debugger/browser_debugger-meta.js +1 -0
- package/dist/third-party/front_end/panels/browser_debugger/browser_debugger.js +1 -0
- package/dist/third-party/front_end/panels/changes/changes-legacy.js +1 -0
- package/dist/third-party/front_end/panels/changes/changes-meta.js +1 -0
- package/dist/third-party/front_end/panels/changes/changes.js +1 -0
- package/dist/third-party/front_end/panels/console/console-legacy.js +1 -0
- package/dist/third-party/front_end/panels/console/console-meta.js +1 -0
- package/dist/third-party/front_end/panels/console/console.js +6 -0
- package/dist/third-party/front_end/panels/console_counters/console_counters-meta.js +1 -0
- package/dist/third-party/front_end/panels/console_counters/console_counters.js +1 -0
- package/dist/third-party/front_end/panels/coverage/coverage-legacy.js +1 -0
- package/dist/third-party/front_end/panels/coverage/coverage-meta.js +1 -0
- package/dist/third-party/front_end/panels/coverage/coverage.js +1 -0
- package/dist/third-party/front_end/panels/css_overview/components/components.js +1 -0
- package/dist/third-party/front_end/panels/css_overview/css_overview-meta.js +1 -0
- package/dist/third-party/front_end/panels/css_overview/css_overview.js +144 -0
- package/dist/third-party/front_end/panels/developer_resources/developer_resources-meta.js +1 -0
- package/dist/third-party/front_end/panels/developer_resources/developer_resources.js +1 -0
- package/dist/third-party/front_end/panels/elements/components/components.js +1 -0
- package/dist/third-party/front_end/panels/elements/elements-legacy.js +1 -0
- package/dist/third-party/front_end/panels/elements/elements-meta.js +1 -0
- package/dist/third-party/front_end/panels/elements/elements.js +1 -0
- package/dist/third-party/front_end/panels/emulation/components/components.js +22 -0
- package/dist/third-party/front_end/panels/emulation/emulation-legacy.js +1 -0
- package/dist/third-party/front_end/panels/emulation/emulation-meta.js +1 -0
- package/dist/third-party/front_end/panels/emulation/emulation.js +1 -0
- package/dist/third-party/front_end/panels/event_listeners/event_listeners.js +1 -0
- package/dist/third-party/front_end/panels/issues/components/components.js +1 -0
- package/dist/third-party/front_end/panels/issues/issues-meta.js +1 -0
- package/dist/third-party/front_end/panels/issues/issues.js +1 -0
- package/dist/third-party/front_end/panels/js_profiler/js_profiler-meta.js +1 -0
- package/dist/third-party/front_end/panels/js_profiler/js_profiler.js +1 -0
- package/dist/third-party/front_end/panels/layer_viewer/layer_viewer-legacy.js +1 -0
- package/dist/third-party/front_end/panels/layer_viewer/layer_viewer-meta.js +1 -0
- package/dist/third-party/front_end/panels/layer_viewer/layer_viewer.js +1 -0
- package/dist/third-party/front_end/panels/layers/layers-meta.js +1 -0
- package/dist/third-party/front_end/panels/layers/layers.js +1 -0
- package/dist/third-party/front_end/panels/lighthouse/lighthouse-legacy.js +1 -0
- package/dist/third-party/front_end/panels/lighthouse/lighthouse-meta.js +1 -0
- package/dist/third-party/front_end/panels/lighthouse/lighthouse.js +66 -0
- package/dist/third-party/front_end/panels/media/media-meta.js +1 -0
- package/dist/third-party/front_end/panels/media/media.js +25 -0
- package/dist/third-party/front_end/panels/mobile_throttling/mobile_throttling-legacy.js +1 -0
- package/dist/third-party/front_end/panels/mobile_throttling/mobile_throttling-meta.js +1 -0
- package/dist/third-party/front_end/panels/mobile_throttling/mobile_throttling.js +1 -0
- package/dist/third-party/front_end/panels/network/components/components.js +1 -0
- package/dist/third-party/front_end/panels/network/forward/forward.js +1 -0
- package/dist/third-party/front_end/panels/network/network-legacy.js +1 -0
- package/dist/third-party/front_end/panels/network/network-meta.js +1 -0
- package/dist/third-party/front_end/panels/network/network.js +1 -0
- package/dist/third-party/front_end/panels/performance_monitor/performance_monitor-meta.js +1 -0
- package/dist/third-party/front_end/panels/performance_monitor/performance_monitor.js +1 -0
- package/dist/third-party/front_end/panels/profiler/profiler-legacy.js +1 -0
- package/dist/third-party/front_end/panels/profiler/profiler-meta.js +1 -0
- package/dist/third-party/front_end/panels/profiler/profiler.js +7 -0
- package/dist/third-party/front_end/panels/protocol_monitor/components/components.js +1 -0
- package/dist/third-party/front_end/panels/protocol_monitor/protocol_monitor-meta.js +1 -0
- package/dist/third-party/front_end/panels/protocol_monitor/protocol_monitor.js +1 -0
- package/dist/third-party/front_end/panels/recorder/components/components.js +1 -0
- package/dist/third-party/front_end/panels/recorder/controllers/controllers.js +1 -0
- package/dist/third-party/front_end/panels/recorder/converters/converters.js +1 -0
- package/dist/third-party/front_end/panels/recorder/extensions/extensions.js +1 -0
- package/dist/third-party/front_end/panels/recorder/injected/injected.generated.js +1 -0
- package/dist/third-party/front_end/panels/recorder/injected/injected.js +1 -0
- package/dist/third-party/front_end/panels/recorder/models/models.js +1 -0
- package/dist/third-party/front_end/panels/recorder/recorder-actions.js +1 -0
- package/dist/third-party/front_end/panels/recorder/recorder-meta.js +1 -0
- package/dist/third-party/front_end/panels/recorder/recorder.js +1 -0
- package/dist/third-party/front_end/panels/recorder/util/util.js +1 -0
- package/dist/third-party/front_end/panels/rn_welcome/rn_welcome-meta.js +1 -0
- package/dist/third-party/front_end/panels/rn_welcome/rn_welcome.js +1 -0
- package/dist/third-party/front_end/panels/screencast/screencast-meta.js +1 -0
- package/dist/third-party/front_end/panels/screencast/screencast.js +1 -0
- package/dist/third-party/front_end/panels/search/search-legacy.js +1 -0
- package/dist/third-party/front_end/panels/search/search.js +1 -0
- package/dist/third-party/front_end/panels/security/security-legacy.js +1 -0
- package/dist/third-party/front_end/panels/security/security-meta.js +1 -0
- package/dist/third-party/front_end/panels/security/security.js +1 -0
- package/dist/third-party/front_end/panels/sensors/sensors-meta.js +1 -0
- package/dist/third-party/front_end/panels/sensors/sensors.js +1 -0
- package/dist/third-party/front_end/panels/settings/components/components.js +1 -0
- package/dist/third-party/front_end/panels/settings/emulation/components/components.js +1 -0
- package/dist/third-party/front_end/panels/settings/emulation/emulation-meta.js +1 -0
- package/dist/third-party/front_end/panels/settings/emulation/emulation.js +1 -0
- package/dist/third-party/front_end/panels/settings/emulation/utils/utils.js +1 -0
- package/dist/third-party/front_end/panels/settings/settings-legacy.js +1 -0
- package/dist/third-party/front_end/panels/settings/settings-meta.js +1 -0
- package/dist/third-party/front_end/panels/settings/settings.js +1 -0
- package/dist/third-party/front_end/panels/snippets/snippets-legacy.js +1 -0
- package/dist/third-party/front_end/panels/snippets/snippets.js +1 -0
- package/dist/third-party/front_end/panels/sources/components/components.js +1 -0
- package/dist/third-party/front_end/panels/sources/sources-legacy.js +1 -0
- package/dist/third-party/front_end/panels/sources/sources-meta.js +1 -0
- package/dist/third-party/front_end/panels/sources/sources.js +1 -0
- package/dist/third-party/front_end/panels/timeline/timeline-legacy.js +1 -0
- package/dist/third-party/front_end/panels/timeline/timeline-meta.js +1 -0
- package/dist/third-party/front_end/panels/timeline/timeline.js +1 -0
- package/dist/third-party/front_end/panels/utils/utils.js +1 -0
- package/dist/third-party/front_end/panels/web_audio/graph_visualizer/graph_visualizer.js +1 -0
- package/dist/third-party/front_end/panels/web_audio/web_audio-legacy.js +1 -0
- package/dist/third-party/front_end/panels/web_audio/web_audio-meta.js +1 -0
- package/dist/third-party/front_end/panels/web_audio/web_audio.js +1 -0
- package/dist/third-party/front_end/panels/webauthn/webauthn-meta.js +1 -0
- package/dist/third-party/front_end/panels/webauthn/webauthn.js +1 -0
- package/dist/third-party/front_end/rn_inspector.html +20 -0
- package/dist/third-party/front_end/services/puppeteer/puppeteer.js +1 -0
- package/dist/third-party/front_end/services/tracing/tracing.js +1 -0
- package/dist/third-party/front_end/services/window_bounds/window_bounds.js +1 -0
- package/dist/third-party/front_end/third_party/acorn/acorn.js +1 -0
- package/dist/third-party/front_end/third_party/chromium/client-variations/client-variations.js +1 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/angular.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/codemirror.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/cpp.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/java.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/json.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/legacy.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/less.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/markdown.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/php.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/python.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/sass.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/svelte.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/vue.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/wast.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/chunk/xml.js +2 -0
- package/dist/third-party/front_end/third_party/codemirror.next/codemirror.next.js +2 -0
- package/dist/third-party/front_end/third_party/diff/diff-legacy.js +1 -0
- package/dist/third-party/front_end/third_party/diff/diff.js +1 -0
- package/dist/third-party/front_end/third_party/i18n/i18n.js +1 -0
- package/dist/third-party/front_end/third_party/intl-messageformat/intl-messageformat.js +15 -0
- package/dist/third-party/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1297 -0
- package/dist/third-party/front_end/third_party/lighthouse/report/report.js +222 -0
- package/dist/third-party/front_end/third_party/lit/lit.js +98 -0
- package/dist/third-party/front_end/third_party/marked/marked.js +1 -0
- package/dist/third-party/front_end/third_party/puppeteer/puppeteer.js +1 -0
- package/dist/third-party/front_end/third_party/puppeteer-replay/puppeteer-replay.js +1 -0
- package/dist/third-party/front_end/third_party/wasmparser/wasmparser.js +1 -0
- package/dist/third-party/front_end/ui/components/adorners/adorners.js +1 -0
- package/dist/third-party/front_end/ui/components/buttons/buttons.js +1 -0
- package/dist/third-party/front_end/ui/components/chrome_link/chrome_link.js +1 -0
- package/dist/third-party/front_end/ui/components/code_highlighter/code_highlighter.js +1 -0
- package/dist/third-party/front_end/ui/components/data_grid/data_grid.js +1 -0
- package/dist/third-party/front_end/ui/components/dialogs/dialogs.js +1 -0
- package/dist/third-party/front_end/ui/components/diff_view/diff_view.js +1 -0
- package/dist/third-party/front_end/ui/components/expandable_list/expandable_list.js +1 -0
- package/dist/third-party/front_end/ui/components/helpers/helpers.js +1 -0
- package/dist/third-party/front_end/ui/components/icon_button/icon_button.js +1 -0
- package/dist/third-party/front_end/ui/components/input/input.js +1 -0
- package/dist/third-party/front_end/ui/components/issue_counter/issue_counter.js +1 -0
- package/dist/third-party/front_end/ui/components/legacy_wrapper/legacy_wrapper.js +1 -0
- package/dist/third-party/front_end/ui/components/linear_memory_inspector/linear_memory_inspector-meta.js +1 -0
- package/dist/third-party/front_end/ui/components/linear_memory_inspector/linear_memory_inspector.js +1 -0
- package/dist/third-party/front_end/ui/components/linkifier/linkifier.js +1 -0
- package/dist/third-party/front_end/ui/components/markdown_view/markdown_view.js +1 -0
- package/dist/third-party/front_end/ui/components/menus/menus.js +1 -0
- package/dist/third-party/front_end/ui/components/node_text/node_text.js +1 -0
- package/dist/third-party/front_end/ui/components/panel_feedback/panel_feedback.js +1 -0
- package/dist/third-party/front_end/ui/components/panel_introduction_steps/panel_introduction_steps.js +1 -0
- package/dist/third-party/front_end/ui/components/render_coordinator/render_coordinator.js +1 -0
- package/dist/third-party/front_end/ui/components/report_view/report_view.js +1 -0
- package/dist/third-party/front_end/ui/components/request_link_icon/request_link_icon.js +1 -0
- package/dist/third-party/front_end/ui/components/settings/settings.js +1 -0
- package/dist/third-party/front_end/ui/components/srgb_overlay/srgb_overlay.js +1 -0
- package/dist/third-party/front_end/ui/components/survey_link/survey_link.js +1 -0
- package/dist/third-party/front_end/ui/components/text_editor/text_editor.js +1 -0
- package/dist/third-party/front_end/ui/components/text_prompt/text_prompt.js +1 -0
- package/dist/third-party/front_end/ui/components/tree_outline/tree_outline.js +1 -0
- package/dist/third-party/front_end/ui/components/two_states_counter/two_states_counter.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/color_picker/color_picker-legacy.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/color_picker/color_picker.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/cookie_table/cookie_table-legacy.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/cookie_table/cookie_table.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/data_grid/data_grid-legacy.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/data_grid/data_grid.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/inline_editor/inline_editor-legacy.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/inline_editor/inline_editor.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/object_ui/object_ui-legacy.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/object_ui/object_ui-meta.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/object_ui/object_ui.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/perf_ui/perf_ui-legacy.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/perf_ui/perf_ui-meta.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/perf_ui/perf_ui.js +12 -0
- package/dist/third-party/front_end/ui/legacy/components/quick_open/quick_open-legacy.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/quick_open/quick_open-meta.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/quick_open/quick_open.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/source_frame/source_frame-legacy.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/source_frame/source_frame-meta.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/source_frame/source_frame.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/utils/utils-legacy.js +1 -0
- package/dist/third-party/front_end/ui/legacy/components/utils/utils.js +1 -0
- package/dist/third-party/front_end/ui/legacy/legacy-legacy.js +1 -0
- package/dist/third-party/front_end/ui/legacy/legacy.js +1 -0
- package/dist/third-party/front_end/ui/legacy/theme_support/theme_support.js +1 -0
- package/dist/third-party/front_end/ui/legacy/utils/utils.js +1 -0
- package/dist/third-party/front_end/ui/lit-html/lit-html.js +1 -0
- package/dist/third-party/front_end/worker_app.html +20 -0
- package/index.js +15 -0
- package/package.json +25 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as t from"../../core/common/common.js";import*as e from"../../core/host/host.js";import*as i from"../../core/i18n/i18n.js";import*as n from"../../core/root/root.js";import*as s from"../../ui/components/icon_button/icon_button.js";import*as o from"../../ui/legacy/components/utils/utils.js";import*as r from"../../ui/legacy/legacy.js";import*as a from"./components/components.js";import{highlightElement as c}from"../utils/utils.js";import*as l from"../../core/platform/platform.js";const d=new CSSStyleSheet;d.replaceSync('.settings-window-main{color:var(--color-text-primary);background-color:var(--color-background);padding:11px 0 0}.settings-content{overflow-y:auto;overflow-x:hidden;margin:8px 8px 8px 0;padding:0 4px;flex:auto}.settings-container{width:100%;column-width:288px}.settings-block{display:block;padding-bottom:9px;width:288px;break-inside:avoid}.settings-tab.settings-container{column-width:308px}.settings-tab .settings-block{margin-left:20px}.settings-line{padding-bottom:5px;margin-bottom:5px}.settings-key-cell{display:inline-block;width:153px;white-space:nowrap;text-align:right;vertical-align:middle;padding-right:6px}.settings-cell{display:inline-block;width:135px;vertical-align:middle}.settings-section-title{font-size:120%;text-align:left}.settings-combine-keys{margin:0 0.3em;font-size:9px}fieldset{margin:0;padding:0;border:none}.experiments-filter{padding-top:1px;display:flex;align-items:center}label{padding-right:8px;padding-bottom:8px}.settings-tab p{margin:12px 0}.settings-block p p{padding-left:30px}.settings-select{align-items:center;display:grid}.settings-experiments-warning-subsection-warning{color:var(--color-accent-red)}.settings-experiments-warning-subsection-message{color:inherit}.settings-content input[type="checkbox"]{margin:1px 7px 1px 2px}.settings-window-title{font-size:18px;color:var(--color-text-primary);padding:0 0 5px 13px}.settings-container-wrapper{position:absolute;top:31px;left:0;right:0;bottom:0;overflow:auto;padding-top:9px;border-top:1px solid var(--color-details-hairline)}.settings-tab.settings-content{margin:0;padding:0}.settings-tab-container{flex:auto;overflow:hidden}.settings-tab-container header{padding:0 0 6px}#experiments-tab-content .settings-container{column-width:auto}#experiments-tab-content .settings-block{width:auto;margin-left:0;margin-right:10px}.settings-tab-container header > h1{font-size:18px;font-weight:normal;margin:0;padding-bottom:3px;white-space:nowrap}.settings-tab .settings-section-title{margin-left:-20px;color:var(--color-text-secondary)}.settings-tab .settings-block label:hover{color:var(--color-text-secondary)}.settings-tab .settings-block fieldset:disabled label:hover{color:inherit}.settings-tab select{margin-left:10px;width:80%}.settings-experiment{display:grid;grid-template-columns:auto min-content 1fr}.settings-experiment .devtools-link{display:flex!important;align-items:center}.settings-experiment .devtools-link:has(.link-icon){outline-offset:0}.experiment-label{margin-right:2px}.settings-experiment-unstable{color:var(--color-text-secondary)}.settings-experiment .feedback-link{color:var(--color-primary-old);text-decoration-line:underline;margin-left:4px}.tabbed-pane-content slot::slotted(.widget){overflow:visible!important}@media (forced-colors: active){.settings-window-title{color:canvastext}.tabbed-pane-header-tab{background:ButtonFace}.tabbed-pane-header-tab-title{color:canvastext}}@media (forced-colors: active) and (prefers-color-scheme: dark){.tabbed-pane-header-tab.selected{background:ButtonFace}.tabbed-pane-header-tab.selected .tabbed-pane-header-tab-title{color:HighlightText}}\n/*# sourceURL=settingsScreen.css */\n');const h={settings:"Settings",shortcuts:"Shortcuts",preferences:"Preferences",restoreDefaultsAndReload:"Restore defaults and reload",experiments:"Experiments",theseExperimentsCouldBeUnstable:"These experiments could be unstable or unreliable and may require you to restart DevTools.",theseExperimentsAreParticularly:"These experiments are particularly unstable. Enable at your own risk.",warning:"WARNING:",oneOrMoreSettingsHaveChanged:"One or more settings have changed which requires a reload to take effect.",filterExperimentsLabel:"Filter",noResults:"No experiments match the filter",learnMore:"Learn more",sendFeedback:"Send feedback"},g=i.i18n.registerUIStrings("panels/settings/SettingsScreen.ts",h),p=i.i18n.getLocalizedString.bind(void 0,g);let u,m,b,S,y;class x extends r.Widget.VBox{tabbedLocation;keybindsTab;reportTabOnReveal;constructor(){super(!0),this.contentElement.classList.add("settings-window-main"),this.contentElement.classList.add("vbox");const t=document.createElement("div"),e=r.Utils.createShadowRootWithCoreStyles(t,{cssFile:[d],delegatesFocus:void 0}).createChild("div","settings-window-title");r.ARIAUtils.markAsHeading(e,1),e.textContent=p(h.settings),this.tabbedLocation=r.ViewManager.ViewManager.instance().createTabbedLocation((()=>x.revealSettingsScreen()),"settings-view");const i=this.tabbedLocation.tabbedPane();i.registerCSSFiles([d]),i.leftToolbar().appendToolbarItem(new r.Toolbar.ToolbarItem(t)),i.setShrinkableTabs(!1),i.makeVerticalTabLayout();const n=r.ViewManager.ViewManager.instance().view("keybinds");n&&n.widget().then((t=>{this.keybindsTab=t})),i.show(this.contentElement),i.selectTab("preferences"),i.addEventListener(r.TabbedPane.Events.TabInvoked,this.tabInvoked,this),this.reportTabOnReveal=!1}static instance(t={forceNew:null}){const{forceNew:e}=t;return u&&!e||(u=new x),u}static revealSettingsScreen(){const t=x.instance();if(t.isShowing())return t;t.reportTabOnReveal=!0;const e=new r.Dialog.Dialog;return e.contentElement.tabIndex=-1,e.addCloseButton(),e.setOutsideClickCallback((()=>{})),e.setPointerEventsBehavior("PierceGlassPane"),e.setOutsideTabIndexBehavior(r.Dialog.OutsideTabIndexBehavior.PreserveMainViewTabIndex),t.show(e.contentElement),e.setEscapeKeyCallback(t.onEscapeKeyPressed.bind(t)),e.setMarginBehavior("NoMargin"),e.show(),t}static async showSettingsScreen(t={name:void 0,focusTabHeader:void 0}){const{name:e,focusTabHeader:i}=t,n=x.revealSettingsScreen();n.selectTab(e||"preferences");const s=n.tabbedLocation.tabbedPane();await s.waitForTabElementUpdate(),i?s.focusSelectedTabHeader():s.focus()}resolveLocation(t){return this.tabbedLocation}selectTab(t){this.tabbedLocation.tabbedPane().selectTab(t,!0)}tabInvoked(t){const e=t.data;if(!e.isUserGesture)return;const i=e.prevTabId,n=e.tabId;!this.reportTabOnReveal&&i&&i===n||(this.reportTabOnReveal=!1,this.reportSettingsPanelShown(n))}reportSettingsPanelShown(t){t!==p(h.shortcuts)?e.userMetrics.settingsPanelShown(t):e.userMetrics.settingsPanelShown("shortcuts")}onEscapeKeyPressed(t){"keybinds"===this.tabbedLocation.tabbedPane().selectedTabId&&this.keybindsTab&&this.keybindsTab.onEscapeKeyPressed(t)}wasShown(){super.wasShown(),this.registerCSSFiles([d])}}class f extends r.Widget.VBox{containerElement;constructor(t,e){super(),this.element.classList.add("settings-tab-container"),e&&(this.element.id=e);const i=this.element.createChild("header");r.UIUtils.createTextChild(i.createChild("h1"),t),this.containerElement=this.element.createChild("div","settings-container-wrapper").createChild("div","settings-tab settings-content settings-container")}appendSection(t){const e=this.containerElement.createChild("div","settings-block");if(t){r.ARIAUtils.markAsGroup(e);const i=e.createChild("div","settings-section-title");i.textContent=t,r.ARIAUtils.markAsHeading(i,2),r.ARIAUtils.setLabel(e,t)}return e}}class k extends f{syncSection=new a.SyncSection.SyncSection;settingToControl=new Map;constructor(){super(p(h.preferences),"preferences-tab-content");const e=[t.Settings.SettingCategory.NONE,t.Settings.SettingCategory.APPEARANCE,t.Settings.SettingCategory.SOURCES,t.Settings.SettingCategory.ELEMENTS,t.Settings.SettingCategory.NETWORK,t.Settings.SettingCategory.PERFORMANCE,t.Settings.SettingCategory.MEMORY,t.Settings.SettingCategory.CONSOLE,t.Settings.SettingCategory.EXTENSIONS,t.Settings.SettingCategory.PERSISTENCE,t.Settings.SettingCategory.DEBUGGER,t.Settings.SettingCategory.GLOBAL,t.Settings.SettingCategory.SYNC],i=t.Settings.getRegisteredSettings().sort(((t,e)=>t.order&&e.order?t.order-e.order:t.order?-1:e.order?1:0));for(const t of e){const e=i.filter((e=>e.category===t&&k.isSettingVisible(e)));this.createSectionElement(t,e)}this.appendSection().appendChild(r.UIUtils.createTextButton(p(h.restoreDefaultsAndReload),(function(){t.Settings.Settings.instance().clearAll(),o.Reload.reload()})))}static instance(t={forceNew:null}){const{forceNew:e}=t;return m&&!e||(m=new k),m}static isSettingVisible(t){const e=t.titleMac&&t.titleMac(),i=t.title&&t.title();return Boolean((e||i)&&t.category)}wasShown(){super.wasShown(),this.updateSyncSection()}updateSyncSection(){e.InspectorFrontendHost.InspectorFrontendHostInstance.getSyncInformation((e=>{this.syncSection.data={syncInfo:e,syncSetting:t.Settings.moduleSetting("sync_preferences")}}))}createExtensionSection(e){const i=t.Settings.SettingCategory.EXTENSIONS,n=o.Linkifier.LinkHandlerSettingUI.instance().settingElement();if(n){this.createStandardSectionElement(i,e).appendChild(n)}}createSectionElement(e,i){e===t.Settings.SettingCategory.EXTENSIONS?this.createExtensionSection(i):e===t.Settings.SettingCategory.SYNC&&i.length>0?this.containerElement.appendChild(this.syncSection):i.length>0&&this.createStandardSectionElement(e,i)}createStandardSectionElement(e,i){const n=t.Settings.getLocalizedSettingsCategory(e),s=this.appendSection(n);for(const e of i){const i=t.Settings.Settings.instance().moduleSetting(e.settingName),n=r.SettingsUI.createControlForSetting(i);n&&(this.settingToControl.set(i,n),s.appendChild(n))}return s}highlightObject(e){if(e instanceof t.Settings.Setting){const t=this.settingToControl.get(e);t&&c(t)}}}class w extends f{#t;#e;#i;experimentToControl=new Map;constructor(){super(p(h.experiments),"experiments-tab-content");const t=this.appendSection();t.classList.add("experiments-filter");const e=t.createChild("label");e.textContent=p(h.filterExperimentsLabel),this.#i=r.UIUtils.createInput("","text"),r.ARIAUtils.bindLabelToControl(e,this.#i),t.appendChild(this.#i),this.#i.addEventListener("input",(()=>this.renderExperiments(this.#i.value.toLowerCase())),!1),this.setFilter("")}renderExperiments(t){this.experimentToControl.clear(),this.#t&&this.#t.remove(),this.#e&&this.#e.remove();const e=n.Runtime.experiments.allConfigurableExperiments().sort(),i=e.filter((e=>e.unstable&&e.title.toLowerCase().includes(t))),s=e.filter((e=>!e.unstable&&e.title.toLowerCase().includes(t)));if(s.length){this.#t=this.appendSection();const t=p(h.theseExperimentsCouldBeUnstable);this.#t.appendChild(this.createExperimentsWarningSubsection(t));for(const t of s)this.#t.appendChild(this.createExperimentCheckbox(t))}if(i.length){this.#e=this.appendSection();const t=p(h.theseExperimentsAreParticularly);this.#e.appendChild(this.createExperimentsWarningSubsection(t));for(const t of i)this.#e.appendChild(this.createExperimentCheckbox(t))}if(!s.length&&!i.length){this.#t=this.appendSection();this.#t.createChild("span").textContent=p(h.noResults)}}static instance(t={forceNew:null}){const{forceNew:e}=t;return b&&!e||(b=new w),b}createExperimentsWarningSubsection(t){const e=document.createElement("div");e.createChild("span","settings-experiments-warning-subsection-warning").textContent=p(h.warning),r.UIUtils.createTextChild(e," ");return e.createChild("span","settings-experiments-warning-subsection-message").textContent=t,e}createExperimentCheckbox(t){const i=r.UIUtils.CheckboxLabel.create(t.title,t.isEnabled());i.classList.add("experiment-label");const n=i.checkboxElement;n.name=t.name,n.addEventListener("click",(function(){t.setEnabled(n.checked),e.userMetrics.experimentChanged(t.name,t.isEnabled()),r.InspectorView.InspectorView.instance().displayReloadRequiredWarning(p(h.oneOrMoreSettingsHaveChanged))}),!1);const o=document.createElement("p");if(this.experimentToControl.set(t,o),o.classList.add("settings-experiment"),t.unstable&&!t.isEnabled()&&o.classList.add("settings-experiment-unstable"),o.appendChild(i),t.docLink){const e=r.XLink.XLink.create(t.docLink);e.textContent="",e.setAttribute("aria-label",p(h.learnMore));const i=new s.Icon.Icon;i.data={iconName:"help",color:"var(--icon-default)",width:"16px",height:"16px"},i.classList.add("link-icon"),e.prepend(i),o.appendChild(e)}if(t.feedbackLink){const e=r.XLink.XLink.create(t.feedbackLink);e.textContent=p(h.sendFeedback),e.classList.add("feedback-link"),o.appendChild(e)}return o}highlightObject(t){if(t instanceof n.Runtime.Experiment){const e=this.experimentToControl.get(t);e&&c(e)}}setFilter(t){this.#i.value=t,this.#i.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0}))}}class v{static instance(t={forceNew:null}){const{forceNew:e}=t;return S&&!e||(S=new v),S}handleAction(t,i){switch(i){case"settings.show":return x.showSettingsScreen({focusTabHeader:!0}),!0;case"settings.documentation":return e.InspectorFrontendHost.InspectorFrontendHostInstance.openInNewTab(r.UIUtils.addReferrerToURL("https://developer.chrome.com/docs/devtools/")),!0;case"settings.shortcuts":return x.showSettingsScreen({name:"keybinds",focusTabHeader:!0}),!0}return!1}}class C{static instance(t={forceNew:!1}){const{forceNew:e}=t;return y&&!e||(y=new C),y}reveal(i){if(i instanceof n.Runtime.Experiment)return e.InspectorFrontendHost.InspectorFrontendHostInstance.bringToFront(),x.showSettingsScreen({name:"experiments"}).then((()=>w.instance().highlightObject(i))),Promise.resolve();console.assert(i instanceof t.Settings.Setting);const s=i;for(const n of t.Settings.getRegisteredSettings())if(k.isSettingVisible(n)&&n.settingName===s.name)return e.InspectorFrontendHost.InspectorFrontendHostInstance.bringToFront(),x.showSettingsScreen().then((()=>k.instance().highlightObject(i))),Promise.resolve();for(const t of r.ViewManager.getRegisteredViewExtensions()){const n=t.viewId();if("settings-view"!==t.location())continue;const o=t.settings();if(o&&-1!==o.indexOf(s.name))return e.InspectorFrontendHost.InspectorFrontendHostInstance.bringToFront(),x.showSettingsScreen({name:n}).then((async()=>{const e=await t.widget();e instanceof f&&e.highlightObject(i)})),Promise.resolve()}return Promise.reject()}}var E=Object.freeze({__proto__:null,SettingsScreen:x,GenericSettingsTab:k,ExperimentsSettingsTab:w,ActionDelegate:v,Revealer:C});const I=new CSSStyleSheet;I.replaceSync(":host{overflow:hidden}.header{padding:0 0 6px;border-bottom:var(--legacy-divider-border);font-size:18px;font-weight:normal;flex:none}.intro{margin-top:10px}.ignore-list-option{flex:none;padding:3px 6px;min-height:30px}.ignore-list-option devtools-icon{margin-bottom:-1px}.ignore-list-option-group{margin-top:16px;margin-bottom:3px;margin-left:8px;flex-shrink:0}.add-button{margin:10px 2px;align-self:flex-start;flex:none}.ignore-list{max-width:500px;flex:0 1 auto}.ignore-list-global-enable{padding:3px 0;color:var(--color-text-secondary);font-size:120%;margin-top:20px}.ignore-list-item{padding:3px 5px;height:30px;display:flex;align-items:center;position:relative;flex:auto 1 1}.ignore-list-pattern{flex:auto;min-width:100px}.ignore-list-item .ignore-list-pattern{white-space:nowrap;text-overflow:ellipsis;user-select:none;color:var(--color-text-primary);overflow:hidden}.ignore-list-edit-row{flex:none;display:flex;flex-direction:row;margin:6px 5px;align-items:center}.ignore-list-edit-row input,\n.ignore-list-edit-row select{width:100%;text-align:inherit}.ignore-list-options{margin-left:22px;display:flex;flex-direction:column}.ignore-list-options.ignore-listing-disabled{opacity:30%}.list:has(.ignore-list-empty),\n.list:has(.ignore-list-edit-row),\n.list:has(.ignore-list-item){border:none}.editor-container:has(.ignore-list-edit-row){background:var(--color-background-elevation-0)}.ignore-list.list-editing ~ .add-button{display:none}.devtools-link:has(devtools-icon){margin-left:6px}\n/*# sourceURL=frameworkIgnoreListSettingsTab.css */\n");const L={frameworkIgnoreList:"Framework Ignore List",debuggerWillSkipThroughThe:"Debugger will skip through the scripts and will not stop on exceptions thrown by them.",ignoreListContentScripts:"Content scripts injected by extensions",automaticallyIgnoreListKnownThirdPartyScripts:"Known third-party scripts from source maps",enableIgnoreListing:"Enable Ignore Listing",enableIgnoreListingTooltip:"Uncheck to disable all ignore listing",generalExclusionRules:"General exclusion rules:",customExclusionRules:"Custom exclusion rules:",addPattern:"Add pattern...",addFilenamePattern:"Add filename pattern",ignoreScriptsWhoseNamesMatchS:"Ignore scripts whose names match ''{PH1}''",pattern:"Add Pattern",patternCannotBeEmpty:"Pattern cannot be empty",patternAlreadyExists:"Pattern already exists",patternMustBeAValidRegular:"Pattern must be a valid regular expression",learnMore:"Learn more"},T=i.i18n.registerUIStrings("panels/settings/FrameworkIgnoreListSettingsTab.ts",L),A=i.i18n.getLocalizedString.bind(void 0,T);let R;class U extends r.Widget.VBox{list;setting;editor;constructor(){super(!0);const e=this.contentElement.createChild("div","header");e.textContent=A(L.frameworkIgnoreList),r.ARIAUtils.markAsHeading(e,1),this.contentElement.createChild("div","intro").textContent=A(L.debuggerWillSkipThroughThe);const i=t.Settings.Settings.instance().moduleSetting("enableIgnoreListing"),n=this.contentElement.createChild("div","ignore-list-global-enable");n.appendChild(r.SettingsUI.createSettingCheckbox(A(L.enableIgnoreListing),i,!0)),r.Tooltip.Tooltip.install(n,A(L.enableIgnoreListingTooltip));const o=this.contentElement.createChild("div","ignore-list-options");o.createChild("div","ignore-list-option-group").textContent=A(L.generalExclusionRules);o.createChild("div","ignore-list-option").appendChild(r.SettingsUI.createSettingCheckbox(A(L.ignoreListContentScripts),t.Settings.Settings.instance().moduleSetting("skipContentScripts"),!0));const a=o.createChild("div","ignore-list-option");a.appendChild(r.SettingsUI.createSettingCheckbox(A(L.automaticallyIgnoreListKnownThirdPartyScripts),t.Settings.Settings.instance().moduleSetting("automaticallyIgnoreListKnownThirdPartyScripts"),!0));const c=r.XLink.XLink.create("http://goo.gle/skip-third-party");c.textContent="",c.setAttribute("aria-label",A(L.learnMore));const l=new s.Icon.Icon;l.data={iconName:"help",color:"var(--icon-default)",width:"16px",height:"16px"},c.prepend(l),a.appendChild(c),o.createChild("div","ignore-list-option-group").textContent=A(L.customExclusionRules),this.list=new r.ListWidget.ListWidget(this),this.list.element.classList.add("ignore-list");const d=document.createElement("div");d.classList.add("ignore-list-empty"),this.list.setEmptyPlaceholder(d),this.list.show(o);const h=r.UIUtils.createTextButton(A(L.addPattern),this.addButtonClicked.bind(this),"add-button");function g(){i.get()?o.classList.remove("ignore-listing-disabled"):o.classList.add("ignore-listing-disabled")}r.ARIAUtils.setLabel(h,A(L.addFilenamePattern)),o.appendChild(h),this.setting=t.Settings.Settings.instance().moduleSetting("skipStackFramesPattern"),this.setting.addChangeListener(this.settingUpdated,this),this.setDefaultFocusedElement(h),i.addChangeListener(g),g()}static instance(t={forceNew:null}){const{forceNew:e}=t;return R&&!e||(R=new U),R}wasShown(){super.wasShown(),this.list.registerCSSFiles([I]),this.registerCSSFiles([I]),this.settingUpdated()}settingUpdated(){this.list.clear();const t=this.setting.getAsArray();for(let e=0;e<t.length;++e)this.list.appendItem(t[e],!0)}addButtonClicked(){this.list.addNewItem(this.setting.getAsArray().length,{pattern:"",disabled:!1})}renderItem(t,e){const i=document.createElement("div"),n=this.setting,s=r.UIUtils.CheckboxLabel.create(t.pattern,!t.disabled),o=A(L.ignoreScriptsWhoseNamesMatchS,{PH1:t.pattern});return r.Tooltip.Tooltip.install(s,o),s.checkboxElement.ariaLabel=o,s.checkboxElement.addEventListener("change",(function(){const e=!s.checkboxElement.checked;t.disabled!==e&&(t.disabled=e,t.disabledForUrl=void 0,n.setAsArray(n.getAsArray()))}),!1),i.appendChild(s),i.classList.add("ignore-list-item"),i}removeItemRequested(t,e){const i=this.setting.getAsArray();i.splice(e,1),this.setting.setAsArray(i)}commitEdit(t,e,i){t.pattern=e.control("pattern").value.trim();const n=this.setting.getAsArray();i&&n.push(t),this.setting.setAsArray(n)}beginEdit(t){const e=this.createEditor();return e.control("pattern").value=t.pattern,e}createEditor(){if(this.editor)return this.editor;const t=new r.ListWidget.Editor;this.editor=t;const e=t.contentElement();e.createChild("div","ignore-list-edit-row").createChild("div","ignore-list-pattern").textContent=A(L.pattern);const i=e.createChild("div","ignore-list-edit-row"),n=t.createInput("pattern","text","/framework\\.js$",function(t,e,i){const n=i.value.trim(),s=this.setting.getAsArray();if(!n.length)return{valid:!1,errorMessage:A(L.patternCannotBeEmpty)};for(let t=0;t<s.length;++t)if(t!==e&&s[t].pattern===n)return{valid:!1,errorMessage:A(L.patternAlreadyExists)};let o;try{o=new RegExp(n)}catch(t){}if(!o)return{valid:!1,errorMessage:A(L.patternMustBeAValidRegular)};return{valid:!0,errorMessage:void 0}}.bind(this));return r.ARIAUtils.setLabel(n,A(L.pattern)),i.createChild("div","ignore-list-pattern").appendChild(n),t}}var F=Object.freeze({__proto__:null,FrameworkIgnoreListSettingsTab:U});const K=new CSSStyleSheet;K.replaceSync('header{padding:0 0 6px;border-bottom:1px solid var(--color-details-hairline);flex:none;margin-bottom:25px}h1{font-size:18px;font-weight:normal;padding-bottom:3px;margin:0}[role="list"],\n.widget.vbox{min-width:300px}.keybinds-key{padding:0.1em 0.6em;border:1px solid var(--color-details-hairline);font-size:11px;background-color:var(--color-background-elevation-1);color:var(--color-text-primary);box-shadow:var(--box-shadow-outline-color);border-radius:3px;display:inline-block;margin:0 0.1em;text-shadow:0 1px 0 var(--color-background);line-height:1.5;white-space:nowrap}.keybinds-list-item{min-height:30px;display:grid;grid-template-rows:repeat(auto-fit,minmax(30px,auto));grid-template-columns:1fr 30px 2fr 30px 30px;flex:auto 1 1}.keybinds-list-item:focus-visible{background-color:var(--legacy-focus-bg-color)}.keybinds-list-item:not(.keybinds-category-header){padding:4px 0 4px 20px}.keybinds-list-item.keybinds-editing{background-color:var(--color-background-elevation-2)}.keybinds-list-text.keybinds-action-name{padding-top:7px;grid-row:1/3}.keybinds-shortcut,\n.keybinds-info{grid-row:auto;grid-column:3/span 1}.keybinds-shortcut.devtools-link{align-items:center;margin-left:3px}.keybinds-info .devtools-link{padding-top:6px}.keybinds-error{color:var(--color-accent-red)}.keybinds-list-item.keybinds-editing .keybinds-shortcut{display:flex}.keybinds-modified{grid-column:2/span 1;margin-top:2px}.keybinds-list-item button{border:none;padding:0;background:transparent}.keybinds-list-item button:hover .icon-mask{background-color:var(--color-text-primary)}.keybinds-list-item button:focus-visible{background-color:var(--legacy-focus-bg-color)}.keybinds-list-item button[disabled]{opacity:40%}.keybinds-confirm-button{grid-column:-2/span 1}.keybinds-cancel-button{grid-column:-1/span 1}.keybinds-edit-button{display:none;grid-row:1/span 1;grid-column:4/span 1}.keybinds-list-item:not(.keybinds-editing):hover .keybinds-edit-button,\n.keybinds-list-item:not(.keybinds-editing):focus-within .keybinds-edit-button{display:inline-block}.keybinds-list-text{padding:3px 0;user-select:none;color:var(--color-text-primary);text-align:start;position:relative;margin-right:0}.keybinds-category-header{font-weight:bold;line-height:30px;white-space:nowrap}.keybinds-category-header:not(:nth-child(2)){border-top:1px solid var(--color-details-hairline)}.keybinds-list-item:not(.keybinds-category-header):hover,\n.keybinds-list-item:not(.keybinds-editing):focus-within{background:var(--color-background-elevation-1)}.keybinds-set-select{text-align:right;margin-bottom:25px}.keybinds-set-select label p{display:inline;color:var(--color-text-primary)}.keybinds-set-select select{margin-left:6px}button.text-button{width:fit-content;align-self:flex-end}.keybinds-list-text input{margin:0 2px}.keybinds-list-text:has(.keybinds-delete-button){grid-column:3/-1}.docs-link.devtools-link{align-self:flex-start;min-height:2em;line-height:2em}.keybinds-footer{display:flex;flex-wrap:wrap;justify-content:space-between;min-height:fit-content;margin-top:10px}\n/*# sourceURL=keybindsSettingsTab.css */\n');const M={shortcuts:"Shortcuts",matchShortcutsFromPreset:"Match shortcuts from preset",keyboardShortcutsList:"Keyboard shortcuts list",shortcutModified:"Shortcut modified",noShortcutForAction:"No shortcut for action",addAShortcut:"Add a shortcut",confirmChanges:"Confirm changes",discardChanges:"Discard changes",removeShortcut:"Remove shortcut",editShortcut:"Edit shortcut",shortcutsCannotContainOnly:"Shortcuts cannot contain only modifier keys.",thisShortcutIsInUseByS:"This shortcut is in use by {PH1}: {PH2}.",RestoreDefaultShortcuts:"Restore default shortcuts",FullListOfDevtoolsKeyboard:"Full list of DevTools keyboard shortcuts and gestures",ResetShortcutsForAction:"Reset shortcuts for action"},P=i.i18n.registerUIStrings("panels/settings/KeybindsSettingsTab.ts",M),B=i.i18n.getLocalizedString.bind(void 0,P);let N;class O extends r.Widget.VBox{items;list;editingItem;editingRow;constructor(){super(!0);this.contentElement.createChild("header").createChild("h1").textContent=B(M.shortcuts);const e=t.Settings.Settings.instance().moduleSetting("activeKeybindSet"),i=t.Settings.Settings.instance().moduleSetting("userShortcuts");i.addChangeListener(this.update,this),e.addChangeListener(this.update,this);const n=r.SettingsUI.createControlForSetting(e,B(M.matchShortcutsFromPreset));n&&(n.classList.add("keybinds-set-select"),this.contentElement.appendChild(n)),this.items=new r.ListModel.ListModel,this.list=new r.ListControl.ListControl(this.items,this,r.ListControl.ListMode.NonViewport),this.items.replaceAll(this.createListItems()),r.ARIAUtils.markAsList(this.list.element),this.contentElement.appendChild(this.list.element),r.ARIAUtils.setLabel(this.list.element,B(M.keyboardShortcutsList));const s=this.contentElement.createChild("div");s.classList.add("keybinds-footer");const o=r.XLink.XLink.create("https://developer.chrome.com/docs/devtools/shortcuts/",B(M.FullListOfDevtoolsKeyboard));o.classList.add("docs-link"),s.appendChild(o),s.appendChild(r.UIUtils.createTextButton(B(M.RestoreDefaultShortcuts),(()=>{i.set([]),e.set(r.ShortcutRegistry.DefaultShortcutSetting)}))),this.editingItem=null,this.editingRow=null,this.update()}static instance(t={forceNew:null}){const{forceNew:e}=t;return N&&!e||(N=new O),N}createElementForItem(t){let e=document.createElement("div");if("string"==typeof t)r.ARIAUtils.setLevel(e,1),e.classList.add("keybinds-category-header"),e.textContent=r.ActionRegistration.getLocalizedActionCategory(t);else{const i=new D(t,this,t===this.editingItem);e=i.element,r.ARIAUtils.setLevel(e,2),t===this.editingItem&&(this.editingRow=i)}return e.classList.add("keybinds-list-item"),r.ARIAUtils.markAsListitem(e),e.tabIndex=t===this.list.selectedItem()&&t!==this.editingItem?0:-1,e}commitChanges(t,i){for(const[t,n]of i)t.type!==r.KeyboardShortcut.Type.UnsetShortcut&&(r.ShortcutRegistry.ShortcutRegistry.instance().removeShortcut(t),n||e.userMetrics.actionTaken(e.UserMetrics.Action.ShortcutRemoved)),n&&(r.ShortcutRegistry.ShortcutRegistry.instance().registerUserShortcut(t.changeKeys(n).changeType(r.KeyboardShortcut.Type.UserShortcut)),t.type===r.KeyboardShortcut.Type.UnsetShortcut?e.userMetrics.actionTaken(e.UserMetrics.Action.UserShortcutAdded):e.userMetrics.actionTaken(e.UserMetrics.Action.ShortcutModified));this.stopEditing(t)}heightForItem(t){return 0}isItemSelectable(t){return!0}selectedItemChanged(t,e,i,n){i&&(i.tabIndex=-1),n&&(e===this.editingItem&&this.editingRow?this.editingRow.focus():(n.tabIndex=0,this.list.element.hasFocus()&&n.focus()),this.setDefaultFocusedElement(n))}updateSelectedItemARIA(t,e){return!0}startEditing(t){this.list.selectItem(t),this.editingItem&&this.stopEditing(this.editingItem),r.UIUtils.markBeingEdited(this.list.element,!0),this.editingItem=t,this.list.refreshItem(t)}stopEditing(t){r.UIUtils.markBeingEdited(this.list.element,!1),this.editingItem=null,this.editingRow=null,this.list.refreshItem(t),this.focus()}createListItems(){const t=r.ActionRegistry.ActionRegistry.instance().actions().sort(((t,e)=>t.category()<e.category()?-1:t.category()>e.category()?1:t.id()<e.id()?-1:t.id()>e.id()?1:0)),e=[];let i;return t.forEach((t=>{"elements.toggle-element-search"!==t.id()&&(i!==t.category()&&e.push(t.category()),e.push(t),i=t.category())})),e}onEscapeKeyPressed(t){const e=l.DOMUtilities.deepActiveElement(document);this.editingRow&&e&&"INPUT"===e.nodeName&&this.editingRow.onEscapeKeyPressed(t)}update(){this.editingItem&&this.stopEditing(this.editingItem),this.list.refreshAllItems(),this.list.selectedItem()||this.list.selectItem(this.items.at(0))}willHide(){this.editingItem&&this.stopEditing(this.editingItem)}wasShown(){super.wasShown(),this.registerCSSFiles([K])}}class D{isEditing;settingsTab;item;element;editedShortcuts;shortcutInputs;shortcuts;elementToFocus;confirmButton;addShortcutLinkContainer;errorMessageElement;secondKeyTimeout;constructor(t,e,i){this.isEditing=Boolean(i),this.settingsTab=e,this.item=t,this.element=document.createElement("div"),this.editedShortcuts=new Map,this.shortcutInputs=new Map,this.shortcuts=r.ShortcutRegistry.ShortcutRegistry.instance().shortcutsForAction(t.id()),this.elementToFocus=null,this.confirmButton=null,this.addShortcutLinkContainer=null,this.errorMessageElement=null,this.secondKeyTimeout=null,this.update()}focus(){this.elementToFocus&&this.elementToFocus.focus()}update(){this.element.removeChildren(),this.elementToFocus=null,this.shortcutInputs.clear(),this.element.classList.toggle("keybinds-editing",this.isEditing),this.element.createChild("div","keybinds-action-name keybinds-list-text").textContent=this.item.title(),this.shortcuts.forEach(this.createShortcutRow,this),0===this.shortcuts.length&&this.createEmptyInfo(),this.isEditing&&this.setupEditor()}createEmptyInfo(){if(r.ShortcutRegistry.ShortcutRegistry.instance().actionHasDefaultShortcut(this.item.id())){const t=r.Icon.Icon.create("keyboard-pen","keybinds-modified");r.ARIAUtils.setLabel(t,B(M.shortcutModified)),this.element.appendChild(t)}if(!this.isEditing){const t=this.element.createChild("div","keybinds-shortcut keybinds-list-text");r.ARIAUtils.setLabel(t,B(M.noShortcutForAction)),n.Runtime.experiments.isEnabled("keyboardShortcutEditor")&&this.element.appendChild(this.createEditButton())}}setupEditor(){this.addShortcutLinkContainer=this.element.createChild("div","keybinds-shortcut devtools-link");const t=this.addShortcutLinkContainer.createChild("span","devtools-link");t.textContent=B(M.addAShortcut),t.tabIndex=0,r.ARIAUtils.markAsLink(t),self.onInvokeElement(t,this.addShortcut.bind(this)),this.elementToFocus||(this.elementToFocus=t),this.errorMessageElement=this.element.createChild("div","keybinds-info keybinds-error hidden"),r.ARIAUtils.markAsAlert(this.errorMessageElement),this.element.appendChild(this.createIconButton(B(M.ResetShortcutsForAction),"undo","",this.resetShortcutsToDefaults.bind(this))),this.confirmButton=this.createIconButton(B(M.confirmChanges),"checkmark","keybinds-confirm-button",(()=>this.settingsTab.commitChanges(this.item,this.editedShortcuts))),this.element.appendChild(this.confirmButton),this.element.appendChild(this.createIconButton(B(M.discardChanges),"cross","keybinds-cancel-button",(()=>this.settingsTab.stopEditing(this.item)))),this.element.addEventListener("keydown",(t=>{l.KeyboardUtilities.isEscKey(t)&&(this.settingsTab.stopEditing(this.item),t.consume(!0))}))}addShortcut(){const t=new r.KeyboardShortcut.KeyboardShortcut([],this.item.id(),r.KeyboardShortcut.Type.UnsetShortcut);this.shortcuts.push(t),this.update();const e=this.shortcutInputs.get(t);e&&e.focus()}createShortcutRow(t,e){if(this.editedShortcuts.has(t)&&!this.editedShortcuts.get(t))return;let i;t.type===r.KeyboardShortcut.Type.UnsetShortcut||t.isDefault()||(i=r.Icon.Icon.create("keyboard-pen","keybinds-modified"),r.ARIAUtils.setLabel(i,B(M.shortcutModified)),this.element.appendChild(i));const s=this.element.createChild("div","keybinds-shortcut keybinds-list-text");if(this.isEditing){const e=s.createChild("input","harmony-input");e.spellcheck=!1,e.maxLength=0,this.shortcutInputs.set(t,e),this.elementToFocus||(this.elementToFocus=e),e.value=t.title();const i=this.editedShortcuts.get(t);i&&(e.value=this.shortcutInputTextForDescriptors(i)),e.addEventListener("keydown",this.onShortcutInputKeyDown.bind(this,t,e)),e.addEventListener("blur",(()=>{null!==this.secondKeyTimeout&&(clearTimeout(this.secondKeyTimeout),this.secondKeyTimeout=null)})),s.appendChild(this.createIconButton(B(M.removeShortcut),"bin","keybinds-delete-button",(()=>{const e=this.shortcuts.indexOf(t);t.isDefault()||this.shortcuts.splice(e,1),this.editedShortcuts.set(t,null),this.update(),this.focus(),this.validateInputs()})))}else{t.descriptors.flatMap((t=>t.name.split(" + "))).forEach((t=>{s.createChild("span","keybinds-key").textContent=t})),n.Runtime.experiments.isEnabled("keyboardShortcutEditor")&&0===e&&this.element.appendChild(this.createEditButton())}}createEditButton(){return this.createIconButton(B(M.editShortcut),"edit","keybinds-edit-button",(()=>this.settingsTab.startEditing(this.item)))}createIconButton(t,e,i,n){const s=document.createElement("button");return s.setAttribute("title",t),s.appendChild(r.Icon.Icon.create(e)),s.addEventListener("click",n),r.ARIAUtils.setLabel(s,t),i&&s.classList.add(i),s}onShortcutInputKeyDown(t,e,i){if("Tab"!==i.key){const n=this.descriptorForEvent(i),s=this.editedShortcuts.get(t)||[];this.editedShortcuts.set(t,s);const o=2===s.length&&r.KeyboardShortcut.KeyboardShortcut.isModifier(s[1].key);2===s.length&&!o&&s.splice(0,2),this.secondKeyTimeout?(clearTimeout(this.secondKeyTimeout),this.secondKeyTimeout=null,s.push(n)):o?s[1]=n:r.KeyboardShortcut.KeyboardShortcut.isModifier(n.key)?s[0]=n:(s[0]=n,this.secondKeyTimeout=window.setTimeout((()=>{this.secondKeyTimeout=null}),r.ShortcutRegistry.KeyTimeout)),e.value=this.shortcutInputTextForDescriptors(s),this.validateInputs(),i.consume(!0)}}descriptorForEvent(t){const e=r.KeyboardShortcut.KeyboardShortcut.makeKeyFromEvent(t),i=r.KeyboardShortcut.KeyboardShortcut.keyCodeAndModifiersFromKey(e);let n=r.KeyboardShortcut.Keys[t.key]||r.KeyboardShortcut.KeyBindings[t.key];if(!n&&!/^[a-z]$/i.test(t.key)){const e=t.code;n=r.KeyboardShortcut.Keys[e]||r.KeyboardShortcut.KeyBindings[e],e.startsWith("Digit")?n=e.slice(5):e.startsWith("Key")&&(n=e.slice(3))}return r.KeyboardShortcut.KeyboardShortcut.makeDescriptor(n||t.key,i.modifiers)}shortcutInputTextForDescriptors(t){return t.map((t=>t.name)).join(" ")}resetShortcutsToDefaults(){this.editedShortcuts.clear();for(const t of this.shortcuts)if(t.type===r.KeyboardShortcut.Type.UnsetShortcut){const e=this.shortcuts.indexOf(t);this.shortcuts.splice(e,1)}else t.type===r.KeyboardShortcut.Type.UserShortcut&&this.editedShortcuts.set(t,null);r.ShortcutRegistry.ShortcutRegistry.instance().disabledDefaultsForAction(this.item.id()).forEach((t=>{this.shortcuts.includes(t)||(this.shortcuts.push(t),this.editedShortcuts.set(t,t.descriptors))})),this.update(),this.focus()}onEscapeKeyPressed(t){const e=l.DOMUtilities.deepActiveElement(document);for(const[i,n]of this.shortcutInputs.entries())e===n&&this.onShortcutInputKeyDown(i,n,t)}validateInputs(){const t=this.confirmButton,e=this.errorMessageElement;t&&e&&(t.disabled=!1,e.classList.add("hidden"),this.shortcutInputs.forEach(((i,n)=>{const s=this.editedShortcuts.get(n);if(!s)return;if(s.some((t=>r.KeyboardShortcut.KeyboardShortcut.isModifier(t.key))))return t.disabled=!0,i.classList.add("error-input"),r.ARIAUtils.setInvalid(i,!0),e.classList.remove("hidden"),void(e.textContent=B(M.shortcutsCannotContainOnly));const o=r.ShortcutRegistry.ShortcutRegistry.instance().actionsForDescriptors(s).filter((t=>t!==this.item.id()));if(o.length){t.disabled=!0,i.classList.add("error-input"),r.ARIAUtils.setInvalid(i,!0),e.classList.remove("hidden");const n=r.ActionRegistry.ActionRegistry.instance().action(o[0]);if(!n)return;const s=n.title(),a=n.category();e.textContent=B(M.thisShortcutIsInUseByS,{PH1:a,PH2:s})}else i.classList.remove("error-input"),r.ARIAUtils.setInvalid(i,!1)})))}}var H=Object.freeze({__proto__:null,KeybindsSettingsTab:O,ShortcutListItem:D});export{F as FrameworkIgnoreListSettingsTab,H as KeybindsSettingsTab,E as SettingsScreen};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as p from"./snippets.js";self.Snippets=self.Snippets||{},Snippets=Snippets||{},Snippets.evaluateScriptSnippet=p.ScriptSnippetFileSystem.evaluateScriptSnippet,Snippets.isSnippetsUISourceCode=p.ScriptSnippetFileSystem.isSnippetsUISourceCode,Snippets.isSnippetsProject=p.ScriptSnippetFileSystem.isSnippetsProject,Snippets.SnippetsQuickOpen=p.SnippetsQuickOpen.SnippetsQuickOpen,Snippets.ScriptSnippetFileSystem={},Snippets.ScriptSnippetFileSystem.findSnippetsProject=p.ScriptSnippetFileSystem.findSnippetsProject;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as n from"../../core/platform/platform.js";import*as s from"../../core/sdk/sdk.js";import*as i from"../../models/persistence/persistence.js";import*as r from"../../ui/legacy/legacy.js";import*as o from"../../models/workspace/workspace.js";import*as p from"../../ui/legacy/components/quick_open/quick_open.js";const a={scriptSnippet:"Script snippet #{PH1}",linkedTo:"Linked to {PH1}"},c=t.i18n.registerUIStrings("panels/snippets/ScriptSnippetFileSystem.ts",a),l=t.i18n.getLocalizedString.bind(void 0,c);function d(t){return e.ParsedURL.ParsedURL.rawPathToEncodedPathString(t)}function u(t){return e.ParsedURL.ParsedURL.encodedPathToRawPathString(t)}class g extends i.PlatformFileSystem.PlatformFileSystem{lastSnippetIdentifierSetting;snippetsSetting;constructor(){super("snippet://","snippets"),this.lastSnippetIdentifierSetting=e.Settings.Settings.instance().createSetting("scriptSnippets_lastIdentifier",0),this.snippetsSetting=e.Settings.Settings.instance().createSetting("scriptSnippets",[])}initialFilePaths(){return this.snippetsSetting.get().map((e=>d(e.name)))}async createFile(e,t){const n=this.lastSnippetIdentifierSetting.get()+1;this.lastSnippetIdentifierSetting.set(n);const s=l(a.scriptSnippet,{PH1:n}),i=this.snippetsSetting.get();return i.push({name:s,content:""}),this.snippetsSetting.set(i),d(s)}async deleteFile(t){const n=u(e.ParsedURL.ParsedURL.substring(t,1)),s=this.snippetsSetting.get(),i=s.filter((e=>e.name!==n));return s.length!==i.length&&(this.snippetsSetting.set(i),!0)}async requestFileContent(t){const n=u(e.ParsedURL.ParsedURL.substring(t,1)),s=this.snippetsSetting.get().find((e=>e.name===n));return s?{content:s.content,isEncoded:!1}:{content:null,isEncoded:!1,error:`A snippet with name '${n}' was not found`}}async setFileContent(t,n,s){const i=u(e.ParsedURL.ParsedURL.substring(t,1)),r=this.snippetsSetting.get(),o=r.find((e=>e.name===i));return!!o&&(o.content=n,this.snippetsSetting.set(r),!0)}renameFile(t,n,s){const i=u(e.ParsedURL.ParsedURL.substring(t,1)),r=this.snippetsSetting.get(),o=r.find((e=>e.name===i));n=e.ParsedURL.ParsedURL.trim(n),o&&0!==n.length&&!r.find((e=>e.name===n))?(o.name=n,this.snippetsSetting.set(r),s(!0,n)):s(!1)}async searchInPath(e,t){const s=new RegExp(n.StringUtilities.escapeForRegExp(e),"i");return this.snippetsSetting.get().filter((e=>e.content.match(s))).map((e=>`snippet:///${d(e.name)}`))}mimeFromPath(e){return"text/javascript"}contentType(t){return e.ResourceType.resourceTypes.Script}tooltipForURL(t){return l(a.linkedTo,{PH1:u(e.ParsedURL.ParsedURL.sliceUrlToEncodedPathString(t,this.path().length))})}supportsAutomapping(){return!0}}async function m(t){if(!t.url().startsWith("snippet://"))return;const n=r.Context.Context.instance().flavor(s.RuntimeModel.ExecutionContext);if(!n)return;const i=n.runtimeModel,o=n.target().model(s.ConsoleModel.ConsoleModel);await t.requestContent(),t.commitWorkingCopy();const p=t.workingCopy();e.Console.Console.instance().show();const a=t.url(),c=await n.evaluate({expression:`${p}\n//# sourceURL=${a}`,objectGroup:"console",silent:!1,includeCommandLineAPI:!0,returnByValue:!1,generatePreview:!0,replMode:!0},!0,!0);if("exceptionDetails"in c&&c.exceptionDetails)return void o?.addMessage(s.ConsoleModel.ConsoleMessage.fromException(i,c.exceptionDetails,void 0,void 0,a));if(!("object"in c)||!c.object)return;const l=n.debuggerModel.scriptsForSourceURL(a);if(l.length<1)return;const d=l[l.length-1].scriptId,u={type:s.ConsoleModel.FrontendMessageType.Result,url:a,parameters:[c.object],executionContextId:n.id,scriptId:d};o?.addMessage(new s.ConsoleModel.ConsoleMessage(i,"javascript","info","",u))}function S(){const e=o.Workspace.WorkspaceImpl.instance().projectsForType(o.Workspace.projectTypes.FileSystem).find((e=>"snippets"===i.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.fileSystemType(e)));if(!e)throw new Error("Unable to find workspace project for the snippets file system");return e}var h=Object.freeze({__proto__:null,SnippetFileSystem:g,evaluateScriptSnippet:m,isSnippetsUISourceCode:function(e){return e.url().startsWith("snippet://")},isSnippetsProject:function(e){return e.type()===o.Workspace.projectTypes.FileSystem&&"snippets"===i.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.fileSystemType(e)},findSnippetsProject:S});const f={noSnippetsFound:"No snippets found.",run:"Run",snippet:"Snippet"},y=t.i18n.registerUIStrings("panels/snippets/SnippetsQuickOpen.ts",f),P=t.i18n.getLocalizedString.bind(void 0,y),L=t.i18n.getLazilyComputedLocalizedString.bind(void 0,y);let F;class R extends p.FilteredListWidget.Provider{snippets;constructor(){super(),this.snippets=[]}static instance(e={forceNew:null}){const{forceNew:t}=e;return F&&!t||(F=new R),F}selectItem(e,t){null!==e&&m(this.snippets[e])}notFoundText(e){return P(f.noSnippetsFound)}attach(){this.snippets=[...S().uiSourceCodes()]}detach(){this.snippets=[]}itemScoreAt(e,t){return t.length/this.snippets[e].name().length}itemCount(){return this.snippets.length}itemKeyAt(e){return this.snippets[e].name()}renderItem(e,t,n,s){n.textContent=this.snippets[e].name(),n.classList.add("monospace"),p.FilteredListWidget.FilteredListWidget.highlightRanges(n,t,!0)}}p.FilteredListWidget.registerProvider({prefix:"!",iconName:"exclamation",iconWidth:"20px",provider:()=>Promise.resolve(R.instance()),titlePrefix:L(f.run),titleSuggestion:L(f.snippet)});var U=Object.freeze({__proto__:null,SnippetsQuickOpen:R});export{h as ScriptSnippetFileSystem,U as SnippetsQuickOpen};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"../../../core/common/common.js";import*as t from"../../../core/host/host.js";import*as n from"../../../core/i18n/i18n.js";import*as o from"../../../core/platform/platform.js";import{assertNotNullOrUndefined as i}from"../../../core/platform/platform.js";import*as a from"../../../core/sdk/sdk.js";import*as r from"../../../models/bindings/bindings.js";import*as s from"../../../models/breakpoints/breakpoints.js";import*as c from"../../../models/text_utils/text_utils.js";import*as l from"../../../models/workspace/workspace.js";import*as d from"../../../ui/components/helpers/helpers.js";import*as p from"../../../ui/components/icon_button/icon_button.js";import*as h from"../../../ui/components/input/input.js";import*as u from"../../../ui/components/legacy_wrapper/legacy_wrapper.js";import*as g from"../../../ui/components/render_coordinator/render_coordinator.js";import*as m from"../../../ui/legacy/legacy.js";import*as b from"../../../ui/lit-html/lit-html.js";import*as k from"../../../models/persistence/persistence.js";import*as f from"../../../ui/components/buttons/buttons.js";const x=new CSSStyleSheet;x.replaceSync(':host{flex:auto;display:flex;flex-direction:column}.code-snippet{width:100%;font-family:var(--source-code-font-family);font-size:var(--source-code-font-size);color:var(--color-text-secondary);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;flex-shrink:100;cursor:pointer}.code-snippet:hover{color:var(--color-text-primary);text-decoration:underline}input{height:12px;width:12px;flex-shrink:0;margin:3px 0}details{border-top:1px solid var(--color-details-hairline)}details:not(.active){background-color:var(--color-background-elevation-1);opacity:30%}details > summary{height:18px;list-style:none;display:flex;padding:0 8px 0 6px;align-items:center}details > summary:hover{background-color:var(--color-background-elevation-1)}details > summary::before{display:block;user-select:none;-webkit-mask-image:var(--image-file-triangle-right);background-color:var(--icon-default);content:"";height:14px;min-width:14px;max-width:14px;margin-left:-4px;overflow:hidden;transition:transform 200ms}details[open] > summary::before{transform:rotate(90deg)}.group-header{display:inline-flex;align-items:center;width:100%;padding-right:8px;overflow:hidden}.group-icon-or-disable{justify-content:center;display:flex;width:16px;margin-left:2px}.group-header-title{margin-left:4px;font-weight:500;font-size:var(--source-code-font-size);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.group-header-differentiator{font-weight:normal;color:var(--color-text-disabled);margin-left:8px}.group-hover-actions{display:flex;align-items:center;justify-content:right;font-size:10px;font-weight:500}.breakpoint-item-location-or-actions{min-width:20px;flex:0 0 auto;display:flex;padding-left:8px;justify-content:right}button{cursor:pointer;width:13px;height:13px;border:none;background-color:transparent;display:none;align-items:center;justify-content:center}button + span{padding-left:6px}button + button{padding-left:11px}summary:hover button{display:flex}button:hover devtools-icon{--icon-color:var(--icon-default-hover)}.type-indicator{--override-color-conditional-breakpoint:#f29900;--override-color-logpoint:#f439a0;border-right:4px solid;border-radius:0 2px 2px 0;border-color:transparent;height:16px}.breakpoint-item{display:flex;align-items:center;line-height:13px;height:20px;padding-right:8px}.breakpoint-item:hover{background-color:var(--color-background-elevation-1)}.breakpoint-item.hit{--override-breakpoint-hit-background:rgb(255 255 194);background-color:var(--override-breakpoint-hit-background)}.breakpoint-item.hit:focus{background-color:var(--legacy-focus-bg-color)}:host-context(.-theme-with-dark-background) .breakpoint-item.hit{background-color:hsl(46deg 98% 22%);color:var(--color-text-primary)}.-theme-with-dark-background .type-indicator,\n:host-context(.-theme-with-dark-background) .type-indicator{--override-color-conditional-breakpoint:#e9a33a;--override-color-logpoint:#e54d9b}.breakpoint-item.logpoint > label > .type-indicator{border-color:var(--override-color-logpoint)}.breakpoint-item.conditional-breakpoint > label > .type-indicator{border-color:var(--override-color-conditional-breakpoint)}.checkbox-label{display:flex;align-items:center}.checkbox-label > input{margin-left:16px;margin-right:6px}summary:hover .file-icon{display:none}.group-checkbox{margin:0;display:none}summary:hover .group-checkbox{display:flex}.location{line-height:14px;text-overflow:ellipsis;overflow:hidden}.breakpoint-item:hover button{display:flex}.pause-on-uncaught-exceptions{margin-top:3px}.pause-on-caught-exceptions{margin-bottom:3px}input:disabled + span{color:var(--color-text-disabled)}.pause-on-caught-exceptions > .checkbox-label > input,\n.pause-on-uncaught-exceptions > .checkbox-label > input{margin-left:6px}.pause-on-caught-exceptions > .checkbox-label > span,\n.pause-on-uncaught-exceptions > .checkbox-label > span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.pause-on-uncaught-exceptions,\n.pause-on-caught-exceptions{line-height:13px;height:18px;padding-right:8px}details > summary:focus,\n.breakpoint-item:focus,\n.pause-on-uncaught-exceptions:focus,\n.pause-on-caught-exceptions:focus{background-color:var(--legacy-focus-bg-color);outline-width:0}\n/*# sourceURL=breakpointsView.css */\n');const v=e=>null!==e.getAttribute("data-first-pause")||null!==e.getAttribute("data-last-pause"),y=e=>!(e=>"treeitem"===e.getAttribute("role"))(e),w=e=>null!==e.getAttribute("open"),S=e=>e.querySelector("[data-first-breakpoint]"),E=e=>{const t=I(e);return t&&t instanceof HTMLDetailsElement?t?.querySelector("summary"):null},C=e=>e.querySelector("summary"),I=e=>{const t=e.nextElementSibling;return t&&t instanceof HTMLDetailsElement?t:null};async function T(e,t,n){if(v(e))return function(e,t){console.assert(v(e));let n=null;switch(t){case"ArrowUp":{const t=e.previousElementSibling;t instanceof HTMLElement&&(n=t,console.assert(v(n)));break}case"ArrowDown":{const t=e.nextElementSibling;if(t instanceof HTMLElement)if("tree"===t.getAttribute("role")){const e=t.querySelector("[data-first-group]");e&&(n=C(e))}else n=t,console.assert(v(n));break}}return n}(e,t);const o=e.parentElement;if(!(o&&o instanceof HTMLDetailsElement))throw new Error("The selected nodes should be direct children of an HTMLDetails element.");let i=null;switch(t){case"ArrowLeft":if(!y(e))return C(o);w(o)&&await n(o,!1);break;case"ArrowRight":if(y(e)){if(w(o))return S(o);await n(o,!0)}break;case"ArrowDown":if(y(e))i=w(o)?S(o):E(o);else{const t=e.nextElementSibling;i=t&&t instanceof HTMLDivElement?t:E(o)}break;case"ArrowUp":if(y(e)){const e=(e=>{const t=e.previousElementSibling;return t&&t instanceof HTMLDetailsElement?t:null})(o);if(e)i=w(e)?(e=>e.querySelector("[data-last-breakpoint]"))(e):C(e);else{const e=o.parentElement?.previousElementSibling;e instanceof HTMLElement&&(i=e)}}else{const t=e.previousElementSibling;t instanceof HTMLElement&&(i=t)}}return i}function B(e,t,n){const o=[];let i=t.filter((t=>t!==e));for(let t=n;t<e.length;++t){const n=e[t];if(o.push(n),i=i.filter((e=>e.length>t&&e[t]===n)),0===i.length)break}return o}function L(t,n){const o=t.map((t=>{const n=e.ParsedURL.ParsedURL.fromString(t)?.folderPathComponents.slice(1);return i(n),n.split("/").reverse()})),a=function(e){const t=e[0];let n=-1;for(let o=0;o<t.length&&-1===n;++o){const i=t[o];for(let t=1;t<e.length;++t){const a=e[t];if(a.length<=o||a[o]!==i){n=o;break}}}return-1===n?t.length:n}(o);for(let e=0;e<o.length;++e){const i=B(o[e],o,a).reverse().join("/");0===a?n.set(t[e],i+"/"):n.set(t[e],i+"/…/")}console.assert(new Set(n.values()).size===t.length,"Differentiators should be unique.")}function $(e){const t=new Map,n=new Map;for(const{name:n,url:o}of e)t.has(n)||t.set(n,[]),t.get(n)?.push(o);for(const e of t.values())e.length>1&&L(e,n);return n}var O=Object.freeze({__proto__:null,findNextNodeForKeyboardNavigation:T,getDifferentiatingPathMap:$});const A={pauseOnUncaughtExceptions:"Pause on uncaught exceptions",pauseOnCaughtExceptions:"Pause on caught exceptions",checked:"checked",unchecked:"unchecked",indeterminate:"mixed",breakpointHit:"{PH1} breakpoint hit",removeAllBreakpointsInFile:"Remove all breakpoints in file",disableAllBreakpointsInFile:"Disable all breakpoints in file",enableAllBreakpointsInFile:"Enable all breakpoints in file",editCondition:"Edit condition",editLogpoint:"Edit logpoint",removeBreakpoint:"Remove breakpoint",removeAllBreakpoints:"Remove all breakpoints",removeOtherBreakpoints:"Remove other breakpoints",revealLocation:"Reveal location",conditionCode:"Condition: {PH1}",logpointCode:"Logpoint: {PH1}"},M=n.i18n.registerUIStrings("panels/sources/components/BreakpointsView.ts",A),N=n.i18n.getLocalizedString.bind(void 0,M),D=g.RenderCoordinator.RenderCoordinator.instance();let R,H;class U{#e;#t=new WeakMap;#n;#o;#i;#a;#r;#s;#c=!1;#l=!1;constructor(t,n){this.#a=e.Settings.Settings.instance().createSetting("collapsedFiles",[]),this.#r=new Set(this.#a.get()),this.#e=t,this.#e.addEventListener(s.BreakpointManager.Events.BreakpointAdded,this.#d,this),this.#e.addEventListener(s.BreakpointManager.Events.BreakpointRemoved,this.#p,this),this.#n=n.moduleSetting("breakpointsActive"),this.#n.addChangeListener(this.update,this),this.#o=n.moduleSetting("pauseOnUncaughtException"),this.#o.addChangeListener(this.update,this),this.#i=n.moduleSetting("pauseOnCaughtException"),this.#i.addChangeListener(this.update,this)}static instance({forceNew:t,breakpointManager:n,settings:o}={forceNew:null,breakpointManager:s.BreakpointManager.BreakpointManager.instance(),settings:e.Settings.Settings.instance()}){return H&&!t||(H=new U(n,o)),H}static removeInstance(){H=null}static targetSupportsIndependentPauseOnExceptionToggles(){return!a.TargetManager.TargetManager.instance().targets().some((e=>e.type()===a.Target.Type.Node))}flavorChanged(e){this.update()}breakpointEditFinished(e,n){this.#s&&this.#s===e&&(n&&t.userMetrics.actionTaken(t.UserMetrics.Action.BreakpointConditionEditedFromSidebar),this.#s=void 0)}breakpointStateChanged(e,t){this.#h(e).forEach((e=>{e.breakpoint.setEnabled(t)}))}async breakpointEdited(t,n){const o=this.#h(t);let i;for(const e of o)(!i||e.uiLocation.compareTo(i.uiLocation)<0)&&(i=e);i&&(n&&(this.#s=i.breakpoint),await e.Revealer.reveal(i))}breakpointsRemoved(e){e.flatMap((e=>this.#h(e))).forEach((e=>e?.breakpoint.remove(!1)))}expandedStateChanged(e,t){t?this.#r.delete(e):this.#r.add(e),this.#u()}async jumpToSource(t){const n=this.#h(t).map((e=>e.uiLocation));let o;for(const e of n)(!o||e.compareTo(o)<0)&&(o=e);o&&await e.Revealer.reveal(o)}setPauseOnUncaughtExceptions(e){this.#o.set(e)}setPauseOnCaughtExceptions(e){this.#i.set(e)}async update(){if(this.#c=!0,!this.#l){for(this.#l=!0;this.#c;){this.#c=!1;const e=await this.getUpdatedBreakpointViewData();F.instance().data=e}this.#l=!1}}async getUpdatedBreakpointViewData(){const e=this.#n.get(),t=U.targetSupportsIndependentPauseOnExceptionToggles(),n=this.#o.get(),o=this.#i.get(),i=this.#g();if(!i.length)return{breakpointsActive:e,pauseOnCaughtExceptions:o,pauseOnUncaughtExceptions:n,independentPauseToggles:t,groups:[]};const a=this.#m(i),r=this.#b(i),[s,l]=await Promise.all([this.#k(a),this.#f()]),d=new Map;for(let e=0;e<a.length;e++){const t=a[e],n=t[0],o=n.uiLocation.uiSourceCode.url(),i=n.uiLocation.uiSourceCode.canononicalScriptId(),p=n.uiLocation,h=null!==l&&t.some((e=>e.uiLocation.id()===l.id())),u=r.get(p.lineId()).size>1,g=p.lineAndColumnText(u),m=s[e],b=m instanceof c.Text.Text?m.lineAt(p.lineNumber):m.lines[m.bytecodeOffsetToLineNumber(p.columnNumber??0)]??"";h&&this.#r.has(o)&&(this.#r.delete(o),this.#u());const k=!this.#r.has(o),f=this.#x(t),{type:x,hoverText:v}=this.#v(t),y={id:n.breakpoint.breakpointStorageId(),location:g,codeSnippet:b,isHit:h,status:f,type:x,hoverText:v};this.#t.set(y,t);let w=d.get(i);if(w)w.breakpointItems.push(y),w.expanded||=k;else{const e=this.#e.supportsConditionalBreakpoints(p.uiSourceCode);w={url:o,name:p.uiSourceCode.displayName(),editable:e,expanded:k,breakpointItems:[y]},d.set(i,w)}}return{breakpointsActive:e,pauseOnCaughtExceptions:o,pauseOnUncaughtExceptions:n,independentPauseToggles:t,groups:Array.from(d.values())}}#d(e){const t=e.data.breakpoint;return"USER_ACTION"===t.origin&&this.#r.has(t.url())&&(this.#r.delete(t.url()),this.#u()),this.update()}#p(e){const t=e.data.breakpoint;if(this.#r.has(t.url())){s.BreakpointManager.BreakpointManager.instance().allBreakpointLocations().some((e=>e.breakpoint.url()===t.url()))||(this.#r.delete(t.url()),this.#u())}return this.update()}#u(){this.#a.set(Array.from(this.#r.values()))}#v(e){const t=e.find((e=>Boolean(e.breakpoint.condition())))?.breakpoint;if(!t||!t.condition())return{type:"REGULAR_BREAKPOINT"};const n=t.condition();return t.isLogpoint()?{type:"LOGPOINT",hoverText:n}:{type:"CONDITIONAL_BREAKPOINT",hoverText:n}}#h(e){const t=this.#t.get(e);return i(t),t}async#f(){const e=m.Context.Context.instance().flavor(a.DebuggerModel.DebuggerPausedDetails);return e&&e.callFrames.length?await r.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance().rawLocationToUILocation(e.callFrames[0].location()):null}#g(){const e=this.#e.allBreakpointLocations().filter((e=>e.uiLocation.uiSourceCode.project().type()!==l.Workspace.projectTypes.Debugger));e.sort(((e,t)=>e.uiLocation.compareTo(t.uiLocation)));const t=[];let n=null,o=null;for(const i of e)(i.breakpoint!==n||o&&i.uiLocation.compareTo(o))&&(t.push(i),n=i.breakpoint,o=i.uiLocation);return t}#m(e){const t=new o.MapUtilities.Multimap;for(const n of e){const e=n.uiLocation;t.set(e.id(),n)}const n=[];for(const e of t.keysArray()){const o=Array.from(t.get(e));o.length&&n.push(o)}return n}#b(e){const t=new o.MapUtilities.Multimap;for(const n of e){const e=n.uiLocation;t.set(e.lineId(),e.id())}return t}#x(e){const t=e.some((e=>e.breakpoint.enabled())),n=e.some((e=>!e.breakpoint.enabled()));let o;return o=t?n?"INDETERMINATE":"ENABLED":"DISABLED",o}#k(e){const t=new Map;return Promise.all(e.map((async([{uiLocation:{uiSourceCode:e}}])=>{const n=await e.requestContent({cachedWasmOnly:!0});if("wasmDisassemblyInfo"in n&&n.wasmDisassemblyInfo)return n.wasmDisassemblyInfo;const o=n.content||"";if(t.has(o))return t.get(o);const i=new c.Text.Text(o);return t.set(o,i),i})))}}class F extends u.LegacyWrapper.WrappableComponent{#y;static instance({forceNew:e}={forceNew:!1}){return R&&!e||(R=u.LegacyWrapper.legacyWrapper(m.Widget.Widget,new F)),R.getComponent()}constructor(){super(),this.#y=U.instance(),this.#y.update()}static litTagName=b.literal`devtools-breakpoint-view`;#w=this.attachShadow({mode:"open"});#S=!1;#E=!1;#C=!1;#I=!0;#T=[];#B=new Map;set data(e){this.#S=e.pauseOnUncaughtExceptions,this.#E=e.pauseOnCaughtExceptions,this.#C=e.independentPauseToggles,this.#I=e.breakpointsActive,this.#T=e.groups;const t=[];for(const n of e.groups)t.push({name:n.name,url:n.url});this.#B=$(t),this.render()}connectedCallback(){this.#w.adoptedStyleSheets=[h.checkboxStyles,x]}async render(){await D.write("BreakpointsView render",(()=>{const e=async e=>{const t=e.currentTarget;await this.#L(t),e.consume()},t=(this.#C||this.#S)&&this.#E,n=!this.#C&&!this.#S,o=b.html` <div class="pause-on-uncaught-exceptions" tabindex="0" @click="${e}" @keydown="${this.#$}" data-first-pause> <label class="checkbox-label"> <input type="checkbox" tabindex="-1" ?checked="${this.#S}" @change="${this.#O.bind(this)}"> <span>${N(A.pauseOnUncaughtExceptions)}</span> </label> </div> <div class="pause-on-caught-exceptions" tabindex="-1" @click="${e}" @keydown="${this.#$}" data-last-pause> <label class="checkbox-label"> <input data-pause-on-caught-checkbox type="checkbox" tabindex="-1" ?checked="${t}" ?disabled="${n}" @change="${this.#A.bind(this)}"> <span>${N(A.pauseOnCaughtExceptions)}</span> </label> </div> <div role="tree"> ${b.Directives.repeat(this.#T,(e=>e.url),((e,t)=>b.html`${this.#M(e,t)}`))} </div>`;b.render(o,this.#w,{host:this})})),await D.write("make pause-on-exceptions focusable",(()=>{if(null===this.#w.querySelector('[tabindex="0"]')){this.#w.querySelector("[data-first-pause]")?.setAttribute("tabindex","0")}}))}async#$(e){if(e.target&&e.target instanceof HTMLElement){if("Home"===e.key||"End"===e.key)return e.consume(!0),this.#N(e.key);if(o.KeyboardUtilities.keyIsArrowKey(e.key))return e.consume(!0),this.#D(e.key,e.target);if(o.KeyboardUtilities.isEnterOrSpaceKey(e)){const t=e.currentTarget;await this.#L(t);const n=t.getElementsByTagName("input");1===n.length&&(n[0].checked=!n[0].checked),e.consume()}}}async#L(e){e&&D.write("focus on selected element",(()=>{this.#w.querySelector('[tabindex="0"]')?.setAttribute("tabindex","-1"),e.setAttribute("tabindex","0"),e.focus()}))}async#D(e,t){const n=await T(t,e,((e,t)=>t?D.write("expand",(()=>{e.setAttribute("open","")})):D.write("expand",(()=>{e.removeAttribute("open")}))));return this.#L(n)}async#N(e){if("Home"===e){const e=this.#w.querySelector("[data-first-pause]");return this.#L(e)}if("End"===e){const e=this.#T.length;if(0===e){const e=this.#w.querySelector("[data-last-pause]");return this.#L(e)}const t=e-1;if(this.#T[t].expanded){const e=this.#w.querySelector("[data-last-group] > [data-last-breakpoint]");return this.#L(e)}const n=this.#w.querySelector("[data-last-group] > summary");return this.#L(n)}}#R(e){const n="LOGPOINT"===e.type?N(A.editLogpoint):N(A.editCondition);return b.html` <button data-edit-breakpoint @click="${n=>{t.userMetrics.breakpointEditDialogRevealedFrom(1),this.#y.breakpointEdited(e,!0),n.consume()}}" title="${n}"> <${p.Icon.Icon.litTagName} .data="${{iconName:"edit",width:"16px",height:"16px",color:"var(--icon-default)"}}"> </${p.Icon.Icon.litTagName}> </button> `}#H(e,n,o){return b.html` <button data-remove-breakpoint @click="${n=>{t.userMetrics.actionTaken(o),this.#y.breakpointsRemoved(e),n.consume()}}" title="${n}" aria-label="${n}"> <${p.Icon.Icon.litTagName} .data="${{iconName:"cross",width:"20px",height:"20px",color:"var(--icon-default)"}}" }> </${p.Icon.Icon.litTagName}> </button> `}#U(e,n){const{breakpointItems:o}=n,i=new m.ContextMenu.ContextMenu(e);i.defaultSection().appendItem(N(A.removeAllBreakpointsInFile),(()=>{t.userMetrics.actionTaken(t.UserMetrics.Action.BreakpointsInFileRemovedFromContextMenu),this.#y.breakpointsRemoved(o)}));const a=this.#T.filter((e=>e!==n));i.defaultSection().appendItem(N(A.removeOtherBreakpoints),(()=>{const e=a.map((({breakpointItems:e})=>e)).flat();this.#y.breakpointsRemoved(e)}),0===a.length),i.defaultSection().appendItem(N(A.removeAllBreakpoints),(()=>{const e=this.#T.map((({breakpointItems:e})=>e)).flat();this.#y.breakpointsRemoved(e)}));const r=o.filter((e=>"ENABLED"!==e.status));i.debugSection().appendItem(N(A.enableAllBreakpointsInFile),(()=>{t.userMetrics.actionTaken(t.UserMetrics.Action.BreakpointsInFileEnabledDisabledFromContextMenu);for(const e of r)this.#y.breakpointStateChanged(e,!0)}),0===r.length);const s=o.filter((e=>"DISABLED"!==e.status));i.debugSection().appendItem(N(A.disableAllBreakpointsInFile),(()=>{t.userMetrics.actionTaken(t.UserMetrics.Action.BreakpointsInFileEnabledDisabledFromContextMenu);for(const e of s)this.#y.breakpointStateChanged(e,!1)}),0===s.length),i.show()}#M(e,n){const o={active:this.#I};return b.html` <details class="${b.Directives.classMap(o)}" ?data-first-group="${0===n}" ?data-last-group="${n===this.#T.length-1}" role="group" aria-label="${e.name}" aria-description="${e.url}" ?open="${b.Directives.live(e.expanded)}" @toggle="${t=>{const n=t.target;e.expanded=n.open,this.#y.expandedStateChanged(e.url,e.expanded)}}"> <summary @contextmenu="${t=>{this.#U(t,e),t.consume()}}" tabindex="-1" @keydown="${this.#$}" @click="${async e=>{const n=e.currentTarget;await this.#L(n),t.userMetrics.actionTaken(t.UserMetrics.Action.BreakpointGroupExpandedStateChanged),e.consume()}}"> <span class="group-header" aria-hidden="true"><span class="group-icon-or-disable">${this.#F()}${this.#P(e)}</span><span class="group-header-title" title="${e.url}">${e.name}<span class="group-header-differentiator">${this.#B.get(e.url)}</span></span></span> <span class="group-hover-actions"> ${this.#H(e.breakpointItems,N(A.removeAllBreakpointsInFile),t.UserMetrics.Action.BreakpointsInFileRemovedFromRemoveButton)} </span> </summary> ${b.Directives.repeat(e.breakpointItems,(e=>e.id),((t,o)=>this.#j(t,e.editable,n,o)))} </details> `}#P(e){const n=e.breakpointItems.some((e=>"ENABLED"===e.status));return b.html` <input class="group-checkbox" type="checkbox" aria-label="" .checked="${n}" @change="${n=>{t.userMetrics.actionTaken(t.UserMetrics.Action.BreakpointsInFileCheckboxToggled);const o=n.target,i=o.checked?"ENABLED":"DISABLED";e.breakpointItems.filter((e=>e.status!==i)).forEach((e=>{this.#y.breakpointStateChanged(e,o.checked)})),n.consume()}}" tabindex="-1"> `}#F(){return b.html` <${p.Icon.Icon.litTagName} class="file-icon" .data="${{iconName:"file-script",color:"var(--icon-file-script)",width:"18px",height:"18px"}}"></${p.Icon.Icon.litTagName}> `}#W(e,n,o){const i=new m.ContextMenu.ContextMenu(e),a="LOGPOINT"===n.type?N(A.editLogpoint):N(A.editCondition);i.revealSection().appendItem(a,(()=>{t.userMetrics.breakpointEditDialogRevealedFrom(0),this.#y.breakpointEdited(n,!1)}),!o),i.defaultSection().appendItem(N(A.removeBreakpoint),(()=>{t.userMetrics.actionTaken(t.UserMetrics.Action.BreakpointRemovedFromContextMenu),this.#y.breakpointsRemoved([n])}));const r=this.#T.map((({breakpointItems:e})=>e)).flat().filter((e=>e!==n));i.defaultSection().appendItem(N(A.removeOtherBreakpoints),(()=>{this.#y.breakpointsRemoved(r)}),0===r.length),i.defaultSection().appendItem(N(A.removeAllBreakpoints),(()=>{const e=this.#T.map((({breakpointItems:e})=>e)).flat();this.#y.breakpointsRemoved(e)})),i.editSection().appendItem(N(A.revealLocation),(()=>{this.#y.jumpToSource(n)})),i.show()}#j(e,n,i,a){const r={"breakpoint-item":!0,hit:e.isHit,"conditional-breakpoint":"CONDITIONAL_BREAKPOINT"===e.type,logpoint:"LOGPOINT"===e.type},s=this.#_(e),c=o.StringUtilities.trimEndWithMaxLength(e.codeSnippet,200),l=this.#G(e.type,e.hoverText),d=this.#T[i].breakpointItems;return b.html` <div class="${b.Directives.classMap(r)}" ?data-first-breakpoint="${0===a}" ?data-last-breakpoint="${a===d.length-1}" aria-label="${s}" role="treeitem" tabindex="-1" @contextmenu="${t=>{this.#W(t,e,n),t.consume()}}" @click="${async e=>{const t=e.currentTarget;await this.#L(t),e.consume()}}" @keydown="${this.#$}"> <label class="checkbox-label"> <span class="type-indicator"></span> <input type="checkbox" aria-label="${e.location}" ?indeterminate="${"INDETERMINATE"===e.status}" .checked="${"ENABLED"===e.status}" @change="${t=>this.#V(t,e)}" tabindex="-1"> </label> <span class="code-snippet" @click="${t=>{this.#y.jumpToSource(e),t.consume()}}" title="${l}">${c}</span> <span class="breakpoint-item-location-or-actions"> ${n?this.#R(e):b.nothing} ${this.#H([e],N(A.removeBreakpoint),t.UserMetrics.Action.BreakpointRemovedFromRemoveButton)} <span class="location">${e.location}</span> </span> </div> `}#G(e,t){switch(e){case"REGULAR_BREAKPOINT":return;case"CONDITIONAL_BREAKPOINT":return i(t),N(A.conditionCode,{PH1:t});case"LOGPOINT":return i(t),N(A.logpointCode,{PH1:t})}}#_(e){let t;switch(e.status){case"ENABLED":t=N(A.checked);break;case"DISABLED":t=N(A.unchecked);break;case"INDETERMINATE":t=N(A.indeterminate)}return e.isHit?N(A.breakpointHit,{PH1:t}):t}#V(e,t){const n=e.target;this.#y.breakpointStateChanged(t,n.checked)}#A(e){const{checked:t}=e.target;this.#y.setPauseOnCaughtExceptions(t)}#O(e){const{checked:t}=e.target;if(!this.#C){const e=this.#w.querySelector("[data-pause-on-caught-checkbox]");i(e),!t&&e.checked&&e.click(),D.write("update pause-on-uncaught-exception",(()=>{e.disabled=!t}))}this.#y.setPauseOnUncaughtExceptions(t)}}d.CustomElements.defineComponent("devtools-breakpoint-view",F);var P=Object.freeze({__proto__:null,BreakpointsSidebarController:U,BreakpointsView:F});const j=new CSSStyleSheet;j.replaceSync(":host{flex-grow:1;padding:6px}.row{display:flex;flex-direction:row;color:var(--color-syntax-1);font-family:var(--monospace-font-family);font-size:var(--monospace-font-size);align-items:center;line-height:24px}.row devtools-button{line-height:1;margin-left:0.1em}.row devtools-button:nth-of-type(1){margin-left:0.8em}.padded{margin-left:2em}.separator{margin-right:0.5em;color:var(--color-text-primary)}.editable{cursor:text;color:var(--color-text-primary);overflow-wrap:break-word;min-height:18px;line-height:18px;min-width:0.5em;background:transparent;border:none;outline:none;display:inline-block}.editable.red{color:var(--color-syntax-1)}.editable:hover,\n.editable:focus{box-shadow:0 0 0 1px var(--color-details-hairline);border-radius:2px}.row .inline-button{opacity:0%;visibility:hidden;transition:opacity 200ms}.row:focus-within .inline-button,\n.row:hover .inline-button{opacity:100%;visibility:visible}.center-wrapper{height:100%;display:flex;justify-content:center;align-items:center}.centered{margin:1em;max-width:300px;text-align:center}.error-header{font-weight:bold;margin-bottom:1em}.error-body{line-height:1.5em;color:var(--color-text-secondary)}.add-block{margin-top:3px}.header-name,\n.header-value{min-width:min-content}.link{color:var(--color-link);text-decoration:underline;cursor:pointer;outline-offset:2px;padding:0}.learn-more-row{line-height:24px}\n/*# sourceURL=HeadersView.css */\n");const W={addHeader:"Add a header",removeHeader:"Remove this header",removeBlock:"Remove this '`ApplyTo`'-section",errorWhenParsing:"Error when parsing ''{PH1}''.",parsingErrorExplainer:"This is most likely due to a syntax error in ''{PH1}''. Try opening this file in an external editor to fix the error or delete the file and re-create the override.",addOverrideRule:"Add override rule",learnMore:"Learn more"},_=n.i18n.registerUIStrings("panels/sources/components/HeadersView.ts",W),G=n.i18n.getLocalizedString.bind(void 0,_),V=new URL("../../../Images/plus.svg",import.meta.url).toString(),q=new URL("../../../Images/bin.svg",import.meta.url).toString();class z extends m.View.SimpleView{#q=new K;#z;constructor(e){super(n.i18n.lockedString("HeadersView")),this.#z=e,this.#z.addEventListener(l.UISourceCode.Events.WorkingCopyChanged,this.#K,this),this.#z.addEventListener(l.UISourceCode.Events.WorkingCopyCommitted,this.#J,this),this.element.appendChild(this.#q),this.#Q()}async#Q(){const e=await this.#z.requestContent();this.#X(e.content||"")}#X(e){let t=!1,n=[];e=e||"[]";try{if(n=JSON.parse(e),!n.every(k.NetworkPersistenceManager.isHeaderOverride))throw"Type mismatch after parsing"}catch(e){console.error("Failed to parse",this.#z.url(),"for locally overriding headers."),t=!0}this.#q.data={headerOverrides:n,uiSourceCode:this.#z,parsingError:t}}#K(){this.#X(this.#z.workingCopy())}#J(){this.#X(this.#z.workingCopy())}getComponent(){return this.#q}dispose(){this.#z.removeEventListener(l.UISourceCode.Events.WorkingCopyChanged,this.#K,this),this.#z.removeEventListener(l.UISourceCode.Events.WorkingCopyCommitted,this.#J,this)}}class K extends HTMLElement{static litTagName=b.literal`devtools-sources-headers-view`;#w=this.attachShadow({mode:"open"});#Y=this.#Z.bind(this);#ee=[];#z=null;#te=!1;#ne=null;#oe="";constructor(){super(),this.#w.addEventListener("focusin",this.#ie.bind(this)),this.#w.addEventListener("focusout",this.#ae.bind(this)),this.#w.addEventListener("click",this.#re.bind(this)),this.#w.addEventListener("input",this.#se.bind(this)),this.#w.addEventListener("keydown",this.#ce.bind(this)),this.#w.addEventListener("paste",this.#le.bind(this)),this.addEventListener("contextmenu",this.#de.bind(this))}connectedCallback(){this.#w.adoptedStyleSheets=[j]}set data(e){this.#ee=e.headerOverrides,this.#z=e.uiSourceCode,this.#te=e.parsingError,d.ScheduledRender.scheduleRender(this,this.#Y)}#ce(e){const t=e.target;if(!t.matches(".editable"))return;const n=e;!t.matches(".header-name")||""!==t.innerText||"Enter"!==n.key&&"Tab"!==n.key?"Enter"===n.key?(e.preventDefault(),t.blur(),this.#pe(t)):"Escape"===n.key&&(e.consume(),t.innerText=this.#oe,t.blur(),this.#he(t)):(e.preventDefault(),t.blur())}#pe(e){const t=Array.from(this.#w.querySelectorAll(".editable")),n=t.indexOf(e);-1!==n&&n+1<t.length&&t[n+1].focus()}#ue(e){const t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t?.removeAllRanges(),t?.addRange(n)}#ie(e){const t=e.target;t.matches(".editable")&&(this.#ue(t),this.#oe=t.innerText)}#ae(e){const t=e.target;if(""===t.innerText){const e=t.closest(".row"),n=Number(e.dataset.blockIndex),o=Number(e.dataset.headerIndex);t.matches(".apply-to")?(t.innerText="*",this.#ee[n].applyTo="*",this.#ge()):t.matches(".header-name")&&this.#me(n,o)}window.getSelection()?.removeAllRanges(),this.#z?.commitWorkingCopy()}#de(e){if(!this.#z)return;const t=new m.ContextMenu.ContextMenu(e);t.appendApplicableItems(this.#z),t.show()}#be(e){const t=new Set(e.map((e=>e.name)));let n=1;for(;t.has("header-name-"+n);)n++;return"header-name-"+n}#re(e){const t=e.target,n=t.closest(".row"),o=Number(n?.dataset.blockIndex||0),i=Number(n?.dataset.headerIndex||0);t.matches(".add-header")?(this.#ee[o].headers.splice(i+1,0,{name:this.#be(this.#ee[o].headers),value:"header value"}),this.#ne={blockIndex:o,headerIndex:i+1},this.#ge()):t.matches(".remove-header")?this.#me(o,i):t.matches(".add-block")?(this.#ee.push({applyTo:"*",headers:[{name:"header-name-1",value:"header value"}]}),this.#ne={blockIndex:this.#ee.length-1},this.#ge()):t.matches(".remove-block")&&(this.#ee.splice(o,1),this.#ge())}#me(e,t){this.#ee[e].headers.splice(t,1),0===this.#ee[e].headers.length&&this.#ee[e].headers.push({name:this.#be(this.#ee[e].headers),value:"header value"}),this.#ge()}#se(e){this.#he(e.target)}#he(e){const t=e.closest(".row"),n=Number(t.dataset.blockIndex),o=Number(t.dataset.headerIndex);e.matches(".header-name")&&(this.#ee[n].headers[o].name=e.innerText,this.#ge()),e.matches(".header-value")&&(this.#ee[n].headers[o].value=e.innerText,this.#ge()),e.matches(".apply-to")&&(this.#ee[n].applyTo=e.innerText,this.#ge())}#ge(){this.#z?.setWorkingCopy(JSON.stringify(this.#ee,null,2)),t.userMetrics.actionTaken(t.UserMetrics.Action.HeaderOverrideHeadersFileEdited)}#le(e){const t=e;if(e.preventDefault(),t.clipboardData){const n=t.clipboardData.getData("text/plain"),o=this.#w.getSelection()?.getRangeAt(0);if(!o)return;o.deleteContents();const i=document.createTextNode(n);o.insertNode(i),o.selectNodeContents(i),o.collapse(!1);const a=window.getSelection();a?.removeAllRanges(),a?.addRange(o),this.#he(e.target)}}#Z(){if(!d.ScheduledRender.isScheduledRender(this))throw new Error("HeadersView render was not scheduled");if(this.#te){const e=this.#z?.name()||".headers";b.render(b.html` <div class="center-wrapper"> <div class="centered"> <div class="error-header">${G(W.errorWhenParsing,{PH1:e})}</div> <div class="error-body">${G(W.parsingErrorExplainer,{PH1:e})}</div> </div> </div> `,this.#w,{host:this})}else if(b.render(b.html` ${this.#ee.map(((e,t)=>b.html` ${this.#ke(e.applyTo,t)} ${e.headers.map(((e,n)=>b.html` ${this.#fe(e,t,n)} `))} `))} <${f.Button.Button.litTagName} .variant="${"secondary"}" class="add-block"> ${G(W.addOverrideRule)} </${f.Button.Button.litTagName}> <div class="learn-more-row"> <x-link href="https://goo.gle/devtools-override" class="link">${G(W.learnMore)}</x-link> </div> `,this.#w,{host:this}),this.#ne){let e=null;e=this.#ne.headerIndex?this.#w.querySelector(`[data-block-index="${this.#ne.blockIndex}"][data-header-index="${this.#ne.headerIndex}"] .header-name`):this.#w.querySelector(`[data-block-index="${this.#ne.blockIndex}"] .apply-to`),e&&e.focus(),this.#ne=null}}#ke(e,t){return b.html` <div class="row" data-block-index="${t}"> <div>${n.i18n.lockedString("Apply to")}</div> <div class="separator">:</div> ${this.#xe(e,"apply-to")} <${f.Button.Button.litTagName} title="${G(W.removeBlock)}" .size="${"SMALL"}" .iconUrl="${q}" .iconWidth="${"14px"}" .iconHeight="${"14px"}" .variant="${"round"}" class="remove-block inline-button"></${f.Button.Button.litTagName}> </div> `}#fe(e,t,n){return b.html` <div class="row padded" data-block-index="${t}" data-header-index="${n}"> ${this.#xe(e.name,"header-name red")} <div class="separator">:</div> ${this.#xe(e.value,"header-value")} <${f.Button.Button.litTagName} title="${G(W.addHeader)}" .size="${"SMALL"}" .iconUrl="${V}" .iconWidth="${"20px"}" .iconHeight="${"20px"}" .variant="${"round"}" class="add-header inline-button"></${f.Button.Button.litTagName}> <${f.Button.Button.litTagName} title="${G(W.removeHeader)}" .size="${"SMALL"}" .iconUrl="${q}" .iconWidth="${"14px"}" .iconHeight="${"14px"}" .variant="${"round"}" class="remove-header inline-button"></${f.Button.Button.litTagName}> </div> `}#xe(e,t){return b.html`<span contenteditable="true" class="editable ${t}" tabindex="0" .innerText="${b.Directives.live(e)}"></span>`}}d.CustomElements.defineComponent("devtools-sources-headers-view",K);var J=Object.freeze({__proto__:null,HeadersView:z,HeadersViewComponent:K});export{P as BreakpointsView,O as BreakpointsViewUtils,J as HeadersView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"../../models/source_map_scopes/source_map_scopes.js";import*as o from"./sources.js";self.Sources=self.Sources||{},Sources=Sources||{},Sources.AddSourceMapURLDialog=o.AddSourceMapURLDialog.AddSourceMapURLDialog,Sources.BreakpointEditDialog=o.BreakpointEditDialog.BreakpointEditDialog,Sources.CallStackSidebarPane=o.CallStackSidebarPane.CallStackSidebarPane,Sources.CallStackSidebarPane._elementSymbol=o.CallStackSidebarPane.elementSymbol,Sources.CallStackSidebarPane._defaultMaxAsyncStackChainDepth=o.CallStackSidebarPane.defaultMaxAsyncStackChainDepth,Sources.CallStackSidebarPane.ActionDelegate=o.CallStackSidebarPane.ActionDelegate,Sources.CallStackSidebarPane.Item=o.CallStackSidebarPane.Item,Sources.CoveragePlugin=o.CoveragePlugin.CoveragePlugin,Sources.DebuggerPausedMessage=o.DebuggerPausedMessage.DebuggerPausedMessage,Sources.DebuggerPausedMessage.BreakpointTypeNouns=o.DebuggerPausedMessage.BreakpointTypeNouns,Sources.DebuggerPlugin=o.DebuggerPlugin.DebuggerPlugin,Sources.DebuggerPlugin.BreakpointDecoration=o.DebuggerPlugin.BreakpointDecoration,Sources.DebuggerPlugin.continueToLocationDecorationSymbol=o.DebuggerPlugin.continueToLocationDecorationSymbol,Sources.EditingLocationHistoryManager=o.EditingLocationHistoryManager.EditingLocationHistoryManager,Sources.EditingLocationHistoryManager.HistoryDepth=o.EditingLocationHistoryManager.HistoryDepth,Sources.EditingLocationHistoryEntry=o.EditingLocationHistoryManager.EditingLocationHistoryEntry,Sources.FilePathScoreFunction=o.FilePathScoreFunction.FilePathScoreFunction,Sources.FilteredUISourceCodeListProvider=o.FilteredUISourceCodeListProvider.FilteredUISourceCodeListProvider,Sources.GoToLineQuickOpen=o.GoToLineQuickOpen.GoToLineQuickOpen,Sources.InplaceFormatterEditorAction=o.InplaceFormatterEditorAction.InplaceFormatterEditorAction,Sources.NavigatorView=o.NavigatorView.NavigatorView,Sources.NavigatorView.Types=o.NavigatorView.Types,Sources.NavigatorFolderTreeElement=o.NavigatorView.NavigatorFolderTreeElement,Sources.NavigatorSourceTreeElement=o.NavigatorView.NavigatorSourceTreeElement,Sources.NavigatorTreeNode=o.NavigatorView.NavigatorTreeNode,Sources.NavigatorRootTreeNode=o.NavigatorView.NavigatorRootTreeNode,Sources.NavigatorUISourceCodeTreeNode=o.NavigatorView.NavigatorUISourceCodeTreeNode,Sources.NavigatorFolderTreeNode=o.NavigatorView.NavigatorFolderTreeNode,Sources.NavigatorGroupTreeNode=o.NavigatorView.NavigatorGroupTreeNode,Sources.OpenFileQuickOpen=o.OpenFileQuickOpen.OpenFileQuickOpen,Sources.OutlineQuickOpen=o.OutlineQuickOpen.OutlineQuickOpen,Sources.ScopeChainSidebarPane=o.ScopeChainSidebarPane.ScopeChainSidebarPane,Sources.ScopeChainSidebarPane.OpenLinearMemoryInspector=o.ScopeChainSidebarPane.OpenLinearMemoryInspector,Sources.SearchSourcesView=o.SearchSourcesView.SearchSourcesView,Sources.SearchSourcesView.ActionDelegate=o.SearchSourcesView.ActionDelegate,Sources.SnippetsPlugin=o.SnippetsPlugin.SnippetsPlugin,Sources.SourceMapNamesResolver={},Object.defineProperty(Sources.SourceMapNamesResolver,"_scopeResolvedForTest",{get:e.NamesResolver.getScopeResolvedForTest,set:e.NamesResolver.setScopeResolvedForTest}),Sources.SourceMapNamesResolver.resolveExpression=e.NamesResolver.resolveExpression,Sources.NetworkNavigatorView=o.SourcesNavigator.NetworkNavigatorView,Sources.FilesNavigatorView=o.SourcesNavigator.FilesNavigatorView,Sources.OverridesNavigatorView=o.SourcesNavigator.OverridesNavigatorView,Sources.ContentScriptsNavigatorView=o.SourcesNavigator.ContentScriptsNavigatorView,Sources.SnippetsNavigatorView=o.SourcesNavigator.SnippetsNavigatorView,Sources.ActionDelegate=o.SourcesNavigator.ActionDelegate,Sources.SourcesPanel=o.SourcesPanel.SourcesPanel,Sources.SourcesPanel._lastModificationTimeout=o.SourcesPanel.lastModificationTimeout,Sources.SourcesPanel.minToolbarWidth=o.SourcesPanel.minToolbarWidth,Sources.SourcesPanel.UILocationRevealer=o.SourcesPanel.UILocationRevealer,Sources.SourcesPanel.DebuggerLocationRevealer=o.SourcesPanel.DebuggerLocationRevealer,Sources.SourcesPanel.UISourceCodeRevealer=o.SourcesPanel.UISourceCodeRevealer,Sources.SourcesPanel.DebuggerPausedDetailsRevealer=o.SourcesPanel.DebuggerPausedDetailsRevealer,Sources.SourcesPanel.RevealingActionDelegate=o.SourcesPanel.RevealingActionDelegate,Sources.SourcesPanel.ActionDelegate=o.SourcesPanel.ActionDelegate,Sources.SourcesPanel.WrapperView=o.SourcesPanel.WrapperView,Sources.SourcesSearchScope=o.SourcesSearchScope.SourcesSearchScope,Sources.FileBasedSearchResult=o.SourcesSearchScope.FileBasedSearchResult,Sources.SourcesView=o.SourcesView.SourcesView,Sources.SourcesView.Events=o.SourcesView.Events,Sources.SourcesView.EditorAction=o.SourcesView.EditorAction,Sources.SourcesView.getRegisteredEditorActions=o.SourcesView.getRegisteredEditorActions,Sources.SourcesView.SwitchFileActionDelegate=o.SourcesView.SwitchFileActionDelegate,Sources.SourcesView.ActionDelegate=o.SourcesView.ActionDelegate,Sources.TabbedEditorContainer=o.TabbedEditorContainer.TabbedEditorContainer,Sources.TabbedEditorContainer.Events=o.TabbedEditorContainer.Events,Sources.TabbedEditorContainer.HistoryItem=o.TabbedEditorContainer.HistoryItem,Sources.TabbedEditorContainer.History=o.TabbedEditorContainer.History,Sources.TabbedEditorContainerDelegate=o.TabbedEditorContainer.TabbedEditorContainerDelegate,Sources.EditorContainerTabDelegate=o.TabbedEditorContainer.EditorContainerTabDelegate,Sources.ThreadsSidebarPane=o.ThreadsSidebarPane.ThreadsSidebarPane,Sources.UISourceCodeFrame=o.UISourceCodeFrame.UISourceCodeFrame,Sources.UISourceCodeFrame.RowMessage=o.UISourceCodeFrame.RowMessage,Sources.UISourceCodeFrame.RowMessageBucket=o.UISourceCodeFrame.RowMessageBucket,Sources.UISourceCodeFrame.Plugin=o.Plugin.Plugin,Sources.UISourceCodeFrame.Events=o.UISourceCodeFrame.Events,Sources.WatchExpressionsSidebarPane=o.WatchExpressionsSidebarPane.WatchExpressionsSidebarPane,Sources.WatchExpression=o.WatchExpressionsSidebarPane.WatchExpression;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"../../core/common/common.js";import*as t from"../../core/host/host.js";import*as i from"../../core/i18n/i18n.js";import*as o from"../../core/root/root.js";import*as n from"../../core/sdk/sdk.js";import*as a from"../../models/breakpoints/breakpoints.js";import*as s from"../../models/workspace/workspace.js";import*as r from"../../ui/legacy/components/object_ui/object_ui.js";import*as c from"../../ui/legacy/components/quick_open/quick_open.js";import*as l from"../../ui/legacy/legacy.js";const g={showSources:"Show Sources",sources:"Sources",showFilesystem:"Show Filesystem",filesystem:"Filesystem",showSnippets:"Show Snippets",snippets:"Snippets",showSearch:"Show Search",search:"Search",showQuickSource:"Show Quick source",quickSource:"Quick source",showThreads:"Show Threads",threads:"Threads",showScope:"Show Scope",scope:"Scope",showWatch:"Show Watch",watch:"Watch",showBreakpoints:"Show Breakpoints",breakpoints:"Breakpoints",pauseScriptExecution:"Pause script execution",resumeScriptExecution:"Resume script execution",stepOverNextFunctionCall:"Step over next function call",stepIntoNextFunctionCall:"Step into next function call",step:"Step",stepOutOfCurrentFunction:"Step out of current function",runSnippet:"Run snippet",deactivateBreakpoints:"Deactivate breakpoints",activateBreakpoints:"Activate breakpoints",addSelectedTextToWatches:"Add selected text to watches",evaluateSelectedTextInConsole:"Evaluate selected text in console",switchFile:"Switch file",rename:"Rename",closeAll:"Close All",jumpToPreviousEditingLocation:"Jump to previous editing location",jumpToNextEditingLocation:"Jump to next editing location",closeTheActiveTab:"Close the active tab",goToLine:"Go to line",goToAFunctionDeclarationruleSet:"Go to a function declaration/rule set",toggleBreakpoint:"Toggle breakpoint",toggleBreakpointEnabled:"Toggle breakpoint enabled",toggleBreakpointInputWindow:"Toggle breakpoint input window",save:"Save",saveAll:"Save all",createNewSnippet:"Create new snippet",addFolderToWorkspace:"Add folder to workspace",previousCallFrame:"Previous call frame",nextCallFrame:"Next call frame",incrementCssUnitBy:"Increment CSS unit by {PH1}",decrementCssUnitBy:"Decrement CSS unit by {PH1}",searchInAnonymousAndContent:"Search in anonymous and content scripts",doNotSearchInAnonymousAndContent:"Do not search in anonymous and content scripts",automaticallyRevealFilesIn:"Automatically reveal files in sidebar",doNotAutomaticallyRevealFilesIn:"Do not automatically reveal files in sidebar",enableJavascriptSourceMaps:"Enable JavaScript source maps",disableJavascriptSourceMaps:"Disable JavaScript source maps",enableTabMovesFocus:"Enable tab moves focus",disableTabMovesFocus:"Disable tab moves focus",detectIndentation:"Detect indentation",doNotDetectIndentation:"Do not detect indentation",autocompletion:"Autocompletion",enableAutocompletion:"Enable autocompletion",disableAutocompletion:"Disable autocompletion",bracketMatching:"Bracket matching",enableBracketMatching:"Enable bracket matching",disableBracketMatching:"Disable bracket matching",codeFolding:"Code folding",enableCodeFolding:"Enable code folding",disableCodeFolding:"Disable code folding",showWhitespaceCharacters:"Show whitespace characters:",doNotShowWhitespaceCharacters:"Do not show whitespace characters",none:"None",showAllWhitespaceCharacters:"Show all whitespace characters",all:"All",showTrailingWhitespaceCharacters:"Show trailing whitespace characters",trailing:"Trailing",displayVariableValuesInlineWhile:"Display variable values inline while debugging",doNotDisplayVariableValuesInline:"Do not display variable values inline while debugging",enableCssSourceMaps:"Enable CSS source maps",disableCssSourceMaps:"Disable CSS source maps",allowScrollingPastEndOfFile:"Allow scrolling past end of file",disallowScrollingPastEndOfFile:"Disallow scrolling past end of file",wasmAutoStepping:"When debugging wasm with debug information, do not pause on wasm bytecode if possible",enableWasmAutoStepping:"Enable wasm auto-stepping",disableWasmAutoStepping:"Disable wasm auto-stepping",goTo:"Go to",line:"Line",symbol:"Symbol",open:"Open",file:"File",disableAutoFocusOnDebuggerPaused:"Do not focus Sources panel when triggering a breakpoint",enableAutoFocusOnDebuggerPaused:"Focus Sources panel when triggering a breakpoint",toggleNavigatorSidebar:"Toggle navigator sidebar",toggleDebuggerSidebar:"Toggle debugger sidebar",nextEditorTab:"Next editor",previousEditorTab:"Previous editor"},d=i.i18n.registerUIStrings("panels/sources/sources-meta.ts",g),u=i.i18n.getLazilyComputedLocalizedString.bind(void 0,d);let S,p;async function y(){return S||(S=await import("./sources.js")),S}async function w(){return p||(p=await import("./components/components.js")),p}function b(e){return void 0===S?[]:e(S)}l.ViewManager.registerViewExtension({location:"panel",id:"sources",commandPrompt:u(g.showSources),title:u(g.sources),order:30,loadView:async()=>(await y()).SourcesPanel.SourcesPanel.instance()}),l.ViewManager.registerViewExtension({location:"navigator-view",id:"navigator-files",commandPrompt:u(g.showFilesystem),title:u(g.filesystem),order:3,persistence:"permanent",loadView:async()=>(await y()).SourcesNavigator.FilesNavigatorView.instance(),condition:o.Runtime.ConditionName.NOT_SOURCES_HIDE_ADD_FOLDER}),l.ViewManager.registerViewExtension({location:"navigator-view",id:"navigator-snippets",commandPrompt:u(g.showSnippets),title:u(g.snippets),order:6,persistence:"permanent",loadView:async()=>(await y()).SourcesNavigator.SnippetsNavigatorView.instance()}),l.ViewManager.registerViewExtension({location:"drawer-view",id:"sources.search-sources-tab",commandPrompt:u(g.showSearch),title:u(g.search),order:7,persistence:"closeable",loadView:async()=>(await y()).SearchSourcesView.SearchSourcesView.instance()}),l.ViewManager.registerViewExtension({location:"drawer-view",id:"sources.quick",commandPrompt:u(g.showQuickSource),title:u(g.quickSource),persistence:"closeable",order:1e3,loadView:async()=>(await y()).SourcesPanel.WrapperView.instance()}),l.ViewManager.registerViewExtension({id:"sources.threads",commandPrompt:u(g.showThreads),title:u(g.threads),persistence:"permanent",condition:o.Runtime.ConditionName.NOT_SOURCES_HIDE_ADD_FOLDER,loadView:async()=>(await y()).ThreadsSidebarPane.ThreadsSidebarPane.instance()}),l.ViewManager.registerViewExtension({id:"sources.scopeChain",commandPrompt:u(g.showScope),title:u(g.scope),persistence:"permanent",loadView:async()=>(await y()).ScopeChainSidebarPane.ScopeChainSidebarPane.instance()}),l.ViewManager.registerViewExtension({id:"sources.watch",commandPrompt:u(g.showWatch),title:u(g.watch),persistence:"permanent",loadView:async()=>(await y()).WatchExpressionsSidebarPane.WatchExpressionsSidebarPane.instance(),hasToolbar:!0}),l.ViewManager.registerViewExtension({id:"sources.jsBreakpoints",commandPrompt:u(g.showBreakpoints),title:u(g.breakpoints),persistence:"permanent",loadView:async()=>(await w()).BreakpointsView.BreakpointsView.instance().wrapper}),l.ActionRegistration.registerActionExtension({category:l.ActionRegistration.ActionCategory.DEBUGGER,actionId:"debugger.toggle-pause",iconClass:"pause",toggleable:!0,toggledIconClass:"resume",loadActionDelegate:async()=>(await y()).SourcesPanel.RevealingActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView,l.ShortcutRegistry.ForwardedShortcut])),options:[{value:!0,title:u(g.pauseScriptExecution)},{value:!1,title:u(g.resumeScriptExecution)}],bindings:[{shortcut:"F8",keybindSets:["devToolsDefault"]},{platform:"windows,linux",shortcut:"Ctrl+\\"},{shortcut:"F5",keybindSets:["vsCode"]},{shortcut:"Shift+F5",keybindSets:["vsCode"]},{platform:"mac",shortcut:"Meta+\\"}]}),l.ActionRegistration.registerActionExtension({category:l.ActionRegistration.ActionCategory.DEBUGGER,actionId:"debugger.step-over",loadActionDelegate:async()=>(await y()).SourcesPanel.ActionDelegate.instance(),title:u(g.stepOverNextFunctionCall),iconClass:"step-over",contextTypes:()=>[n.DebuggerModel.DebuggerPausedDetails],bindings:[{shortcut:"F10",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+'"},{platform:"mac",shortcut:"Meta+'"}]}),l.ActionRegistration.registerActionExtension({category:l.ActionRegistration.ActionCategory.DEBUGGER,actionId:"debugger.step-into",loadActionDelegate:async()=>(await y()).SourcesPanel.ActionDelegate.instance(),title:u(g.stepIntoNextFunctionCall),iconClass:"step-into",contextTypes:()=>[n.DebuggerModel.DebuggerPausedDetails],bindings:[{shortcut:"F11",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+;"},{platform:"mac",shortcut:"Meta+;"}]}),l.ActionRegistration.registerActionExtension({category:l.ActionRegistration.ActionCategory.DEBUGGER,actionId:"debugger.step",loadActionDelegate:async()=>(await y()).SourcesPanel.ActionDelegate.instance(),title:u(g.step),iconClass:"step",contextTypes:()=>[n.DebuggerModel.DebuggerPausedDetails],bindings:[{shortcut:"F9",keybindSets:["devToolsDefault"]}]}),l.ActionRegistration.registerActionExtension({category:l.ActionRegistration.ActionCategory.DEBUGGER,actionId:"debugger.step-out",loadActionDelegate:async()=>(await y()).SourcesPanel.ActionDelegate.instance(),title:u(g.stepOutOfCurrentFunction),iconClass:"step-out",contextTypes:()=>[n.DebuggerModel.DebuggerPausedDetails],bindings:[{shortcut:"Shift+F11",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Shift+Ctrl+;"},{platform:"mac",shortcut:"Shift+Meta+;"}]}),l.ActionRegistration.registerActionExtension({actionId:"debugger.run-snippet",category:l.ActionRegistration.ActionCategory.DEBUGGER,loadActionDelegate:async()=>(await y()).SourcesPanel.ActionDelegate.instance(),title:u(g.runSnippet),iconClass:"play",contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Enter"},{platform:"mac",shortcut:"Meta+Enter"}]}),l.ActionRegistration.registerActionExtension({category:l.ActionRegistration.ActionCategory.DEBUGGER,actionId:"debugger.toggle-breakpoints-active",iconClass:"breakpoint-crossed",toggledIconClass:"breakpoint-crossed-filled",toggleable:!0,loadActionDelegate:async()=>(await y()).SourcesPanel.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),options:[{value:!0,title:u(g.deactivateBreakpoints)},{value:!1,title:u(g.activateBreakpoints)}],bindings:[{platform:"windows,linux",shortcut:"Ctrl+F8"},{platform:"mac",shortcut:"Meta+F8"}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.add-to-watch",loadActionDelegate:async()=>(await y()).WatchExpressionsSidebarPane.WatchExpressionsSidebarPane.instance(),category:l.ActionRegistration.ActionCategory.DEBUGGER,title:u(g.addSelectedTextToWatches),contextTypes:()=>b((e=>[e.UISourceCodeFrame.UISourceCodeFrame])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+A"},{platform:"mac",shortcut:"Meta+Shift+A"}]}),l.ActionRegistration.registerActionExtension({actionId:"debugger.evaluate-selection",category:l.ActionRegistration.ActionCategory.DEBUGGER,loadActionDelegate:async()=>(await y()).SourcesPanel.ActionDelegate.instance(),title:u(g.evaluateSelectedTextInConsole),contextTypes:()=>b((e=>[e.UISourceCodeFrame.UISourceCodeFrame])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+E"},{platform:"mac",shortcut:"Meta+Shift+E"}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.switch-file",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.switchFile),loadActionDelegate:async()=>(await y()).SourcesView.SwitchFileActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{shortcut:"Alt+O"}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.rename",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.rename),bindings:[{platform:"windows,linux",shortcut:"F2"},{platform:"mac",shortcut:"Enter"}]}),l.ActionRegistration.registerActionExtension({category:l.ActionRegistration.ActionCategory.SOURCES,actionId:"sources.close-all",loadActionDelegate:async()=>(await y()).SourcesView.ActionDelegate.instance(),title:u(g.closeAll)}),l.ActionRegistration.registerActionExtension({actionId:"sources.jump-to-previous-location",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.jumpToPreviousEditingLocation),loadActionDelegate:async()=>(await y()).SourcesView.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{shortcut:"Alt+Minus"}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.jump-to-next-location",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.jumpToNextEditingLocation),loadActionDelegate:async()=>(await y()).SourcesView.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{shortcut:"Alt+Plus"}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.close-editor-tab",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.closeTheActiveTab),loadActionDelegate:async()=>(await y()).SourcesView.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{shortcut:"Alt+w"},{shortcut:"Ctrl+W",keybindSets:["vsCode"]},{platform:"windows",shortcut:"Ctrl+F4",keybindSets:["vsCode"]}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.next-editor-tab",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.nextEditorTab),loadActionDelegate:async()=>(await y()).SourcesView.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+PageDown",keybindSets:["devToolsDefault","vsCode"]},{platform:"mac",shortcut:"Meta+PageDown",keybindSets:["devToolsDefault","vsCode"]}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.previous-editor-tab",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.previousEditorTab),loadActionDelegate:async()=>(await y()).SourcesView.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+PageUp",keybindSets:["devToolsDefault","vsCode"]},{platform:"mac",shortcut:"Meta+PageUp",keybindSets:["devToolsDefault","vsCode"]}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.go-to-line",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.goToLine),loadActionDelegate:async()=>(await y()).SourcesView.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{shortcut:"Ctrl+g",keybindSets:["devToolsDefault","vsCode"]}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.go-to-member",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.goToAFunctionDeclarationruleSet),loadActionDelegate:async()=>(await y()).SourcesView.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+o",keybindSets:["devToolsDefault","vsCode"]},{platform:"mac",shortcut:"Meta+Shift+o",keybindSets:["devToolsDefault","vsCode"]},{platform:"mac",shortcut:"Meta+T",keybindSets:["vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+T",keybindSets:["vsCode"]},{shortcut:"F12",keybindSets:["vsCode"]}]}),l.ActionRegistration.registerActionExtension({actionId:"debugger.toggle-breakpoint",category:l.ActionRegistration.ActionCategory.DEBUGGER,title:u(g.toggleBreakpoint),bindings:[{platform:"windows,linux",shortcut:"Ctrl+b",keybindSets:["devToolsDefault"]},{platform:"mac",shortcut:"Meta+b",keybindSets:["devToolsDefault"]},{shortcut:"F9",keybindSets:["vsCode"]}]}),l.ActionRegistration.registerActionExtension({actionId:"debugger.toggle-breakpoint-enabled",category:l.ActionRegistration.ActionCategory.DEBUGGER,title:u(g.toggleBreakpointEnabled),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+b"},{platform:"mac",shortcut:"Meta+Shift+b"}]}),l.ActionRegistration.registerActionExtension({actionId:"debugger.breakpoint-input-window",category:l.ActionRegistration.ActionCategory.DEBUGGER,title:u(g.toggleBreakpointInputWindow),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Alt+b"},{platform:"mac",shortcut:"Meta+Alt+b"}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.save",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.save),loadActionDelegate:async()=>(await y()).SourcesView.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+s",keybindSets:["devToolsDefault","vsCode"]},{platform:"mac",shortcut:"Meta+s",keybindSets:["devToolsDefault","vsCode"]}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.save-all",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.saveAll),loadActionDelegate:async()=>(await y()).SourcesView.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+s"},{platform:"mac",shortcut:"Meta+Alt+s"},{platform:"windows,linux",shortcut:"Ctrl+K S",keybindSets:["vsCode"]},{platform:"mac",shortcut:"Meta+Alt+S",keybindSets:["vsCode"]}]}),l.ActionRegistration.registerActionExtension({category:l.ActionRegistration.ActionCategory.SOURCES,actionId:"sources.create-snippet",loadActionDelegate:async()=>(await y()).SourcesNavigator.ActionDelegate.instance(),title:u(g.createNewSnippet)}),t.InspectorFrontendHost.InspectorFrontendHostInstance.isHostedMode()||l.ActionRegistration.registerActionExtension({category:l.ActionRegistration.ActionCategory.SOURCES,actionId:"sources.add-folder-to-workspace",loadActionDelegate:async()=>(await y()).SourcesNavigator.ActionDelegate.instance(),iconClass:"plus",title:u(g.addFolderToWorkspace),condition:o.Runtime.ConditionName.NOT_SOURCES_HIDE_ADD_FOLDER}),l.ActionRegistration.registerActionExtension({category:l.ActionRegistration.ActionCategory.DEBUGGER,actionId:"debugger.previous-call-frame",loadActionDelegate:async()=>(await y()).CallStackSidebarPane.ActionDelegate.instance(),title:u(g.previousCallFrame),contextTypes:()=>[n.DebuggerModel.DebuggerPausedDetails],bindings:[{shortcut:"Ctrl+,"}]}),l.ActionRegistration.registerActionExtension({category:l.ActionRegistration.ActionCategory.DEBUGGER,actionId:"debugger.next-call-frame",loadActionDelegate:async()=>(await y()).CallStackSidebarPane.ActionDelegate.instance(),title:u(g.nextCallFrame),contextTypes:()=>[n.DebuggerModel.DebuggerPausedDetails],bindings:[{shortcut:"Ctrl+."}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.search",title:u(g.search),loadActionDelegate:async()=>(await y()).SearchSourcesView.ActionDelegate.instance(),category:l.ActionRegistration.ActionCategory.SOURCES,bindings:[{platform:"mac",shortcut:"Meta+Alt+F",keybindSets:["devToolsDefault"]},{platform:"windows,linux",shortcut:"Ctrl+Shift+F",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+Shift+J",keybindSets:["vsCode"]},{platform:"mac",shortcut:"Meta+Shift+F",keybindSets:["vsCode"]},{platform:"mac",shortcut:"Meta+Shift+J",keybindSets:["vsCode"]}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.increment-css",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.incrementCssUnitBy,{PH1:1}),bindings:[{shortcut:"Alt+Up"}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.increment-css-by-ten",title:u(g.incrementCssUnitBy,{PH1:10}),category:l.ActionRegistration.ActionCategory.SOURCES,bindings:[{shortcut:"Alt+PageUp"}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.decrement-css",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.decrementCssUnitBy,{PH1:1}),bindings:[{shortcut:"Alt+Down"}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.decrement-css-by-ten",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.decrementCssUnitBy,{PH1:10}),bindings:[{shortcut:"Alt+PageDown"}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.toggle-navigator-sidebar",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.toggleNavigatorSidebar),loadActionDelegate:async()=>(await y()).SourcesPanel.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+y",keybindSets:["devToolsDefault"]},{platform:"mac",shortcut:"Meta+Shift+y",keybindSets:["devToolsDefault"]},{platform:"windows,linux",shortcut:"Ctrl+b",keybindSets:["vsCode"]},{platform:"windows,linux",shortcut:"Meta+b",keybindSets:["vsCode"]}]}),l.ActionRegistration.registerActionExtension({actionId:"sources.toggle-debugger-sidebar",category:l.ActionRegistration.ActionCategory.SOURCES,title:u(g.toggleDebuggerSidebar),loadActionDelegate:async()=>(await y()).SourcesPanel.ActionDelegate.instance(),contextTypes:()=>b((e=>[e.SourcesView.SourcesView])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+h"},{platform:"mac",shortcut:"Meta+Shift+h"}]}),e.Settings.registerSettingExtension({settingName:"navigatorGroupByFolder",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!0}),e.Settings.registerSettingExtension({settingName:"navigatorGroupByAuthored",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!1}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.searchInAnonymousAndContent),settingName:"searchInAnonymousAndContentScripts",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!1,options:[{value:!0,title:u(g.searchInAnonymousAndContent)},{value:!1,title:u(g.doNotSearchInAnonymousAndContent)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.automaticallyRevealFilesIn),settingName:"autoRevealInNavigator",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!1,options:[{value:!0,title:u(g.automaticallyRevealFilesIn)},{value:!1,title:u(g.doNotAutomaticallyRevealFilesIn)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.enableJavascriptSourceMaps),settingName:"jsSourceMapsEnabled",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!0,options:[{value:!0,title:u(g.enableJavascriptSourceMaps)},{value:!1,title:u(g.disableJavascriptSourceMaps)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.enableTabMovesFocus),settingName:"textEditorTabMovesFocus",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!1,options:[{value:!0,title:u(g.enableTabMovesFocus)},{value:!1,title:u(g.disableTabMovesFocus)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.detectIndentation),settingName:"textEditorAutoDetectIndent",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!0,options:[{value:!0,title:u(g.detectIndentation)},{value:!1,title:u(g.doNotDetectIndentation)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.autocompletion),settingName:"textEditorAutocompletion",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!0,options:[{value:!0,title:u(g.enableAutocompletion)},{value:!1,title:u(g.disableAutocompletion)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,title:u(g.bracketMatching),settingName:"textEditorBracketMatching",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!0,options:[{value:!0,title:u(g.enableBracketMatching)},{value:!1,title:u(g.disableBracketMatching)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.codeFolding),settingName:"textEditorCodeFolding",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!1,options:[{value:!0,title:u(g.enableCodeFolding)},{value:!1,title:u(g.disableCodeFolding)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.showWhitespaceCharacters),settingName:"showWhitespacesInEditor",settingType:e.Settings.SettingType.ENUM,defaultValue:"original",options:[{title:u(g.doNotShowWhitespaceCharacters),text:u(g.none),value:"none"},{title:u(g.showAllWhitespaceCharacters),text:u(g.all),value:"all"},{title:u(g.showTrailingWhitespaceCharacters),text:u(g.trailing),value:"trailing"}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.displayVariableValuesInlineWhile),settingName:"inlineVariableValues",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!0,options:[{value:!0,title:u(g.displayVariableValuesInlineWhile)},{value:!1,title:u(g.doNotDisplayVariableValuesInline)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.enableAutoFocusOnDebuggerPaused),settingName:"autoFocusOnDebuggerPausedEnabled",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!0,options:[{value:!0,title:u(g.enableAutoFocusOnDebuggerPaused)},{value:!1,title:u(g.disableAutoFocusOnDebuggerPaused)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.enableCssSourceMaps),settingName:"cssSourceMapsEnabled",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!0,options:[{value:!0,title:u(g.enableCssSourceMaps)},{value:!1,title:u(g.disableCssSourceMaps)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Synced,title:u(g.allowScrollingPastEndOfFile),settingName:"allowScrollPastEof",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!0,options:[{value:!0,title:u(g.allowScrollingPastEndOfFile)},{value:!1,title:u(g.disallowScrollingPastEndOfFile)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.SOURCES,storageType:e.Settings.SettingStorageType.Local,title:u(g.wasmAutoStepping),settingName:"wasmAutoStepping",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!0,options:[{value:!0,title:u(g.enableWasmAutoStepping)},{value:!1,title:u(g.disableWasmAutoStepping)}]}),l.ViewManager.registerLocationResolver({name:"navigator-view",category:l.ViewManager.ViewLocationCategory.SOURCES,loadResolver:async()=>(await y()).SourcesPanel.SourcesPanel.instance()}),l.ViewManager.registerLocationResolver({name:"sources.sidebar-top",category:l.ViewManager.ViewLocationCategory.SOURCES,loadResolver:async()=>(await y()).SourcesPanel.SourcesPanel.instance()}),l.ViewManager.registerLocationResolver({name:"sources.sidebar-bottom",category:l.ViewManager.ViewLocationCategory.SOURCES,loadResolver:async()=>(await y()).SourcesPanel.SourcesPanel.instance()}),l.ViewManager.registerLocationResolver({name:"sources.sidebar-tabs",category:l.ViewManager.ViewLocationCategory.SOURCES,loadResolver:async()=>(await y()).SourcesPanel.SourcesPanel.instance()}),l.ContextMenu.registerProvider({contextTypes:()=>[s.UISourceCode.UISourceCode,s.UISourceCode.UILocation,n.RemoteObject.RemoteObject,n.NetworkRequest.NetworkRequest,...b((e=>[e.UISourceCodeFrame.UISourceCodeFrame]))],loadProvider:async()=>(await y()).SourcesPanel.SourcesPanel.instance(),experiment:void 0}),l.ContextMenu.registerProvider({loadProvider:async()=>(await y()).WatchExpressionsSidebarPane.WatchExpressionsSidebarPane.instance(),contextTypes:()=>[r.ObjectPropertiesSection.ObjectPropertyTreeElement],experiment:void 0}),l.ContextMenu.registerProvider({contextTypes:()=>b((e=>[e.UISourceCodeFrame.UISourceCodeFrame])),loadProvider:async()=>(await y()).WatchExpressionsSidebarPane.WatchExpressionsSidebarPane.instance(),experiment:void 0}),l.ContextMenu.registerProvider({loadProvider:async()=>(await y()).ScopeChainSidebarPane.OpenLinearMemoryInspector.instance(),experiment:void 0,contextTypes:()=>[r.ObjectPropertiesSection.ObjectPropertyTreeElement]}),e.Revealer.registerRevealer({contextTypes:()=>[s.UISourceCode.UILocation],destination:e.Revealer.RevealerDestination.SOURCES_PANEL,loadRevealer:async()=>(await y()).SourcesPanel.UILocationRevealer.instance()}),e.Revealer.registerRevealer({contextTypes:()=>[n.DebuggerModel.Location],destination:e.Revealer.RevealerDestination.SOURCES_PANEL,loadRevealer:async()=>(await y()).SourcesPanel.DebuggerLocationRevealer.instance()}),e.Revealer.registerRevealer({contextTypes:()=>[s.UISourceCode.UISourceCode],destination:e.Revealer.RevealerDestination.SOURCES_PANEL,loadRevealer:async()=>(await y()).SourcesPanel.UISourceCodeRevealer.instance()}),e.Revealer.registerRevealer({contextTypes:()=>[n.DebuggerModel.DebuggerPausedDetails],destination:e.Revealer.RevealerDestination.SOURCES_PANEL,loadRevealer:async()=>(await y()).SourcesPanel.DebuggerPausedDetailsRevealer.instance()}),e.Revealer.registerRevealer({contextTypes:()=>[a.BreakpointManager.BreakpointLocation],destination:e.Revealer.RevealerDestination.SOURCES_PANEL,loadRevealer:async()=>(await y()).DebuggerPlugin.BreakpointLocationRevealer.instance()}),l.Toolbar.registerToolbarItem({actionId:"sources.add-folder-to-workspace",location:l.Toolbar.ToolbarItemLocation.FILES_NAVIGATION_TOOLBAR,showLabel:!0,condition:o.Runtime.ConditionName.NOT_SOURCES_HIDE_ADD_FOLDER,loadItem:void 0,order:void 0,separator:void 0}),l.Context.registerListener({contextTypes:()=>[n.DebuggerModel.DebuggerPausedDetails],loadListener:async()=>(await w()).BreakpointsView.BreakpointsSidebarController.instance()}),l.Context.registerListener({contextTypes:()=>[n.DebuggerModel.DebuggerPausedDetails],loadListener:async()=>(await y()).CallStackSidebarPane.CallStackSidebarPane.instance()}),l.Context.registerListener({contextTypes:()=>[n.DebuggerModel.CallFrame],loadListener:async()=>(await y()).ScopeChainSidebarPane.ScopeChainSidebarPane.instance()}),l.ContextMenu.registerItem({location:l.ContextMenu.ItemLocation.NAVIGATOR_MENU_DEFAULT,actionId:"quickOpen.show",order:void 0}),l.ContextMenu.registerItem({location:l.ContextMenu.ItemLocation.MAIN_MENU_DEFAULT,actionId:"sources.search",order:void 0}),c.FilteredListWidget.registerProvider({prefix:"@",iconName:"symbol",iconWidth:"16px",provider:async()=>new((await y()).OutlineQuickOpen.OutlineQuickOpen),titlePrefix:u(g.goTo),titleSuggestion:u(g.symbol)}),c.FilteredListWidget.registerProvider({prefix:":",iconName:"colon",iconWidth:"20px",provider:async()=>new((await y()).GoToLineQuickOpen.GoToLineQuickOpen),titlePrefix:u(g.goTo),titleSuggestion:u(g.line)}),c.FilteredListWidget.registerProvider({prefix:"",iconName:"document",iconWidth:"16px",provider:async()=>new((await y()).OpenFileQuickOpen.OpenFileQuickOpen),titlePrefix:u(g.open),titleSuggestion:u(g.file)});
|