@react-native/debugger-frontend 0.73.0-nightly-20230922-52104c6ee

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (656) hide show
  1. package/BUILD_INFO +10 -0
  2. package/README.md +22 -0
  3. package/dist/third-party/LICENSE +28 -0
  4. package/dist/third-party/front_end/Images/3d-center.svg +1 -0
  5. package/dist/third-party/front_end/Images/3d-pan.svg +1 -0
  6. package/dist/third-party/front_end/Images/3d-rotate.svg +1 -0
  7. package/dist/third-party/front_end/Images/Images.js +223 -0
  8. package/dist/third-party/front_end/Images/accelerometer-back.svg +1 -0
  9. package/dist/third-party/front_end/Images/accelerometer-bottom.png +0 -0
  10. package/dist/third-party/front_end/Images/accelerometer-front.svg +1 -0
  11. package/dist/third-party/front_end/Images/accelerometer-left.png +0 -0
  12. package/dist/third-party/front_end/Images/accelerometer-right.png +0 -0
  13. package/dist/third-party/front_end/Images/accelerometer-top.png +0 -0
  14. package/dist/third-party/front_end/Images/align-content-center.svg +1 -0
  15. package/dist/third-party/front_end/Images/align-content-end.svg +1 -0
  16. package/dist/third-party/front_end/Images/align-content-space-around.svg +1 -0
  17. package/dist/third-party/front_end/Images/align-content-space-between.svg +1 -0
  18. package/dist/third-party/front_end/Images/align-content-space-evenly.svg +1 -0
  19. package/dist/third-party/front_end/Images/align-content-start.svg +1 -0
  20. package/dist/third-party/front_end/Images/align-content-stretch.svg +1 -0
  21. package/dist/third-party/front_end/Images/align-items-baseline.svg +1 -0
  22. package/dist/third-party/front_end/Images/align-items-center.svg +1 -0
  23. package/dist/third-party/front_end/Images/align-items-end.svg +1 -0
  24. package/dist/third-party/front_end/Images/align-items-start.svg +1 -0
  25. package/dist/third-party/front_end/Images/align-items-stretch.svg +1 -0
  26. package/dist/third-party/front_end/Images/align-self-center.svg +1 -0
  27. package/dist/third-party/front_end/Images/align-self-end.svg +1 -0
  28. package/dist/third-party/front_end/Images/align-self-start.svg +1 -0
  29. package/dist/third-party/front_end/Images/align-self-stretch.svg +1 -0
  30. package/dist/third-party/front_end/Images/arrow-down.svg +1 -0
  31. package/dist/third-party/front_end/Images/arrow-drop-down-dark.svg +1 -0
  32. package/dist/third-party/front_end/Images/arrow-drop-down-light.svg +1 -0
  33. package/dist/third-party/front_end/Images/arrow-up-down-circle.svg +1 -0
  34. package/dist/third-party/front_end/Images/arrow-up-down.svg +1 -0
  35. package/dist/third-party/front_end/Images/arrow-up.svg +1 -0
  36. package/dist/third-party/front_end/Images/bell.svg +1 -0
  37. package/dist/third-party/front_end/Images/bezier-curve-filled.svg +1 -0
  38. package/dist/third-party/front_end/Images/bin.svg +1 -0
  39. package/dist/third-party/front_end/Images/bottom-panel-close.svg +1 -0
  40. package/dist/third-party/front_end/Images/bottom-panel-open.svg +1 -0
  41. package/dist/third-party/front_end/Images/brackets.svg +1 -0
  42. package/dist/third-party/front_end/Images/breakpoint-circle.svg +1 -0
  43. package/dist/third-party/front_end/Images/breakpoint-crossed-filled.svg +1 -0
  44. package/dist/third-party/front_end/Images/breakpoint-crossed.svg +1 -0
  45. package/dist/third-party/front_end/Images/brush-filled.svg +1 -0
  46. package/dist/third-party/front_end/Images/brush.svg +1 -0
  47. package/dist/third-party/front_end/Images/bug.svg +1 -0
  48. package/dist/third-party/front_end/Images/bundle.svg +1 -0
  49. package/dist/third-party/front_end/Images/check-circle.svg +1 -0
  50. package/dist/third-party/front_end/Images/check-double.svg +1 -0
  51. package/dist/third-party/front_end/Images/checker.svg +1 -0
  52. package/dist/third-party/front_end/Images/checkmark.svg +1 -0
  53. package/dist/third-party/front_end/Images/chevron-double-right.svg +1 -0
  54. package/dist/third-party/front_end/Images/chevron-down.svg +1 -0
  55. package/dist/third-party/front_end/Images/chevron-left-dot.svg +1 -0
  56. package/dist/third-party/front_end/Images/chevron-left.svg +1 -0
  57. package/dist/third-party/front_end/Images/chevron-right.svg +1 -0
  58. package/dist/third-party/front_end/Images/chevron-up.svg +1 -0
  59. package/dist/third-party/front_end/Images/chromeLeft.avif +0 -0
  60. package/dist/third-party/front_end/Images/chromeMiddle.avif +0 -0
  61. package/dist/third-party/front_end/Images/chromeRight.avif +0 -0
  62. package/dist/third-party/front_end/Images/clear-list.svg +1 -0
  63. package/dist/third-party/front_end/Images/clear.svg +1 -0
  64. package/dist/third-party/front_end/Images/cloud.svg +1 -0
  65. package/dist/third-party/front_end/Images/code-circle.svg +1 -0
  66. package/dist/third-party/front_end/Images/code.svg +1 -0
  67. package/dist/third-party/front_end/Images/colon.svg +1 -0
  68. package/dist/third-party/front_end/Images/color-picker-filled.svg +1 -0
  69. package/dist/third-party/front_end/Images/color-picker.svg +1 -0
  70. package/dist/third-party/front_end/Images/console-conditional-breakpoint.svg +1 -0
  71. package/dist/third-party/front_end/Images/console-logpoint.svg +1 -0
  72. package/dist/third-party/front_end/Images/cookie.svg +1 -0
  73. package/dist/third-party/front_end/Images/copy.svg +1 -0
  74. package/dist/third-party/front_end/Images/credit-card.svg +1 -0
  75. package/dist/third-party/front_end/Images/cross-circle-filled.svg +1 -0
  76. package/dist/third-party/front_end/Images/cross-circle.svg +1 -0
  77. package/dist/third-party/front_end/Images/cross.svg +1 -0
  78. package/dist/third-party/front_end/Images/cssoverview_icons_2x.avif +0 -0
  79. package/dist/third-party/front_end/Images/custom-typography.svg +1 -0
  80. package/dist/third-party/front_end/Images/database.svg +1 -0
  81. package/dist/third-party/front_end/Images/deployed.svg +1 -0
  82. package/dist/third-party/front_end/Images/device-fold.svg +1 -0
  83. package/dist/third-party/front_end/Images/devices.svg +1 -0
  84. package/dist/third-party/front_end/Images/dock-bottom.svg +1 -0
  85. package/dist/third-party/front_end/Images/dock-left.svg +1 -0
  86. package/dist/third-party/front_end/Images/dock-right.svg +1 -0
  87. package/dist/third-party/front_end/Images/dock-window.svg +1 -0
  88. package/dist/third-party/front_end/Images/document.svg +1 -0
  89. package/dist/third-party/front_end/Images/dots-horizontal.svg +1 -0
  90. package/dist/third-party/front_end/Images/dots-vertical.svg +1 -0
  91. package/dist/third-party/front_end/Images/download.svg +1 -0
  92. package/dist/third-party/front_end/Images/edit.svg +1 -0
  93. package/dist/third-party/front_end/Images/empty.svg +1 -0
  94. package/dist/third-party/front_end/Images/errorWave.svg +1 -0
  95. package/dist/third-party/front_end/Images/exclamation.svg +1 -0
  96. package/dist/third-party/front_end/Images/experiment-check.svg +1 -0
  97. package/dist/third-party/front_end/Images/experiment.svg +1 -0
  98. package/dist/third-party/front_end/Images/eye.svg +1 -0
  99. package/dist/third-party/front_end/Images/file-document.svg +1 -0
  100. package/dist/third-party/front_end/Images/file-font.svg +1 -0
  101. package/dist/third-party/front_end/Images/file-generic.svg +1 -0
  102. package/dist/third-party/front_end/Images/file-image.svg +1 -0
  103. package/dist/third-party/front_end/Images/file-script.svg +1 -0
  104. package/dist/third-party/front_end/Images/file-snippet.svg +1 -0
  105. package/dist/third-party/front_end/Images/file-stylesheet.svg +1 -0
  106. package/dist/third-party/front_end/Images/filter-clear.svg +1 -0
  107. package/dist/third-party/front_end/Images/filter-filled.svg +1 -0
  108. package/dist/third-party/front_end/Images/filter.svg +1 -0
  109. package/dist/third-party/front_end/Images/flex-direction.svg +1 -0
  110. package/dist/third-party/front_end/Images/flex-no-wrap.svg +1 -0
  111. package/dist/third-party/front_end/Images/flex-wrap.svg +1 -0
  112. package/dist/third-party/front_end/Images/flow.svg +1 -0
  113. package/dist/third-party/front_end/Images/fold-more.svg +1 -0
  114. package/dist/third-party/front_end/Images/folder.svg +1 -0
  115. package/dist/third-party/front_end/Images/frame-crossed.svg +1 -0
  116. package/dist/third-party/front_end/Images/frame-icon.svg +1 -0
  117. package/dist/third-party/front_end/Images/frame.svg +1 -0
  118. package/dist/third-party/front_end/Images/gear-filled.svg +1 -0
  119. package/dist/third-party/front_end/Images/gear.svg +1 -0
  120. package/dist/third-party/front_end/Images/gears.svg +1 -0
  121. package/dist/third-party/front_end/Images/heap-snapshot.svg +1 -0
  122. package/dist/third-party/front_end/Images/heap-snapshots.svg +1 -0
  123. package/dist/third-party/front_end/Images/help.svg +1 -0
  124. package/dist/third-party/front_end/Images/iframe-crossed.svg +1 -0
  125. package/dist/third-party/front_end/Images/iframe.svg +1 -0
  126. package/dist/third-party/front_end/Images/import.svg +1 -0
  127. package/dist/third-party/front_end/Images/info-filled.svg +1 -0
  128. package/dist/third-party/front_end/Images/info.svg +1 -0
  129. package/dist/third-party/front_end/Images/issue-cross-filled.svg +1 -0
  130. package/dist/third-party/front_end/Images/issue-exclamation-filled.svg +1 -0
  131. package/dist/third-party/front_end/Images/issue-questionmark-filled.svg +1 -0
  132. package/dist/third-party/front_end/Images/issue-text-filled.svg +1 -0
  133. package/dist/third-party/front_end/Images/justify-content-center.svg +1 -0
  134. package/dist/third-party/front_end/Images/justify-content-end.svg +1 -0
  135. package/dist/third-party/front_end/Images/justify-content-space-around.svg +1 -0
  136. package/dist/third-party/front_end/Images/justify-content-space-between.svg +1 -0
  137. package/dist/third-party/front_end/Images/justify-content-space-evenly.svg +1 -0
  138. package/dist/third-party/front_end/Images/justify-content-start.svg +1 -0
  139. package/dist/third-party/front_end/Images/justify-items-center.svg +1 -0
  140. package/dist/third-party/front_end/Images/justify-items-end.svg +1 -0
  141. package/dist/third-party/front_end/Images/justify-items-start.svg +1 -0
  142. package/dist/third-party/front_end/Images/justify-items-stretch.svg +1 -0
  143. package/dist/third-party/front_end/Images/keyboard-pen.svg +1 -0
  144. package/dist/third-party/front_end/Images/large-arrow-right-filled.svg +1 -0
  145. package/dist/third-party/front_end/Images/largeIcons.svg +2 -0
  146. package/dist/third-party/front_end/Images/layers-filled.svg +1 -0
  147. package/dist/third-party/front_end/Images/layers.svg +1 -0
  148. package/dist/third-party/front_end/Images/left-panel-close.svg +1 -0
  149. package/dist/third-party/front_end/Images/left-panel-open.svg +1 -0
  150. package/dist/third-party/front_end/Images/lighthouse_logo.svg +1 -0
  151. package/dist/third-party/front_end/Images/list.svg +1 -0
  152. package/dist/third-party/front_end/Images/mediumIcons.svg +1 -0
  153. package/dist/third-party/front_end/Images/memory.svg +1 -0
  154. package/dist/third-party/front_end/Images/minus.svg +1 -0
  155. package/dist/third-party/front_end/Images/minus_icon.svg +1 -0
  156. package/dist/third-party/front_end/Images/navigationControls.png +0 -0
  157. package/dist/third-party/front_end/Images/navigationControls_2x.png +0 -0
  158. package/dist/third-party/front_end/Images/network-settings.svg +1 -0
  159. package/dist/third-party/front_end/Images/nodeIcon.avif +0 -0
  160. package/dist/third-party/front_end/Images/node_search_icon.svg +1 -0
  161. package/dist/third-party/front_end/Images/open-externally.svg +1 -0
  162. package/dist/third-party/front_end/Images/pause.svg +1 -0
  163. package/dist/third-party/front_end/Images/performance.svg +1 -0
  164. package/dist/third-party/front_end/Images/person.svg +1 -0
  165. package/dist/third-party/front_end/Images/play.svg +1 -0
  166. package/dist/third-party/front_end/Images/plus.svg +1 -0
  167. package/dist/third-party/front_end/Images/popoverArrows.png +0 -0
  168. package/dist/third-party/front_end/Images/popup.svg +1 -0
  169. package/dist/third-party/front_end/Images/preview_feature_video_thumbnail.svg +1 -0
  170. package/dist/third-party/front_end/Images/profile.svg +1 -0
  171. package/dist/third-party/front_end/Images/react_native/welcomeIcon.png +0 -0
  172. package/dist/third-party/front_end/Images/record-start.svg +1 -0
  173. package/dist/third-party/front_end/Images/record-stop.svg +1 -0
  174. package/dist/third-party/front_end/Images/redo.svg +1 -0
  175. package/dist/third-party/front_end/Images/refresh.svg +1 -0
  176. package/dist/third-party/front_end/Images/replace.svg +1 -0
  177. package/dist/third-party/front_end/Images/replay.svg +1 -0
  178. package/dist/third-party/front_end/Images/resizeDiagonal.svg +1 -0
  179. package/dist/third-party/front_end/Images/resizeHorizontal.svg +1 -0
  180. package/dist/third-party/front_end/Images/resizeVertical.svg +1 -0
  181. package/dist/third-party/front_end/Images/resume.svg +1 -0
  182. package/dist/third-party/front_end/Images/review.svg +1 -0
  183. package/dist/third-party/front_end/Images/right-panel-close.svg +1 -0
  184. package/dist/third-party/front_end/Images/right-panel-open.svg +1 -0
  185. package/dist/third-party/front_end/Images/screen-rotation.svg +1 -0
  186. package/dist/third-party/front_end/Images/search.svg +1 -0
  187. package/dist/third-party/front_end/Images/securityIcons.svg +1 -0
  188. package/dist/third-party/front_end/Images/select-element.svg +1 -0
  189. package/dist/third-party/front_end/Images/settings_14x14_icon.svg +1 -0
  190. package/dist/third-party/front_end/Images/shadow.svg +1 -0
  191. package/dist/third-party/front_end/Images/smallIcons.svg +1 -0
  192. package/dist/third-party/front_end/Images/snippet.svg +1 -0
  193. package/dist/third-party/front_end/Images/star.svg +1 -0
  194. package/dist/third-party/front_end/Images/step-into.svg +1 -0
  195. package/dist/third-party/front_end/Images/step-out.svg +1 -0
  196. package/dist/third-party/front_end/Images/step-over.svg +1 -0
  197. package/dist/third-party/front_end/Images/step.svg +1 -0
  198. package/dist/third-party/front_end/Images/stop.svg +1 -0
  199. package/dist/third-party/front_end/Images/symbol.svg +1 -0
  200. package/dist/third-party/front_end/Images/sync.svg +1 -0
  201. package/dist/third-party/front_end/Images/table.svg +1 -0
  202. package/dist/third-party/front_end/Images/toolbarResizerVertical.png +0 -0
  203. package/dist/third-party/front_end/Images/top-panel-close.svg +1 -0
  204. package/dist/third-party/front_end/Images/top-panel-open.svg +1 -0
  205. package/dist/third-party/front_end/Images/touchCursor.png +0 -0
  206. package/dist/third-party/front_end/Images/touchCursor_2x.png +0 -0
  207. package/dist/third-party/front_end/Images/triangle-bottom-right.svg +1 -0
  208. package/dist/third-party/front_end/Images/triangle-down.svg +1 -0
  209. package/dist/third-party/front_end/Images/triangle-left.svg +1 -0
  210. package/dist/third-party/front_end/Images/triangle-right.svg +1 -0
  211. package/dist/third-party/front_end/Images/triangle-up.svg +1 -0
  212. package/dist/third-party/front_end/Images/undo.svg +1 -0
  213. package/dist/third-party/front_end/Images/warning-filled.svg +1 -0
  214. package/dist/third-party/front_end/Images/warning.svg +1 -0
  215. package/dist/third-party/front_end/Images/warning_icon.svg +1 -0
  216. package/dist/third-party/front_end/Images/watch.svg +1 -0
  217. package/dist/third-party/front_end/Images/whatsnew.avif +0 -0
  218. package/dist/third-party/front_end/Images/width.svg +1 -0
  219. package/dist/third-party/front_end/Tests.js +1662 -0
  220. package/dist/third-party/front_end/core/common/common-legacy.js +1 -0
  221. package/dist/third-party/front_end/core/common/common.js +1 -0
  222. package/dist/third-party/front_end/core/dom_extension/dom_extension.js +1 -0
  223. package/dist/third-party/front_end/core/host/host-legacy.js +1 -0
  224. package/dist/third-party/front_end/core/host/host.js +1 -0
  225. package/dist/third-party/front_end/core/i18n/i18n.js +1 -0
  226. package/dist/third-party/front_end/core/i18n/locales/en-US.json +1 -0
  227. package/dist/third-party/front_end/core/i18n/locales/zh.json +1 -0
  228. package/dist/third-party/front_end/core/platform/platform.js +1 -0
  229. package/dist/third-party/front_end/core/protocol_client/protocol_client-legacy.js +1 -0
  230. package/dist/third-party/front_end/core/protocol_client/protocol_client.js +1 -0
  231. package/dist/third-party/front_end/core/root/root-legacy.js +1 -0
  232. package/dist/third-party/front_end/core/root/root.js +1 -0
  233. package/dist/third-party/front_end/core/sdk/sdk-legacy.js +1 -0
  234. package/dist/third-party/front_end/core/sdk/sdk-meta.js +1 -0
  235. package/dist/third-party/front_end/core/sdk/sdk.js +1 -0
  236. package/dist/third-party/front_end/device_mode_emulation_frame.html +20 -0
  237. package/dist/third-party/front_end/devtools_app.html +20 -0
  238. package/dist/third-party/front_end/devtools_compatibility.js +1595 -0
  239. package/dist/third-party/front_end/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
  240. package/dist/third-party/front_end/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
  241. package/dist/third-party/front_end/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
  242. package/dist/third-party/front_end/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
  243. package/dist/third-party/front_end/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
  244. package/dist/third-party/front_end/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
  245. package/dist/third-party/front_end/emulated_devices/optimized/google-nest-hub-horizontal.avif +0 -0
  246. package/dist/third-party/front_end/emulated_devices/optimized/google-nest-hub-max-horizontal.avif +0 -0
  247. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
  248. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
  249. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
  250. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
  251. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
  252. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
  253. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
  254. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
  255. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
  256. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
  257. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
  258. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
  259. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
  260. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
  261. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
  262. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
  263. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
  264. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
  265. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
  266. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
  267. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
  268. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
  269. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
  270. package/dist/third-party/front_end/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
  271. package/dist/third-party/front_end/emulated_devices/optimized/iPad-landscape.avif +0 -0
  272. package/dist/third-party/front_end/emulated_devices/optimized/iPad-portrait.avif +0 -0
  273. package/dist/third-party/front_end/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
  274. package/dist/third-party/front_end/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
  275. package/dist/third-party/front_end/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
  276. package/dist/third-party/front_end/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
  277. package/dist/third-party/front_end/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
  278. package/dist/third-party/front_end/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
  279. package/dist/third-party/front_end/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.js +1 -0
  280. package/dist/third-party/front_end/entrypoints/devtools_app/devtools_app.js +1 -0
  281. package/dist/third-party/front_end/entrypoints/formatter_worker/FormatterActions.js +1 -0
  282. package/dist/third-party/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.js +1 -0
  283. package/dist/third-party/front_end/entrypoints/formatter_worker/formatter_worker.js +1 -0
  284. package/dist/third-party/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +1 -0
  285. package/dist/third-party/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker-legacy.js +1 -0
  286. package/dist/third-party/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js +1 -0
  287. package/dist/third-party/front_end/entrypoints/inspector/inspector.js +1 -0
  288. package/dist/third-party/front_end/entrypoints/inspector_main/inspector_main-meta.js +1 -0
  289. package/dist/third-party/front_end/entrypoints/inspector_main/inspector_main.js +1 -0
  290. package/dist/third-party/front_end/entrypoints/js_app/js_app.js +1 -0
  291. package/dist/third-party/front_end/entrypoints/lighthouse_worker/lighthouse_worker.js +1 -0
  292. package/dist/third-party/front_end/entrypoints/main/main-legacy.js +1 -0
  293. package/dist/third-party/front_end/entrypoints/main/main-meta.js +1 -0
  294. package/dist/third-party/front_end/entrypoints/main/main.js +1 -0
  295. package/dist/third-party/front_end/entrypoints/ndb_app/ndb_app.js +1 -0
  296. package/dist/third-party/front_end/entrypoints/node_app/node_app.js +1 -0
  297. package/dist/third-party/front_end/entrypoints/rn_inspector/rn_inspector.js +1 -0
  298. package/dist/third-party/front_end/entrypoints/shell/shell.js +1 -0
  299. package/dist/third-party/front_end/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js +1 -0
  300. package/dist/third-party/front_end/entrypoints/wasmparser_worker/wasmparser_worker.js +1 -0
  301. package/dist/third-party/front_end/entrypoints/worker_app/worker_app.js +1 -0
  302. package/dist/third-party/front_end/inspector.html +20 -0
  303. package/dist/third-party/front_end/integration_test_runner.html +40 -0
  304. package/dist/third-party/front_end/js_app.html +20 -0
  305. package/dist/third-party/front_end/legacy_test_runner/legacy_test_runner.js +36 -0
  306. package/dist/third-party/front_end/legacy_test_runner/test_runner/test_runner.js +1 -0
  307. package/dist/third-party/front_end/models/bindings/bindings-legacy.js +1 -0
  308. package/dist/third-party/front_end/models/bindings/bindings.js +1 -0
  309. package/dist/third-party/front_end/models/breakpoints/breakpoints-legacy.js +1 -0
  310. package/dist/third-party/front_end/models/breakpoints/breakpoints.js +1 -0
  311. package/dist/third-party/front_end/models/emulation/emulation.js +1 -0
  312. package/dist/third-party/front_end/models/extensions/extensions-legacy.js +1 -0
  313. package/dist/third-party/front_end/models/extensions/extensions.js +1 -0
  314. package/dist/third-party/front_end/models/formatter/formatter-legacy.js +1 -0
  315. package/dist/third-party/front_end/models/formatter/formatter.js +1 -0
  316. package/dist/third-party/front_end/models/har/har.js +1 -0
  317. package/dist/third-party/front_end/models/heap_snapshot_model/heap_snapshot_model-legacy.js +1 -0
  318. package/dist/third-party/front_end/models/heap_snapshot_model/heap_snapshot_model.js +1 -0
  319. package/dist/third-party/front_end/models/issues_manager/descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
  320. package/dist/third-party/front_end/models/issues_manager/descriptions/CoepCorpNotSameOrigin.md +8 -0
  321. package/dist/third-party/front_end/models/issues_manager/descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
  322. package/dist/third-party/front_end/models/issues_manager/descriptions/CoepCorpNotSameSite.md +7 -0
  323. package/dist/third-party/front_end/models/issues_manager/descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
  324. package/dist/third-party/front_end/models/issues_manager/descriptions/CompatibilityModeQuirks.md +5 -0
  325. package/dist/third-party/front_end/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
  326. package/dist/third-party/front_end/models/issues_manager/descriptions/LowTextContrast.md +5 -0
  327. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
  328. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
  329. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
  330. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteInvalidSameParty.md +8 -0
  331. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
  332. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
  333. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
  334. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
  335. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
  336. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
  337. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteUnspecifiedTreatedAsLaxRead.md +9 -0
  338. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteUnspecifiedTreatedAsLaxSet.md +9 -0
  339. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
  340. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
  341. package/dist/third-party/front_end/models/issues_manager/descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
  342. package/dist/third-party/front_end/models/issues_manager/descriptions/arInsecureContext.md +7 -0
  343. package/dist/third-party/front_end/models/issues_manager/descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
  344. package/dist/third-party/front_end/models/issues_manager/descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
  345. package/dist/third-party/front_end/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +5 -0
  346. package/dist/third-party/front_end/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +5 -0
  347. package/dist/third-party/front_end/models/issues_manager/descriptions/arOsSourceIgnored.md +18 -0
  348. package/dist/third-party/front_end/models/issues_manager/descriptions/arOsTriggerIgnored.md +19 -0
  349. package/dist/third-party/front_end/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +8 -0
  350. package/dist/third-party/front_end/models/issues_manager/descriptions/arSourceAndTriggerHeaders.md +9 -0
  351. package/dist/third-party/front_end/models/issues_manager/descriptions/arSourceIgnored.md +13 -0
  352. package/dist/third-party/front_end/models/issues_manager/descriptions/arTriggerIgnored.md +12 -0
  353. package/dist/third-party/front_end/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +10 -0
  354. package/dist/third-party/front_end/models/issues_manager/descriptions/arWebAndOsHeaders.md +11 -0
  355. package/dist/third-party/front_end/models/issues_manager/descriptions/bounceTrackingMitigations.md +3 -0
  356. package/dist/third-party/front_end/models/issues_manager/descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
  357. package/dist/third-party/front_end/models/issues_manager/descriptions/clientHintMetaTagModifiedHTML.md +4 -0
  358. package/dist/third-party/front_end/models/issues_manager/descriptions/cookieExcludeBlockedWithinFirstPartySet.md +4 -0
  359. package/dist/third-party/front_end/models/issues_manager/descriptions/cookieExcludeDomainNonAscii.md +11 -0
  360. package/dist/third-party/front_end/models/issues_manager/descriptions/cookieWarnDomainNonAscii.md +11 -0
  361. package/dist/third-party/front_end/models/issues_manager/descriptions/corsAllowCredentialsRequired.md +6 -0
  362. package/dist/third-party/front_end/models/issues_manager/descriptions/corsDisabledScheme.md +7 -0
  363. package/dist/third-party/front_end/models/issues_manager/descriptions/corsDisallowedByMode.md +7 -0
  364. package/dist/third-party/front_end/models/issues_manager/descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
  365. package/dist/third-party/front_end/models/issues_manager/descriptions/corsInsecurePrivateNetwork.md +10 -0
  366. package/dist/third-party/front_end/models/issues_manager/descriptions/corsInvalidHeaderValues.md +7 -0
  367. package/dist/third-party/front_end/models/issues_manager/descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
  368. package/dist/third-party/front_end/models/issues_manager/descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
  369. package/dist/third-party/front_end/models/issues_manager/descriptions/corsOriginMismatch.md +6 -0
  370. package/dist/third-party/front_end/models/issues_manager/descriptions/corsPreflightAllowPrivateNetworkError.md +10 -0
  371. package/dist/third-party/front_end/models/issues_manager/descriptions/corsPreflightResponseInvalid.md +5 -0
  372. package/dist/third-party/front_end/models/issues_manager/descriptions/corsRedirectContainsCredentials.md +5 -0
  373. package/dist/third-party/front_end/models/issues_manager/descriptions/corsWildcardOriginNotAllowed.md +8 -0
  374. package/dist/third-party/front_end/models/issues_manager/descriptions/cspEvalViolation.md +9 -0
  375. package/dist/third-party/front_end/models/issues_manager/descriptions/cspInlineViolation.md +10 -0
  376. package/dist/third-party/front_end/models/issues_manager/descriptions/cspTrustedTypesPolicyViolation.md +5 -0
  377. package/dist/third-party/front_end/models/issues_manager/descriptions/cspTrustedTypesSinkViolation.md +8 -0
  378. package/dist/third-party/front_end/models/issues_manager/descriptions/cspURLViolation.md +10 -0
  379. package/dist/third-party/front_end/models/issues_manager/descriptions/deprecation.md +3 -0
  380. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
  381. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
  382. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
  383. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
  384. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestCanceled.md +1 -0
  385. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataHttpNotFound.md +1 -0
  386. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataInvalidResponse.md +1 -0
  387. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestClientMetadataNoResponse.md +1 -0
  388. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
  389. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestErrorIdToken.md +1 -0
  390. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
  391. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
  392. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
  393. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
  394. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
  395. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
  396. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
  397. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
  398. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthRequestTooManyRequests.md +1 -0
  399. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
  400. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
  401. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
  402. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
  403. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
  404. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
  405. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
  406. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
  407. package/dist/third-party/front_end/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
  408. package/dist/third-party/front_end/models/issues_manager/descriptions/genericCrossOriginPortalPostMessageError.md +3 -0
  409. package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormAriaLabelledByToNonExistingId.md +8 -0
  410. package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
  411. package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormDuplicateIdForInputError.md +5 -0
  412. package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
  413. package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
  414. package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
  415. package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormInputWithNoLabelError.md +5 -0
  416. package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
  417. package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormLabelForNameError.md +5 -0
  418. package/dist/third-party/front_end/models/issues_manager/descriptions/genericFormLabelHasNeitherForNorNestedInput.md +5 -0
  419. package/dist/third-party/front_end/models/issues_manager/descriptions/heavyAd.md +10 -0
  420. package/dist/third-party/front_end/models/issues_manager/descriptions/mixedContent.md +5 -0
  421. package/dist/third-party/front_end/models/issues_manager/descriptions/sharedArrayBuffer.md +7 -0
  422. package/dist/third-party/front_end/models/issues_manager/descriptions/stylesheetLateImport.md +4 -0
  423. package/dist/third-party/front_end/models/issues_manager/descriptions/stylesheetRequestFailed.md +3 -0
  424. package/dist/third-party/front_end/models/issues_manager/issues_manager.js +1 -0
  425. package/dist/third-party/front_end/models/javascript_metadata/javascript_metadata.js +1 -0
  426. package/dist/third-party/front_end/models/logs/logs-meta.js +1 -0
  427. package/dist/third-party/front_end/models/logs/logs.js +1 -0
  428. package/dist/third-party/front_end/models/persistence/persistence-legacy.js +1 -0
  429. package/dist/third-party/front_end/models/persistence/persistence-meta.js +1 -0
  430. package/dist/third-party/front_end/models/persistence/persistence.js +1 -0
  431. package/dist/third-party/front_end/models/source_map_scopes/source_map_scopes.js +1 -0
  432. package/dist/third-party/front_end/models/text_utils/text_utils-legacy.js +1 -0
  433. package/dist/third-party/front_end/models/text_utils/text_utils.js +1 -0
  434. package/dist/third-party/front_end/models/timeline_model/timeline_model-legacy.js +1 -0
  435. package/dist/third-party/front_end/models/timeline_model/timeline_model.js +1 -0
  436. package/dist/third-party/front_end/models/trace/extras/extras.js +1 -0
  437. package/dist/third-party/front_end/models/trace/handlers/handlers.js +1 -0
  438. package/dist/third-party/front_end/models/trace/helpers/helpers.js +1 -0
  439. package/dist/third-party/front_end/models/trace/trace.js +1 -0
  440. package/dist/third-party/front_end/models/trace/types/types.js +1 -0
  441. package/dist/third-party/front_end/models/workspace/workspace-legacy.js +1 -0
  442. package/dist/third-party/front_end/models/workspace/workspace.js +1 -0
  443. package/dist/third-party/front_end/models/workspace_diff/workspace_diff-legacy.js +1 -0
  444. package/dist/third-party/front_end/models/workspace_diff/workspace_diff.js +1 -0
  445. package/dist/third-party/front_end/ndb_app.html +20 -0
  446. package/dist/third-party/front_end/node_app.html +20 -0
  447. package/dist/third-party/front_end/panels/accessibility/accessibility-legacy.js +1 -0
  448. package/dist/third-party/front_end/panels/accessibility/accessibility-meta.js +1 -0
  449. package/dist/third-party/front_end/panels/accessibility/accessibility.js +1 -0
  450. package/dist/third-party/front_end/panels/animation/animation-legacy.js +1 -0
  451. package/dist/third-party/front_end/panels/animation/animation-meta.js +1 -0
  452. package/dist/third-party/front_end/panels/animation/animation.js +1 -0
  453. package/dist/third-party/front_end/panels/application/application-legacy.js +1 -0
  454. package/dist/third-party/front_end/panels/application/application-meta.js +1 -0
  455. package/dist/third-party/front_end/panels/application/application.js +1 -0
  456. package/dist/third-party/front_end/panels/application/components/components.js +1 -0
  457. package/dist/third-party/front_end/panels/application/preloading/components/components.js +1 -0
  458. package/dist/third-party/front_end/panels/browser_debugger/browser_debugger-legacy.js +1 -0
  459. package/dist/third-party/front_end/panels/browser_debugger/browser_debugger-meta.js +1 -0
  460. package/dist/third-party/front_end/panels/browser_debugger/browser_debugger.js +1 -0
  461. package/dist/third-party/front_end/panels/changes/changes-legacy.js +1 -0
  462. package/dist/third-party/front_end/panels/changes/changes-meta.js +1 -0
  463. package/dist/third-party/front_end/panels/changes/changes.js +1 -0
  464. package/dist/third-party/front_end/panels/console/console-legacy.js +1 -0
  465. package/dist/third-party/front_end/panels/console/console-meta.js +1 -0
  466. package/dist/third-party/front_end/panels/console/console.js +6 -0
  467. package/dist/third-party/front_end/panels/console_counters/console_counters-meta.js +1 -0
  468. package/dist/third-party/front_end/panels/console_counters/console_counters.js +1 -0
  469. package/dist/third-party/front_end/panels/coverage/coverage-legacy.js +1 -0
  470. package/dist/third-party/front_end/panels/coverage/coverage-meta.js +1 -0
  471. package/dist/third-party/front_end/panels/coverage/coverage.js +1 -0
  472. package/dist/third-party/front_end/panels/css_overview/components/components.js +1 -0
  473. package/dist/third-party/front_end/panels/css_overview/css_overview-meta.js +1 -0
  474. package/dist/third-party/front_end/panels/css_overview/css_overview.js +144 -0
  475. package/dist/third-party/front_end/panels/developer_resources/developer_resources-meta.js +1 -0
  476. package/dist/third-party/front_end/panels/developer_resources/developer_resources.js +1 -0
  477. package/dist/third-party/front_end/panels/elements/components/components.js +1 -0
  478. package/dist/third-party/front_end/panels/elements/elements-legacy.js +1 -0
  479. package/dist/third-party/front_end/panels/elements/elements-meta.js +1 -0
  480. package/dist/third-party/front_end/panels/elements/elements.js +1 -0
  481. package/dist/third-party/front_end/panels/emulation/components/components.js +22 -0
  482. package/dist/third-party/front_end/panels/emulation/emulation-legacy.js +1 -0
  483. package/dist/third-party/front_end/panels/emulation/emulation-meta.js +1 -0
  484. package/dist/third-party/front_end/panels/emulation/emulation.js +1 -0
  485. package/dist/third-party/front_end/panels/event_listeners/event_listeners.js +1 -0
  486. package/dist/third-party/front_end/panels/issues/components/components.js +1 -0
  487. package/dist/third-party/front_end/panels/issues/issues-meta.js +1 -0
  488. package/dist/third-party/front_end/panels/issues/issues.js +1 -0
  489. package/dist/third-party/front_end/panels/js_profiler/js_profiler-meta.js +1 -0
  490. package/dist/third-party/front_end/panels/js_profiler/js_profiler.js +1 -0
  491. package/dist/third-party/front_end/panels/layer_viewer/layer_viewer-legacy.js +1 -0
  492. package/dist/third-party/front_end/panels/layer_viewer/layer_viewer-meta.js +1 -0
  493. package/dist/third-party/front_end/panels/layer_viewer/layer_viewer.js +1 -0
  494. package/dist/third-party/front_end/panels/layers/layers-meta.js +1 -0
  495. package/dist/third-party/front_end/panels/layers/layers.js +1 -0
  496. package/dist/third-party/front_end/panels/lighthouse/lighthouse-legacy.js +1 -0
  497. package/dist/third-party/front_end/panels/lighthouse/lighthouse-meta.js +1 -0
  498. package/dist/third-party/front_end/panels/lighthouse/lighthouse.js +66 -0
  499. package/dist/third-party/front_end/panels/media/media-meta.js +1 -0
  500. package/dist/third-party/front_end/panels/media/media.js +25 -0
  501. package/dist/third-party/front_end/panels/mobile_throttling/mobile_throttling-legacy.js +1 -0
  502. package/dist/third-party/front_end/panels/mobile_throttling/mobile_throttling-meta.js +1 -0
  503. package/dist/third-party/front_end/panels/mobile_throttling/mobile_throttling.js +1 -0
  504. package/dist/third-party/front_end/panels/network/components/components.js +1 -0
  505. package/dist/third-party/front_end/panels/network/forward/forward.js +1 -0
  506. package/dist/third-party/front_end/panels/network/network-legacy.js +1 -0
  507. package/dist/third-party/front_end/panels/network/network-meta.js +1 -0
  508. package/dist/third-party/front_end/panels/network/network.js +1 -0
  509. package/dist/third-party/front_end/panels/performance_monitor/performance_monitor-meta.js +1 -0
  510. package/dist/third-party/front_end/panels/performance_monitor/performance_monitor.js +1 -0
  511. package/dist/third-party/front_end/panels/profiler/profiler-legacy.js +1 -0
  512. package/dist/third-party/front_end/panels/profiler/profiler-meta.js +1 -0
  513. package/dist/third-party/front_end/panels/profiler/profiler.js +7 -0
  514. package/dist/third-party/front_end/panels/protocol_monitor/components/components.js +1 -0
  515. package/dist/third-party/front_end/panels/protocol_monitor/protocol_monitor-meta.js +1 -0
  516. package/dist/third-party/front_end/panels/protocol_monitor/protocol_monitor.js +1 -0
  517. package/dist/third-party/front_end/panels/recorder/components/components.js +1 -0
  518. package/dist/third-party/front_end/panels/recorder/controllers/controllers.js +1 -0
  519. package/dist/third-party/front_end/panels/recorder/converters/converters.js +1 -0
  520. package/dist/third-party/front_end/panels/recorder/extensions/extensions.js +1 -0
  521. package/dist/third-party/front_end/panels/recorder/injected/injected.generated.js +1 -0
  522. package/dist/third-party/front_end/panels/recorder/injected/injected.js +1 -0
  523. package/dist/third-party/front_end/panels/recorder/models/models.js +1 -0
  524. package/dist/third-party/front_end/panels/recorder/recorder-actions.js +1 -0
  525. package/dist/third-party/front_end/panels/recorder/recorder-meta.js +1 -0
  526. package/dist/third-party/front_end/panels/recorder/recorder.js +1 -0
  527. package/dist/third-party/front_end/panels/recorder/util/util.js +1 -0
  528. package/dist/third-party/front_end/panels/rn_welcome/rn_welcome-meta.js +1 -0
  529. package/dist/third-party/front_end/panels/rn_welcome/rn_welcome.js +1 -0
  530. package/dist/third-party/front_end/panels/screencast/screencast-meta.js +1 -0
  531. package/dist/third-party/front_end/panels/screencast/screencast.js +1 -0
  532. package/dist/third-party/front_end/panels/search/search-legacy.js +1 -0
  533. package/dist/third-party/front_end/panels/search/search.js +1 -0
  534. package/dist/third-party/front_end/panels/security/security-legacy.js +1 -0
  535. package/dist/third-party/front_end/panels/security/security-meta.js +1 -0
  536. package/dist/third-party/front_end/panels/security/security.js +1 -0
  537. package/dist/third-party/front_end/panels/sensors/sensors-meta.js +1 -0
  538. package/dist/third-party/front_end/panels/sensors/sensors.js +1 -0
  539. package/dist/third-party/front_end/panels/settings/components/components.js +1 -0
  540. package/dist/third-party/front_end/panels/settings/emulation/components/components.js +1 -0
  541. package/dist/third-party/front_end/panels/settings/emulation/emulation-meta.js +1 -0
  542. package/dist/third-party/front_end/panels/settings/emulation/emulation.js +1 -0
  543. package/dist/third-party/front_end/panels/settings/emulation/utils/utils.js +1 -0
  544. package/dist/third-party/front_end/panels/settings/settings-legacy.js +1 -0
  545. package/dist/third-party/front_end/panels/settings/settings-meta.js +1 -0
  546. package/dist/third-party/front_end/panels/settings/settings.js +1 -0
  547. package/dist/third-party/front_end/panels/snippets/snippets-legacy.js +1 -0
  548. package/dist/third-party/front_end/panels/snippets/snippets.js +1 -0
  549. package/dist/third-party/front_end/panels/sources/components/components.js +1 -0
  550. package/dist/third-party/front_end/panels/sources/sources-legacy.js +1 -0
  551. package/dist/third-party/front_end/panels/sources/sources-meta.js +1 -0
  552. package/dist/third-party/front_end/panels/sources/sources.js +1 -0
  553. package/dist/third-party/front_end/panels/timeline/timeline-legacy.js +1 -0
  554. package/dist/third-party/front_end/panels/timeline/timeline-meta.js +1 -0
  555. package/dist/third-party/front_end/panels/timeline/timeline.js +1 -0
  556. package/dist/third-party/front_end/panels/utils/utils.js +1 -0
  557. package/dist/third-party/front_end/panels/web_audio/graph_visualizer/graph_visualizer.js +1 -0
  558. package/dist/third-party/front_end/panels/web_audio/web_audio-legacy.js +1 -0
  559. package/dist/third-party/front_end/panels/web_audio/web_audio-meta.js +1 -0
  560. package/dist/third-party/front_end/panels/web_audio/web_audio.js +1 -0
  561. package/dist/third-party/front_end/panels/webauthn/webauthn-meta.js +1 -0
  562. package/dist/third-party/front_end/panels/webauthn/webauthn.js +1 -0
  563. package/dist/third-party/front_end/rn_inspector.html +20 -0
  564. package/dist/third-party/front_end/services/puppeteer/puppeteer.js +1 -0
  565. package/dist/third-party/front_end/services/tracing/tracing.js +1 -0
  566. package/dist/third-party/front_end/services/window_bounds/window_bounds.js +1 -0
  567. package/dist/third-party/front_end/third_party/acorn/acorn.js +1 -0
  568. package/dist/third-party/front_end/third_party/chromium/client-variations/client-variations.js +1 -0
  569. package/dist/third-party/front_end/third_party/codemirror.next/chunk/angular.js +2 -0
  570. package/dist/third-party/front_end/third_party/codemirror.next/chunk/codemirror.js +2 -0
  571. package/dist/third-party/front_end/third_party/codemirror.next/chunk/cpp.js +2 -0
  572. package/dist/third-party/front_end/third_party/codemirror.next/chunk/java.js +2 -0
  573. package/dist/third-party/front_end/third_party/codemirror.next/chunk/json.js +2 -0
  574. package/dist/third-party/front_end/third_party/codemirror.next/chunk/legacy.js +2 -0
  575. package/dist/third-party/front_end/third_party/codemirror.next/chunk/less.js +2 -0
  576. package/dist/third-party/front_end/third_party/codemirror.next/chunk/markdown.js +2 -0
  577. package/dist/third-party/front_end/third_party/codemirror.next/chunk/php.js +2 -0
  578. package/dist/third-party/front_end/third_party/codemirror.next/chunk/python.js +2 -0
  579. package/dist/third-party/front_end/third_party/codemirror.next/chunk/sass.js +2 -0
  580. package/dist/third-party/front_end/third_party/codemirror.next/chunk/svelte.js +2 -0
  581. package/dist/third-party/front_end/third_party/codemirror.next/chunk/vue.js +2 -0
  582. package/dist/third-party/front_end/third_party/codemirror.next/chunk/wast.js +2 -0
  583. package/dist/third-party/front_end/third_party/codemirror.next/chunk/xml.js +2 -0
  584. package/dist/third-party/front_end/third_party/codemirror.next/codemirror.next.js +2 -0
  585. package/dist/third-party/front_end/third_party/diff/diff-legacy.js +1 -0
  586. package/dist/third-party/front_end/third_party/diff/diff.js +1 -0
  587. package/dist/third-party/front_end/third_party/i18n/i18n.js +1 -0
  588. package/dist/third-party/front_end/third_party/intl-messageformat/intl-messageformat.js +15 -0
  589. package/dist/third-party/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1297 -0
  590. package/dist/third-party/front_end/third_party/lighthouse/report/report.js +222 -0
  591. package/dist/third-party/front_end/third_party/lit/lit.js +98 -0
  592. package/dist/third-party/front_end/third_party/marked/marked.js +1 -0
  593. package/dist/third-party/front_end/third_party/puppeteer/puppeteer.js +1 -0
  594. package/dist/third-party/front_end/third_party/puppeteer-replay/puppeteer-replay.js +1 -0
  595. package/dist/third-party/front_end/third_party/wasmparser/wasmparser.js +1 -0
  596. package/dist/third-party/front_end/ui/components/adorners/adorners.js +1 -0
  597. package/dist/third-party/front_end/ui/components/buttons/buttons.js +1 -0
  598. package/dist/third-party/front_end/ui/components/chrome_link/chrome_link.js +1 -0
  599. package/dist/third-party/front_end/ui/components/code_highlighter/code_highlighter.js +1 -0
  600. package/dist/third-party/front_end/ui/components/data_grid/data_grid.js +1 -0
  601. package/dist/third-party/front_end/ui/components/dialogs/dialogs.js +1 -0
  602. package/dist/third-party/front_end/ui/components/diff_view/diff_view.js +1 -0
  603. package/dist/third-party/front_end/ui/components/expandable_list/expandable_list.js +1 -0
  604. package/dist/third-party/front_end/ui/components/helpers/helpers.js +1 -0
  605. package/dist/third-party/front_end/ui/components/icon_button/icon_button.js +1 -0
  606. package/dist/third-party/front_end/ui/components/input/input.js +1 -0
  607. package/dist/third-party/front_end/ui/components/issue_counter/issue_counter.js +1 -0
  608. package/dist/third-party/front_end/ui/components/legacy_wrapper/legacy_wrapper.js +1 -0
  609. package/dist/third-party/front_end/ui/components/linear_memory_inspector/linear_memory_inspector-meta.js +1 -0
  610. package/dist/third-party/front_end/ui/components/linear_memory_inspector/linear_memory_inspector.js +1 -0
  611. package/dist/third-party/front_end/ui/components/linkifier/linkifier.js +1 -0
  612. package/dist/third-party/front_end/ui/components/markdown_view/markdown_view.js +1 -0
  613. package/dist/third-party/front_end/ui/components/menus/menus.js +1 -0
  614. package/dist/third-party/front_end/ui/components/node_text/node_text.js +1 -0
  615. package/dist/third-party/front_end/ui/components/panel_feedback/panel_feedback.js +1 -0
  616. package/dist/third-party/front_end/ui/components/panel_introduction_steps/panel_introduction_steps.js +1 -0
  617. package/dist/third-party/front_end/ui/components/render_coordinator/render_coordinator.js +1 -0
  618. package/dist/third-party/front_end/ui/components/report_view/report_view.js +1 -0
  619. package/dist/third-party/front_end/ui/components/request_link_icon/request_link_icon.js +1 -0
  620. package/dist/third-party/front_end/ui/components/settings/settings.js +1 -0
  621. package/dist/third-party/front_end/ui/components/srgb_overlay/srgb_overlay.js +1 -0
  622. package/dist/third-party/front_end/ui/components/survey_link/survey_link.js +1 -0
  623. package/dist/third-party/front_end/ui/components/text_editor/text_editor.js +1 -0
  624. package/dist/third-party/front_end/ui/components/text_prompt/text_prompt.js +1 -0
  625. package/dist/third-party/front_end/ui/components/tree_outline/tree_outline.js +1 -0
  626. package/dist/third-party/front_end/ui/components/two_states_counter/two_states_counter.js +1 -0
  627. package/dist/third-party/front_end/ui/legacy/components/color_picker/color_picker-legacy.js +1 -0
  628. package/dist/third-party/front_end/ui/legacy/components/color_picker/color_picker.js +1 -0
  629. package/dist/third-party/front_end/ui/legacy/components/cookie_table/cookie_table-legacy.js +1 -0
  630. package/dist/third-party/front_end/ui/legacy/components/cookie_table/cookie_table.js +1 -0
  631. package/dist/third-party/front_end/ui/legacy/components/data_grid/data_grid-legacy.js +1 -0
  632. package/dist/third-party/front_end/ui/legacy/components/data_grid/data_grid.js +1 -0
  633. package/dist/third-party/front_end/ui/legacy/components/inline_editor/inline_editor-legacy.js +1 -0
  634. package/dist/third-party/front_end/ui/legacy/components/inline_editor/inline_editor.js +1 -0
  635. package/dist/third-party/front_end/ui/legacy/components/object_ui/object_ui-legacy.js +1 -0
  636. package/dist/third-party/front_end/ui/legacy/components/object_ui/object_ui-meta.js +1 -0
  637. package/dist/third-party/front_end/ui/legacy/components/object_ui/object_ui.js +1 -0
  638. package/dist/third-party/front_end/ui/legacy/components/perf_ui/perf_ui-legacy.js +1 -0
  639. package/dist/third-party/front_end/ui/legacy/components/perf_ui/perf_ui-meta.js +1 -0
  640. package/dist/third-party/front_end/ui/legacy/components/perf_ui/perf_ui.js +12 -0
  641. package/dist/third-party/front_end/ui/legacy/components/quick_open/quick_open-legacy.js +1 -0
  642. package/dist/third-party/front_end/ui/legacy/components/quick_open/quick_open-meta.js +1 -0
  643. package/dist/third-party/front_end/ui/legacy/components/quick_open/quick_open.js +1 -0
  644. package/dist/third-party/front_end/ui/legacy/components/source_frame/source_frame-legacy.js +1 -0
  645. package/dist/third-party/front_end/ui/legacy/components/source_frame/source_frame-meta.js +1 -0
  646. package/dist/third-party/front_end/ui/legacy/components/source_frame/source_frame.js +1 -0
  647. package/dist/third-party/front_end/ui/legacy/components/utils/utils-legacy.js +1 -0
  648. package/dist/third-party/front_end/ui/legacy/components/utils/utils.js +1 -0
  649. package/dist/third-party/front_end/ui/legacy/legacy-legacy.js +1 -0
  650. package/dist/third-party/front_end/ui/legacy/legacy.js +1 -0
  651. package/dist/third-party/front_end/ui/legacy/theme_support/theme_support.js +1 -0
  652. package/dist/third-party/front_end/ui/legacy/utils/utils.js +1 -0
  653. package/dist/third-party/front_end/ui/lit-html/lit-html.js +1 -0
  654. package/dist/third-party/front_end/worker_app.html +20 -0
  655. package/index.js +15 -0
  656. package/package.json +25 -0
