@qilin-agent/experimental-inspector 0.0.0-stage → 3.1.6
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/README.i18n.yaml +49 -0
- package/README.md +179 -2
- package/README.zh.md +180 -0
- package/icon.svg +23 -0
- package/lib/client.js +3572 -0
- package/lib/client.page.js +314 -0
- package/lib/devtools/Images/3d-center.svg +3 -0
- package/lib/devtools/Images/3d-pan.svg +3 -0
- package/lib/devtools/Images/3d-rotate.svg +3 -0
- package/lib/devtools/Images/accelerometer-back.svg +69 -0
- package/lib/devtools/Images/accelerometer-bottom.png +0 -0
- package/lib/devtools/Images/accelerometer-front.svg +28 -0
- package/lib/devtools/Images/accelerometer-left.png +0 -0
- package/lib/devtools/Images/accelerometer-right.png +0 -0
- package/lib/devtools/Images/accelerometer-top.png +0 -0
- package/lib/devtools/Images/account-tree.svg +10 -0
- package/lib/devtools/Images/add-photo.svg +3 -0
- package/lib/devtools/Images/ai-explorer-badge.svg +114 -0
- package/lib/devtools/Images/align-content-center.svg +5 -0
- package/lib/devtools/Images/align-content-end.svg +5 -0
- package/lib/devtools/Images/align-content-space-around.svg +6 -0
- package/lib/devtools/Images/align-content-space-between.svg +4 -0
- package/lib/devtools/Images/align-content-space-evenly.svg +6 -0
- package/lib/devtools/Images/align-content-start.svg +5 -0
- package/lib/devtools/Images/align-content-stretch.svg +4 -0
- package/lib/devtools/Images/align-items-baseline.svg +4 -0
- package/lib/devtools/Images/align-items-center.svg +5 -0
- package/lib/devtools/Images/align-items-end.svg +5 -0
- package/lib/devtools/Images/align-items-start.svg +5 -0
- package/lib/devtools/Images/align-items-stretch.svg +6 -0
- package/lib/devtools/Images/align-self-center.svg +3 -0
- package/lib/devtools/Images/align-self-end.svg +4 -0
- package/lib/devtools/Images/align-self-start.svg +4 -0
- package/lib/devtools/Images/align-self-stretch.svg +5 -0
- package/lib/devtools/Images/animation.svg +3 -0
- package/lib/devtools/Images/arrow-back.svg +4 -0
- package/lib/devtools/Images/arrow-collapse.svg +3 -0
- package/lib/devtools/Images/arrow-down.svg +10 -0
- package/lib/devtools/Images/arrow-drop-down-dark.svg +3 -0
- package/lib/devtools/Images/arrow-drop-down-light.svg +3 -0
- package/lib/devtools/Images/arrow-drop-down.svg +3 -0
- package/lib/devtools/Images/arrow-forward.svg +4 -0
- package/lib/devtools/Images/arrow-right-circle.svg +3 -0
- package/lib/devtools/Images/arrow-up-down-circle.svg +3 -0
- package/lib/devtools/Images/arrow-up-down.svg +3 -0
- package/lib/devtools/Images/arrow-up.svg +10 -0
- package/lib/devtools/Images/attach-file.svg +3 -0
- package/lib/devtools/Images/baseline-high-availability.svg +17 -0
- package/lib/devtools/Images/baseline-limited-availability.svg +19 -0
- package/lib/devtools/Images/baseline-low-availability.svg +31 -0
- package/lib/devtools/Images/bell.svg +3 -0
- package/lib/devtools/Images/bezier-curve-filled.svg +3 -0
- package/lib/devtools/Images/bin.svg +1 -0
- package/lib/devtools/Images/bottom-panel-close.svg +1 -0
- package/lib/devtools/Images/bottom-panel-open.svg +1 -0
- package/lib/devtools/Images/brackets.svg +1 -0
- package/lib/devtools/Images/breakpoint-circle.svg +4 -0
- package/lib/devtools/Images/breakpoint-crossed-filled.svg +1 -0
- package/lib/devtools/Images/breakpoint-crossed.svg +1 -0
- package/lib/devtools/Images/brush-2.svg +3 -0
- package/lib/devtools/Images/brush-filled.svg +1 -0
- package/lib/devtools/Images/brush.svg +1 -0
- package/lib/devtools/Images/bucket.svg +4 -0
- package/lib/devtools/Images/bug.svg +3 -0
- package/lib/devtools/Images/button-magic.svg +3 -0
- package/lib/devtools/Images/calendar-today.svg +3 -0
- package/lib/devtools/Images/center-focus-weak.svg +3 -0
- package/lib/devtools/Images/check-circle.svg +3 -0
- package/lib/devtools/Images/check-double.svg +3 -0
- package/lib/devtools/Images/checker.svg +12 -0
- package/lib/devtools/Images/checkmark.svg +1 -0
- package/lib/devtools/Images/chevron-double-right.svg +3 -0
- package/lib/devtools/Images/chevron-down.svg +3 -0
- package/lib/devtools/Images/chevron-left-dot.svg +4 -0
- package/lib/devtools/Images/chevron-left.svg +3 -0
- package/lib/devtools/Images/chevron-right.svg +3 -0
- package/lib/devtools/Images/chevron-up.svg +3 -0
- package/lib/devtools/Images/chromeLeft.avif +0 -0
- package/lib/devtools/Images/chromeMiddle.avif +0 -0
- package/lib/devtools/Images/chromeRight.avif +0 -0
- package/lib/devtools/Images/class.svg +6 -0
- package/lib/devtools/Images/clear-list.svg +3 -0
- package/lib/devtools/Images/clear.svg +3 -0
- package/lib/devtools/Images/cloud.svg +3 -0
- package/lib/devtools/Images/code-circle.svg +5 -0
- package/lib/devtools/Images/code-whisperer-badge.svg +166 -0
- package/lib/devtools/Images/code.svg +3 -0
- package/lib/devtools/Images/colon.svg +4 -0
- package/lib/devtools/Images/color-picker-filled.svg +3 -0
- package/lib/devtools/Images/color-picker.svg +3 -0
- package/lib/devtools/Images/compress.svg +8 -0
- package/lib/devtools/Images/console-conditional-breakpoint.svg +1 -0
- package/lib/devtools/Images/console-logpoint.svg +1 -0
- package/lib/devtools/Images/container.svg +4 -0
- package/lib/devtools/Images/cookie.svg +3 -0
- package/lib/devtools/Images/cookie_off.svg +3 -0
- package/lib/devtools/Images/copy.svg +3 -0
- package/lib/devtools/Images/corporate-fare.svg +3 -0
- package/lib/devtools/Images/credit-card.svg +3 -0
- package/lib/devtools/Images/cross-circle-filled.svg +3 -0
- package/lib/devtools/Images/cross-circle.svg +3 -0
- package/lib/devtools/Images/cross.svg +3 -0
- package/lib/devtools/Images/cssoverview_icons_2x.avif +0 -0
- package/lib/devtools/Images/database-off.svg +1 -0
- package/lib/devtools/Images/database.svg +3 -0
- package/lib/devtools/Images/deployed.svg +3 -0
- package/lib/devtools/Images/device-fold.svg +1 -0
- package/lib/devtools/Images/devices.svg +3 -0
- package/lib/devtools/Images/devtools-thumbnail.svg +57 -0
- package/lib/devtools/Images/devtools-tips.svg +61 -0
- package/lib/devtools/Images/devtools-user-badge.svg +129 -0
- package/lib/devtools/Images/devtools.svg +13 -0
- package/lib/devtools/Images/difference.svg +3 -0
- package/lib/devtools/Images/dock-bottom.svg +3 -0
- package/lib/devtools/Images/dock-left.svg +3 -0
- package/lib/devtools/Images/dock-right.svg +3 -0
- package/lib/devtools/Images/dock-window.svg +3 -0
- package/lib/devtools/Images/document.svg +3 -0
- package/lib/devtools/Images/dog-paw.svg +10 -0
- package/lib/devtools/Images/dom-detective-badge.svg +136 -0
- package/lib/devtools/Images/domain.svg +3 -0
- package/lib/devtools/Images/dots-horizontal.svg +1 -0
- package/lib/devtools/Images/dots-vertical.svg +3 -0
- package/lib/devtools/Images/download.svg +3 -0
- package/lib/devtools/Images/edit.svg +1 -0
- package/lib/devtools/Images/empty.svg +2 -0
- package/lib/devtools/Images/errorWave.svg +74 -0
- package/lib/devtools/Images/exclamation.svg +3 -0
- package/lib/devtools/Images/expand.svg +1 -0
- package/lib/devtools/Images/experiment-check.svg +1 -0
- package/lib/devtools/Images/experiment.svg +3 -0
- package/lib/devtools/Images/extension.svg +1 -0
- package/lib/devtools/Images/eye-crossed.svg +3 -0
- package/lib/devtools/Images/eye.svg +3 -0
- package/lib/devtools/Images/file-document.svg +3 -0
- package/lib/devtools/Images/file-fetch-xhr.svg +3 -0
- package/lib/devtools/Images/file-font.svg +4 -0
- package/lib/devtools/Images/file-generic.svg +3 -0
- package/lib/devtools/Images/file-image.svg +3 -0
- package/lib/devtools/Images/file-json.svg +4 -0
- package/lib/devtools/Images/file-manifest.svg +3 -0
- package/lib/devtools/Images/file-media.svg +3 -0
- package/lib/devtools/Images/file-script.svg +3 -0
- package/lib/devtools/Images/file-snippet.svg +4 -0
- package/lib/devtools/Images/file-stylesheet.svg +4 -0
- package/lib/devtools/Images/file-wasm.svg +5 -0
- package/lib/devtools/Images/file-websocket.svg +3 -0
- package/lib/devtools/Images/filter-clear.svg +3 -0
- package/lib/devtools/Images/filter-filled.svg +3 -0
- package/lib/devtools/Images/filter.svg +3 -0
- package/lib/devtools/Images/flex-direction.svg +5 -0
- package/lib/devtools/Images/flex-no-wrap.svg +5 -0
- package/lib/devtools/Images/flex-wrap.svg +8 -0
- package/lib/devtools/Images/flow.svg +3 -0
- package/lib/devtools/Images/flowsheet.svg +1 -0
- package/lib/devtools/Images/fold-more.svg +3 -0
- package/lib/devtools/Images/folder-asterisk.svg +10 -0
- package/lib/devtools/Images/folder-off.svg +3 -0
- package/lib/devtools/Images/folder.svg +3 -0
- package/lib/devtools/Images/frame-crossed.svg +3 -0
- package/lib/devtools/Images/frame-icon.svg +54 -0
- package/lib/devtools/Images/frame.svg +3 -0
- package/lib/devtools/Images/gdp-logo-dark.png +0 -0
- package/lib/devtools/Images/gdp-logo-light.png +0 -0
- package/lib/devtools/Images/gear-filled.svg +3 -0
- package/lib/devtools/Images/gear.svg +4 -0
- package/lib/devtools/Images/gears.svg +3 -0
- package/lib/devtools/Images/geminiInDevTools.png +0 -0
- package/lib/devtools/Images/geminiInDevTools_2x.png +0 -0
- package/lib/devtools/Images/global.svg +5 -0
- package/lib/devtools/Images/google.svg +3 -0
- package/lib/devtools/Images/goto-filled.svg +1 -0
- package/lib/devtools/Images/grid-direction.svg +6 -0
- package/lib/devtools/Images/grid-on.svg +10 -0
- package/lib/devtools/Images/group.svg +3 -0
- package/lib/devtools/Images/heap-snapshot.svg +6 -0
- package/lib/devtools/Images/heap-snapshots.svg +7 -0
- package/lib/devtools/Images/help.svg +3 -0
- package/lib/devtools/Images/history.svg +3 -0
- package/lib/devtools/Images/home.svg +3 -0
- package/lib/devtools/Images/hover.svg +6 -0
- package/lib/devtools/Images/iframe-crossed.svg +3 -0
- package/lib/devtools/Images/iframe.svg +3 -0
- package/lib/devtools/Images/import.svg +3 -0
- package/lib/devtools/Images/indeterminate-question-box.svg +3 -0
- package/lib/devtools/Images/info-filled.svg +3 -0
- package/lib/devtools/Images/info.svg +3 -0
- package/lib/devtools/Images/issue-cross-filled.svg +3 -0
- package/lib/devtools/Images/issue-exclamation-filled.svg +3 -0
- package/lib/devtools/Images/issue-questionmark-filled.svg +3 -0
- package/lib/devtools/Images/issue-text-filled.svg +3 -0
- package/lib/devtools/Images/justify-content-center.svg +5 -0
- package/lib/devtools/Images/justify-content-end.svg +5 -0
- package/lib/devtools/Images/justify-content-space-around.svg +6 -0
- package/lib/devtools/Images/justify-content-space-between.svg +4 -0
- package/lib/devtools/Images/justify-content-space-evenly.svg +6 -0
- package/lib/devtools/Images/justify-content-start.svg +5 -0
- package/lib/devtools/Images/justify-content-stretch.svg +4 -0
- package/lib/devtools/Images/justify-items-center.svg +4 -0
- package/lib/devtools/Images/justify-items-end.svg +4 -0
- package/lib/devtools/Images/justify-items-start.svg +4 -0
- package/lib/devtools/Images/justify-items-stretch.svg +4 -0
- package/lib/devtools/Images/keyboard-arrow-right.svg +1 -0
- package/lib/devtools/Images/keyboard-full.svg +10 -0
- package/lib/devtools/Images/keyboard-pen.svg +1 -0
- package/lib/devtools/Images/keyboard.svg +3 -0
- package/lib/devtools/Images/label-auto.svg +3 -0
- package/lib/devtools/Images/label.svg +10 -0
- package/lib/devtools/Images/large-arrow-right-filled.svg +1 -0
- package/lib/devtools/Images/layers-filled.svg +1 -0
- package/lib/devtools/Images/layers.svg +1 -0
- package/lib/devtools/Images/left-panel-close.svg +1 -0
- package/lib/devtools/Images/left-panel-open.svg +1 -0
- package/lib/devtools/Images/lightbulb-spark.svg +13 -0
- package/lib/devtools/Images/lightbulb.svg +3 -0
- package/lib/devtools/Images/lighthouse_logo.svg +158 -0
- package/lib/devtools/Images/list.svg +3 -0
- package/lib/devtools/Images/location-on.svg +3 -0
- package/lib/devtools/Images/lock-person.svg +1 -0
- package/lib/devtools/Images/lock.svg +3 -0
- package/lib/devtools/Images/mark-email-unread.svg +3 -0
- package/lib/devtools/Images/match-case.svg +3 -0
- package/lib/devtools/Images/match-whole-word.svg +1 -0
- package/lib/devtools/Images/memory.svg +6 -0
- package/lib/devtools/Images/minus.svg +3 -0
- package/lib/devtools/Images/mop.svg +1 -0
- package/lib/devtools/Images/mouse.svg +4 -0
- package/lib/devtools/Images/navigationControls.png +0 -0
- package/lib/devtools/Images/navigationControls_2x.png +0 -0
- package/lib/devtools/Images/network-settings.svg +3 -0
- package/lib/devtools/Images/node-stack-icon.svg +1 -0
- package/lib/devtools/Images/nodeIcon.avif +0 -0
- package/lib/devtools/Images/open-externally.svg +3 -0
- package/lib/devtools/Images/override.svg +11 -0
- package/lib/devtools/Images/palette.svg +10 -0
- package/lib/devtools/Images/pause-circle.svg +1 -0
- package/lib/devtools/Images/pause.svg +1 -0
- package/lib/devtools/Images/pen-spark.svg +3 -0
- package/lib/devtools/Images/performance-panel-delete-annotation.svg +32 -0
- package/lib/devtools/Images/performance-panel-diagram.svg +34 -0
- package/lib/devtools/Images/performance-panel-entry-label.svg +75 -0
- package/lib/devtools/Images/performance-panel-time-range.svg +15 -0
- package/lib/devtools/Images/performance.svg +3 -0
- package/lib/devtools/Images/person.svg +3 -0
- package/lib/devtools/Images/photo-camera.svg +10 -0
- package/lib/devtools/Images/play.svg +3 -0
- package/lib/devtools/Images/plus.svg +3 -0
- package/lib/devtools/Images/policy.svg +3 -0
- package/lib/devtools/Images/popoverArrows.png +0 -0
- package/lib/devtools/Images/popup.svg +3 -0
- package/lib/devtools/Images/preview_feature_video_thumbnail.svg +92 -0
- package/lib/devtools/Images/profile.svg +3 -0
- package/lib/devtools/Images/psychiatry.svg +3 -0
- package/lib/devtools/Images/puzzle.svg +3 -0
- package/lib/devtools/Images/record-start.svg +4 -0
- package/lib/devtools/Images/record-stop.svg +4 -0
- package/lib/devtools/Images/redo.svg +3 -0
- package/lib/devtools/Images/refresh.svg +10 -0
- package/lib/devtools/Images/regular-expression.svg +3 -0
- package/lib/devtools/Images/replace.svg +1 -0
- package/lib/devtools/Images/replay.svg +3 -0
- package/lib/devtools/Images/report.svg +1 -0
- package/lib/devtools/Images/resizeDiagonal.svg +1 -0
- package/lib/devtools/Images/resizeHorizontal.svg +1 -0
- package/lib/devtools/Images/resizeVertical.svg +1 -0
- package/lib/devtools/Images/resume.svg +1 -0
- package/lib/devtools/Images/revert.svg +3 -0
- package/lib/devtools/Images/review.svg +5 -0
- package/lib/devtools/Images/right-panel-close.svg +1 -0
- package/lib/devtools/Images/right-panel-open.svg +1 -0
- package/lib/devtools/Images/scissors.svg +3 -0
- package/lib/devtools/Images/screen-rotation.svg +1 -0
- package/lib/devtools/Images/search.svg +3 -0
- package/lib/devtools/Images/select-element.svg +3 -0
- package/lib/devtools/Images/send.svg +3 -0
- package/lib/devtools/Images/shadow.svg +3 -0
- package/lib/devtools/Images/shield.svg +3 -0
- package/lib/devtools/Images/small-status-dot.svg +3 -0
- package/lib/devtools/Images/smart-assistant.svg +3 -0
- package/lib/devtools/Images/snippet.svg +4 -0
- package/lib/devtools/Images/spark-info.svg +3 -0
- package/lib/devtools/Images/spark.svg +3 -0
- package/lib/devtools/Images/speculative-loads.svg +1 -0
- package/lib/devtools/Images/speedster-badge.svg +166 -0
- package/lib/devtools/Images/star.svg +3 -0
- package/lib/devtools/Images/step-into.svg +1 -0
- package/lib/devtools/Images/step-out.svg +1 -0
- package/lib/devtools/Images/step-over.svg +1 -0
- package/lib/devtools/Images/step.svg +1 -0
- package/lib/devtools/Images/stop.svg +3 -0
- package/lib/devtools/Images/symbol.svg +3 -0
- package/lib/devtools/Images/sync.svg +3 -0
- package/lib/devtools/Images/tab-move.svg +1 -0
- package/lib/devtools/Images/table.svg +3 -0
- package/lib/devtools/Images/terminal.svg +10 -0
- package/lib/devtools/Images/text-analysis.svg +3 -0
- package/lib/devtools/Images/thumb-down-filled.svg +3 -0
- package/lib/devtools/Images/thumb-down.svg +3 -0
- package/lib/devtools/Images/thumb-up-filled.svg +3 -0
- package/lib/devtools/Images/thumb-up.svg +3 -0
- package/lib/devtools/Images/tonality.svg +10 -0
- package/lib/devtools/Images/toolbarResizerVertical.png +0 -0
- package/lib/devtools/Images/top-panel-close.svg +1 -0
- package/lib/devtools/Images/top-panel-open.svg +1 -0
- package/lib/devtools/Images/touch-app.svg +4 -0
- package/lib/devtools/Images/touchCursor.png +0 -0
- package/lib/devtools/Images/touchCursor_2x.png +0 -0
- package/lib/devtools/Images/triangle-bottom-right.svg +3 -0
- package/lib/devtools/Images/triangle-down.svg +1 -0
- package/lib/devtools/Images/triangle-left.svg +1 -0
- package/lib/devtools/Images/triangle-right.svg +1 -0
- package/lib/devtools/Images/triangle-up.svg +3 -0
- package/lib/devtools/Images/trophy.svg +3 -0
- package/lib/devtools/Images/tune.svg +3 -0
- package/lib/devtools/Images/undo.svg +1 -0
- package/lib/devtools/Images/warning-filled.svg +3 -0
- package/lib/devtools/Images/warning.svg +3 -0
- package/lib/devtools/Images/watch.svg +3 -0
- package/lib/devtools/Images/whatsnew.svg +61 -0
- package/lib/devtools/Images/width.svg +3 -0
- package/lib/devtools/Images/zoom-in.svg +3 -0
- package/lib/devtools/LICENSE +27 -0
- package/lib/devtools/application_tokens.css +413 -0
- package/lib/devtools/chunks/FormatterActions-FcPgI0uV.js +19 -0
- package/lib/devtools/chunks/UIFilter-CIzBruM3.js +18 -0
- package/lib/devtools/chunks/UIRequestLocation-CtGcVN3I.js +48 -0
- package/lib/devtools/chunks/_dsh-devtools_empty-BvRk9kiK.js +0 -0
- package/lib/devtools/chunks/accessibility-OQcgkXIB.js +2718 -0
- package/lib/devtools/chunks/acorn-_jSanihy.js +3232 -0
- package/lib/devtools/chunks/adorners-Be2VY5BN.js +45 -0
- package/lib/devtools/chunks/ai_assistance-DRe9GF9j.js +4255 -0
- package/lib/devtools/chunks/angular-Dutmu-L9.js +117 -0
- package/lib/devtools/chunks/animation-TQzd9HO4.js +922 -0
- package/lib/devtools/chunks/application-B8ko2TRt.js +12740 -0
- package/lib/devtools/chunks/autofill-D_Bi6xxt.js +198 -0
- package/lib/devtools/chunks/autofill_manager-Cw0wOndc.js +58 -0
- package/lib/devtools/chunks/bindings-B7uzkbnH.js +4105 -0
- package/lib/devtools/chunks/browser-DL1S1Kiu.js +62 -0
- package/lib/devtools/chunks/browser_debugger-6syzh5He.js +629 -0
- package/lib/devtools/chunks/changes-8Dpo591z.js +393 -0
- package/lib/devtools/chunks/changes-Hp2cPKPp.js +2 -0
- package/lib/devtools/chunks/checkbox.css-Cwxn2mfx.js +4 -0
- package/lib/devtools/chunks/chunk-DF993M8W.js +11 -0
- package/lib/devtools/chunks/code_highlighter-oWKo9plW.js +210 -0
- package/lib/devtools/chunks/codemirror-CBR9VJma.js +15842 -0
- package/lib/devtools/chunks/color_picker-CHmwJ7or.js +1566 -0
- package/lib/devtools/chunks/common-BGyPsfVb.js +2 -0
- package/lib/devtools/chunks/common-C6gzvSKg.js +15145 -0
- package/lib/devtools/chunks/common-qd_KLeYO.js +6639 -0
- package/lib/devtools/chunks/components-B5xBXfXj.js +704 -0
- package/lib/devtools/chunks/components-BkETO50Z.js +1090 -0
- package/lib/devtools/chunks/components-DlE11Hk_.js +1338 -0
- package/lib/devtools/chunks/console-DEk3riFh.js +3855 -0
- package/lib/devtools/chunks/console-OWEKC7bo.js +2 -0
- package/lib/devtools/chunks/console_counters-ClDYfPF6.js +103 -0
- package/lib/devtools/chunks/coverage-Dg9NvtX9.js +1176 -0
- package/lib/devtools/chunks/coverage-uK2NUeVj.js +2 -0
- package/lib/devtools/chunks/cpp-CdElSCaB.js +435 -0
- package/lib/devtools/chunks/css_overview-6FosuoNY.js +1288 -0
- package/lib/devtools/chunks/data_grid-6RZWyPx-.js +1671 -0
- package/lib/devtools/chunks/developer_resources-C6_2oeLF.js +240 -0
- package/lib/devtools/chunks/diff-qn55JSCS.js +444 -0
- package/lib/devtools/chunks/dom_extension-B0UaTHZj.js +172 -0
- package/lib/devtools/chunks/elements-CcvMWzGx.js +2 -0
- package/lib/devtools/chunks/elements-Xw7oHKeq.js +11407 -0
- package/lib/devtools/chunks/emulation-B7sLFSxp.js +1306 -0
- package/lib/devtools/chunks/emulation-CvVuS_p0.js +157 -0
- package/lib/devtools/chunks/emulation-DMC3TuHv.js +2 -0
- package/lib/devtools/chunks/emulation-_lA-Xb1h.js +2732 -0
- package/lib/devtools/chunks/event_listeners-CdGgpDsg.js +414 -0
- package/lib/devtools/chunks/explain-fG84ckui.js +747 -0
- package/lib/devtools/chunks/greendev-DvYwqqmc.js +152 -0
- package/lib/devtools/chunks/heap_snapshot-CZt2KUPL.js +427 -0
- package/lib/devtools/chunks/helper-DoR8dYRk.js +33 -0
- package/lib/devtools/chunks/helpers-BypUnKdS.js +29 -0
- package/lib/devtools/chunks/i18n-DUXZnMbP.js +17 -0
- package/lib/devtools/chunks/icon_button-mu37qw0h.js +83 -0
- package/lib/devtools/chunks/inline_editor-Dgctmf2_.js +1309 -0
- package/lib/devtools/chunks/inspector_main-yb83VyUs.js +279 -0
- package/lib/devtools/chunks/issue_counter-COHuTTL3.js +193 -0
- package/lib/devtools/chunks/issues-C94onoob.js +1649 -0
- package/lib/devtools/chunks/issues_manager-7hP__vf-.js +3009 -0
- package/lib/devtools/chunks/java-7g_qfFa2.js +263 -0
- package/lib/devtools/chunks/layer_viewer-BF3qEG7C.js +1423 -0
- package/lib/devtools/chunks/layers-KW9wwW__.js +370 -0
- package/lib/devtools/chunks/legacy-C0IOfyhX.js +41804 -0
- package/lib/devtools/chunks/legacy-DOCLCisy.js +1434 -0
- package/lib/devtools/chunks/less-DXiRNbd4.js +195 -0
- package/lib/devtools/chunks/lighthouse-BUitD7KK.js +2 -0
- package/lib/devtools/chunks/lighthouse-f3QbU2gw.js +3920 -0
- package/lib/devtools/chunks/linear_memory_inspector-Dhv8CzB6.js +305 -0
- package/lib/devtools/chunks/live-metrics-DTntFi2I.js +284 -0
- package/lib/devtools/chunks/main---7244L8.js +2 -0
- package/lib/devtools/chunks/main-CQ4zKr5A.js +755 -0
- package/lib/devtools/chunks/markdown-tZoR6Bsu.js +1512 -0
- package/lib/devtools/chunks/markdown_view-DN02v7_2.js +461 -0
- package/lib/devtools/chunks/marked-zGgfoDxO.js +1362 -0
- package/lib/devtools/chunks/media-BNfBOtUh.js +1337 -0
- package/lib/devtools/chunks/media-eTuT8cbS.js +2 -0
- package/lib/devtools/chunks/menus-DoacKucS.js +969 -0
- package/lib/devtools/chunks/mobile_throttling-BKeQegny.js +1052 -0
- package/lib/devtools/chunks/mobile_throttling-DXj04TKw.js +2 -0
- package/lib/devtools/chunks/network-BIhtpwBx.js +2 -0
- package/lib/devtools/chunks/network-C1U3mkwJ.js +9181 -0
- package/lib/devtools/chunks/objectValue.css-B7vmCz4R.js +4 -0
- package/lib/devtools/chunks/object_ui-B8MxYDLE.js +2 -0
- package/lib/devtools/chunks/object_ui-C8fCheVq.js +1461 -0
- package/lib/devtools/chunks/perf_ui-4xM6fYl7.js +2 -0
- package/lib/devtools/chunks/perf_ui-Cp2qToEB.js +3143 -0
- package/lib/devtools/chunks/performance_monitor-BUcbKqz4.js +385 -0
- package/lib/devtools/chunks/php-tl5gKrxu.js +423 -0
- package/lib/devtools/chunks/platform-BzB373NB.js +600 -0
- package/lib/devtools/chunks/profiler-Dq2TBqy8.js +4608 -0
- package/lib/devtools/chunks/protocol_client-Cwf_jb8R.js +24329 -0
- package/lib/devtools/chunks/protocol_monitor-BG2dkmPK.js +1224 -0
- package/lib/devtools/chunks/protocol_monitor-DC2CZGW5.js +2 -0
- package/lib/devtools/chunks/puppeteer-ZLIws8kb.js +13299 -0
- package/lib/devtools/chunks/python-D9AdRkMm.js +580 -0
- package/lib/devtools/chunks/quick_open-B0xhg6ZL.js +2 -0
- package/lib/devtools/chunks/quick_open-Dfzyy8ve.js +722 -0
- package/lib/devtools/chunks/recorder-BwV8H_Us.js +5465 -0
- package/lib/devtools/chunks/recorder-actions-S2RfLX4H.js +6 -0
- package/lib/devtools/chunks/request_link_icon-BjtC6uxv.js +87 -0
- package/lib/devtools/chunks/root-DbVQo07X.js +255 -0
- package/lib/devtools/chunks/sass-BPQlMmw2.js +370 -0
- package/lib/devtools/chunks/security-BjoaTtpU.js +898 -0
- package/lib/devtools/chunks/sensors-m9L9nmDB.js +752 -0
- package/lib/devtools/chunks/settings-DvrCWlb3.js +1433 -0
- package/lib/devtools/chunks/settings_ui-Df8-TVsv.js +175 -0
- package/lib/devtools/chunks/snackbars-DTKjs7om.js +12010 -0
- package/lib/devtools/chunks/snippets-DkuCZu-J.js +173 -0
- package/lib/devtools/chunks/source_frame-CzY7luV4.js +1352 -0
- package/lib/devtools/chunks/sources-CdvYPTNy.js +2 -0
- package/lib/devtools/chunks/sources-CoHLP03P.js +8216 -0
- package/lib/devtools/chunks/suggestion_input-CpR9sfDn.js +196 -0
- package/lib/devtools/chunks/svelte-DJS1itbE.js +744 -0
- package/lib/devtools/chunks/textInput.css-D9hN8XWo.js +4 -0
- package/lib/devtools/chunks/text_editor-BH_W0fXD.js +15706 -0
- package/lib/devtools/chunks/text_utils-ohNt_gua.js +608 -0
- package/lib/devtools/chunks/theme_support-DJK4CjXB.js +92 -0
- package/lib/devtools/chunks/third-party-web-DGiPoc0U.js +12626 -0
- package/lib/devtools/chunks/timeline-D6VQ2WWf.js +16347 -0
- package/lib/devtools/chunks/timeline-DfcTNEAb.js +2 -0
- package/lib/devtools/chunks/utils-DqoFGxV_.js +298 -0
- package/lib/devtools/chunks/vue-CjH9yovn.js +73 -0
- package/lib/devtools/chunks/wast-CbGHiqaW.js +109 -0
- package/lib/devtools/chunks/web_audio-CTM_kqxU.js +277 -0
- package/lib/devtools/chunks/webauthn-Bt1tTNVo.js +522 -0
- package/lib/devtools/chunks/whats_new-Dv7HPSaK.js +177 -0
- package/lib/devtools/chunks/xml-DI9dcP5w.js +327 -0
- package/lib/devtools/connect.js +9 -0
- package/lib/devtools/design_system_tokens.css +1061 -0
- package/lib/devtools/device_mode_emulation_frame.html +25 -0
- package/lib/devtools/devtools_app.html +25 -0
- package/lib/devtools/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nest-hub-horizontal.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nest-hub-max-horizontal.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPad-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPad-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/optimized_images.gni +53 -0
- package/lib/devtools/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.js +4 -0
- package/lib/devtools/entrypoints/devtools_app/devtools_app.js +6240 -0
- package/lib/devtools/entrypoints/formatter_worker/formatter_worker-entrypoint.js +2810 -0
- package/lib/devtools/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +2142 -0
- package/lib/devtools/entrypoints/lighthouse_worker/lighthouse_worker.js +290095 -0
- package/lib/devtools/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js +3403 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameOrigin.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameSite.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/CompatibilityModeQuirks.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/LowTextContrast.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/arInsecureContext.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidInfoHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterOsSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterOsTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoWebOrOsSupport.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/arOsSourceIgnored.md +18 -0
- package/lib/devtools/models/issues_manager/descriptions/arOsTriggerIgnored.md +19 -0
- package/lib/devtools/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/arSourceAndTriggerHeaders.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/arSourceIgnored.md +13 -0
- package/lib/devtools/models/issues_manager/descriptions/arTriggerIgnored.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/arWebAndOsHeaders.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/bounceTrackingMitigations.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/clientHintMetaTagModifiedHTML.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidHeader.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistItemNotInnerList.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistMoreThanOneList.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeDomainNonAscii.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludePortMismatch.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnDomainNonAscii.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnMetadataGrantRead.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnMetadataGrantSet.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsAllowCredentialsRequired.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsDisabledScheme.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsDisallowedByMode.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsInvalidHeaderValues.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
- package/lib/devtools/models/issues_manager/descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsOriginMismatch.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsPreflightResponseInvalid.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsRedirectContainsCredentials.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsWildcardOriginNotAllowed.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cspEvalViolation.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/cspInlineViolation.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/cspTrustedTypesPolicyViolation.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/cspTrustedTypesSinkViolation.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cspURLViolation.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/deprecation.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestInvalidEmail.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestCanceled.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestErrorIdToken.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestTooManyRequests.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/fetchingPartitionedBlobURL.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormDuplicateIdForInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputWithNoLabelError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelForNameError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextMissingToolDescription.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextMissingToolName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextParameterMissingName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/genericResponseWasBlockedByORB.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/heavyAd.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/mixedContent.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/navigatingPartitionedBlobURL.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabled.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFencedFrameDisallowed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFontSizeTooLarge.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFontSizeTooSmall.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementGeolocationDeprecated.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidDisplayStyle.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidSizeValue.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidType.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidTypeActivation.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementLowContrast.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementNonOpaqueColor.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPaddingRightUnsupported.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementRegistrationFailed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementRequestInProgress.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementSecurityChecksFailed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementTypeNotSupported.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementUntrustedEvent.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/propertyRuleInvalidNameIssue.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/propertyRuleIssue.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectivePermissionsIntervention.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedArrayBuffer.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sriInvalidSignatureHeader.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/sriInvalidSignatureInputHeader.md +15 -0
- package/lib/devtools/models/issues_manager/descriptions/sriMissingSignatureHeader.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriMissingSignatureInputHeader.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedIntegrityMismatch.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedInvalidLength.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedSignatureExpired.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedSignatureMismatch.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/stylesheetLateImport.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/stylesheetRequestFailed.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestIncorrectDigestType.md +17 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestMalformedDictionary.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
- package/lib/devtools/models/live-metrics/web-vitals-injected/web-vitals-injected.generated.js +1 -0
- package/lib/devtools/panels/recorder/injected/injected.generated.js +1 -0
- package/lib/devtools/panels/whats_new/resources/WNDT.md +14 -0
- package/lib/devtools/resource-manifest.json +3818 -0
- package/lib/devtools/third_party/acorn/package/LICENSE +21 -0
- package/lib/devtools/third_party/axe-core/LICENSE +362 -0
- package/lib/devtools/third_party/chromium/LICENSE +27 -0
- package/lib/devtools/third_party/codemirror/package/LICENSE +21 -0
- package/lib/devtools/third_party/codemirror.next/LICENSE +21 -0
- package/lib/devtools/third_party/csp_evaluator/package/LICENSE +202 -0
- package/lib/devtools/third_party/diff/LICENSE +202 -0
- package/lib/devtools/third_party/i18n/LICENSE +202 -0
- package/lib/devtools/third_party/intl-messageformat/LICENSE +33 -0
- package/lib/devtools/third_party/intl-messageformat/package/LICENSE.md +33 -0
- package/lib/devtools/third_party/json5/LICENSE +23 -0
- package/lib/devtools/third_party/legacy-javascript/LICENSE +202 -0
- package/lib/devtools/third_party/lighthouse/LICENSE +202 -0
- package/lib/devtools/third_party/lit/LICENSE +28 -0
- package/lib/devtools/third_party/marked/LICENSE +39 -0
- package/lib/devtools/third_party/marked/package/LICENSE.md +44 -0
- package/lib/devtools/third_party/puppeteer/LICENSE +202 -0
- package/lib/devtools/third_party/puppeteer/third_party/mitt/LICENSE +21 -0
- package/lib/devtools/third_party/puppeteer/third_party/parsel/LICENSE +21 -0
- package/lib/devtools/third_party/puppeteer/third_party/rxjs/LICENSE +201 -0
- package/lib/devtools/third_party/puppeteer-replay/package/LICENSE +202 -0
- package/lib/devtools/third_party/source-map-scopes-codec/LICENSE +26 -0
- package/lib/devtools/third_party/source-map-scopes-codec/package/LICENSE +26 -0
- package/lib/devtools/third_party/third-party-web/LICENSE +20 -0
- package/lib/devtools/third_party/third-party-web/package/LICENSE +20 -0
- package/lib/devtools/third_party/vscode.web-custom-data/package/LICENSE.md +21 -0
- package/lib/devtools/third_party/wasmparser/package/LICENSE +177 -0
- package/lib/devtools/third_party/web-vitals/package/LICENSE +202 -0
- package/lib/index.js +2599 -0
- package/lib/types/client/bottom/keyboard.d.ts +10 -0
- package/lib/types/client/bottom/locales.d.ts +17 -0
- package/lib/types/client/bottom/page.d.ts +10 -0
- package/lib/types/client/bottom/resize.d.ts +12 -0
- package/lib/types/client/bridge/controller.d.ts +10 -0
- package/lib/types/client/bridge/dispatcher.d.ts +26 -0
- package/lib/types/client/bridge/lifecycle.d.ts +22 -0
- package/lib/types/client/bridge/locales.d.ts +3 -0
- package/lib/types/client/bridge/publisher.d.ts +42 -0
- package/lib/types/client/bridge/rpc.d.ts +13 -0
- package/lib/types/client/bridge/transport.d.ts +41 -0
- package/lib/types/client/cdp/console.d.ts +45 -0
- package/lib/types/client/cdp/debugger.d.ts +8 -0
- package/lib/types/client/cdp/errors.d.ts +8 -0
- package/lib/types/client/cdp/heap-profiler.d.ts +8 -0
- package/lib/types/client/cdp/index.d.ts +10 -0
- package/lib/types/client/cdp/objects.d.ts +69 -0
- package/lib/types/client/cdp/profiler.d.ts +8 -0
- package/lib/types/client/cdp/properties.d.ts +16 -0
- package/lib/types/client/cdp/runtime.d.ts +79 -0
- package/lib/types/client/cdp/sources.d.ts +53 -0
- package/lib/types/client/cdp/stack.d.ts +27 -0
- package/lib/types/client/index.d.ts +3 -0
- package/lib/types/client/inspection/cordis.d.ts +3 -0
- package/lib/types/client/inspection/network.d.ts +4 -0
- package/lib/types/client/inspection/realm.d.ts +27 -0
- package/lib/types/client/plugin.d.ts +29 -0
- package/lib/types/host/bridge/controller.d.ts +108 -0
- package/lib/types/host/bridge/dispatcher.d.ts +16 -0
- package/lib/types/host/bridge/lifecycle.d.ts +42 -0
- package/lib/types/host/bridge/publisher.d.ts +31 -0
- package/lib/types/host/bridge/rpc.d.ts +15 -0
- package/lib/types/host/bridge/transport.d.ts +28 -0
- package/lib/types/host/cdp/console.d.ts +14 -0
- package/lib/types/host/cdp/debugger.d.ts +8 -0
- package/lib/types/host/cdp/errors.d.ts +6 -0
- package/lib/types/host/cdp/heap-profiler.d.ts +8 -0
- package/lib/types/host/cdp/index.d.ts +10 -0
- package/lib/types/host/cdp/objects.d.ts +8 -0
- package/lib/types/host/cdp/profiler.d.ts +8 -0
- package/lib/types/host/cdp/properties.d.ts +7 -0
- package/lib/types/host/cdp/runtime.d.ts +16 -0
- package/lib/types/host/cdp/sources.d.ts +14 -0
- package/lib/types/host/cdp/stack.d.ts +4 -0
- package/lib/types/host/index.d.ts +3 -0
- package/lib/types/host/inspection/cordis.d.ts +3 -0
- package/lib/types/host/inspection/network.d.ts +23 -0
- package/lib/types/host/inspection/realm.d.ts +9 -0
- package/lib/types/host/plugin.d.ts +24 -0
- package/lib/types/index.d.ts +50 -0
- package/lib/types/shared/bridge/buffer.d.ts +62 -0
- package/lib/types/shared/bridge/codec.d.ts +4 -0
- package/lib/types/shared/bridge/control-codec.d.ts +27 -0
- package/lib/types/shared/bridge/ids.d.ts +19 -0
- package/lib/types/shared/bridge/messages/control.d.ts +64 -0
- package/lib/types/shared/bridge/messages/cordis.d.ts +4 -0
- package/lib/types/shared/bridge/messages/network.d.ts +4 -0
- package/lib/types/shared/bridge/messages/observation.d.ts +110 -0
- package/lib/types/shared/bridge/messages/query/codec.d.ts +40 -0
- package/lib/types/shared/bridge/messages/query/commands.d.ts +35 -0
- package/lib/types/shared/bridge/messages/query/frames.d.ts +31 -0
- package/lib/types/shared/bridge/messages/query/index.d.ts +5 -0
- package/lib/types/shared/bridge/messages/runtime/command-codec.d.ts +9 -0
- package/lib/types/shared/bridge/messages/runtime/commands.d.ts +76 -0
- package/lib/types/shared/bridge/messages/runtime/console-frames.d.ts +52 -0
- package/lib/types/shared/bridge/messages/runtime/frames.d.ts +98 -0
- package/lib/types/shared/bridge/messages/runtime/index.d.ts +5 -0
- package/lib/types/shared/bridge/messages/runtime/value-codec.d.ts +28 -0
- package/lib/types/shared/bridge/messages/sources/codec.d.ts +15 -0
- package/lib/types/shared/bridge/messages/sources/commands.d.ts +42 -0
- package/lib/types/shared/bridge/messages/sources/frames.d.ts +67 -0
- package/lib/types/shared/bridge/messages/sources/index.d.ts +5 -0
- package/lib/types/shared/bridge/publisher.d.ts +33 -0
- package/lib/types/shared/bridge/query-reader.d.ts +10 -0
- package/lib/types/shared/bridge/rpc.d.ts +62 -0
- package/lib/types/shared/bridge/validation.d.ts +3 -0
- package/lib/types/shared/bridge/version.d.ts +3 -0
- package/lib/types/shared/cdp/capabilities.d.ts +17 -0
- package/lib/types/shared/cdp/console.d.ts +28 -0
- package/lib/types/shared/cdp/debugger.d.ts +69 -0
- package/lib/types/shared/cdp/errors.d.ts +27 -0
- package/lib/types/shared/cdp/ids.d.ts +9 -0
- package/lib/types/shared/cdp/index.d.ts +11 -0
- package/lib/types/shared/cdp/operations.d.ts +86 -0
- package/lib/types/shared/cdp/property.d.ts +28 -0
- package/lib/types/shared/cdp/realm.d.ts +137 -0
- package/lib/types/shared/cdp/remote-object.d.ts +44 -0
- package/lib/types/shared/cdp/sources.d.ts +18 -0
- package/lib/types/shared/cordis/collector.d.ts +26 -0
- package/lib/types/shared/cordis/ids.d.ts +7 -0
- package/lib/types/shared/cordis/model.d.ts +61 -0
- package/lib/types/shared/cordis/object-reference.d.ts +14 -0
- package/lib/types/shared/cordis/object-registry.d.ts +80 -0
- package/lib/types/shared/cordis/observer.d.ts +15 -0
- package/lib/types/shared/cordis/projector.d.ts +34 -0
- package/lib/types/shared/cordis/publisher.d.ts +13 -0
- package/lib/types/shared/cordis/reader.d.ts +18 -0
- package/lib/types/shared/cordis/snapshot.d.ts +39 -0
- package/lib/types/shared/dispose.d.ts +11 -0
- package/lib/types/shared/identity.d.ts +12 -0
- package/lib/types/shared/index.d.ts +18 -0
- package/lib/types/shared/json.d.ts +35 -0
- package/lib/types/shared/network/event-source.d.ts +20 -0
- package/lib/types/shared/network/observation.d.ts +52 -0
- package/lib/types/shared/service.d.ts +23 -0
- package/lib/types/shared/validation.d.ts +52 -0
- package/lib/types/shared/web.d.ts +16 -0
- package/lib/types/worker/bridge/endpoint.d.ts +49 -0
- package/lib/types/worker/bridge/hub.d.ts +108 -0
- package/lib/types/worker/bridge/runtime-rpc.d.ts +90 -0
- package/lib/types/worker/bridge/session.d.ts +15 -0
- package/lib/types/worker/bridge/source-rpc.d.ts +42 -0
- package/lib/types/worker/cdp/domains/debugger/cdp-params.d.ts +15 -0
- package/lib/types/worker/cdp/domains/debugger/index.d.ts +6 -0
- package/lib/types/worker/cdp/domains/debugger/projector.d.ts +22 -0
- package/lib/types/worker/cdp/domains/debugger/script-registry.d.ts +70 -0
- package/lib/types/worker/cdp/domains/debugger/session.d.ts +47 -0
- package/lib/types/worker/cdp/domains/dom/index.d.ts +4 -0
- package/lib/types/worker/cdp/domains/dom/model.d.ts +121 -0
- package/lib/types/worker/cdp/domains/dom/session.d.ts +78 -0
- package/lib/types/worker/cdp/domains/native.d.ts +25 -0
- package/lib/types/worker/cdp/domains/network/session.d.ts +46 -0
- package/lib/types/worker/cdp/domains/runtime/cdp-params.d.ts +82 -0
- package/lib/types/worker/cdp/domains/runtime/index.d.ts +3 -0
- package/lib/types/worker/cdp/domains/runtime/object-table.d.ts +117 -0
- package/lib/types/worker/cdp/domains/runtime/session.d.ts +97 -0
- package/lib/types/worker/cdp/ids.d.ts +37 -0
- package/lib/types/worker/cdp/protocol.d.ts +46 -0
- package/lib/types/worker/cdp/realm-sessions.d.ts +67 -0
- package/lib/types/worker/cdp/session.d.ts +39 -0
- package/lib/types/worker/cdp/target.d.ts +17 -0
- package/lib/types/worker/entry.d.ts +3 -0
- package/lib/types/worker/inspection/cordis-query.d.ts +11 -0
- package/lib/types/worker/inspection/cordis-store.d.ts +94 -0
- package/lib/types/worker/inspection/network-store.d.ts +110 -0
- package/lib/types/worker/inspection/query-router.d.ts +78 -0
- package/lib/types/worker/inspection/realm-store.d.ts +58 -0
- package/lib/types/worker/inspection/realm.d.ts +43 -0
- package/lib/types/worker/realms/client/bridge.d.ts +18 -0
- package/lib/types/worker/realms/client/console.d.ts +21 -0
- package/lib/types/worker/realms/client/debugger.d.ts +8 -0
- package/lib/types/worker/realms/client/index.d.ts +18 -0
- package/lib/types/worker/realms/client/runtime.d.ts +28 -0
- package/lib/types/worker/realms/client/scripts.d.ts +15 -0
- package/lib/types/worker/realms/client/sources.d.ts +30 -0
- package/lib/types/worker/realms/client/values.d.ts +55 -0
- package/lib/types/worker/realms/host/bridge.d.ts +49 -0
- package/lib/types/worker/realms/host/console.d.ts +25 -0
- package/lib/types/worker/realms/host/debugger.d.ts +25 -0
- package/lib/types/worker/realms/host/index.d.ts +13 -0
- package/lib/types/worker/realms/host/runtime.d.ts +54 -0
- package/lib/types/worker/realms/host/scripts.d.ts +9 -0
- package/lib/types/worker/realms/host/sources.d.ts +26 -0
- package/lib/types/worker/realms/host/values.d.ts +22 -0
- package/lib/types/worker/server.d.ts +16 -0
- package/lib/worker.js +7293 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +86 -3
|
@@ -0,0 +1,1461 @@
|
|
|
1
|
+
import { n as e } from "./chunk-DF993M8W.js";
|
|
2
|
+
import { A as t, E as n, F as r, G as i, W as a, _ as o, lt as s } from "./platform-BzB373NB.js";
|
|
3
|
+
import { $ as c, At as l, Et as u, St as d, at as f, bt as p, wt as m } from "./common-qd_KLeYO.js";
|
|
4
|
+
import { $l as h, Cl as ee, Fo as g, Gl as te, Ht as ne, Kl as _, Mo as re, Po as v, Sn as ie, Ur as ae, Vl as oe, Wo as se, Xf as y, Zl as b, Zo as x, af as S, br as C, f as ce, fa as le, ha as w, hr as ue, i as T, ii as de, ma as fe, mf as pe, ni as me, o as he, p as ge, pf as _e, r as E, u as ve, ul as D, vi as ye, vn as be } from "./legacy-C0IOfyhX.js";
|
|
5
|
+
import { y as xe } from "./text_utils-ohNt_gua.js";
|
|
6
|
+
import { C as Se, In as Ce } from "./common-C6gzvSKg.js";
|
|
7
|
+
import { n as we } from "./i18n-DUXZnMbP.js";
|
|
8
|
+
import { s as Te } from "./text_editor-BH_W0fXD.js";
|
|
9
|
+
import { t as Ee } from "./acorn-_jSanihy.js";
|
|
10
|
+
import { t as O } from "./objectValue.css-B7vmCz4R.js";
|
|
11
|
+
//#region \0dsh-devtools:css:/home/runner/work/QiLin/QiLin/node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/legacy/components/object_ui/customPreviewComponent.css.mjs
|
|
12
|
+
var De = "/*\n * Copyright 2015 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.custom-expandable-section {\n display: inline-flex;\n flex-direction: column;\n}\n\n.custom-expand-icon {\n user-select: none;\n margin-right: 4px;\n margin-bottom: -4px;\n}\n\n.custom-expandable-section-standard-section {\n display: inline-flex;\n}\n\n.custom-expandable-section-default-body {\n padding-left: 12px;\n}\n", Oe = /* @__PURE__ */ e({
|
|
13
|
+
RemoteObjectPreviewFormatter: () => j,
|
|
14
|
+
renderNodeTitle: () => M,
|
|
15
|
+
renderTrustedType: () => Me
|
|
16
|
+
}), { ifDefined: ke, repeat: Ae } = se, k = {
|
|
17
|
+
emptyD: "empty × {PH1}",
|
|
18
|
+
empty: "empty",
|
|
19
|
+
thePropertyIsComputedWithAGetter: "The property is computed with a getter"
|
|
20
|
+
}, je = m("ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts", k), A = p.bind(void 0, je), j = class e {
|
|
21
|
+
static objectPropertyComparator(e, t) {
|
|
22
|
+
return n(e) - n(t);
|
|
23
|
+
function n(e) {
|
|
24
|
+
return e.name === "[[PromiseState]]" ? 1 : e.name === "[[PromiseResult]]" ? 2 : e.name === "[[GeneratorState]]" || e.name === "[[PrimitiveValue]]" || e.name === "[[WeakRefTarget]]" ? 3 : e.type !== S.PropertyPreviewType.Function && !e.name.startsWith("#") ? 4 : 5;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
renderObjectPreview(e, t = !0) {
|
|
28
|
+
let n = e.description, r = new Set([
|
|
29
|
+
S.ObjectPreviewSubtype.Arraybuffer,
|
|
30
|
+
S.ObjectPreviewSubtype.Dataview,
|
|
31
|
+
S.ObjectPreviewSubtype.Error,
|
|
32
|
+
S.ObjectPreviewSubtype.Null,
|
|
33
|
+
S.ObjectPreviewSubtype.Regexp,
|
|
34
|
+
S.ObjectPreviewSubtype.Webassemblymemory,
|
|
35
|
+
"internal#entry",
|
|
36
|
+
"trustedtype"
|
|
37
|
+
]);
|
|
38
|
+
if (e.type !== S.ObjectPreviewType.Object || e.subtype && r.has(e.subtype)) return this.renderPropertyPreview(e.type, e.subtype, void 0, n);
|
|
39
|
+
let i = e.subtype === S.ObjectPreviewSubtype.Array || e.subtype === S.ObjectPreviewSubtype.Typedarray, a = "";
|
|
40
|
+
if (n) if (i) {
|
|
41
|
+
let t = b.arrayLength(e), r = t > 1 ? "(" + t + ")" : "", i = b.arrayNameFromDescription(n);
|
|
42
|
+
a = i === "Array" ? r : i + r;
|
|
43
|
+
} else a = n === "Object" ? "" : n;
|
|
44
|
+
let o = Array.from(e.entries ? this.renderEntries(e) : i ? this.renderArrayProperties(e) : this.renderObjectProperties(e, t)), s = (e) => v`<span class=name>${/^\s|\s$|^$|\n/.test(e) ? "\"" + e.replace(/\n/g, "↵") + "\"" : e}</span>`, c = (e) => v`<span class=object-value-undefined>${e}</span>`, l = (e) => this.renderPropertyPreview(e.type, e.subtype, e.name, e.value), u = (e) => v`${e.key && v`${this.renderPropertyPreview(e.key.type, e.key.subtype, void 0, e.key.description)} => `}
|
|
45
|
+
${this.renderPropertyPreview(e.value.type, e.value.subtype, void 0, e.value.description)}`;
|
|
46
|
+
return v`${a.length > 0 ? v`<span class=object-description>${a + "\xA0"}</span>` : x}<span class=object-properties-preview>${i ? "[" : "{"}${Ae(o, ({ name: e, entry: t, value: n, placeholder: r }, i) => v`${i > 0 ? ", " : ""}${r === void 0 ? x : c(r)}${e === void 0 ? x : s(e)}${e !== void 0 && n ? ": " : ""}${n ? l(n) : x}${t ? u(t) : x}`)}${e.overflow ? v`<span>${o.length > 0 ? ",\xA0…" : "…"}</span>` : ""}
|
|
47
|
+
${i ? "]" : "}"}</span>`;
|
|
48
|
+
}
|
|
49
|
+
*renderObjectProperties(t, n) {
|
|
50
|
+
let r = t.properties.filter((e) => e.type !== "accessor").sort(e.objectPropertyComparator);
|
|
51
|
+
for (let e = 0; e < r.length; ++e) {
|
|
52
|
+
let i = r[e], a = i.name;
|
|
53
|
+
if (!(!n && (i.type === "undefined" || i.type === "object" && i.subtype === "null"))) if (t.subtype === S.ObjectPreviewSubtype.Promise && a === "[[PromiseState]]") {
|
|
54
|
+
let t = r.at(e + 1)?.name === "[[PromiseResult]]" ? r.at(e + 1) : void 0;
|
|
55
|
+
t && e++, yield {
|
|
56
|
+
name: "<" + i.value + ">",
|
|
57
|
+
value: i.value === "pending" ? void 0 : t
|
|
58
|
+
};
|
|
59
|
+
} else t.subtype === "generator" && a === "[[GeneratorState]]" ? yield { name: "<" + i.value + ">" } : a === "[[PrimitiveValue]]" ? yield { value: i } : a === "[[WeakRefTarget]]" ? i.type === S.PropertyPreviewType.Undefined ? yield { name: "<cleared>" } : yield { value: i } : yield {
|
|
60
|
+
name: a,
|
|
61
|
+
value: i
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
*renderArrayProperties(t) {
|
|
66
|
+
let n = b.arrayLength(t), r = t.properties.filter((e) => o(e.name) !== -1).sort(a), i = t.properties.filter((e) => o(e.name) === -1).sort(e.objectPropertyComparator);
|
|
67
|
+
function a(e, t) {
|
|
68
|
+
return o(e.name) - o(t.name);
|
|
69
|
+
}
|
|
70
|
+
function o(e) {
|
|
71
|
+
let t = Number(e) >>> 0;
|
|
72
|
+
return String(t) === e && t < n ? t : -1;
|
|
73
|
+
}
|
|
74
|
+
let s = !t.overflow, c = [];
|
|
75
|
+
for (let e of r) {
|
|
76
|
+
let t = o(e.name), n = t - (c.at(-1)?.index ?? -1) - 1, r = t !== c.length;
|
|
77
|
+
c.push({
|
|
78
|
+
property: e,
|
|
79
|
+
index: t,
|
|
80
|
+
gap: n,
|
|
81
|
+
hasGaps: r
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
let l = n - (c.at(-1)?.index ?? -1) - 1, u = (e) => ({ placeholder: e === 1 ? A(k.empty) : A(k.emptyD, { PH1: e }) });
|
|
85
|
+
for (let { property: e, gap: t, hasGaps: n } of c) s && t > 0 && (yield u(t)), yield {
|
|
86
|
+
name: !s && n ? e.name : void 0,
|
|
87
|
+
value: e
|
|
88
|
+
};
|
|
89
|
+
s && l > 0 && (yield u(l));
|
|
90
|
+
for (let e of i) yield {
|
|
91
|
+
name: e.name,
|
|
92
|
+
value: e
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
*renderEntries(e) {
|
|
96
|
+
for (let t of e.entries ?? []) yield { entry: t };
|
|
97
|
+
}
|
|
98
|
+
renderPropertyPreview(e, t, r, a) {
|
|
99
|
+
let o = e === "accessor" ? A(k.thePropertyIsComputedWithAGetter) : e === "object" && !t ? a : void 0;
|
|
100
|
+
return v`<span class='object-value-${t || e}' title=${ke(o)}>${e === "accessor" ? "(...)" : e === "function" ? "ƒ" : e === "object" && t === "trustedtype" && r ? Me(a ?? "", r) : e === "object" && t === "node" && a ? M(a) : e === "string" ? n(a ?? "") : e === "object" && !t ? ((e) => {
|
|
101
|
+
let t = e.split(".");
|
|
102
|
+
for (let e = 0; e < t.length - 1; ++e) t[e] = i(t[e], 3);
|
|
103
|
+
return t.length === 1 && t[0] === "Object" ? "{…}" : t.join(".");
|
|
104
|
+
})(a ?? "") : a}</span>`;
|
|
105
|
+
}
|
|
106
|
+
renderEvaluationResultPreview(e, t) {
|
|
107
|
+
if ("error" in e) return x;
|
|
108
|
+
if (e.exceptionDetails?.exception?.description) {
|
|
109
|
+
let n = e.exceptionDetails.exception.description;
|
|
110
|
+
return n.startsWith("TypeError: ") || t ? v`<span>${e.exceptionDetails.text} ${n}</span>` : x;
|
|
111
|
+
}
|
|
112
|
+
let { preview: n, type: r, subtype: i, className: o, description: s } = e.object;
|
|
113
|
+
return n && r === "object" && i !== "node" && i !== "trustedtype" ? this.renderObjectPreview(n) : this.renderPropertyPreview(r, i, o, a(s || "", 400));
|
|
114
|
+
}
|
|
115
|
+
renderEvaluationResultPreviewFragment(e, t) {
|
|
116
|
+
let n = document.createDocumentFragment();
|
|
117
|
+
return g(this.renderEvaluationResultPreview(e, t), n), n;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
function M(e) {
|
|
121
|
+
let t = e.match(/([^#.]+)(#[^.]+)?(\..*)?/);
|
|
122
|
+
return t ? v`<span class=webkit-html-tag-name>${t[1]}</span>${t[2] && v`<span class=webkit-html-attribute-value>${t[2]}</span>`}${t[3] && v`<span class=webkit-html-attribute-name>${t[3]}</span>`}` : null;
|
|
123
|
+
}
|
|
124
|
+
function Me(e, t) {
|
|
125
|
+
return v`${t} <span class=object-value-string>"${e.replace(/\n/g, "↵")}"</span>`;
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts
|
|
129
|
+
var Ne = /* @__PURE__ */ e({ JavaScriptREPL: () => N }), N = class e {
|
|
130
|
+
static wrapObjectLiteral(e) {
|
|
131
|
+
let t = /^\s*\{\s*(.*)\s*\}[\s;]*$/.exec(e);
|
|
132
|
+
if (t === null) return e;
|
|
133
|
+
let [, n] = t, r = 0;
|
|
134
|
+
for (let t of n) if (t === "{") r++;
|
|
135
|
+
else if (t === "}" && --r < 0) return e;
|
|
136
|
+
let i = (e) => void Ee(e, {
|
|
137
|
+
ecmaVersion: 2022,
|
|
138
|
+
allowAwaitOutsideFunction: !0,
|
|
139
|
+
ranges: !1,
|
|
140
|
+
allowReturnOutsideFunction: !0
|
|
141
|
+
});
|
|
142
|
+
try {
|
|
143
|
+
i("return {" + n + "};");
|
|
144
|
+
let e = "({" + n + "})";
|
|
145
|
+
return i(e), e;
|
|
146
|
+
} catch {
|
|
147
|
+
return e;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
static async evaluate(t, n, r, i, a, o, s = !1, c = !1) {
|
|
151
|
+
let l = t.length > Pe;
|
|
152
|
+
if (!t || r && l) return null;
|
|
153
|
+
let u = t, d = n.debuggerModel.selectedCallFrame();
|
|
154
|
+
if (d?.script.isJavaScript()) {
|
|
155
|
+
let e = await Ce(d);
|
|
156
|
+
try {
|
|
157
|
+
u = await oe().javaScriptSubstitute(u, e);
|
|
158
|
+
} catch {}
|
|
159
|
+
}
|
|
160
|
+
u = e.wrapObjectLiteral(u);
|
|
161
|
+
let f = {
|
|
162
|
+
expression: u,
|
|
163
|
+
generatePreview: !0,
|
|
164
|
+
includeCommandLineAPI: !0,
|
|
165
|
+
throwOnSideEffect: r,
|
|
166
|
+
timeout: a,
|
|
167
|
+
objectGroup: o,
|
|
168
|
+
disableBreaks: !0,
|
|
169
|
+
replMode: i,
|
|
170
|
+
silent: c
|
|
171
|
+
};
|
|
172
|
+
return await n.evaluate(f, !1, s);
|
|
173
|
+
}
|
|
174
|
+
static async evaluateAndBuildPreview(t, n, r, i, a, o, s = !1, c = !1) {
|
|
175
|
+
let l = le.instance().flavor(ee);
|
|
176
|
+
if (!l) return {
|
|
177
|
+
preview: document.createDocumentFragment(),
|
|
178
|
+
result: null
|
|
179
|
+
};
|
|
180
|
+
let u = await e.evaluate(t, l, n, r, i, o, s, c);
|
|
181
|
+
return u ? {
|
|
182
|
+
preview: new j().renderEvaluationResultPreviewFragment(u, a),
|
|
183
|
+
result: u
|
|
184
|
+
} : {
|
|
185
|
+
preview: document.createDocumentFragment(),
|
|
186
|
+
result: null
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
}, Pe = 2e3, P = "/*\n * Copyright 2015 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.object-properties-section-dimmed {\n opacity: 60%;\n}\n\n.object-properties-section {\n padding: 0;\n color: var(--sys-color-on-surface);\n display: flex;\n flex-direction: column;\n overflow-x: auto;\n}\n\n.object-properties-section li,\nli.object-properties-section {\n user-select: text;\n\n &::before {\n flex-shrink: 0;\n margin-right: 2px;\n align-self: flex-start;\n }\n}\n\n.object-properties-section li.editing-sub-part {\n padding: 3px 12px 8px 6px;\n margin: -1px -6px -8px;\n text-overflow: clip;\n}\n\n.object-properties-section li.editing {\n margin-left: 10px;\n text-overflow: clip;\n}\n\n.tree-outline ol.title-less-mode {\n padding-left: 0;\n}\n\n.object-properties-section .own-property {\n font-weight: bold;\n}\n\n.object-properties-section .synthetic-property {\n color: var(--sys-color-token-subtle);\n}\n\n.object-properties-section .private-property-hash {\n color: var(--sys-color-on-surface);\n}\n\n.object-properties-section-root-element {\n display: flex;\n flex-direction: row;\n}\n\n.object-properties-section .editable-div {\n overflow: hidden;\n}\n\n.name-and-value {\n line-height: 16px;\n display: flex;\n white-space: nowrap;\n}\n\n.name-and-value .separator {\n white-space: pre;\n flex-shrink: 0;\n}\n\n.editing-sub-part .name-and-value {\n overflow: visible;\n display: inline-flex;\n}\n\n.property-prompt {\n margin-left: 4px;\n}\n\n.tree-outline.hide-selection-when-blurred .selected:focus-visible {\n background: none;\n}\n\n.tree-outline.hide-selection-when-blurred .selected:focus-visible ::slotted(*),\n.tree-outline.hide-selection-when-blurred .selected:focus-visible .tree-element-title,\n.tree-outline.hide-selection-when-blurred .selected:focus-visible .name-and-value,\n.tree-outline.hide-selection-when-blurred .selected:focus-visible .gray-info-message {\n background: var(--sys-color-state-focus-highlight);\n border-radius: 2px;\n}\n\n@media (forced-colors: active) {\n .object-properties-section-dimmed {\n opacity: 100%;\n }\n\n .tree-outline.hide-selection-when-blurred .selected:focus-visible {\n background: Highlight;\n }\n\n .tree-outline li:hover .tree-element-title,\n .tree-outline li.selected .tree-element-title {\n color: ButtonText;\n }\n\n .tree-outline.hide-selection-when-blurred .selected:focus-visible .tree-element-title,\n .tree-outline.hide-selection-when-blurred .selected:focus-visible .name-and-value {\n background: transparent;\n box-shadow: none;\n }\n\n .tree-outline.hide-selection-when-blurred .selected:focus-visible span,\n .tree-outline.hide-selection-when-blurred .selected:focus-visible .gray-info-message {\n color: HighlightText;\n }\n\n .tree-outline-disclosure:hover li.parent::before {\n background-color: ButtonText;\n }\n}\n", Fe = /* @__PURE__ */ e({
|
|
190
|
+
ArrayGroupTreeNode: () => H,
|
|
191
|
+
ArrayGroupingTreeElement: () => X,
|
|
192
|
+
EXPANDABLE_TEXT_DEFAULT_VIEW: () => Qe,
|
|
193
|
+
ExpandableTextPropertyValue: () => Z,
|
|
194
|
+
InitialVisibleChildrenLimit: () => 200,
|
|
195
|
+
OBJECT_PROPERTY_DEFAULT_VIEW: () => Ge,
|
|
196
|
+
ObjectPropertiesMode: () => q,
|
|
197
|
+
ObjectPropertiesSection: () => W,
|
|
198
|
+
ObjectPropertiesSectionsTreeExpandController: () => Ye,
|
|
199
|
+
ObjectPropertiesSectionsTreeOutline: () => K,
|
|
200
|
+
ObjectPropertyTreeElement: () => Y,
|
|
201
|
+
ObjectPropertyWidget: () => Ke,
|
|
202
|
+
ObjectTree: () => V,
|
|
203
|
+
ObjectTreeExpansionTracker: () => He,
|
|
204
|
+
ObjectTreeNode: () => U,
|
|
205
|
+
ObjectTreeNodeBase: () => B,
|
|
206
|
+
Renderer: () => Ze,
|
|
207
|
+
RootElement: () => J,
|
|
208
|
+
getObjectPropertiesSectionFrom: () => Ue,
|
|
209
|
+
objectPropertiesSectionStyles: () => P,
|
|
210
|
+
objectValueStyles: () => O
|
|
211
|
+
}), { widget: F } = de, { ref: Ie, repeat: Le, ifDefined: I, classMap: Re } = se, L = {
|
|
212
|
+
exceptionS: "[Exception: {PH1}]",
|
|
213
|
+
unknown: "unknown",
|
|
214
|
+
expandRecursively: "Expand recursively",
|
|
215
|
+
collapseChildren: "Collapse children",
|
|
216
|
+
noProperties: "No properties",
|
|
217
|
+
dots: "(...)",
|
|
218
|
+
invokePropertyGetter: "Invoke property getter",
|
|
219
|
+
showAllD: "Show all {PH1}",
|
|
220
|
+
valueUnavailable: "<value unavailable>",
|
|
221
|
+
valueNotAccessibleToTheDebugger: "Value is not accessible to the debugger",
|
|
222
|
+
copyValue: "Copy value",
|
|
223
|
+
copyPropertyPath: "Copy property path",
|
|
224
|
+
stringIsTooLargeToEdit: "<string is too large to edit>",
|
|
225
|
+
showMoreS: "Show more ({PH1})",
|
|
226
|
+
longTextWasTruncatedS: "long text was truncated ({PH1})",
|
|
227
|
+
copy: "Copy",
|
|
228
|
+
openInMemoryInpector: "Open in Memory inspector panel"
|
|
229
|
+
}, ze = m("ui/legacy/components/object_ui/ObjectPropertiesSection.ts", L), R = p.bind(void 0, ze), z = 100, Be = /* @__PURE__ */ new WeakMap(), Ve = class e {
|
|
230
|
+
properties = /* @__PURE__ */ new Map();
|
|
231
|
+
internalProperties = /* @__PURE__ */ new Map();
|
|
232
|
+
arrayRanges = /* @__PURE__ */ new Map();
|
|
233
|
+
accessors = /* @__PURE__ */ new Map();
|
|
234
|
+
remove(t) {
|
|
235
|
+
return this[t.type].delete(e.#e(t));
|
|
236
|
+
}
|
|
237
|
+
get(t) {
|
|
238
|
+
return this[t.type].get(e.#e(t));
|
|
239
|
+
}
|
|
240
|
+
getOrInsert(t) {
|
|
241
|
+
let n = this[t.type], r = e.#e(t), i = n.get(r) ?? new e();
|
|
242
|
+
return n.has(r) || n.set(r, i), i;
|
|
243
|
+
}
|
|
244
|
+
clear(e) {
|
|
245
|
+
this[e].clear();
|
|
246
|
+
}
|
|
247
|
+
clearMissing(t, n) {
|
|
248
|
+
let r = new Set(n.map(e.#e)), i = this[t];
|
|
249
|
+
for (let e of i.keys()) r.has(e) || i.delete(e);
|
|
250
|
+
}
|
|
251
|
+
get empty() {
|
|
252
|
+
return this.properties.size === 0 && this.internalProperties.size === 0 && this.arrayRanges.size === 0 && this.accessors.size === 0;
|
|
253
|
+
}
|
|
254
|
+
static #e(e) {
|
|
255
|
+
return typeof e.key == "string" ? `${e.type}:${e.key}` : `${e.type}:${e.key.fromIndex}-${e.key.toIndex}`;
|
|
256
|
+
}
|
|
257
|
+
}, He = class e {
|
|
258
|
+
#e = null;
|
|
259
|
+
static #t(e) {
|
|
260
|
+
if (e instanceof U) return e.parent?.children?.internalProperties?.find((t) => t.name === "[[Prototype]]" && t.children?.properties?.includes(e));
|
|
261
|
+
}
|
|
262
|
+
static #n(t) {
|
|
263
|
+
if (t instanceof U) {
|
|
264
|
+
if (t.parent?.children?.properties?.includes(t)) return "properties";
|
|
265
|
+
if (t.parent?.children?.internalProperties?.includes(t)) return "internalProperties";
|
|
266
|
+
if (t.parent?.children?.accessors?.includes(t)) return "accessors";
|
|
267
|
+
if (e.#t(t)) return "properties";
|
|
268
|
+
}
|
|
269
|
+
return t instanceof H && t.parent?.children?.arrayRanges?.includes(t) ? "arrayRanges" : null;
|
|
270
|
+
}
|
|
271
|
+
static #r(e, t) {
|
|
272
|
+
switch (e) {
|
|
273
|
+
case "arrayRanges": return t instanceof H ? {
|
|
274
|
+
type: e,
|
|
275
|
+
key: t.range
|
|
276
|
+
} : null;
|
|
277
|
+
default: return t instanceof U ? {
|
|
278
|
+
type: e,
|
|
279
|
+
key: t.name
|
|
280
|
+
} : null;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
clear() {
|
|
284
|
+
this.#e = null;
|
|
285
|
+
}
|
|
286
|
+
async #i(t, n) {
|
|
287
|
+
let r = async (r) => {
|
|
288
|
+
let i = n.children?.[r];
|
|
289
|
+
if (!i) {
|
|
290
|
+
t.clear(r);
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
let a = [];
|
|
294
|
+
for (let n of i) {
|
|
295
|
+
let i = e.#r(r, n);
|
|
296
|
+
if (!i) continue;
|
|
297
|
+
let o = t.get(i);
|
|
298
|
+
o && (await this.#i(o, n), a.push(i));
|
|
299
|
+
}
|
|
300
|
+
t.clearMissing(r, a);
|
|
301
|
+
};
|
|
302
|
+
n.expanded = !0, await n.populateChildrenIfNeeded(), await r("properties"), await r("internalProperties"), await r("arrayRanges"), await r("accessors");
|
|
303
|
+
}
|
|
304
|
+
async apply(e) {
|
|
305
|
+
if (this.#e) return await this.#i(this.#e, e);
|
|
306
|
+
}
|
|
307
|
+
static *#a(t) {
|
|
308
|
+
if (!t) return;
|
|
309
|
+
let n = e.#t(t);
|
|
310
|
+
n ? yield* this.#a(n) : yield* this.#a(t.parent);
|
|
311
|
+
let r = this.#n(t), i = r && e.#r(r, t);
|
|
312
|
+
i && (yield i);
|
|
313
|
+
}
|
|
314
|
+
collapse(t) {
|
|
315
|
+
if (!this.#e) return;
|
|
316
|
+
if (t instanceof V) {
|
|
317
|
+
this.#e = null;
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
let n, r = null, i = this.#e;
|
|
321
|
+
for (let a of e.#a(t)) {
|
|
322
|
+
n = a, r = i;
|
|
323
|
+
let e = i.get(a);
|
|
324
|
+
if (!e) return;
|
|
325
|
+
i = e;
|
|
326
|
+
}
|
|
327
|
+
n && r && r.remove(n);
|
|
328
|
+
}
|
|
329
|
+
expand(t) {
|
|
330
|
+
this.#e ||= new Ve();
|
|
331
|
+
let n = this.#e;
|
|
332
|
+
for (let r of e.#a(t)) n = n.getOrInsert(r);
|
|
333
|
+
}
|
|
334
|
+
}, B = class e extends l {
|
|
335
|
+
parent;
|
|
336
|
+
options;
|
|
337
|
+
#e;
|
|
338
|
+
filter = null;
|
|
339
|
+
extraProperties = [];
|
|
340
|
+
#t = !1;
|
|
341
|
+
constructor(e, t) {
|
|
342
|
+
super(), this.parent = e, this.options = t, this.filter = e?.filter ?? null;
|
|
343
|
+
}
|
|
344
|
+
get expanded() {
|
|
345
|
+
return this.#t;
|
|
346
|
+
}
|
|
347
|
+
set expanded(e) {
|
|
348
|
+
e ? this.options.expansionTracker?.expand(this) : this.options.expansionTracker?.collapse(this), this.#t = e;
|
|
349
|
+
}
|
|
350
|
+
get readOnly() {
|
|
351
|
+
return this.options.readOnly;
|
|
352
|
+
}
|
|
353
|
+
get propertiesMode() {
|
|
354
|
+
return this.options.propertiesMode;
|
|
355
|
+
}
|
|
356
|
+
get includeNullOrUndefinedValues() {
|
|
357
|
+
return this.filter?.includeNullOrUndefinedValues ?? !0;
|
|
358
|
+
}
|
|
359
|
+
set includeNullOrUndefinedValues(e) {
|
|
360
|
+
this.setFilter({
|
|
361
|
+
includeNullOrUndefinedValues: e,
|
|
362
|
+
regex: this.filter?.regex ?? null
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
*#n(e = -1) {
|
|
366
|
+
function* t(t) {
|
|
367
|
+
if (t) for (let n of t) yield* n.#n(Math.max(-1, e - 1));
|
|
368
|
+
}
|
|
369
|
+
yield this, e !== 0 && (yield* t(this.#e?.properties), yield* t(this.#e?.arrayRanges), yield* t(this.#e?.internalProperties));
|
|
370
|
+
}
|
|
371
|
+
async expandRecursively(e) {
|
|
372
|
+
for (let t of this.#n(e)) await t.populateChildrenIfNeeded(), t.expanded = !0;
|
|
373
|
+
}
|
|
374
|
+
collapseRecursively() {
|
|
375
|
+
for (let e of this.#n()) e.expanded = !1;
|
|
376
|
+
}
|
|
377
|
+
setFilter(t) {
|
|
378
|
+
this.filter = t, this.dispatchEventToListeners(e.Events.FILTER_CHANGED), this.#n().forEach((n) => {
|
|
379
|
+
n.filter = t, n.dispatchEventToListeners(e.Events.FILTER_CHANGED);
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
removeChildren() {
|
|
383
|
+
this.#e = void 0, this.dispatchEventToListeners(e.Events.CHILDREN_CHANGED);
|
|
384
|
+
}
|
|
385
|
+
removeChild(t) {
|
|
386
|
+
n(this.#e?.arrayRanges, t), n(this.#e?.internalProperties, t), n(this.#e?.properties, t), this.dispatchEventToListeners(e.Events.CHILDREN_CHANGED);
|
|
387
|
+
function n(e, t) {
|
|
388
|
+
if (!e) return;
|
|
389
|
+
let n = e.indexOf(t);
|
|
390
|
+
n >= 0 && e.splice(n, 1);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
selfOrParentIfInternal() {
|
|
394
|
+
return this;
|
|
395
|
+
}
|
|
396
|
+
get children() {
|
|
397
|
+
return this.#e;
|
|
398
|
+
}
|
|
399
|
+
#r;
|
|
400
|
+
async populateChildrenIfNeeded() {
|
|
401
|
+
return this.#e ? this.#e : (this.#r ||= this.populateChildrenIfNeededImpl().then((e) => (this.#e = e, e)).finally(() => {
|
|
402
|
+
this.#r = void 0;
|
|
403
|
+
}), await this.#r);
|
|
404
|
+
}
|
|
405
|
+
async populateChildrenIfNeededImpl() {
|
|
406
|
+
let t = this.object;
|
|
407
|
+
if (!t) return {};
|
|
408
|
+
let n = this.selfOrParentIfInternal();
|
|
409
|
+
if (this.arrayLength > We) {
|
|
410
|
+
let e = (await qe(t, 0, this.arrayLength - 1))?.ranges.map(([e, r, i]) => new H(t, {
|
|
411
|
+
fromIndex: e,
|
|
412
|
+
toIndex: r,
|
|
413
|
+
count: i
|
|
414
|
+
}, n, {
|
|
415
|
+
readOnly: this.readOnly,
|
|
416
|
+
propertiesMode: this.propertiesMode,
|
|
417
|
+
expansionTracker: this.options.expansionTracker
|
|
418
|
+
}));
|
|
419
|
+
if (!e) return {};
|
|
420
|
+
let { properties: r, internalProperties: i } = await b.loadFromObjectPerProto(this.object, !0, !0);
|
|
421
|
+
return {
|
|
422
|
+
arrayRanges: e,
|
|
423
|
+
properties: r?.map((e) => new U(e, n, {
|
|
424
|
+
readOnly: this.readOnly,
|
|
425
|
+
propertiesMode: 1,
|
|
426
|
+
expansionTracker: this.options.expansionTracker
|
|
427
|
+
})),
|
|
428
|
+
internalProperties: i?.map((e) => new U(e, n, {
|
|
429
|
+
readOnly: this.readOnly,
|
|
430
|
+
propertiesMode: 1,
|
|
431
|
+
expansionTracker: this.options.expansionTracker
|
|
432
|
+
}))
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
let r = null, i = null;
|
|
436
|
+
switch (this.propertiesMode) {
|
|
437
|
+
case 0:
|
|
438
|
+
({properties: r} = await t.getAllProperties(!1, !0));
|
|
439
|
+
break;
|
|
440
|
+
case 1:
|
|
441
|
+
({properties: r, internalProperties: i} = await b.loadFromObjectPerProto(t, !0));
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
let a = r?.map((e) => new U(e, n, {
|
|
445
|
+
readOnly: this.readOnly,
|
|
446
|
+
propertiesMode: 1,
|
|
447
|
+
expansionTracker: this.options.expansionTracker
|
|
448
|
+
}));
|
|
449
|
+
a?.push(...this.extraProperties), a?.sort(W.compareProperties);
|
|
450
|
+
let o = a && e.getGettersAndSetters(a, this.options);
|
|
451
|
+
return {
|
|
452
|
+
properties: a,
|
|
453
|
+
internalProperties: i?.map((e) => new U(e, n, {
|
|
454
|
+
readOnly: this.readOnly,
|
|
455
|
+
propertiesMode: 1,
|
|
456
|
+
expansionTracker: this.options.expansionTracker
|
|
457
|
+
})),
|
|
458
|
+
accessors: o
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
get hasChildren() {
|
|
462
|
+
return this.object?.hasChildren ?? !1;
|
|
463
|
+
}
|
|
464
|
+
get arrayLength() {
|
|
465
|
+
return this.object?.arrayLength() ?? 0;
|
|
466
|
+
}
|
|
467
|
+
async setPropertyValue(e, t) {
|
|
468
|
+
return await this.object?.setPropertyValue(e, t);
|
|
469
|
+
}
|
|
470
|
+
addExtraProperties(...e) {
|
|
471
|
+
this.extraProperties.push(...e.map((e) => new U(e, this, {
|
|
472
|
+
readOnly: this.readOnly,
|
|
473
|
+
propertiesMode: 1,
|
|
474
|
+
expansionTracker: this.options.expansionTracker
|
|
475
|
+
})));
|
|
476
|
+
}
|
|
477
|
+
static getGettersAndSetters(e, t) {
|
|
478
|
+
let n = [];
|
|
479
|
+
for (let r of e) if (r.property.isOwn) {
|
|
480
|
+
if (r.property.getter) {
|
|
481
|
+
let e = new h("get " + r.property.name, r.property.getter, !1);
|
|
482
|
+
n.push(new U(e, r.parent, {
|
|
483
|
+
propertiesMode: r.propertiesMode,
|
|
484
|
+
readOnly: r.readOnly,
|
|
485
|
+
expansionTracker: t.expansionTracker
|
|
486
|
+
}));
|
|
487
|
+
}
|
|
488
|
+
if (r.property.setter) {
|
|
489
|
+
let e = new h("set " + r.property.name, r.property.setter, !1);
|
|
490
|
+
n.push(new U(e, r.parent, {
|
|
491
|
+
propertiesMode: r.propertiesMode,
|
|
492
|
+
readOnly: r.readOnly,
|
|
493
|
+
expansionTracker: t.expansionTracker
|
|
494
|
+
}));
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
return n;
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
(function(e) {
|
|
501
|
+
e.Events = /* @__PURE__ */ function(e) {
|
|
502
|
+
return e.VALUE_CHANGED = "value-changed", e.CHILDREN_CHANGED = "children-changed", e.FILTER_CHANGED = "filter-changed", e;
|
|
503
|
+
}({});
|
|
504
|
+
})(B ||= {});
|
|
505
|
+
var V = class extends B {
|
|
506
|
+
#e;
|
|
507
|
+
constructor(e, t) {
|
|
508
|
+
super(void 0, t), this.#e = e;
|
|
509
|
+
}
|
|
510
|
+
get object() {
|
|
511
|
+
return this.#e;
|
|
512
|
+
}
|
|
513
|
+
}, H = class e extends B {
|
|
514
|
+
#e;
|
|
515
|
+
#t;
|
|
516
|
+
constructor(e, t, n, r) {
|
|
517
|
+
super(n, r), this.#e = e, this.#t = t;
|
|
518
|
+
}
|
|
519
|
+
async populateChildrenIfNeededImpl() {
|
|
520
|
+
if (this.#t.count > X.bucketThreshold) return { arrayRanges: (await qe(this.object, this.#t.fromIndex, this.#t.toIndex))?.ranges.map(([t, n, r]) => new e(this.object, {
|
|
521
|
+
fromIndex: t,
|
|
522
|
+
toIndex: n,
|
|
523
|
+
count: r
|
|
524
|
+
}, this, {
|
|
525
|
+
readOnly: this.readOnly,
|
|
526
|
+
propertiesMode: this.propertiesMode,
|
|
527
|
+
expansionTracker: this.options.expansionTracker
|
|
528
|
+
})) };
|
|
529
|
+
let t = await this.#e.callFunction(Je, [
|
|
530
|
+
{ value: this.#t.fromIndex },
|
|
531
|
+
{ value: this.#t.toIndex },
|
|
532
|
+
{ value: X.sparseIterationThreshold }
|
|
533
|
+
]);
|
|
534
|
+
if (!t.object || t.wasThrown) return {};
|
|
535
|
+
let n = t.object, r = await n.getAllProperties(!1, !0);
|
|
536
|
+
n.release();
|
|
537
|
+
let i = r.properties?.map((e) => new U(e, this, {
|
|
538
|
+
propertiesMode: this.propertiesMode,
|
|
539
|
+
readOnly: this.readOnly,
|
|
540
|
+
expansionTracker: this.options.expansionTracker
|
|
541
|
+
}));
|
|
542
|
+
return i?.push(...this.extraProperties), i?.sort(W.compareProperties), {
|
|
543
|
+
properties: i,
|
|
544
|
+
accessors: i && B.getGettersAndSetters(i, this.options)
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
get singular() {
|
|
548
|
+
return this.#t.fromIndex === this.#t.toIndex;
|
|
549
|
+
}
|
|
550
|
+
get range() {
|
|
551
|
+
return this.#t;
|
|
552
|
+
}
|
|
553
|
+
get object() {
|
|
554
|
+
return this.#e;
|
|
555
|
+
}
|
|
556
|
+
}, U = class e extends B {
|
|
557
|
+
property;
|
|
558
|
+
nonSyntheticParent;
|
|
559
|
+
#e;
|
|
560
|
+
constructor(e, t, n, r) {
|
|
561
|
+
super(t, n), this.property = e, this.nonSyntheticParent = r;
|
|
562
|
+
}
|
|
563
|
+
get object() {
|
|
564
|
+
return this.property.value;
|
|
565
|
+
}
|
|
566
|
+
get isFiltered() {
|
|
567
|
+
return !!(this.filter && !this.property.match(this.filter));
|
|
568
|
+
}
|
|
569
|
+
get name() {
|
|
570
|
+
return this.property.name;
|
|
571
|
+
}
|
|
572
|
+
get path() {
|
|
573
|
+
if (!this.#e) {
|
|
574
|
+
if (this.property.synthetic) return this.#e = this.name, this.name;
|
|
575
|
+
let t = /^(?:[$_\p{ID_Start}])(?:[$_\u200C\u200D\p{ID_Continue}])*$/u, n = /^(?:0|[1-9]\d*)$/, r = this.parent instanceof e && !this.parent.property.synthetic ? this.parent.path : "";
|
|
576
|
+
this.property.private || t.test(this.name) ? this.#e = r ? `${r}.${this.name}` : this.name : n.test(this.name) ? this.#e = `${r}[${this.name}]` : this.#e = `${r}[${JSON.stringify(this.name)}]`;
|
|
577
|
+
}
|
|
578
|
+
return this.#e;
|
|
579
|
+
}
|
|
580
|
+
selfOrParentIfInternal() {
|
|
581
|
+
return this.name === "[[Prototype]]" ? this.parent ?? this : this;
|
|
582
|
+
}
|
|
583
|
+
async setValue(e) {
|
|
584
|
+
let t = b.toCallArgument(this.property.symbol || this.name);
|
|
585
|
+
if (e = N.wrapObjectLiteral(e.trim()), this.property.synthetic) {
|
|
586
|
+
let t = !1;
|
|
587
|
+
e && (t = await this.property.setSyntheticValue(e)), t ? this.parent?.removeChildren() : this.dispatchEventToListeners(B.Events.VALUE_CHANGED);
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
let n = this.parent?.object;
|
|
591
|
+
if (await (e ? n.setPropertyValue(t, e) : n.deleteProperty(t))) {
|
|
592
|
+
this.dispatchEventToListeners(B.Events.VALUE_CHANGED);
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
e ? this.parent?.removeChildren() : this.parent?.removeChild(this);
|
|
596
|
+
}
|
|
597
|
+
async invokeGetter(e) {
|
|
598
|
+
let t = await this.parent?.object?.callFunction("\n function invokeGetter(getter) {\n return Reflect.apply(getter, this, []);\n }", [b.toCallArgument(e)]);
|
|
599
|
+
t?.object && (this.property.value = t.object, this.property.wasThrown = t.wasThrown || !1, this.dispatchEventToListeners(B.Events.VALUE_CHANGED));
|
|
600
|
+
}
|
|
601
|
+
}, Ue = (e) => Be.get(e), W = class e extends he {
|
|
602
|
+
root;
|
|
603
|
+
#e;
|
|
604
|
+
titleElement;
|
|
605
|
+
skipProtoInternal;
|
|
606
|
+
constructor(e, t, n, r, i = !0) {
|
|
607
|
+
super(), this.root = new V(e, {
|
|
608
|
+
readOnly: !i,
|
|
609
|
+
propertiesMode: 1
|
|
610
|
+
}), r || this.setHideOverflow(!0), this.setFocusable(!0), this.setShowSelectionOnKeyboardFocus(!0), this.#e = new J(this.root, n), this.appendChild(this.#e), typeof t == "string" || !t ? (this.titleElement = this.element.createChild("span"), this.titleElement.textContent = t || "") : (this.titleElement = t, this.element.appendChild(t)), this.titleElement instanceof HTMLElement && !this.titleElement.hasAttribute("tabIndex") && (this.titleElement.tabIndex = -1), Be.set(this.element, this), this.registerRequiredCSS(O, P), this.rootElement().childrenListElement.classList.add("source-code", "object-properties-section");
|
|
611
|
+
}
|
|
612
|
+
static defaultObjectPresentation(t, n, r, i) {
|
|
613
|
+
let a = e.defaultObjectPropertiesSection(t, n, r, i);
|
|
614
|
+
return t.hasChildren ? a.element : a.titleElement;
|
|
615
|
+
}
|
|
616
|
+
static defaultObjectPropertiesSection(t, n, r, i) {
|
|
617
|
+
let a = document.createElement("span");
|
|
618
|
+
a.classList.add("source-code");
|
|
619
|
+
let o = be(a, { cssFile: O }), s = e.createPropertyValue(t, !1, !0);
|
|
620
|
+
o.appendChild(s);
|
|
621
|
+
let c = new e(t, a, n, void 0, !i);
|
|
622
|
+
return r && c.skipProto(), c;
|
|
623
|
+
}
|
|
624
|
+
static compareProperties(e, n) {
|
|
625
|
+
if (e instanceof U && (e = e.property), n instanceof U && (n = n.property), !e.synthetic && n.synthetic) return 1;
|
|
626
|
+
if (!n.synthetic && e.synthetic) return -1;
|
|
627
|
+
if (!e.isOwn && n.isOwn) return 1;
|
|
628
|
+
if (!n.isOwn && e.isOwn) return -1;
|
|
629
|
+
if (!e.enumerable && n.enumerable) return 1;
|
|
630
|
+
if (!n.enumerable && e.enumerable) return -1;
|
|
631
|
+
if (e.symbol && !n.symbol) return 1;
|
|
632
|
+
if (n.symbol && !e.symbol) return -1;
|
|
633
|
+
if (e.private && !n.private) return 1;
|
|
634
|
+
if (n.private && !e.private) return -1;
|
|
635
|
+
let r = e.name, i = n.name;
|
|
636
|
+
return r.startsWith("_") && !i.startsWith("_") ? 1 : i.startsWith("_") && !r.startsWith("_") ? -1 : t(r, i);
|
|
637
|
+
}
|
|
638
|
+
static createNameElement(e, t) {
|
|
639
|
+
let n = document.createElement("span");
|
|
640
|
+
if (n.classList.add("name"), e === null) return n;
|
|
641
|
+
if (/^\s|\s$|^$|\n/.test(e)) return n.textContent = `"${e.replace(/\n/g, "↵")}"`, n;
|
|
642
|
+
if (t) {
|
|
643
|
+
let t = document.createElement("span");
|
|
644
|
+
return t.classList.add("private-property-hash"), t.textContent = e[0], n.appendChild(t), n.appendChild(document.createTextNode(e.substring(1))), n;
|
|
645
|
+
}
|
|
646
|
+
return n.textContent = e, n;
|
|
647
|
+
}
|
|
648
|
+
static valueElementForFunctionDescription(e, t, n, r) {
|
|
649
|
+
let { prefix: i, body: o, abbreviation: s } = ((e, t) => {
|
|
650
|
+
let n = e.replace(/^function [gs]et /, "function ").replace(/^function [gs]et\(/, "function(").replace(/^[gs]et /, ""), r = n.match(/^(async\s+function)/), i = n.startsWith("function*"), a = n.startsWith("*"), o = !i && n.startsWith("function"), s = n.startsWith("class ") || n.startsWith("class{"), l = n.indexOf("=>"), u = !r && !i && !o && !s && l > 0;
|
|
651
|
+
if (s) {
|
|
652
|
+
let e = n.substring(5), r = /^[^{\s]+/.exec(e.trim()), i = t;
|
|
653
|
+
return r && (i = r[0].trim() || t), {
|
|
654
|
+
prefix: "class",
|
|
655
|
+
body: e,
|
|
656
|
+
abbreviation: i
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
if (r) {
|
|
660
|
+
let e = n.substring(r[1].length);
|
|
661
|
+
return {
|
|
662
|
+
prefix: "async ƒ",
|
|
663
|
+
body: e,
|
|
664
|
+
abbreviation: c(e)
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
if (i) {
|
|
668
|
+
let e = n.substring(9);
|
|
669
|
+
return {
|
|
670
|
+
prefix: "ƒ*",
|
|
671
|
+
body: e,
|
|
672
|
+
abbreviation: c(e)
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
if (a) {
|
|
676
|
+
let e = n.substring(1);
|
|
677
|
+
return {
|
|
678
|
+
prefix: "ƒ*",
|
|
679
|
+
body: e,
|
|
680
|
+
abbreviation: c(e)
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
if (o) {
|
|
684
|
+
let e = n.substring(8);
|
|
685
|
+
return {
|
|
686
|
+
prefix: "ƒ",
|
|
687
|
+
body: e,
|
|
688
|
+
abbreviation: c(e)
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
if (u) {
|
|
692
|
+
let e = n;
|
|
693
|
+
return t ? e = t + "()" : n.length > 60 && (e = n.substring(0, l + 2) + " {…}"), {
|
|
694
|
+
prefix: "",
|
|
695
|
+
body: n,
|
|
696
|
+
abbreviation: e
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
return {
|
|
700
|
+
prefix: "ƒ",
|
|
701
|
+
body: n,
|
|
702
|
+
abbreviation: c(n)
|
|
703
|
+
};
|
|
704
|
+
})(e ?? "", n ?? "");
|
|
705
|
+
return v`<span
|
|
706
|
+
class="object-value-function ${r ?? ""}"
|
|
707
|
+
title=${a(e ?? "", 500)}>${i && v`<span class=object-value-function-prefix>${i} </span>`}${t ? a(o.trim(), 200) : s.replace(/\n/g, " ")}</span>`;
|
|
708
|
+
function c(e) {
|
|
709
|
+
let t = e.indexOf("("), r = e.match(/\)\s*{/);
|
|
710
|
+
return t !== -1 && r?.index !== void 0 && r.index > t ? (e.substring(0, t).trim() || (n ?? "")) + e.substring(t, r.index + 1) : n + "()";
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
static createPropertyValueWithCustomSupport(t, n, r, i, a, o, s) {
|
|
714
|
+
if (t.customPreview()) {
|
|
715
|
+
let e = new Q(t).element;
|
|
716
|
+
return e.classList.add("object-properties-section-custom-section"), e;
|
|
717
|
+
}
|
|
718
|
+
return e.createPropertyValue(t, n, r, i, a, o, s);
|
|
719
|
+
}
|
|
720
|
+
static getMemoryIcon(e, t) {
|
|
721
|
+
return e.isLinearMemoryInspectable() ? v`<devtools-icon
|
|
722
|
+
name=memory
|
|
723
|
+
style="width: var(--sys-size-8); height: 13px; vertical-align: sub; cursor: pointer;"
|
|
724
|
+
@click=${(n) => {
|
|
725
|
+
n.consume(), f(new te(e, t));
|
|
726
|
+
}}
|
|
727
|
+
jslog=${w("open-memory-inspector").track({ click: !0 })}
|
|
728
|
+
title=${R(L.openInMemoryInpector)}
|
|
729
|
+
aria-label=${R(L.openInMemoryInpector)}></devtools-icon>` : x;
|
|
730
|
+
}
|
|
731
|
+
static appendMemoryIcon(t, n, r) {
|
|
732
|
+
let i = document.createDocumentFragment();
|
|
733
|
+
g(e.getMemoryIcon(n, r), i), t.appendChild(i);
|
|
734
|
+
}
|
|
735
|
+
static createPropertyValue(t, n, r, i, a = !1, o, s) {
|
|
736
|
+
let c = document.createDocumentFragment(), l = t.type, u = t.subtype, d = t.description || "", p = t.className, m = () => {
|
|
737
|
+
if (l === "object" && u === "internal#location") {
|
|
738
|
+
let e = t.debuggerModel().createRawLocationByScriptId(t.value.scriptId, t.value.lineNumber, t.value.columnNumber);
|
|
739
|
+
return e && i ? v`${i.linkifyRawLocation(e, "", "value")}` : v`<span class=value title=${d}>${"<" + R(L.unknown) + ">"}</span>`;
|
|
740
|
+
}
|
|
741
|
+
if (l === "string" && typeof d == "string") {
|
|
742
|
+
let e = JSON.stringify(d), t = d.length > G;
|
|
743
|
+
return v`<span class="value object-value-string" title=${I(t ? void 0 : d)}>${t ? F(Z, { text: e }) : e}</span>`;
|
|
744
|
+
}
|
|
745
|
+
if (l === "object" && u === "trustedtype") {
|
|
746
|
+
let e = `${p} '${d}'`, t = e.length > G;
|
|
747
|
+
return v`<span class="value object-value-trustedtype" title=${I(t ? void 0 : e)}>${t ? F(Z, { text: e }) : v`${p} <span class=object-value-string title=${d}>${JSON.stringify(d)}</span>`}</span>`;
|
|
748
|
+
}
|
|
749
|
+
if (l === "function") return e.valueElementForFunctionDescription(d, void 0, void 0, "value");
|
|
750
|
+
if (l === "object" && u === "node" && d) return v`<span class="value object-value-node"
|
|
751
|
+
@click=${(e) => {
|
|
752
|
+
f(t), e.consume(!0);
|
|
753
|
+
}}
|
|
754
|
+
@mousemove=${() => D.highlightObjectAsDOMNode(t)}
|
|
755
|
+
@mouseleave=${() => D.hideDOMNodeHighlight()}
|
|
756
|
+
>${M(d)}</span>`;
|
|
757
|
+
if (d.length > G) return v`<span class="value object-value-${u || l}" title=${d}>
|
|
758
|
+
${F(Z, { text: d })}
|
|
759
|
+
</span>`;
|
|
760
|
+
let n = t.preview && r;
|
|
761
|
+
return v`<span class="value object-value-${u || l}" title=${d}>${n ? new j().renderObjectPreview(t.preview, s) : d}${a ? x : this.getMemoryIcon(t, o)}</span>`;
|
|
762
|
+
};
|
|
763
|
+
g(n ? v`<span class="error value">${we(ze, L.exceptionS, { PH1: m() })}</span>` : m(), c);
|
|
764
|
+
let h = c.firstElementChild;
|
|
765
|
+
if (!(h instanceof HTMLElement)) throw Error("Expected an HTML element");
|
|
766
|
+
return h;
|
|
767
|
+
}
|
|
768
|
+
static formatObjectAsFunction(t, n, r, i) {
|
|
769
|
+
return t.debuggerModel().functionDetailsPromise(t).then(a);
|
|
770
|
+
function a(a) {
|
|
771
|
+
r && a?.location && (n.classList.add("linkified"), n.addEventListener("click", () => (f(a.location), !1)));
|
|
772
|
+
let o = i ? "" : "anonymous";
|
|
773
|
+
a?.functionName && (o = a.functionName);
|
|
774
|
+
let s = document.createDocumentFragment();
|
|
775
|
+
g(e.valueElementForFunctionDescription(t.description, i, o), s), n.appendChild(s);
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
static isDisplayableProperty(e, t) {
|
|
779
|
+
if (!t?.synthetic) return !0;
|
|
780
|
+
let n = e.name;
|
|
781
|
+
return !(t.name === "[[Entries]]" && (n === "length" || n === "__proto__"));
|
|
782
|
+
}
|
|
783
|
+
skipProto() {
|
|
784
|
+
this.skipProtoInternal = !0;
|
|
785
|
+
}
|
|
786
|
+
expand() {
|
|
787
|
+
this.#e.expand();
|
|
788
|
+
}
|
|
789
|
+
objectTreeElement() {
|
|
790
|
+
return this.#e;
|
|
791
|
+
}
|
|
792
|
+
enableContextMenu() {
|
|
793
|
+
this.element.addEventListener("contextmenu", this.contextMenuEventFired.bind(this), !1);
|
|
794
|
+
}
|
|
795
|
+
contextMenuEventFired(e) {
|
|
796
|
+
let t = new C(e);
|
|
797
|
+
t.appendApplicableItems(this.root), this.root.object instanceof _ && (t.viewSection().appendItem(R(L.expandRecursively), this.#e.expandRecursively.bind(this.#e, z), { jslogContext: "expand-recursively" }), t.viewSection().appendItem(R(L.collapseChildren), this.#e.collapseChildren.bind(this.#e), { jslogContext: "collapse-children" })), t.show();
|
|
798
|
+
}
|
|
799
|
+
titleLessMode() {
|
|
800
|
+
this.#e.listItemElement.classList.add("hidden"), this.#e.childrenListElement.classList.add("title-less-mode"), this.#e.expand();
|
|
801
|
+
}
|
|
802
|
+
}, We = 100, G = 1e4, K = class extends he {
|
|
803
|
+
constructor() {
|
|
804
|
+
super(), this.registerRequiredCSS(O, P), this.contentElement.classList.add("source-code"), this.contentElement.classList.add("object-properties-section");
|
|
805
|
+
}
|
|
806
|
+
}, q = /* @__PURE__ */ function(e) {
|
|
807
|
+
return e[e.ALL = 0] = "ALL", e[e.OWN_AND_INTERNAL_AND_INHERITED = 1] = "OWN_AND_INTERNAL_AND_INHERITED", e;
|
|
808
|
+
}({}), J = class extends T {
|
|
809
|
+
object;
|
|
810
|
+
linkifier;
|
|
811
|
+
emptyPlaceholder;
|
|
812
|
+
toggleOnClick;
|
|
813
|
+
constructor(e, t, n) {
|
|
814
|
+
let r = document.createElement("slot");
|
|
815
|
+
super(r), this.object = e, this.object.addEventListener(B.Events.CHILDREN_CHANGED, this.onpopulate, this), this.linkifier = t, this.emptyPlaceholder = n, this.setExpandable(!0), this.selectable = !0, this.toggleOnClick = !0, this.listItemElement.classList.add("object-properties-section-root-element"), this.listItemElement.addEventListener("contextmenu", this.onContextMenu.bind(this), !1), e.expanded && this.expand();
|
|
816
|
+
}
|
|
817
|
+
onexpand() {
|
|
818
|
+
this.object.expanded = !0, this.treeOutline && this.treeOutline.element.classList.add("expanded");
|
|
819
|
+
}
|
|
820
|
+
oncollapse() {
|
|
821
|
+
this.object.expanded = !1, this.treeOutline && this.treeOutline.element.classList.remove("expanded");
|
|
822
|
+
}
|
|
823
|
+
ondblclick(e) {
|
|
824
|
+
return !0;
|
|
825
|
+
}
|
|
826
|
+
onContextMenu(e) {
|
|
827
|
+
let t = new C(e);
|
|
828
|
+
if (t.appendApplicableItems(this.object.object), this.object instanceof _) {
|
|
829
|
+
let { value: e } = this.object, n = typeof e == "object" ? JSON.stringify(e, null, 2) : e;
|
|
830
|
+
t.clipboardSection().appendItem(R(L.copyValue), () => {
|
|
831
|
+
_e.actionTaken(pe.NetworkPanelCopyValue), y.copyText(n);
|
|
832
|
+
}, { jslogContext: "copy-value" });
|
|
833
|
+
}
|
|
834
|
+
t.viewSection().appendItem(R(L.expandRecursively), this.expandRecursively.bind(this, z), { jslogContext: "expand-recursively" }), t.viewSection().appendItem(R(L.collapseChildren), this.collapseChildren.bind(this), { jslogContext: "collapse-children" }), t.viewSection().appendCheckboxItem(d("Show all"), () => {
|
|
835
|
+
this.object.includeNullOrUndefinedValues = !this.object.includeNullOrUndefinedValues;
|
|
836
|
+
}, {
|
|
837
|
+
checked: this.object.includeNullOrUndefinedValues,
|
|
838
|
+
jslogContext: "show-all"
|
|
839
|
+
}), t.show();
|
|
840
|
+
}
|
|
841
|
+
async onpopulate() {
|
|
842
|
+
this.removeChildren();
|
|
843
|
+
let e = this.treeOutline, t = e ? !!e.skipProtoInternal : !1;
|
|
844
|
+
return await Y.populate(this, this.object, t, !1, this.linkifier, this.emptyPlaceholder);
|
|
845
|
+
}
|
|
846
|
+
}, Ge = (e, t, n) => {
|
|
847
|
+
let { property: r } = e.node, a = r.synthetic && e.node.name === "[[Entries]]", o = `completions-${e.node.parent?.object?.objectId?.replaceAll(".", "-")}-${e.node.name}`, c = async (t) => {
|
|
848
|
+
t.target instanceof ue && e.onAutoComplete(t.detail.expression, t.detail.filter, t.detail.force);
|
|
849
|
+
}, l = Re({
|
|
850
|
+
name: !0,
|
|
851
|
+
"object-properties-section-dimmed": !r.enumerable,
|
|
852
|
+
"own-property": r.isOwn,
|
|
853
|
+
"synthetic-property": r.synthetic
|
|
854
|
+
}), u = /^\s|\s$|^$|\n/.test(r.name) ? `"${r.name.replace(/\n/g, "↵")}"` : r.name, d = !a && r.value && !r.wasThrown && r.value.hasChildren && !r.value.customPreview() && r.value.subtype !== "node" && r.value.type !== "function" && (r.value.type !== "object" || r.value.preview), f = () => {
|
|
855
|
+
let n = Ie((e) => {
|
|
856
|
+
t.valueElement = e;
|
|
857
|
+
});
|
|
858
|
+
if (a) return v`<span ${n} class=value></span>`;
|
|
859
|
+
if (r.value) {
|
|
860
|
+
let n = r.name !== "[[Prototype]]", i = W.createPropertyValueWithCustomSupport(r.value, r.wasThrown, n, e.linkifier, r.synthetic, e.node.path, e.node.includeNullOrUndefinedValues);
|
|
861
|
+
return t.valueElement = i, i;
|
|
862
|
+
}
|
|
863
|
+
if (r.getter) {
|
|
864
|
+
let t = r.getter;
|
|
865
|
+
return v`<span ${n}><span
|
|
866
|
+
class=object-value-calculate-value-button
|
|
867
|
+
title=${R(L.invokePropertyGetter)}
|
|
868
|
+
@click=${(n) => {
|
|
869
|
+
n.consume(), e.invokeGetter(t);
|
|
870
|
+
}}
|
|
871
|
+
>${R(L.dots)}</span></span>`;
|
|
872
|
+
}
|
|
873
|
+
return v`<span ${n}
|
|
874
|
+
class=object-value-unavailable
|
|
875
|
+
title=${R(L.valueNotAccessibleToTheDebugger)}>${R(L.valueUnavailable)}</span>`;
|
|
876
|
+
}, p = (t) => {
|
|
877
|
+
t instanceof KeyboardEvent && !s(t) || (t.consume(!0), e.editable && r.value && !r.value.customPreview() && (r.writable || r.setter) && e.startEditing());
|
|
878
|
+
};
|
|
879
|
+
g(v`<span class=name-and-value><span
|
|
880
|
+
${Ie((e) => {
|
|
881
|
+
t.nameElement = e;
|
|
882
|
+
})}
|
|
883
|
+
class=${l}
|
|
884
|
+
title=${e.node.path}>${r.private ? v`<span class="private-property-hash">${r.name[0]}</span>${r.name.substring(1)}</span>` : u}</span>${a ? x : v`<span class='separator'>: </span><devtools-prompt
|
|
885
|
+
@commit=${(t) => e.editingCommitted(t.detail)}
|
|
886
|
+
@cancel=${() => e.editingEnded()}
|
|
887
|
+
@beforeautocomplete=${c}
|
|
888
|
+
@dblclick=${p}
|
|
889
|
+
@keydown=${p}
|
|
890
|
+
completions=${o}
|
|
891
|
+
placeholder=${R(L.stringIsTooLargeToEdit)}
|
|
892
|
+
?editing=${e.editing}>
|
|
893
|
+
${e.expanded && d && r.value ? v`<span
|
|
894
|
+
class="value object-value-${r.value.subtype || r.value.type}"
|
|
895
|
+
title=${I(r.value.description)}>${r.value.description === "Object" ? "" : i(r.value.description ?? "", G)}${r.synthetic ? x : W.getMemoryIcon(r.value)}</span>` : f()}
|
|
896
|
+
<datalist id=${o}>${Le(e.completions, (e) => v`<option>${e}</option>`)}</datalist>
|
|
897
|
+
</devtools-prompt></span>`}</span>`, n);
|
|
898
|
+
}, Ke = class extends me {
|
|
899
|
+
#e = [];
|
|
900
|
+
#t;
|
|
901
|
+
#n;
|
|
902
|
+
#r;
|
|
903
|
+
#i = [];
|
|
904
|
+
#a = !1;
|
|
905
|
+
#o;
|
|
906
|
+
#s = !1;
|
|
907
|
+
#c;
|
|
908
|
+
#l = !1;
|
|
909
|
+
constructor(e, t = Ge) {
|
|
910
|
+
super(e), this.#o = t;
|
|
911
|
+
}
|
|
912
|
+
get property() {
|
|
913
|
+
return this.#t;
|
|
914
|
+
}
|
|
915
|
+
set property(e) {
|
|
916
|
+
this.#t && (this.#t.removeEventListener(B.Events.VALUE_CHANGED, this.requestUpdate, this), this.#t.removeEventListener(B.Events.CHILDREN_CHANGED, this.requestUpdate, this), this.#t.removeEventListener(B.Events.FILTER_CHANGED, this.requestUpdate, this)), this.#t = e, this.#t.addEventListener(B.Events.VALUE_CHANGED, this.requestUpdate, this), this.#t.addEventListener(B.Events.CHILDREN_CHANGED, this.requestUpdate, this), this.#t.addEventListener(B.Events.FILTER_CHANGED, this.requestUpdate, this), this.requestUpdate();
|
|
917
|
+
}
|
|
918
|
+
get expanded() {
|
|
919
|
+
return this.#s;
|
|
920
|
+
}
|
|
921
|
+
set expanded(e) {
|
|
922
|
+
this.#s = e, this.requestUpdate();
|
|
923
|
+
}
|
|
924
|
+
get linkifier() {
|
|
925
|
+
return this.#c;
|
|
926
|
+
}
|
|
927
|
+
set linkifier(e) {
|
|
928
|
+
this.#c = e, this.requestUpdate();
|
|
929
|
+
}
|
|
930
|
+
get editable() {
|
|
931
|
+
return this.#l;
|
|
932
|
+
}
|
|
933
|
+
set editable(e) {
|
|
934
|
+
this.#l = e, this.requestUpdate();
|
|
935
|
+
}
|
|
936
|
+
performUpdate() {
|
|
937
|
+
if (!this.#t) return;
|
|
938
|
+
let e = {
|
|
939
|
+
editable: this.#l,
|
|
940
|
+
expanded: this.#s,
|
|
941
|
+
editing: this.#a,
|
|
942
|
+
editingEnded: this.#f.bind(this),
|
|
943
|
+
editingCommitted: this.#p.bind(this),
|
|
944
|
+
node: this.#t,
|
|
945
|
+
linkifier: this.#c,
|
|
946
|
+
completions: this.#a ? this.#i : [],
|
|
947
|
+
onAutoComplete: this.#d.bind(this),
|
|
948
|
+
invokeGetter: this.#m.bind(this),
|
|
949
|
+
startEditing: this.startEditing.bind(this)
|
|
950
|
+
}, t = this;
|
|
951
|
+
this.#o(e, {
|
|
952
|
+
set nameElement(e) {
|
|
953
|
+
t.#n = e;
|
|
954
|
+
},
|
|
955
|
+
set valueElement(e) {
|
|
956
|
+
t.#r = e;
|
|
957
|
+
}
|
|
958
|
+
}, this.element);
|
|
959
|
+
}
|
|
960
|
+
setSearchRegex(e, t) {
|
|
961
|
+
let n = ce;
|
|
962
|
+
return t && (n += " " + t), this.revertHighlightChanges(), this.#n && this.#u(e, this.#n, n), this.property?.object && this.property?.object.type !== "object" && this.#r && this.#u(e, this.#r, n), !!this.#e.length;
|
|
963
|
+
}
|
|
964
|
+
#u(e, t, n) {
|
|
965
|
+
let r = [], i = t.textContent || "";
|
|
966
|
+
e.lastIndex = 0;
|
|
967
|
+
let a = e.exec(i);
|
|
968
|
+
for (; a;) r.push(new xe(a.index, a[0].length)), a = e.exec(i);
|
|
969
|
+
r.length && ve(t, r, n, this.#e);
|
|
970
|
+
}
|
|
971
|
+
revertHighlightChanges() {
|
|
972
|
+
ge(this.#e), this.#e = [];
|
|
973
|
+
}
|
|
974
|
+
async #d(e, t, n) {
|
|
975
|
+
let r = await Te(e, t, n);
|
|
976
|
+
this.#i = r.map((e) => e.text), this.requestUpdate();
|
|
977
|
+
}
|
|
978
|
+
get editing() {
|
|
979
|
+
return this.#a;
|
|
980
|
+
}
|
|
981
|
+
startEditing() {
|
|
982
|
+
this.#a = !0, this.requestUpdate();
|
|
983
|
+
}
|
|
984
|
+
#f() {
|
|
985
|
+
this.#i = [], this.#a = !1, this.requestUpdate();
|
|
986
|
+
}
|
|
987
|
+
async #p(e) {
|
|
988
|
+
this.#f(), await this.#t?.setValue(e);
|
|
989
|
+
}
|
|
990
|
+
#m(e) {
|
|
991
|
+
this.#t?.invokeGetter(e);
|
|
992
|
+
}
|
|
993
|
+
}, Y = class e extends T {
|
|
994
|
+
property;
|
|
995
|
+
toggleOnClick;
|
|
996
|
+
linkifier;
|
|
997
|
+
maxNumPropertiesToShow;
|
|
998
|
+
#e;
|
|
999
|
+
constructor(e, t) {
|
|
1000
|
+
super(), this.#e = new Ke(), this.property = e, this.hidden = e.isFiltered, this.property.addEventListener(B.Events.VALUE_CHANGED, this.#t, this), this.property.addEventListener(B.Events.CHILDREN_CHANGED, this.#n, this), this.property.addEventListener(B.Events.FILTER_CHANGED, this.#r, this), this.toggleOnClick = !0, this.linkifier = t, this.maxNumPropertiesToShow = 200, this.listItemElement.addEventListener("contextmenu", this.contextMenuFired.bind(this), !1), this.listItemElement.dataset.objectPropertyNameForTest = e.name, this.updateExpandable(), this.setExpandRecursively(e.name !== "[[Prototype]]"), e.expanded && this.expand();
|
|
1001
|
+
}
|
|
1002
|
+
static async populate(t, n, r, i, a, o) {
|
|
1003
|
+
let s = await n.populateChildrenIfNeeded();
|
|
1004
|
+
s.arrayRanges ? await X.populate(t, s, a) : e.populateWithProperties(t, s, r, i, a, o);
|
|
1005
|
+
}
|
|
1006
|
+
static *createPropertyNodes({ properties: t, internalProperties: n, accessors: r, arrayRanges: i }, a, o, s, c, l) {
|
|
1007
|
+
let u = !0;
|
|
1008
|
+
i && i.length > 0 && (u = !1), t?.sort(W.compareProperties);
|
|
1009
|
+
let d = n?.find(({ property: e }) => e.name === "[[Entries]]");
|
|
1010
|
+
if (d) {
|
|
1011
|
+
let t = new e(d, s);
|
|
1012
|
+
t.setExpandable(!0), t.expand(), u = !1, yield t;
|
|
1013
|
+
}
|
|
1014
|
+
for (let n of t ?? []) if (!l?.(n.property) && (n.property.getter || !n.property.isAccessorProperty())) {
|
|
1015
|
+
let t = new e(n, s);
|
|
1016
|
+
n.property.name === "memories" && n.object?.className === "Memories" && (t.updateExpandable(), t.isExpandable() && t.expand()), u = !1, yield t;
|
|
1017
|
+
}
|
|
1018
|
+
for (let t of r ?? []) yield new e(t, s);
|
|
1019
|
+
for (let t of n ?? []) {
|
|
1020
|
+
let n = new e(t, s);
|
|
1021
|
+
t.property.name !== "[[Entries]]" && (t.property.name === "[[Prototype]]" && a || (u = !1, yield n));
|
|
1022
|
+
}
|
|
1023
|
+
if (u) {
|
|
1024
|
+
let e = document.createElement("div");
|
|
1025
|
+
e.classList.add("gray-info-message"), e.textContent = c || R(L.noProperties), yield new T(e);
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
static populateWithProperties(t, n, r, i, a, o) {
|
|
1029
|
+
for (let s of this.createPropertyNodes(n, r, i, a, o, (n) => t instanceof e && !W.isDisplayableProperty(n, t.property?.property))) t.appendChild(s);
|
|
1030
|
+
}
|
|
1031
|
+
revertHighlightChanges() {
|
|
1032
|
+
this.#e.revertHighlightChanges();
|
|
1033
|
+
}
|
|
1034
|
+
setSearchRegex(e, t) {
|
|
1035
|
+
return this.#e.setSearchRegex(e, t);
|
|
1036
|
+
}
|
|
1037
|
+
startEditing() {
|
|
1038
|
+
this.#e.startEditing();
|
|
1039
|
+
}
|
|
1040
|
+
get editing() {
|
|
1041
|
+
return this.#e.editing;
|
|
1042
|
+
}
|
|
1043
|
+
get editable() {
|
|
1044
|
+
return this.#e.editable;
|
|
1045
|
+
}
|
|
1046
|
+
set editable(e) {
|
|
1047
|
+
this.#e.editable = e;
|
|
1048
|
+
}
|
|
1049
|
+
async applyExpression(e) {
|
|
1050
|
+
await this.property.setValue(e);
|
|
1051
|
+
}
|
|
1052
|
+
showAllPropertiesElementSelected(e) {
|
|
1053
|
+
return this.removeChild(e), this.children().forEach((e) => {
|
|
1054
|
+
e.hidden = !1;
|
|
1055
|
+
}), !1;
|
|
1056
|
+
}
|
|
1057
|
+
createShowAllPropertiesButton() {
|
|
1058
|
+
let e = document.createElement("div");
|
|
1059
|
+
e.classList.add("object-value-calculate-value-button"), e.textContent = R(L.dots), ae.install(e, R(L.showAllD, { PH1: this.childCount() }));
|
|
1060
|
+
let t = this.children();
|
|
1061
|
+
for (let e = this.maxNumPropertiesToShow; e < this.childCount(); ++e) t[e].hidden = !0;
|
|
1062
|
+
let n = new T(e);
|
|
1063
|
+
n.onselect = this.showAllPropertiesElementSelected.bind(this, n), this.appendChild(n);
|
|
1064
|
+
}
|
|
1065
|
+
async onpopulate() {
|
|
1066
|
+
let t = this.treeOutline, n = t ? !!t.skipProtoInternal : !1;
|
|
1067
|
+
this.removeChildren(), this.property.object && (await e.populate(this, this.property, n, !1, this.linkifier), this.childCount() > this.maxNumPropertiesToShow && this.createShowAllPropertiesButton());
|
|
1068
|
+
}
|
|
1069
|
+
onattach() {
|
|
1070
|
+
this.updateExpandable(), this.#e.markAsRoot(), this.#e.show(this.listItemElement), this.#e.property = this.property, this.#e.linkifier = this.linkifier, this.#e.editable = !this.property.readOnly;
|
|
1071
|
+
}
|
|
1072
|
+
onexpand() {
|
|
1073
|
+
this.property.expanded = !0, this.#e.expanded = !0;
|
|
1074
|
+
}
|
|
1075
|
+
oncollapse() {
|
|
1076
|
+
this.property.expanded = !1, this.#e.expanded = !1;
|
|
1077
|
+
}
|
|
1078
|
+
#t() {
|
|
1079
|
+
this.updateExpandable();
|
|
1080
|
+
}
|
|
1081
|
+
#n() {
|
|
1082
|
+
this.removeChildren(), this.onpopulate();
|
|
1083
|
+
}
|
|
1084
|
+
#r() {
|
|
1085
|
+
this.hidden = this.property.isFiltered;
|
|
1086
|
+
}
|
|
1087
|
+
getContextMenu(e) {
|
|
1088
|
+
let t = new C(e);
|
|
1089
|
+
if (t.appendApplicableItems(this), this.property.property.symbol && t.appendApplicableItems(this.property.property.symbol), this.property.object && (t.appendApplicableItems(this.property.object), this.property.parent?.object instanceof _)) {
|
|
1090
|
+
let { object: { value: e } } = this.property, n = typeof e == "object" ? JSON.stringify(e, null, 2) : e;
|
|
1091
|
+
t.clipboardSection().appendItem(R(L.copyValue), () => {
|
|
1092
|
+
_e.actionTaken(pe.NetworkPanelCopyValue), y.copyText(n);
|
|
1093
|
+
}, { jslogContext: "copy-value" });
|
|
1094
|
+
}
|
|
1095
|
+
if (!this.property.property.synthetic && this.property.path) {
|
|
1096
|
+
let e = y.copyText.bind(y, this.property.path);
|
|
1097
|
+
t.clipboardSection().appendItem(R(L.copyPropertyPath), e, { jslogContext: "copy-property-path" });
|
|
1098
|
+
}
|
|
1099
|
+
this.property.parent?.object instanceof _ && (t.viewSection().appendItem(R(L.expandRecursively), this.expandRecursively.bind(this, z), { jslogContext: "expand-recursively" }), t.viewSection().appendItem(R(L.collapseChildren), this.collapseChildren.bind(this), { jslogContext: "collapse-children" }));
|
|
1100
|
+
let n = this.property;
|
|
1101
|
+
for (; n.parent;) n = n.parent;
|
|
1102
|
+
return t.viewSection().appendCheckboxItem(d("Show all"), () => {
|
|
1103
|
+
n.includeNullOrUndefinedValues = !n.includeNullOrUndefinedValues;
|
|
1104
|
+
}, {
|
|
1105
|
+
checked: n.includeNullOrUndefinedValues,
|
|
1106
|
+
jslogContext: "show-all"
|
|
1107
|
+
}), t;
|
|
1108
|
+
}
|
|
1109
|
+
contextMenuFired(e) {
|
|
1110
|
+
this.getContextMenu(e).show();
|
|
1111
|
+
}
|
|
1112
|
+
updateExpandable() {
|
|
1113
|
+
this.property.object ? this.setExpandable(!this.property.object.customPreview() && this.property.object.hasChildren && !this.property.property.wasThrown) : this.setExpandable(!1);
|
|
1114
|
+
}
|
|
1115
|
+
path() {
|
|
1116
|
+
return this.property.path;
|
|
1117
|
+
}
|
|
1118
|
+
};
|
|
1119
|
+
async function qe(e, t, n) {
|
|
1120
|
+
return await e.callFunctionJSON(r, [
|
|
1121
|
+
{ value: t },
|
|
1122
|
+
{ value: n },
|
|
1123
|
+
{ value: X.bucketThreshold },
|
|
1124
|
+
{ value: X.sparseIterationThreshold }
|
|
1125
|
+
]);
|
|
1126
|
+
function r(e, t, n, r) {
|
|
1127
|
+
if (e === void 0 || t === void 0 || r === void 0 || n === void 0) return;
|
|
1128
|
+
let i = null, a = t - e >= r && ArrayBuffer.isView(this);
|
|
1129
|
+
function* o(n) {
|
|
1130
|
+
if (!(e === void 0 || t === void 0 || r === void 0)) if (t - e < r) for (let r = e; r <= t; ++r) r in n && (yield r);
|
|
1131
|
+
else {
|
|
1132
|
+
i ||= Object.getOwnPropertyNames(n);
|
|
1133
|
+
for (let n = 0; n < i.length; ++n) {
|
|
1134
|
+
let r = i[n], a = Number(r) >>> 0;
|
|
1135
|
+
String(a) === r && e <= a && a <= t && (yield a);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
let s = 0;
|
|
1140
|
+
if (a) s = t - e + 1;
|
|
1141
|
+
else for (let e of o(this)) ++s;
|
|
1142
|
+
let c = s;
|
|
1143
|
+
c = s <= n ? s : n ** (Math.ceil(Math.log(s) / Math.log(n)) - 1);
|
|
1144
|
+
let l = [];
|
|
1145
|
+
if (a) for (let n = e; n <= t; n += c) {
|
|
1146
|
+
let e = n, r = e + c - 1;
|
|
1147
|
+
r > t && (r = t), l.push([
|
|
1148
|
+
e,
|
|
1149
|
+
r,
|
|
1150
|
+
r - e + 1
|
|
1151
|
+
]);
|
|
1152
|
+
}
|
|
1153
|
+
else {
|
|
1154
|
+
s = 0;
|
|
1155
|
+
let e = -1, t = 0;
|
|
1156
|
+
for (let n of o(this)) e === -1 && (e = n), t = n, ++s === c && (l.push([
|
|
1157
|
+
e,
|
|
1158
|
+
t,
|
|
1159
|
+
s
|
|
1160
|
+
]), s = 0, e = -1);
|
|
1161
|
+
s > 0 && l.push([
|
|
1162
|
+
e,
|
|
1163
|
+
t,
|
|
1164
|
+
s
|
|
1165
|
+
]);
|
|
1166
|
+
}
|
|
1167
|
+
return { ranges: l };
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
function Je(e, t, n) {
|
|
1171
|
+
let r = Object.create(null);
|
|
1172
|
+
if (!(e === void 0 || t === void 0 || n === void 0)) {
|
|
1173
|
+
if (t - e < n) for (let n = e; n <= t; ++n) n in this && (r[n] = this[n]);
|
|
1174
|
+
else {
|
|
1175
|
+
let n = Object.getOwnPropertyNames(this);
|
|
1176
|
+
for (let i = 0; i < n.length; ++i) {
|
|
1177
|
+
let a = n[i], o = Number(a) >>> 0;
|
|
1178
|
+
String(o) === a && e <= o && o <= t && (r[o] = this[o]);
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
return r;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
var X = class e extends T {
|
|
1185
|
+
toggleOnClick;
|
|
1186
|
+
linkifier;
|
|
1187
|
+
#e;
|
|
1188
|
+
constructor(e, t) {
|
|
1189
|
+
super(r("[%d … %d]", e.range.fromIndex, e.range.toIndex), !0), this.#e = e, this.#e.addEventListener(B.Events.CHILDREN_CHANGED, this.onpopulate, this), this.toggleOnClick = !0, this.linkifier = t, e.expanded && this.expand();
|
|
1190
|
+
}
|
|
1191
|
+
static async populate(t, n, r) {
|
|
1192
|
+
if (n.arrayRanges) {
|
|
1193
|
+
if (n.arrayRanges.length === 1) await Y.populate(t, n.arrayRanges[0], !1, !1, r);
|
|
1194
|
+
else for (let i of n.arrayRanges) i.singular ? await Y.populate(t, i, !1, !1, r) : t.appendChild(new e(i, r));
|
|
1195
|
+
Y.populateWithProperties(t, n, !1, !1, r);
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
onexpand() {
|
|
1199
|
+
this.#e.expanded = !0;
|
|
1200
|
+
}
|
|
1201
|
+
oncollapse() {
|
|
1202
|
+
this.#e.expanded = !1;
|
|
1203
|
+
}
|
|
1204
|
+
async onpopulate() {
|
|
1205
|
+
this.removeChildren(), await Y.populate(this, this.#e, !1, !1, this.linkifier);
|
|
1206
|
+
}
|
|
1207
|
+
onattach() {
|
|
1208
|
+
this.listItemElement.classList.add("object-properties-section-name");
|
|
1209
|
+
}
|
|
1210
|
+
static bucketThreshold = 100;
|
|
1211
|
+
static sparseIterationThreshold = 25e4;
|
|
1212
|
+
}, Ye = class e {
|
|
1213
|
+
static #e = /* @__PURE__ */ new WeakMap();
|
|
1214
|
+
static #t = /* @__PURE__ */ new WeakMap();
|
|
1215
|
+
#n = /* @__PURE__ */ new Set();
|
|
1216
|
+
constructor(e) {
|
|
1217
|
+
e.addEventListener(E.ElementAttached, this.#r, this), e.addEventListener(E.ElementExpanded, this.#i, this), e.addEventListener(E.ElementCollapsed, this.#a, this);
|
|
1218
|
+
}
|
|
1219
|
+
watchSection(t, n) {
|
|
1220
|
+
e.#t.set(n, t), this.#n.has(t) && n.expand();
|
|
1221
|
+
}
|
|
1222
|
+
stopWatchSectionsWithId(e) {
|
|
1223
|
+
for (let t of this.#n) t.startsWith(e + ":") && this.#n.delete(t);
|
|
1224
|
+
}
|
|
1225
|
+
#r(e) {
|
|
1226
|
+
let t = e.data;
|
|
1227
|
+
t.isExpandable() && this.#n.has(this.#o(t)) && t.expand();
|
|
1228
|
+
}
|
|
1229
|
+
#i(e) {
|
|
1230
|
+
let t = e.data;
|
|
1231
|
+
this.#n.add(this.#o(t));
|
|
1232
|
+
}
|
|
1233
|
+
#a(e) {
|
|
1234
|
+
let t = e.data;
|
|
1235
|
+
this.#n.delete(this.#o(t));
|
|
1236
|
+
}
|
|
1237
|
+
#o(t) {
|
|
1238
|
+
let n = e.#e.get(t);
|
|
1239
|
+
if (n) return n;
|
|
1240
|
+
let r = t, i = r;
|
|
1241
|
+
if (!t.treeOutline) throw Error("No tree outline available");
|
|
1242
|
+
let a = t.treeOutline.rootElement(), o;
|
|
1243
|
+
for (; r !== a;) {
|
|
1244
|
+
let e = "";
|
|
1245
|
+
e = r instanceof Y ? r.property.name : typeof r.title == "string" ? r.title : r.title.textContent || "", o = e + (o ? "." + o : ""), i = r, r.parent && (r = r.parent);
|
|
1246
|
+
}
|
|
1247
|
+
return o = e.#t.get(i) + (o ? ":" + o : ""), e.#e.set(t, o), o;
|
|
1248
|
+
}
|
|
1249
|
+
}, Xe, Ze = class e {
|
|
1250
|
+
static instance(t = { forceNew: !1 }) {
|
|
1251
|
+
let { forceNew: n } = t;
|
|
1252
|
+
return (!Xe || n) && (Xe = new e()), Xe;
|
|
1253
|
+
}
|
|
1254
|
+
async render(e, t) {
|
|
1255
|
+
if (!(e instanceof b)) throw Error("Can't render " + e);
|
|
1256
|
+
let n = t?.title, r = new W(e, n, void 0, void 0, !!t?.editable);
|
|
1257
|
+
n || r.titleLessMode(), t?.expand && r.firstChild()?.expand();
|
|
1258
|
+
let i = () => {
|
|
1259
|
+
r.element.dispatchEvent(new CustomEvent("dimensionschanged"));
|
|
1260
|
+
};
|
|
1261
|
+
return r.addEventListener(E.ElementAttached, i), r.addEventListener(E.ElementExpanded, i), r.addEventListener(E.ElementCollapsed, i), {
|
|
1262
|
+
element: r.element,
|
|
1263
|
+
forceSelect: r.forceSelect.bind(r)
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1266
|
+
}, Qe = (e, t, n) => {
|
|
1267
|
+
let r = u(e.byteCount), i = e.text.length < Z.MAX_DISPLAYABLE_TEXT_LENGTH, a = (t) => {
|
|
1268
|
+
let { target: n } = t;
|
|
1269
|
+
if (!(n instanceof Element)) return;
|
|
1270
|
+
let a = n.closest("li"), o = a && T.getTreeElementBylistItemNode(a);
|
|
1271
|
+
if (!(o instanceof Y)) return;
|
|
1272
|
+
let s = o.getContextMenu(t);
|
|
1273
|
+
i && !e.expanded && s.clipboardSection().appendItem(R(L.showMoreS, { PH1: r }), e.expandText, { jslogContext: "show-more" }), s.clipboardSection().appendItem(R(L.copy), e.copyText, { jslogContext: "copy" }), s.show(), t.consume(!0);
|
|
1274
|
+
}, o = e.text.slice(0, e.maxLength);
|
|
1275
|
+
g(v`<span title=${o + "…"} @contextmenu=${a}>
|
|
1276
|
+
${e.expanded ? e.text : o}
|
|
1277
|
+
<button
|
|
1278
|
+
?hidden=${e.expanded}
|
|
1279
|
+
@click=${i ? e.expandText : void 0}
|
|
1280
|
+
jslog=${I(i ? w("expand").track({ click: !0 }) : void 0)}
|
|
1281
|
+
class=${i ? "expandable-inline-button" : "undisplayable-text"}
|
|
1282
|
+
data-text=${R(i ? L.showMoreS : L.longTextWasTruncatedS, { PH1: r })}
|
|
1283
|
+
></button>
|
|
1284
|
+
<button
|
|
1285
|
+
class=expandable-inline-button
|
|
1286
|
+
@click=${e.copyText}
|
|
1287
|
+
data-text=${R(L.copy)}
|
|
1288
|
+
jslog=${w("copy").track({ click: !0 })}
|
|
1289
|
+
></button>
|
|
1290
|
+
</span>`, n);
|
|
1291
|
+
}, Z = class e extends me {
|
|
1292
|
+
static MAX_DISPLAYABLE_TEXT_LENGTH = 1e7;
|
|
1293
|
+
static EXPANDABLE_MAX_LENGTH = 50;
|
|
1294
|
+
#e = "";
|
|
1295
|
+
#t = 0;
|
|
1296
|
+
#n = !1;
|
|
1297
|
+
#r = e.EXPANDABLE_MAX_LENGTH;
|
|
1298
|
+
#i;
|
|
1299
|
+
constructor(e, t = Qe) {
|
|
1300
|
+
super(e), this.#i = t;
|
|
1301
|
+
}
|
|
1302
|
+
set text(e) {
|
|
1303
|
+
this.#e = e, this.#t = o(e), this.requestUpdate();
|
|
1304
|
+
}
|
|
1305
|
+
set maxLength(e) {
|
|
1306
|
+
this.#r = e, this.requestUpdate();
|
|
1307
|
+
}
|
|
1308
|
+
performUpdate() {
|
|
1309
|
+
let e = {
|
|
1310
|
+
copyText: () => y.copyText(this.#e),
|
|
1311
|
+
expandText: () => {
|
|
1312
|
+
this.#n || (this.#n = !0, this.requestUpdate());
|
|
1313
|
+
},
|
|
1314
|
+
expanded: this.#n,
|
|
1315
|
+
byteCount: this.#t,
|
|
1316
|
+
maxLength: this.#r,
|
|
1317
|
+
text: this.#e
|
|
1318
|
+
};
|
|
1319
|
+
this.#i(e, {}, this.contentElement);
|
|
1320
|
+
}
|
|
1321
|
+
}, $e = /* @__PURE__ */ e({
|
|
1322
|
+
CustomPreviewComponent: () => Q,
|
|
1323
|
+
CustomPreviewSection: () => rt
|
|
1324
|
+
}), et = { showAsJavascriptObject: "Show as JavaScript object" }, tt = m("ui/legacy/components/object_ui/CustomPreviewComponent.ts", et), nt = p.bind(void 0, tt), rt = class e {
|
|
1325
|
+
sectionElement;
|
|
1326
|
+
object;
|
|
1327
|
+
expanded;
|
|
1328
|
+
cachedContent;
|
|
1329
|
+
header;
|
|
1330
|
+
expandIcon;
|
|
1331
|
+
constructor(e) {
|
|
1332
|
+
this.sectionElement = document.createElement("span"), this.sectionElement.classList.add("custom-expandable-section"), this.object = e, this.expanded = !1, this.cachedContent = null;
|
|
1333
|
+
let t = e.customPreview();
|
|
1334
|
+
if (!t) return;
|
|
1335
|
+
let n;
|
|
1336
|
+
try {
|
|
1337
|
+
n = JSON.parse(t.header);
|
|
1338
|
+
} catch (e) {
|
|
1339
|
+
c.instance().error("Broken formatter: header is invalid json " + e);
|
|
1340
|
+
return;
|
|
1341
|
+
}
|
|
1342
|
+
if (this.header = this.renderJSONMLTag(n), this.header.nodeType === Node.TEXT_NODE) {
|
|
1343
|
+
c.instance().error("Broken formatter: header should be an element node.");
|
|
1344
|
+
return;
|
|
1345
|
+
}
|
|
1346
|
+
t.bodyGetterId && (this.header instanceof Element && this.header.classList.add("custom-expandable-section-header"), this.header.addEventListener("click", this.onClick.bind(this), !1), this.expandIcon = re("triangle-right", "custom-expand-icon"), this.header.insertBefore(this.expandIcon, this.header.firstChild)), this.sectionElement.appendChild(this.header);
|
|
1347
|
+
}
|
|
1348
|
+
element() {
|
|
1349
|
+
return this.sectionElement;
|
|
1350
|
+
}
|
|
1351
|
+
renderJSONMLTag(e) {
|
|
1352
|
+
return Array.isArray(e) ? e[0] === "object" ? this.layoutObjectTag(e) : this.renderElement(e) : document.createTextNode(String(e));
|
|
1353
|
+
}
|
|
1354
|
+
renderElement(e) {
|
|
1355
|
+
let t = e.shift();
|
|
1356
|
+
if (!it.includes(t)) return c.instance().error("Broken formatter: element " + t + " is not allowed!"), document.createElement("span");
|
|
1357
|
+
let n = document.createElement(t);
|
|
1358
|
+
if (typeof e[0] == "object" && !Array.isArray(e[0])) {
|
|
1359
|
+
let t = e.shift();
|
|
1360
|
+
for (let e in t) {
|
|
1361
|
+
let r = t[e];
|
|
1362
|
+
e !== "style" || typeof r != "string" || n.setAttribute(e, r);
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
return this.appendJsonMLTags(n, e), n;
|
|
1366
|
+
}
|
|
1367
|
+
layoutObjectTag(t) {
|
|
1368
|
+
t.shift();
|
|
1369
|
+
let n = t.shift(), r = this.object.runtimeModel().createRemoteObject(n);
|
|
1370
|
+
if (r.customPreview()) return new e(r).element();
|
|
1371
|
+
let i = W.defaultObjectPresentation(r);
|
|
1372
|
+
return i.classList.toggle("custom-expandable-section-standard-section", r.hasChildren), i;
|
|
1373
|
+
}
|
|
1374
|
+
appendJsonMLTags(e, t) {
|
|
1375
|
+
for (let n = 0; n < t.length; ++n) e.appendChild(this.renderJSONMLTag(t[n]));
|
|
1376
|
+
}
|
|
1377
|
+
onClick(e) {
|
|
1378
|
+
e.consume(!0), this.cachedContent ? this.toggleExpand() : this.loadBody();
|
|
1379
|
+
}
|
|
1380
|
+
toggleExpand() {
|
|
1381
|
+
this.expanded = !this.expanded, this.header instanceof Element && this.header.classList.toggle("expanded", this.expanded), this.cachedContent instanceof Element && this.cachedContent.classList.toggle("hidden", !this.expanded), this.expandIcon && (this.expanded ? this.expandIcon.name = "triangle-down" : this.expandIcon.name = "triangle-right");
|
|
1382
|
+
}
|
|
1383
|
+
defaultBodyTreeOutline;
|
|
1384
|
+
async loadBody() {
|
|
1385
|
+
let e = this.object.customPreview();
|
|
1386
|
+
if (e && e.bodyGetterId) {
|
|
1387
|
+
let t = await this.object.callFunctionJSON((e) => e(), [{ objectId: e.bodyGetterId }]);
|
|
1388
|
+
t === null ? (this.defaultBodyTreeOutline = new K(), this.defaultBodyTreeOutline.setShowSelectionOnKeyboardFocus(!0, !1), this.defaultBodyTreeOutline.element.classList.add("custom-expandable-section-default-body"), Y.populate(this.defaultBodyTreeOutline.rootElement(), new V(this.object, {
|
|
1389
|
+
readOnly: !0,
|
|
1390
|
+
propertiesMode: q.OWN_AND_INTERNAL_AND_INHERITED
|
|
1391
|
+
}), !1, !1), this.cachedContent = this.defaultBodyTreeOutline.element) : this.cachedContent = this.renderJSONMLTag(t), this.sectionElement.appendChild(this.cachedContent), this.toggleExpand();
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
}, it = [
|
|
1395
|
+
"span",
|
|
1396
|
+
"div",
|
|
1397
|
+
"ol",
|
|
1398
|
+
"li",
|
|
1399
|
+
"table",
|
|
1400
|
+
"tr",
|
|
1401
|
+
"td"
|
|
1402
|
+
], Q = class {
|
|
1403
|
+
object;
|
|
1404
|
+
customPreviewSection;
|
|
1405
|
+
element;
|
|
1406
|
+
constructor(e) {
|
|
1407
|
+
this.object = e, this.customPreviewSection = new rt(e), this.element = document.createElement("span"), this.element.classList.add("source-code");
|
|
1408
|
+
let t = be(this.element, { cssFile: De });
|
|
1409
|
+
this.element.addEventListener("contextmenu", this.contextMenuEventFired.bind(this), !1), t.appendChild(this.customPreviewSection.element());
|
|
1410
|
+
}
|
|
1411
|
+
expandIfPossible() {
|
|
1412
|
+
let e = this.object.customPreview();
|
|
1413
|
+
e && e.bodyGetterId && this.customPreviewSection && this.customPreviewSection.loadBody();
|
|
1414
|
+
}
|
|
1415
|
+
contextMenuEventFired(e) {
|
|
1416
|
+
let t = new C(e);
|
|
1417
|
+
this.customPreviewSection && t.revealSection().appendItem(nt(et.showAsJavascriptObject), this.disassemble.bind(this), { jslogContext: "show-as-javascript-object" }), t.appendApplicableItems(this.object), t.show();
|
|
1418
|
+
}
|
|
1419
|
+
disassemble() {
|
|
1420
|
+
this.element.shadowRoot && (this.element.shadowRoot.textContent = "", this.customPreviewSection = null, this.element.shadowRoot.appendChild(W.defaultObjectPresentation(this.object)));
|
|
1421
|
+
}
|
|
1422
|
+
}, $ = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.widget:has(.object-popover-tree) {\n padding: 0;\n border-radius: var(--sys-shape-corner-extra-small);\n}\n\n.object-popover-content {\n display: flex;\n position: relative;\n overflow: hidden;\n flex: 1 1 auto;\n flex-direction: column;\n}\n\n.object-popover-title {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n font-weight: bold;\n padding-left: 18px;\n padding-bottom: 2px;\n padding-top: var(--sys-size-3);\n flex-shrink: 0;\n}\n\n.object-popover-tree {\n border-top: 1px solid var(--sys-color-divider);\n overflow: auto;\n width: 100%;\n height: calc(100% - 13px);\n}\n\n.object-popover-container {\n display: inline-block;\n}\n\n.object-popover-description-box {\n padding: 6px;\n max-width: 350px;\n line-height: 1.4;\n}\n\n.object-popover-footer {\n margin-top: 8px;\n}\n", at = /* @__PURE__ */ e({ ObjectPopoverHelper: () => lt }), ot = { learnMore: "Learn more" }, st = m("ui/legacy/components/object_ui/ObjectPopoverHelper.ts", ot), ct = p.bind(void 0, st), lt = class e {
|
|
1423
|
+
linkifier;
|
|
1424
|
+
resultHighlightedAsDOM;
|
|
1425
|
+
constructor(e, t) {
|
|
1426
|
+
this.linkifier = e, this.resultHighlightedAsDOM = t;
|
|
1427
|
+
}
|
|
1428
|
+
dispose() {
|
|
1429
|
+
this.resultHighlightedAsDOM && D.hideDOMNodeHighlight(), this.linkifier && this.linkifier.dispose();
|
|
1430
|
+
}
|
|
1431
|
+
static async buildObjectPopover(t, n) {
|
|
1432
|
+
let r = a(t.description || "", ut), i = null;
|
|
1433
|
+
if (t.type === "function" || t.type === "object") {
|
|
1434
|
+
let a = null, o = !1;
|
|
1435
|
+
if (t.subtype === "node" && (D.highlightObjectAsDOMNode(t), o = !0), t.customPreview()) {
|
|
1436
|
+
let e = new Q(t);
|
|
1437
|
+
e.expandIfPossible(), i = e.element;
|
|
1438
|
+
} else {
|
|
1439
|
+
i = document.createElement("div"), i.classList.add("object-popover-content"), n.registerRequiredCSS(O, $);
|
|
1440
|
+
let e = i.createChild("div", "object-popover-title");
|
|
1441
|
+
t.type === "function" ? (e.classList.add("source-code"), g(W.valueElementForFunctionDescription(t.description), e)) : (e.classList.add("monospace"), e.createChild("span").textContent = r), a = new Se();
|
|
1442
|
+
let o = new W(t, "", a, !0);
|
|
1443
|
+
o.element.classList.add("object-popover-tree"), o.titleLessMode(), i.appendChild(o.element);
|
|
1444
|
+
}
|
|
1445
|
+
return i.dataset.stableNameForTest = "object-popover-content", n.setMaxContentSize(new ye(300, 250)), n.setSizeBehavior(ne.SET_EXACT_SIZE), n.contentElement.appendChild(i), new e(a, o);
|
|
1446
|
+
}
|
|
1447
|
+
i = document.createElement("span"), i.dataset.stableNameForTest = "object-popover-content", n.registerRequiredCSS(O, $);
|
|
1448
|
+
let o = i.createChild("span", "monospace object-value-" + t.type);
|
|
1449
|
+
return o.style.whiteSpace = "pre", t.type === "string" ? ie(o, `"${r}"`) : o.textContent = r, n.contentElement.appendChild(i), new e(null, !1);
|
|
1450
|
+
}
|
|
1451
|
+
static buildDescriptionPopover(t, n, r) {
|
|
1452
|
+
let i = document.createElement("div");
|
|
1453
|
+
i.classList.add("object-popover-description-box");
|
|
1454
|
+
let a = document.createElement("div");
|
|
1455
|
+
a.dataset.stableNameForTest = "object-popover-content", r.registerRequiredCSS($), a.textContent = t;
|
|
1456
|
+
let o = fe.create(n, ct(ot.learnMore), void 0, "learn-more"), s = document.createElement("div");
|
|
1457
|
+
return s.classList.add("object-popover-footer"), s.appendChild(o), i.appendChild(a), i.appendChild(s), r.contentElement.appendChild(i), new e(null, !1);
|
|
1458
|
+
}
|
|
1459
|
+
}, ut = 1e4;
|
|
1460
|
+
//#endregion
|
|
1461
|
+
export { P as _, Z as a, j as b, Fe as c, Y as d, V as f, J as g, B as h, $e as i, Ye as l, U as m, at as n, q as o, He as p, Q as r, W as s, lt as t, K as u, N as v, Oe as x, Ne as y };
|