@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,1309 @@
|
|
|
1
|
+
import { P as e, Y as t, lt as n, r } from "./platform-BzB373NB.js";
|
|
2
|
+
import { At as i, Q as a, St as o, bt as s, jt as c, n as l, tn as u, wt as d } from "./common-qd_KLeYO.js";
|
|
3
|
+
import { $a as ee, Bt as te, Ci as ne, Di as re, Ea as ie, Ei as ae, Fo as f, Ht as oe, Ji as se, Jo as p, Mn as m, No as h, Oi as ce, On as le, Po as ue, Vo as de, Wi as fe, _i as g, _n as _, _o as pe, ao as me, ei as he, fn as ge, gi as _e, gn as ve, ha as ye, ji as be, ka as v, ko as xe, mi as y, oo as Se, ri as Ce, va as we, wa as Te, wi as Ee, ya as De, yn as Oe, za as ke, zt as Ae } from "./legacy-C0IOfyhX.js";
|
|
4
|
+
import { Nn as je } from "./codemirror-CBR9VJma.js";
|
|
5
|
+
import "./text_utils-ohNt_gua.js";
|
|
6
|
+
import { r as Me } from "./color_picker-CHmwJ7or.js";
|
|
7
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/legacy/components/inline_editor/CSSLinearEasingModel.ts
|
|
8
|
+
var Ne = je.cssLanguage.parser, Pe = new Intl.NumberFormat("en", { maximumFractionDigits: 2 });
|
|
9
|
+
function Fe(e, t) {
|
|
10
|
+
for (let n = t; n < e.length; n++) if (!isNaN(e[n].input)) return n;
|
|
11
|
+
return -1;
|
|
12
|
+
}
|
|
13
|
+
function Ie(e, t) {
|
|
14
|
+
let n = [];
|
|
15
|
+
for (; e.type.name !== "," && e.type.name !== ")";) {
|
|
16
|
+
let r = t.substring(e.from, e.to);
|
|
17
|
+
if (e.type.name !== "NumberLiteral") return null;
|
|
18
|
+
n.push(r), e.next(!1);
|
|
19
|
+
}
|
|
20
|
+
if (n.length > 3) return null;
|
|
21
|
+
let r = n.filter((e) => e.includes("%"));
|
|
22
|
+
if (r.length > 2) return null;
|
|
23
|
+
let i = n.filter((e) => !e.includes("%"));
|
|
24
|
+
return i.length === 1 ? {
|
|
25
|
+
number: Number(i[0]),
|
|
26
|
+
lengthA: r[0] ? Number(r[0].substring(0, r[0].length - 1)) : void 0,
|
|
27
|
+
lengthB: r[1] ? Number(r[1].substring(0, r[1].length - 1)) : void 0
|
|
28
|
+
} : null;
|
|
29
|
+
}
|
|
30
|
+
function Le(e) {
|
|
31
|
+
let t = `*{--a: ${e}}`, n = Ne.parse(t).cursorAt(t.indexOf(":") + 1);
|
|
32
|
+
for (; n.name !== "ArgList" && n.next(!0);) if (n.name === "Callee" && t.substring(n.from, n.to) !== "linear") return null;
|
|
33
|
+
if (n.name !== "ArgList") return null;
|
|
34
|
+
n.firstChild();
|
|
35
|
+
let r = [];
|
|
36
|
+
for (; n.type.name !== ")" && n.next(!1);) {
|
|
37
|
+
let e = Ie(n, t);
|
|
38
|
+
if (!e) return null;
|
|
39
|
+
r.push(e);
|
|
40
|
+
}
|
|
41
|
+
return r;
|
|
42
|
+
}
|
|
43
|
+
var b = { linear: "linear(0 0%, 1 100%)" }, x = class e {
|
|
44
|
+
#e;
|
|
45
|
+
constructor(e) {
|
|
46
|
+
this.#e = e;
|
|
47
|
+
}
|
|
48
|
+
static parse(t) {
|
|
49
|
+
if (b[t]) return e.parse(b[t]);
|
|
50
|
+
let n = Le(t);
|
|
51
|
+
if (!n || n.length < 2) return null;
|
|
52
|
+
let r = -Infinity, i = [];
|
|
53
|
+
for (let e = 0; e < n.length; e++) {
|
|
54
|
+
let t = n[e], a = {
|
|
55
|
+
input: NaN,
|
|
56
|
+
output: t.number
|
|
57
|
+
};
|
|
58
|
+
if (i.push(a), t.lengthA !== void 0) {
|
|
59
|
+
if (a.input = Math.max(t.lengthA, r), r = a.input, t.lengthB !== void 0) {
|
|
60
|
+
let e = {
|
|
61
|
+
input: NaN,
|
|
62
|
+
output: a.output
|
|
63
|
+
};
|
|
64
|
+
i.push(e), e.input = Math.max(t.lengthB, r), r = e.input;
|
|
65
|
+
}
|
|
66
|
+
} else e === 0 ? (a.input = 0, r = 0) : e === n.length - 1 && (a.input = Math.max(100, r));
|
|
67
|
+
}
|
|
68
|
+
let a = 0;
|
|
69
|
+
for (let e = 1; e < i.length; e++) isNaN(i[e].input) && (e > a && (a = Fe(i, e)), i[e].input = i[e - 1].input + (i[a].input - i[e - 1].input) / (a - (e - 1)));
|
|
70
|
+
return new e(i);
|
|
71
|
+
}
|
|
72
|
+
addPoint(e, t) {
|
|
73
|
+
if (t !== void 0) {
|
|
74
|
+
this.#e.splice(t, 0, e);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
this.#e.push(e);
|
|
78
|
+
}
|
|
79
|
+
removePoint(e) {
|
|
80
|
+
this.#e.splice(e, 1);
|
|
81
|
+
}
|
|
82
|
+
setPoint(e, t) {
|
|
83
|
+
this.#e[e] = t;
|
|
84
|
+
}
|
|
85
|
+
points() {
|
|
86
|
+
return this.#e;
|
|
87
|
+
}
|
|
88
|
+
asCSSText() {
|
|
89
|
+
let e = `linear(${this.#e.map((e) => `${Pe.format(e.output)} ${Pe.format(e.input)}%`).join(", ")})`;
|
|
90
|
+
for (let [t, n] of Object.entries(b)) if (n === e) return t;
|
|
91
|
+
return e;
|
|
92
|
+
}
|
|
93
|
+
}, S = class {
|
|
94
|
+
static parse(e) {
|
|
95
|
+
return x.parse(e) || y.parse(e) || null;
|
|
96
|
+
}
|
|
97
|
+
}, Re = _e, C = class {
|
|
98
|
+
width;
|
|
99
|
+
height;
|
|
100
|
+
marginTop;
|
|
101
|
+
radius;
|
|
102
|
+
shouldDrawLine;
|
|
103
|
+
constructor({ width: e, height: t, marginTop: n, controlPointRadius: r, shouldDrawLine: i }) {
|
|
104
|
+
this.width = e, this.height = t, this.marginTop = n, this.radius = r, this.shouldDrawLine = i;
|
|
105
|
+
}
|
|
106
|
+
static drawVelocityChart(e, t, n) {
|
|
107
|
+
let r = [
|
|
108
|
+
"M",
|
|
109
|
+
0,
|
|
110
|
+
26
|
|
111
|
+
], i = 1 / 40, a = e.evaluateAt(0);
|
|
112
|
+
for (let t = i; t < 1.025; t += i) {
|
|
113
|
+
let i = e.evaluateAt(t), o = (i.y - a.y) / (i.x - a.x), s = a.x * (1 - t) + i.x * t;
|
|
114
|
+
o = Math.tanh(o / 1.5), r = r.concat([
|
|
115
|
+
"L",
|
|
116
|
+
(s * n).toFixed(2),
|
|
117
|
+
(26 - o * 26).toFixed(2)
|
|
118
|
+
]), a = i;
|
|
119
|
+
}
|
|
120
|
+
r = r.concat([
|
|
121
|
+
"L",
|
|
122
|
+
n.toFixed(2),
|
|
123
|
+
26,
|
|
124
|
+
"Z"
|
|
125
|
+
]), t.setAttribute("d", r.join(" "));
|
|
126
|
+
}
|
|
127
|
+
curveWidth() {
|
|
128
|
+
return this.width - this.radius * 2;
|
|
129
|
+
}
|
|
130
|
+
curveHeight() {
|
|
131
|
+
return this.height - this.radius * 2 - this.marginTop * 2;
|
|
132
|
+
}
|
|
133
|
+
drawLine(e, t, n, r, i, a) {
|
|
134
|
+
let o = _(e, "line", t);
|
|
135
|
+
o.setAttribute("x1", String(n + this.radius)), o.setAttribute("y1", String(r + this.radius + this.marginTop)), o.setAttribute("x2", String(i + this.radius)), o.setAttribute("y2", String(a + this.radius + this.marginTop));
|
|
136
|
+
}
|
|
137
|
+
drawControlPoints(e, t, n, r, i) {
|
|
138
|
+
this.drawLine(e, "bezier-control-line", t, n, r, i);
|
|
139
|
+
let a = _(e, "circle", "bezier-control-circle");
|
|
140
|
+
a.setAttribute("jslog", `${Te("bezier.control-circle").track({ drag: !0 })}`), a.setAttribute("cx", String(r + this.radius)), a.setAttribute("cy", String(i + this.radius + this.marginTop)), a.setAttribute("r", String(this.radius));
|
|
141
|
+
}
|
|
142
|
+
drawCurve(e, t) {
|
|
143
|
+
if (!e) return;
|
|
144
|
+
let n = this.curveWidth(), r = this.curveHeight();
|
|
145
|
+
t.setAttribute("width", String(this.width)), t.setAttribute("height", String(this.height)), t.removeChildren();
|
|
146
|
+
let i = _(t, "g");
|
|
147
|
+
this.shouldDrawLine && this.drawLine(i, "linear-line", 0, r, n, 0);
|
|
148
|
+
let a = _(i, "path", "bezier-path"), o = [
|
|
149
|
+
new g(e.controlPoints[0].x * n + this.radius, (1 - e.controlPoints[0].y) * r + this.radius + this.marginTop),
|
|
150
|
+
new g(e.controlPoints[1].x * n + this.radius, (1 - e.controlPoints[1].y) * r + this.radius + this.marginTop),
|
|
151
|
+
new g(n + this.radius, this.marginTop + this.radius)
|
|
152
|
+
];
|
|
153
|
+
a.setAttribute("d", "M" + this.radius + "," + (r + this.radius + this.marginTop) + " C" + o.join(" ")), this.drawControlPoints(i, 0, r, e.controlPoints[0].x * n, (1 - e.controlPoints[0].y) * r), this.drawControlPoints(i, n, 0, e.controlPoints[1].x * n, (1 - e.controlPoints[1].y) * r);
|
|
154
|
+
}
|
|
155
|
+
}, ze = 500, Be = class {
|
|
156
|
+
#e;
|
|
157
|
+
#t;
|
|
158
|
+
#n;
|
|
159
|
+
#r;
|
|
160
|
+
#i;
|
|
161
|
+
#a;
|
|
162
|
+
#o;
|
|
163
|
+
constructor({ bezier: e, container: t, onBezierChange: n }) {
|
|
164
|
+
this.#t = e, this.#e = new C({
|
|
165
|
+
width: 150,
|
|
166
|
+
height: 250,
|
|
167
|
+
marginTop: 50,
|
|
168
|
+
controlPointRadius: 7,
|
|
169
|
+
shouldDrawLine: !0
|
|
170
|
+
}), this.#n = _(t, "svg", "bezier-curve"), this.#o = n, m(this.#n, this.dragStart.bind(this), this.dragMove.bind(this), this.dragEnd.bind(this), "default");
|
|
171
|
+
}
|
|
172
|
+
dragStart(e) {
|
|
173
|
+
this.#r = new g(e.x, e.y);
|
|
174
|
+
let n = this.#e;
|
|
175
|
+
this.#i = new g(t((e.offsetX - n.radius) / n.curveWidth(), 0, 1), (n.curveHeight() + n.marginTop + n.radius - e.offsetY) / n.curveHeight());
|
|
176
|
+
let r = this.#i.distanceTo(this.#t.controlPoints[0]) < this.#i.distanceTo(this.#t.controlPoints[1]);
|
|
177
|
+
return this.#a = +!r, this.#t.controlPoints[this.#a] = this.#i, this.#o(this.#t), e.consume(!0), !0;
|
|
178
|
+
}
|
|
179
|
+
updateControlPosition(e, n) {
|
|
180
|
+
if (this.#r === void 0 || this.#i === void 0 || this.#a === void 0) return;
|
|
181
|
+
let r = (e - this.#r.x) / this.#e.curveWidth(), i = (n - this.#r.y) / this.#e.curveHeight(), a = new g(t(this.#i.x + r, 0, 1), this.#i.y - i);
|
|
182
|
+
this.#t.controlPoints[this.#a] = a;
|
|
183
|
+
}
|
|
184
|
+
dragMove(e) {
|
|
185
|
+
this.updateControlPosition(e.x, e.y), this.#o(this.#t);
|
|
186
|
+
}
|
|
187
|
+
dragEnd(e) {
|
|
188
|
+
this.updateControlPosition(e.x, e.y), this.#o(this.#t);
|
|
189
|
+
}
|
|
190
|
+
setBezier(e) {
|
|
191
|
+
this.#t = e, this.draw();
|
|
192
|
+
}
|
|
193
|
+
draw() {
|
|
194
|
+
this.#e.drawCurve(this.#t, this.#n);
|
|
195
|
+
}
|
|
196
|
+
}, w = class {
|
|
197
|
+
params;
|
|
198
|
+
renderedPositions;
|
|
199
|
+
constructor(e) {
|
|
200
|
+
this.params = e;
|
|
201
|
+
}
|
|
202
|
+
#e() {
|
|
203
|
+
return this.params.width - this.params.pointRadius * 2;
|
|
204
|
+
}
|
|
205
|
+
#t() {
|
|
206
|
+
return this.params.height - this.params.pointRadius * 2 - this.params.marginTop * 2;
|
|
207
|
+
}
|
|
208
|
+
#n(e, t, n, r) {
|
|
209
|
+
let i = _(e, "circle", "bezier-control-circle");
|
|
210
|
+
i.setAttribute("jslog", `${Te("bezier.linear-control-circle").track({
|
|
211
|
+
drag: !0,
|
|
212
|
+
dblclick: !0
|
|
213
|
+
})}`), i.setAttribute("data-point-index", String(r)), i.setAttribute("cx", String(t)), i.setAttribute("cy", String(n)), i.setAttribute("r", String(this.params.pointRadius));
|
|
214
|
+
}
|
|
215
|
+
timingPointToPosition(e) {
|
|
216
|
+
return {
|
|
217
|
+
x: e.input / 100 * this.#e() + this.params.pointRadius,
|
|
218
|
+
y: (1 - e.output) * this.#t() + this.params.pointRadius
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
positionToTimingPoint(e) {
|
|
222
|
+
return {
|
|
223
|
+
input: (e.x - this.params.pointRadius) / this.#e() * 100,
|
|
224
|
+
output: 1 - (e.y - this.params.pointRadius) / this.#t()
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
draw(e, t) {
|
|
228
|
+
t.setAttribute("width", String(this.#e())), t.setAttribute("height", String(this.#t())), t.removeChildren();
|
|
229
|
+
let n = _(t, "g"), r = e.points().map((e) => this.timingPointToPosition(e));
|
|
230
|
+
this.renderedPositions = r;
|
|
231
|
+
let i = r[0];
|
|
232
|
+
for (let e = 1; e < r.length; e++) {
|
|
233
|
+
let t = r[e], a = _(n, "path", "bezier-path linear-path");
|
|
234
|
+
a.setAttribute("d", `M ${i.x} ${i.y} L ${t.x} ${t.y}`), a.setAttribute("data-line-index", String(e)), i = t;
|
|
235
|
+
}
|
|
236
|
+
for (let e = 0; e < r.length; e++) {
|
|
237
|
+
let t = r[e];
|
|
238
|
+
this.#n(n, t.x, t.y, e);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}, T = class {
|
|
242
|
+
#e;
|
|
243
|
+
#t;
|
|
244
|
+
#n;
|
|
245
|
+
#r;
|
|
246
|
+
#i;
|
|
247
|
+
#a;
|
|
248
|
+
#o;
|
|
249
|
+
#s;
|
|
250
|
+
constructor({ model: e, container: t, onChange: n }) {
|
|
251
|
+
this.#e = e, this.#t = n, this.#n = new w({
|
|
252
|
+
width: 150,
|
|
253
|
+
height: 250,
|
|
254
|
+
pointRadius: 7,
|
|
255
|
+
marginTop: 50
|
|
256
|
+
}), this.#s = _(t, "svg", "bezier-curve linear"), m(this.#s, this.#u.bind(this), this.#f.bind(this), this.#p.bind(this), "default");
|
|
257
|
+
}
|
|
258
|
+
#c(e, t) {
|
|
259
|
+
let n = this.#n.positionToTimingPoint({
|
|
260
|
+
x: e.offsetX,
|
|
261
|
+
y: e.offsetY
|
|
262
|
+
});
|
|
263
|
+
this.#e.addPoint(n, t), this.#r = void 0, this.#o = void 0;
|
|
264
|
+
}
|
|
265
|
+
#l(e, t) {
|
|
266
|
+
if (this.#r = t, this.#o = {
|
|
267
|
+
x: e.x,
|
|
268
|
+
y: e.y
|
|
269
|
+
}, clearTimeout(this.#i), this.#a === this.#r) {
|
|
270
|
+
this.#e.removePoint(this.#r), this.#a = void 0, this.#r = void 0, this.#o = void 0;
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
this.#a = this.#r, this.#i = window.setTimeout(() => {
|
|
274
|
+
this.#a = void 0;
|
|
275
|
+
}, ze);
|
|
276
|
+
}
|
|
277
|
+
#u(e) {
|
|
278
|
+
return e.target instanceof SVGElement ? e.target.dataset.lineIndex === void 0 ? e.target.dataset.pointIndex === void 0 ? !1 : (this.#l(e, Number(e.target.dataset.pointIndex)), e.consume(!0), !0) : (this.#c(e, Number(e.target.dataset.lineIndex)), e.consume(!0), !0) : !1;
|
|
279
|
+
}
|
|
280
|
+
#d(e, t) {
|
|
281
|
+
if (this.#r === void 0 || this.#o === void 0) return;
|
|
282
|
+
let n = this.#n.renderedPositions?.[this.#r];
|
|
283
|
+
if (!n) return;
|
|
284
|
+
let r = e - this.#o.x, i = t - this.#o.y;
|
|
285
|
+
this.#o = {
|
|
286
|
+
x: e,
|
|
287
|
+
y: t
|
|
288
|
+
};
|
|
289
|
+
let a = {
|
|
290
|
+
x: n.x + r,
|
|
291
|
+
y: n.y + i
|
|
292
|
+
};
|
|
293
|
+
this.#e.setPoint(this.#r, this.#n.positionToTimingPoint(a));
|
|
294
|
+
}
|
|
295
|
+
#f(e) {
|
|
296
|
+
this.#d(e.x, e.y), this.#t(this.#e);
|
|
297
|
+
}
|
|
298
|
+
#p(e) {
|
|
299
|
+
this.#d(e.x, e.y), this.#t(this.#e);
|
|
300
|
+
}
|
|
301
|
+
setCSSLinearEasingModel(e) {
|
|
302
|
+
this.#e = e, this.draw();
|
|
303
|
+
}
|
|
304
|
+
draw() {
|
|
305
|
+
this.#n.draw(this.#e, this.#s);
|
|
306
|
+
}
|
|
307
|
+
}, Ve = class {
|
|
308
|
+
#e;
|
|
309
|
+
#t;
|
|
310
|
+
constructor() {
|
|
311
|
+
this.#e = new w({
|
|
312
|
+
width: 40,
|
|
313
|
+
height: 40,
|
|
314
|
+
marginTop: 0,
|
|
315
|
+
pointRadius: 2
|
|
316
|
+
}), this.#t = new C({
|
|
317
|
+
width: 40,
|
|
318
|
+
height: 40,
|
|
319
|
+
marginTop: 0,
|
|
320
|
+
controlPointRadius: 2,
|
|
321
|
+
shouldDrawLine: !1
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
draw(e, t) {
|
|
325
|
+
e instanceof x ? this.#e.draw(e, t) : e instanceof y && this.#t.drawCurve(e, t);
|
|
326
|
+
}
|
|
327
|
+
}, He = class {
|
|
328
|
+
#e;
|
|
329
|
+
#t;
|
|
330
|
+
#n;
|
|
331
|
+
#r;
|
|
332
|
+
#i;
|
|
333
|
+
#a;
|
|
334
|
+
#o;
|
|
335
|
+
constructor({ model: e, onChange: t }) {
|
|
336
|
+
this.#e = document.createElement("div"), this.#e.className = "animation-timing-ui", this.#e.style.width = "150px", this.#e.style.height = "250px", this.#t = document.createElement("div"), this.#t.classList.add("bezier-ui-container"), this.#n = document.createElement("div"), this.#n.classList.add("linear-easing-ui-container"), this.#e.appendChild(this.#t), this.#e.appendChild(this.#n), this.#r = e, this.#i = t, this.#r instanceof y ? this.#a = new Be({
|
|
337
|
+
bezier: this.#r,
|
|
338
|
+
container: this.#t,
|
|
339
|
+
onBezierChange: this.#i
|
|
340
|
+
}) : this.#r instanceof x && (this.#o = new T({
|
|
341
|
+
model: this.#r,
|
|
342
|
+
container: this.#n,
|
|
343
|
+
onChange: this.#i
|
|
344
|
+
}));
|
|
345
|
+
}
|
|
346
|
+
element() {
|
|
347
|
+
return this.#e;
|
|
348
|
+
}
|
|
349
|
+
setModel(e) {
|
|
350
|
+
this.#r = e, this.#r instanceof y ? this.#a ? this.#a.setBezier(this.#r) : this.#a = new Be({
|
|
351
|
+
bezier: this.#r,
|
|
352
|
+
container: this.#t,
|
|
353
|
+
onBezierChange: this.#i
|
|
354
|
+
}) : this.#r instanceof x && (this.#o ? this.#o.setCSSLinearEasingModel(this.#r) : this.#o = new T({
|
|
355
|
+
model: this.#r,
|
|
356
|
+
container: this.#n,
|
|
357
|
+
onChange: this.#i
|
|
358
|
+
})), this.draw();
|
|
359
|
+
}
|
|
360
|
+
draw() {
|
|
361
|
+
this.#n.classList.toggle("hidden", !(this.#r instanceof x)), this.#t.classList.toggle("hidden", !(this.#r instanceof y)), this.#a && this.#a.draw(), this.#o && this.#o.draw();
|
|
362
|
+
}
|
|
363
|
+
}, Ue = "/*\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:host {\n width: 270px;\n height: 350px;\n user-select: none;\n padding: 16px;\n overflow: hidden;\n}\n\n.bezier-preset-selected > svg {\n background-color: var(--sys-color-tonal-container);\n}\n\n.bezier-container {\n --override-bezier-control-color: var(--sys-color-purple-bright);\n\n display: flex;\n margin-top: 38px;\n flex-shrink: 0;\n /* overflown bezier visualization must be on top of the source text */\n z-index: 2;\n background-image: radial-gradient(circle, var(--sys-color-surface-variant) 1px, var(--color-background-inverted-opacity-0) 1px);\n background-size: 17px 17px;\n background-position: -5px -10px;\n}\n\n.bezier-preset {\n width: 50px;\n height: 50px;\n padding: 5px;\n margin: auto;\n background-color: var(--sys-color-surface1);\n border-radius: 3px;\n}\n\n.bezier-preset line.bezier-control-line {\n stroke: var(--sys-color-token-subtle);\n stroke-width: 1;\n stroke-linecap: round;\n fill: none;\n}\n\n.bezier-preset circle.bezier-control-circle {\n fill: var(--sys-color-token-subtle);\n}\n\n.bezier-preset path.bezier-path {\n stroke: var(--sys-color-inverse-surface);\n stroke-width: 2;\n stroke-linecap: round;\n fill: none;\n}\n\n.bezier-preset-selected path.bezier-path,\n.bezier-preset-selected line.bezier-control-line {\n stroke: var(--sys-color-on-tonal-container);\n}\n\n.bezier-preset-selected circle.bezier-control-circle {\n fill: var(--sys-color-on-tonal-container);\n}\n\n.bezier-curve line.linear-line {\n stroke: var(--sys-color-neutral-outline);\n stroke-width: 2;\n stroke-linecap: round;\n fill: none;\n}\n\n.bezier-curve line.bezier-control-line {\n stroke: var(--override-bezier-control-color);\n stroke-width: 2;\n stroke-linecap: round;\n fill: none;\n opacity: 60%;\n}\n\n.bezier-curve circle.bezier-control-circle {\n fill: var(--override-bezier-control-color);\n cursor: pointer;\n}\n\n.bezier-curve path.bezier-path {\n stroke: var(--sys-color-inverse-surface);\n stroke-width: 3;\n stroke-linecap: round;\n fill: none;\n}\n\n.bezier-curve path.bezier-path.linear-path {\n cursor: pointer;\n}\n\n.bezier-preview-container {\n position: relative;\n background-color: var(--sys-color-cdt-base-container);\n overflow: hidden;\n border-radius: 20px;\n width: 200%;\n height: 20px;\n z-index: 2;\n flex-shrink: 0;\n opacity: 0%;\n}\n\n.bezier-preview-animation {\n background-color: var(--sys-color-purple-bright);\n width: 20px;\n height: 20px;\n border-radius: 20px;\n position: absolute;\n}\n\n.bezier-preview-onion {\n margin-top: -20px;\n position: relative;\n z-index: 1;\n}\n\n.bezier-preview-onion > .bezier-preview-animation {\n opacity: 10%;\n}\n\nsvg.bezier-preset-modify {\n background-color: var(--sys-color-cdt-base-container);\n border-radius: 35px;\n display: inline-block;\n visibility: hidden;\n transition: transform 100ms cubic-bezier(0.4, 0, 0.2, 1);\n cursor: pointer;\n position: absolute;\n}\n\nsvg.bezier-preset-modify:hover,\n.bezier-preset:hover {\n background-color: var(--sys-color-state-hover-on-subtle);\n}\n\n.bezier-preset-selected .bezier-preset:hover {\n background-color: var(--sys-color-tonal-container);\n}\n\n.bezier-preset-modify path {\n stroke-width: 2;\n stroke: var(--sys-color-on-surface-subtle);\n fill: none;\n}\n\n.bezier-presets {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.bezier-preset-selected .bezier-preset-modify {\n opacity: 100%;\n}\n\n.bezier-preset-category {\n width: 50px;\n cursor: pointer;\n transition: transform 100ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\nspan.bezier-display-value {\n width: 100%;\n user-select: text;\n display: block;\n text-align: center;\n line-height: 20px;\n min-height: 20px;\n cursor: text;\n}\n\nsvg.bezier-curve {\n margin-left: 32px;\n margin-top: -8px;\n}\n\nsvg.bezier-curve.linear {\n margin-top: 42px;\n overflow: visible;\n}\n\nsvg.bezier-preset-modify.bezier-preset-plus {\n right: 0;\n}\n\n.bezier-header {\n margin-top: 16px;\n z-index: 1;\n}\n\nsvg.bezier-preset-modify:active {\n transform: scale(1.1);\n background-color: var(--sys-color-state-ripple-neutral-on-subtle);\n}\n\n.bezier-preset-category:active {\n transform: scale(1.05);\n}\n\n.bezier-header-active > svg.bezier-preset-modify {\n visibility: visible;\n}\n\n.bezier-preset-modify:active path {\n stroke: var(--sys-color-on-surface-subtle);\n}\n", We = 300, Ge = class extends c(he) {
|
|
364
|
+
model;
|
|
365
|
+
previewElement;
|
|
366
|
+
previewOnion;
|
|
367
|
+
outerContainer;
|
|
368
|
+
selectedCategory;
|
|
369
|
+
presetsContainer;
|
|
370
|
+
presetUI;
|
|
371
|
+
presetCategories;
|
|
372
|
+
animationTimingUI;
|
|
373
|
+
header;
|
|
374
|
+
label;
|
|
375
|
+
previewAnimation;
|
|
376
|
+
debouncedStartPreviewAnimation;
|
|
377
|
+
constructor(e) {
|
|
378
|
+
super({ useShadowDom: !0 }), this.registerRequiredCSS(Ue), this.model = e, this.contentElement.tabIndex = 0, this.contentElement.setAttribute("jslog", `${v("bezierEditor").parent("mapped").track({ keydown: "Enter|Escape" })}`), this.setDefaultFocusedElement(this.contentElement), this.element.style.overflowY = "auto", this.previewElement = this.contentElement.createChild("div", "bezier-preview-container"), this.previewElement.setAttribute("jslog", `${ee().track({ click: !0 })}`), this.previewElement.createChild("div", "bezier-preview-animation"), this.previewElement.addEventListener("click", this.startPreviewAnimation.bind(this)), this.previewOnion = this.contentElement.createChild("div", "bezier-preview-onion"), this.previewOnion.setAttribute("jslog", `${ee().track({ click: !0 })}`), this.previewOnion.addEventListener("click", this.startPreviewAnimation.bind(this)), this.outerContainer = this.contentElement.createChild("div", "bezier-container"), this.selectedCategory = null, this.presetsContainer = this.outerContainer.createChild("div", "bezier-presets"), this.presetUI = new Ve(), this.presetCategories = [];
|
|
379
|
+
for (let e = 0; e < E.length; e++) {
|
|
380
|
+
let t = this.createCategory(E[e]);
|
|
381
|
+
t && (this.presetCategories[e] = t, this.presetsContainer.appendChild(this.presetCategories[e].icon));
|
|
382
|
+
}
|
|
383
|
+
this.debouncedStartPreviewAnimation = a(this.startPreviewAnimation.bind(this), We), this.animationTimingUI = new He({
|
|
384
|
+
model: this.model,
|
|
385
|
+
onChange: (e) => {
|
|
386
|
+
this.setModel(e), this.onchange(), this.unselectPresets(), this.debouncedStartPreviewAnimation();
|
|
387
|
+
}
|
|
388
|
+
}), this.animationTimingUI.element().setAttribute("jslog", `${we().track({
|
|
389
|
+
click: !0,
|
|
390
|
+
drag: !0
|
|
391
|
+
})}`), this.outerContainer.appendChild(this.animationTimingUI.element()), this.header = this.contentElement.createChild("div", "bezier-header");
|
|
392
|
+
let t = this.createPresetModifyIcon(this.header, "bezier-preset-minus", "M 12 6 L 8 10 L 12 14");
|
|
393
|
+
t.addEventListener("click", this.presetModifyClicked.bind(this, !1)), t.setAttribute("jslog", `${ye("bezier.prev-preset").track({ click: !0 })}`);
|
|
394
|
+
let n = this.createPresetModifyIcon(this.header, "bezier-preset-plus", "M 8 6 L 12 10 L 8 14");
|
|
395
|
+
n.addEventListener("click", this.presetModifyClicked.bind(this, !0)), n.setAttribute("jslog", `${ye("bezier.next-preset").track({ click: !0 })}`), this.label = this.header.createChild("span", "source-code bezier-display-value");
|
|
396
|
+
}
|
|
397
|
+
setModel(e) {
|
|
398
|
+
this.model = e, this.animationTimingUI?.setModel(this.model), this.updateUI();
|
|
399
|
+
}
|
|
400
|
+
wasShown() {
|
|
401
|
+
super.wasShown(), this.unselectPresets();
|
|
402
|
+
for (let e of this.presetCategories) for (let t = 0; t < e.presets.length; t++) this.model.asCSSText() === e.presets[t].value && (e.presetIndex = t, this.presetCategorySelected(e));
|
|
403
|
+
this.updateUI(), this.startPreviewAnimation();
|
|
404
|
+
}
|
|
405
|
+
onchange() {
|
|
406
|
+
this.updateUI(), this.dispatchEventToListeners("BezierChanged", this.model.asCSSText());
|
|
407
|
+
}
|
|
408
|
+
updateUI() {
|
|
409
|
+
let e = this.selectedCategory ? this.selectedCategory.presets[this.selectedCategory.presetIndex].name : this.model.asCSSText().replace(/\s(-\d\.\d)/g, "$1");
|
|
410
|
+
this.label.textContent = e, this.animationTimingUI?.draw();
|
|
411
|
+
}
|
|
412
|
+
createCategory(e) {
|
|
413
|
+
let t = S.parse(e[0].value);
|
|
414
|
+
if (!t) return null;
|
|
415
|
+
let n = document.createElement("div");
|
|
416
|
+
n.classList.add("bezier-preset-category"), n.setAttribute("jslog", `${De().track({ click: !0 }).context(e[0].name)}`);
|
|
417
|
+
let r = _(n, "svg", "bezier-preset monospace"), i = {
|
|
418
|
+
presets: e,
|
|
419
|
+
presetIndex: 0,
|
|
420
|
+
icon: n
|
|
421
|
+
};
|
|
422
|
+
return this.presetUI.draw(t, r), r.addEventListener("click", this.presetCategorySelected.bind(this, i)), i;
|
|
423
|
+
}
|
|
424
|
+
createPresetModifyIcon(e, t, n) {
|
|
425
|
+
let r = _(e, "svg", "bezier-preset-modify " + t);
|
|
426
|
+
return r.setAttribute("width", "20"), r.setAttribute("height", "20"), _(r, "path").setAttribute("d", n), r;
|
|
427
|
+
}
|
|
428
|
+
unselectPresets() {
|
|
429
|
+
for (let e of this.presetCategories) e.icon.classList.remove("bezier-preset-selected");
|
|
430
|
+
this.selectedCategory = null, this.header.classList.remove("bezier-header-active");
|
|
431
|
+
}
|
|
432
|
+
presetCategorySelected(e, t) {
|
|
433
|
+
if (this.selectedCategory === e) return;
|
|
434
|
+
this.unselectPresets(), this.header.classList.add("bezier-header-active"), this.selectedCategory = e, this.selectedCategory.icon.classList.add("bezier-preset-selected");
|
|
435
|
+
let n = S.parse(e.presets[e.presetIndex].value);
|
|
436
|
+
n && (this.setModel(n), this.onchange(), this.startPreviewAnimation()), t && t.consume(!0);
|
|
437
|
+
}
|
|
438
|
+
presetModifyClicked(e, t) {
|
|
439
|
+
if (this.selectedCategory === null) return;
|
|
440
|
+
let n = this.selectedCategory.presets.length;
|
|
441
|
+
this.selectedCategory.presetIndex = (this.selectedCategory.presetIndex + (e ? 1 : -1) + n) % n;
|
|
442
|
+
let r = this.selectedCategory.presets[this.selectedCategory.presetIndex].value, i = S.parse(r);
|
|
443
|
+
i && (this.setModel(i), this.onchange(), this.startPreviewAnimation());
|
|
444
|
+
}
|
|
445
|
+
startPreviewAnimation() {
|
|
446
|
+
this.previewOnion.removeChildren(), this.previewAnimation && this.previewAnimation.cancel();
|
|
447
|
+
let e = 1600, t = [{
|
|
448
|
+
offset: 0,
|
|
449
|
+
transform: "translateX(0px)",
|
|
450
|
+
opacity: 1
|
|
451
|
+
}, {
|
|
452
|
+
offset: 1,
|
|
453
|
+
transform: "translateX(218px)",
|
|
454
|
+
opacity: 1
|
|
455
|
+
}];
|
|
456
|
+
this.previewAnimation = this.previewElement.animate(t, {
|
|
457
|
+
easing: this.model.asCSSText(),
|
|
458
|
+
duration: e
|
|
459
|
+
}), this.previewOnion.removeChildren();
|
|
460
|
+
for (let t = 0; t <= 20; t++) {
|
|
461
|
+
let n = this.previewOnion.createChild("div", "bezier-preview-animation").animate([{
|
|
462
|
+
transform: "translateX(0px)",
|
|
463
|
+
easing: this.model.asCSSText()
|
|
464
|
+
}, { transform: "translateX(218px)" }], {
|
|
465
|
+
duration: e,
|
|
466
|
+
fill: "forwards"
|
|
467
|
+
});
|
|
468
|
+
n.pause(), n.currentTime = e * t / 20;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}, Ke = /* @__PURE__ */ function(e) {
|
|
472
|
+
return e.BEZIER_CHANGED = "BezierChanged", e;
|
|
473
|
+
}({}), E = [
|
|
474
|
+
[
|
|
475
|
+
{
|
|
476
|
+
name: "linear",
|
|
477
|
+
value: "linear"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
name: "elastic",
|
|
481
|
+
value: "linear(0 0%, 0.22 2.1%, 0.86 6.5%, 1.11 8.6%, 1.3 10.7%, 1.35 11.8%, 1.37 12.9%, 1.37 13.7%, 1.36 14.5%, 1.32 16.2%, 1.03 21.8%, 0.94 24%, 0.89 25.9%, 0.88 26.85%, 0.87 27.8%, 0.87 29.25%, 0.88 30.7%, 0.91 32.4%, 0.98 36.4%, 1.01 38.3%, 1.04 40.5%, 1.05 42.7%, 1.05 44.1%, 1.04 45.7%, 1 53.3%, 0.99 55.4%, 0.98 57.5%, 0.99 60.7%, 1 68.1%, 1.01 72.2%, 1 86.7%, 1 100%)"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
name: "bounce",
|
|
485
|
+
value: "linear(0 0%, 0 2.27%, 0.02 4.53%, 0.04 6.8%, 0.06 9.07%, 0.1 11.33%, 0.14 13.6%, 0.25 18.15%, 0.39 22.7%, 0.56 27.25%, 0.77 31.8%, 1 36.35%, 0.89 40.9%, 0.85 43.18%, 0.81 45.45%, 0.79 47.72%, 0.77 50%, 0.75 52.27%, 0.75 54.55%, 0.75 56.82%, 0.77 59.1%, 0.79 61.38%, 0.81 63.65%, 0.85 65.93%, 0.89 68.2%, 1 72.7%, 0.97 74.98%, 0.95 77.25%, 0.94 79.53%, 0.94 81.8%, 0.94 84.08%, 0.95 86.35%, 0.97 88.63%, 1 90.9%, 0.99 93.18%, 0.98 95.45%, 0.99 97.73%, 1 100%)"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
name: "emphasized",
|
|
489
|
+
value: "linear(0 0%, 0 1.8%, 0.01 3.6%, 0.03 6.35%, 0.07 9.1%, 0.13 11.4%, 0.19 13.4%, 0.27 15%, 0.34 16.1%, 0.54 18.35%, 0.66 20.6%, 0.72 22.4%, 0.77 24.6%, 0.81 27.3%, 0.85 30.4%, 0.88 35.1%, 0.92 40.6%, 0.94 47.2%, 0.96 55%, 0.98 64%, 0.99 74.4%, 1 86.4%, 1 100%)"
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
[
|
|
493
|
+
{
|
|
494
|
+
name: "ease-in-out",
|
|
495
|
+
value: "ease-in-out"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
name: "In Out · Sine",
|
|
499
|
+
value: "cubic-bezier(0.45, 0.05, 0.55, 0.95)"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
name: "In Out · Quadratic",
|
|
503
|
+
value: "cubic-bezier(0.46, 0.03, 0.52, 0.96)"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
name: "In Out · Cubic",
|
|
507
|
+
value: "cubic-bezier(0.65, 0.05, 0.36, 1)"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
name: "Fast Out, Slow In",
|
|
511
|
+
value: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
name: "In Out · Back",
|
|
515
|
+
value: "cubic-bezier(0.68, -0.55, 0.27, 1.55)"
|
|
516
|
+
}
|
|
517
|
+
],
|
|
518
|
+
[
|
|
519
|
+
{
|
|
520
|
+
name: "Fast Out, Linear In",
|
|
521
|
+
value: "cubic-bezier(0.4, 0, 1, 1)"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
name: "ease-in",
|
|
525
|
+
value: "ease-in"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
name: "In · Sine",
|
|
529
|
+
value: "cubic-bezier(0.47, 0, 0.75, 0.72)"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
name: "In · Quadratic",
|
|
533
|
+
value: "cubic-bezier(0.55, 0.09, 0.68, 0.53)"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
name: "In · Cubic",
|
|
537
|
+
value: "cubic-bezier(0.55, 0.06, 0.68, 0.19)"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
name: "In · Back",
|
|
541
|
+
value: "cubic-bezier(0.6, -0.28, 0.74, 0.05)"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
[
|
|
545
|
+
{
|
|
546
|
+
name: "ease-out",
|
|
547
|
+
value: "ease-out"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
name: "Out · Sine",
|
|
551
|
+
value: "cubic-bezier(0.39, 0.58, 0.57, 1)"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
name: "Out · Quadratic",
|
|
555
|
+
value: "cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
name: "Out · Cubic",
|
|
559
|
+
value: "cubic-bezier(0.22, 0.61, 0.36, 1)"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
name: "Linear Out, Slow In",
|
|
563
|
+
value: "cubic-bezier(0, 0, 0.2, 1)"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
name: "Out · Back",
|
|
567
|
+
value: "cubic-bezier(0.18, 0.89, 0.32, 1.28)"
|
|
568
|
+
}
|
|
569
|
+
]
|
|
570
|
+
], qe = "/*\n * Copyright 2022 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.swatch-icon {\n display: inline-grid;\n inline-size: 15px;\n grid: [stack] 1fr / [stack] 1fr;\n margin-left: 1px;\n margin-right: 1px;\n vertical-align: -1px;\n color: var(--color); /* stylelint-disable-line plugin/use_theme_colors */\n}\n\n.swatch {\n aspect-ratio: 1 / 1;\n display: inline-block;\n width: 10px;\n border-radius: 1e5px;\n /* stylelint-disable-next-line plugin/use_theme_colors */\n background: linear-gradient(var(--color), var(--color)),\n var(--image-file-checker);\n box-shadow: inset 0 0 0 0.5px rgb(128 128 128 / 60%); /* stylelint-disable-line plugin/use_theme_colors */\n grid-area: stack;\n}\n\n.swatch-right {\n justify-self: end;\n}\n\n.swatch-mix {\n box-shadow: none;\n justify-self: end;\n mask: radial-gradient(\n circle at 0% center,\n rgb(0 0 0) 50%,\n rgb(0 0 0 / 0%) calc(50% + 0.5px)\n );\n}\n", { html: Je, render: D, Directives: { ref: Ye } } = h, O = class e extends Event {
|
|
571
|
+
static eventName = "colormixchanged";
|
|
572
|
+
data;
|
|
573
|
+
constructor(t) {
|
|
574
|
+
super(e.eventName, {}), this.data = { text: t };
|
|
575
|
+
}
|
|
576
|
+
}, Xe = class extends HTMLElement {
|
|
577
|
+
shadow = this.attachShadow({ mode: "open" });
|
|
578
|
+
colorMixText = "";
|
|
579
|
+
firstColorText = "";
|
|
580
|
+
secondColorText = "";
|
|
581
|
+
#e = null;
|
|
582
|
+
mixedColor() {
|
|
583
|
+
let e = this.#e?.computedStyleMap().get("color")?.toString() ?? null;
|
|
584
|
+
return e ? u(e) : null;
|
|
585
|
+
}
|
|
586
|
+
setFirstColor(e) {
|
|
587
|
+
this.firstColorText && (this.colorMixText = this.colorMixText.replace(this.firstColorText, e)), this.firstColorText = e, this.dispatchEvent(new O(this.colorMixText)), this.#t();
|
|
588
|
+
}
|
|
589
|
+
setSecondColor(t) {
|
|
590
|
+
this.secondColorText && (this.colorMixText = e(this.colorMixText, this.secondColorText, t)), this.secondColorText = t, this.dispatchEvent(new O(this.colorMixText)), this.#t();
|
|
591
|
+
}
|
|
592
|
+
setColorMixText(e) {
|
|
593
|
+
this.colorMixText = e, this.dispatchEvent(new O(this.colorMixText)), this.#t();
|
|
594
|
+
}
|
|
595
|
+
getText() {
|
|
596
|
+
return this.colorMixText;
|
|
597
|
+
}
|
|
598
|
+
#t() {
|
|
599
|
+
if (!this.colorMixText || !this.firstColorText || !this.secondColorText) {
|
|
600
|
+
D(this.colorMixText, this.shadow, { host: this });
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
D(Je`<style>${qe}</style><div class="swatch-icon"
|
|
604
|
+
${Ye((e) => {
|
|
605
|
+
this.#e = e;
|
|
606
|
+
})}
|
|
607
|
+
jslog=${ie()}
|
|
608
|
+
style="--color: ${this.colorMixText}">
|
|
609
|
+
<span class="swatch swatch-left" id="swatch-1" style="--color: ${this.firstColorText}"></span>
|
|
610
|
+
<span class="swatch swatch-right" id="swatch-2" style="--color: ${this.secondColorText}"></span>
|
|
611
|
+
<span class="swatch swatch-mix" id="mix-result" style="--color: ${this.colorMixText}"></span></div>`, this.shadow, { host: this });
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
customElements.define("devtools-color-mix-swatch", Xe);
|
|
615
|
+
//#endregion
|
|
616
|
+
//#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/inline_editor/colorSwatch.css.mjs
|
|
617
|
+
var Ze = "/*\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:host {\n white-space: nowrap;\n}\n\n.color-swatch {\n position: relative;\n margin-left: 1px;\n margin-right: 2px;\n width: 12px;\n height: 12px;\n transform: scale(0.8);\n vertical-align: -2px;\n display: inline-block;\n user-select: none;\n background-image: var(--image-file-checker);\n line-height: 10px;\n}\n\n.color-swatch-inner {\n width: 100%;\n height: 100%;\n display: inline-block;\n border: 1px solid var(--sys-color-neutral-outline);\n box-sizing: border-box;\n cursor: pointer;\n}\n\n.color-swatch.readonly .color-swatch-inner {\n cursor: unset;\n}\n\n.color-swatch:not(.readonly) .color-swatch-inner:hover {\n border: 1px solid var(--sys-color-outline);\n}\n\n@media (forced-colors: active) {\n .color-swatch {\n forced-color-adjust: none;\n }\n}\n", { html: Qe } = h, $e = { shiftclickToChangeColorFormat: "Shift-click to change color format" }, et = d("ui/legacy/components/inline_editor/ColorSwatch.ts", $e), tt = s.bind(void 0, et), k = class e extends Event {
|
|
618
|
+
static eventName = "colorformatchanged";
|
|
619
|
+
data;
|
|
620
|
+
constructor(t) {
|
|
621
|
+
super(e.eventName, {}), this.data = { color: t };
|
|
622
|
+
}
|
|
623
|
+
}, A = class e extends Event {
|
|
624
|
+
static eventName = "colorchanged";
|
|
625
|
+
data;
|
|
626
|
+
constructor(t) {
|
|
627
|
+
super(e.eventName, {}), this.data = { color: t };
|
|
628
|
+
}
|
|
629
|
+
}, j = class e extends Event {
|
|
630
|
+
static eventName = "swatchclick";
|
|
631
|
+
constructor() {
|
|
632
|
+
super(e.eventName, {});
|
|
633
|
+
}
|
|
634
|
+
}, M = class extends HTMLElement {
|
|
635
|
+
shadow = this.attachShadow({ mode: "open" });
|
|
636
|
+
tooltip = tt($e.shiftclickToChangeColorFormat);
|
|
637
|
+
#e = null;
|
|
638
|
+
readonly = !1;
|
|
639
|
+
constructor(e) {
|
|
640
|
+
super(), e && (this.tooltip = e), this.tabIndex = -1, this.addEventListener("keydown", (e) => this.onActivate(e));
|
|
641
|
+
}
|
|
642
|
+
static isColorSwatch(e) {
|
|
643
|
+
return e.localName === "devtools-color-swatch";
|
|
644
|
+
}
|
|
645
|
+
setReadonly(e) {
|
|
646
|
+
this.readonly !== e && (this.readonly = e, this.#e && this.renderColor(this.#e));
|
|
647
|
+
}
|
|
648
|
+
set color(e) {
|
|
649
|
+
this.renderColor(e);
|
|
650
|
+
}
|
|
651
|
+
get color() {
|
|
652
|
+
return this.#e;
|
|
653
|
+
}
|
|
654
|
+
get anchorBox() {
|
|
655
|
+
let e = this.shadow.querySelector(".color-swatch");
|
|
656
|
+
return e ? e.boxInWindow() : null;
|
|
657
|
+
}
|
|
658
|
+
getText() {
|
|
659
|
+
return this.#e?.getAuthoredText() ?? this.#e?.asString();
|
|
660
|
+
}
|
|
661
|
+
renderColor(e) {
|
|
662
|
+
this.#e = e, f(Qe`<style>${Ze}</style><span
|
|
663
|
+
class=${de({
|
|
664
|
+
"color-swatch": !0,
|
|
665
|
+
readonly: this.readonly
|
|
666
|
+
})}
|
|
667
|
+
title=${this.tooltip}><span
|
|
668
|
+
class="color-swatch-inner"
|
|
669
|
+
style="background-color: ${e.asString()};"
|
|
670
|
+
jslog=${me("color").track({ click: !0 })}
|
|
671
|
+
@click=${this.onActivate}
|
|
672
|
+
@mousedown=${this.consume}
|
|
673
|
+
@dblclick=${this.consume}></span></span>`, this.shadow, { host: this });
|
|
674
|
+
}
|
|
675
|
+
onActivate(e) {
|
|
676
|
+
if (!this.readonly && !(e instanceof KeyboardEvent && e.key !== "Enter" && e.key !== " " || e instanceof MouseEvent && e.button > 1)) {
|
|
677
|
+
if (e.shiftKey) {
|
|
678
|
+
e.stopPropagation(), this.showFormatPicker(e);
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
this.dispatchEvent(new j()), this.consume(e);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
consume(e) {
|
|
685
|
+
e.stopPropagation();
|
|
686
|
+
}
|
|
687
|
+
setColor(e) {
|
|
688
|
+
this.renderColor(e), this.dispatchEvent(new A(e));
|
|
689
|
+
}
|
|
690
|
+
showFormatPicker(e) {
|
|
691
|
+
this.#e && new Me(this.#e).show(e, (e) => {
|
|
692
|
+
this.dispatchEvent(new k(e));
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
};
|
|
696
|
+
customElements.define("devtools-color-swatch", M);
|
|
697
|
+
//#endregion
|
|
698
|
+
//#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/inline_editor/cssAngleEditor.css.mjs
|
|
699
|
+
var nt = "/*\n * Copyright 2021 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.editor.interacting::before {\n content: '';\n position: fixed;\n inset: 0;\n}\n\n.clock,\n.pointer,\n.center,\n.hand,\n.dial {\n position: absolute;\n}\n\n.clock {\n top: 6px;\n width: 6em;\n height: 6em;\n background-color: var(--sys-color-cdt-base-container);\n border: 0.5em solid var(--sys-color-neutral-outline);\n border-radius: 9em;\n box-shadow: var(--drop-shadow), inset 0 0 15px var(--box-shadow-outline-color);\n transform: translateX(-3em);\n}\n\n.center,\n.hand {\n box-shadow: 0 0 2px var(--box-shadow-outline-color);\n}\n\n.pointer {\n margin: auto;\n top: 0;\n left: -0.4em;\n right: 0;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 0.9em 0.9em;\n border-color: transparent transparent var(--sys-color-neutral-outline)\n transparent;\n}\n\n.center,\n.hand,\n.dial {\n margin: auto;\n inset: 0;\n}\n\n.center {\n width: 0.7em;\n height: 0.7em;\n border-radius: 10px;\n}\n\n.dial {\n width: 2px;\n height: var(--clock-dial-length);\n background-color: var(--override-dial-color);\n border-radius: 1px;\n}\n\n.hand {\n height: 50%;\n width: 0.3em;\n background: var(--sys-color-tonal-container);\n}\n\n.hand::before {\n content: '';\n display: inline-block;\n position: absolute;\n top: -0.6em;\n left: -0.35em;\n width: 1em;\n height: 1em;\n border-radius: 50%;\n cursor: pointer;\n box-shadow: 0 0 5px var(--box-shadow-outline-color);\n}\n\n.hand::before,\n.center {\n background-color: var(--sys-color-tonal-container);\n}\n\n:host-context(.theme-with-dark-background) .hand::before {\n /* stylelint-disable-next-line plugin/use_theme_colors */\n box-shadow: 0 0 5px hsl(0deg 0% 0% / 80%);\n}\n\n:host-context(.theme-with-dark-background) .center,\n:host-context(.theme-with-dark-background) .hand {\n /* stylelint-disable-next-line plugin/use_theme_colors */\n box-shadow: 0 0 2px hsl(0deg 0% 0% / 60%);\n}\n\n:host-context(.theme-with-dark-background) .clock {\n /* stylelint-disable-next-line plugin/use_theme_colors */\n background-color: hsl(225deg 5% 27%);\n}\n", rt = /(?<value>[+-]?\d*\.?\d+)(?<unit>deg|grad|rad|turn)/, N = /* @__PURE__ */ function(e) {
|
|
700
|
+
return e.DEG = "deg", e.GRAD = "grad", e.RAD = "rad", e.TURN = "turn", e;
|
|
701
|
+
}({}), it = (e) => {
|
|
702
|
+
let t = e.match(rt);
|
|
703
|
+
return t?.groups ? {
|
|
704
|
+
value: Number(t.groups.value),
|
|
705
|
+
unit: t.groups.unit
|
|
706
|
+
} : null;
|
|
707
|
+
}, P = (e, t) => {
|
|
708
|
+
let n = e;
|
|
709
|
+
switch (t) {
|
|
710
|
+
case "grad":
|
|
711
|
+
n = re(e);
|
|
712
|
+
break;
|
|
713
|
+
case "deg":
|
|
714
|
+
n = ae(e);
|
|
715
|
+
break;
|
|
716
|
+
case "turn":
|
|
717
|
+
n = ce(e);
|
|
718
|
+
break;
|
|
719
|
+
}
|
|
720
|
+
return {
|
|
721
|
+
value: n,
|
|
722
|
+
unit: t
|
|
723
|
+
};
|
|
724
|
+
}, F = (e) => {
|
|
725
|
+
switch (e.unit) {
|
|
726
|
+
case "deg": return ne(e.value);
|
|
727
|
+
case "grad": return Ee(e.value);
|
|
728
|
+
case "turn": return be(e.value);
|
|
729
|
+
}
|
|
730
|
+
return e.value;
|
|
731
|
+
}, I = (e, t) => {
|
|
732
|
+
let n = F(e);
|
|
733
|
+
return {
|
|
734
|
+
translateX: Math.sin(n) * t,
|
|
735
|
+
translateY: -Math.cos(n) * t
|
|
736
|
+
};
|
|
737
|
+
}, L = (e) => {
|
|
738
|
+
let t = e.value;
|
|
739
|
+
switch (e.unit) {
|
|
740
|
+
case "deg":
|
|
741
|
+
case "grad":
|
|
742
|
+
t = Math.round(e.value);
|
|
743
|
+
break;
|
|
744
|
+
case "rad":
|
|
745
|
+
t = Math.round(e.value * 1e4) / 1e4;
|
|
746
|
+
break;
|
|
747
|
+
case "turn":
|
|
748
|
+
t = Math.round(e.value * 100) / 100;
|
|
749
|
+
break;
|
|
750
|
+
default: r(e.unit, `Unknown angle unit: ${e.unit}`);
|
|
751
|
+
}
|
|
752
|
+
return {
|
|
753
|
+
value: t,
|
|
754
|
+
unit: e.unit
|
|
755
|
+
};
|
|
756
|
+
}, at = (e) => {
|
|
757
|
+
switch (e) {
|
|
758
|
+
case "deg": return "grad";
|
|
759
|
+
case "grad": return "rad";
|
|
760
|
+
case "rad": return "turn";
|
|
761
|
+
default: return "deg";
|
|
762
|
+
}
|
|
763
|
+
}, R = (e, t) => e.unit === t ? e : P(F(e), t), z = (e, t) => {
|
|
764
|
+
let n = le(t);
|
|
765
|
+
if (n === null) return;
|
|
766
|
+
let r = n === "Up" ? Math.PI / 180 : -Math.PI / 180;
|
|
767
|
+
return t.shiftKey && (r *= 10), P(F(e) + r, e.unit);
|
|
768
|
+
}, { render: ot, html: B } = h, V = p, H = 6, st = class extends HTMLElement {
|
|
769
|
+
shadow = this.attachShadow({ mode: "open" });
|
|
770
|
+
angle = {
|
|
771
|
+
value: 0,
|
|
772
|
+
unit: N.RAD
|
|
773
|
+
};
|
|
774
|
+
onAngleUpdate;
|
|
775
|
+
background = "";
|
|
776
|
+
clockRadius = 77 / 2;
|
|
777
|
+
dialTemplates;
|
|
778
|
+
mousemoveThrottler = new l(16.67);
|
|
779
|
+
mousemoveListener = this.onMousemove.bind(this);
|
|
780
|
+
connectedCallback() {
|
|
781
|
+
this.style.setProperty("--clock-dial-length", `${H}px`);
|
|
782
|
+
}
|
|
783
|
+
set data(e) {
|
|
784
|
+
this.angle = e.angle, this.onAngleUpdate = e.onAngleUpdate, this.background = e.background, this.render();
|
|
785
|
+
}
|
|
786
|
+
updateAngleFromMousePosition(e, t, n) {
|
|
787
|
+
let r = this.shadow.querySelector(".clock");
|
|
788
|
+
if (!r || !this.onAngleUpdate) return;
|
|
789
|
+
let { top: i, right: a, bottom: o, left: s } = r.getBoundingClientRect();
|
|
790
|
+
this.clockRadius = (a - s) / 2;
|
|
791
|
+
let c = (s + a) / 2, l = (o + i) / 2, u = -Math.atan2(e - c, t - l) + Math.PI;
|
|
792
|
+
if (n) {
|
|
793
|
+
let e = F({
|
|
794
|
+
value: 15,
|
|
795
|
+
unit: N.DEG
|
|
796
|
+
}), t = Math.round(u / e) * e;
|
|
797
|
+
this.onAngleUpdate(P(t, this.angle.unit));
|
|
798
|
+
} else this.onAngleUpdate(P(u, this.angle.unit));
|
|
799
|
+
}
|
|
800
|
+
onEditorMousedown(e) {
|
|
801
|
+
e.stopPropagation(), this.updateAngleFromMousePosition(e.pageX, e.pageY, e.shiftKey);
|
|
802
|
+
let t = e.target instanceof Node && e.target.ownerDocument, n = this.shadow.querySelector(".editor");
|
|
803
|
+
t && n && (t.addEventListener("mousemove", this.mousemoveListener, { capture: !0 }), n.classList.add("interacting"), t.addEventListener("mouseup", () => {
|
|
804
|
+
t.removeEventListener("mousemove", this.mousemoveListener, { capture: !0 }), n.classList.remove("interacting");
|
|
805
|
+
}, { once: !0 }));
|
|
806
|
+
}
|
|
807
|
+
onMousemove(e) {
|
|
808
|
+
e.buttons === 1 && (e.preventDefault(), this.mousemoveThrottler.schedule(() => (this.updateAngleFromMousePosition(e.pageX, e.pageY, e.shiftKey), Promise.resolve())));
|
|
809
|
+
}
|
|
810
|
+
onEditorWheel(e) {
|
|
811
|
+
if (!this.onAngleUpdate) return;
|
|
812
|
+
let t = z(this.angle, e);
|
|
813
|
+
t && this.onAngleUpdate(t), e.preventDefault();
|
|
814
|
+
}
|
|
815
|
+
render() {
|
|
816
|
+
let e = { background: this.background }, { translateX: t, translateY: n } = I(this.angle, this.clockRadius / 2), r = { transform: `translate(${t}px, ${n}px) rotate(${this.angle.value}${this.angle.unit})` };
|
|
817
|
+
ot(B`
|
|
818
|
+
<style>${nt}</style>
|
|
819
|
+
<div class="editor" jslog=${v("cssAngleEditor").track({
|
|
820
|
+
click: !0,
|
|
821
|
+
drag: !0,
|
|
822
|
+
resize: !0,
|
|
823
|
+
keydown: "Enter|Escape"
|
|
824
|
+
})}>
|
|
825
|
+
<span class="pointer"></span>
|
|
826
|
+
<div
|
|
827
|
+
class="clock"
|
|
828
|
+
style=${V(e)}
|
|
829
|
+
@mousedown=${this.onEditorMousedown}
|
|
830
|
+
@wheel=${this.onEditorWheel}>
|
|
831
|
+
${this.renderDials()}
|
|
832
|
+
<div class="hand" style=${V(r)}></div>
|
|
833
|
+
<span class="center"></span>
|
|
834
|
+
</div>
|
|
835
|
+
</div>
|
|
836
|
+
`, this.shadow, { host: this });
|
|
837
|
+
}
|
|
838
|
+
renderDials() {
|
|
839
|
+
return this.dialTemplates ||= [
|
|
840
|
+
0,
|
|
841
|
+
45,
|
|
842
|
+
90,
|
|
843
|
+
135,
|
|
844
|
+
180,
|
|
845
|
+
225,
|
|
846
|
+
270,
|
|
847
|
+
315
|
|
848
|
+
].map((e) => {
|
|
849
|
+
let t = this.clockRadius - H - 3, { translateX: n, translateY: r } = I({
|
|
850
|
+
value: e,
|
|
851
|
+
unit: N.DEG
|
|
852
|
+
}, t);
|
|
853
|
+
return B`<span class="dial" style=${V({ transform: `translate(${n}px, ${r}px) rotate(${e}deg)` })}></span>`;
|
|
854
|
+
}), this.dialTemplates;
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
customElements.define("devtools-css-angle-editor", st);
|
|
858
|
+
//#endregion
|
|
859
|
+
//#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/inline_editor/cssAngleSwatch.css.mjs
|
|
860
|
+
var ct = "/*\n * Copyright 2021 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.swatch {\n position: relative;\n display: inline-block;\n margin-bottom: -2px;\n width: 1em;\n height: 1em;\n border: 1px solid var(--sys-color-neutral-outline);\n border-radius: 50%;\n overflow: hidden;\n cursor: pointer;\n background-color: var(--sys-color-neutral-container);\n}\n\n.mini-hand {\n position: absolute;\n margin: auto;\n inset: 0;\n height: 55%;\n width: 2px;\n background-color: var(--sys-color-tonal-container);\n border-radius: 5px;\n}\n", { render: lt, html: ut } = h, dt = p, ft = 11, pt = class extends HTMLElement {
|
|
861
|
+
shadow = this.attachShadow({ mode: "open" });
|
|
862
|
+
angle = {
|
|
863
|
+
value: 0,
|
|
864
|
+
unit: N.RAD
|
|
865
|
+
};
|
|
866
|
+
set data(e) {
|
|
867
|
+
this.angle = e.angle, this.render();
|
|
868
|
+
}
|
|
869
|
+
render() {
|
|
870
|
+
let { translateX: e, translateY: t } = I(this.angle, ft / 4);
|
|
871
|
+
lt(ut`
|
|
872
|
+
<style>${ct}</style>
|
|
873
|
+
<div class="swatch">
|
|
874
|
+
<span class="mini-hand" style=${dt({ transform: `translate(${e}px, ${t}px) rotate(${this.angle.value}${this.angle.unit})` })}></span>
|
|
875
|
+
</div>
|
|
876
|
+
`, this.shadow, { host: this });
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
customElements.define("devtools-css-angle-swatch", pt);
|
|
880
|
+
//#endregion
|
|
881
|
+
//#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/inline_editor/cssAngle.css.mjs
|
|
882
|
+
var mt = "/*\n * Copyright 2021 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.css-angle {\n display: inline-block;\n position: relative;\n outline: none;\n\n .preview {\n display: inline-block;\n }\n}\n\ndevtools-css-angle-swatch {\n display: inline-block;\n user-select: none;\n}\n\ndevtools-css-angle-editor {\n --override-dial-color: var(--sys-color-neutral-outline);\n\n position: fixed;\n z-index: 2;\n}\n", U = class e extends Event {
|
|
883
|
+
static eventName = "valuechanged";
|
|
884
|
+
data;
|
|
885
|
+
constructor(t) {
|
|
886
|
+
super(e.eventName, {}), this.data = { value: t };
|
|
887
|
+
}
|
|
888
|
+
}, { render: ht, html: W } = h, gt = p, G = class e extends Event {
|
|
889
|
+
static eventName = "popovertoggled";
|
|
890
|
+
data;
|
|
891
|
+
constructor(t) {
|
|
892
|
+
super(e.eventName, {}), this.data = { open: t };
|
|
893
|
+
}
|
|
894
|
+
}, _t = class e extends Event {
|
|
895
|
+
static eventName = "unitchanged";
|
|
896
|
+
data;
|
|
897
|
+
constructor(t) {
|
|
898
|
+
super(e.eventName, {}), this.data = { value: t };
|
|
899
|
+
}
|
|
900
|
+
}, vt = {
|
|
901
|
+
value: 0,
|
|
902
|
+
unit: N.RAD
|
|
903
|
+
}, yt = class extends HTMLElement {
|
|
904
|
+
angle = vt;
|
|
905
|
+
displayedAngle = vt;
|
|
906
|
+
propertyValue = "";
|
|
907
|
+
containingPane;
|
|
908
|
+
angleElement = null;
|
|
909
|
+
swatchElement = null;
|
|
910
|
+
popoverOpen = !1;
|
|
911
|
+
popoverStyleTop = "";
|
|
912
|
+
popoverStyleLeft = "";
|
|
913
|
+
onMinifyingAction = this.minify.bind(this);
|
|
914
|
+
set data(e) {
|
|
915
|
+
let t = it(e.angleText);
|
|
916
|
+
t && (this.angle = t, this.displayedAngle = { ...t }, this.containingPane = e.containingPane, this.render());
|
|
917
|
+
}
|
|
918
|
+
disconnectedCallback() {
|
|
919
|
+
this.unbindMinifyingAction();
|
|
920
|
+
}
|
|
921
|
+
popOver() {
|
|
922
|
+
if (!this.containingPane || (this.angleElement ||= this.querySelector(".css-angle"), this.swatchElement ||= this.querySelector("devtools-css-angle-swatch"), !this.angleElement || !this.swatchElement)) return;
|
|
923
|
+
this.dispatchEvent(new G(!0)), this.bindMinifyingAction();
|
|
924
|
+
let e = this.swatchElement.getBoundingClientRect().bottom, t = this.swatchElement.getBoundingClientRect().left;
|
|
925
|
+
if (e && t) {
|
|
926
|
+
let n = this.containingPane.getBoundingClientRect().top, r = this.containingPane.getBoundingClientRect().left;
|
|
927
|
+
this.popoverStyleTop = `${e - n}px`, this.popoverStyleLeft = `${t - r}px`;
|
|
928
|
+
}
|
|
929
|
+
this.popoverOpen = !0, this.render(), this.angleElement.focus();
|
|
930
|
+
}
|
|
931
|
+
addEventListener(e, t, n) {
|
|
932
|
+
super.addEventListener(e, t, n);
|
|
933
|
+
}
|
|
934
|
+
minify() {
|
|
935
|
+
this.popoverOpen !== !1 && (this.popoverOpen = !1, this.dispatchEvent(new G(!1)), this.unbindMinifyingAction(), this.render());
|
|
936
|
+
}
|
|
937
|
+
updateProperty(e) {
|
|
938
|
+
this.propertyValue = e, this.render();
|
|
939
|
+
}
|
|
940
|
+
updateAngle(e) {
|
|
941
|
+
this.displayedAngle = L(R(e, this.displayedAngle.unit)), this.angle = this.displayedAngle, this.dispatchEvent(new U(`${this.angle.value}${this.angle.unit}`)), this.render();
|
|
942
|
+
}
|
|
943
|
+
displayNextUnit() {
|
|
944
|
+
let e = at(this.displayedAngle.unit);
|
|
945
|
+
this.displayedAngle = L(R(this.angle, e)), this.dispatchEvent(new _t(`${this.displayedAngle.value}${this.displayedAngle.unit}`));
|
|
946
|
+
}
|
|
947
|
+
bindMinifyingAction() {
|
|
948
|
+
document.addEventListener("mousedown", this.onMinifyingAction), this.containingPane && this.containingPane.addEventListener("scroll", this.onMinifyingAction);
|
|
949
|
+
}
|
|
950
|
+
unbindMinifyingAction() {
|
|
951
|
+
document.removeEventListener("mousedown", this.onMinifyingAction), this.containingPane && this.containingPane.removeEventListener("scroll", this.onMinifyingAction);
|
|
952
|
+
}
|
|
953
|
+
onMiniIconClick(e) {
|
|
954
|
+
if (e.stopPropagation(), e.shiftKey && !this.popoverOpen) {
|
|
955
|
+
this.displayNextUnit();
|
|
956
|
+
return;
|
|
957
|
+
}
|
|
958
|
+
this.popoverOpen ? this.minify() : this.popOver();
|
|
959
|
+
}
|
|
960
|
+
consume(e) {
|
|
961
|
+
e.stopPropagation();
|
|
962
|
+
}
|
|
963
|
+
onKeydown(e) {
|
|
964
|
+
if (!this.popoverOpen) {
|
|
965
|
+
n(e) && (this.onMiniIconClick(e), e.preventDefault());
|
|
966
|
+
return;
|
|
967
|
+
}
|
|
968
|
+
switch (e.key) {
|
|
969
|
+
case "Escape":
|
|
970
|
+
e.stopPropagation(), this.minify(), this.blur();
|
|
971
|
+
break;
|
|
972
|
+
case "ArrowUp":
|
|
973
|
+
case "ArrowDown": {
|
|
974
|
+
let t = z(this.angle, e);
|
|
975
|
+
t && this.updateAngle(t), e.preventDefault();
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
render() {
|
|
981
|
+
ht(W`
|
|
982
|
+
<style>${mt}</style>
|
|
983
|
+
<div class="css-angle" @focusout=${this.minify} @keydown=${this.onKeydown} tabindex="-1">
|
|
984
|
+
<div class="preview">
|
|
985
|
+
<devtools-css-angle-swatch
|
|
986
|
+
@click=${this.onMiniIconClick}
|
|
987
|
+
@mousedown=${this.consume}
|
|
988
|
+
@dblclick=${this.consume}
|
|
989
|
+
.data=${{ angle: this.angle }}>
|
|
990
|
+
</devtools-css-angle-swatch>
|
|
991
|
+
<slot></slot>
|
|
992
|
+
</div>
|
|
993
|
+
${this.popoverOpen ? this.renderPopover() : null}
|
|
994
|
+
</div>
|
|
995
|
+
`, this, { host: this });
|
|
996
|
+
}
|
|
997
|
+
renderPopover() {
|
|
998
|
+
let e = "";
|
|
999
|
+
return this.propertyValue && !this.propertyValue.match(/url\(.*\)/i) && (e = this.propertyValue), W`
|
|
1000
|
+
<devtools-css-angle-editor
|
|
1001
|
+
class="popover popover-css-angle"
|
|
1002
|
+
style=${gt({
|
|
1003
|
+
top: this.popoverStyleTop,
|
|
1004
|
+
left: this.popoverStyleLeft
|
|
1005
|
+
})}
|
|
1006
|
+
.data=${{
|
|
1007
|
+
angle: this.angle,
|
|
1008
|
+
onAngleUpdate: (e) => {
|
|
1009
|
+
this.updateAngle(e);
|
|
1010
|
+
},
|
|
1011
|
+
background: e
|
|
1012
|
+
}}>
|
|
1013
|
+
</devtools-css-angle-editor>`;
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
customElements.define("devtools-css-angle", yt);
|
|
1017
|
+
//#endregion
|
|
1018
|
+
//#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/inline_editor/cssShadowEditor.css.mjs
|
|
1019
|
+
var bt = "/*\n * Copyright 2016 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:host {\n user-select: none;\n border: 1px solid transparent;\n}\n\n.shadow-editor-field {\n height: 24px;\n margin-top: 8px;\n font-size: 12px;\n flex-shrink: 0;\n}\n\n.shadow-editor-field:last-of-type {\n margin-bottom: 8px;\n}\n\n.shadow-editor-flex-field {\n display: flex;\n align-items: center;\n flex-direction: row;\n}\n\n.shadow-editor-field.shadow-editor-blur-field {\n margin-top: 40px;\n}\n\n.shadow-editor-2D-slider {\n position: absolute;\n height: 88px;\n width: 88px;\n border: 1px solid var(--divider-line);\n border-radius: 2px;\n}\n\n.shadow-editor-label {\n display: inline-block;\n width: 52px;\n height: 24px;\n line-height: 24px;\n margin-right: 8px;\n text-align: right;\n}\n\n.shadow-editor-button-left,\n.shadow-editor-button-right {\n width: 74px;\n height: 24px;\n padding: 3px 7px;\n line-height: 16px;\n border: 1px solid var(--divider-line);\n color: var(--sys-color-on-surface);\n background-color: var(--sys-color-cdt-base-container);\n text-align: center;\n font-weight: 500;\n}\n\n.shadow-editor-button-left {\n border-radius: 2px 0 0 2px;\n}\n\n.shadow-editor-button-right {\n border-radius: 0 2px 2px 0;\n border-left-width: 0;\n}\n\n.shadow-editor-button-left:hover,\n.shadow-editor-button-right:hover {\n box-shadow: 0 1px 1px var(--color-background-elevation-1);\n}\n\n.shadow-editor-button-left:focus,\n.shadow-editor-button-right:focus {\n background-color: var(--color-background-elevation-1);\n}\n\n.shadow-editor-button-left.enabled,\n.shadow-editor-button-right.enabled {\n --override-button-text-color: #fff;\n\n background-color: var(--color-primary-old);\n color: var(--override-button-text-color);\n}\n\n.shadow-editor-button-left.enabled:focus,\n.shadow-editor-button-right.enabled:focus {\n background-color: var(--color-primary-variant);\n}\n\n.shadow-editor-text-input {\n width: 52px;\n margin-right: 8px;\n text-align: right;\n box-shadow: var(--legacy-focus-ring-inactive-shadow);\n}\n\n@media (forced-colors: active) {\n .shadow-editor-button-left:hover,\n .shadow-editor-button-left.enabled:focus,\n .shadow-editor-button-right:hover .shadow-editor-button-left.enabled,\n .shadow-editor-button-right.enabled,\n .shadow-editor-button-right.enabled:focus {\n forced-color-adjust: none;\n background-color: Highlight;\n color: HighlightText;\n }\n}\n", K = {
|
|
1020
|
+
type: "Type",
|
|
1021
|
+
xOffset: "X offset",
|
|
1022
|
+
yOffset: "Y offset",
|
|
1023
|
+
blur: "Blur",
|
|
1024
|
+
spread: "Spread"
|
|
1025
|
+
}, xt = d("ui/legacy/components/inline_editor/CSSShadowEditor.ts", K), q = s.bind(void 0, xt), J = 20, Y = "px", X = 6, Z = 88, St = (function() {
|
|
1026
|
+
return (/* @__PURE__ */ RegExp("([+-]?(?:[0-9]*[.])?[0-9]+(?:[eE][+-]?[0-9]+)?)(ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmax|vmin|vw)|[+-]?(?:0*[.])?0+(?:[eE][+-]?[0-9]+)?", "gi")).source;
|
|
1027
|
+
})(), Q = class e {
|
|
1028
|
+
amount;
|
|
1029
|
+
unit;
|
|
1030
|
+
constructor(e, t) {
|
|
1031
|
+
this.amount = e, this.unit = t;
|
|
1032
|
+
}
|
|
1033
|
+
static parse(t) {
|
|
1034
|
+
let n = RegExp("^(?:" + St + ")$", "i"), r = t.match(n);
|
|
1035
|
+
return r ? r.length > 2 && r[2] ? new e(parseFloat(r[1]), r[2]) : e.zero() : null;
|
|
1036
|
+
}
|
|
1037
|
+
static zero() {
|
|
1038
|
+
return new e(0, "");
|
|
1039
|
+
}
|
|
1040
|
+
asCSSText() {
|
|
1041
|
+
return this.amount + this.unit;
|
|
1042
|
+
}
|
|
1043
|
+
}, Ct = class extends c(he) {
|
|
1044
|
+
typeField;
|
|
1045
|
+
outsetButton;
|
|
1046
|
+
insetButton;
|
|
1047
|
+
xInput;
|
|
1048
|
+
yInput;
|
|
1049
|
+
xySlider;
|
|
1050
|
+
halfCanvasSize;
|
|
1051
|
+
innerCanvasSize;
|
|
1052
|
+
blurInput;
|
|
1053
|
+
blurSlider;
|
|
1054
|
+
spreadField;
|
|
1055
|
+
spreadInput;
|
|
1056
|
+
spreadSlider;
|
|
1057
|
+
model;
|
|
1058
|
+
canvasOrigin;
|
|
1059
|
+
changedElement;
|
|
1060
|
+
constructor() {
|
|
1061
|
+
super({ useShadowDom: !0 }), this.registerRequiredCSS(bt), this.contentElement.tabIndex = 0, this.contentElement.setAttribute("jslog", `${v("cssShadowEditor").parent("mapped").track({ keydown: "Enter|Escape" })}`), this.setDefaultFocusedElement(this.contentElement), this.typeField = this.contentElement.createChild("div", "shadow-editor-field shadow-editor-flex-field"), this.typeField.createChild("label", "shadow-editor-label").textContent = q(K.type), this.outsetButton = this.typeField.createChild("button", "shadow-editor-button-left"), this.outsetButton.textContent = o("Outset"), this.outsetButton.addEventListener("click", this.onButtonClick.bind(this), !1), this.insetButton = this.typeField.createChild("button", "shadow-editor-button-right"), this.insetButton.textContent = o("Inset"), this.insetButton.addEventListener("click", this.onButtonClick.bind(this), !1);
|
|
1062
|
+
let e = this.contentElement.createChild("div", "shadow-editor-field");
|
|
1063
|
+
this.xInput = this.createTextInput(e, q(K.xOffset), "x-offset");
|
|
1064
|
+
let t = this.contentElement.createChild("div", "shadow-editor-field");
|
|
1065
|
+
this.yInput = this.createTextInput(t, q(K.yOffset), "y-offset"), this.xySlider = e.createChild("canvas", "shadow-editor-2D-slider"), this.xySlider.setAttribute("jslog", `${Se("xy").track({
|
|
1066
|
+
click: !0,
|
|
1067
|
+
drag: !0,
|
|
1068
|
+
keydown: "ArrowUp|ArrowDown|ArrowLeft|ArrowRight"
|
|
1069
|
+
})}`), this.xySlider.width = Z, this.xySlider.height = Z, this.xySlider.tabIndex = -1, this.halfCanvasSize = Z / 2, this.innerCanvasSize = this.halfCanvasSize - X, m(this.xySlider, this.dragStart.bind(this), this.dragMove.bind(this), null, "default"), this.xySlider.addEventListener("keydown", this.onCanvasArrowKey.bind(this), !1), this.xySlider.addEventListener("blur", this.onCanvasBlur.bind(this), !1);
|
|
1070
|
+
let n = this.contentElement.createChild("div", "shadow-editor-field shadow-editor-flex-field shadow-editor-blur-field");
|
|
1071
|
+
this.blurInput = this.createTextInput(n, q(K.blur), "blur"), this.blurSlider = this.createSlider(n, "blur"), this.spreadField = this.contentElement.createChild("div", "shadow-editor-field shadow-editor-flex-field"), this.spreadInput = this.createTextInput(this.spreadField, q(K.spread), "spread"), this.spreadSlider = this.createSlider(this.spreadField, "spread");
|
|
1072
|
+
}
|
|
1073
|
+
createTextInput(e, t, n) {
|
|
1074
|
+
let r = e.createChild("label", "shadow-editor-label");
|
|
1075
|
+
r.textContent = t, r.setAttribute("for", t);
|
|
1076
|
+
let i = ge("shadow-editor-text-input", "text");
|
|
1077
|
+
return e.appendChild(i), i.id = t, i.addEventListener("keydown", this.handleValueModification.bind(this), !1), i.addEventListener("wheel", this.handleValueModification.bind(this), !1), i.addEventListener("input", this.onTextInput.bind(this), !1), i.addEventListener("blur", this.onTextBlur.bind(this), !1), i.setAttribute("jslog", `${pe().track({
|
|
1078
|
+
change: !0,
|
|
1079
|
+
keydown: "ArrowUp|ArrowDown"
|
|
1080
|
+
}).context(n)}`), i;
|
|
1081
|
+
}
|
|
1082
|
+
createSlider(e, t) {
|
|
1083
|
+
let n = Oe(0, J, -1);
|
|
1084
|
+
return n.addEventListener("input", this.onSliderInput.bind(this), !1), n.setAttribute("jslog", `${Se().track({
|
|
1085
|
+
click: !0,
|
|
1086
|
+
drag: !0
|
|
1087
|
+
}).context(t)}`), e.appendChild(n), n;
|
|
1088
|
+
}
|
|
1089
|
+
wasShown() {
|
|
1090
|
+
super.wasShown(), this.updateUI();
|
|
1091
|
+
}
|
|
1092
|
+
setModel(e) {
|
|
1093
|
+
this.model = e, this.typeField.classList.toggle("hidden", !e.isBoxShadow()), this.spreadField.classList.toggle("hidden", !e.isBoxShadow()), this.updateUI();
|
|
1094
|
+
}
|
|
1095
|
+
updateUI() {
|
|
1096
|
+
this.updateButtons(), this.xInput.value = this.model.offsetX().asCSSText(), this.yInput.value = this.model.offsetY().asCSSText(), this.blurInput.value = this.model.blurRadius().asCSSText(), this.spreadInput.value = this.model.spreadRadius().asCSSText(), this.blurSlider.value = this.model.blurRadius().amount.toString(), this.spreadSlider.value = this.model.spreadRadius().amount.toString(), this.updateCanvas(!1);
|
|
1097
|
+
}
|
|
1098
|
+
updateButtons() {
|
|
1099
|
+
this.insetButton.classList.toggle("enabled", this.model.inset()), this.outsetButton.classList.toggle("enabled", !this.model.inset());
|
|
1100
|
+
}
|
|
1101
|
+
updateCanvas(e) {
|
|
1102
|
+
let t = this.xySlider.getContext("2d");
|
|
1103
|
+
if (!t) throw Error("Unable to obtain canvas context");
|
|
1104
|
+
t.clearRect(0, 0, this.xySlider.width, this.xySlider.height), t.save(), t.setLineDash([1, 1]), t.strokeStyle = "rgba(210, 210, 210, 0.8)", t.beginPath(), t.moveTo(this.halfCanvasSize, 0), t.lineTo(this.halfCanvasSize, Z), t.moveTo(0, this.halfCanvasSize), t.lineTo(Z, this.halfCanvasSize), t.stroke(), t.restore();
|
|
1105
|
+
let n = this.sliderThumbPosition();
|
|
1106
|
+
t.save(), t.translate(this.halfCanvasSize, this.halfCanvasSize), t.lineWidth = 2, t.strokeStyle = "rgba(130, 130, 130, 0.75)", t.beginPath(), t.moveTo(0, 0), t.lineTo(n.x, n.y), t.stroke(), e && (t.beginPath(), t.fillStyle = "rgba(66, 133, 244, 0.4)", t.arc(n.x, n.y, 8, 0, 2 * Math.PI), t.fill()), t.beginPath(), t.fillStyle = "#4285F4", t.arc(n.x, n.y, X, 0, 2 * Math.PI), t.fill(), t.restore();
|
|
1107
|
+
}
|
|
1108
|
+
onButtonClick(e) {
|
|
1109
|
+
let t = e.currentTarget === this.insetButton;
|
|
1110
|
+
t && this.model.inset() || !t && !this.model.inset() || (this.model.setInset(t), this.updateButtons(), this.dispatchEventToListeners("ShadowChanged", this.model));
|
|
1111
|
+
}
|
|
1112
|
+
handleValueModification(e) {
|
|
1113
|
+
let t = e.currentTarget, n = ve(t.value, e, i);
|
|
1114
|
+
if (!n) return;
|
|
1115
|
+
let r = Q.parse(n);
|
|
1116
|
+
if (!r) return;
|
|
1117
|
+
e.currentTarget === this.blurInput && r.amount < 0 && (r.amount = 0), t.value = r.asCSSText(), t.selectionStart = 0, t.selectionEnd = t.value.length, this.onTextInput(e), e.consume(!0);
|
|
1118
|
+
function i(e, t, n) {
|
|
1119
|
+
return n.length || (n = Y), e + t + n;
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
onTextInput(e) {
|
|
1123
|
+
let t = e.currentTarget;
|
|
1124
|
+
this.changedElement = t, this.changedElement.classList.remove("invalid");
|
|
1125
|
+
let n = Q.parse(t.value);
|
|
1126
|
+
!n || t === this.blurInput && n.amount < 0 || (t === this.xInput ? (this.model.setOffsetX(n), this.updateCanvas(!1)) : t === this.yInput ? (this.model.setOffsetY(n), this.updateCanvas(!1)) : t === this.blurInput ? (this.model.setBlurRadius(n), this.blurSlider.value = n.amount.toString()) : t === this.spreadInput && (this.model.setSpreadRadius(n), this.spreadSlider.value = n.amount.toString()), this.dispatchEventToListeners("ShadowChanged", this.model));
|
|
1127
|
+
}
|
|
1128
|
+
onTextBlur() {
|
|
1129
|
+
if (!this.changedElement) return;
|
|
1130
|
+
let e = this.changedElement.value.trim() ? Q.parse(this.changedElement.value) : Q.zero();
|
|
1131
|
+
if (e ||= Q.parse(this.changedElement.value + Y), !e) {
|
|
1132
|
+
this.changedElement.classList.add("invalid"), this.changedElement = null;
|
|
1133
|
+
return;
|
|
1134
|
+
}
|
|
1135
|
+
this.changedElement === this.xInput ? (this.model.setOffsetX(e), this.xInput.value = e.asCSSText(), this.updateCanvas(!1)) : this.changedElement === this.yInput ? (this.model.setOffsetY(e), this.yInput.value = e.asCSSText(), this.updateCanvas(!1)) : this.changedElement === this.blurInput ? (e.amount < 0 && (e = Q.zero()), this.model.setBlurRadius(e), this.blurInput.value = e.asCSSText(), this.blurSlider.value = e.amount.toString()) : this.changedElement === this.spreadInput && (this.model.setSpreadRadius(e), this.spreadInput.value = e.asCSSText(), this.spreadSlider.value = e.amount.toString()), this.changedElement = null, this.dispatchEventToListeners("ShadowChanged", this.model);
|
|
1136
|
+
}
|
|
1137
|
+
onSliderInput(e) {
|
|
1138
|
+
e.currentTarget === this.blurSlider ? (this.model.setBlurRadius(new Q(Number(this.blurSlider.value), this.model.blurRadius().unit || Y)), this.blurInput.value = this.model.blurRadius().asCSSText(), this.blurInput.classList.remove("invalid")) : e.currentTarget === this.spreadSlider && (this.model.setSpreadRadius(new Q(Number(this.spreadSlider.value), this.model.spreadRadius().unit || Y)), this.spreadInput.value = this.model.spreadRadius().asCSSText(), this.spreadInput.classList.remove("invalid")), this.dispatchEventToListeners("ShadowChanged", this.model);
|
|
1139
|
+
}
|
|
1140
|
+
dragStart(e) {
|
|
1141
|
+
this.xySlider.focus(), this.updateCanvas(!0), this.canvasOrigin = new g(this.xySlider.getBoundingClientRect().left + this.halfCanvasSize, this.xySlider.getBoundingClientRect().top + this.halfCanvasSize);
|
|
1142
|
+
let t = new g(e.x - this.canvasOrigin.x, e.y - this.canvasOrigin.y), n = this.sliderThumbPosition();
|
|
1143
|
+
return t.distanceTo(n) >= X && this.dragMove(e), !0;
|
|
1144
|
+
}
|
|
1145
|
+
dragMove(e) {
|
|
1146
|
+
let t = new g(e.x - this.canvasOrigin.x, e.y - this.canvasOrigin.y);
|
|
1147
|
+
e.shiftKey && (t = this.snapToClosestDirection(t));
|
|
1148
|
+
let n = this.constrainPoint(t, this.innerCanvasSize), r = Math.round(n.x / this.innerCanvasSize * J), i = Math.round(n.y / this.innerCanvasSize * J);
|
|
1149
|
+
e.shiftKey ? (this.model.setOffsetX(new Q(r, this.model.offsetX().unit || Y)), this.model.setOffsetY(new Q(i, this.model.offsetY().unit || Y))) : (e.altKey || this.model.setOffsetX(new Q(r, this.model.offsetX().unit || Y)), fe.eventHasCtrlEquivalentKey(e) || this.model.setOffsetY(new Q(i, this.model.offsetY().unit || Y))), this.xInput.value = this.model.offsetX().asCSSText(), this.yInput.value = this.model.offsetY().asCSSText(), this.xInput.classList.remove("invalid"), this.yInput.classList.remove("invalid"), this.updateCanvas(!0), this.dispatchEventToListeners("ShadowChanged", this.model);
|
|
1150
|
+
}
|
|
1151
|
+
onCanvasBlur() {
|
|
1152
|
+
this.updateCanvas(!1);
|
|
1153
|
+
}
|
|
1154
|
+
onCanvasArrowKey(e) {
|
|
1155
|
+
let n = e, r = 0, i = 0;
|
|
1156
|
+
if (n.key === "ArrowRight" ? r = 1 : n.key === "ArrowLeft" ? r = -1 : n.key === "ArrowUp" ? i = -1 : n.key === "ArrowDown" && (i = 1), !(!r && !i)) {
|
|
1157
|
+
if (e.consume(!0), r) {
|
|
1158
|
+
let e = this.model.offsetX(), n = t(e.amount + r, -20, J);
|
|
1159
|
+
if (n === e.amount) return;
|
|
1160
|
+
this.model.setOffsetX(new Q(n, e.unit || Y)), this.xInput.value = this.model.offsetX().asCSSText(), this.xInput.classList.remove("invalid");
|
|
1161
|
+
}
|
|
1162
|
+
if (i) {
|
|
1163
|
+
let e = this.model.offsetY(), n = t(e.amount + i, -20, J);
|
|
1164
|
+
if (n === e.amount) return;
|
|
1165
|
+
this.model.setOffsetY(new Q(n, e.unit || Y)), this.yInput.value = this.model.offsetY().asCSSText(), this.yInput.classList.remove("invalid");
|
|
1166
|
+
}
|
|
1167
|
+
this.updateCanvas(!0), this.dispatchEventToListeners("ShadowChanged", this.model);
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
constrainPoint(e, t) {
|
|
1171
|
+
return Math.abs(e.x) <= t && Math.abs(e.y) <= t ? new g(e.x, e.y) : e.scale(t / Math.max(Math.abs(e.x), Math.abs(e.y)));
|
|
1172
|
+
}
|
|
1173
|
+
snapToClosestDirection(e) {
|
|
1174
|
+
let t = Number.MAX_VALUE, n = e, r = [
|
|
1175
|
+
new g(0, -1),
|
|
1176
|
+
new g(1, -1),
|
|
1177
|
+
new g(1, 0),
|
|
1178
|
+
new g(1, 1)
|
|
1179
|
+
];
|
|
1180
|
+
for (let i of r) {
|
|
1181
|
+
let r = e.projectOn(i), a = e.distanceTo(r);
|
|
1182
|
+
a < t && (t = a, n = r);
|
|
1183
|
+
}
|
|
1184
|
+
return n;
|
|
1185
|
+
}
|
|
1186
|
+
sliderThumbPosition() {
|
|
1187
|
+
let e = this.model.offsetX().amount / J * this.innerCanvasSize, t = this.model.offsetY().amount / J * this.innerCanvasSize;
|
|
1188
|
+
return this.constrainPoint(new g(e, t), this.innerCanvasSize);
|
|
1189
|
+
}
|
|
1190
|
+
}, wt = /* @__PURE__ */ function(e) {
|
|
1191
|
+
return e.SHADOW_CHANGED = "ShadowChanged", e;
|
|
1192
|
+
}({}), Tt = "/*\n * Copyright 2021 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.link-swatch-link {\n display: inline;\n}\n\n.link-swatch-link:not(.undefined) {\n cursor: pointer;\n text-underline-offset: 2px;\n color: var(--text-link);\n}\n\n.link-swatch-link:hover:not(.undefined) {\n text-decoration: underline;\n}\n\n.link-swatch-link:focus:not(:focus-visible) {\n outline: none;\n}\n\n.link-swatch-link.undefined {\n opacity: 100%;\n color: var(--text-disabled);\n}\n", { render: Et, html: Dt, nothing: Ot, Directives: { ref: kt, ifDefined: $, classMap: At } } = h, jt = class extends HTMLElement {
|
|
1193
|
+
onLinkActivate = () => void 0;
|
|
1194
|
+
#e;
|
|
1195
|
+
connectedCallback() {}
|
|
1196
|
+
set data(e) {
|
|
1197
|
+
this.onLinkActivate = (t, n) => {
|
|
1198
|
+
n instanceof MouseEvent && n.button !== 0 || n instanceof KeyboardEvent && n.key !== "Enter" && n.key !== " " || (e.onLinkActivate(t), n.consume(!0));
|
|
1199
|
+
}, this.render(e);
|
|
1200
|
+
}
|
|
1201
|
+
get linkElement() {
|
|
1202
|
+
return this.#e;
|
|
1203
|
+
}
|
|
1204
|
+
render(e) {
|
|
1205
|
+
let { isDefined: t, text: n, jslogContext: r, tooltip: i } = e, a = At({
|
|
1206
|
+
"link-style": !0,
|
|
1207
|
+
"text-button": !0,
|
|
1208
|
+
"link-swatch-link": !0,
|
|
1209
|
+
undefined: !t
|
|
1210
|
+
}), o = t ? this.onLinkActivate.bind(this, n.trim()) : null, s = i && "title" in i && i.title || void 0, c = i && "tooltipId" in i && i.tooltipId || void 0;
|
|
1211
|
+
Et(Dt`
|
|
1212
|
+
<style>${se}</style>
|
|
1213
|
+
<style>${Tt}</style>
|
|
1214
|
+
<button .disabled=${!t} class=${a} type="button" title=${$(s)}
|
|
1215
|
+
aria-details=${$(c)} @click=${o} @keydown=${o}
|
|
1216
|
+
role="link"
|
|
1217
|
+
jslog=${r ? ke().track({ click: !0 }).context(r) : Ot}
|
|
1218
|
+
tabindex=${$(t ? -1 : void 0)}
|
|
1219
|
+
${kt((e) => {
|
|
1220
|
+
this.#e = e;
|
|
1221
|
+
})}>
|
|
1222
|
+
${n}
|
|
1223
|
+
</button>`, this);
|
|
1224
|
+
}
|
|
1225
|
+
};
|
|
1226
|
+
customElements.define("devtools-link-swatch", jt);
|
|
1227
|
+
//#endregion
|
|
1228
|
+
//#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/inline_editor/cssShadowSwatch.css.mjs
|
|
1229
|
+
var Mt = "/*\n * Copyright 2016 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\ndevtools-icon.shadow-swatch-icon {\n color: var(--icon-css);\n transform: scale(0.7);\n position: relative;\n margin: -5px -2px -5px -4px;\n user-select: none;\n vertical-align: baseline;\n cursor: pointer;\n\n &:hover {\n color: var(--icon-css-hover);\n }\n}\n", Nt = class extends HTMLElement {
|
|
1230
|
+
#e;
|
|
1231
|
+
#t;
|
|
1232
|
+
constructor(e) {
|
|
1233
|
+
super(), this.#t = e, f(ue`
|
|
1234
|
+
<style>${Mt}</style>
|
|
1235
|
+
<devtools-icon tabindex=-1 name="shadow" class="shadow-swatch-icon"></devtools-icon>`, this, { host: this }), this.#e = this.querySelector("devtools-icon");
|
|
1236
|
+
}
|
|
1237
|
+
model() {
|
|
1238
|
+
return this.#t;
|
|
1239
|
+
}
|
|
1240
|
+
iconElement() {
|
|
1241
|
+
return this.#e;
|
|
1242
|
+
}
|
|
1243
|
+
};
|
|
1244
|
+
customElements.define("css-shadow-swatch", Nt);
|
|
1245
|
+
//#endregion
|
|
1246
|
+
//#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/inline_editor/swatchPopover.css.mjs
|
|
1247
|
+
var Pt = "/*\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 {\n display: flex;\n overflow: auto;\n user-select: text;\n font: var(--sys-typescale-body4-regular);\n line-height: 11px;\n box-shadow: var(--sys-elevation-level2);\n background-color: var(--sys-color-base-container-elevated);\n border-radius: var(--sys-shape-corner-extra-small);\n}\n\n.with-padding {\n padding: var(--sys-size-4);\n border-radius: var(--sys-shape-corner-small);\n}\n", Ft = class extends i {
|
|
1248
|
+
popover;
|
|
1249
|
+
hideProxy;
|
|
1250
|
+
boundOnKeyDown;
|
|
1251
|
+
boundFocusOut;
|
|
1252
|
+
isHidden;
|
|
1253
|
+
anchorElement;
|
|
1254
|
+
view;
|
|
1255
|
+
hiddenCallback;
|
|
1256
|
+
focusRestorer;
|
|
1257
|
+
constructor() {
|
|
1258
|
+
super(), this.popover = new Ae(), this.popover.setSizeBehavior(oe.MEASURE_CONTENT), this.popover.setMarginBehavior(te.DEFAULT_MARGIN), this.popover.element.addEventListener("mousedown", (e) => e.consume(), !1), this.hideProxy = this.hide.bind(this, !0), this.boundOnKeyDown = this.onKeyDown.bind(this), this.boundFocusOut = this.onFocusOut.bind(this), this.isHidden = !0, this.anchorElement = null;
|
|
1259
|
+
}
|
|
1260
|
+
onFocusOut(e) {
|
|
1261
|
+
let t = e.relatedTarget;
|
|
1262
|
+
this.isHidden || !t || !this.view || t.isSelfOrDescendant(this.view.contentElement) || this.hideProxy();
|
|
1263
|
+
}
|
|
1264
|
+
setAnchorElement(e) {
|
|
1265
|
+
this.anchorElement = e;
|
|
1266
|
+
}
|
|
1267
|
+
isShowing(e) {
|
|
1268
|
+
return this.popover.isShowing() && (e && this.view === e || !e);
|
|
1269
|
+
}
|
|
1270
|
+
show(e, t, n) {
|
|
1271
|
+
if (this.popover.isShowing()) {
|
|
1272
|
+
if (this.anchorElement === t) return;
|
|
1273
|
+
this.hide(!0);
|
|
1274
|
+
}
|
|
1275
|
+
xe(e.contentElement, t), this.popover.registerRequiredCSS(Pt), this.dispatchEventToListeners("WillShowPopover"), this.isHidden = !1, this.anchorElement = t, this.view = e, this.hiddenCallback = n, this.reposition(), e.focus();
|
|
1276
|
+
let r = this.popover.element.ownerDocument;
|
|
1277
|
+
r.addEventListener("mousedown", this.hideProxy, !1), r.defaultView && r.defaultView.addEventListener("resize", this.hideProxy, !1), this.view.contentElement.addEventListener("keydown", this.boundOnKeyDown, !1);
|
|
1278
|
+
}
|
|
1279
|
+
reposition() {
|
|
1280
|
+
if (!(this.isHidden || !this.view)) {
|
|
1281
|
+
if (this.view.contentElement.removeEventListener("focusout", this.boundFocusOut, !1), this.view.show(this.popover.contentElement), this.anchorElement) {
|
|
1282
|
+
let e = this.anchorElement.boxInWindow();
|
|
1283
|
+
if (M.isColorSwatch(this.anchorElement)) {
|
|
1284
|
+
let t = this.anchorElement;
|
|
1285
|
+
if (!t.anchorBox) return;
|
|
1286
|
+
e = t.anchorBox;
|
|
1287
|
+
}
|
|
1288
|
+
this.popover.setContentAnchorBox(e), this.popover.show(this.anchorElement.ownerDocument);
|
|
1289
|
+
}
|
|
1290
|
+
this.view.contentElement.addEventListener("focusout", this.boundFocusOut, !1), this.focusRestorer ||= new Ce(this.view);
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
hide(e) {
|
|
1294
|
+
if (this.isHidden) return;
|
|
1295
|
+
let t = this.popover.element.ownerDocument;
|
|
1296
|
+
this.isHidden = !0, this.popover.hide(), t.removeEventListener("mousedown", this.hideProxy, !1), t.defaultView && t.defaultView.removeEventListener("resize", this.hideProxy, !1), this.hiddenCallback && this.hiddenCallback.call(null, !!e), this.focusRestorer && this.focusRestorer.restore(), this.anchorElement = null, this.view && (this.view.detach(), this.view.contentElement.removeEventListener("keydown", this.boundOnKeyDown, !1), this.view.contentElement.removeEventListener("focusout", this.boundFocusOut, !1), delete this.view);
|
|
1297
|
+
}
|
|
1298
|
+
onKeyDown(e) {
|
|
1299
|
+
if (e.key === "Enter") {
|
|
1300
|
+
this.hide(!0), e.consume(!0);
|
|
1301
|
+
return;
|
|
1302
|
+
}
|
|
1303
|
+
e.key === "Escape" && (this.hide(!1), e.consume(!0));
|
|
1304
|
+
}
|
|
1305
|
+
}, It = /* @__PURE__ */ function(e) {
|
|
1306
|
+
return e.WILL_SHOW_POPOVER = "WillShowPopover", e;
|
|
1307
|
+
}({});
|
|
1308
|
+
//#endregion
|
|
1309
|
+
export { Ke as _, Q as a, Re as b, yt as c, A as d, k as f, Ge as g, Xe as h, jt as i, U as l, O as m, Ft as n, Ct as o, M as p, Nt as r, wt as s, It as t, j as u, C as v, S as y };
|