@@ -0,0 +1 @@
1
+ import*as e from"./extras/extras.js";export{e as Extras};import*as t from"./handlers/handlers.js";export{t as Handlers};import*as s from"./helpers/helpers.js";export{s as Helpers};import*as r from"../../core/platform/platform.js";import*as a from"./types/types.js";export{a as Types};class n extends Event{data;static eventName="traceparseprogress";constructor(e,t={bubbles:!0}){super(n.eventName,t),this.data=e}}class o extends EventTarget{#e;#t;#s;#r="IDLE";static createWithAllHandlers(){return new o(t.ModelHandlers)}constructor(e,{pauseDuration:s=1,eventsPerChunk:r=15e3}={}){super(),this.#a(e),this.#e={Meta:t.ModelHandlers.Meta,...e},this.#t=s,this.#s=r}#a(e){if(Object.keys(e).length===Object.keys(t.ModelHandlers).length)return;const s=new Set;for(const[t,r]of Object.entries(e)){s.add(t);for(const e of r.deps?.()||[])s.add(e)}const r=new Set(Object.keys(e));s.delete("Meta");for(const e of s)if(!r.has(e))throw new Error(`Required handler ${e} not provided.`)}reset(){if("PARSING"===this.#r)throw new Error("Trace processor can't reset while parsing.");const e=Object.values(this.#e);for(const t of e)t.reset();this.#r="IDLE"}async parse(e,t=!1){if("IDLE"!==this.#r)throw new Error(`Trace processor can't start parsing when not idle. Current state: ${this.#r}`);try{this.#r="PARSING",await this.#n(e,t),this.#r="FINISHED_PARSING"}catch(e){throw this.#r="ERRORED_WHILE_PARSING",e}}async#n(e,t){const s=new c(e,this.#t,this.#s),r=[...i(this.#e).values()];for(const e of r)e.reset();for(const e of r)e.initialize?.(t);for await(const e of s)if(2!==e.kind)for(const t of r)t.handleEvent(e.data);else this.dispatchEvent(new n(e.data));for(const e of r)await(e.finalize?.())}get data(){if("FINISHED_PARSING"!==this.#r)return null;const e={};for(const[t,s]of Object.entries(this.#e))Object.assign(e,{[t]:s.data()});return e}}function i(e){const t=new Map,s=new Set,r=a=>{if(t.has(a))return;if(s.has(a)){let e="";for(const t of s)(e||t===a)&&(e+=`${t}->`);throw e+=a,new Error(`Found dependency cycle in trace event handlers: ${e}`)}s.add(a);const n=e[a];if(!n)return;const o=n.deps?.();o&&o.forEach(r),t.set(a,n)};for(const t of Object.keys(e))r(t);return t}class c{traceEvents;pauseDuration;eventsPerChunk;#o;constructor(e,t,s){this.traceEvents=e,this.pauseDuration=t,this.eventsPerChunk=s,this.#o=0}async*[Symbol.asyncIterator](){for(let e=0,t=this.traceEvents.length;e<t;e++)++this.#o%this.eventsPerChunk==0&&(yield{kind:2,data:{index:e,total:t}},await new Promise((e=>setTimeout(e,this.pauseDuration)))),yield{kind:1,data:this.traceEvents[e]}}}var d=Object.freeze({__proto__:null,TraceParseProgressEvent:n,TraceProcessor:o,sortHandlers:i});class l extends EventTarget{#i=[];#c=new Map;#d=[];#l=0;#h;static createWithAllHandlers(){return new l(t.ModelHandlers)}static createWithRequiredHandlersForMigration(){return new l(t.Migration.ENABLED_TRACE_HANDLERS)}constructor(e){super(),this.#h=new o(e)}async parse(e,t){const s=t?.metadata||{},r=t?.isFreshRecording||!1,a=e=>{const{data:t}=e;this.dispatchEvent(new h({type:"PROGRESS_UPDATE",data:t}))};this.#h.addEventListener(n.eventName,a);const o={traceEvents:e,metadata:s,traceParsedData:null};try{await this.#h.parse(e,r),this.#u(o,this.#h.data),this.#i.push(o)}catch(e){throw e}finally{this.#h.removeEventListener(n.eventName,a),this.dispatchEvent(new h({type:"COMPLETE",data:"done"}))}}#u(e,t){e.traceParsedData=t,this.#l++;let a=`Trace ${this.#l}`,n=null;if(e.traceParsedData&&(n=s.Trace.extractOriginFromTrace(e.traceParsedData.Meta.mainFrameURL),n)){const e=r.MapUtilities.getWithDefault(this.#c,n,(()=>1));a=`${n} (${e})`,this.#c.set(n,e+1)}this.#d.push(a)}traceParsedData(e=this.#i.length-1){return this.#i[e]?this.#i[e].traceParsedData:null}metadata(e){return this.#i[e]?this.#i[e].metadata:null}traceEvents(e){return this.#i[e]?this.#i[e].traceEvents:null}size(){return this.#i.length}deleteTraceByIndex(e){this.#i.splice(e,1),this.#d.splice(e,1)}getRecordingsAvailable(){return this.#d}reset(){this.#h.reset()}}class h extends Event{data;static eventName="modelupdate";constructor(e){super(h.eventName),this.data=e}}var u=Object.freeze({__proto__:null,Model:l,ModelUpdateEvent:h,isModelUpdateDataComplete:function(e){return"COMPLETE"===e.type},isModelUpdateDataProgress:function(e){return"PROGRESS_UPDATE"===e.type}});export{d as Processor,u as TraceModel};
@@ -0,0 +1 @@
1
+ var n=Object.freeze({__proto__:null,MicroSeconds:function(n){return n},MilliSeconds:function(n){return n},Seconds:function(n){return n}});function e(n){return"b"===n||"e"===n||"n"===n}function t(n){return"X"===n.ph}function r(n){return"I"===n.ph}function i(n){return"navigationStart"===n.name}function a(n){return"LayoutShift"===n.name}function c(n){return"EventTiming"===n.name}function u(n){return new Set(["b","n","e","T","S","F","p"]).has(n.ph)}var o=Object.freeze({__proto__:null,isNestableAsyncPhase:e,isAsyncPhase:function(n){return e(n)||"S"===n||"T"===n||"F"===n||"p"===n},isFlowPhase:function(n){return"s"===n||"t"===n||"f"===n},isSyntheticInteractionEvent:function(n){return Boolean("interactionId"in n&&n.args?.data&&"beginEvent"in n.args.data&&"endEvent"in n.args.data)},ProfileID:function(n){return n},CallFrameID:function(n){return n},ProcessID:function(n){return n},ThreadID:function(n){return n},isTraceEventComplete:t,isTraceEventDispatch:function(n){return"EventDispatch"===n.name},isTraceEventInstant:r,isTraceEventRendererEvent:function(n){return r(n)||t(n)},isThreadName:function(n){return"thread_name"===n.name},isProcessName:function(n){return"process_name"===n.name},isTraceEventTracingStartedInBrowser:function(n){return"TracingStartedInBrowser"===n.name},isTraceEventFrameCommittedInBrowser:function(n){return"FrameCommittedInBrowser"===n.name},isTraceEventCommitLoad:function(n){return"CommitLoad"===n.name},isTraceEventNavigationStart:i,isTraceEventAnimation:function(n){return"Animation"===n.name},isTraceEventLayoutShift:a,isTraceEventLayoutInvalidation:function(n){return"LayoutInvalidationTracking"===n.name||"ScheduleStyleInvalidationTracking"===n.name},isTraceEventStyleRecalcInvalidation:function(n){return"StyleRecalcInvalidationTracking"===n.name},isTraceEventFirstContentfulPaint:function(n){return"firstContentfulPaint"===n.name},isTraceEventLargestContentfulPaintCandidate:function(n){return"largestContentfulPaint::Candidate"===n.name},isTraceEventLargestImagePaintCandidate:function(n){return"LargestImagePaint::Candidate"===n.name},isTraceEventLargestTextPaintCandidate:function(n){return"LargestTextPaint::Candidate"===n.name},isTraceEventMarkLoad:function(n){return"MarkLoad"===n.name},isTraceEventFirstPaint:function(n){return"firstPaint"===n.name},isTraceEventMarkDOMContent:function(n){return"MarkDOMContent"===n.name},isTraceEventInteractiveTime:function(n){return"InteractiveTime"===n.name},isTraceEventEventTiming:c,isTraceEventEventTimingEnd:function(n){return c(n)&&"e"===n.ph},isTraceEventEventTimingStart:function(n){return c(n)&&"b"===n.ph},isTraceEventGPUTask:function(n){return"GPUTask"===n.name},isTraceEventProfile:function(n){return"Profile"===n.name},isTraceEventProfileChunk:function(n){return"ProfileChunk"===n.name},isTraceEventResourceSendRequest:function(n){return"ResourceSendRequest"===n.name},isTraceEventResourceReceiveResponse:function(n){return"ResourceReceiveResponse"===n.name},isTraceEventResourceFinish:function(n){return"ResourceFinish"===n.name},isTraceEventResourceWillSendRequest:function(n){return"ResourceWillSendRequest"===n.name},isTraceEventResourceReceivedData:function(n){return"ResourceReceivedData"===n.name},isSyntheticNetworkRequestDetailsEvent:function(n){return"SyntheticNetworkRequest"===n.name},isTraceEventPrePaint:function(n){return"PrePaint"===n.name},isTraceEventNavigationStartWithURL:function(n){return Boolean(i(n)&&n.args.data&&""!==n.args.data.documentLoaderURL)},isTraceEventMainFrameViewport:function(n){return"PaintTimingVisualizer::Viewport"===n.name},isSyntheticUserTimingTraceEvent:function(n){if("blink.user_timing"!==n.cat)return!1;const e=n.args?.data;return!!e&&("beginEvent"in e&&"endEvent"in e)},isSyntheticConsoleTimingTraceEvent:function(n){if("blink.console"!==n.cat)return!1;const e=n.args?.data;return!!e&&("beginEvent"in e&&"endEvent"in e)},isTraceEventPerformanceMeasure:function(n){return u(n)&&"blink.user_timing"===n.cat},isTraceEventPerformanceMark:function(n){return("R"===n.ph||"I"===n.ph)&&"blink.user_timing"===n.cat},isTraceEventConsoleTime:function(n){return u(n)&&"blink.console"===n.cat},isTraceEventTimeStamp:function(n){return"I"===n.ph&&"TimeStamp"===n.name},isTraceEventAsyncPhase:u,isSyntheticLayoutShift:function(n){return!(!a(n)||!n.args.data)&&"rawEvent"in n.args.data}});export{n as Timing,o as TraceEvents};
@@ -0,0 +1 @@
1
+ import*as e from"./workspace.js";self.Workspace=self.Workspace||{},Workspace=Workspace||{},Workspace.FileManager=e.FileManager.FileManager,Workspace.UISourceCode=e.UISourceCode.UISourceCode,Workspace.UISourceCode.Events=e.UISourceCode.Events,Workspace.UISourceCode.Message=e.UISourceCode.Message,Workspace.UISourceCode.Message.Level=e.UISourceCode.Message.Level,Workspace.UILocation=e.UISourceCode.UILocation,Workspace.UISourceCodeMetadata=e.UISourceCode.UISourceCodeMetadata,Workspace.Workspace=e.Workspace.WorkspaceImpl,Workspace.Workspace.Events=e.Workspace.Events,Workspace.Project=e.Workspace.Project,Workspace.projectTypes=e.Workspace.projectTypes,Workspace.ProjectStore=e.Workspace.ProjectStore;
@@ -0,0 +1 @@
1
+ import*as e from"../../core/common/common.js";import*as t from"../../core/host/host.js";import*as n from"../../core/i18n/i18n.js";import*as r from"../../core/platform/platform.js";import*as o from"../text_utils/text_utils.js";let s;class i extends e.ObjectWrapper.ObjectWrapper{saveCallbacks;constructor(){super(),this.saveCallbacks=new Map,t.InspectorFrontendHost.InspectorFrontendHostInstance.events.addEventListener(t.InspectorFrontendHostAPI.Events.SavedURL,this.savedURL,this),t.InspectorFrontendHost.InspectorFrontendHostInstance.events.addEventListener(t.InspectorFrontendHostAPI.Events.CanceledSaveURL,this.canceledSavedURL,this),t.InspectorFrontendHost.InspectorFrontendHostInstance.events.addEventListener(t.InspectorFrontendHostAPI.Events.AppendedToURL,this.appendedToURL,this)}static instance(e={forceNew:null}){const{forceNew:t}=e;return s&&!t||(s=new i),s}save(e,n,r){const o=new Promise((t=>this.saveCallbacks.set(e,t)));return t.InspectorFrontendHost.InspectorFrontendHostInstance.save(e,n,r),o}savedURL(e){const{url:t,fileSystemPath:n}=e.data,r=this.saveCallbacks.get(t);this.saveCallbacks.delete(t),r&&r({fileSystemPath:n})}canceledSavedURL({data:e}){const t=this.saveCallbacks.get(e);this.saveCallbacks.delete(e),t&&t(null)}append(e,n){t.InspectorFrontendHost.InspectorFrontendHostInstance.append(e,n)}close(e){t.InspectorFrontendHost.InspectorFrontendHostInstance.close(e)}appendedToURL({data:e}){this.dispatchEventToListeners(a.AppendedToURL,e)}}var a;(a||(a={})).AppendedToURL="AppendedToURL";var c,l=Object.freeze({__proto__:null,FileManager:i,get Events(){return a}});!function(e){e.Debugger="debugger",e.Formatter="formatter",e.Network="network",e.FileSystem="filesystem",e.ContentScripts="contentscripts",e.Service="service"}(c||(c={}));let d;class h extends e.ObjectWrapper.ObjectWrapper{projectsInternal;hasResourceContentTrackingExtensionsInternal;constructor(){super(),this.projectsInternal=new Map,this.hasResourceContentTrackingExtensionsInternal=!1}static instance(e={forceNew:null}){const{forceNew:t}=e;return d&&!t||(d=new h),d}static removeInstance(){d=void 0}uiSourceCode(e,t){const n=this.projectsInternal.get(e);return n?n.uiSourceCodeForURL(t):null}uiSourceCodeForURL(e){for(const t of this.projectsInternal.values()){const n=t.uiSourceCodeForURL(e);if(n)return n}return null}findCompatibleUISourceCodes(e){const t=e.url(),n=e.contentType(),r=[];for(const e of this.projectsInternal.values()){const o=e.uiSourceCodeForURL(t);o&&o.url()===t&&o.contentType()===n&&r.push(o)}return r}uiSourceCodesForProjectType(e){const t=[];for(const n of this.projectsInternal.values())n.type()===e&&t.push(...n.uiSourceCodes());return t}addProject(e){console.assert(!this.projectsInternal.has(e.id()),`A project with id ${e.id()} already exists!`),this.projectsInternal.set(e.id(),e),this.dispatchEventToListeners(u.ProjectAdded,e)}removeProject(e){this.projectsInternal.delete(e.id()),this.dispatchEventToListeners(u.ProjectRemoved,e)}project(e){return this.projectsInternal.get(e)||null}projects(){return[...this.projectsInternal.values()]}projectsForType(e){return this.projects().filter((function(t){return t.type()===e}))}uiSourceCodes(){const e=[];for(const t of this.projectsInternal.values())e.push(...t.uiSourceCodes());return e}setHasResourceContentTrackingExtensions(e){this.hasResourceContentTrackingExtensionsInternal=e}hasResourceContentTrackingExtensions(){return this.hasResourceContentTrackingExtensionsInternal}}var u;!function(e){e.UISourceCodeAdded="UISourceCodeAdded",e.UISourceCodeRemoved="UISourceCodeRemoved",e.UISourceCodeRenamed="UISourceCodeRenamed",e.WorkingCopyChanged="WorkingCopyChanged",e.WorkingCopyCommitted="WorkingCopyCommitted",e.WorkingCopyCommittedByUser="WorkingCopyCommittedByUser",e.ProjectAdded="ProjectAdded",e.ProjectRemoved="ProjectRemoved"}(u||(u={}));var p=Object.freeze({__proto__:null,get projectTypes(){return c},ProjectStore:class{workspaceInternal;idInternal;typeInternal;displayNameInternal;#e;constructor(e,t,n,r){this.workspaceInternal=e,this.idInternal=t,this.typeInternal=n,this.displayNameInternal=r,this.#e=new Map}id(){return this.idInternal}type(){return this.typeInternal}displayName(){return this.displayNameInternal}workspace(){return this.workspaceInternal}createUISourceCode(e,t){return new g(this,e,t)}addUISourceCode(e){const t=e.url();return!this.uiSourceCodeForURL(t)&&(this.#e.set(t,e),this.workspaceInternal.dispatchEventToListeners(u.UISourceCodeAdded,e),!0)}removeUISourceCode(e){const t=this.#e.get(e);void 0!==t&&(this.#e.delete(e),this.workspaceInternal.dispatchEventToListeners(u.UISourceCodeRemoved,t))}removeProject(){this.workspaceInternal.removeProject(this),this.#e.clear()}uiSourceCodeForURL(e){return this.#e.get(e)??null}uiSourceCodes(){return this.#e.values()}renameUISourceCode(t,n){const r=t.url(),o=t.parentURL()?e.ParsedURL.ParsedURL.urlFromParentUrlAndName(t.parentURL(),n):e.ParsedURL.ParsedURL.preEncodeSpecialCharactersInPath(n);this.#e.set(o,t),this.#e.delete(r)}rename(e,t,n){}excludeFolder(e){}deleteFile(e){}remove(){}indexContent(e){}},WorkspaceImpl:h,get Events(){return u}});const m={index:"(index)",thisFileWasChangedExternally:"This file was changed externally. Would you like to reload it?"},I=n.i18n.registerUIStrings("models/workspace/UISourceCode.ts",m),C=n.i18n.getLocalizedString.bind(void 0,I);class g extends e.ObjectWrapper.ObjectWrapper{projectInternal;urlInternal;originInternal;parentURLInternal;nameInternal;contentTypeInternal;requestContentPromise;decorations=new Map;hasCommitsInternal;messagesInternal;contentLoadedInternal;contentInternal;forceLoadOnCheckContentInternal;checkingContent;lastAcceptedContent;workingCopyInternal;workingCopyGetter;disableEditInternal;contentEncodedInternal;isKnownThirdPartyInternal;isUnconditionallyIgnoreListedInternal;constructor(t,n,o){super(),this.projectInternal=t,this.urlInternal=n;const s=e.ParsedURL.ParsedURL.fromString(n);s?(this.originInternal=s.securityOrigin(),this.parentURLInternal=e.ParsedURL.ParsedURL.concatenate(this.originInternal,s.folderPathComponents),!s.queryParams||s.lastPathComponent&&o.isFromSourceMap()?this.nameInternal=decodeURIComponent(s.lastPathComponent):this.nameInternal=s.lastPathComponent+"?"+s.queryParams):(this.originInternal=r.DevToolsPath.EmptyUrlString,this.parentURLInternal=r.DevToolsPath.EmptyUrlString,this.nameInternal=n),this.contentTypeInternal=o,this.requestContentPromise=null,this.hasCommitsInternal=!1,this.messagesInternal=null,this.contentLoadedInternal=!1,this.contentInternal=null,this.forceLoadOnCheckContentInternal=!1,this.checkingContent=!1,this.lastAcceptedContent=null,this.workingCopyInternal=null,this.workingCopyGetter=null,this.disableEditInternal=!1,this.isKnownThirdPartyInternal=!1,this.isUnconditionallyIgnoreListedInternal=!1}requestMetadata(){return this.projectInternal.requestMetadata(this)}name(){return this.nameInternal}mimeType(){return this.projectInternal.mimeType(this)}url(){return this.urlInternal}canononicalScriptId(){return`${this.contentTypeInternal.name()},${this.urlInternal}`}parentURL(){return this.parentURLInternal}origin(){return this.originInternal}fullDisplayName(){return this.projectInternal.fullDisplayName(this)}displayName(e){if(!this.nameInternal)return C(m.index);const t=this.nameInternal;return e?t:r.StringUtilities.trimEndWithMaxLength(t,100)}canRename(){return this.projectInternal.canRename()}rename(e){let t;const n=new Promise((e=>{t=e}));return this.projectInternal.rename(this,e,function(e,n,r,o){e&&this.updateName(n,r,o);t(e)}.bind(this)),n}remove(){this.projectInternal.deleteFile(this)}updateName(t,n,r){const o=this.urlInternal;this.nameInternal=t,this.urlInternal=n||e.ParsedURL.ParsedURL.relativePathToUrlString(t,o),r&&(this.contentTypeInternal=r),this.dispatchEventToListeners(y.TitleChanged,this),this.project().workspace().dispatchEventToListeners(u.UISourceCodeRenamed,{oldURL:o,uiSourceCode:this})}contentURL(){return this.url()}contentType(){return this.contentTypeInternal}project(){return this.projectInternal}requestContent({cachedWasmOnly:t}={}){return this.requestContentPromise?this.requestContentPromise:this.contentLoadedInternal?Promise.resolve(this.contentInternal):t&&"application/wasm"===this.mimeType()?Promise.resolve({content:"",isEncoded:!1,wasmDisassemblyInfo:new e.WasmDisassembly.WasmDisassembly([],[],[])}):(this.requestContentPromise=this.requestContentImpl(),this.requestContentPromise)}async requestContentImpl(){try{const e=await this.projectInternal.requestFileContent(this);this.contentLoadedInternal||(this.contentLoadedInternal=!0,this.contentInternal=e,this.contentEncodedInternal=e.isEncoded)}catch(e){this.contentLoadedInternal=!0,this.contentInternal={content:null,error:e?String(e):"",isEncoded:!1}}return this.contentInternal}#t(e){return e?e.isEncoded&&e.content?window.atob(e.content):e.content:null}async checkContentUpdated(){if(!this.contentLoadedInternal&&!this.forceLoadOnCheckContentInternal)return;if(!this.projectInternal.canSetFileContent()||this.checkingContent)return;this.checkingContent=!0;const t=await this.projectInternal.requestFileContent(this);if("error"in t)return;if(this.checkingContent=!1,null===t.content){const e=this.workingCopy();return this.contentCommitted("",!1),void this.setWorkingCopy(e)}if(this.lastAcceptedContent===t.content)return;if(this.#t(this.contentInternal)===this.#t(t))return void(this.lastAcceptedContent=null);if(!this.isDirty()||this.workingCopyInternal===t.content)return void this.contentCommitted(t.content,!1);await e.Revealer.reveal(this),await new Promise((e=>window.setTimeout(e,0)));window.confirm(C(m.thisFileWasChangedExternally))?this.contentCommitted(t.content,!1):this.lastAcceptedContent=t.content}forceLoadOnCheckContent(){this.forceLoadOnCheckContentInternal=!0}commitContent(e){this.projectInternal.canSetFileContent()&&this.projectInternal.setFileContent(this,e,!1),this.contentCommitted(e,!0)}contentCommitted(e,t){this.lastAcceptedContent=null,this.contentInternal={content:e,isEncoded:!1},this.contentLoadedInternal=!0,this.requestContentPromise=null,this.hasCommitsInternal=!0,this.innerResetWorkingCopy();const n={uiSourceCode:this,content:e,encoded:this.contentEncodedInternal};this.dispatchEventToListeners(y.WorkingCopyCommitted,n),this.projectInternal.workspace().dispatchEventToListeners(u.WorkingCopyCommitted,n),t&&this.projectInternal.workspace().dispatchEventToListeners(u.WorkingCopyCommittedByUser,n)}addRevision(e){this.commitContent(e)}hasCommits(){return this.hasCommitsInternal}workingCopy(){return this.workingCopyContent().content||""}workingCopyContent(){return this.workingCopyGetter&&(this.workingCopyInternal=this.workingCopyGetter(),this.workingCopyGetter=null),this.isDirty()?{content:this.workingCopyInternal,isEncoded:!1}:this.contentInternal?this.contentInternal:{content:"",isEncoded:!1}}resetWorkingCopy(){this.innerResetWorkingCopy(),this.workingCopyChanged()}innerResetWorkingCopy(){this.workingCopyInternal=null,this.workingCopyGetter=null}setWorkingCopy(e){this.workingCopyInternal=e,this.workingCopyGetter=null,this.workingCopyChanged()}setContent(e,t){this.contentEncodedInternal=t,this.projectInternal.canSetFileContent()&&this.projectInternal.setFileContent(this,e,t),this.contentCommitted(e,!0)}setWorkingCopyGetter(e){this.workingCopyGetter=e,this.workingCopyChanged()}workingCopyChanged(){this.removeAllMessages(),this.dispatchEventToListeners(y.WorkingCopyChanged,this),this.projectInternal.workspace().dispatchEventToListeners(u.WorkingCopyChanged,{uiSourceCode:this})}removeWorkingCopyGetter(){this.workingCopyGetter&&(this.workingCopyInternal=this.workingCopyGetter(),this.workingCopyGetter=null)}commitWorkingCopy(){this.isDirty()&&this.commitContent(this.workingCopy())}isDirty(){return null!==this.workingCopyInternal||null!==this.workingCopyGetter}isKnownThirdParty(){return this.isKnownThirdPartyInternal}markKnownThirdParty(){this.isKnownThirdPartyInternal=!0}isUnconditionallyIgnoreListed(){return this.isUnconditionallyIgnoreListedInternal}markAsUnconditionallyIgnoreListed(){this.isUnconditionallyIgnoreListedInternal=!0}extension(){return e.ParsedURL.ParsedURL.extractExtension(this.nameInternal)}content(){return this.contentInternal?.content||""}loadError(){return this.contentInternal&&"error"in this.contentInternal&&this.contentInternal.error||null}searchInContent(e,t,n){const r=this.content();return r?Promise.resolve(o.TextUtils.performSearchInContent(r,e,t,n)):this.projectInternal.searchInFileContent(this,e,t,n)}contentLoaded(){return this.contentLoadedInternal}uiLocation(e,t){return new k(this,e,t)}messages(){return this.messagesInternal?new Set(this.messagesInternal):new Set}addLineMessage(e,t,n,r,s){const i=o.TextRange.TextRange.createFromLocation(n,r||0),a=new v(e,t,s,i);return this.addMessage(a),a}addMessage(e){this.messagesInternal||(this.messagesInternal=new Set),this.messagesInternal.add(e),this.dispatchEventToListeners(y.MessageAdded,e)}removeMessage(e){this.messagesInternal?.delete(e)&&this.dispatchEventToListeners(y.MessageRemoved,e)}removeAllMessages(){if(this.messagesInternal){for(const e of this.messagesInternal)this.dispatchEventToListeners(y.MessageRemoved,e);this.messagesInternal=null}}setDecorationData(e,t){t!==this.decorations.get(e)&&(this.decorations.set(e,t),this.dispatchEventToListeners(y.DecorationChanged,e))}getDecorationData(e){return this.decorations.get(e)}disableEdit(){this.disableEditInternal=!0}editDisabled(){return this.disableEditInternal}}var y;!function(e){e.WorkingCopyChanged="WorkingCopyChanged",e.WorkingCopyCommitted="WorkingCopyCommitted",e.TitleChanged="TitleChanged",e.MessageAdded="MessageAdded",e.MessageRemoved="MessageRemoved",e.DecorationChanged="DecorationChanged"}(y||(y={}));class k{uiSourceCode;lineNumber;columnNumber;constructor(e,t,n){this.uiSourceCode=e,this.lineNumber=t,this.columnNumber=n}linkText(e=!1,t=!1){const n=this.uiSourceCode.displayName(e),r=this.lineAndColumnText(t);return r?n+":"+r:n}lineAndColumnText(e=!1){let t;return"application/wasm"===this.uiSourceCode.mimeType()?"number"==typeof this.columnNumber&&(t=`0x${this.columnNumber.toString(16)}`):(t=`${this.lineNumber+1}`,e&&"number"==typeof this.columnNumber&&(t+=":"+(this.columnNumber+1))),t}id(){return"number"==typeof this.columnNumber?this.uiSourceCode.project().id()+":"+this.uiSourceCode.url()+":"+this.lineNumber+":"+this.columnNumber:this.lineId()}lineId(){return this.uiSourceCode.project().id()+":"+this.uiSourceCode.url()+":"+this.lineNumber}toUIString(){return this.uiSourceCode.url()+":"+(this.lineNumber+1)}static comparator(e,t){return e.compareTo(t)}compareTo(e){return this.uiSourceCode.url()!==e.uiSourceCode.url()?this.uiSourceCode.url()>e.uiSourceCode.url()?1:-1:this.lineNumber!==e.lineNumber?this.lineNumber-e.lineNumber:this.columnNumber===e.columnNumber?0:"number"!=typeof this.columnNumber?-1:"number"!=typeof e.columnNumber?1:this.columnNumber-e.columnNumber}}class v{levelInternal;textInternal;range;clickHandlerInternal;constructor(e,t,n,r){this.levelInternal=e,this.textInternal=t,this.range=r??new o.TextRange.TextRange(0,0,0,0),this.clickHandlerInternal=n}level(){return this.levelInternal}text(){return this.textInternal}clickHandler(){return this.clickHandlerInternal}lineNumber(){return this.range.startLine}columnNumber(){return this.range.startColumn}isEqual(e){return this.text()===e.text()&&this.level()===e.level()&&this.range.equal(e.range)}}!function(e){let t;!function(e){e.Error="Error",e.Issue="Issue",e.Warning="Warning"}(t=e.Level||(e.Level={}))}(v||(v={}));var L=Object.freeze({__proto__:null,UISourceCode:g,get Events(){return y},UILocation:k,get Message(){return v},LineMarker:class{rangeInternal;typeInternal;dataInternal;constructor(e,t,n){this.rangeInternal=e,this.typeInternal=t,this.dataInternal=n}range(){return this.rangeInternal}type(){return this.typeInternal}data(){return this.dataInternal}},UISourceCodeMetadata:class{modificationTime;contentSize;constructor(e,t){this.modificationTime=e,this.contentSize=t}}});export{l as FileManager,L as UISourceCode,p as Workspace};
@@ -0,0 +1 @@
1
+ import*as f from"./workspace_diff.js";self.WorkspaceDiff=self.WorkspaceDiff||{},WorkspaceDiff=WorkspaceDiff||{},WorkspaceDiff.WorkspaceDiff=f.WorkspaceDiff.WorkspaceDiffImpl,WorkspaceDiff.WorkspaceDiff.UISourceCodeDiff=f.WorkspaceDiff.UISourceCodeDiff,WorkspaceDiff.WorkspaceDiff.UpdateTimeout=f.WorkspaceDiff.UpdateTimeout,WorkspaceDiff.Events=f.WorkspaceDiff.Events,WorkspaceDiff.workspaceDiff=f.WorkspaceDiff.workspaceDiff,WorkspaceDiff.DiffUILocation=f.WorkspaceDiff.DiffUILocation;
@@ -0,0 +1 @@
1
+ import*as e from"../../core/common/common.js";import*as i from"../../core/host/host.js";import*as t from"../../third_party/diff/diff.js";import*as o from"../formatter/formatter.js";import*as r from"../persistence/persistence.js";import*as s from"../workspace/workspace.js";class n extends e.ObjectWrapper.ObjectWrapper{uiSourceCodeDiffs;loadingUISourceCodes;modifiedUISourceCodesInternal;constructor(e){super(),this.uiSourceCodeDiffs=new WeakMap,this.loadingUISourceCodes=new Map,this.modifiedUISourceCodesInternal=new Set,e.addEventListener(s.Workspace.Events.WorkingCopyChanged,this.uiSourceCodeChanged,this),e.addEventListener(s.Workspace.Events.WorkingCopyCommitted,this.uiSourceCodeChanged,this),e.addEventListener(s.Workspace.Events.UISourceCodeAdded,this.uiSourceCodeAdded,this),e.addEventListener(s.Workspace.Events.UISourceCodeRemoved,this.uiSourceCodeRemoved,this),e.addEventListener(s.Workspace.Events.ProjectRemoved,this.projectRemoved,this),e.uiSourceCodes().forEach(this.updateModifiedState.bind(this))}requestDiff(e,i){return this.uiSourceCodeDiff(e).requestDiff(i)}subscribeToDiffChange(e,i,t){this.uiSourceCodeDiff(e).addEventListener(u.DiffChanged,i,t)}unsubscribeFromDiffChange(e,i,t){this.uiSourceCodeDiff(e).removeEventListener(u.DiffChanged,i,t)}modifiedUISourceCodes(){return Array.from(this.modifiedUISourceCodesInternal)}isUISourceCodeModified(e){return this.modifiedUISourceCodesInternal.has(e)||this.loadingUISourceCodes.has(e)}uiSourceCodeDiff(e){let i=this.uiSourceCodeDiffs.get(e);return i||(i=new d(e),this.uiSourceCodeDiffs.set(e,i)),i}uiSourceCodeChanged(e){const i=e.data.uiSourceCode;this.updateModifiedState(i)}uiSourceCodeAdded(e){const i=e.data;this.updateModifiedState(i)}uiSourceCodeRemoved(e){const i=e.data;this.removeUISourceCode(i)}projectRemoved(e){const i=e.data;for(const e of i.uiSourceCodes())this.removeUISourceCode(e)}removeUISourceCode(e){this.loadingUISourceCodes.delete(e);const i=this.uiSourceCodeDiffs.get(e);i&&(i.dispose=!0),this.markAsUnmodified(e)}markAsUnmodified(e){this.uiSourceCodeProcessedForTest(),this.modifiedUISourceCodesInternal.delete(e)&&this.dispatchEventToListeners("ModifiedStatusChanged",{uiSourceCode:e,isModified:!1})}markAsModified(e){this.uiSourceCodeProcessedForTest(),this.modifiedUISourceCodesInternal.has(e)||(this.modifiedUISourceCodesInternal.add(e),this.dispatchEventToListeners("ModifiedStatusChanged",{uiSourceCode:e,isModified:!0}))}uiSourceCodeProcessedForTest(){}async updateModifiedState(e){if(this.loadingUISourceCodes.delete(e),e.project().type()!==s.Workspace.projectTypes.Network)return void this.markAsUnmodified(e);if(e.isDirty())return void this.markAsModified(e);if(!e.hasCommits())return void this.markAsUnmodified(e);const i=Promise.all([this.requestOriginalContentForUISourceCode(e),e.requestContent().then((e=>e.content))]);this.loadingUISourceCodes.set(e,i);const t=await i;this.loadingUISourceCodes.get(e)===i&&(this.loadingUISourceCodes.delete(e),null!==t[0]&&null!==t[1]&&t[0]!==t[1]?this.markAsModified(e):this.markAsUnmodified(e))}requestOriginalContentForUISourceCode(e){return this.uiSourceCodeDiff(e).originalContent()}revertToOriginal(e){return i.userMetrics.actionTaken(i.UserMetrics.Action.RevisionApplied),this.requestOriginalContentForUISourceCode(e).then((function(i){"string"==typeof i&&e.addRevision(i)}))}}class d extends e.ObjectWrapper.ObjectWrapper{uiSourceCode;requestDiffPromise;pendingChanges;dispose;constructor(e){super(),this.uiSourceCode=e,e.addEventListener(s.UISourceCode.Events.WorkingCopyChanged,this.uiSourceCodeChanged,this),e.addEventListener(s.UISourceCode.Events.WorkingCopyCommitted,this.uiSourceCodeChanged,this),this.requestDiffPromise=null,this.pendingChanges=null,this.dispose=!1}uiSourceCodeChanged(){this.pendingChanges&&(clearTimeout(this.pendingChanges),this.pendingChanges=null),this.requestDiffPromise=null;const e=this.uiSourceCode.content(),i=!e||e.length<65536?0:c;this.pendingChanges=window.setTimeout(function(){if(this.dispose)return;this.dispatchEventToListeners(u.DiffChanged),this.pendingChanges=null}.bind(this),i)}requestDiff(e){return this.requestDiffPromise||(this.requestDiffPromise=this.innerRequestDiff(e)),this.requestDiffPromise}async originalContent(){const e=r.NetworkPersistenceManager.NetworkPersistenceManager.instance().originalContentForUISourceCode(this.uiSourceCode);if(e)return e;const i=await this.uiSourceCode.project().requestFileContent(this.uiSourceCode);return i.content||"error"in i&&i.error||""}async innerRequestDiff({shouldFormatDiff:e}){if(this.dispose)return null;let i=await this.originalContent();if(null===i)return null;if(i.length>1048576)return null;if(this.dispose)return null;let r,s=this.uiSourceCode.workingCopy();if(s||this.uiSourceCode.contentLoaded()||(s=(await this.uiSourceCode.requestContent()).content),s.length>1048576)return null;if(this.dispose)return null;if(null===s||null===i)return null;if(e){i=(await o.ScriptFormatter.format(this.uiSourceCode.contentType(),this.uiSourceCode.mimeType(),i)).formattedContent;const e=await o.ScriptFormatter.format(this.uiSourceCode.contentType(),this.uiSourceCode.mimeType(),s);s=e.formattedContent,r=e.formattedMapping}const n=/\r\n?|\n/;return{diff:t.Diff.DiffWrapper.lineDiff(i.split(n),s.split(n)),formattedCurrentMapping:r}}}var u;!function(e){e.DiffChanged="DiffChanged"}(u||(u={}));let a=null;const c=200;var f=Object.freeze({__proto__:null,WorkspaceDiffImpl:n,UISourceCodeDiff:d,get UISourceCodeDiffEvents(){return u},workspaceDiff:function(){return a||(a=new n(s.Workspace.WorkspaceImpl.instance())),a},DiffUILocation:class{uiSourceCode;constructor(e){this.uiSourceCode=e}},UpdateTimeout:c});export{f as WorkspaceDiff};
@@ -0,0 +1,20 @@
1
+ <!--
2
+ * Copyright 2018 The Chromium Authors. All rights reserved.
3
+ * Use of this source code is governed by a BSD-style license that can be
4
+ * found in the LICENSE file.
5
+ -->
6
+ <!DOCTYPE html>
7
+ <html lang="en">
8
+ <meta charset="utf-8">
9
+ <title>DevTools</title>
10
+ <style>
11
+ @media (prefers-color-scheme: dark) {
12
+ body {
13
+ background-color: rgb(41 42 45);
14
+ }
15
+ }
16
+ </style>
17
+ <meta http-equiv="Content-Security-Policy" content="object-src 'none'; script-src 'self' 'unsafe-eval' https://chrome-devtools-frontend.appspot.com">
18
+ <meta name="referrer" content="no-referrer">
19
+ <script type="module" src="./entrypoints/ndb_app/ndb_app.js"></script>
20
+ <body class="undocked" id="-blink-dev-tools">
@@ -0,0 +1,20 @@
1
+ <!--
2
+ * Copyright 2018 The Chromium Authors. All rights reserved.
3
+ * Use of this source code is governed by a BSD-style license that can be
4
+ * found in the LICENSE file.
5
+ -->
6
+ <!DOCTYPE html>
7
+ <html lang="en">
8
+ <meta charset="utf-8">
9
+ <title>DevTools</title>
10
+ <style>
11
+ @media (prefers-color-scheme: dark) {
12
+ body {
13
+ background-color: rgb(41 42 45);
14
+ }
15
+ }
16
+ </style>
17
+ <meta http-equiv="Content-Security-Policy" content="object-src 'none'; script-src 'self' 'unsafe-eval' https://chrome-devtools-frontend.appspot.com">
18
+ <meta name="referrer" content="no-referrer">
19
+ <script type="module" src="./entrypoints/node_app/node_app.js"></script>
20
+ <body class="undocked" id="-blink-dev-tools">
@@ -0,0 +1 @@
1
+ import*as e from"./accessibility.js";self.Accessibility=self.Accessibility||{},Accessibility=Accessibility||{},Accessibility.ARIAAttributesPane=e.ARIAAttributesView.ARIAAttributesPane,Accessibility.ARIAAttributesTreeElement=e.ARIAAttributesView.ARIAAttributesTreeElement,Accessibility.ARIAAttributesPane.ARIAAttributePrompt=e.ARIAAttributesView.ARIAAttributePrompt,Accessibility.ARIAMetadata=e.ARIAMetadata.ARIAMetadata,Accessibility.ARIAMetadata.Attribute=e.ARIAMetadata.Attribute,Accessibility.ariaMetadata=e.ARIAMetadata.ariaMetadata,Accessibility.AXBreadcrumbsPane=e.AXBreadcrumbsPane.AXBreadcrumbsPane,Accessibility.AXBreadcrumb=e.AXBreadcrumbsPane.AXBreadcrumb,Accessibility.AXBreadcrumb.RoleStyles=e.AXBreadcrumbsPane.RoleStyles,Accessibility.AXNodeSubPane=e.AccessibilityNodeView.AXNodeSubPane,Accessibility.AXNodePropertyTreeElement=e.AccessibilityNodeView.AXNodePropertyTreeElement,Accessibility.AXNodePropertyTreeElement.TypeStyles=e.AccessibilityNodeView.TypeStyles,Accessibility.AXNodePropertyTreeElement.StringProperties=e.AccessibilityNodeView.StringProperties,Accessibility.AXNodePropertyTreePropertyElement=e.AccessibilityNodeView.AXNodePropertyTreePropertyElement,Accessibility.AXValueSourceTreeElement=e.AccessibilityNodeView.AXValueSourceTreeElement,Accessibility.AXRelatedNodeSourceTreeElement=e.AccessibilityNodeView.AXRelatedNodeSourceTreeElement,Accessibility.AXRelatedNodeElement=e.AccessibilityNodeView.AXRelatedNodeElement,Accessibility.AXNodeIgnoredReasonTreeElement=e.AccessibilityNodeView.AXNodeIgnoredReasonTreeElement,Accessibility.AccessibilitySidebarView=e.AccessibilitySidebarView.AccessibilitySidebarView,Accessibility.AccessibilitySubPane=e.AccessibilitySubPane.AccessibilitySubPane,Accessibility.AccessibilityStrings={},Accessibility.AccessibilityStrings.AXAttributes=e.AccessibilityStrings.AXAttributes,Accessibility.AccessibilityStrings.AXSourceTypes=e.AccessibilityStrings.AXSourceTypes,Accessibility.AccessibilityStrings.AXNativeSourceTypes=e.AccessibilityStrings.AXNativeSourceTypes;
@@ -0,0 +1 @@
1
+ import*as i from"../../core/i18n/i18n.js";import*as e from"../../ui/legacy/legacy.js";let s;const t={accessibility:"Accessibility",shoAccessibility:"Show Accessibility"},c=i.i18n.registerUIStrings("panels/accessibility/accessibility-meta.ts",t),a=i.i18n.getLazilyComputedLocalizedString.bind(void 0,c);e.ViewManager.registerViewExtension({location:"elements-sidebar",id:"accessibility.view",title:a(t.accessibility),commandPrompt:a(t.shoAccessibility),order:10,persistence:"permanent",loadView:async()=>(await async function(){return s||(s=await import("./accessibility.js")),s}()).AccessibilitySidebarView.AccessibilitySidebarView.instance()});
@@ -0,0 +1 @@
1
+ import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as a from"../../core/sdk/sdk.js";import*as r from"../../ui/legacy/legacy.js";import*as n from"../../core/root/root.js";import*as i from"../../core/platform/platform.js";import*as s from"../../core/host/host.js";import*as o from"../../ui/components/panel_feedback/panel_feedback.js";const l=new CSSStyleSheet;l.replaceSync('.widget.ax-subpane{overflow-x:hidden;user-select:text}.ax-ignored-info{padding:6px}.ax-ignored-node-pane{flex:none}.invalid{text-decoration:line-through}span.ax-value-undefined{font-style:italic}.ax-value-source-unused{opacity:70%}.ax-value-source-superseded,\n.ax-value-source-invalid{text-decoration:line-through}.tree-outline span[is="dt-icon-label"]{position:relative;left:-11px}.tree-outline li{display:block;overflow-x:hidden;align-items:baseline}.tree-outline li::before{content:"";width:14px;display:inline-block;margin-bottom:-2px;margin-right:3px}.tree-outline li.property{color:var(--color-text-primary)}.tree-outline li.invalid{position:relative;left:-2px}.tree-outline span[is="dt-icon-label"] + .ax-name{margin-left:-11px}.tree-outline li span{flex-shrink:0;text-overflow:ellipsis;white-space:nowrap}@media (forced-colors: active){.ax-value-source-unused{opacity:100%}.tree-outline-disclosure:hover li.parent::before{background-color:ButtonText}}\n/*# sourceURL=accessibilityNode.css */\n');const d={disabled:"Disabled",ifTrueThisElementCurrentlyCannot:"If true, this element currently cannot be interacted with.",invalidUserEntry:"Invalid user entry",ifTrueThisElementsUserentered:"If true, this element's user-entered value does not conform to validation requirement.",editable:"Editable",ifAndHowThisElementCanBeEdited:"If and how this element can be edited.",focusable:"Focusable",ifTrueThisElementCanReceiveFocus:"If true, this element can receive focus.",focused:"Focused",ifTrueThisElementCurrentlyHas:"If `true`, this element currently has focus.",canSetValue:"Can set value",whetherTheValueOfThisElementCan:"Whether the value of this element can be set.",liveRegion:"Live region",whetherAndWhatPriorityOfLive:"Whether and what priority of live updates may be expected for this element.",atomicLiveRegions:"Atomic (live regions)",ifThisElementMayReceiveLive:"If this element may receive live updates, whether the entire live region should be presented to the user on changes, or only changed nodes.",relevantLiveRegions:"Relevant (live regions)",ifThisElementMayReceiveLiveUpdates:"If this element may receive live updates, what type of updates should trigger a notification.",busyLiveRegions:"`Busy` (live regions)",whetherThisElementOrItsSubtree:"Whether this element or its subtree are currently being updated (and thus may be in an inconsistent state).",liveRegionRoot:"Live region root",ifThisElementMayReceiveLiveUpdatesThe:"If this element may receive live updates, the root element of the containing live region.",hasAutocomplete:"Has autocomplete",whetherAndWhatTypeOfAutocomplete:"Whether and what type of autocomplete suggestions are currently provided by this element.",hasPopup:"Has popup",whetherThisElementHasCausedSome:"Whether this element has caused some kind of pop-up (such as a menu) to appear.",level:"Level",theHierarchicalLevelOfThis:"The hierarchical level of this element.",multiselectable:"Multi-selectable",whetherAUserMaySelectMoreThanOne:"Whether a user may select more than one option from this widget.",orientation:"Orientation",whetherThisLinearElements:"Whether this linear element's orientation is horizontal or vertical.",multiline:"Multi-line",whetherThisTextBoxMayHaveMore:"Whether this text box may have more than one line.",readonlyString:"Read-only",ifTrueThisElementMayBeInteracted:"If true, this element may be interacted with, but its value cannot be changed.",requiredString:"Required",whetherThisElementIsARequired:"Whether this element is a required field in a form.",minimumValue:"Minimum value",forARangeWidgetTheMinimumAllowed:"For a range widget, the minimum allowed value.",maximumValue:"Maximum value",forARangeWidgetTheMaximumAllowed:"For a range widget, the maximum allowed value.",valueDescription:"Value description",aHumanreadableVersionOfTheValue:"A human-readable version of the value of a range widget (where necessary).",checked:"Checked",whetherThisCheckboxRadioButtonOr:"Whether this checkbox, radio button or tree item is checked, unchecked, or mixed (e.g. has both checked and un-checked children).",expanded:"Expanded",whetherThisElementOrAnother:"Whether this element, or another grouping element it controls, is expanded.",pressed:"Pressed",whetherThisToggleButtonIs:"Whether this toggle button is currently in a pressed state.",selectedString:"Selected",whetherTheOptionRepresentedBy:"Whether the option represented by this element is currently selected.",activeDescendant:"Active descendant",theDescendantOfThisElementWhich:"The descendant of this element which is active; i.e. the element to which focus should be delegated.",elementToWhichTheUserMayChooseTo:"Element to which the user may choose to navigate after this one, instead of the next element in the DOM order.",controls:"Controls",elementOrElementsWhoseContentOr:"Element or elements whose content or presence is/are controlled by this widget.",describedBy:"Described by",elementOrElementsWhichFormThe:"Element or elements which form the description of this element.",labeledBy:"Labeled by",elementOrElementsWhichMayFormThe:"Element or elements which may form the name of this element.",elementOrElementsWhichShouldBe:"Element or elements which should be considered descendants of this element, despite not being descendants in the DOM.",theComputedNameOfThisElement:"The computed name of this element.",role:"Role",indicatesThePurposeOfThisElement:"Indicates the purpose of this element, such as a user interface idiom for a widget, or structural role within a document.",value:"Value",theValueOfThisElementThisMayBe:"The value of this element; this may be user-provided or developer-provided, depending on the element.",help:"Help",theComputedHelpTextForThis:"The computed help text for this element.",description:"Description",theAccessibleDescriptionForThis:"The accessible description for this element.",fromAttribute:"From attribute",valueFromAttribute:"Value from attribute.",implicit:"Implicit",implicitValue:"Implicit value.",fromStyle:"From style",valueFromStyle:"Value from style.",contents:"Contents",valueFromElementContents:"Value from element contents.",fromPlaceholderAttribute:"From placeholder attribute",valueFromPlaceholderAttribute:"Value from placeholder attribute.",relatedElement:"Related element",valueFromRelatedElement:"Value from related element.",fromCaption:"From `caption`",valueFromFigcaptionElement:"Value from `figcaption` element.",fromDescription:"From `description`",valueFromDescriptionElement:"Value from `description` element.",fromLabel:"From `label`",valueFromLabelElement:"Value from `label` element.",fromLabelFor:"From `label` (`for=` attribute)",valueFromLabelElementWithFor:"Value from `label` element with `for=` attribute.",fromLabelWrapped:"From `label` (wrapped)",valueFromLabelElementWrapped:"Value from a wrapping `label` element.",fromLegend:"From `legend`",valueFromLegendElement:"Value from `legend` element.",fromRubyAnnotation:"From ruby annotation",valueFromNativeHtmlRuby:"Value from plain HTML ruby annotation.",valueFromTableCaption:"Value from `table` `caption`.",fromTitle:"From title",valueFromTitleAttribute:"Value from title attribute.",fromNativeHtml:"From native HTML",valueFromNativeHtmlUnknownSource:"Value from native HTML (unknown source)."},c=t.i18n.registerUIStrings("panels/accessibility/AccessibilityStrings.ts",d),u=t.i18n.getLazilyComputedLocalizedString.bind(void 0,c),m={disabled:{name:u(d.disabled),description:u(d.ifTrueThisElementCurrentlyCannot),group:"AXGlobalStates"},invalid:{name:u(d.invalidUserEntry),description:u(d.ifTrueThisElementsUserentered),group:"AXGlobalStates"},editable:{name:u(d.editable),description:u(d.ifAndHowThisElementCanBeEdited)},focusable:{name:u(d.focusable),description:u(d.ifTrueThisElementCanReceiveFocus)},focused:{name:u(d.focused),description:u(d.ifTrueThisElementCurrentlyHas)},settable:{name:u(d.canSetValue),description:u(d.whetherTheValueOfThisElementCan)},live:{name:u(d.liveRegion),description:u(d.whetherAndWhatPriorityOfLive),group:"AXLiveRegionAttributes"},atomic:{name:u(d.atomicLiveRegions),description:u(d.ifThisElementMayReceiveLive),group:"AXLiveRegionAttributes"},relevant:{name:u(d.relevantLiveRegions),description:u(d.ifThisElementMayReceiveLiveUpdates),group:"AXLiveRegionAttributes"},busy:{name:u(d.busyLiveRegions),description:u(d.whetherThisElementOrItsSubtree),group:"AXLiveRegionAttributes"},root:{name:u(d.liveRegionRoot),description:u(d.ifThisElementMayReceiveLiveUpdatesThe),group:"AXLiveRegionAttributes"},autocomplete:{name:u(d.hasAutocomplete),description:u(d.whetherAndWhatTypeOfAutocomplete),group:"AXWidgetAttributes"},haspopup:{name:u(d.hasPopup),description:u(d.whetherThisElementHasCausedSome),group:"AXWidgetAttributes"},level:{name:u(d.level),description:u(d.theHierarchicalLevelOfThis),group:"AXWidgetAttributes"},multiselectable:{name:u(d.multiselectable),description:u(d.whetherAUserMaySelectMoreThanOne),group:"AXWidgetAttributes"},orientation:{name:u(d.orientation),description:u(d.whetherThisLinearElements),group:"AXWidgetAttributes"},multiline:{name:u(d.multiline),description:u(d.whetherThisTextBoxMayHaveMore),group:"AXWidgetAttributes"},readonly:{name:u(d.readonlyString),description:u(d.ifTrueThisElementMayBeInteracted),group:"AXWidgetAttributes"},required:{name:u(d.requiredString),description:u(d.whetherThisElementIsARequired),group:"AXWidgetAttributes"},valuemin:{name:u(d.minimumValue),description:u(d.forARangeWidgetTheMinimumAllowed),group:"AXWidgetAttributes"},valuemax:{name:u(d.maximumValue),description:u(d.forARangeWidgetTheMaximumAllowed),group:"AXWidgetAttributes"},valuetext:{name:u(d.valueDescription),description:u(d.aHumanreadableVersionOfTheValue),group:"AXWidgetAttributes"},checked:{name:u(d.checked),description:u(d.whetherThisCheckboxRadioButtonOr),group:"AXWidgetStates"},expanded:{name:u(d.expanded),description:u(d.whetherThisElementOrAnother),group:"AXWidgetStates"},pressed:{name:u(d.pressed),description:u(d.whetherThisToggleButtonIs),group:"AXWidgetStates"},selected:{name:u(d.selectedString),description:u(d.whetherTheOptionRepresentedBy),group:"AXWidgetStates"},activedescendant:{name:u(d.activeDescendant),description:u(d.theDescendantOfThisElementWhich),group:"AXRelationshipAttributes"},flowto:{name:t.i18n.lockedLazyString("Flows to"),description:u(d.elementToWhichTheUserMayChooseTo),group:"AXRelationshipAttributes"},controls:{name:u(d.controls),description:u(d.elementOrElementsWhoseContentOr),group:"AXRelationshipAttributes"},describedby:{name:u(d.describedBy),description:u(d.elementOrElementsWhichFormThe),group:"AXRelationshipAttributes"},labelledby:{name:u(d.labeledBy),description:u(d.elementOrElementsWhichMayFormThe),group:"AXRelationshipAttributes"},owns:{name:t.i18n.lockedLazyString("Owns"),description:u(d.elementOrElementsWhichShouldBe),group:"AXRelationshipAttributes"},name:{name:t.i18n.lockedLazyString("Name"),description:u(d.theComputedNameOfThisElement),group:"Default"},role:{name:u(d.role),description:u(d.indicatesThePurposeOfThisElement),group:"Default"},value:{name:u(d.value),description:u(d.theValueOfThisElementThisMayBe),group:"Default"},help:{name:u(d.help),description:u(d.theComputedHelpTextForThis),group:"Default"},description:{name:u(d.description),description:u(d.theAccessibleDescriptionForThis),group:"Default"}},h={attribute:{name:u(d.fromAttribute),description:u(d.valueFromAttribute)},implicit:{name:u(d.implicit),description:u(d.implicitValue)},style:{name:u(d.fromStyle),description:u(d.valueFromStyle)},contents:{name:u(d.contents),description:u(d.valueFromElementContents)},placeholder:{name:u(d.fromPlaceholderAttribute),description:u(d.valueFromPlaceholderAttribute)},relatedElement:{name:u(d.relatedElement),description:u(d.valueFromRelatedElement)}},p={description:{name:u(d.fromDescription),description:u(d.valueFromDescriptionElement)},figcaption:{name:u(d.fromCaption),description:u(d.valueFromFigcaptionElement)},label:{name:u(d.fromLabel),description:u(d.valueFromLabelElement)},labelfor:{name:u(d.fromLabelFor),description:u(d.valueFromLabelElementWithFor)},labelwrapped:{name:u(d.fromLabelWrapped),description:u(d.valueFromLabelElementWrapped)},legend:{name:u(d.fromLegend),description:u(d.valueFromLegendElement)},rubyannotation:{name:u(d.fromRubyAnnotation),description:u(d.valueFromNativeHtmlRuby)},tablecaption:{name:u(d.fromCaption),description:u(d.valueFromTableCaption)},title:{name:u(d.fromTitle),description:u(d.valueFromTitleAttribute)},other:{name:u(d.fromNativeHtml),description:u(d.valueFromNativeHtmlUnknownSource)}};var b=Object.freeze({__proto__:null,AXAttributes:m,AXSourceTypes:h,AXNativeSourceTypes:p});const g=new CSSStyleSheet;g.replaceSync(".ax-name{color:var(--color-syntax-4);flex-shrink:0}.ax-readable-name{flex-shrink:0}.ax-readable-string{font-style:italic}.ax-value-string{color:var(--color-syntax-1)}span.ax-internal-role{font-style:italic}#source-order-warning{padding-bottom:0;text-align:left}.source-order-checkbox{margin:5px}\n/*# sourceURL=accessibilityProperties.css */\n");const v=new CSSStyleSheet;v.replaceSync(".value.object-value-node:hover{background-color:var(--item-hover-color)}.object-value-function-prefix,\n.object-value-boolean{color:var(--color-syntax-3)}.object-value-function{font-style:italic}.object-value-function.linkified:hover{--override-linkified-hover-background:rgb(0 0 0/10%);background-color:var(--override-linkified-hover-background);cursor:pointer}.-theme-with-dark-background .object-value-function.linkified:hover,\n:host-context(.-theme-with-dark-background) .object-value-function.linkified:hover{--override-linkified-hover-background:rgb(230 230 230/10%)}.object-value-number{color:var(--color-syntax-3)}.object-value-bigint{color:var(--color-syntax-6)}.object-value-string,\n.object-value-regexp,\n.object-value-symbol{white-space:pre;unicode-bidi:-webkit-isolate;color:var(--color-syntax-1)}.object-value-node{position:relative;vertical-align:baseline;color:var(--color-syntax-7);white-space:nowrap}.object-value-null,\n.object-value-undefined{color:var(--color-text-disabled)}.object-value-unavailable{color:var(--color-syntax-2)}.object-value-calculate-value-button:hover{text-decoration:underline}.object-properties-section-custom-section{display:inline-flex;flex-direction:column}.-theme-with-dark-background .object-value-number,\n:host-context(.-theme-with-dark-background) .object-value-number,\n.-theme-with-dark-background .object-value-boolean,\n:host-context(.-theme-with-dark-background) .object-value-boolean{--override-primitive-dark-mode-color:hsl(252deg 100% 75%);color:var(--override-primitive-dark-mode-color)}.object-properties-section .object-description{color:var(--color-text-secondary)}.value .object-properties-preview{white-space:nowrap}.name{color:var(--color-syntax-2);flex-shrink:0}.object-properties-preview .name{color:var(--color-text-secondary)}@media (forced-colors: active){.object-value-calculate-value-button:hover{forced-color-adjust:none;color:Highlight}}\n/*# sourceURL=objectValue.css */\n");class f extends r.View.SimpleView{axNode;nodeInternal;constructor(e){super(e),this.axNode=null}setAXNode(e){}node(){return this.nodeInternal||null}setNode(e){this.nodeInternal=e}createInfo(e,t){const a=t||"gray-info-message",r=this.element.createChild("div",a);return r.textContent=e,r}createTreeOutline(){const e=new r.TreeOutline.TreeOutlineInShadow;return e.registerCSSFiles([l,g,v]),e.element.classList.add("hidden"),e.hideOverflow(),this.element.appendChild(e.element),e}wasShown(){super.wasShown(),this.registerCSSFiles([g])}}var x=Object.freeze({__proto__:null,AccessibilitySubPane:f});const y={computedProperties:"Computed Properties",noAccessibilityNode:"No accessibility node",accessibilityNodeNotExposed:"Accessibility node not exposed",invalidSource:"Invalid source.",notSpecified:"Not specified",noNodeWithThisId:"No node with this ID.",elementIsHiddenBy:"Element is hidden by active modal dialog: ",ancestorChildrenAreAll:"Ancestor's children are all presentational: ",elementIsPlaceholder:"Element is {PH1}.",placeholderIsPlaceholderOnAncestor:"{PH1} is {PH2} on ancestor: ",elementHasEmptyAltText:"Element has empty alt text.",noTextContent:"No text content.",elementIsInert:"Element is `inert`.",elementIsInAnInertSubTree:"Element is in an `inert` subtree from ",elementsInheritsPresentational:"Element inherits presentational role from ",partOfLabelElement:"Part of label element: ",labelFor:"Label for ",elementIsNotRendered:"Element is not rendered.",elementIsNotVisible:"Element is not visible.",elementHasPlaceholder:"Element has {PH1}.",elementIsPresentational:"Element is presentational.",elementNotInteresting:"Element not interesting for accessibility."},E=t.i18n.registerUIStrings("panels/accessibility/AccessibilityNodeView.ts",y),w=t.i18n.getLocalizedString.bind(void 0,E);class N extends f{axNode;noNodeInfo;ignoredInfo;treeOutline;ignoredReasonsTree;constructor(){super(w(y.computedProperties)),this.axNode=null,this.contentElement.classList.add("ax-subpane"),this.noNodeInfo=this.createInfo(w(y.noAccessibilityNode)),this.ignoredInfo=this.createInfo(w(y.accessibilityNodeNotExposed),"ax-ignored-info hidden"),this.treeOutline=this.createTreeOutline(),this.ignoredReasonsTree=this.createTreeOutline(),this.element.classList.add("accessibility-computed"),this.treeOutline.setFocusable(!0)}setAXNode(e){if(this.axNode===e)return;this.axNode=e;const t=this.treeOutline;t.removeChildren();const r=this.ignoredReasonsTree;if(r.removeChildren(),!e)return t.element.classList.add("hidden"),this.ignoredInfo.classList.add("hidden"),r.element.classList.add("hidden"),this.noNodeInfo.classList.remove("hidden"),void this.element.classList.add("ax-ignored-node-pane");if(e.ignored()){this.noNodeInfo.classList.add("hidden"),t.element.classList.add("hidden"),this.element.classList.add("ax-ignored-node-pane"),this.ignoredInfo.classList.remove("hidden"),r.element.classList.remove("hidden");const a=e.ignoredReasons();for(const t of a)n=t,r.appendChild(new S(n,e));return void(r.firstChild()||r.element.classList.add("hidden"))}var n;function i(a){t.appendChild(new T(a,e))}this.element.classList.remove("ax-ignored-node-pane"),this.ignoredInfo.classList.add("hidden"),r.element.classList.add("hidden"),this.noNodeInfo.classList.add("hidden"),t.element.classList.remove("hidden");for(const t of e.coreProperties())i(t);const s=e.role();if(s){i({name:a.AccessibilityModel.CoreAxPropertyName.Role,value:s})}for(const t of e.properties())i(t);const o=t.firstChild();o&&o.select(!0,!1)}setNode(e){super.setNode(e),this.axNode=null}wasShown(){super.wasShown(),this.registerCSSFiles([l])}}class I extends r.TreeOutline.TreeElement{axNode;constructor(e){super(""),this.axNode=e}static createSimpleValueElement(e,t){let a,n;e&&"valueUndefined"!==e&&"computedString"!==e?(a=document.createElement("span"),a.classList.add("monospace")):a=document.createElement("span");return n=e&&k.has(e)?'"'+t.replace(/\n/g,"↵")+'"':String(t),e&&e in A&&a.classList.add(A[e]),a.setTextContentTruncatedIfNeeded(n||""),r.Tooltip.Tooltip.install(a,String(t)||""),a}static createExclamationMark(e){const t=r.UIUtils.createIconLabel({iconName:"warning-filled",color:"var(--icon-warning)"});return r.Tooltip.Tooltip.install(t,e),t}appendNameElement(e){const t=document.createElement("span");if(e in m){const a=m[e];t.textContent=a.name(),r.Tooltip.Tooltip.install(t,a.description()),t.classList.add("ax-readable-name")}else t.textContent=e,t.classList.add("ax-name"),t.classList.add("monospace");this.listItemElement.appendChild(t)}appendValueElement(e){if("idref"===e.type||"node"===e.type||"idrefList"===e.type||"nodeList"===e.type)return void this.appendRelatedNodeListValueElement(e);if(e.sources){const t=e.sources;for(let e=0;e<t.length;e++){const a=t[e],r=new C(a,this.axNode);this.appendChild(r)}this.expand()}const t=I.createSimpleValueElement(e.type,String(e.value));this.listItemElement.appendChild(t)}appendRelatedNode(e,t){const r=new a.DOMModel.DeferredDOMNode(this.axNode.accessibilityModel().target(),e.backendDOMNodeId),n=new M({deferredNode:r,idref:void 0},e);this.appendChild(n)}appendRelatedNodeInline(e){const t=new a.DOMModel.DeferredDOMNode(this.axNode.accessibilityModel().target(),e.backendDOMNodeId),r=new L({deferredNode:t,idref:void 0},e);this.listItemElement.appendChild(r.render())}appendRelatedNodeListValueElement(e){!e.relatedNodes||1!==e.relatedNodes.length||e.value?(e.relatedNodes&&e.relatedNodes.forEach(this.appendRelatedNode,this),e.relatedNodes&&e.relatedNodes.length<=3?this.expand():this.collapse()):this.appendRelatedNodeInline(e.relatedNodes[0])}}const A={attribute:"ax-value-string",boolean:"object-value-boolean",booleanOrUndefined:"object-value-boolean",computedString:"ax-readable-string",idref:"ax-value-string",idrefList:"ax-value-string",integer:"object-value-number",internalRole:"ax-internal-role",number:"ax-value-number",role:"ax-role",string:"ax-value-string",tristate:"object-value-boolean",valueUndefined:"ax-value-undefined"},k=new Set(["string","computedString","idrefList","idref"]);class T extends I{property;toggleOnClick;constructor(e,t){super(t),this.property=e,this.toggleOnClick=!0,this.listItemElement.classList.add("property")}onattach(){this.update()}update(){this.listItemElement.removeChildren(),this.appendNameElement(this.property.name),this.listItemElement.createChild("span","separator").textContent=": ",this.appendValueElement(this.property.value)}}class C extends I{source;constructor(e,t){super(t),this.source=e}onattach(){this.update()}appendRelatedNodeWithIdref(e,t){const r=new a.DOMModel.DeferredDOMNode(this.axNode.accessibilityModel().target(),e.backendDOMNodeId),n=new M({deferredNode:r,idref:t},e);this.appendChild(n)}appendIDRefValueElement(e){if(null===e.value)return;const t=e.relatedNodes||[];if(""===e.value){for(const e of t){const t=e.idref||"";this.appendRelatedNodeWithIdref(e,t)}return}const a=e.value.trim().split(/\s+/);for(const e of a){const r=t.find((t=>t.idref===e));r?this.appendRelatedNodeWithIdref(r,e):1===a.length?this.listItemElement.appendChild(new L({deferredNode:void 0,idref:e}).render()):this.appendChild(new M({deferredNode:void 0,idref:e}))}}appendRelatedNodeListValueElement(e){const t=e.relatedNodes,a=t?t.length:0;"idrefList"===e.type||"idref"===e.type?this.appendIDRefValueElement(e):super.appendRelatedNodeListValueElement(e),a<=3?this.expand():this.collapse()}appendSourceNameElement(e){const t=document.createElement("span"),a=e.type;switch(a){case"attribute":case"placeholder":case"relatedElement":if(e.nativeSource){const a=e.nativeSource;t.textContent=p[a].name(),r.Tooltip.Tooltip.install(t,p[a].description()),t.classList.add("ax-readable-name");break}t.textContent=e.attribute||null,t.classList.add("ax-name"),t.classList.add("monospace");break;default:a in h?(t.textContent=h[a].name(),r.Tooltip.Tooltip.install(t,h[a].description()),t.classList.add("ax-readable-name")):(console.warn(a,"not in AXSourceTypes"),t.textContent=a)}this.listItemElement.appendChild(t)}update(){if(this.listItemElement.removeChildren(),this.source.invalid){const e=I.createExclamationMark(w(y.invalidSource));this.listItemElement.appendChild(e),this.listItemElement.classList.add("ax-value-source-invalid")}else this.source.superseded&&this.listItemElement.classList.add("ax-value-source-unused");if(this.appendSourceNameElement(this.source),this.listItemElement.createChild("span","separator").textContent=": ",this.source.attributeValue)this.appendValueElement(this.source.attributeValue),r.UIUtils.createTextChild(this.listItemElement," ");else if(this.source.nativeSourceValue)this.appendValueElement(this.source.nativeSourceValue),r.UIUtils.createTextChild(this.listItemElement," "),this.source.value&&this.appendValueElement(this.source.value);else if(this.source.value)this.appendValueElement(this.source.value);else{const e=I.createSimpleValueElement("valueUndefined",w(y.notSpecified));this.listItemElement.appendChild(e),this.listItemElement.classList.add("ax-value-source-unused")}this.source.value&&this.source.superseded&&this.listItemElement.classList.add("ax-value-source-superseded")}}class M extends r.TreeOutline.TreeElement{value;axRelatedNodeElement;constructor(e,t){super(""),this.value=t,this.axRelatedNodeElement=new L(e,t),this.selectable=!0}onattach(){this.listItemElement.appendChild(this.axRelatedNodeElement.render()),this.value&&this.value.text&&this.listItemElement.appendChild(I.createSimpleValueElement("computedString",this.value.text))}onenter(){return this.axRelatedNodeElement.revealNode(),!0}}class L{deferredNode;idref;value;constructor(e,t){this.deferredNode=e.deferredNode,this.idref=e.idref,this.value=t}render(){const t=document.createElement("span");if(this.deferredNode){const a=document.createElement("span");t.appendChild(a),this.deferredNode.resolvePromise().then((t=>{e.Linkifier.Linkifier.linkify(t,{tooltip:void 0,preventKeyboardFocus:!0}).then((e=>a.appendChild(e)))}))}else if(this.idref){t.classList.add("invalid");const e=I.createExclamationMark(w(y.noNodeWithThisId));r.UIUtils.createTextChild(e,this.idref),t.appendChild(e)}return t}revealNode(){this.deferredNode&&this.deferredNode.resolvePromise().then((t=>e.Revealer.reveal(t)))}}class S extends I{property;toggleOnClick;reasonElement;constructor(e,t){super(t),this.property=e,this.axNode=t,this.toggleOnClick=!0,this.selectable=!1}static createReasonElement(e,a){let r=null;switch(e){case"activeModalDialog":r=t.i18n.getFormatLocalizedString(E,y.elementIsHiddenBy,{});break;case"ancestorIsLeafNode":r=t.i18n.getFormatLocalizedString(E,y.ancestorChildrenAreAll,{});break;case"ariaHiddenElement":{const e=document.createElement("span",{is:"source-code"}).textContent="aria-hidden";r=t.i18n.getFormatLocalizedString(E,y.elementIsPlaceholder,{PH1:e});break}case"ariaHiddenSubtree":{const e=document.createElement("span",{is:"source-code"}).textContent="aria-hidden",a=document.createElement("span",{is:"source-code"}).textContent="true";r=t.i18n.getFormatLocalizedString(E,y.placeholderIsPlaceholderOnAncestor,{PH1:e,PH2:a});break}case"emptyAlt":r=t.i18n.getFormatLocalizedString(E,y.elementHasEmptyAltText,{});break;case"emptyText":r=t.i18n.getFormatLocalizedString(E,y.noTextContent,{});break;case"inertElement":r=t.i18n.getFormatLocalizedString(E,y.elementIsInert,{});break;case"inertSubtree":r=t.i18n.getFormatLocalizedString(E,y.elementIsInAnInertSubTree,{});break;case"inheritsPresentation":r=t.i18n.getFormatLocalizedString(E,y.elementsInheritsPresentational,{});break;case"labelContainer":r=t.i18n.getFormatLocalizedString(E,y.partOfLabelElement,{});break;case"labelFor":r=t.i18n.getFormatLocalizedString(E,y.labelFor,{});break;case"notRendered":r=t.i18n.getFormatLocalizedString(E,y.elementIsNotRendered,{});break;case"notVisible":r=t.i18n.getFormatLocalizedString(E,y.elementIsNotVisible,{});break;case"presentationalRole":{const e=a&&a.role()?.value||"",n=document.createElement("span",{is:"source-code"}).textContent="role="+e;r=t.i18n.getFormatLocalizedString(E,y.elementHasPlaceholder,{PH1:n});break}case"probablyPresentational":r=t.i18n.getFormatLocalizedString(E,y.elementIsPresentational,{});break;case"uninteresting":r=t.i18n.getFormatLocalizedString(E,y.elementNotInteresting,{})}return r&&r.classList.add("ax-reason"),r}onattach(){this.listItemElement.removeChildren(),this.reasonElement=S.createReasonElement(this.property.name,this.axNode),this.reasonElement&&this.listItemElement.appendChild(this.reasonElement);const e=this.property.value;"idref"===e.type&&this.appendRelatedNodeListValueElement(e)}}var R=Object.freeze({__proto__:null,AXNodeSubPane:N,AXNodePropertyTreeElement:I,TypeStyles:A,StringProperties:k,AXNodePropertyTreePropertyElement:T,AXValueSourceTreeElement:C,AXRelatedNodeSourceTreeElement:M,AXRelatedNodeElement:L,AXNodeIgnoredReasonTreeElement:S});const F={attributes:[{name:"aria-activedescendant",type:"IDREF"},{default:"false",name:"aria-atomic",type:"boolean"},{default:"none",enum:["inline","list","both","none"],name:"aria-autocomplete",type:"token"},{name:"aria-braillelabel",type:"string"},{name:"aria-brailleroledescription",type:"string"},{default:"false",name:"aria-busy",type:"boolean"},{default:"undefined",enum:["true","false","mixed","undefined"],name:"aria-checked",type:"token"},{name:"aria-colcount",type:"integer"},{name:"aria-colindex",type:"integer"},{name:"aria-colspan",type:"integer"},{name:"aria-controls",type:"IDREF_list"},{default:"false",enum:["page","step","location","date","time","true","false"],name:"aria-current",type:"token"},{name:"aria-describedby",type:"IDREF_list"},{name:"aria-description",type:"string"},{name:"aria-details",type:"IDREF"},{default:"false",name:"aria-disabled",type:"boolean"},{default:"none",enum:["copy","move","link","execute","popup","none"],name:"aria-dropeffect",type:"token_list"},{name:"aria-errormessage",type:"IDREF"},{default:"undefined",enum:["true","false","undefined"],name:"aria-expanded",type:"token"},{name:"aria-flowto",type:"IDREF_list"},{default:"undefined",enum:["true","false","undefined"],name:"aria-grabbed",type:"token"},{default:"false",enum:["false","true","menu","listbox","tree","grid","dialog"],name:"aria-haspopup",type:"token"},{default:"undefined",enum:["true","false","undefined"],name:"aria-hidden",type:"token"},{default:"false",enum:["grammar","false","spelling","true"],name:"aria-invalid",type:"token"},{name:"aria-keyshortcuts",type:"string"},{name:"aria-label",type:"string"},{name:"aria-labelledby",type:"IDREF_list"},{name:"aria-labeledby",type:"IDREF_list"},{name:"aria-level",type:"integer"},{default:"off",enum:["off","polite","assertive"],name:"aria-live",type:"token"},{default:"false",name:"aria-modal",type:"boolean"},{default:"false",name:"aria-multiline",type:"boolean"},{default:"false",name:"aria-multiselectable",type:"boolean"},{default:"undefined",enum:["horizontal","undefined","vertical"],name:"aria-orientation",type:"token"},{name:"aria-owns",type:"IDREF_list"},{name:"aria-placeholder",type:"string"},{name:"aria-posinset",type:"integer"},{default:"undefined",enum:["true","false","mixed","undefined"],name:"aria-pressed",type:"token"},{default:"false",name:"aria-readonly",type:"boolean"},{default:"additions text",enum:["additions","removals","text","all"],name:"aria-relevant",type:"token_list"},{default:"false",name:"aria-required",type:"boolean"},{name:"aria-roledescription",type:"string"},{name:"aria-rowcount",type:"integer"},{name:"aria-rowindex",type:"integer"},{name:"aria-rowspan",type:"integer"},{default:"undefined",enum:["true","false","undefined"],name:"aria-selected",type:"token"},{name:"aria-setsize",type:"integer"},{default:"none",enum:["ascending","descending","none","other"],name:"aria-sort",type:"token"},{name:"aria-valuemax",type:"decimal"},{name:"aria-valuemin",type:"decimal"},{name:"aria-valuenow",type:"decimal"},{name:"aria-valuetext",type:"string"},{name:"aria-virtualcontent",type:"string"}],metadata:{attrsNullNamespace:!0,export:"CORE_EXPORT",namespace:"HTML",namespacePrefix:"xhtml",namespaceURI:"http://www.w3.org/1999/xhtml"},roles:[{implicitValues:{"aria-atomic":"true","aria-live":"assertive"},name:"alert",nameFrom:["author"],superclasses:["section"]},{name:"alertdialog",nameFrom:["author"],nameRequired:!0,superclasses:["alert","dialog"]},{name:"application",nameFrom:["author"],nameRequired:!0,superclasses:["structure"]},{name:"article",nameFrom:["author"],superclasses:["document"],supportedAttributes:["aria-posinset","aria-setsize"]},{name:"banner",nameFrom:["author"],superclasses:["landmark"]},{childrenPresentational:!0,name:"button",nameFrom:["contents","author"],nameRequired:!0,superclasses:["command"],supportedAttributes:["aria-expanded","aria-pressed"]},{name:"cell",namefrom:["contents","author"],scope:"row",superclasses:["section"],supportedAttributes:["aria-colindex","aria-colspan","aria-rowindex","aria-rowspan"]},{implicitValues:{"aria-checked":!1},name:"checkbox",nameFrom:["contents","author"],nameRequired:!0,requiredAttributes:["aria-checked"],superclasses:["input"],supportedAttributes:["aria-readonly"]},{name:"columnheader",nameFrom:["contents","author"],nameRequired:!0,scope:["row"],superclasses:["gridcell","sectionhead","widget"],supportedAttributes:["aria-sort"]},{implicitValues:{"aria-expanded":"false","aria-haspopup":"listbox"},mustContain:["textbox"],name:"combobox",nameFrom:["author"],nameRequired:!0,requiredAttributes:["aria-controls","aria-expanded"],superclasses:["select"],supportedAttributes:["aria-autocomplete","aria-readonly","aria-required"]},{abstract:!0,name:"command",nameFrom:["author"],superclasses:["widget"]},{name:"complementary",nameFrom:["author"],superclasses:["landmark"]},{abstract:!0,name:"composite",nameFrom:["author"],superclasses:["widget"],supportedAttributes:["aria-activedescendant"]},{name:"contentinfo",nameFrom:["author"],superclasses:["landmark"]},{name:"definition",nameFrom:["author"],superclasses:["section"]},{name:"dialog",nameFrom:["author"],nameRequired:!0,superclasses:["window"]},{name:"directory",nameFrom:["author"],superclasses:["list"]},{name:"document",nameFrom:["author"],nameRequired:!1,superclasses:["structure"],supportedAttributes:["aria-expanded"]},{mustContain:["article"],name:"feed",nameFrom:["author"],nameRequired:!1,superclasses:["list"]},{name:"figure",nameRequired:!1,namefrom:["author"],superclasses:["section"]},{name:"form",nameFrom:["author"],superclasses:["landmark"]},{mustContain:["row"],name:"grid",nameFrom:["author"],nameRequired:!0,superclasses:["composite","table"],supportedAttributes:["aria-level","aria-multiselectable","aria-readonly"]},{name:"gridcell",nameFrom:["contents","author"],nameRequired:!0,scope:["row"],superclasses:["cell","widget"],supportedAttributes:["aria-readonly","aria-required","aria-selected"]},{name:"group",nameFrom:["author"],superclasses:["section"],supportedAttributes:["aria-activedescendant"]},{implicitValues:{"aria-level":"2"},name:"heading",nameRequired:!0,namefrom:["contents","author"],superclasses:["sectionhead"],supportedAttributes:["aria-level"]},{childrenPresentational:!0,name:"img",nameFrom:["author"],nameRequired:!0,superclasses:["section"]},{abstract:!0,name:"input",nameFrom:["author"],superclasses:["widget"]},{abstract:!0,name:"landmark",nameFrom:["author"],nameRequired:!1,superclasses:["section"]},{name:"link",nameFrom:["contents","author"],nameRequired:!0,superclasses:["command"],supportedAttributes:["aria-expanded"]},{implicitValues:{"aria-orientation":"vertical"},mustContain:["listitem"],name:"list",nameFrom:["author"],superclasses:["section"]},{implicitValues:{"aria-orientation":"vertical"},mustContain:["option"],name:"listbox",nameFrom:["author"],nameRequired:!0,superclasses:["select"],supportedAttributes:["aria-multiselectable","aria-readonly","aria-required"]},{name:"listitem",nameFrom:["author"],scope:["group","list"],superclasses:["section"],supportedAttributes:["aria-level","aria-posinset","aria-setsize"]},{implicitValues:{"aria-live":"polite"},name:"log",nameFrom:["author"],nameRequired:!0,superclasses:["section"]},{name:"main",nameFrom:["author"],superclasses:["landmark"]},{name:"marquee",nameFrom:["author"],nameRequired:!0,superclasses:["section"]},{childrenPresentational:!0,name:"math",nameFrom:["author"],nameRequired:!0,superclasses:["section"]},{implicitValues:{"aria-orientation":"vertical"},mustContain:["group","menuitemradio","menuitem","menuitemcheckbox","menuitemradio"],name:"menu",nameFrom:["author"],superclasses:["select"]},{implicitValues:{"aria-orientation":"horizontal"},mustContain:["menuitem","menuitemradio","menuitemcheckbox"],name:"menubar",nameFrom:["author"],superclasses:["menu"]},{name:"menuitem",nameFrom:["contents","author"],nameRequired:!0,scope:["group","menu","menubar"],superclasses:["command"]},{childrenPresentational:!0,implicitValues:{"aria-checked":!1},name:"menuitemcheckbox",nameFrom:["contents","author"],nameRequired:!0,scope:["menu","menubar"],superclasses:["checkbox","menuitem"]},{childrenPresentational:!0,implicitValues:{"aria-checked":!1},name:"menuitemradio",nameFrom:["contents","author"],nameRequired:!0,scope:["menu","menubar","group"],superclasses:["menuitemcheckbox","radio"]},{name:"navigation",nameFrom:["author"],superclasses:["landmark"]},{name:"none",superclasses:["structure"]},{name:"note",nameFrom:["author"],superclasses:["section"]},{childrenPresentational:!0,implicitValues:{"aria-selected":"false"},name:"option",nameFrom:["contents","author"],nameRequired:!0,requiredAttributes:["aria-selected"],scope:["listbox"],superclasses:["input"],supportedAttributes:["aria-checked","aria-posinset","aria-setsize"]},{name:"presentation",superclasses:["structure"]},{childrenPresentational:!0,name:"progressbar",nameFrom:["author"],nameRequired:!0,superclasses:["range"]},{childrenPresentational:!0,implicitValues:{"aria-checked":"false"},name:"radio",nameFrom:["contents","author"],nameRequired:!0,requiredAttributes:["aria-checked"],superclasses:["input"],supportedAttributes:["aria-posinset","aria-setsize"]},{mustContain:["radio"],name:"radiogroup",nameFrom:["author"],nameRequired:!0,superclasses:["select"],supportedAttributes:["aria-readonly","aria-required"]},{abstract:!0,name:"range",nameFrom:["author"],superclasses:["widget"],supportedAttributes:["aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"]},{name:"region",nameFrom:["author"],nameRequired:!0,superclasses:["landmark"]},{abstract:!0,name:"roletype",supportedAttributes:["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"]},{mustContain:["cell","columnheader","gridcell","rowheader"],name:"row",nameFrom:["contents","author"],scope:["grid","rowgroup","table","treegrid"],superclasses:["group","widget"],supportedAttributes:["aria-colindex","aria-level","aria-rowindex","aria-selected","aria-setsize","aria-posinset"]},{mustContain:["row"],name:"rowgroup",nameFrom:["contents","author"],scope:["grid","table","treegrid"],superclasses:["structure"]},{name:"rowheader",nameFrom:["contents","author"],nameRequired:!0,scope:["row"],superclasses:["cell","gridcell","sectionhead"],supportedAttributes:["aria-sort"]},{childrenPresentational:!0,implicitValues:{"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},name:"scrollbar",nameFrom:["author"],nameRequired:!1,requiredAttributes:["aria-controls","aria-orientation","aria-valuemax","aria-valuemin","aria-valuenow"],superclasses:["range"]},{name:"search",nameFrom:["author"],superclasses:["landmark"]},{name:"searchbox",nameFrom:["author"],nameRequired:!0,superclasses:["textbox"]},{abstract:!0,name:"section",superclasses:["structure"],supportedAttributes:["aria-expanded"]},{abstract:!0,name:"sectionhead",nameFrom:["contents","author"],superclasses:["structure"],supportedAttributes:["aria-expanded"]},{abstract:!0,name:"select",nameFrom:["author"],superclasses:["composite","group"]},{name:"separator",nameFrom:["author"],superclasses:["structure"],supportedAttributes:["aria-orientation","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext"]},{childrenPresentational:!0,implicitValues:{"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},name:"slider",nameFrom:["author"],nameRequired:!0,requiredAttributes:["aria-valuemax","aria-valuemin","aria-valuenow"],superclasses:["input","range"],supportedAttributes:["aria-orientation"]},{implicitValues:{"aria-valuenow":"0"},name:"spinbutton",nameFrom:["author"],nameRequired:!0,requiredAttributes:["aria-valuemax","aria-valuemin","aria-valuenow"],superclasses:["composite","input","range"],supportedAttributes:["aria-required","aria-readonly"]},{implicitValues:{"aria-atomic":"true","aria-live":"polite"},name:"status",nameFrom:["author"],superclasses:["section"]},{abstract:!0,name:"structure",superclasses:["roletype"]},{childrenPresentational:!0,implicitValues:{"aria-checked":"false"},name:"switch",nameFrom:["contents","author"],nameRequired:!0,requiredAttributes:["aria-checked"],superclasses:["checkbox"]},{childrenPresentational:!0,implicitValues:{"aria-selected":"false"},name:"tab",nameFrom:["contents","author"],scope:["tablist"],superclasses:["sectionhead","widget"],supportedAttributes:["aria-selected"]},{mustContain:["row"],name:"table",nameFrom:["author"],nameRequired:!0,superclasses:["section"],supportedAttributes:["aria-colcount","aria-rowcount"]},{implicitValues:{"aria-orientation":"horizontal"},mustContain:["tab"],name:"tablist",nameFrom:["author"],superclasses:["composite"],supportedAttributes:["aria-level","aria-multiselectable","aria-orientation"]},{name:"tabpanel",nameFrom:["author"],nameRequired:!0,superclasses:["section"]},{name:"term",nameFrom:["author"],superclasses:["section"]},{name:"textbox",nameFrom:["author"],nameRequired:!0,superclasses:["input"],supportedAttributes:["aria-activedescendant","aria-autocomplete","aria-multiline","aria-placeholder","aria-readonly","aria-required"]},{name:"timer",nameFrom:["author"],superclasses:["status"]},{implicitValues:{"aria-orientation":"horizontal"},name:"toolbar",nameFrom:["author"],superclasses:["group"],supportedAttributes:["aria-orientation"]},{name:"tooltip",nameFrom:["contents","author"],nameRequired:!0,superclasses:["section"]},{implicitValues:{"aria-orientation":"vertical"},mustContain:["group","treeitem"],name:"tree",nameFrom:["author"],nameRequired:!0,superclasses:["select"],supportedAttributes:["aria-multiselectable","aria-required"]},{mustContain:["row"],name:"treegrid",nameFrom:["author"],nameRequired:!0,superclasses:["grid","tree"]},{name:"treeitem",nameFrom:["contents","author"],nameRequired:!0,scope:["group","tree"],superclasses:["listitem","option"]},{abstract:!0,name:"widget",superclasses:["roletype"]},{abstract:!0,name:"window",nameFrom:["author"],superclasses:["roletype"],supportedAttributes:["aria-expanded","aria-modal"]}]};class O{attributes;roleNames;constructor(e){this.attributes=new Map,this.roleNames=[],e&&this.initialize(e)}initialize(e){const t=e.attributes,a=["true","false"];for(const e of t)"boolean"===e.type&&(e.enum=a),this.attributes.set(e.name,new D(e));this.roleNames=e.roles.map((e=>e.name))}valuesForProperty(e){const t=this.attributes.get(e);return t?t.getEnum():"role"===e?this.roleNames:[]}}let P;function V(){return P||(P=new O(F||null)),P}class D{enum;constructor(e){this.enum=[],e.enum&&(this.enum=e.enum)}getEnum(){return this.enum}}var B=Object.freeze({__proto__:null,ARIAMetadata:O,ariaMetadata:V,Attribute:D});const W={ariaAttributes:"ARIA Attributes",noAriaAttributes:"No ARIA attributes"},q=t.i18n.registerUIStrings("panels/accessibility/ARIAAttributesView.ts",W),H=t.i18n.getLocalizedString.bind(void 0,q);class U extends f{noPropertiesInfo;treeOutline;constructor(){super(H(W.ariaAttributes)),this.noPropertiesInfo=this.createInfo(H(W.noAriaAttributes)),this.treeOutline=this.createTreeOutline()}setNode(e){if(super.setNode(e),this.treeOutline.removeChildren(),!e)return;const t=e.domModel().target(),a=e.attributes();for(let e=0;e<a.length;++e){const r=a[e];this.isARIAAttribute(r)&&this.treeOutline.appendChild(new j(this,r,t))}const r=0!==this.treeOutline.rootElement().childCount();this.noPropertiesInfo.classList.toggle("hidden",r),this.treeOutline.element.classList.toggle("hidden",!r)}isARIAAttribute(e){return z.has(e.name)}}class j extends r.TreeOutline.TreeElement{parentPane;attribute;nameElement;valueElement;prompt;constructor(e,t,a){super(""),this.parentPane=e,this.attribute=t,this.selectable=!1}static createARIAValueElement(e){const t=document.createElement("span");return t.classList.add("monospace"),t.setTextContentTruncatedIfNeeded(e||""),t}onattach(){this.populateListItem(),this.listItemElement.addEventListener("click",this.mouseClick.bind(this))}populateListItem(){this.listItemElement.removeChildren(),this.appendNameElement(this.attribute.name),this.listItemElement.createChild("span","separator").textContent=": ",this.appendAttributeValueElement(this.attribute.value)}appendNameElement(e){this.nameElement=document.createElement("span"),this.nameElement.textContent=e,this.nameElement.classList.add("ax-name"),this.nameElement.classList.add("monospace"),this.listItemElement.appendChild(this.nameElement)}appendAttributeValueElement(e){this.valueElement=j.createARIAValueElement(e),this.listItemElement.appendChild(this.valueElement)}mouseClick(e){e.target!==this.listItemElement&&(e.consume(!0),this.startEditing())}startEditing(){const e=this.valueElement;if(!e||r.UIUtils.isBeingEdited(e))return;const t=e.textContent||"";const a=this.nameElement.textContent||"";this.prompt=new X(V().valuesForProperty(a),this),this.prompt.setAutocompletionTimeout(0);const n=this.prompt.attachAndStartEditing(e,function(e,t){const a=t.target.textContent||"";this.editingCommitted(a,e)}.bind(this,t));n.addEventListener("keydown",(e=>this.editingValueKeyDown(t,e)),!1);const i=e.getComponentSelection();i&&i.selectAllChildren(e)}removePrompt(){this.prompt&&(this.prompt.detach(),delete this.prompt)}editingCommitted(e,t){if(this.removePrompt(),e!==t){this.parentPane.node().setAttributeValue(this.attribute.name,e)}}editingCancelled(){this.removePrompt(),this.populateListItem()}editingValueKeyDown(e,t){if(!t.handled){if("Enter"===t.key){const a=t.target;return this.editingCommitted(a.textContent||"",e),void t.consume()}return i.KeyboardUtilities.isEscKey(t)?(this.editingCancelled(),void t.consume()):void 0}}}class X extends r.TextPrompt.TextPrompt{ariaCompletions;treeElement;constructor(e,t){super(),this.initialize(this.buildPropertyCompletions.bind(this)),this.ariaCompletions=e,this.treeElement=t}async buildPropertyCompletions(e,t,a){return(t=t.toLowerCase())||a||!e?this.ariaCompletions.filter((e=>e.startsWith(t))).map((e=>({text:e,title:void 0,subtitle:void 0,priority:void 0,isSecondary:void 0,subtitleRenderer:void 0,selectionRange:void 0,hideGhostText:void 0,iconElement:void 0}))):[]}}const z=new Set(["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"]);var _=Object.freeze({__proto__:null,ARIAAttributesPane:U,ARIAAttributesTreeElement:j,ARIAAttributePrompt:X});const K=new CSSStyleSheet;K.replaceSync('.ax-breadcrumbs-ignored-node{font-style:italic;opacity:70%}.ax-breadcrumbs{padding-top:1px;margin:0;position:relative}.ax-breadcrumbs .ax-node{align-items:center;margin-top:1px;min-height:16px;overflow-x:hidden;padding-left:4px;padding-right:4px;padding-top:1px;position:relative;text-overflow:ellipsis;white-space:nowrap}.ax-breadcrumbs .ax-node span{flex-shrink:0;text-overflow:ellipsis;white-space:nowrap}.ax-breadcrumbs .ax-node .wrapper{padding-left:12px;overflow-x:hidden}.ax-breadcrumbs .ax-node::before{-webkit-mask-image:var(--image-file-chevron-right);-webkit-mask-repeat:no-repeat;background-color:var(--icon-default);transform:scale(0.7);content:"";text-shadow:none;margin-left:-4px;margin-top:-2px;height:16px;width:16px;position:absolute;display:inline-block}.ax-breadcrumbs .ax-node:not(.parent):not(.children-unloaded)::before{background-color:transparent}.ax-breadcrumbs .ax-node.parent::before{-webkit-mask-image:var(--image-file-chevron-down)}.ax-breadcrumbs .ax-node.no-dom-node{opacity:70%}.ax-breadcrumbs .ax-node.children-unloaded::before{-webkit-mask-position:0 1px;width:13px;opacity:40%}.ax-breadcrumbs .ax-node .selection{display:none;z-index:-1}.ax-breadcrumbs .ax-node.inspected .selection{display:block;background-color:var(--color-background-elevation-2)}.ax-breadcrumbs .ax-node.inspected:focus .selection{background-color:var(--legacy-selection-bg-color)}.ax-breadcrumbs .ax-node.parent.inspected:focus::before{background-color:var(--color-background)}.ax-breadcrumbs .ax-node.inspected:focus{background-color:var(--color-primary-old);color:var(--color-background)}.ax-breadcrumbs .ax-node:not(.inspected):hover{background-color:var(--color-background-elevation-1)}.ax-breadcrumbs .ax-node:not(.inspected):focus{background-color:var(--color-background-elevation-2)}.ax-breadcrumbs .ax-node.inspected:focus *{color:inherit}.ax-breadcrumbs .ax-node.preselected:not(.inspected) .selection,\n.ax-breadcrumbs .ax-node.hovered:not(.inspected) .selection{display:block;left:2px;right:2px;background-color:var(--item-hover-color);border-radius:5px}.ax-breadcrumbs .ax-node.preselected:not(.inspected):focus .selection{border:1px solid var(--color-primary-variant)}@media (forced-colors: active){.ax-value-source-unused,\n .ax-breadcrumbs .ax-node.children-unloaded::before{opacity:100%}.ax-breadcrumbs .ax-node.parent::before,\n .ax-breadcrumbs .ax-node.children-unloaded::before{forced-color-adjust:none;background-color:ButtonText}.ax-breadcrumbs .ax-node.parent.inspected::before,\n .ax-breadcrumbs .ax-node.parent.inspected:focus::before{background-color:HighlightText}.ax-breadcrumbs .ax-node.inspected .selection{forced-color-adjust:none;background:Highlight!important}.ax-breadcrumbs .ax-node.inspected .wrapper{forced-color-adjust:none;color:HighlightText}.ax-breadcrumbs .ax-node.preselected:not(.inspected) .selection,\n .ax-breadcrumbs .ax-node.hovered:not(.inspected) .selection,\n .ax-breadcrumbs .ax-node.hovered:not(.inspected) .wrapper,\n .ax-breadcrumbs .ax-node:focus-visible:not(.inspected) .wrapper{forced-color-adjust:none;background-color:Highlight;color:HighlightText;border-radius:0}.ax-breadcrumbs .ax-node.parent.hovered:not(.inspected)::before,\n .ax-breadcrumbs .ax-node.parent:focus-visible:not(.inspected)::before,\n .ax-breadcrumbs .ax-node.children-unloaded:focus-visible:not(.inspected)::before,\n .ax-breadcrumbs .ax-node.hovered:not(.inspected).children-unloaded::before{background-color:HighlightText}}\n/*# sourceURL=axBreadcrumbs.css */\n');const G={accessibilityTree:"Accessibility Tree",scrollIntoView:"Scroll into view",ignored:"Ignored",fullTreeExperimentName:"Enable full-page accessibility tree",fullTreeExperimentDescription:"The accessibility tree moved to the top right corner of the DOM tree.",reloadRequired:"Reload required before the change takes effect."},Y=t.i18n.registerUIStrings("panels/accessibility/AXBreadcrumbsPane.ts",G),J=t.i18n.getLocalizedString.bind(void 0,Y);class Q extends f{axSidebarView;preselectedBreadcrumb;inspectedNodeBreadcrumb;collapsingBreadcrumbId;hoveredBreadcrumb;rootElement;#e=!1;constructor(e){super(J(G.accessibilityTree)),this.element.classList.add("ax-subpane"),this.element.tabIndex=-1,this.axSidebarView=e,this.preselectedBreadcrumb=null,this.inspectedNodeBreadcrumb=null,this.collapsingBreadcrumbId=-1,this.rootElement=this.element.createChild("div","ax-breadcrumbs"),this.hoveredBreadcrumb=null;const t=new o.PreviewToggle.PreviewToggle,a=J(G.fullTreeExperimentName),i=n.Runtime.ExperimentName.FULL_ACCESSIBILITY_TREE,l=e=>{s.userMetrics.experimentChanged(i,e),r.InspectorView.InspectorView.instance().displayReloadRequiredWarning(J(G.reloadRequired))};if(n.Runtime.experiments.isEnabled(i)){this.#e=!0;const e="https://g.co/devtools/a11y-tree-feedback";return t.data={name:a,helperText:J(G.fullTreeExperimentDescription),feedbackURL:e,experiment:i,onChangeCallback:l},void this.element.appendChild(t)}t.data={name:a,helperText:null,feedbackURL:null,experiment:i,onChangeCallback:l},this.element.prepend(t),r.ARIAUtils.markAsTree(this.rootElement),this.rootElement.addEventListener("keydown",this.onKeyDown.bind(this),!0),this.rootElement.addEventListener("mousemove",this.onMouseMove.bind(this),!1),this.rootElement.addEventListener("mouseleave",this.onMouseLeave.bind(this),!1),this.rootElement.addEventListener("click",this.onClick.bind(this),!1),this.rootElement.addEventListener("contextmenu",this.contextMenuEventFired.bind(this),!1),this.rootElement.addEventListener("focusout",this.onFocusOut.bind(this),!1)}focus(){this.inspectedNodeBreadcrumb?this.inspectedNodeBreadcrumb.nodeElement().focus():this.element.focus()}setAXNode(e){if(this.#e)return;const t=this.element.hasFocus();if(super.setAXNode(e),this.rootElement.removeChildren(),!e)return;const a=[];let r=e;for(;r;)a.push(r),r=r.parentNode();a.reverse();let n=0,i=null;for(r of(this.inspectedNodeBreadcrumb=null,a)){if(r!==e&&r.ignored()&&r.parentNode())continue;const t=new $(r,n,r===e);i?i.appendChild(t):this.rootElement.appendChild(t.element()),i=t,n++,this.inspectedNodeBreadcrumb=t}function s(e,t,a){if(t.ignored())return void t.children().map((t=>s(e,t,a)));const r=new $(t,a,!1);e.appendChild(r);for(const e of t.children())s(r,e,a+1)}if(this.inspectedNodeBreadcrumb&&this.inspectedNodeBreadcrumb.setPreselected(!0,t),this.setPreselectedBreadcrumb(this.inspectedNodeBreadcrumb),this.inspectedNodeBreadcrumb&&!e.ignored())for(const t of e.children())s(this.inspectedNodeBreadcrumb,t,n),t.backendDOMNodeId()===this.collapsingBreadcrumbId&&this.setPreselectedBreadcrumb(this.inspectedNodeBreadcrumb.lastChild());this.collapsingBreadcrumbId=-1}willHide(){this.setPreselectedBreadcrumb(null)}onKeyDown(e){const t=this.preselectedBreadcrumb;if(!t)return;const a=e;if(!a.composedPath().some((e=>e===t.element())))return;if(a.shiftKey||a.metaKey||a.ctrlKey)return;let r=!1;"ArrowUp"!==a.key||a.altKey?"ArrowDown"!==a.key||a.altKey?"ArrowLeft"!==a.key||a.altKey?("Enter"===a.key||"ArrowRight"===a.key&&!a.altKey&&t.axNode().hasOnlyUnloadedChildren())&&(r=this.inspectDOMNode(t.axNode())):t.hasExpandedChildren()?this.collapseBreadcrumb(t):r=this.preselectParent():r=this.preselectNext():r=this.preselectPrevious(),r&&a.consume(!0)}preselectPrevious(){if(!this.preselectedBreadcrumb)return!1;const e=this.preselectedBreadcrumb.previousBreadcrumb();return!!e&&(this.setPreselectedBreadcrumb(e),!0)}preselectNext(){if(!this.preselectedBreadcrumb)return!1;const e=this.preselectedBreadcrumb.nextBreadcrumb();return!!e&&(this.setPreselectedBreadcrumb(e),!0)}preselectParent(){if(!this.preselectedBreadcrumb)return!1;const e=this.preselectedBreadcrumb.parentBreadcrumb();return!!e&&(this.setPreselectedBreadcrumb(e),!0)}setPreselectedBreadcrumb(e){if(e===this.preselectedBreadcrumb)return;const t=this.element.hasFocus();this.preselectedBreadcrumb&&this.preselectedBreadcrumb.setPreselected(!1,t),this.preselectedBreadcrumb=e||this.inspectedNodeBreadcrumb,this.preselectedBreadcrumb&&this.preselectedBreadcrumb.setPreselected(!0,t),!e&&t&&a.OverlayModel.OverlayModel.hideDOMNodeHighlight()}collapseBreadcrumb(e){if(!e.parentBreadcrumb())return;const t=e.axNode().backendDOMNodeId();null!==t&&(this.collapsingBreadcrumbId=t);const a=e.parentBreadcrumb();a&&this.inspectDOMNode(a.axNode())}onMouseLeave(e){this.setHoveredBreadcrumb(null)}onMouseMove(e){const t=e.target;if(!t)return;const a=t.enclosingNodeOrSelfWithClass("ax-breadcrumb");if(!a)return void this.setHoveredBreadcrumb(null);const r=Z.get(a);r&&r.isDOMNode()&&this.setHoveredBreadcrumb(r)}onFocusOut(e){this.preselectedBreadcrumb&&e.target===this.preselectedBreadcrumb.nodeElement()&&this.setPreselectedBreadcrumb(null)}onClick(e){const t=e.target;if(!t)return;const a=t.enclosingNodeOrSelfWithClass("ax-breadcrumb");if(!a)return void this.setHoveredBreadcrumb(null);const r=Z.get(a);return r?r.inspected()?(this.collapseBreadcrumb(r),void r.nodeElement().focus()):void(r.isDOMNode()&&this.inspectDOMNode(r.axNode())):void 0}setHoveredBreadcrumb(e){if(e===this.hoveredBreadcrumb)return;this.hoveredBreadcrumb&&this.hoveredBreadcrumb.setHovered(!1);const t=this.node();e?e.setHovered(!0):t&&t.id&&t.domModel().overlayModel().nodeHighlightRequested({nodeId:t.id}),this.hoveredBreadcrumb=e}inspectDOMNode(t){if(!t.isDOMNode())return!1;const a=t.deferredDOMNode();return a&&a.resolve((t=>{this.axSidebarView.setNode(t,!0),e.Revealer.reveal(t,!0)})),!0}contextMenuEventFired(e){const t=e.target;if(!t)return;const a=t.enclosingNodeOrSelfWithClass("ax-breadcrumb");if(!a)return;const n=Z.get(a);if(!n)return;const i=n.axNode();if(!i.isDOMNode()||!i.deferredDOMNode())return;const s=new r.ContextMenu.ContextMenu(e);s.viewSection().appendItem(J(G.scrollIntoView),(()=>{const e=i.deferredDOMNode();e&&e.resolvePromise().then((e=>{e&&e.scrollIntoView()}))}));const o=i.deferredDOMNode();o&&s.appendApplicableItems(o),s.show()}wasShown(){super.wasShown(),this.registerCSSFiles([K])}}const Z=new WeakMap;class ${axNodeInternal;elementInternal;nodeElementInternal;nodeWrapper;selectionElement;childrenGroupElement;children;hovered;preselectedInternal;parent;inspectedInternal;constructor(e,t,a){if(this.axNodeInternal=e,this.elementInternal=document.createElement("div"),this.elementInternal.classList.add("ax-breadcrumb"),Z.set(this.elementInternal,this),this.nodeElementInternal=document.createElement("div"),this.nodeElementInternal.classList.add("ax-node"),r.ARIAUtils.markAsTreeitem(this.nodeElementInternal),this.nodeElementInternal.tabIndex=-1,this.elementInternal.appendChild(this.nodeElementInternal),this.nodeWrapper=document.createElement("div"),this.nodeWrapper.classList.add("wrapper"),this.nodeElementInternal.appendChild(this.nodeWrapper),this.selectionElement=document.createElement("div"),this.selectionElement.classList.add("selection"),this.selectionElement.classList.add("fill"),this.nodeElementInternal.appendChild(this.selectionElement),this.childrenGroupElement=document.createElement("div"),this.childrenGroupElement.classList.add("children"),r.ARIAUtils.markAsGroup(this.childrenGroupElement),this.elementInternal.appendChild(this.childrenGroupElement),this.children=[],this.hovered=!1,this.preselectedInternal=!1,this.parent=null,this.inspectedInternal=a,this.nodeElementInternal.classList.toggle("inspected",a),this.nodeElementInternal.style.paddingLeft=16*t+4+"px",this.axNodeInternal.ignored())this.appendIgnoredNodeElement();else{this.appendRoleElement(this.axNodeInternal.role());const e=this.axNodeInternal.name();e&&e.value&&(this.nodeWrapper.createChild("span","separator").textContent=" ",this.appendNameElement(e.value))}!this.axNodeInternal.ignored()&&this.axNodeInternal.hasOnlyUnloadedChildren()&&(this.nodeElementInternal.classList.add("children-unloaded"),r.ARIAUtils.setExpanded(this.nodeElementInternal,!1)),this.axNodeInternal.isDOMNode()||this.nodeElementInternal.classList.add("no-dom-node")}element(){return this.elementInternal}nodeElement(){return this.nodeElementInternal}appendChild(e){this.children.push(e),e.setParent(this),this.nodeElementInternal.classList.add("parent"),r.ARIAUtils.setExpanded(this.nodeElementInternal,!0),this.childrenGroupElement.appendChild(e.element())}hasExpandedChildren(){return this.children.length}setParent(e){this.parent=e}preselected(){return this.preselectedInternal}setPreselected(e,t){this.preselectedInternal!==e&&(this.preselectedInternal=e,this.nodeElementInternal.classList.toggle("preselected",e),this.nodeElementInternal.tabIndex=e?0:-1,this.preselectedInternal&&(t&&this.nodeElementInternal.focus(),this.inspectedInternal?a.OverlayModel.OverlayModel.hideDOMNodeHighlight():this.axNodeInternal.highlightDOMNode()))}setHovered(e){this.hovered!==e&&(this.hovered=e,this.nodeElementInternal.classList.toggle("hovered",e),this.hovered&&(this.nodeElementInternal.classList.toggle("hovered",!0),this.axNodeInternal.highlightDOMNode()))}axNode(){return this.axNodeInternal}inspected(){return this.inspectedInternal}isDOMNode(){return this.axNodeInternal.isDOMNode()}nextBreadcrumb(){if(this.children.length)return this.children[0];const e=this.element().nextSibling;return e&&Z.get(e)||null}previousBreadcrumb(){const e=this.element().previousSibling;return e?Z.get(e)||null:this.parent}parentBreadcrumb(){return this.parent}lastChild(){return this.children[this.children.length-1]}appendNameElement(e){const t=document.createElement("span");t.textContent='"'+e+'"',t.classList.add("ax-readable-string"),this.nodeWrapper.appendChild(t)}appendRoleElement(e){if(!e)return;const t=document.createElement("span");t.classList.add("monospace"),t.classList.add(ee[e.type]),t.setTextContentTruncatedIfNeeded(e.value||""),this.nodeWrapper.appendChild(t)}appendIgnoredNodeElement(){const e=document.createElement("span");e.classList.add("monospace"),e.textContent=J(G.ignored),e.classList.add("ax-breadcrumbs-ignored-node"),this.nodeWrapper.appendChild(e)}}const ee={internalRole:"ax-internal-role",role:"ax-role"};var te=Object.freeze({__proto__:null,AXBreadcrumbsPane:Q,AXBreadcrumb:$,RoleStyles:ee});const ae={sourceOrderViewer:"Source Order Viewer",noSourceOrderInformation:"No source order information available",thereMayBeADelayInDisplaying:"There may be a delay in displaying source order for elements with many children",showSourceOrder:"Show source order"},re=t.i18n.registerUIStrings("panels/accessibility/SourceOrderView.ts",ae),ne=t.i18n.getLocalizedString.bind(void 0,re);class ie extends f{noNodeInfo;warning;checked;checkboxLabel;checkboxElement;overlayModel;constructor(){super(ne(ae.sourceOrderViewer)),this.noNodeInfo=this.createInfo(ne(ae.noSourceOrderInformation)),this.warning=this.createInfo(ne(ae.thereMayBeADelayInDisplaying)),this.warning.id="source-order-warning",this.checked=!1,this.checkboxLabel=r.UIUtils.CheckboxLabel.create(ne(ae.showSourceOrder),!1),this.checkboxElement=this.checkboxLabel.checkboxElement,this.checkboxLabel.classList.add("source-order-checkbox"),this.checkboxElement.addEventListener("click",this.checkboxClicked.bind(this),!1),this.element.appendChild(this.checkboxLabel),this.nodeInternal=null,this.overlayModel=null}async setNodeAsync(e){if(this.checkboxLabel.classList.contains("hidden")||(this.checked=this.checkboxElement.checked),this.checkboxElement.checked=!1,this.checkboxClicked(),super.setNode(e),!this.nodeInternal)return void(this.overlayModel=null);let t=!1;const a=this.nodeInternal.childNodeCount();if(a>0){this.nodeInternal.children()||await this.nodeInternal.getSubtree(1,!1);t=this.nodeInternal.children().some((e=>e.nodeType()===Node.ELEMENT_NODE))}this.noNodeInfo.classList.toggle("hidden",t),this.warning.classList.toggle("hidden",a<300),this.checkboxLabel.classList.toggle("hidden",!t),t?(this.overlayModel=this.nodeInternal.domModel().overlayModel(),this.checkboxElement.checked=this.checked,this.checkboxClicked()):this.overlayModel=null}checkboxClicked(){this.nodeInternal&&this.overlayModel&&(this.checkboxElement.checked?(s.userMetrics.actionTaken(s.UserMetrics.Action.SourceOrderViewActivated),this.overlayModel.highlightSourceOrderInOverlay(this.nodeInternal)):this.overlayModel.hideSourceOrderInOverlay())}}let se;class oe extends r.ThrottledWidget.ThrottledWidget{sourceOrderViewerExperimentEnabled;nodeInternal;axNodeInternal;skipNextPullNode;sidebarPaneStack;breadcrumbsSubPane=null;ariaSubPane;axNodeSubPane;sourceOrderSubPane;constructor(e){super(!1,e),this.sourceOrderViewerExperimentEnabled=n.Runtime.experiments.isEnabled("sourceOrderViewer"),this.nodeInternal=null,this.axNodeInternal=null,this.skipNextPullNode=!1,this.sidebarPaneStack=r.ViewManager.ViewManager.instance().createStackLocation(),this.breadcrumbsSubPane=new Q(this),this.sidebarPaneStack.showView(this.breadcrumbsSubPane),this.ariaSubPane=new U,this.sidebarPaneStack.showView(this.ariaSubPane),this.axNodeSubPane=new N,this.sidebarPaneStack.showView(this.axNodeSubPane),this.sourceOrderViewerExperimentEnabled&&(this.sourceOrderSubPane=new ie,this.sidebarPaneStack.showView(this.sourceOrderSubPane)),this.sidebarPaneStack.widget().show(this.element),r.Context.Context.instance().addFlavorChangeListener(a.DOMModel.DOMNode,this.pullNode,this),this.pullNode()}static instance(e){return se&&!e?.forceNew||(se=new oe(e?.throttlingTimeout)),se}node(){return this.nodeInternal}axNode(){return this.axNodeInternal}setNode(e,t){this.skipNextPullNode=Boolean(t),this.nodeInternal=e,this.update()}accessibilityNodeCallback(e){e&&(this.axNodeInternal=e,e.isDOMNode()?this.sidebarPaneStack.showView(this.ariaSubPane,this.axNodeSubPane):this.sidebarPaneStack.removeView(this.ariaSubPane),this.axNodeSubPane&&this.axNodeSubPane.setAXNode(e),this.breadcrumbsSubPane&&this.breadcrumbsSubPane.setAXNode(e))}async doUpdate(){const e=this.node();if(this.axNodeSubPane.setNode(e),this.ariaSubPane.setNode(e),this.breadcrumbsSubPane&&this.breadcrumbsSubPane.setNode(e),this.sourceOrderViewerExperimentEnabled&&this.sourceOrderSubPane&&this.sourceOrderSubPane.setNodeAsync(e),!e)return;const t=e.domModel().target().model(a.AccessibilityModel.AccessibilityModel);t&&(n.Runtime.experiments.isEnabled("fullAccessibilityTree")||t.clear(),await t.requestPartialAXTree(e),this.accessibilityNodeCallback(t.axNodeForDOMNode(e)))}wasShown(){super.wasShown(),this.doUpdate(),a.TargetManager.TargetManager.instance().addModelListener(a.DOMModel.DOMModel,a.DOMModel.Events.AttrModified,this.onNodeChange,this,{scoped:!0}),a.TargetManager.TargetManager.instance().addModelListener(a.DOMModel.DOMModel,a.DOMModel.Events.AttrRemoved,this.onNodeChange,this,{scoped:!0}),a.TargetManager.TargetManager.instance().addModelListener(a.DOMModel.DOMModel,a.DOMModel.Events.CharacterDataModified,this.onNodeChange,this,{scoped:!0}),a.TargetManager.TargetManager.instance().addModelListener(a.DOMModel.DOMModel,a.DOMModel.Events.ChildNodeCountUpdated,this.onNodeChange,this,{scoped:!0})}willHide(){a.TargetManager.TargetManager.instance().removeModelListener(a.DOMModel.DOMModel,a.DOMModel.Events.AttrModified,this.onNodeChange,this),a.TargetManager.TargetManager.instance().removeModelListener(a.DOMModel.DOMModel,a.DOMModel.Events.AttrRemoved,this.onNodeChange,this),a.TargetManager.TargetManager.instance().removeModelListener(a.DOMModel.DOMModel,a.DOMModel.Events.CharacterDataModified,this.onNodeChange,this),a.TargetManager.TargetManager.instance().removeModelListener(a.DOMModel.DOMModel,a.DOMModel.Events.ChildNodeCountUpdated,this.onNodeChange,this)}pullNode(){this.skipNextPullNode?this.skipNextPullNode=!1:this.setNode(r.Context.Context.instance().flavor(a.DOMModel.DOMNode))}onNodeChange(e){if(!this.node())return;const t=e.data,r=t instanceof a.DOMModel.DOMNode?t:t.node;this.node()===r&&this.update()}}var le=Object.freeze({__proto__:null,AccessibilitySidebarView:oe});export{_ as ARIAAttributesView,B as ARIAMetadata,te as AXBreadcrumbsPane,R as AccessibilityNodeView,le as AccessibilitySidebarView,b as AccessibilityStrings,x as AccessibilitySubPane};
@@ -0,0 +1 @@
1
+ import*as n from"./animation.js";self.Animation=self.Animation||{},Animation=Animation||{},Animation.AnimationModel=n.AnimationModel.AnimationModel,Animation.AnimationModel.Events=n.AnimationModel.Events,Animation.AnimationModel.Animation=n.AnimationModel.AnimationImpl,Animation.AnimationModel.AnimationGroup=n.AnimationModel.AnimationGroup,Animation.AnimationModel.ScreenshotCapture=n.AnimationModel.ScreenshotCapture,Animation.AnimationTimeline=n.AnimationTimeline.AnimationTimeline,Animation.AnimationUI=n.AnimationUI.AnimationUI,Animation.AnimationUI.Events=n.AnimationUI.Events;
@@ -0,0 +1 @@
1
+ import*as i from"../../core/i18n/i18n.js";import*as n from"../../ui/legacy/legacy.js";let a;const t={animations:"Animations",showAnimations:"Show Animations"},o=i.i18n.registerUIStrings("panels/animation/animation-meta.ts",t),e=i.i18n.getLazilyComputedLocalizedString.bind(void 0,o);n.ViewManager.registerViewExtension({location:"drawer-view",id:"animations",title:e(t.animations),commandPrompt:e(t.showAnimations),persistence:"closeable",order:0,loadView:async()=>(await async function(){return a||(a=await import("./animation.js")),a}()).AnimationTimeline.AnimationTimeline.instance()});
@@ -0,0 +1 @@
1
+ import*as e from"../../ui/legacy/legacy.js";import*as t from"../../core/common/common.js";import*as i from"../../core/i18n/i18n.js";import*as n from"../../core/platform/platform.js";import*as a from"../../ui/legacy/components/inline_editor/inline_editor.js";import*as r from"../../core/host/host.js";import*as o from"../../core/sdk/sdk.js";const s=new CSSStyleSheet;s.replaceSync(':host{overflow:hidden}.animation-node-row{width:100%;display:flex;border-bottom:1px dashed var(--color-details-hairline)}.animation-node-description{width:150px;padding-left:8px;overflow:hidden;position:relative;transform-style:preserve-3d;border-bottom:1px solid var(--color-details-hairline);margin-bottom:-1px;background-color:var(--color-background-elevation-1);display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start;white-space:nowrap;flex:0 0 150px}.animation-node-description > *{flex:0 0 auto}.animation-timeline-row{height:32px;position:relative}path.animation-keyframe{fill-opacity:0.2}.animation-node-selected path.animation-keyframe,\nsvg.animation-ui g:first-child:hover path.animation-keyframe{fill-opacity:0.4}line.animation-line{stroke-width:2px;stroke-linecap:round;fill:none}line.animation-delay-line{stroke-width:2px;stroke-dasharray:6,4}line.animation-delay-line.animation-fill{stroke-dasharray:none}circle.animation-keyframe-point{fill:var(--color-background)}circle.animation-endpoint,\ncircle.animation-keyframe-point{stroke-width:2px;transition:transform 100ms cubic-bezier(0,0,0.2,1);transform:scale(1);transform-box:fill-box;transform-origin:50% 50%}circle.animation-endpoint:active,\ncircle.animation-keyframe-point:active{transform:scale(1)}.animation-ui circle.animation-endpoint:hover,\n.animation-ui circle.animation-keyframe-point:hover{transform:scale(1.2)}.animation-name{position:absolute;top:8px;color:var(--color-text-primary);text-align:center;margin-left:-8px;white-space:nowrap}.animation-timeline-toolbar-container{display:flex;background-color:var(--color-background-elevation-1);border-bottom:var(--legacy-divider-border);flex:0 0 auto}.animation-timeline-toolbar{display:inline-block}.animation-timeline-header{height:28px;border-bottom:1px solid var(--color-details-hairline);flex-shrink:0;display:flex}.animation-timeline-header::after{content:"";height:calc(100% - 48px - 28px);position:absolute;width:150px;left:0;margin-top:28px;background-color:var(--color-background-elevation-1);z-index:0;border-right:1px solid var(--color-details-hairline)}.animation-controls{flex:0 0 150px;position:relative;display:flex;justify-content:flex-end;padding-right:8px}.animation-timeline-current-time{flex:0 0 auto;line-height:28px;margin-right:5px}.animation-grid-header{flex:1 0 auto;cursor:text}.animation-timeline-buffer,\n.animation-timeline-buffer-hint{height:48px;flex:0 0 auto;border-bottom:1px solid var(--color-details-hairline);display:flex;padding:0 2px}.animation-timeline-buffer:empty,\n.animation-timeline-buffer-hint{display:none}.animation-timeline-buffer:empty ~ .animation-timeline-buffer-hint{align-items:center;justify-content:center;font-size:14px;z-index:101;display:flex}.animation-time-overlay{background-color:var(--color-text-primary);opacity:5%;position:absolute;height:100%;width:100%;z-index:-1}.animation-timeline-end > .animation-time-overlay{visibility:hidden}.animation-scrubber{opacity:100%;position:absolute;left:10px;height:100%;width:100%;top:28px;border-left:1px solid var(--color-red);z-index:2;cursor:col-resize}.animation-scrubber-line{width:11px;background:linear-gradient(to right,transparent 5px,var(--color-red) 5px,var(--color-red) 6px,transparent 6px);position:absolute;top:-28px;height:28px;left:-6px;padding:0 5px;z-index:3}.animation-scrubber-head{width:7px;height:7px;transform:rotate(45deg);background:var(--color-red);position:absolute;left:2px;top:1px;z-index:4}.grid-overflow-wrapper{position:absolute;left:140px;top:76px;z-index:1;overflow:hidden}svg.animation-timeline-grid{position:absolute;left:0;top:0;right:0;bottom:0}rect.animation-timeline-grid-line{fill:var(--color-background-elevation-2)}.animation-timeline-row > svg.animation-ui{position:absolute}.animation-node-timeline{flex-grow:1}.animation-node-description > div{position:absolute;top:50%;transform:translateY(-50%);max-height:100%}.animation-node-removed{filter:saturate(0);cursor:not-allowed}svg.animation-ui g:first-child{opacity:100%}svg.animation-ui circle:focus-visible,\nsvg.animation-ui path:focus-visible{outline:2px solid -webkit-focus-ring-color}.animation-tail-iterations{opacity:50%}.animation-keyframe-step line{stroke-width:2;stroke-opacity:0.3}text.animation-timeline-grid-label{font-size:10px;fill:var(--color-text-secondary);text-anchor:middle}.animation-timeline-rows,\n.animation-timeline-rows-hint{flex-grow:1;overflow-y:auto;z-index:1;overflow-x:hidden}.animation-timeline-rows-hint{display:none}.animation-timeline-buffer:not(:empty) ~ .animation-timeline-rows:empty{flex-grow:0}.animation-timeline-buffer:not(:empty) ~ .animation-timeline-rows:empty ~ .animation-timeline-rows-hint{font-size:14px;display:flex;align-items:center;justify-content:center;margin-left:150px;padding:10px}.toolbar.animation-controls-toolbar{flex:0 0 auto}.animation-node-row.animation-node-selected{background-color:var(--color-background-hover-overlay)}.animation-node-selected > .animation-node-description{background-color:var(--color-background-elevation-2)}.animation-buffer-preview{height:40px;margin:4px 2px;background-color:var(--color-background-elevation-1);border:1px solid transparent;border-radius:2px;flex:1 1;padding:4px;max-width:100px;animation:newGroupAnim 200ms;position:relative}.animation-buffer-preview-animation{width:100%;height:100%;border-radius:2px 0 0 2px;position:absolute;top:0;left:0;background:var(--color-background-elevation-2);opacity:0%;border-right:1px solid var(--color-details-hairline)}.animation-buffer-preview:focus-visible{outline:-webkit-focus-ring-color auto 5px}.animation-buffer-preview:not(.selected):focus-visible,\n.animation-buffer-preview:not(.selected):hover{background-color:var(--color-background-elevation-2)}.animation-buffer-preview.selected{background-color:var(--legacy-selection-bg-color)}.animation-paused{align-items:center;justify-content:center;background-color:hsl(0deg 0% 70%/50%);display:none}.animation-paused::before,\n.animation-paused::after{content:"";background:var(--color-background);width:7px;height:20px;border-radius:2px;margin:2px;border:1px solid var(--color-details-hairline)}.animation-buffer-preview.paused .animation-paused{display:flex}.animation-buffer-preview > svg > line{stroke-width:1px}.animation-buffer-preview.selected > svg > line{stroke:var(--color-background)!important}@keyframes newGroupAnim{from{clip-path:polygon(0% 0%,0% 100%,0% 100%,0% 0%)}to{clip-path:polygon(0% 0%,0% 100%,100% 100%,100% 0%)}}.animation-playback-rate-control{margin:4px 0 4px 2px;display:flex;width:120px}.animation-playback-rate-button{border:1px solid var(--color-button-secondary-border);color:var(--color-text-primary);display:inline-block;margin-right:-1px;padding:1px 4px;background-color:transparent;flex:1 0 auto;text-align:center}.animation-playback-rate-button:first-child{border-radius:4px 0 0 4px}.animation-playback-rate-button:last-child{border-radius:0 4px 4px 0}.animation-playback-rate-button.selected{color:var(--color-button-primary-text);background-color:var(--color-primary-old);border-color:var(--color-primary-old);z-index:1}.animation-playback-rate-button.selected:focus-visible{color:var(--color-text-primary)}.animation-playback-rate-button:focus-visible{background-color:var(--legacy-focus-bg-color)}.animation-playback-rate-button:not(.selected):hover{background:var(--color-background-elevation-2)}.animation-remove-button{position:absolute;top:-3px;right:-3px;background:var(--color-text-secondary);border-radius:12px;height:16px;width:16px;align-items:center;font-size:10px;justify-content:center;box-shadow:0 1px 4px 0 var(--color-background-highlight);z-index:100;display:none;font-weight:700;color:var(--color-background)}.animation-remove-button:hover{background:var(--color-text-primary)}.animation-buffer-preview:hover .animation-remove-button{display:flex}@media (forced-colors: active){.animation-playback-rate-button.selected,\n .animation-playback-rate-button.selected:first-child,\n .animation-playback-rate-button.selected:first-child:focus-visible,\n .animation-playback-rate-button:focus-visible{forced-color-adjust:none;color:HighlightText;background-color:Highlight}.animation-node-description:focus-visible{background-color:var(--color-background);forced-color-adjust:none}.monospace{forced-color-adjust:auto}}\n/*# sourceURL=animationTimeline.css */\n');class l extends o.SDKModel.SDKModel{runtimeModel;agent;#e;animationGroups;#t;playbackRate;#i;#n;constructor(e){super(e),this.runtimeModel=e.model(o.RuntimeModel.RuntimeModel),this.agent=e.animationAgent(),e.registerAnimationDispatcher(new b(this)),this.#e=new Map,this.animationGroups=new Map,this.#t=new Set,this.playbackRate=1;e.model(o.ResourceTreeModel.ResourceTreeModel).addEventListener(o.ResourceTreeModel.Events.PrimaryPageChanged,this.reset,this);const t=e.model(o.ScreenCaptureModel.ScreenCaptureModel);t&&(this.#i=new f(this,t))}reset(){this.#e.clear(),this.animationGroups.clear(),this.#t.clear(),this.dispatchEventToListeners(d.ModelReset)}animationCreated(e){this.#t.add(e)}animationCanceled(e){this.#t.delete(e),this.flushPendingAnimationsIfNeeded()}animationStarted(e){if(!e.source||!e.source.backendNodeId)return;const t=h.parsePayload(this,e);if(!t)return;const i=t.source().keyframesRule();"WebAnimation"===t.type()&&i&&0===i.keyframes().length?this.#t.delete(t.id()):(this.#e.set(t.id(),t),this.#t.add(t.id())),this.flushPendingAnimationsIfNeeded()}flushPendingAnimationsIfNeeded(){for(const e of this.#t)if(!this.#e.get(e))return;for(;this.#t.size;)this.matchExistingGroups(this.createGroupFromPendingAnimations())}matchExistingGroups(e){let t=null;for(const i of this.animationGroups.values())if(i.matches(e)){t=i,i.update(e);break}return t||(this.animationGroups.set(e.id(),e),this.#i&&this.#i.captureScreenshots(e.finiteDuration(),e.screenshotsInternal)),this.dispatchEventToListeners(d.AnimationGroupStarted,t||e),Boolean(t)}createGroupFromPendingAnimations(){console.assert(this.#t.size>0);const e=this.#t.values().next().value;this.#t.delete(e);const t=this.#e.get(e);if(!t)throw new Error("Unable to locate first animation");const i=[t],n=t.startTime(),a=new Set;for(const e of this.#t){const t=this.#e.get(e);t.startTime()===n?i.push(t):a.add(e)}return this.#t=a,new p(this,e,i)}setPlaybackRate(e){this.playbackRate=e,this.agent.invoke_setPlaybackRate({playbackRate:e})}releaseAnimations(e){this.agent.invoke_releaseAnimations({animations:e})}async suspendModel(){this.reset(),await this.agent.invoke_disable()}async resumeModel(){this.#n&&await this.agent.invoke_enable()}async ensureEnabled(){this.#n||(await this.agent.invoke_enable(),this.#n=!0)}}var d;!function(e){e.AnimationGroupStarted="AnimationGroupStarted",e.ModelReset="ModelReset"}(d||(d={}));class h{#a;#r;#o;#s;constructor(e,t){this.#a=e,this.#r=t,this.#o=new c(e,this.#r.source)}static parsePayload(e,t){return new h(e,t)}payload(){return this.#r}id(){return this.#r.id}name(){return this.#r.name}paused(){return this.#r.pausedState}playState(){return this.#s||this.#r.playState}setPlayState(e){this.#s=e}playbackRate(){return this.#r.playbackRate}startTime(){return this.#r.startTime}endTime(){return this.source().iterations?this.startTime()+this.source().delay()+this.source().duration()*this.source().iterations()+this.source().endDelay():1/0}finiteDuration(){const e=Math.min(this.source().iterations(),3);return this.source().delay()+this.source().duration()*e}currentTime(){return this.#r.currentTime}source(){return this.#o}type(){return this.#r.type}overlaps(e){if(!this.source().iterations()||!e.source().iterations())return!0;const t=this.startTime()<e.startTime()?this:e,i=t===this?e:this;return t.endTime()>=i.startTime()}setTiming(e,t){this.#o.node().then((i=>{if(!i)throw new Error("Unable to find node");this.updateNodeStyle(e,t,i)})),this.#o.durationInternal=e,this.#o.delayInternal=t,this.#a.agent.invoke_setTiming({animationId:this.id(),duration:e,delay:t})}updateNodeStyle(e,t,i){let n;if("CSSTransition"===this.type())n="transition-";else{if("CSSAnimation"!==this.type())return;n="animation-"}if(!i.id)throw new Error("Node has no id");const a=i.domModel().cssModel();a.setEffectivePropertyValueForNode(i.id,n+"duration",e+"ms"),a.setEffectivePropertyValueForNode(i.id,n+"delay",t+"ms")}async remoteObjectPromise(){const e=await this.#a.agent.invoke_resolveAnimation({animationId:this.id()});return e?this.#a.runtimeModel.createRemoteObject(e.remoteObject):null}cssId(){return this.#r.cssId||""}}class c{#a;#l;#d;delayInternal;durationInternal;#h;constructor(e,t){this.#a=e,this.#l=t,t.keyframesRule&&(this.#d=new m(t.keyframesRule)),this.delayInternal=this.#l.delay,this.durationInternal=this.#l.duration}delay(){return this.delayInternal}endDelay(){return this.#l.endDelay}iterationStart(){return this.#l.iterationStart}iterations(){return this.delay()||this.endDelay()||this.duration()?this.#l.iterations||1/0:0}duration(){return this.durationInternal}direction(){return this.#l.direction}fill(){return this.#l.fill}node(){return this.#h||(this.#h=new o.DOMModel.DeferredDOMNode(this.#a.target(),this.backendNodeId())),this.#h.resolvePromise()}deferredNode(){return new o.DOMModel.DeferredDOMNode(this.#a.target(),this.backendNodeId())}backendNodeId(){return this.#l.backendNodeId}keyframesRule(){return this.#d||null}easing(){return this.#l.easing}}class m{#l;#c;constructor(e){this.#l=e,this.#c=this.#l.keyframes.map((function(e){return new u(e)}))}setKeyframesPayload(e){this.#c=e.map((function(e){return new u(e)}))}name(){return this.#l.name}keyframes(){return this.#c}}class u{#l;#m;constructor(e){this.#l=e,this.#m=this.#l.offset}offset(){return this.#m}setOffset(e){this.#m=100*e+"%"}offsetAsNumber(){return parseFloat(this.#m)/100}easing(){return this.#l.easing}}class p{#a;#u;#p;#b;screenshotsInternal;#f;constructor(e,t,i){this.#a=e,this.#u=t,this.#p=i,this.#b=!1,this.screenshotsInternal=[],this.#f=[]}id(){return this.#u}animations(){return this.#p}release(){this.#a.animationGroups.delete(this.id()),this.#a.releaseAnimations(this.animationIds())}animationIds(){return this.#p.map((function(e){return e.id()}))}startTime(){return this.#p[0].startTime()}finiteDuration(){let e=0;for(let t=0;t<this.#p.length;++t)e=Math.max(e,this.#p[t].finiteDuration());return e}seekTo(e){this.#a.agent.invoke_seekAnimations({animations:this.animationIds(),currentTime:e})}paused(){return this.#b}togglePause(e){e!==this.#b&&(this.#b=e,this.#a.agent.invoke_setPaused({animations:this.animationIds(),paused:e}))}currentTimePromise(){let e=null;for(const t of this.#p)(!e||t.endTime()>e.endTime())&&(e=t);if(!e)throw new Error("No longest animation found");return this.#a.agent.invoke_getCurrentTime({id:e.id()}).then((({currentTime:e})=>e||0))}matches(e){function t(e){return"WebAnimation"===e.type()?e.type()+e.id():e.cssId()}if(this.#p.length!==e.#p.length)return!1;const i=this.#p.map(t).sort(),n=e.#p.map(t).sort();for(let e=0;e<i.length;e++)if(i[e]!==n[e])return!1;return!0}update(e){this.#a.releaseAnimations(this.animationIds()),this.#p=e.#p}screenshots(){for(let e=0;e<this.screenshotsInternal.length;++e){const t=new Image;t.src="data:image/jpeg;base64,"+this.screenshotsInternal[e],this.#f.push(t)}return this.screenshotsInternal=[],this.#f}}class b{#a;constructor(e){this.#a=e}animationCreated({id:e}){this.#a.animationCreated(e)}animationCanceled({id:e}){this.#a.animationCanceled(e)}animationStarted({animation:e}){this.#a.animationStarted(e)}}class f{#g;#y;#a;#v;#w;#x;constructor(e,t){this.#g=[],this.#y=t,this.#a=e,this.#a.addEventListener(d.ModelReset,this.stopScreencast,this)}captureScreenshots(e,t){const i=Math.min(e/this.#a.playbackRate,3e3),n=i+window.performance.now();this.#g.push({endTime:n,screenshots:t}),(!this.#w||n>this.#w)&&(clearTimeout(this.#v),this.#v=window.setTimeout(this.stopScreencast.bind(this),i),this.#w=n),this.#x||(this.#x=!0,this.#y.startScreencast("jpeg",80,void 0,300,2,this.screencastFrame.bind(this),(e=>{})))}screencastFrame(e,t){if(!this.#x)return;const i=window.performance.now();this.#g=this.#g.filter((function(e){return e.endTime>=i}));for(const t of this.#g)t.screenshots.push(e)}stopScreencast(){this.#x&&(this.#v=void 0,this.#w=void 0,this.#g=[],this.#x=!1,this.#y.stopScreencast())}}o.SDKModel.SDKModel.register(l,{capabilities:o.Target.Capability.DOM,autostart:!1});var g=Object.freeze({__proto__:null,AnimationModel:l,get Events(){return d},AnimationImpl:h,AnimationEffect:c,KeyframesRule:m,KeyframeStyle:u,AnimationGroup:p,AnimationDispatcher:b,ScreenshotCapture:f});const y=new CSSStyleSheet;y.replaceSync("img{max-height:300px;border-radius:2px}.animation-progress{position:absolute;height:2px;bottom:0;left:0;background:var(--legacy-selection-bg-color)}\n/*# sourceURL=animationScreenshotPopover.css */\n");class v extends e.Widget.VBox{#k;#M;#A;#I;#T;#S;constructor(e){super(!0),console.assert(e.length>0),this.contentElement.classList.add("animation-screenshot-popover"),this.#k=e;for(const t of e)this.contentElement.appendChild(t),t.style.display="none";this.#M=0,this.#A=0,this.#k[0].style.display="block",this.#I=this.contentElement.createChild("div","animation-progress")}wasShown(){this.#M=this.contentElement.window().requestAnimationFrame(this.changeFrame.bind(this)),this.registerCSSFiles([y])}willHide(){this.contentElement.window().cancelAnimationFrame(this.#M),this.#S=void 0}changeFrame(){if(this.#M=this.contentElement.window().requestAnimationFrame(this.changeFrame.bind(this)),this.#S)return void this.#S--;if(this.#T=!this.#T,!this.#T)return;const e=this.#k.length;this.#k[this.#A%e].style.display="none",this.#A++,this.#k[this.#A%e].style.display="block",this.#A%e==e-1&&(this.#S=50),this.#I.style.width=(this.#A%e+1)/e*100+"%"}}var w=Object.freeze({__proto__:null,AnimationScreenshotPopover:v});const x={selectAnEffectAboveToInspectAnd:"Select an effect above to inspect and modify.",clearAll:"Clear all",pauseAll:"Pause all",playbackRates:"Playback rates",playbackRatePlaceholder:"{PH1}%",pause:"Pause",setSpeedToS:"Set speed to {PH1}",animationPreviews:"Animation previews",waitingForAnimations:"Waiting for animations...",replayTimeline:"Replay timeline",resumeAll:"Resume all",playTimeline:"Play timeline",pauseTimeline:"Pause timeline",animationPreviewS:"Animation Preview {PH1}"},k=i.i18n.registerUIStrings("panels/animation/AnimationTimeline.ts",x),M=i.i18n.getLocalizedString.bind(void 0,k),A=new WeakMap,I=new WeakMap;let T;class S extends e.Widget.VBox{#C;#P;#R;#E;#B;#L;#G;#D;#U;#F;#H;#N;#O;#z;#_;#j;#K;#W;#V;#q;#X;#Q;#$;#Y;#Z;#J;#ee;#te;#ie;#ne;#ae;#re;constructor(){super(!0),this.element.classList.add("animations-timeline"),this.#C=this.contentElement.createChild("div","grid-overflow-wrapper"),this.#P=e.UIUtils.createSVGChild(this.#C,"svg","animation-timeline-grid"),this.#R=1,this.#E=!1,this.createHeader(),this.#B=this.contentElement.createChild("div","animation-timeline-rows");this.contentElement.createChild("div","animation-timeline-rows-hint").textContent=M(x.selectAnEffectAboveToInspectAnd),this.#z=100,this.#_=this.#z,this.#j=150,this.#K=new Map,this.#W=[],this.#V=[],this.#q=new Map,this.#X=new Map,o.TargetManager.TargetManager.instance().addModelListener(o.DOMModel.DOMModel,o.DOMModel.Events.NodeRemoved,this.nodeRemoved,this,{scoped:!0}),o.TargetManager.TargetManager.instance().observeModels(l,this,{scoped:!0}),e.Context.Context.instance().addFlavorChangeListener(o.DOMModel.DOMNode,this.nodeChanged,this)}static instance(e){return T&&!e?.forceNew||(T=new S),T}get previewMap(){return this.#q}get uiAnimations(){return this.#W}get groupBuffer(){return this.#V}wasShown(){for(const e of o.TargetManager.TargetManager.instance().models(l,{scoped:!0}))this.addEventListeners(e);this.registerCSSFiles([s])}willHide(){for(const e of o.TargetManager.TargetManager.instance().models(l,{scoped:!0}))this.removeEventListeners(e);this.#F&&this.#F.hidePopover()}modelAdded(e){this.isShowing()&&this.addEventListeners(e)}modelRemoved(e){this.removeEventListeners(e)}addEventListeners(e){e.ensureEnabled(),e.addEventListener(d.AnimationGroupStarted,this.animationGroupStarted,this),e.addEventListener(d.ModelReset,this.reset,this)}removeEventListeners(e){e.removeEventListener(d.AnimationGroupStarted,this.animationGroupStarted,this),e.removeEventListener(d.ModelReset,this.reset,this)}nodeChanged(){for(const e of this.#K.values())e.nodeChanged()}createScrubber(){return this.#D=document.createElement("div"),this.#D.classList.add("animation-scrubber"),this.#D.classList.add("hidden"),this.#Q=this.#D.createChild("div","animation-scrubber-line"),this.#Q.createChild("div","animation-scrubber-head"),this.#D.createChild("div","animation-time-overlay"),this.#D}createHeader(){const t=this.contentElement.createChild("div","animation-timeline-toolbar-container"),i=new e.Toolbar.Toolbar("animation-timeline-toolbar",t);this.#H=new e.Toolbar.ToolbarButton(M(x.clearAll),"clear"),this.#H.addEventListener(e.Toolbar.ToolbarButton.Events.Click,this.reset.bind(this)),i.appendToolbarItem(this.#H),i.appendSeparator(),this.#$=new e.Toolbar.ToolbarToggle(M(x.pauseAll),"pause","resume"),this.#$.addEventListener(e.Toolbar.ToolbarButton.Events.Click,this.togglePauseAll.bind(this)),i.appendToolbarItem(this.#$);const n=t.createChild("div","animation-playback-rate-control");n.addEventListener("keydown",this.handlePlaybackRateControlKeyDown.bind(this)),e.ARIAUtils.markAsListBox(n),e.ARIAUtils.setLabel(n,M(x.playbackRates)),this.#L=[];for(const t of C){const i=n.createChild("button","animation-playback-rate-button");i.textContent=t?M(x.playbackRatePlaceholder,{PH1:100*t}):M(x.pause),I.set(i,t),i.addEventListener("click",this.setPlaybackRate.bind(this,t)),e.ARIAUtils.markAsOption(i),e.Tooltip.Tooltip.install(i,M(x.setSpeedToS,{PH1:i.textContent})),i.tabIndex=-1,this.#L.push(i)}this.updatePlaybackControls(),this.#G=this.contentElement.createChild("div","animation-timeline-buffer"),e.ARIAUtils.markAsListBox(this.#G),e.ARIAUtils.setLabel(this.#G,M(x.animationPreviews)),this.#F=new e.PopoverHelper.PopoverHelper(this.#G,this.getPopoverRequest.bind(this)),this.#F.setDisableOnClick(!0),this.#F.setTimeout(0);this.contentElement.createChild("div","animation-timeline-buffer-hint").textContent=M(x.waitingForAnimations);const a=this.contentElement.createChild("div","animation-timeline-header"),r=a.createChild("div","animation-controls");this.#U=r.createChild("div","animation-timeline-current-time monospace");const o=new e.Toolbar.Toolbar("animation-controls-toolbar",r);this.#Y=new e.Toolbar.ToolbarToggle(M(x.replayTimeline),"replay"),this.#Z="replay-outline",this.#Y.setToggled(!0),this.#Y.addEventListener(e.Toolbar.ToolbarButton.Events.Click,this.controlButtonToggle.bind(this)),o.appendToolbarItem(this.#Y);const s=a.createChild("div","animation-grid-header");return e.UIUtils.installDragHandle(s,this.repositionScrubber.bind(this),this.scrubberDragMove.bind(this),this.scrubberDragEnd.bind(this),"text"),this.#C.appendChild(this.createScrubber()),this.#Q&&e.UIUtils.installDragHandle(this.#Q,this.scrubberDragStart.bind(this),this.scrubberDragMove.bind(this),this.scrubberDragEnd.bind(this),"col-resize"),this.#U.textContent="",a}handlePlaybackRateControlKeyDown(e){switch(e.key){case"ArrowLeft":case"ArrowUp":this.focusNextPlaybackRateButton(e.target,!0);break;case"ArrowRight":case"ArrowDown":this.focusNextPlaybackRateButton(e.target)}}focusNextPlaybackRateButton(e,t){const i=e,n=this.#L.indexOf(i),a=t?n-1:n+1;if(a<0||a>=this.#L.length)return;const r=this.#L[a];r.tabIndex=0,r.focus(),e&&(e.tabIndex=-1)}getPopoverRequest(e){const t=e.target;return t&&t.isDescendant(this.#G)?{box:t.boxInWindow(),show:e=>{let i;for(const[e,n]of this.#q)n.element!==t&&n.element!==t.parentElement||(i=e);if(console.assert(void 0!==i),!i)return Promise.resolve(!1);const n=i.screenshots();if(!n.length)return Promise.resolve(!1);let a;const r=new Promise((e=>{a=e}));return n[0].complete?o(n):n[0].onload=o.bind(null,n),r;function o(t){new v(t).show(e.contentElement),a(!0)}},hide:void 0}:null}togglePauseAll(){this.#E=!this.#E,this.#$&&this.#$.setToggled(this.#E),this.setPlaybackRate(this.#R),this.#$&&this.#$.setTitle(this.#E?M(x.resumeAll):M(x.pauseAll))}setPlaybackRate(e){this.#R=e;for(const e of o.TargetManager.TargetManager.instance().models(l,{scoped:!0}))e.setPlaybackRate(this.#E?0:this.#R);r.userMetrics.actionTaken(r.UserMetrics.Action.AnimationsPlaybackRateChanged),this.#ie&&(this.#ie.playbackRate=this.effectivePlaybackRate()),this.updatePlaybackControls()}updatePlaybackControls(){for(const e of this.#L){const t=this.#R===I.get(e);e.classList.toggle("selected",t),e.tabIndex=t?0:-1}}controlButtonToggle(){"play-outline"===this.#Z?this.togglePause(!1):"replay-outline"===this.#Z?this.replay():this.togglePause(!0)}updateControlButton(){this.#Y&&(this.#Y.setEnabled(Boolean(this.#N)),this.#N&&this.#N.paused()?(this.#Z="play-outline",this.#Y.setToggled(!0),this.#Y.setTitle(M(x.playTimeline)),this.#Y.setGlyph("play")):!this.#ie||!this.#ie.currentTime||"number"!=typeof this.#ie.currentTime||this.#ie.currentTime>=this.duration()?(this.#Z="replay-outline",this.#Y.setToggled(!0),this.#Y.setTitle(M(x.replayTimeline)),this.#Y.setGlyph("replay")):(this.#Z="pause-outline",this.#Y.setToggled(!1),this.#Y.setTitle(M(x.pauseTimeline)),this.#Y.setGlyph("pause")))}effectivePlaybackRate(){return this.#E||this.#N&&this.#N.paused()?0:this.#R}togglePause(e){if(this.#N){this.#N.togglePause(e);const t=this.#q.get(this.#N);t&&t.element.classList.toggle("paused",e)}this.#ie&&(this.#ie.playbackRate=this.effectivePlaybackRate()),this.updateControlButton()}replay(){this.#N&&(this.#N.seekTo(0),this.animateTime(0),this.updateControlButton())}duration(){return this.#_}setDuration(e){this.#_=e,this.scheduleRedraw()}clearTimeline(){this.#W=[],this.#K.clear(),this.#X.clear(),this.#B.removeChildren(),this.#_=this.#z,this.#D.classList.add("hidden"),this.#N=null,this.#ie&&this.#ie.cancel(),this.#ie=void 0,this.#U.textContent="",this.updateControlButton()}reset(){this.clearTimeline(),this.#E?this.togglePauseAll():this.setPlaybackRate(this.#R);for(const e of this.#V)e.release();this.#V=[],this.#q.clear(),this.#G.removeChildren(),this.#F.hidePopover(),this.renderGrid()}animationGroupStarted({data:e}){this.addAnimationGroup(e)}addAnimationGroup(t){const i=this.#q.get(t);if(i)return void(this.#N===t?this.syncScrubber():i.replay());this.#V.sort((function(e,t){return e.startTime()===t.startTime()?0:e.startTime()>t.startTime()?1:-1}));const n=[],a=this.width()/50;for(;this.#V.length>a;){const e=this.#V.splice(this.#V[0]===this.#N?1:0,1);n.push(e[0])}for(const e of n){const t=this.#q.get(e);t&&(t.element.remove(),this.#q.delete(e),e.release())}const r=new N(t);if(this.#V.push(t),this.#q.set(t,r),this.#G.appendChild(r.element),r.removeButton().addEventListener("click",this.removeAnimationGroup.bind(this,t)),r.element.addEventListener("click",this.selectAnimationGroup.bind(this,t)),r.element.addEventListener("keydown",this.handleAnimationGroupKeyDown.bind(this,t)),e.ARIAUtils.setLabel(r.element,M(x.animationPreviewS,{PH1:this.#V.indexOf(t)+1})),e.ARIAUtils.markAsOption(r.element),1===this.#q.size){const e=this.#q.get(this.#V[0]);e&&(e.element.tabIndex=0)}}handleAnimationGroupKeyDown(e,t){switch(t.key){case" ":case"Enter":this.selectAnimationGroup(e);break;case"Backspace":case"Delete":this.removeAnimationGroup(e,t);break;case"ArrowLeft":case"ArrowUp":this.focusNextGroup(e,t.target,!0);break;case"ArrowRight":case"ArrowDown":this.focusNextGroup(e,t.target)}}focusNextGroup(e,t,i){const n=this.#V.indexOf(e),a=i?n-1:n+1;if(a<0||a>=this.#V.length)return;const r=this.#q.get(this.#V[a]);r&&(r.element.tabIndex=0,r.element.focus()),t&&(t.tabIndex=-1)}removeAnimationGroup(e,t){const i=this.#V.indexOf(e);n.ArrayUtilities.removeElement(this.#V,e);const a=this.#q.get(e);a&&a.element.remove(),this.#q.delete(e),e.release(),t.consume(!0),this.#N===e&&(this.clearTimeline(),this.renderGrid());if(0===this.#V.length)return void this.#H.element.focus();const r=i>=this.#V.length?this.#q.get(this.#V[this.#V.length-1]):this.#q.get(this.#V[i]);r&&(r.element.tabIndex=0,r.element.focus())}selectAnimationGroup(e){if(this.#N===e)return this.togglePause(!1),void this.replay();this.clearTimeline(),this.#N=e,this.#q.forEach((function(e,t){e.element.classList.toggle("selected",this.#N===t)}),this),this.setDuration(Math.max(500,e.finiteDuration()+100));for(const t of e.animations())this.addAnimation(t);this.scheduleRedraw(),this.#D.classList.remove("hidden"),this.togglePause(!1),this.replay()}addAnimation(e){let t=this.#K.get(e.source().backendNodeId());t||(t=new P(e.source()),this.#B.appendChild(t.element),this.#K.set(e.source().backendNodeId(),t));const i=t.createNewRow(),n=new D(e,this,i);e.source().deferredNode().resolve(function(e){n.setNode(e),e&&t&&(t.nodeResolved(e),A.set(e,t))}.bind(this)),this.#W.push(n),this.#X.set(e.id(),e)}nodeRemoved(e){const{node:t}=e.data,i=A.get(t);i&&i.nodeRemoved()}renderGrid(){const t=(this.width()+10).toString(),n=((this.#te||0)+30).toString();let a;this.#C.style.width=t+"px",this.#C.style.height=n.toString()+"px",this.#P.setAttribute("width",t),this.#P.setAttribute("height",n.toString()),this.#P.setAttribute("shape-rendering","crispEdges"),this.#P.removeChildren();for(let t=0;t<this.duration();t+=250){const i=e.UIUtils.createSVGChild(this.#P,"rect","animation-timeline-grid-line");i.setAttribute("x",(t*this.pixelMsRatio()+10).toString()),i.setAttribute("y","23"),i.setAttribute("height","100%"),i.setAttribute("width","1")}for(let t=0;t<this.duration();t+=250){const n=t*this.pixelMsRatio();if(void 0===a||n-a>50){a=n;const r=e.UIUtils.createSVGChild(this.#P,"text","animation-timeline-grid-label");r.textContent=i.TimeUtilities.millisToString(t),r.setAttribute("x",(n+10).toString()),r.setAttribute("y","16")}}}scheduleRedraw(){this.#O=[];for(const e of this.#W)this.#O.push(e);this.#J||(this.#J=!0,this.renderGrid(),this.#B.window().requestAnimationFrame(this.render.bind(this)))}render(e){for(;this.#O.length&&(!e||window.performance.now()-e<50);){const e=this.#O.shift();e&&e.redraw()}this.#O.length?this.#B.window().requestAnimationFrame(this.render.bind(this)):this.#J=void 0}onResize(){this.#ee=Math.max(0,this.#B.offsetWidth-this.#j)||0,this.#te=this.#B.offsetHeight,this.scheduleRedraw(),this.#ie&&this.syncScrubber(),this.#ne=void 0}width(){return this.#ee||0}resizeWindow(e){let t=!1;const i=e.source().duration()*Math.min(2,e.source().iterations()),n=e.source().delay()+i+e.source().endDelay();return n>this.#_&&(t=!0,this.#_=n+200),t}syncScrubber(){this.#N&&this.#N.currentTimePromise().then(this.animateTime.bind(this)).then(this.updateControlButton.bind(this))}animateTime(e){this.#ie&&this.#ie.cancel(),this.#ie=this.#D.animate([{transform:"translateX(0px)"},{transform:"translateX("+this.width()+"px)"}],{duration:this.duration(),fill:"forwards"}),this.#ie.playbackRate=this.effectivePlaybackRate(),this.#ie.onfinish=this.updateControlButton.bind(this),this.#ie.currentTime=e,this.element.window().requestAnimationFrame(this.updateScrubber.bind(this))}pixelMsRatio(){return this.width()/this.duration()||0}updateScrubber(e){this.#ie&&(this.#U.textContent=i.TimeUtilities.millisToString(this.#oe()),"pending"===this.#ie.playState.toString()||"running"===this.#ie.playState?this.element.window().requestAnimationFrame(this.updateScrubber.bind(this)):"finished"===this.#ie.playState&&(this.#U.textContent=""))}repositionScrubber(e){if(!this.#N)return!1;this.#ne||(this.#ne=this.#P.getBoundingClientRect().left+10);const{x:t}=e,i=Math.max(0,t-this.#ne)/this.pixelMsRatio();return this.#N.seekTo(i),this.togglePause(!0),this.animateTime(i),this.#ae=i,this.#re=t,!0}scrubberDragStart(e){if(!this.#ie||!this.#N)return!1;this.#ae="number"==typeof this.#ie.currentTime?this.#ie.currentTime:null,this.#D.classList.remove("animation-timeline-end"),this.#ie.pause();const{x:t}=e;return this.#re=t,this.togglePause(!0),!0}scrubberDragMove(e){const{x:t}=e,n=t-(this.#re||0),a=Math.max(0,Math.min((this.#ae||0)+n/this.pixelMsRatio(),this.duration()));this.#ie&&(this.#ie.currentTime=a),this.#U.textContent=i.TimeUtilities.millisToString(Math.round(a)),this.#N&&this.#N.seekTo(a)}#oe(){return"number"==typeof this.#ie?.currentTime?this.#ie.currentTime:0}scrubberDragEnd(e){if(this.#ie){const e=Math.max(0,this.#oe());this.#ie.play(),this.#ie.currentTime=e}this.#U.window().requestAnimationFrame(this.updateScrubber.bind(this))}}const C=[1,.25,.1];class P{element;#se;#le;#de;constructor(t){this.element=document.createElement("div"),this.element.classList.add("animation-node-row"),this.#se=this.element.createChild("div","animation-node-description"),this.#le=this.element.createChild("div","animation-node-timeline"),e.ARIAUtils.markAsApplication(this.#le)}nodeResolved(i){i?(this.#de=i,this.nodeChanged(),t.Linkifier.Linkifier.linkify(i).then((e=>this.#se.appendChild(e))),i.ownerDocument||this.nodeRemoved()):e.UIUtils.createTextChild(this.#se,"<node>")}createNewRow(){return this.#le.createChild("div","animation-timeline-row")}nodeRemoved(){this.element.classList.add("animation-node-removed"),this.#de=null}nodeChanged(){let t=!1;this.#de&&(t=this.#de===e.Context.Context.instance().flavor(o.DOMModel.DOMNode)),this.element.classList.toggle("animation-node-selected",t)}}class R{steps;stepAtPosition;constructor(e,t){this.steps=e,this.stepAtPosition=t}static parse(e){let t=e.match(/^steps\((\d+), (start|middle)\)$/);return t?new R(parseInt(t[1],10),t[2]):(t=e.match(/^steps\((\d+)\)$/),t?new R(parseInt(t[1],10),"end"):null)}}var E=Object.freeze({__proto__:null,AnimationTimeline:S,GlobalPlaybackRates:C,NodeUI:P,StepTimingFunction:R});const B={animationEndpointSlider:"Animation Endpoint slider",animationKeyframeSlider:"Animation Keyframe slider",sSlider:"{PH1} slider"},L=i.i18n.registerUIStrings("panels/animation/AnimationUI.ts",B),G=i.i18n.getLocalizedString.bind(void 0,L);class D{#he;#ce;#me;#ue;#pe;#be;#fe;#ge;#ye;#ve;#de;#we;#xe;#ke;#Me;#Ae;#Ie;constructor(t,i,n){this.#he=t,this.#ce=i;const a=this.#he.source().keyframesRule();a&&(this.#me=a.keyframes()),this.#ue=n.createChild("div","animation-name"),this.#ue.textContent=this.#he.name(),this.#pe=e.UIUtils.createSVGChild(n,"svg","animation-ui"),this.#pe.setAttribute("height",U.AnimationSVGHeight.toString()),this.#pe.style.marginLeft="-"+U.AnimationMargin+"px",this.#pe.addEventListener("contextmenu",this.onContextMenu.bind(this)),this.#be=e.UIUtils.createSVGChild(this.#pe,"g"),e.UIUtils.installDragHandle(this.#be,this.mouseDown.bind(this,"AnimationDrag",null),this.mouseMove.bind(this),this.mouseUp.bind(this),"-webkit-grabbing","-webkit-grab"),D.installDragHandleKeyboard(this.#be,this.keydownMove.bind(this,"AnimationDrag",null)),this.#fe=[],this.#ge=0,this.#ye=50,this.#ve=D.colorForAnimation(this.#he)}static colorForAnimation(e){const t=Array.from(F.keys()),i=t[n.StringUtilities.hashCode(e.name()||e.id())%t.length],a=F.get(i);if(!a)throw new Error("Unable to locate color");return a.asString("rgb")||""}static installDragHandleKeyboard(e,t){e.addEventListener("keydown",t,!1)}animation(){return this.#he}get nameElement(){return this.#ue}get svg(){return this.#pe}setNode(e){this.#de=e}createLine(t,i){const n=e.UIUtils.createSVGChild(t,"line",i);return n.setAttribute("x1",U.AnimationMargin.toString()),n.setAttribute("y1",U.AnimationHeight.toString()),n.setAttribute("y2",U.AnimationHeight.toString()),n.style.stroke=this.#ve,n}drawAnimationLine(e,t){const i=this.#fe[e];i.animationLine||(i.animationLine=this.createLine(t,"animation-line")),i.animationLine&&i.animationLine.setAttribute("x2",(this.duration()*this.#ce.pixelMsRatio()+U.AnimationMargin).toFixed(2))}drawDelayLine(e){this.#we&&this.#xe||(this.#we=this.createLine(e,"animation-delay-line"),this.#xe=this.createLine(e,"animation-delay-line"));const t=this.#he.source().fill();this.#we.classList.toggle("animation-fill","backwards"===t||"both"===t);const i=U.AnimationMargin;this.#we.setAttribute("x1",i.toString()),this.#we.setAttribute("x2",(this.delay()*this.#ce.pixelMsRatio()+i).toFixed(2));const n="forwards"===t||"both"===t;this.#xe.classList.toggle("animation-fill",n);const a=Math.min(this.#ce.width(),(this.delay()+this.duration()*this.#he.source().iterations())*this.#ce.pixelMsRatio());this.#xe.style.transform="translateX("+a.toFixed(2)+"px)",this.#xe.setAttribute("x1",i.toString()),this.#xe.setAttribute("x2",n?(this.#ce.width()-a+i).toFixed(2):(this.#he.source().endDelay()*this.#ce.pixelMsRatio()+i).toFixed(2))}drawPoint(t,i,n,a,r){if(this.#fe[t].keyframePoints[a])return void this.#fe[t].keyframePoints[a].setAttribute("cx",n.toFixed(2));const o=e.UIUtils.createSVGChild(i,"circle",a<=0?"animation-endpoint":"animation-keyframe-point");if(o.setAttribute("cx",n.toFixed(2)),o.setAttribute("cy",U.AnimationHeight.toString()),o.style.stroke=this.#ve,o.setAttribute("r",(U.AnimationMargin/2).toString()),o.tabIndex=0,e.ARIAUtils.setLabel(o,G(a<=0?B.animationEndpointSlider:B.animationKeyframeSlider)),a<=0&&(o.style.fill=this.#ve),this.#fe[t].keyframePoints[a]=o,!r)return;let s;s=0===a?"StartEndpointMove":-1===a?"FinishEndpointMove":"KeyframeMove",e.UIUtils.installDragHandle(o,this.mouseDown.bind(this,s,a),this.mouseMove.bind(this),this.mouseUp.bind(this),"ew-resize"),D.installDragHandleKeyboard(o,this.keydownMove.bind(this,s,a))}renderKeyframe(t,i,n,r,o,s){function l(t,i,n){const a=e.UIUtils.createSVGChild(t,"line");a.setAttribute("x1",i.toString()),a.setAttribute("x2",i.toString()),a.setAttribute("y1",U.AnimationMargin.toString()),a.setAttribute("y2",U.AnimationHeight.toString()),a.style.stroke=n}const d=e.Geometry.CubicBezier.parse(s),h=this.#fe[t].keyframeRender;if(!h[i]){const t=d?e.UIUtils.createSVGChild(n,"path","animation-keyframe"):e.UIUtils.createSVGChild(n,"g","animation-keyframe-step");h[i]=t}const c=h[i];if(c.tabIndex=0,e.ARIAUtils.setLabel(c,G(B.sSlider,{PH1:this.#he.name()})),c.style.transform="translateX("+r.toFixed(2)+"px)","linear"===s){c.style.fill=this.#ve;const e=a.BezierUI.Height;c.setAttribute("d",["M",0,e,"L",0,5,"L",o.toFixed(2),5,"L",o.toFixed(2),e,"Z"].join(" "))}else if(d)c.style.fill=this.#ve,a.BezierUI.BezierUI.drawVelocityChart(d,c,o);else{const e=R.parse(s);c.removeChildren();const t={start:0,middle:.5,end:1};if(e){const i=t[e.stepAtPosition];for(let t=0;t<e.steps;t++)l(c,(t+i)*o/e.steps,this.#ve)}}}redraw(){const t=this.#ce.width()-U.AnimationMargin;if(this.#pe.setAttribute("width",(t+2*U.AnimationMargin).toFixed(2)),this.#be.style.transform="translateX("+(this.delay()*this.#ce.pixelMsRatio()).toFixed(2)+"px)",this.#ue.style.transform="translateX("+(this.delay()*this.#ce.pixelMsRatio()+U.AnimationMargin).toFixed(2)+"px)",this.#ue.style.width=(this.duration()*this.#ce.pixelMsRatio()).toFixed(2)+"px",this.drawDelayLine(this.#pe),"CSSTransition"===this.#he.type())return void this.renderTransition();this.renderIteration(this.#be,0),this.#ke||(this.#ke=e.UIUtils.createSVGChild(this.#be,"g","animation-tail-iterations"));const i=this.duration()*this.#ce.pixelMsRatio();let n;for(n=1;n<this.#he.source().iterations()&&i*(n-1)<this.#ce.width()&&(i>0||this.#he.source().iterations()!==1/0);n++)this.renderIteration(this.#ke,n);for(;n<this.#fe.length;){const e=this.#fe.pop();e&&e.group&&e.group.remove()}}renderTransition(){const e=this.#be;this.#fe[0]||(this.#fe[0]={animationLine:null,keyframePoints:{},keyframeRender:{},group:null}),this.drawAnimationLine(0,e),this.renderKeyframe(0,0,e,U.AnimationMargin,this.duration()*this.#ce.pixelMsRatio(),this.#he.source().easing()),this.drawPoint(0,e,U.AnimationMargin,0,!0),this.drawPoint(0,e,this.duration()*this.#ce.pixelMsRatio()+U.AnimationMargin,-1,!0)}renderIteration(t,i){this.#fe[i]||(this.#fe[i]={animationLine:null,keyframePoints:{},keyframeRender:{},group:e.UIUtils.createSVGChild(t,"g")});const n=this.#fe[i].group;if(n){if(n.style.transform="translateX("+(i*this.duration()*this.#ce.pixelMsRatio()).toFixed(2)+"px)",this.drawAnimationLine(i,n),this.#me&&this.#me.length>1)for(let e=0;e<this.#me.length-1;e++){const t=this.offset(e)*this.duration()*this.#ce.pixelMsRatio()+U.AnimationMargin,a=this.duration()*(this.offset(e+1)-this.offset(e))*this.#ce.pixelMsRatio();this.renderKeyframe(i,e,n,t,a,this.#me[e].easing()),(e||!e&&0===i)&&this.drawPoint(i,n,t,e,0===i)}this.drawPoint(i,n,this.duration()*this.#ce.pixelMsRatio()+U.AnimationMargin,-1,0===i)}}delay(){let e=this.#he.source().delay();return"AnimationDrag"!==this.#Me&&"StartEndpointMove"!==this.#Me||(e+=this.#ge),Math.max(0,e)}duration(){let e=this.#he.source().duration();return"FinishEndpointMove"===this.#Me?e+=this.#ge:"StartEndpointMove"===this.#Me&&(e-=Math.max(this.#ge,-this.#he.source().delay())),Math.max(0,e)}offset(e){if(!this.#me)throw new Error("Unable to calculate offset; keyframes do not exist");let t=this.#me[e].offsetAsNumber();return"KeyframeMove"===this.#Me&&e===this.#Ae&&(console.assert(e>0&&e<this.#me.length-1,"First and last keyframe cannot be moved"),t+=this.#ge/this.#he.source().duration(),t=Math.max(t,this.#me[e-1].offsetAsNumber()),t=Math.min(t,this.#me[e+1].offsetAsNumber())),t}mouseDown(e,i,n){const a=n;return 2!==a.buttons&&(!this.#pe.enclosingNodeOrSelfWithClass("animation-node-removed")&&(this.#Me=e,this.#Ae=i,this.#Ie=a.clientX,n.consume(!0),this.#de&&t.Revealer.reveal(this.#de),!0))}mouseMove(e){const t=e;this.setMovementAndRedraw((t.clientX-(this.#Ie||0))/this.#ce.pixelMsRatio())}setMovementAndRedraw(e){this.#ge=e,this.delay()+this.duration()>.8*this.#ce.duration()&&this.#ce.setDuration(1.2*this.#ce.duration()),this.redraw()}mouseUp(e){const t=e;this.#ge=(t.clientX-(this.#Ie||0))/this.#ce.pixelMsRatio(),"KeyframeMove"===this.#Me?this.#me&&null!==this.#Ae&&void 0!==this.#Ae&&this.#me[this.#Ae].setOffset(this.offset(this.#Ae)):this.#he.setTiming(this.duration(),this.delay()),this.#ge=0,this.redraw(),this.#Me=void 0,this.#Ie=void 0,this.#Ae=void 0}keydownMove(e,t,i){const n=i;switch(this.#Me=e,this.#Ae=t,n.key){case"ArrowLeft":case"ArrowUp":this.#ge=-this.#ye;break;case"ArrowRight":case"ArrowDown":this.#ge=this.#ye;break;default:return}"KeyframeMove"===this.#Me?this.#me&&null!==this.#Ae&&this.#me[this.#Ae].setOffset(this.offset(this.#Ae)):this.#he.setTiming(this.duration(),this.delay()),this.setMovementAndRedraw(0),this.#Me=void 0,this.#Ae=void 0,i.consume(!0)}onContextMenu(t){this.#he.remoteObjectPromise().then((function(i){if(!i)return;const n=new e.ContextMenu.ContextMenu(t);n.appendApplicableItems(i),n.show()})),t.consume(!0)}}const U={AnimationHeight:26,AnimationSVGHeight:50,AnimationMargin:7,EndpointsClickRegionSize:10,GridCanvasHeight:40},F=new Map([["Purple",t.Color.parse("#9C27B0")],["Light Blue",t.Color.parse("#03A9F4")],["Deep Orange",t.Color.parse("#FF5722")],["Blue",t.Color.parse("#5677FC")],["Lime",t.Color.parse("#CDDC39")],["Blue Grey",t.Color.parse("#607D8B")],["Pink",t.Color.parse("#E91E63")],["Green",t.Color.parse("#0F9D58")],["Brown",t.Color.parse("#795548")],["Cyan",t.Color.parse("#00BCD4")]]);var H=Object.freeze({__proto__:null,AnimationUI:D,Options:U,Colors:F});class N{#Te;element;#Se;#Ce;#pe;#Pe;constructor(t){this.#Te=t,this.element=document.createElement("div"),this.element.classList.add("animation-buffer-preview"),this.element.createChild("div","animation-paused fill"),this.#Se=this.element.createChild("div","animation-remove-button"),this.#Se.textContent="✕",this.#Ce=this.element.createChild("div","animation-buffer-preview-animation"),this.#pe=e.UIUtils.createSVGChild(this.element,"svg"),this.#pe.setAttribute("width","100%"),this.#pe.setAttribute("preserveAspectRatio","none"),this.#pe.setAttribute("height","100%"),this.#Pe=32,this.#pe.setAttribute("viewBox","0 0 100 "+this.#Pe),this.#pe.setAttribute("shape-rendering","crispEdges"),this.render()}groupDuration(){let e=0;for(const t of this.#Te.animations()){const i=t.source().delay()+t.source().duration();i>e&&(e=i)}return e}removeButton(){return this.#Se}replay(){this.#Ce.animate([{offset:0,width:"0%",opacity:1},{offset:.9,width:"100%",opacity:1},{offset:1,width:"100%",opacity:0}],{duration:200,easing:"cubic-bezier(0, 0, 0.2, 1)"})}render(){this.#pe.removeChildren();const t=Math.min(this.#Te.animations().length,10),i=100/Math.max(this.groupDuration(),750);for(let n=0;n<t;n++){const a=this.#Te.animations()[n].source(),r=e.UIUtils.createSVGChild(this.#pe,"line");r.setAttribute("x1",String(a.delay()*i)),r.setAttribute("x2",String((a.delay()+a.duration())*i));const o=String(Math.floor(this.#Pe/Math.max(6,t)*n+1));r.setAttribute("y1",o),r.setAttribute("y2",o),r.style.stroke=D.colorForAnimation(this.#Te.animations()[n])}}}var O=Object.freeze({__proto__:null,AnimationGroupPreviewUI:N});export{O as AnimationGroupPreviewUI,g as AnimationModel,w as AnimationScreenshotPopover,E as AnimationTimeline,H as AnimationUI};
@@ -0,0 +1 @@
1
+ import*as e from"./application.js";self.Resources=self.Resources||{},Resources=Resources||{},Resources.ApplicationPanelSidebar=e.ApplicationPanelSidebar.ApplicationPanelSidebar,Resources.IndexedDBTreeElement=e.ApplicationPanelSidebar.IndexedDBTreeElement,Resources.IDBObjectStoreTreeElement=e.ApplicationPanelSidebar.IDBObjectStoreTreeElement,Resources.IDBIndexTreeElement=e.ApplicationPanelSidebar.IDBIndexTreeElement,Resources.BackgroundServiceModel=e.BackgroundServiceModel.BackgroundServiceModel,Resources.BackgroundServiceModel.Events=e.BackgroundServiceModel.Events,Resources.BackgroundServiceView=e.BackgroundServiceView.BackgroundServiceView,Resources.BackgroundServiceView.ActionDelegate=e.BackgroundServiceView.ActionDelegate,Resources.StorageView=e.StorageView.StorageView,Resources.StorageView.AllStorageTypes=e.StorageView.AllStorageTypes,Resources.StorageView.ActionDelegate=e.StorageView.ActionDelegate,Resources.CookieItemsView=e.CookieItemsView.CookieItemsView,Resources.DOMStorageModel=e.DOMStorageModel.DOMStorageModel,Resources.DOMStorage=e.DOMStorageModel.DOMStorage,Resources.DatabaseModel=e.DatabaseModel.DatabaseModel,Resources.Database=e.DatabaseModel.Database,Resources.DatabaseQueryView=e.DatabaseQueryView.DatabaseQueryView,Resources.DatabaseQueryView.Events=e.DatabaseQueryView.Events,Resources.DatabaseTableView=e.DatabaseTableView.DatabaseTableView,Resources.IndexedDBModel=e.IndexedDBModel.IndexedDBModel,Resources.IndexedDBModel.Events=e.IndexedDBModel.Events,Resources.IndexedDBModel.DatabaseId=e.IndexedDBModel.DatabaseId,Resources.IndexedDBModel.Database=e.IndexedDBModel.Database,Resources.IndexedDBModel.ObjectStore=e.IndexedDBModel.ObjectStore,Resources.IDBDatabaseView=e.IndexedDBViews.IDBDatabaseView,Resources.IDBDataView=e.IndexedDBViews.IDBDataView,Resources.OpenedWindowDetailsView=e.OpenedWindowDetailsView.OpenedWindowDetailsView,Resources.ResourcesPanel=e.ResourcesPanel.ResourcesPanel,Resources.ResourcesPanel.ResourceRevealer=e.ResourcesPanel.ResourceRevealer,Resources.ResourcesPanel.FrameDetailsRevealer=e.ResourcesPanel.FrameDetailsRevealer,Resources.FrameTreeElement=e.ApplicationPanelSidebar.FrameTreeElement,Resources.ServiceWorkerCacheView=e.ServiceWorkerCacheViews.ServiceWorkerCacheView,Resources.ServiceWorkersView=e.ServiceWorkersView.ServiceWorkersView,Resources.ServiceWorkersView.setThrottleDisabledForDebugging=e.ServiceWorkersView.setThrottleDisabledForDebugging,Object.defineProperty(Resources.ServiceWorkersView,"_noThrottle",{set:e.ServiceWorkersView.setThrottleDisabledForDebugging});
@@ -0,0 +1 @@
1
+ import*as e from"../../core/common/common.js";import*as t from"../../core/sdk/sdk.js";import*as a from"../../ui/legacy/legacy.js";import*as i from"../../core/i18n/i18n.js";const o={application:"Application",showApplication:"Show Application",pwa:"pwa",clearSiteData:"Clear site data",clearSiteDataIncludingThirdparty:"Clear site data (including third-party cookies)",startRecordingEvents:"Start recording events",stopRecordingEvents:"Stop recording events"},r=i.i18n.registerUIStrings("panels/application/application-meta.ts",o),n=i.i18n.getLazilyComputedLocalizedString.bind(void 0,r);let c;async function s(){return c||(c=await import("./application.js")),c}a.ViewManager.registerViewExtension({location:"panel",id:"resources",title:n(o.application),commandPrompt:n(o.showApplication),order:70,loadView:async()=>(await s()).ResourcesPanel.ResourcesPanel.instance(),tags:[n(o.pwa)]}),a.ActionRegistration.registerActionExtension({category:a.ActionRegistration.ActionCategory.RESOURCES,actionId:"resources.clear",title:n(o.clearSiteData),loadActionDelegate:async()=>(await s()).StorageView.ActionDelegate.instance()}),a.ActionRegistration.registerActionExtension({category:a.ActionRegistration.ActionCategory.RESOURCES,actionId:"resources.clear-incl-third-party-cookies",title:n(o.clearSiteDataIncludingThirdparty),loadActionDelegate:async()=>(await s()).StorageView.ActionDelegate.instance()}),a.ActionRegistration.registerActionExtension({actionId:"background-service.toggle-recording",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes(){return e=e=>[e.BackgroundServiceView.BackgroundServiceView],void 0===c?[]:e(c);var e},loadActionDelegate:async()=>(await s()).BackgroundServiceView.ActionDelegate.instance(),category:a.ActionRegistration.ActionCategory.BACKGROUND_SERVICES,options:[{value:!0,title:n(o.startRecordingEvents)},{value:!1,title:n(o.stopRecordingEvents)}],bindings:[{platform:"windows,linux",shortcut:"Ctrl+E"},{platform:"mac",shortcut:"Meta+E"}]}),e.Revealer.registerRevealer({contextTypes:()=>[t.Resource.Resource],destination:e.Revealer.RevealerDestination.APPLICATION_PANEL,loadRevealer:async()=>(await s()).ResourcesPanel.ResourceRevealer.instance()}),e.Revealer.registerRevealer({contextTypes:()=>[t.ResourceTreeModel.ResourceTreeFrame],destination:e.Revealer.RevealerDestination.APPLICATION_PANEL,loadRevealer:async()=>(await s()).ResourcesPanel.FrameDetailsRevealer.instance()});