@browserless.io/browserless 2.2.0-beta-6 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1313) hide show
  1. package/CHANGELOG.md +21 -2
  2. package/bin/browserless.js +1 -1
  3. package/bin/scaffold/README.md +8 -7
  4. package/build/browserless.js +7 -6
  5. package/build/browsers/chrome.cdp.d.ts +6 -0
  6. package/build/browsers/chrome.cdp.js +6 -0
  7. package/build/browsers/chrome.playwright.d.ts +6 -0
  8. package/build/browsers/chrome.playwright.js +6 -0
  9. package/build/browsers/{cdp-chromium.d.ts → chromium.cdp.d.ts} +3 -2
  10. package/build/browsers/{cdp-chromium.js → chromium.cdp.js} +16 -10
  11. package/build/browsers/{playwright-chromium.d.ts → chromium.playwright.d.ts} +3 -2
  12. package/build/browsers/{playwright-chromium.js → chromium.playwright.js} +6 -5
  13. package/build/browsers/{playwright-firefox.d.ts → firefox.playwright.d.ts} +2 -2
  14. package/build/browsers/{playwright-firefox.js → firefox.playwright.js} +4 -4
  15. package/build/browsers/index.d.ts +20 -10
  16. package/build/browsers/index.js +110 -11
  17. package/build/browsers/{playwright-webkit.d.ts → webkit.playwright.d.ts} +2 -2
  18. package/build/browsers/{playwright-webkit.js → webkit.playwright.js} +4 -4
  19. package/build/data/selectors.json +1 -1
  20. package/build/exports.d.ts +6 -4
  21. package/build/exports.js +6 -4
  22. package/build/http.d.ts +22 -1
  23. package/build/http.js +21 -0
  24. package/build/router.js +19 -3
  25. package/build/routes/{chromium/http/content-post.body.json → chrome/http/content.post.body.json} +8 -8
  26. package/build/routes/chrome/http/content.post.d.ts +7 -0
  27. package/build/routes/chrome/http/content.post.js +6 -0
  28. package/build/routes/chrome/http/download.post.d.ts +7 -0
  29. package/build/routes/chrome/http/download.post.js +6 -0
  30. package/build/routes/chrome/http/function.post.d.ts +7 -0
  31. package/build/routes/chrome/http/function.post.js +6 -0
  32. package/build/routes/chrome/http/json-list.get.d.ts +1 -0
  33. package/build/routes/chrome/http/json-list.get.js +1 -0
  34. package/build/routes/chrome/http/json-new.put.d.ts +1 -0
  35. package/build/routes/chrome/http/json-new.put.js +1 -0
  36. package/build/routes/chrome/http/json-protocol.get.d.ts +1 -0
  37. package/build/routes/chrome/http/json-protocol.get.js +1 -0
  38. package/build/routes/chrome/http/json-version.get.d.ts +1 -0
  39. package/build/routes/chrome/http/json-version.get.js +1 -0
  40. package/build/routes/chrome/http/json-version.get.response.json +44 -0
  41. package/build/routes/{chromium/http/pdf-post.body.json → chrome/http/pdf.post.body.json} +8 -8
  42. package/build/routes/chrome/http/pdf.post.d.ts +7 -0
  43. package/build/routes/chrome/http/pdf.post.js +6 -0
  44. package/build/routes/chrome/http/performance.post.d.ts +7 -0
  45. package/build/routes/chrome/http/performance.post.js +6 -0
  46. package/build/routes/{chromium/http/scrape-post.body.json → chrome/http/scrape.post.body.json} +8 -8
  47. package/build/routes/chrome/http/scrape.post.d.ts +7 -0
  48. package/build/routes/chrome/http/scrape.post.js +6 -0
  49. package/build/routes/{chromium/http/screenshot-post.body.json → chrome/http/screenshot.post.body.json} +8 -8
  50. package/build/routes/chrome/http/screenshot.post.d.ts +7 -0
  51. package/build/routes/chrome/http/screenshot.post.js +6 -0
  52. package/build/routes/chrome/tests/content.spec.js +311 -0
  53. package/build/routes/chrome/tests/download.spec.js +67 -0
  54. package/build/routes/chrome/tests/function.spec.d.ts +1 -0
  55. package/build/routes/chrome/tests/function.spec.js +245 -0
  56. package/build/routes/chrome/tests/json-version.spec.d.ts +1 -0
  57. package/build/routes/chrome/tests/json-version.spec.js +37 -0
  58. package/build/routes/chrome/tests/page-websocket.spec.d.ts +1 -0
  59. package/build/routes/chrome/tests/page-websocket.spec.js +97 -0
  60. package/build/routes/chrome/tests/pdf.spec.d.ts +1 -0
  61. package/build/routes/chrome/tests/pdf.spec.js +333 -0
  62. package/build/routes/chrome/tests/performance.spec.d.ts +1 -0
  63. package/build/routes/chrome/tests/performance.spec.js +124 -0
  64. package/build/routes/chrome/tests/scrape.spec.d.ts +1 -0
  65. package/build/routes/chrome/tests/scrape.spec.js +354 -0
  66. package/build/routes/chrome/tests/screenshot.spec.d.ts +1 -0
  67. package/build/routes/chrome/tests/screenshot.spec.js +339 -0
  68. package/build/routes/chrome/tests/websocket.spec.d.ts +1 -0
  69. package/build/routes/chrome/tests/websocket.spec.js +371 -0
  70. package/build/routes/chrome/ws/browser.d.ts +6 -0
  71. package/build/routes/chrome/ws/browser.js +5 -0
  72. package/build/routes/chrome/ws/cdp.d.ts +7 -0
  73. package/build/routes/chrome/ws/cdp.js +6 -0
  74. package/build/routes/chrome/ws/cdp.query.json +120 -0
  75. package/build/routes/chrome/ws/page.d.ts +6 -0
  76. package/build/routes/chrome/ws/page.js +5 -0
  77. package/build/routes/chrome/ws/page.query.json +120 -0
  78. package/build/routes/chrome/ws/playwright.d.ts +7 -0
  79. package/build/routes/chrome/ws/playwright.js +6 -0
  80. package/build/routes/chromium/http/content.post.body.json +510 -0
  81. package/build/routes/chromium/http/content.post.d.ts +1 -0
  82. package/build/routes/chromium/http/content.post.js +1 -0
  83. package/build/routes/chromium/http/content.post.query.json +183 -0
  84. package/build/routes/chromium/http/content.post.response.json +5 -0
  85. package/build/routes/chromium/http/download.post.body.json +32 -0
  86. package/build/routes/chromium/http/download.post.d.ts +1 -0
  87. package/build/routes/chromium/http/download.post.js +1 -0
  88. package/build/routes/chromium/http/download.post.query.json +120 -0
  89. package/build/routes/chromium/http/download.post.response.json +4 -0
  90. package/build/routes/chromium/http/function.post.body.json +32 -0
  91. package/build/routes/chromium/http/function.post.d.ts +1 -0
  92. package/build/routes/chromium/http/function.post.js +1 -0
  93. package/build/routes/chromium/http/function.post.query.json +120 -0
  94. package/build/routes/chromium/http/function.post.response.json +4 -0
  95. package/build/routes/chromium/http/json-list.get.d.ts +1 -0
  96. package/build/routes/chromium/http/json-list.get.js +1 -0
  97. package/build/routes/chromium/http/json-list.get.response.json +52 -0
  98. package/build/routes/chromium/http/json-new.put.d.ts +1 -0
  99. package/build/routes/chromium/http/json-new.put.js +1 -0
  100. package/build/routes/chromium/http/json-new.put.response.json +44 -0
  101. package/build/routes/chromium/http/json-protocol.get.d.ts +1 -0
  102. package/build/routes/chromium/http/json-protocol.get.js +1 -0
  103. package/build/routes/chromium/http/json-protocol.get.response.json +6 -0
  104. package/build/routes/chromium/http/json-version.get.d.ts +1 -0
  105. package/build/routes/chromium/http/json-version.get.js +1 -0
  106. package/build/routes/chromium/http/json-version.get.response.json +44 -0
  107. package/build/routes/chromium/http/pdf.post.body.json +654 -0
  108. package/build/routes/chromium/http/pdf.post.d.ts +1 -0
  109. package/build/routes/chromium/http/pdf.post.js +1 -0
  110. package/build/routes/chromium/http/pdf.post.query.json +120 -0
  111. package/build/routes/chromium/http/pdf.post.response.json +5 -0
  112. package/build/routes/chromium/http/performance.post.body.json +26 -0
  113. package/build/routes/chromium/http/performance.post.d.ts +1 -0
  114. package/build/routes/chromium/http/performance.post.js +1 -0
  115. package/build/routes/chromium/http/performance.post.query.json +120 -0
  116. package/build/routes/chromium/http/performance.post.response.json +7 -0
  117. package/build/routes/chromium/http/scrape.post.body.json +557 -0
  118. package/build/routes/chromium/http/scrape.post.d.ts +1 -0
  119. package/build/routes/chromium/http/scrape.post.js +1 -0
  120. package/build/routes/chromium/http/scrape.post.query.json +183 -0
  121. package/build/routes/chromium/http/scrape.post.response.json +309 -0
  122. package/build/routes/chromium/http/screenshot.post.body.json +600 -0
  123. package/build/routes/chromium/http/screenshot.post.d.ts +1 -0
  124. package/build/routes/chromium/http/screenshot.post.js +1 -0
  125. package/build/routes/chromium/http/screenshot.post.query.json +120 -0
  126. package/build/routes/chromium/http/screenshot.post.response.json +5 -0
  127. package/build/routes/chromium/tests/content.spec.js +16 -16
  128. package/build/routes/chromium/tests/download.spec.js +3 -3
  129. package/build/routes/chromium/tests/function.spec.js +10 -10
  130. package/build/routes/chromium/tests/page-websocket.spec.d.ts +1 -0
  131. package/build/routes/chromium/tests/page-websocket.spec.js +97 -0
  132. package/build/routes/chromium/tests/pdf.spec.js +16 -16
  133. package/build/routes/chromium/tests/performance.spec.js +7 -7
  134. package/build/routes/chromium/tests/scrape.spec.js +15 -15
  135. package/build/routes/chromium/tests/screenshot.spec.js +17 -17
  136. package/build/routes/chromium/tests/websocket.spec.js +31 -37
  137. package/build/routes/chromium/ws/browser.d.ts +1 -16
  138. package/build/routes/chromium/ws/browser.js +1 -10
  139. package/build/routes/chromium/ws/cdp.d.ts +1 -0
  140. package/build/routes/chromium/ws/cdp.js +1 -0
  141. package/build/routes/chromium/ws/cdp.query.json +120 -0
  142. package/build/routes/chromium/ws/page.d.ts +1 -16
  143. package/build/routes/chromium/ws/page.js +1 -10
  144. package/build/routes/chromium/ws/playwright.d.ts +1 -0
  145. package/build/routes/chromium/ws/playwright.js +1 -0
  146. package/build/routes/firefox/ws/{playwright-firefox.d.ts → playwright.d.ts} +5 -5
  147. package/build/routes/firefox/ws/{playwright-firefox.js → playwright.js} +4 -4
  148. package/build/routes/management/http/{sessions-get.response.json → sessions.get.response.json} +11 -1
  149. package/build/routes/management/http/{static-get.js → static.get.js} +2 -2
  150. package/build/routes/webkit/ws/{playwright-webkit.d.ts → playwright.d.ts} +5 -5
  151. package/build/routes/webkit/ws/{playwright-webkit.js → playwright.js} +4 -4
  152. package/build/routes/webkit/ws/playwright.query.json +100 -0
  153. package/build/{routes/chromium/ws/cdp-chromium.d.ts → shared/browser.ws.d.ts} +4 -4
  154. package/build/shared/browser.ws.js +12 -0
  155. package/build/{routes/chromium/ws/playwright-chromium.d.ts → shared/chromium.playwright.ws.d.ts} +4 -4
  156. package/build/{routes/chromium/ws/playwright-chromium.js → shared/chromium.playwright.ws.js} +6 -3
  157. package/build/shared/chromium.ws.d.ts +16 -0
  158. package/build/shared/chromium.ws.js +10 -0
  159. package/build/{routes/chromium/http/content-post.d.ts → shared/content.http.d.ts} +3 -3
  160. package/build/{routes/chromium/http/content-post.js → shared/content.http.js} +3 -3
  161. package/build/{routes/chromium/http/download-post.d.ts → shared/download.http.d.ts} +3 -3
  162. package/build/{routes/chromium/http/download-post.js → shared/download.http.js} +4 -4
  163. package/build/{routes/chromium/http/function-post.d.ts → shared/function.http.d.ts} +3 -3
  164. package/build/{routes/chromium/http/function-post.js → shared/function.http.js} +4 -4
  165. package/build/{routes/chromium/http/json-new.d.ts → shared/json-list.http.d.ts} +2 -3
  166. package/build/{routes/chromium/http/json-list.js → shared/json-list.http.js} +5 -8
  167. package/build/{routes/chromium/http/json-list.d.ts → shared/json-new.http.d.ts} +2 -3
  168. package/build/shared/json-new.http.js +34 -0
  169. package/build/{routes/chromium/http/json-protocol-get.js → shared/json-protocol.http.js} +2 -2
  170. package/build/{routes/chromium/http/json-version-get.js → shared/json-version.http.js} +3 -3
  171. package/build/shared/page.ws.d.ts +16 -0
  172. package/build/shared/page.ws.js +13 -0
  173. package/build/{routes/chromium/http/pdf-post.d.ts → shared/pdf.http.d.ts} +3 -3
  174. package/build/{routes/chromium/http/pdf-post.js → shared/pdf.http.js} +3 -3
  175. package/build/{routes/chromium/http/performance.d.ts → shared/performance.http.d.ts} +3 -3
  176. package/build/{routes/chromium/http/performance.js → shared/performance.http.js} +4 -4
  177. package/build/{routes/chromium/http/scrape-post.d.ts → shared/scrape.http.d.ts} +3 -3
  178. package/build/{routes/chromium/http/scrape-post.js → shared/scrape.http.js} +3 -3
  179. package/build/{routes/chromium/http/screenshot-post.d.ts → shared/screenshot.http.d.ts} +3 -3
  180. package/build/{routes/chromium/http/screenshot-post.js → shared/screenshot.http.js} +3 -3
  181. package/build/shared/utils/performance/child.d.ts +1 -0
  182. package/build/{routes/chromium → shared}/utils/performance/main.js +1 -1
  183. package/build/shared/utils/performance/types.js +1 -0
  184. package/build/shim.js +2 -1
  185. package/build/types.d.ts +10 -8
  186. package/build/utils.d.ts +8 -3
  187. package/build/utils.js +24 -11
  188. package/docker/base/Dockerfile +1 -1
  189. package/docker/chrome/Dockerfile +4 -4
  190. package/docker/chromium/.dockerignore +16 -0
  191. package/docker/chromium/Dockerfile +40 -0
  192. package/docker/firefox/Dockerfile +1 -1
  193. package/docker/multi/Dockerfile +13 -1
  194. package/docker/webkit/Dockerfile +1 -1
  195. package/extensions/ublock/3p-filters.html +1 -1
  196. package/extensions/ublock/_locales/ar/messages.json +4 -0
  197. package/extensions/ublock/_locales/az/messages.json +4 -0
  198. package/extensions/ublock/_locales/be/messages.json +4 -0
  199. package/extensions/ublock/_locales/bg/messages.json +5 -1
  200. package/extensions/ublock/_locales/bn/messages.json +4 -0
  201. package/extensions/ublock/_locales/br_FR/messages.json +6 -2
  202. package/extensions/ublock/_locales/bs/messages.json +4 -0
  203. package/extensions/ublock/_locales/ca/messages.json +4 -0
  204. package/extensions/ublock/_locales/cs/messages.json +4 -0
  205. package/extensions/ublock/_locales/cv/messages.json +4 -0
  206. package/extensions/ublock/_locales/cy/messages.json +1294 -0
  207. package/extensions/ublock/_locales/da/messages.json +4 -0
  208. package/extensions/ublock/_locales/de/messages.json +5 -1
  209. package/extensions/ublock/_locales/el/messages.json +4 -0
  210. package/extensions/ublock/_locales/en/messages.json +4 -0
  211. package/extensions/ublock/_locales/en_GB/messages.json +4 -0
  212. package/extensions/ublock/_locales/eo/messages.json +9 -5
  213. package/extensions/ublock/_locales/es/messages.json +4 -0
  214. package/extensions/ublock/_locales/et/messages.json +4 -0
  215. package/extensions/ublock/_locales/eu/messages.json +8 -4
  216. package/extensions/ublock/_locales/fa/messages.json +4 -0
  217. package/extensions/ublock/_locales/fi/messages.json +4 -0
  218. package/extensions/ublock/_locales/fil/messages.json +4 -0
  219. package/extensions/ublock/_locales/fr/messages.json +4 -0
  220. package/extensions/ublock/_locales/fy/messages.json +4 -0
  221. package/extensions/ublock/_locales/gl/messages.json +4 -0
  222. package/extensions/ublock/_locales/gu/messages.json +4 -0
  223. package/extensions/ublock/_locales/he/messages.json +4 -0
  224. package/extensions/ublock/_locales/hi/messages.json +4 -0
  225. package/extensions/ublock/_locales/hr/messages.json +4 -0
  226. package/extensions/ublock/_locales/hu/messages.json +4 -0
  227. package/extensions/ublock/_locales/hy/messages.json +4 -0
  228. package/extensions/ublock/_locales/id/messages.json +5 -1
  229. package/extensions/ublock/_locales/it/messages.json +4 -0
  230. package/extensions/ublock/_locales/ja/messages.json +4 -0
  231. package/extensions/ublock/_locales/ka/messages.json +34 -30
  232. package/extensions/ublock/_locales/kk/messages.json +4 -0
  233. package/extensions/ublock/_locales/kn/messages.json +4 -0
  234. package/extensions/ublock/_locales/ko/messages.json +4 -0
  235. package/extensions/ublock/_locales/ku/messages.json +4 -0
  236. package/extensions/ublock/_locales/lt/messages.json +4 -0
  237. package/extensions/ublock/_locales/lv/messages.json +4 -0
  238. package/extensions/ublock/_locales/mk/messages.json +4 -0
  239. package/extensions/ublock/_locales/ml/messages.json +4 -0
  240. package/extensions/ublock/_locales/mr/messages.json +4 -0
  241. package/extensions/ublock/_locales/ms/messages.json +13 -9
  242. package/extensions/ublock/_locales/nb/messages.json +4 -0
  243. package/extensions/ublock/_locales/nl/messages.json +4 -0
  244. package/extensions/ublock/_locales/no/messages.json +4 -0
  245. package/extensions/ublock/_locales/oc/messages.json +4 -0
  246. package/extensions/ublock/_locales/pa/messages.json +4 -0
  247. package/extensions/ublock/_locales/pl/messages.json +5 -1
  248. package/extensions/ublock/_locales/pt_BR/messages.json +4 -0
  249. package/extensions/ublock/_locales/pt_PT/messages.json +4 -0
  250. package/extensions/ublock/_locales/ro/messages.json +5 -1
  251. package/extensions/ublock/_locales/ru/messages.json +4 -0
  252. package/extensions/ublock/_locales/si/messages.json +4 -0
  253. package/extensions/ublock/_locales/sk/messages.json +4 -0
  254. package/extensions/ublock/_locales/sl/messages.json +4 -0
  255. package/extensions/ublock/_locales/so/messages.json +4 -0
  256. package/extensions/ublock/_locales/sq/messages.json +4 -0
  257. package/extensions/ublock/_locales/sr/messages.json +4 -0
  258. package/extensions/ublock/_locales/sv/messages.json +4 -0
  259. package/extensions/ublock/_locales/sw/messages.json +4 -0
  260. package/extensions/ublock/_locales/ta/messages.json +4 -0
  261. package/extensions/ublock/_locales/te/messages.json +4 -0
  262. package/extensions/ublock/_locales/th/messages.json +12 -8
  263. package/extensions/ublock/_locales/tr/messages.json +4 -0
  264. package/extensions/ublock/_locales/uk/messages.json +4 -0
  265. package/extensions/ublock/_locales/ur/messages.json +4 -0
  266. package/extensions/ublock/_locales/vi/messages.json +4 -0
  267. package/extensions/ublock/_locales/zh_CN/messages.json +6 -2
  268. package/extensions/ublock/_locales/zh_TW/messages.json +6 -2
  269. package/extensions/ublock/assets/assets.json +11 -11
  270. package/extensions/ublock/assets/resources/scriptlets.js +660 -378
  271. package/extensions/ublock/assets/thirdparties/easylist/easylist.txt +7173 -3455
  272. package/extensions/ublock/assets/thirdparties/easylist/easyprivacy.txt +18829 -1918
  273. package/extensions/ublock/assets/thirdparties/pgl.yoyo.org/as/serverlist +21 -26
  274. package/extensions/ublock/assets/thirdparties/publicsuffix.org/list/effective_tld_names.dat +118 -46
  275. package/extensions/ublock/assets/thirdparties/urlhaus-filter/urlhaus-filter-online.txt +710 -1117
  276. package/extensions/ublock/assets/ublock/badlists.txt +0 -4
  277. package/extensions/ublock/assets/ublock/badware.min.txt +116 -105
  278. package/extensions/ublock/assets/ublock/filters.min.txt +1443 -1097
  279. package/extensions/ublock/assets/ublock/privacy.min.txt +50 -31
  280. package/extensions/ublock/assets/ublock/quick-fixes.min.txt +97 -108
  281. package/extensions/ublock/assets/ublock/unbreak.min.txt +64 -21
  282. package/extensions/ublock/css/1p-filters.css +4 -0
  283. package/extensions/ublock/css/3p-filters.css +6 -4
  284. package/extensions/ublock/css/common.css +1 -1
  285. package/extensions/ublock/css/fa-icons.css +1 -0
  286. package/extensions/ublock/css/logger-ui.css +72 -52
  287. package/extensions/ublock/css/popup-fenix.css +1 -1
  288. package/extensions/ublock/img/fontawesome/fontawesome-defs.svg +1 -0
  289. package/extensions/ublock/js/3p-filters.js +3 -3
  290. package/extensions/ublock/js/assets.js +7 -4
  291. package/extensions/ublock/js/background.js +1 -3
  292. package/extensions/ublock/js/benchmarks.js +1 -0
  293. package/extensions/ublock/js/broadcast.js +12 -0
  294. package/extensions/ublock/js/click2load.js +2 -3
  295. package/extensions/ublock/js/codemirror/ubo-static-filtering.js +1 -0
  296. package/extensions/ublock/js/commands.js +10 -0
  297. package/extensions/ublock/js/contentscript-extra.js +13 -11
  298. package/extensions/ublock/js/contentscript.js +0 -31
  299. package/extensions/ublock/js/contextmenu.js +5 -1
  300. package/extensions/ublock/js/dyna-rules.js +83 -52
  301. package/extensions/ublock/js/fa-icons.js +1 -0
  302. package/extensions/ublock/js/filtering-context.js +0 -2
  303. package/extensions/ublock/js/i18n.js +1 -5
  304. package/extensions/ublock/js/logger-ui.js +71 -38
  305. package/extensions/ublock/js/logger.js +18 -14
  306. package/extensions/ublock/js/messaging.js +17 -5
  307. package/extensions/ublock/js/popup-fenix.js +6 -6
  308. package/extensions/ublock/js/scriptlet-filtering-core.js +14 -12
  309. package/extensions/ublock/js/scriptlet-filtering.js +149 -53
  310. package/extensions/ublock/js/scriptlets/scriptlet-loglevel-1.js +49 -0
  311. package/extensions/ublock/js/scriptlets/scriptlet-loglevel-2.js +49 -0
  312. package/extensions/ublock/js/scriptlets/should-inject-contentscript.js +1 -1
  313. package/extensions/ublock/js/static-dnr-filtering.js +4 -2
  314. package/extensions/ublock/js/static-filtering-parser.js +14 -8
  315. package/extensions/ublock/js/static-net-filtering.js +32 -30
  316. package/extensions/ublock/js/storage.js +18 -4
  317. package/extensions/ublock/js/traffic.js +3 -3
  318. package/extensions/ublock/js/ublock.js +1 -1
  319. package/extensions/ublock/js/vapi-background.js +15 -7
  320. package/extensions/ublock/logger-ui.html +18 -10
  321. package/extensions/ublock/manifest.json +4 -1
  322. package/extensions/ublock/web_accessible_resources/chartbeat.js +3 -0
  323. package/package.json +12 -11
  324. package/scripts/build-function.js +1 -1
  325. package/scripts/build-open-api.js +3 -2
  326. package/scripts/clean.js +6 -1
  327. package/scripts/install-debugger.js +20 -0
  328. package/scripts/install-devtools.js +40 -0
  329. package/src/browserless.ts +11 -9
  330. package/src/browsers/chrome.cdp.ts +10 -0
  331. package/src/browsers/chrome.playwright.ts +10 -0
  332. package/src/browsers/{cdp-chromium.ts → chromium.cdp.ts} +20 -13
  333. package/src/browsers/{playwright-chromium.ts → chromium.playwright.ts} +7 -6
  334. package/src/browsers/{playwright-firefox.ts → firefox.playwright.ts} +5 -5
  335. package/src/browsers/index.ts +160 -23
  336. package/src/browsers/{playwright-webkit.ts → webkit.playwright.ts} +5 -5
  337. package/src/exports.ts +6 -4
  338. package/src/http.ts +21 -0
  339. package/src/router.ts +21 -5
  340. package/src/routes/chrome/http/content.post.ts +14 -0
  341. package/src/routes/chrome/http/download.post.ts +14 -0
  342. package/src/routes/chrome/http/function.post.ts +14 -0
  343. package/src/routes/chrome/http/json-list.get.ts +1 -0
  344. package/src/routes/chrome/http/json-new.put.ts +1 -0
  345. package/src/routes/chrome/http/json-protocol.get.ts +1 -0
  346. package/src/routes/chrome/http/json-version.get.ts +1 -0
  347. package/src/routes/chrome/http/pdf.post.ts +14 -0
  348. package/src/routes/chrome/http/performance.post.ts +14 -0
  349. package/src/routes/chrome/http/scrape.post.ts +14 -0
  350. package/src/routes/chrome/http/screenshot.post.ts +14 -0
  351. package/src/routes/chrome/tests/content.spec.ts +375 -0
  352. package/src/routes/chrome/tests/download.spec.ts +77 -0
  353. package/src/routes/chrome/tests/function.spec.ts +282 -0
  354. package/src/routes/chrome/tests/json-version.spec.ts +52 -0
  355. package/src/routes/chrome/tests/page-websocket.spec.ts +129 -0
  356. package/src/routes/chrome/tests/pdf.spec.ts +380 -0
  357. package/src/routes/chrome/tests/performance.spec.ts +155 -0
  358. package/src/routes/chrome/tests/scrape.spec.ts +417 -0
  359. package/src/routes/chrome/tests/screenshot.spec.ts +387 -0
  360. package/src/routes/chrome/tests/websocket.spec.ts +491 -0
  361. package/src/routes/chrome/ws/browser.ts +8 -0
  362. package/src/routes/chrome/ws/cdp.ts +12 -0
  363. package/src/routes/chrome/ws/page.ts +8 -0
  364. package/src/routes/chrome/ws/playwright.ts +12 -0
  365. package/src/routes/chromium/http/content.post.ts +6 -0
  366. package/src/routes/chromium/http/download.post.ts +6 -0
  367. package/src/routes/chromium/http/function.post.ts +6 -0
  368. package/src/routes/chromium/http/json-list.get.ts +1 -0
  369. package/src/routes/chromium/http/json-new.put.ts +1 -0
  370. package/src/routes/chromium/http/json-protocol.get.ts +1 -0
  371. package/src/routes/chromium/http/json-version.get.ts +1 -0
  372. package/src/routes/chromium/http/pdf.post.ts +6 -0
  373. package/src/routes/chromium/http/performance.post.ts +6 -0
  374. package/src/routes/chromium/http/scrape.post.ts +6 -0
  375. package/src/routes/chromium/http/screenshot.post.ts +6 -0
  376. package/src/routes/chromium/tests/content.spec.ts +36 -28
  377. package/src/routes/chromium/tests/download.spec.ts +3 -3
  378. package/src/routes/chromium/tests/function.spec.ts +18 -15
  379. package/src/routes/chromium/tests/page-websocket.spec.ts +129 -0
  380. package/src/routes/chromium/tests/pdf.spec.ts +31 -26
  381. package/src/routes/chromium/tests/performance.spec.ts +46 -34
  382. package/src/routes/chromium/tests/scrape.spec.ts +23 -20
  383. package/src/routes/chromium/tests/screenshot.spec.ts +24 -24
  384. package/src/routes/chromium/tests/websocket.spec.ts +31 -40
  385. package/src/routes/chromium/ws/browser.ts +1 -29
  386. package/src/routes/chromium/ws/cdp.ts +1 -0
  387. package/src/routes/chromium/ws/page.ts +1 -29
  388. package/src/routes/chromium/ws/playwright.ts +4 -0
  389. package/src/routes/firefox/ws/{playwright-firefox.ts → playwright.ts} +5 -5
  390. package/src/routes/management/http/{static-get.ts → static.get.ts} +2 -2
  391. package/src/routes/webkit/ws/{playwright-webkit.ts → playwright.ts} +5 -5
  392. package/src/shared/browser.ws.ts +34 -0
  393. package/src/{routes/chromium/ws/playwright-chromium.ts → shared/chromium.playwright.ws.ts} +7 -4
  394. package/src/{routes/chromium/ws/cdp-chromium.ts → shared/chromium.ws.ts} +6 -6
  395. package/src/{routes/chromium/http/content-post.ts → shared/content.http.ts} +4 -4
  396. package/src/{routes/chromium/http/download-post.ts → shared/download.http.ts} +4 -4
  397. package/src/{routes/chromium/http/function-post.ts → shared/function.http.ts} +4 -4
  398. package/src/shared/json-list.http.ts +35 -0
  399. package/src/{routes/chromium/http/json-new.ts → shared/json-new.http.ts} +23 -7
  400. package/src/{routes/chromium/http/json-protocol-get.ts → shared/json-protocol.http.ts} +3 -5
  401. package/src/{routes/chromium/http/json-version-get.ts → shared/json-version.http.ts} +4 -5
  402. package/src/shared/page.ws.ts +35 -0
  403. package/src/{routes/chromium/http/pdf-post.ts → shared/pdf.http.ts} +4 -4
  404. package/src/{routes/chromium/http/performance.ts → shared/performance.http.ts} +4 -4
  405. package/src/{routes/chromium/http/scrape-post.ts → shared/scrape.http.ts} +4 -4
  406. package/src/{routes/chromium/http/screenshot-post.ts → shared/screenshot.http.ts} +4 -4
  407. package/src/{routes/chromium → shared}/utils/function/handler.ts +2 -2
  408. package/src/{routes/chromium → shared}/utils/performance/main.ts +1 -2
  409. package/src/shim.ts +2 -1
  410. package/src/types.ts +27 -20
  411. package/src/utils.ts +32 -14
  412. package/static/devtools/Images/accelerometer-back.svg +1 -0
  413. package/static/devtools/Images/accelerometer-bottom.png +0 -0
  414. package/static/devtools/Images/accelerometer-front.svg +1 -0
  415. package/static/devtools/Images/accelerometer-left.png +0 -0
  416. package/static/devtools/Images/accelerometer-right.png +0 -0
  417. package/static/devtools/Images/accelerometer-top.png +0 -0
  418. package/static/devtools/Images/baseline-icon.svg +1 -0
  419. package/static/devtools/Images/breaking_change_icon.svg +1 -0
  420. package/static/devtools/Images/checkboxCheckmark.svg +1 -0
  421. package/static/devtools/Images/checker.png +0 -0
  422. package/static/devtools/Images/chevrons.svg +1 -0
  423. package/static/devtools/Images/chromeDisabledSelect.png +0 -0
  424. package/static/devtools/Images/chromeDisabledSelect_2x.png +0 -0
  425. package/static/devtools/Images/chromeLeft.avif +0 -0
  426. package/static/devtools/Images/chromeMiddle.avif +0 -0
  427. package/static/devtools/Images/chromeRight.avif +0 -0
  428. package/static/devtools/Images/chromeSelect.svg +1 -0
  429. package/static/devtools/Images/chromeSelectDark.svg +1 -0
  430. package/static/devtools/Images/cssoverview_icons_2x.avif +0 -0
  431. package/static/devtools/Images/dropdown_7x6_icon.svg +1 -0
  432. package/static/devtools/Images/elements_panel_icon.svg +1 -0
  433. package/static/devtools/Images/errorWave.svg +1 -0
  434. package/static/devtools/Images/error_icon.svg +1 -0
  435. package/static/devtools/Images/feedback_thin_16x16_icon.svg +1 -0
  436. package/static/devtools/Images/flex-align-content-center-icon.svg +1 -0
  437. package/static/devtools/Images/flex-align-content-end-icon.svg +1 -0
  438. package/static/devtools/Images/flex-align-content-space-around-icon.svg +1 -0
  439. package/static/devtools/Images/flex-align-content-space-between-icon.svg +1 -0
  440. package/static/devtools/Images/flex-align-content-space-evenly-icon.svg +1 -0
  441. package/static/devtools/Images/flex-align-content-start-icon.svg +1 -0
  442. package/static/devtools/Images/flex-align-content-stretch-icon.svg +1 -0
  443. package/static/devtools/Images/flex-align-items-center-icon.svg +1 -0
  444. package/static/devtools/Images/flex-align-items-flex-end-icon.svg +1 -0
  445. package/static/devtools/Images/flex-align-items-flex-start-icon.svg +1 -0
  446. package/static/devtools/Images/flex-align-items-stretch-icon.svg +1 -0
  447. package/static/devtools/Images/flex-align-self-center-icon.svg +1 -0
  448. package/static/devtools/Images/flex-align-self-flex-end-icon.svg +1 -0
  449. package/static/devtools/Images/flex-align-self-flex-start-icon.svg +1 -0
  450. package/static/devtools/Images/flex-align-self-stretch-icon.svg +1 -0
  451. package/static/devtools/Images/flex-direction-icon.svg +1 -0
  452. package/static/devtools/Images/flex-justify-content-center-icon.svg +1 -0
  453. package/static/devtools/Images/flex-justify-content-flex-end-icon.svg +1 -0
  454. package/static/devtools/Images/flex-justify-content-flex-start-icon.svg +1 -0
  455. package/static/devtools/Images/flex-justify-content-space-around-icon.svg +1 -0
  456. package/static/devtools/Images/flex-justify-content-space-between-icon.svg +1 -0
  457. package/static/devtools/Images/flex-justify-content-space-evenly-icon.svg +1 -0
  458. package/static/devtools/Images/ic_checkmark_16x16.svg +3 -0
  459. package/static/devtools/Images/ic_delete_filter.svg +1 -0
  460. package/static/devtools/Images/ic_delete_list.svg +1 -0
  461. package/static/devtools/Images/ic_info_black_18dp.svg +1 -0
  462. package/static/devtools/Images/ic_page_next_16x16_icon.svg +1 -0
  463. package/static/devtools/Images/ic_page_prev_16x16_icon.svg +1 -0
  464. package/static/devtools/Images/ic_redo_16x16_icon.svg +1 -0
  465. package/static/devtools/Images/ic_show_node_16x16.svg +4 -0
  466. package/static/devtools/Images/ic_suggest_color.svg +6 -0
  467. package/static/devtools/Images/ic_undo_16x16_icon.svg +1 -0
  468. package/static/devtools/Images/ic_warning_black_18dp.svg +1 -0
  469. package/static/devtools/Images/issue-text-icon.svg +1 -0
  470. package/static/devtools/Images/largeIcons.svg +1 -0
  471. package/static/devtools/Images/lighthouse_logo.svg +1 -0
  472. package/static/devtools/Images/link_icon.svg +1 -0
  473. package/static/devtools/Images/mediumIcons.svg +1 -0
  474. package/static/devtools/Images/navigationControls.png +0 -0
  475. package/static/devtools/Images/navigationControls_2x.png +0 -0
  476. package/static/devtools/Images/network_panel_icon.svg +1 -0
  477. package/static/devtools/Images/nodeIcon.avif +0 -0
  478. package/static/devtools/Images/node_search_icon.svg +1 -0
  479. package/static/devtools/Images/popoverArrows.png +0 -0
  480. package/static/devtools/Images/profileGroupIcon.png +0 -0
  481. package/static/devtools/Images/profileIcon.png +0 -0
  482. package/static/devtools/Images/profileSmallIcon.png +0 -0
  483. package/static/devtools/Images/radioDot-dark-theme.png +0 -0
  484. package/static/devtools/Images/radioDot.png +0 -0
  485. package/static/devtools/Images/refresh_12x12_icon.svg +1 -0
  486. package/static/devtools/Images/resizeDiagonal.svg +1 -0
  487. package/static/devtools/Images/resizeHorizontal.svg +1 -0
  488. package/static/devtools/Images/resizeVertical.svg +1 -0
  489. package/static/devtools/Images/resourceCSSIcon.png +0 -0
  490. package/static/devtools/Images/resourceDocumentIcon.png +0 -0
  491. package/static/devtools/Images/resourceDocumentIconSmall.png +0 -0
  492. package/static/devtools/Images/resourceJSIcon.png +0 -0
  493. package/static/devtools/Images/resourcePlainIcon.png +0 -0
  494. package/static/devtools/Images/resourcePlainIconSmall.png +0 -0
  495. package/static/devtools/Images/resourcesTimeGraphIcon.avif +0 -0
  496. package/static/devtools/Images/searchNext.png +0 -0
  497. package/static/devtools/Images/searchPrev.png +0 -0
  498. package/static/devtools/Images/securityIcons.svg +1 -0
  499. package/static/devtools/Images/settings_14x14_icon.svg +1 -0
  500. package/static/devtools/Images/smallIcons.svg +1 -0
  501. package/static/devtools/Images/sources_panel_icon.svg +1 -0
  502. package/static/devtools/Images/speech.png +0 -0
  503. package/static/devtools/Images/toolbarResizerVertical.png +0 -0
  504. package/static/devtools/Images/touchCursor.png +0 -0
  505. package/static/devtools/Images/touchCursor_2x.png +0 -0
  506. package/static/devtools/Images/treeoutlineTriangles.svg +1 -0
  507. package/static/devtools/Images/warning_icon.svg +1 -0
  508. package/static/devtools/Images/whatsnew.avif +0 -0
  509. package/static/devtools/Tests.js +1654 -0
  510. package/static/devtools/accessibility/accessibility-legacy.js +1 -0
  511. package/static/devtools/accessibility/accessibility-meta.js +1 -0
  512. package/static/devtools/accessibility/accessibility.js +1 -0
  513. package/static/devtools/accessibility/accessibility_module.js +1 -0
  514. package/static/devtools/accessibility_test_runner/accessibility_test_runner.js +77 -0
  515. package/static/devtools/accessibility_test_runner/accessibility_test_runner_module.js +0 -0
  516. package/static/devtools/animation/animation-legacy.js +1 -0
  517. package/static/devtools/animation/animation-meta.js +1 -0
  518. package/static/devtools/animation/animation.js +1 -0
  519. package/static/devtools/animation/animation_module.js +1 -0
  520. package/static/devtools/application_test_runner/AppcacheTestRunner.js +220 -0
  521. package/static/devtools/application_test_runner/CacheStorageTestRunner.js +286 -0
  522. package/static/devtools/application_test_runner/IndexedDBTestRunner.js +476 -0
  523. package/static/devtools/application_test_runner/ResourceTreeTestRunner.js +99 -0
  524. package/static/devtools/application_test_runner/ResourcesTestRunner.js +167 -0
  525. package/static/devtools/application_test_runner/ServiceWorkersTestRunner.js +131 -0
  526. package/static/devtools/application_test_runner/application_test_runner.js +10 -0
  527. package/static/devtools/application_test_runner/application_test_runner_module.js +0 -0
  528. package/static/devtools/axe_core_test_runner/axe_core_test_runner.js +174 -0
  529. package/static/devtools/axe_core_test_runner/axe_core_test_runner_module.js +0 -0
  530. package/static/devtools/bindings/bindings-legacy.js +1 -0
  531. package/static/devtools/bindings/bindings.js +1 -0
  532. package/static/devtools/bindings_test_runner/AutomappingTestRunner.js +130 -0
  533. package/static/devtools/bindings_test_runner/BindingsTestRunner.js +238 -0
  534. package/static/devtools/bindings_test_runner/IsolatedFilesystemTestRunner.js +287 -0
  535. package/static/devtools/bindings_test_runner/OverridesTestRunner.js +26 -0
  536. package/static/devtools/bindings_test_runner/PersistenceTestRunner.js +109 -0
  537. package/static/devtools/bindings_test_runner/bindings_test_runner.js +9 -0
  538. package/static/devtools/bindings_test_runner/bindings_test_runner_module.js +0 -0
  539. package/static/devtools/browser_debugger/browser_debugger-legacy.js +1 -0
  540. package/static/devtools/browser_debugger/browser_debugger-meta.js +1 -0
  541. package/static/devtools/browser_debugger/browser_debugger.js +1 -0
  542. package/static/devtools/browser_debugger/browser_debugger_module.js +1 -0
  543. package/static/devtools/browser_sdk/browser_sdk-meta.js +1 -0
  544. package/static/devtools/browser_sdk/browser_sdk.js +1 -0
  545. package/static/devtools/changes/changes-legacy.js +1 -0
  546. package/static/devtools/changes/changes-meta.js +1 -0
  547. package/static/devtools/changes/changes.js +1 -0
  548. package/static/devtools/changes/changes_module.js +1 -0
  549. package/static/devtools/client_variations/client_variations.js +1 -0
  550. package/static/devtools/client_variations/client_variations_module.js +0 -0
  551. package/static/devtools/cm/cm.js +1 -0
  552. package/static/devtools/cm/cm_module.js +1 -0
  553. package/static/devtools/cm_headless/cm_headless.js +1 -0
  554. package/static/devtools/color_picker/color_picker-legacy.js +1 -0
  555. package/static/devtools/color_picker/color_picker.js +1 -0
  556. package/static/devtools/color_picker/color_picker_module.js +1 -0
  557. package/static/devtools/common/common-legacy.js +1 -0
  558. package/static/devtools/common/common.js +1 -0
  559. package/static/devtools/component_helpers/component_helpers.js +1 -0
  560. package/static/devtools/components/components-legacy.js +1 -0
  561. package/static/devtools/components/components.js +1 -0
  562. package/static/devtools/console/console-legacy.js +1 -0
  563. package/static/devtools/console/console-meta.js +1 -0
  564. package/static/devtools/console/console.js +6 -0
  565. package/static/devtools/console/console_module.js +1 -0
  566. package/static/devtools/console_counters/console_counters-legacy.js +1 -0
  567. package/static/devtools/console_counters/console_counters.js +1 -0
  568. package/static/devtools/console_test_runner/console_test_runner.js +696 -0
  569. package/static/devtools/console_test_runner/console_test_runner_module.js +0 -0
  570. package/static/devtools/cookie_table/cookie_table-legacy.js +1 -0
  571. package/static/devtools/cookie_table/cookie_table.js +1 -0
  572. package/static/devtools/cookie_table/cookie_table_module.js +1 -0
  573. package/static/devtools/coverage/coverage-legacy.js +1 -0
  574. package/static/devtools/coverage/coverage-meta.js +1 -0
  575. package/static/devtools/coverage/coverage.js +1 -0
  576. package/static/devtools/coverage/coverage_module.js +1 -0
  577. package/static/devtools/coverage_test_runner/coverage_test_runner.js +151 -0
  578. package/static/devtools/coverage_test_runner/coverage_test_runner_module.js +0 -0
  579. package/static/devtools/cpu_profiler_test_runner/cpu_profiler_test_runner.js +72 -0
  580. package/static/devtools/cpu_profiler_test_runner/cpu_profiler_test_runner_module.js +0 -0
  581. package/static/devtools/css_overview/css_overview-meta.js +1 -0
  582. package/static/devtools/css_overview/css_overview.js +146 -0
  583. package/static/devtools/css_overview/css_overview_module.js +1 -0
  584. package/static/devtools/data_grid/data_grid-legacy.js +1 -0
  585. package/static/devtools/data_grid/data_grid.js +1 -0
  586. package/static/devtools/data_grid/data_grid_module.js +1 -0
  587. package/static/devtools/data_grid_test_runner/data_grid_test_runner.js +78 -0
  588. package/static/devtools/data_grid_test_runner/data_grid_test_runner_module.js +0 -0
  589. package/static/devtools/developer_resources/developer_resources-legacy.js +1 -0
  590. package/static/devtools/developer_resources/developer_resources-meta.js +1 -0
  591. package/static/devtools/developer_resources/developer_resources.js +1 -0
  592. package/static/devtools/developer_resources/developer_resources_module.js +1 -0
  593. package/static/devtools/device_mode_test_runner/device_mode_test_runner.js +45 -0
  594. package/static/devtools/device_mode_test_runner/device_mode_test_runner_module.js +0 -0
  595. package/static/devtools/devtools_app.html +20 -0
  596. package/static/devtools/devtools_app.js +1 -0
  597. package/static/devtools/devtools_compatibility.js +1546 -0
  598. package/static/devtools/diff/diff-legacy.js +1 -0
  599. package/static/devtools/diff/diff.js +1 -0
  600. package/static/devtools/diff/diff_module.js +0 -0
  601. package/static/devtools/dom_extension/dom_extension.js +1 -0
  602. package/static/devtools/elements/elements-legacy.js +1 -0
  603. package/static/devtools/elements/elements-meta.js +1 -0
  604. package/static/devtools/elements/elements.js +469 -0
  605. package/static/devtools/elements/elements_module.js +1 -0
  606. package/static/devtools/elements_test_runner/EditDOMTestRunner.js +78 -0
  607. package/static/devtools/elements_test_runner/ElementsPanelShadowSelectionOnRefreshTestRunner.js +39 -0
  608. package/static/devtools/elements_test_runner/ElementsTestRunner.js +1280 -0
  609. package/static/devtools/elements_test_runner/SetOuterHTMLTestRunner.js +115 -0
  610. package/static/devtools/elements_test_runner/StylesUpdateLinksTestRunner.js +134 -0
  611. package/static/devtools/elements_test_runner/elements_test_runner.js +9 -0
  612. package/static/devtools/elements_test_runner/elements_test_runner_module.js +0 -0
  613. package/static/devtools/emulated_devices/emulated_devices_module.js +0 -0
  614. package/static/devtools/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
  615. package/static/devtools/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
  616. package/static/devtools/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
  617. package/static/devtools/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
  618. package/static/devtools/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
  619. package/static/devtools/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
  620. package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
  621. package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
  622. package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
  623. package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
  624. package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
  625. package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
  626. package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
  627. package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
  628. package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
  629. package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
  630. package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
  631. package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
  632. package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
  633. package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
  634. package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
  635. package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
  636. package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
  637. package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
  638. package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
  639. package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
  640. package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
  641. package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
  642. package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
  643. package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
  644. package/static/devtools/emulated_devices/optimized/iPad-landscape.avif +0 -0
  645. package/static/devtools/emulated_devices/optimized/iPad-portrait.avif +0 -0
  646. package/static/devtools/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
  647. package/static/devtools/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
  648. package/static/devtools/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
  649. package/static/devtools/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
  650. package/static/devtools/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
  651. package/static/devtools/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
  652. package/static/devtools/emulation/emulation-legacy.js +1 -0
  653. package/static/devtools/emulation/emulation-meta.js +1 -0
  654. package/static/devtools/emulation/emulation.js +1 -0
  655. package/static/devtools/event_listeners/event_listeners-legacy.js +1 -0
  656. package/static/devtools/event_listeners/event_listeners.js +1 -0
  657. package/static/devtools/event_listeners/event_listeners_module.js +1 -0
  658. package/static/devtools/extensions/extensions-legacy.js +1 -0
  659. package/static/devtools/extensions/extensions.js +1 -0
  660. package/static/devtools/extensions_test_runner/ExtensionsNetworkTestRunner.js +27 -0
  661. package/static/devtools/extensions_test_runner/ExtensionsTestRunner.js +68 -0
  662. package/static/devtools/extensions_test_runner/extensions_test_runner.js +6 -0
  663. package/static/devtools/extensions_test_runner/extensions_test_runner_module.js +0 -0
  664. package/static/devtools/formatter/formatter-legacy.js +1 -0
  665. package/static/devtools/formatter/formatter.js +1 -0
  666. package/static/devtools/formatter/formatter_module.js +0 -0
  667. package/static/devtools/formatter_worker/FormatterActions.js +1 -0
  668. package/static/devtools/formatter_worker/formatter_worker-entrypoint.js +1 -0
  669. package/static/devtools/formatter_worker/formatter_worker.js +1 -0
  670. package/static/devtools/har_importer/har_importer-legacy.js +1 -0
  671. package/static/devtools/har_importer/har_importer.js +1 -0
  672. package/static/devtools/har_importer/har_importer_module.js +0 -0
  673. package/static/devtools/heap_profiler_test_runner/heap_profiler_test_runner.js +740 -0
  674. package/static/devtools/heap_profiler_test_runner/heap_profiler_test_runner_module.js +0 -0
  675. package/static/devtools/heap_snapshot_model/heap_snapshot_model-legacy.js +1 -0
  676. package/static/devtools/heap_snapshot_model/heap_snapshot_model.js +1 -0
  677. package/static/devtools/heap_snapshot_model/heap_snapshot_model_module.js +0 -0
  678. package/static/devtools/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +1 -0
  679. package/static/devtools/heap_snapshot_worker/heap_snapshot_worker-legacy.js +1 -0
  680. package/static/devtools/heap_snapshot_worker/heap_snapshot_worker.js +1 -0
  681. package/static/devtools/heap_snapshot_worker/heap_snapshot_worker_module.js +0 -0
  682. package/static/devtools/help/help-legacy.js +1 -0
  683. package/static/devtools/help/help-meta.js +1 -0
  684. package/static/devtools/help/help.js +1 -0
  685. package/static/devtools/help/help_module.js +1 -0
  686. package/static/devtools/host/host-legacy.js +1 -0
  687. package/static/devtools/host/host.js +1 -0
  688. package/static/devtools/i18n/i18n.js +1 -0
  689. package/static/devtools/i18n/i18n_locales-tsconfig.json +8 -0
  690. package/static/devtools/i18n/locales/en-US.json +3566 -0
  691. package/static/devtools/inline_editor/inline_editor-legacy.js +1 -0
  692. package/static/devtools/inline_editor/inline_editor.js +203 -0
  693. package/static/devtools/inline_editor/inline_editor_module.js +1 -0
  694. package/static/devtools/input/input-legacy.js +1 -0
  695. package/static/devtools/input/input-meta.js +1 -0
  696. package/static/devtools/input/input.js +1 -0
  697. package/static/devtools/input/input_module.js +1 -0
  698. package/static/devtools/inspector.html +20 -0
  699. package/static/devtools/inspector.js +1 -0
  700. package/static/devtools/inspector_main/inspector_main-legacy.js +1 -0
  701. package/static/devtools/inspector_main/inspector_main-meta.js +1 -0
  702. package/static/devtools/inspector_main/inspector_main.js +1 -0
  703. package/static/devtools/integration_test_runner.html +14 -0
  704. package/static/devtools/integration_test_runner.js +2 -0
  705. package/static/devtools/issues/issues-legacy.js +1 -0
  706. package/static/devtools/issues/issues-meta.js +1 -0
  707. package/static/devtools/issues/issues.js +67 -0
  708. package/static/devtools/issues/issues_module.js +1 -0
  709. package/static/devtools/javascript_metadata/javascript_metadata-legacy.js +1 -0
  710. package/static/devtools/javascript_metadata/javascript_metadata.js +1 -0
  711. package/static/devtools/javascript_metadata/javascript_metadata_module.js +0 -0
  712. package/static/devtools/js_app.html +20 -0
  713. package/static/devtools/js_app.js +1 -0
  714. package/static/devtools/js_main/js_main-legacy.js +1 -0
  715. package/static/devtools/js_main/js_main.js +1 -0
  716. package/static/devtools/js_profiler/js_profiler-meta.js +1 -0
  717. package/static/devtools/js_profiler/js_profiler.js +1 -0
  718. package/static/devtools/js_profiler/js_profiler_module.js +0 -0
  719. package/static/devtools/layer_viewer/layer_viewer-legacy.js +1 -0
  720. package/static/devtools/layer_viewer/layer_viewer.js +1 -0
  721. package/static/devtools/layer_viewer/layer_viewer_module.js +1 -0
  722. package/static/devtools/layers/layers-legacy.js +1 -0
  723. package/static/devtools/layers/layers-meta.js +1 -0
  724. package/static/devtools/layers/layers.js +1 -0
  725. package/static/devtools/layers/layers_module.js +0 -0
  726. package/static/devtools/layers_test_runner/layers_test_runner.js +156 -0
  727. package/static/devtools/layers_test_runner/layers_test_runner_module.js +0 -0
  728. package/static/devtools/lighthouse/lighthouse-legacy.js +1 -0
  729. package/static/devtools/lighthouse/lighthouse-meta.js +1 -0
  730. package/static/devtools/lighthouse/lighthouse.js +70 -0
  731. package/static/devtools/lighthouse/lighthouse_module.js +1 -0
  732. package/static/devtools/lighthouse_test_runner/lighthouse_test_runner.js +136 -0
  733. package/static/devtools/lighthouse_test_runner/lighthouse_test_runner_module.js +0 -0
  734. package/static/devtools/lighthouse_worker/LighthouseService.js +195 -0
  735. package/static/devtools/lighthouse_worker/lighthouse_worker.js +6 -0
  736. package/static/devtools/lighthouse_worker.js +1 -0
  737. package/static/devtools/linear_memory_inspector/linear_memory_inspector-legacy.js +1 -0
  738. package/static/devtools/linear_memory_inspector/linear_memory_inspector-meta.js +1 -0
  739. package/static/devtools/linear_memory_inspector/linear_memory_inspector.js +399 -0
  740. package/static/devtools/linear_memory_inspector/linear_memory_inspector_module.js +0 -0
  741. package/static/devtools/main/main-legacy.js +1 -0
  742. package/static/devtools/main/main.js +1 -0
  743. package/static/devtools/media/media-legacy.js +1 -0
  744. package/static/devtools/media/media-meta.js +1 -0
  745. package/static/devtools/media/media.js +1 -0
  746. package/static/devtools/media/media_module.js +1 -0
  747. package/static/devtools/mobile_throttling/mobile_throttling-legacy.js +1 -0
  748. package/static/devtools/mobile_throttling/mobile_throttling-meta.js +1 -0
  749. package/static/devtools/mobile_throttling/mobile_throttling.js +1 -0
  750. package/static/devtools/ndb_app.html +20 -0
  751. package/static/devtools/ndb_app.js +1 -0
  752. package/static/devtools/network/network-legacy.js +1 -0
  753. package/static/devtools/network/network-meta.js +1 -0
  754. package/static/devtools/network/network.js +72 -0
  755. package/static/devtools/network/network_module.js +1 -0
  756. package/static/devtools/network_test_runner/network_test_runner.js +280 -0
  757. package/static/devtools/network_test_runner/network_test_runner_module.js +0 -0
  758. package/static/devtools/node_app.html +20 -0
  759. package/static/devtools/node_app.js +1 -0
  760. package/static/devtools/node_debugger/node_debugger-meta.js +1 -0
  761. package/static/devtools/node_debugger/node_debugger.js +1 -0
  762. package/static/devtools/node_debugger/node_debugger_module.js +0 -0
  763. package/static/devtools/node_main/node_main-legacy.js +1 -0
  764. package/static/devtools/node_main/node_main-meta.js +1 -0
  765. package/static/devtools/node_main/node_main.js +1 -0
  766. package/static/devtools/object_ui/object_ui-legacy.js +1 -0
  767. package/static/devtools/object_ui/object_ui.js +3 -0
  768. package/static/devtools/object_ui/object_ui_module.js +1 -0
  769. package/static/devtools/perf_ui/perf_ui-legacy.js +1 -0
  770. package/static/devtools/perf_ui/perf_ui.js +152 -0
  771. package/static/devtools/perf_ui/perf_ui_module.js +1 -0
  772. package/static/devtools/performance_monitor/performance_monitor-legacy.js +1 -0
  773. package/static/devtools/performance_monitor/performance_monitor-meta.js +1 -0
  774. package/static/devtools/performance_monitor/performance_monitor.js +1 -0
  775. package/static/devtools/performance_monitor/performance_monitor_module.js +1 -0
  776. package/static/devtools/performance_test_runner/TimelineDataTestRunner.js +5375 -0
  777. package/static/devtools/performance_test_runner/TimelineTestRunner.js +446 -0
  778. package/static/devtools/performance_test_runner/performance_test_runner.js +6 -0
  779. package/static/devtools/performance_test_runner/performance_test_runner_module.js +0 -0
  780. package/static/devtools/persistence/persistence-legacy.js +1 -0
  781. package/static/devtools/persistence/persistence-meta.js +1 -0
  782. package/static/devtools/persistence/persistence.js +1 -0
  783. package/static/devtools/platform/platform.js +1 -0
  784. package/static/devtools/profiler/profiler-legacy.js +1 -0
  785. package/static/devtools/profiler/profiler-meta.js +1 -0
  786. package/static/devtools/profiler/profiler.js +8 -0
  787. package/static/devtools/profiler/profiler_module.js +1 -0
  788. package/static/devtools/protocol_client/protocol_client-legacy.js +1 -0
  789. package/static/devtools/protocol_client/protocol_client.js +1 -0
  790. package/static/devtools/protocol_monitor/protocol_monitor-legacy.js +1 -0
  791. package/static/devtools/protocol_monitor/protocol_monitor-meta.js +1 -0
  792. package/static/devtools/protocol_monitor/protocol_monitor.js +1 -0
  793. package/static/devtools/protocol_monitor/protocol_monitor_module.js +1 -0
  794. package/static/devtools/quick_open/quick_open-legacy.js +1 -0
  795. package/static/devtools/quick_open/quick_open.js +1 -0
  796. package/static/devtools/quick_open/quick_open_module.js +1 -0
  797. package/static/devtools/recorder/recorder.js +1 -0
  798. package/static/devtools/resources/resources-legacy.js +1 -0
  799. package/static/devtools/resources/resources-meta.js +1 -0
  800. package/static/devtools/resources/resources.js +28 -0
  801. package/static/devtools/resources/resources_module.js +1 -0
  802. package/static/devtools/root/root-legacy.js +1 -0
  803. package/static/devtools/root/root.js +1 -0
  804. package/static/devtools/screencast/screencast-legacy.js +1 -0
  805. package/static/devtools/screencast/screencast.js +1 -0
  806. package/static/devtools/sdk/sdk-legacy.js +1 -0
  807. package/static/devtools/sdk/sdk.js +2 -0
  808. package/static/devtools/sdk_test_runner/sdk_test_runner.js +297 -0
  809. package/static/devtools/sdk_test_runner/sdk_test_runner_module.js +0 -0
  810. package/static/devtools/search/search-legacy.js +1 -0
  811. package/static/devtools/search/search.js +1 -0
  812. package/static/devtools/search/search_module.js +1 -0
  813. package/static/devtools/security/security-legacy.js +1 -0
  814. package/static/devtools/security/security-meta.js +1 -0
  815. package/static/devtools/security/security.js +1 -0
  816. package/static/devtools/security/security_module.js +1 -0
  817. package/static/devtools/security_test_runner/security_test_runner.js +32 -0
  818. package/static/devtools/security_test_runner/security_test_runner_module.js +0 -0
  819. package/static/devtools/services/services-legacy.js +1 -0
  820. package/static/devtools/services/services.js +1 -0
  821. package/static/devtools/settings/settings-legacy.js +1 -0
  822. package/static/devtools/settings/settings-meta.js +1 -0
  823. package/static/devtools/settings/settings.js +1 -0
  824. package/static/devtools/settings/settings_module.js +1 -0
  825. package/static/devtools/shell.js +1 -0
  826. package/static/devtools/snippets/snippets-legacy.js +1 -0
  827. package/static/devtools/snippets/snippets.js +1 -0
  828. package/static/devtools/snippets/snippets_module.js +0 -0
  829. package/static/devtools/source_frame/source_frame-legacy.js +1 -0
  830. package/static/devtools/source_frame/source_frame.js +1 -0
  831. package/static/devtools/source_frame/source_frame_module.js +1 -0
  832. package/static/devtools/sources/sources-legacy.js +1 -0
  833. package/static/devtools/sources/sources-meta.js +1 -0
  834. package/static/devtools/sources/sources.js +13 -0
  835. package/static/devtools/sources/sources_module.js +1 -0
  836. package/static/devtools/sources_test_runner/AutocompleteTestRunner.js +46 -0
  837. package/static/devtools/sources_test_runner/DebuggerTestRunner.js +895 -0
  838. package/static/devtools/sources_test_runner/EditorTestRunner.js +237 -0
  839. package/static/devtools/sources_test_runner/LiveEditTestRunner.js +33 -0
  840. package/static/devtools/sources_test_runner/SearchTestRunner.js +158 -0
  841. package/static/devtools/sources_test_runner/SourcesTestRunner.js +173 -0
  842. package/static/devtools/sources_test_runner/sources_test_runner.js +10 -0
  843. package/static/devtools/sources_test_runner/sources_test_runner_module.js +0 -0
  844. package/static/devtools/startup/startup.js +1 -0
  845. package/static/devtools/test_runner/test_runner.js +1 -0
  846. package/static/devtools/text_editor/text_editor-legacy.js +1 -0
  847. package/static/devtools/text_editor/text_editor.js +1 -0
  848. package/static/devtools/text_editor/text_editor_module.js +1 -0
  849. package/static/devtools/text_utils/text_utils-legacy.js +1 -0
  850. package/static/devtools/text_utils/text_utils.js +1 -0
  851. package/static/devtools/theme_support/theme_support.js +1 -0
  852. package/static/devtools/third_party/acorn/acorn-tsconfig.json +8 -0
  853. package/static/devtools/third_party/acorn/acorn.js +1 -0
  854. package/static/devtools/third_party/acorn/package/dist/acorn.d.ts +209 -0
  855. package/static/devtools/third_party/acorn/package/dist/acorn.mjs +5261 -0
  856. package/static/devtools/third_party/acorn/package/dist/acorn.mjs.d.ts +2 -0
  857. package/static/devtools/third_party/acorn/package/dist/acorn.mjs.map +1 -0
  858. package/static/devtools/third_party/acorn-loose/acorn-loose-tsconfig.json +8 -0
  859. package/static/devtools/third_party/acorn-loose/package/dist/acorn-loose.d.ts +16 -0
  860. package/static/devtools/third_party/acorn-loose/package/dist/acorn-loose.mjs +1418 -0
  861. package/static/devtools/third_party/axe-core/axe.js +16423 -0
  862. package/static/devtools/third_party/chromium/chromium-tsconfig.json +8 -0
  863. package/static/devtools/third_party/chromium/client-variations/ClientVariations.d.ts +13 -0
  864. package/static/devtools/third_party/chromium/client-variations/ClientVariations.js +27 -0
  865. package/static/devtools/third_party/codemirror/codemirror-tsconfig.json +72 -0
  866. package/static/devtools/third_party/codemirror/package/addon/comment/comment.d.ts +4 -0
  867. package/static/devtools/third_party/codemirror/package/addon/comment/comment.js +211 -0
  868. package/static/devtools/third_party/codemirror/package/addon/edit/closebrackets.d.ts +1 -0
  869. package/static/devtools/third_party/codemirror/package/addon/edit/closebrackets.js +201 -0
  870. package/static/devtools/third_party/codemirror/package/addon/edit/matchbrackets.d.ts +1 -0
  871. package/static/devtools/third_party/codemirror/package/addon/edit/matchbrackets.js +158 -0
  872. package/static/devtools/third_party/codemirror/package/addon/fold/brace-fold.d.ts +1 -0
  873. package/static/devtools/third_party/codemirror/package/addon/fold/brace-fold.js +105 -0
  874. package/static/devtools/third_party/codemirror/package/addon/fold/foldcode.d.ts +1 -0
  875. package/static/devtools/third_party/codemirror/package/addon/fold/foldcode.js +157 -0
  876. package/static/devtools/third_party/codemirror/package/addon/fold/foldgutter.d.ts +1 -0
  877. package/static/devtools/third_party/codemirror/package/addon/fold/foldgutter.js +163 -0
  878. package/static/devtools/third_party/codemirror/package/addon/mode/multiplex.d.ts +1 -0
  879. package/static/devtools/third_party/codemirror/package/addon/mode/multiplex.js +131 -0
  880. package/static/devtools/third_party/codemirror/package/addon/mode/overlay.d.ts +1 -0
  881. package/static/devtools/third_party/codemirror/package/addon/mode/overlay.js +90 -0
  882. package/static/devtools/third_party/codemirror/package/addon/mode/simple.d.ts +1 -0
  883. package/static/devtools/third_party/codemirror/package/addon/mode/simple.js +216 -0
  884. package/static/devtools/third_party/codemirror/package/addon/runmode/runmode-standalone.d.ts +1 -0
  885. package/static/devtools/third_party/codemirror/package/addon/runmode/runmode-standalone.js +333 -0
  886. package/static/devtools/third_party/codemirror/package/addon/selection/active-line.d.ts +1 -0
  887. package/static/devtools/third_party/codemirror/package/addon/selection/active-line.js +72 -0
  888. package/static/devtools/third_party/codemirror/package/addon/selection/mark-selection.d.ts +1 -0
  889. package/static/devtools/third_party/codemirror/package/addon/selection/mark-selection.js +119 -0
  890. package/static/devtools/third_party/codemirror/package/lib/codemirror.d.ts +1 -0
  891. package/static/devtools/third_party/codemirror/package/lib/codemirror.js +9800 -0
  892. package/static/devtools/third_party/codemirror/package/mode/clike/clike.d.ts +4 -0
  893. package/static/devtools/third_party/codemirror/package/mode/clike/clike.js +935 -0
  894. package/static/devtools/third_party/codemirror/package/mode/clojure/clojure.d.ts +4 -0
  895. package/static/devtools/third_party/codemirror/package/mode/clojure/clojure.js +292 -0
  896. package/static/devtools/third_party/codemirror/package/mode/coffeescript/coffeescript.d.ts +4 -0
  897. package/static/devtools/third_party/codemirror/package/mode/coffeescript/coffeescript.js +359 -0
  898. package/static/devtools/third_party/codemirror/package/mode/css/css.d.ts +1 -0
  899. package/static/devtools/third_party/codemirror/package/mode/css/css.js +864 -0
  900. package/static/devtools/third_party/codemirror/package/mode/htmlembedded/htmlembedded.d.ts +1 -0
  901. package/static/devtools/third_party/codemirror/package/mode/htmlembedded/htmlembedded.js +37 -0
  902. package/static/devtools/third_party/codemirror/package/mode/htmlmixed/htmlmixed.d.ts +1 -0
  903. package/static/devtools/third_party/codemirror/package/mode/htmlmixed/htmlmixed.js +153 -0
  904. package/static/devtools/third_party/codemirror/package/mode/javascript/javascript.d.ts +1 -0
  905. package/static/devtools/third_party/codemirror/package/mode/javascript/javascript.js +942 -0
  906. package/static/devtools/third_party/codemirror/package/mode/jsx/jsx.d.ts +4 -0
  907. package/static/devtools/third_party/codemirror/package/mode/jsx/jsx.js +148 -0
  908. package/static/devtools/third_party/codemirror/package/mode/livescript/livescript.d.ts +4 -0
  909. package/static/devtools/third_party/codemirror/package/mode/livescript/livescript.js +280 -0
  910. package/static/devtools/third_party/codemirror/package/mode/markdown/markdown.d.ts +1 -0
  911. package/static/devtools/third_party/codemirror/package/mode/markdown/markdown.js +886 -0
  912. package/static/devtools/third_party/codemirror/package/mode/php/php.d.ts +1 -0
  913. package/static/devtools/third_party/codemirror/package/mode/php/php.js +234 -0
  914. package/static/devtools/third_party/codemirror/package/mode/python/python.d.ts +1 -0
  915. package/static/devtools/third_party/codemirror/package/mode/python/python.js +399 -0
  916. package/static/devtools/third_party/codemirror/package/mode/shell/shell.d.ts +1 -0
  917. package/static/devtools/third_party/codemirror/package/mode/shell/shell.js +168 -0
  918. package/static/devtools/third_party/codemirror/package/mode/wast/wast.d.ts +1 -0
  919. package/static/devtools/third_party/codemirror/package/mode/wast/wast.js +41 -0
  920. package/static/devtools/third_party/codemirror/package/mode/xml/xml.d.ts +1 -0
  921. package/static/devtools/third_party/codemirror/package/mode/xml/xml.js +413 -0
  922. package/static/devtools/third_party/i18n/bundle-tsconfig.json +8 -0
  923. package/static/devtools/third_party/i18n/i18n.d.ts +108 -0
  924. package/static/devtools/third_party/i18n/i18n.js +4336 -0
  925. package/static/devtools/third_party/lighthouse/lighthouse-dt-bundle.d.ts +1 -0
  926. package/static/devtools/third_party/lighthouse/lighthouse-dt-bundle.js +1140 -0
  927. package/static/devtools/third_party/lighthouse/lighthouse-tsconfig.json +10 -0
  928. package/static/devtools/third_party/lighthouse/locales/ar-XB.json +2066 -0
  929. package/static/devtools/third_party/lighthouse/locales/ar.json +2066 -0
  930. package/static/devtools/third_party/lighthouse/locales/bg.json +2066 -0
  931. package/static/devtools/third_party/lighthouse/locales/ca.json +2066 -0
  932. package/static/devtools/third_party/lighthouse/locales/cs.json +2066 -0
  933. package/static/devtools/third_party/lighthouse/locales/da.json +2066 -0
  934. package/static/devtools/third_party/lighthouse/locales/de.json +2066 -0
  935. package/static/devtools/third_party/lighthouse/locales/el.json +2066 -0
  936. package/static/devtools/third_party/lighthouse/locales/en-GB.json +2066 -0
  937. package/static/devtools/third_party/lighthouse/locales/en-US.json +2297 -0
  938. package/static/devtools/third_party/lighthouse/locales/en-XA.json +2066 -0
  939. package/static/devtools/third_party/lighthouse/locales/en-XL.json +2297 -0
  940. package/static/devtools/third_party/lighthouse/locales/es-419.json +2066 -0
  941. package/static/devtools/third_party/lighthouse/locales/es.json +2066 -0
  942. package/static/devtools/third_party/lighthouse/locales/fi.json +2066 -0
  943. package/static/devtools/third_party/lighthouse/locales/fil.json +2066 -0
  944. package/static/devtools/third_party/lighthouse/locales/fr.json +2066 -0
  945. package/static/devtools/third_party/lighthouse/locales/he.json +2066 -0
  946. package/static/devtools/third_party/lighthouse/locales/hi.json +2066 -0
  947. package/static/devtools/third_party/lighthouse/locales/hr.json +2066 -0
  948. package/static/devtools/third_party/lighthouse/locales/hu.json +2066 -0
  949. package/static/devtools/third_party/lighthouse/locales/id.json +2066 -0
  950. package/static/devtools/third_party/lighthouse/locales/it.json +2066 -0
  951. package/static/devtools/third_party/lighthouse/locales/ja.json +2066 -0
  952. package/static/devtools/third_party/lighthouse/locales/ko.json +2066 -0
  953. package/static/devtools/third_party/lighthouse/locales/lt.json +2066 -0
  954. package/static/devtools/third_party/lighthouse/locales/lv.json +2066 -0
  955. package/static/devtools/third_party/lighthouse/locales/nl.json +2066 -0
  956. package/static/devtools/third_party/lighthouse/locales/no.json +2066 -0
  957. package/static/devtools/third_party/lighthouse/locales/pl.json +2066 -0
  958. package/static/devtools/third_party/lighthouse/locales/pt-PT.json +2066 -0
  959. package/static/devtools/third_party/lighthouse/locales/pt.json +2066 -0
  960. package/static/devtools/third_party/lighthouse/locales/ro.json +2066 -0
  961. package/static/devtools/third_party/lighthouse/locales/ru.json +2066 -0
  962. package/static/devtools/third_party/lighthouse/locales/sk.json +2066 -0
  963. package/static/devtools/third_party/lighthouse/locales/sl.json +2066 -0
  964. package/static/devtools/third_party/lighthouse/locales/sr-Latn.json +2066 -0
  965. package/static/devtools/third_party/lighthouse/locales/sr.json +2066 -0
  966. package/static/devtools/third_party/lighthouse/locales/sv.json +2066 -0
  967. package/static/devtools/third_party/lighthouse/locales/ta.json +2066 -0
  968. package/static/devtools/third_party/lighthouse/locales/te.json +2066 -0
  969. package/static/devtools/third_party/lighthouse/locales/th.json +2066 -0
  970. package/static/devtools/third_party/lighthouse/locales/tr.json +2066 -0
  971. package/static/devtools/third_party/lighthouse/locales/uk.json +2066 -0
  972. package/static/devtools/third_party/lighthouse/locales/vi.json +2066 -0
  973. package/static/devtools/third_party/lighthouse/locales/zh-HK.json +2066 -0
  974. package/static/devtools/third_party/lighthouse/locales/zh-TW.json +2066 -0
  975. package/static/devtools/third_party/lighthouse/locales/zh.json +2066 -0
  976. package/static/devtools/third_party/lighthouse/report-assets/report-generator.d.ts +1 -0
  977. package/static/devtools/third_party/lighthouse/report-assets/report-generator.js +167 -0
  978. package/static/devtools/third_party/lighthouse/report-assets/report.d.ts +1 -0
  979. package/static/devtools/third_party/lighthouse/report-assets/report.js +5032 -0
  980. package/static/devtools/third_party/lit-html/lit-html-tsconfig.json +22 -0
  981. package/static/devtools/third_party/lit-html/lit-html.js +120 -0
  982. package/static/devtools/third_party/lit-html/package/directives/class-map.d.ts +28 -0
  983. package/static/devtools/third_party/lit-html/package/directives/class-map.js +101 -0
  984. package/static/devtools/third_party/lit-html/package/directives/class-map.js.map +1 -0
  985. package/static/devtools/third_party/lit-html/package/directives/if-defined.d.ts +22 -0
  986. package/static/devtools/third_party/lit-html/package/directives/if-defined.js +37 -0
  987. package/static/devtools/third_party/lit-html/package/directives/if-defined.js.map +1 -0
  988. package/static/devtools/third_party/lit-html/package/directives/live.d.ts +38 -0
  989. package/static/devtools/third_party/lit-html/package/directives/live.js +73 -0
  990. package/static/devtools/third_party/lit-html/package/directives/live.js.map +1 -0
  991. package/static/devtools/third_party/lit-html/package/directives/repeat.d.ts +37 -0
  992. package/static/devtools/third_party/lit-html/package/directives/repeat.js +415 -0
  993. package/static/devtools/third_party/lit-html/package/directives/repeat.js.map +1 -0
  994. package/static/devtools/third_party/lit-html/package/directives/style-map.d.ts +36 -0
  995. package/static/devtools/third_party/lit-html/package/directives/style-map.js +78 -0
  996. package/static/devtools/third_party/lit-html/package/directives/style-map.js.map +1 -0
  997. package/static/devtools/third_party/lit-html/package/lib/default-template-processor.d.ts +39 -0
  998. package/static/devtools/third_party/lit-html/package/lib/default-template-processor.js +52 -0
  999. package/static/devtools/third_party/lit-html/package/lib/default-template-processor.js.map +1 -0
  1000. package/static/devtools/third_party/lit-html/package/lib/directive.d.ts +59 -0
  1001. package/static/devtools/third_party/lit-html/package/lib/directive.js +63 -0
  1002. package/static/devtools/third_party/lit-html/package/lib/directive.js.map +1 -0
  1003. package/static/devtools/third_party/lit-html/package/lib/dom.d.ts +29 -0
  1004. package/static/devtools/third_party/lit-html/package/lib/dom.js +44 -0
  1005. package/static/devtools/third_party/lit-html/package/lib/dom.js.map +1 -0
  1006. package/static/devtools/third_party/lit-html/package/lib/part.d.ts +46 -0
  1007. package/static/devtools/third_party/lit-html/package/lib/part.js +23 -0
  1008. package/static/devtools/third_party/lit-html/package/lib/part.js.map +1 -0
  1009. package/static/devtools/third_party/lit-html/package/lib/parts.d.ts +148 -0
  1010. package/static/devtools/third_party/lit-html/package/lib/parts.js +476 -0
  1011. package/static/devtools/third_party/lit-html/package/lib/parts.js.map +1 -0
  1012. package/static/devtools/third_party/lit-html/package/lib/render.d.ts +33 -0
  1013. package/static/devtools/third_party/lit-html/package/lib/render.js +43 -0
  1014. package/static/devtools/third_party/lit-html/package/lib/render.js.map +1 -0
  1015. package/static/devtools/third_party/lit-html/package/lib/template-factory.d.ts +57 -0
  1016. package/static/devtools/third_party/lit-html/package/lib/template-factory.js +48 -0
  1017. package/static/devtools/third_party/lit-html/package/lib/template-factory.js.map +1 -0
  1018. package/static/devtools/third_party/lit-html/package/lib/template-instance.d.ts +30 -0
  1019. package/static/devtools/third_party/lit-html/package/lib/template-instance.js +134 -0
  1020. package/static/devtools/third_party/lit-html/package/lib/template-instance.js.map +1 -0
  1021. package/static/devtools/third_party/lit-html/package/lib/template-result.d.ts +42 -0
  1022. package/static/devtools/third_party/lit-html/package/lib/template-result.js +131 -0
  1023. package/static/devtools/third_party/lit-html/package/lib/template-result.js.map +1 -0
  1024. package/static/devtools/third_party/lit-html/package/lib/template.d.ts +92 -0
  1025. package/static/devtools/third_party/lit-html/package/lib/template.js +215 -0
  1026. package/static/devtools/third_party/lit-html/package/lib/template.js.map +1 -0
  1027. package/static/devtools/third_party/lit-html/package/lit-html.d.ts +42 -0
  1028. package/static/devtools/third_party/lit-html/package/lit-html.js +59 -0
  1029. package/static/devtools/third_party/lit-html/package/lit-html.js.map +1 -0
  1030. package/static/devtools/third_party/marked/marked-tsconfig.json +8 -0
  1031. package/static/devtools/third_party/marked/marked.js +1 -0
  1032. package/static/devtools/third_party/marked/package/lib/marked.esm.d.ts +1 -0
  1033. package/static/devtools/third_party/marked/package/lib/marked.esm.js +2584 -0
  1034. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts +53 -0
  1035. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts.map +1 -0
  1036. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.js +64 -0
  1037. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts +176 -0
  1038. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -0
  1039. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js +356 -0
  1040. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +21 -0
  1041. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
  1042. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +81 -0
  1043. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +423 -0
  1044. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -0
  1045. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +516 -0
  1046. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +39 -0
  1047. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -0
  1048. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +76 -0
  1049. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
  1050. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
  1051. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +30 -0
  1052. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +120 -0
  1053. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -0
  1054. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +266 -0
  1055. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts +22 -0
  1056. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
  1057. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.js +15 -0
  1058. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts +72 -0
  1059. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
  1060. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js +60 -0
  1061. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +181 -0
  1062. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -0
  1063. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +316 -0
  1064. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +174 -0
  1065. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -0
  1066. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +647 -0
  1067. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts +53 -0
  1068. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -0
  1069. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +77 -0
  1070. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +33 -0
  1071. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
  1072. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js +873 -0
  1073. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +76 -0
  1074. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -0
  1075. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js +92 -0
  1076. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts +25 -0
  1077. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -0
  1078. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.js +33 -0
  1079. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +34 -0
  1080. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -0
  1081. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +37 -0
  1082. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +59 -0
  1083. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -0
  1084. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.js +15 -0
  1085. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts +89 -0
  1086. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -0
  1087. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +109 -0
  1088. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts +82 -0
  1089. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts.map +1 -0
  1090. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.js +83 -0
  1091. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +189 -0
  1092. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -0
  1093. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +313 -0
  1094. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +60 -0
  1095. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -0
  1096. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js +66 -0
  1097. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +735 -0
  1098. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -0
  1099. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +962 -0
  1100. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +276 -0
  1101. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -0
  1102. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +421 -0
  1103. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +128 -0
  1104. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -0
  1105. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +150 -0
  1106. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +322 -0
  1107. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -0
  1108. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +463 -0
  1109. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +439 -0
  1110. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -0
  1111. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +724 -0
  1112. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +62 -0
  1113. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
  1114. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +145 -0
  1115. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +80 -0
  1116. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -0
  1117. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +262 -0
  1118. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +152 -0
  1119. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -0
  1120. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js +31 -0
  1121. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +910 -0
  1122. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -0
  1123. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +1343 -0
  1124. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.d.ts +21 -0
  1125. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.d.ts.map +1 -0
  1126. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.js +15 -0
  1127. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +135 -0
  1128. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -0
  1129. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +133 -0
  1130. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +24 -0
  1131. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
  1132. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.js +0 -0
  1133. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +66 -0
  1134. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -0
  1135. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +157 -0
  1136. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts +61 -0
  1137. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -0
  1138. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.js +72 -0
  1139. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +98 -0
  1140. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -0
  1141. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +137 -0
  1142. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts +28 -0
  1143. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
  1144. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.js +43 -0
  1145. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts +47 -0
  1146. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -0
  1147. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +94 -0
  1148. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +40 -0
  1149. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
  1150. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.js +403 -0
  1151. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +102 -0
  1152. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -0
  1153. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +109 -0
  1154. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts +22 -0
  1155. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +1 -0
  1156. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js +24 -0
  1157. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts +17 -0
  1158. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts.map +1 -0
  1159. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js +20 -0
  1160. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts +66 -0
  1161. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -0
  1162. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +288 -0
  1163. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +17 -0
  1164. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -0
  1165. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.js +16 -0
  1166. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts +18 -0
  1167. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts.map +1 -0
  1168. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +39 -0
  1169. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts +18 -0
  1170. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts.map +1 -0
  1171. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.js +22 -0
  1172. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +132 -0
  1173. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
  1174. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +468 -0
  1175. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +40 -0
  1176. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -0
  1177. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +197 -0
  1178. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +42 -0
  1179. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -0
  1180. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.js +0 -0
  1181. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +16 -0
  1182. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -0
  1183. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +469 -0
  1184. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +29 -0
  1185. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
  1186. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +34 -0
  1187. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +31 -0
  1188. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -0
  1189. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +61 -0
  1190. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +156 -0
  1191. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -0
  1192. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +183 -0
  1193. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts +18 -0
  1194. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -0
  1195. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +151 -0
  1196. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.d.ts +18 -0
  1197. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +1 -0
  1198. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js +23 -0
  1199. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts +18 -0
  1200. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts.map +1 -0
  1201. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.js +22 -0
  1202. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +22 -0
  1203. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts.map +1 -0
  1204. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +19 -0
  1205. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts +18 -0
  1206. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts.map +1 -0
  1207. package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.js +22 -0
  1208. package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts +22 -0
  1209. package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts.map +1 -0
  1210. package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.js +53 -0
  1211. package/static/devtools/third_party/puppeteer/puppeteer-tsconfig.json +58 -0
  1212. package/static/devtools/third_party/puppeteer/puppeteer.js +1 -0
  1213. package/static/devtools/third_party/wasmparser/package/dist/esm/WasmDis.js +1595 -0
  1214. package/static/devtools/third_party/wasmparser/package/dist/esm/WasmParser.js +3120 -0
  1215. package/static/devtools/third_party/wasmparser/wasmparser-tsconfig.json +9 -0
  1216. package/static/devtools/timeline/timeline-legacy.js +1 -0
  1217. package/static/devtools/timeline/timeline-meta.js +1 -0
  1218. package/static/devtools/timeline/timeline.js +1 -0
  1219. package/static/devtools/timeline/timeline_module.js +1 -0
  1220. package/static/devtools/timeline_model/timeline_model-legacy.js +1 -0
  1221. package/static/devtools/timeline_model/timeline_model.js +1 -0
  1222. package/static/devtools/timeline_model/timeline_model_module.js +0 -0
  1223. package/static/devtools/toolbox.html +20 -0
  1224. package/static/devtools/toolbox.js +1 -0
  1225. package/static/devtools/toolbox_bootstrap/toolbox_bootstrap.js +1 -0
  1226. package/static/devtools/ui/components/components.js +378 -0
  1227. package/static/devtools/ui/ui-legacy.js +1 -0
  1228. package/static/devtools/ui/ui.js +3 -0
  1229. package/static/devtools/ui/utils/utils.js +1 -0
  1230. package/static/devtools/wasmparser_worker/wasmparser_worker-entrypoint.js +1 -0
  1231. package/static/devtools/wasmparser_worker/wasmparser_worker.js +1 -0
  1232. package/static/devtools/web_audio/graph_visualizer/graph_visualizer.js +1 -0
  1233. package/static/devtools/web_audio/web_audio-legacy.js +1 -0
  1234. package/static/devtools/web_audio/web_audio-meta.js +1 -0
  1235. package/static/devtools/web_audio/web_audio.js +23 -0
  1236. package/static/devtools/web_audio/web_audio_module.js +1 -0
  1237. package/static/devtools/webauthn/webauthn-legacy.js +1 -0
  1238. package/static/devtools/webauthn/webauthn-meta.js +1 -0
  1239. package/static/devtools/webauthn/webauthn.js +6 -0
  1240. package/static/devtools/webauthn/webauthn_module.js +1 -0
  1241. package/static/devtools/worker_app.html +20 -0
  1242. package/static/devtools/worker_app.js +1 -0
  1243. package/static/devtools/worker_main/worker_main-legacy.js +1 -0
  1244. package/static/devtools/worker_main/worker_main.js +1 -0
  1245. package/static/devtools/worker_service/worker_service.js +1 -0
  1246. package/static/devtools/workspace/workspace-legacy.js +1 -0
  1247. package/static/devtools/workspace/workspace.js +1 -0
  1248. package/static/devtools/workspace_diff/workspace_diff-legacy.js +1 -0
  1249. package/static/devtools/workspace_diff/workspace_diff.js +1 -0
  1250. package/static/devtools/workspace_diff/workspace_diff_module.js +0 -0
  1251. package/static/docs/swagger.json +2337 -279
  1252. package/static/function/client.js +1037 -992
  1253. package/build/routes/chromium/http/json-new.js +0 -23
  1254. package/build/routes/chromium/http/json-version-get.response.json +0 -37
  1255. package/build/routes/chromium/utils/cdp.d.ts +0 -2
  1256. package/build/routes/chromium/utils/cdp.js +0 -14
  1257. package/build/routes/chromium/ws/cdp-chromium.js +0 -10
  1258. package/src/routes/chromium/http/json-list.ts +0 -50
  1259. package/src/routes/chromium/utils/cdp.ts +0 -19
  1260. package/build/routes/{chromium/http/content-post.query.json → chrome/http/content.post.query.json} +0 -0
  1261. package/build/routes/{chromium/http/content-post.response.json → chrome/http/content.post.response.json} +0 -0
  1262. package/build/routes/{chromium/http/download-post.body.json → chrome/http/download.post.body.json} +0 -0
  1263. package/build/routes/{chromium/http/download-post.query.json → chrome/http/download.post.query.json} +0 -0
  1264. package/build/routes/{chromium/http/download-post.response.json → chrome/http/download.post.response.json} +0 -0
  1265. package/build/routes/{chromium/http/function-post.body.json → chrome/http/function.post.body.json} +0 -0
  1266. package/build/routes/{chromium/http/function-post.query.json → chrome/http/function.post.query.json} +0 -0
  1267. package/build/routes/{chromium/http/function-post.response.json → chrome/http/function.post.response.json} +0 -0
  1268. package/build/routes/{chromium/http/json-list.response.json → chrome/http/json-list.get.response.json} +0 -0
  1269. package/build/routes/{chromium/http/json-new.response.json → chrome/http/json-new.put.response.json} +0 -0
  1270. package/build/routes/{chromium/http/json-protocol-get.response.json → chrome/http/json-protocol.get.response.json} +0 -0
  1271. package/build/routes/{chromium/http/pdf-post.query.json → chrome/http/pdf.post.query.json} +0 -0
  1272. package/build/routes/{chromium/http/pdf-post.response.json → chrome/http/pdf.post.response.json} +0 -0
  1273. package/build/routes/{chromium/http/performance.body.json → chrome/http/performance.post.body.json} +0 -0
  1274. package/build/routes/{chromium/http/performance.query.json → chrome/http/performance.post.query.json} +0 -0
  1275. package/build/routes/{chromium/http/performance.response.json → chrome/http/performance.post.response.json} +0 -0
  1276. package/build/routes/{chromium/http/scrape-post.query.json → chrome/http/scrape.post.query.json} +0 -0
  1277. package/build/routes/{chromium/http/scrape-post.response.json → chrome/http/scrape.post.response.json} +0 -0
  1278. package/build/routes/{chromium/http/screenshot-post.query.json → chrome/http/screenshot.post.query.json} +0 -0
  1279. package/build/routes/{chromium/http/screenshot-post.response.json → chrome/http/screenshot.post.response.json} +0 -0
  1280. package/build/routes/{chromium/utils/performance/child.d.ts → chrome/tests/content.spec.d.ts} +0 -0
  1281. package/build/routes/{chromium/utils/performance/types.js → chrome/tests/download.spec.d.ts} +0 -0
  1282. package/build/routes/{chromium/ws/cdp-chromium.query.json → chrome/ws/browser.query.json} +0 -0
  1283. package/build/routes/{chromium/ws/playwright-chromium.query.json → chrome/ws/playwright.query.json} +0 -0
  1284. package/build/routes/{firefox/ws/playwright-firefox.query.json → chromium/ws/playwright.query.json} +0 -0
  1285. package/build/routes/{webkit/ws/playwright-webkit.query.json → firefox/ws/playwright.query.json} +0 -0
  1286. package/build/routes/management/http/{config-get.d.ts → config.get.d.ts} +0 -0
  1287. package/build/routes/management/http/{config-get.js → config.get.js} +0 -0
  1288. package/build/routes/management/http/{config-get.response.json → config.get.response.json} +0 -0
  1289. package/build/routes/management/http/{metrics-total-get.d.ts → metrics-total.get.d.ts} +0 -0
  1290. package/build/routes/management/http/{metrics-total-get.js → metrics-total.get.js} +0 -0
  1291. package/build/routes/management/http/{metrics-total-get.response.json → metrics-total.get.response.json} +0 -0
  1292. package/build/routes/management/http/{metrics-get.d.ts → metrics.get.d.ts} +0 -0
  1293. package/build/routes/management/http/{metrics-get.js → metrics.get.js} +0 -0
  1294. package/build/routes/management/http/{metrics-get.response.json → metrics.get.response.json} +0 -0
  1295. package/build/routes/management/http/{sessions-get.d.ts → sessions.get.d.ts} +0 -0
  1296. package/build/routes/management/http/{sessions-get.js → sessions.get.js} +0 -0
  1297. package/build/routes/management/http/{static-get.d.ts → static.get.d.ts} +0 -0
  1298. package/build/{routes/chromium/http/json-protocol-get.d.ts → shared/json-protocol.http.d.ts} +1 -1
  1299. package/build/{routes/chromium/http/json-version-get.d.ts → shared/json-version.http.d.ts} +1 -1
  1300. /package/build/{routes/chromium → shared}/utils/function/client.d.ts +0 -0
  1301. /package/build/{routes/chromium → shared}/utils/function/client.js +0 -0
  1302. /package/build/{routes/chromium → shared}/utils/function/handler.d.ts +0 -0
  1303. /package/build/{routes/chromium → shared}/utils/function/handler.js +0 -0
  1304. /package/build/{routes/chromium → shared}/utils/performance/child.js +0 -0
  1305. /package/build/{routes/chromium → shared}/utils/performance/main.d.ts +0 -0
  1306. /package/build/{routes/chromium → shared}/utils/performance/types.d.ts +0 -0
  1307. /package/src/routes/management/http/{config-get.ts → config.get.ts} +0 -0
  1308. /package/src/routes/management/http/{metrics-total-get.ts → metrics-total.get.ts} +0 -0
  1309. /package/src/routes/management/http/{metrics-get.ts → metrics.get.ts} +0 -0
  1310. /package/src/routes/management/http/{sessions-get.ts → sessions.get.ts} +0 -0
  1311. /package/src/{routes/chromium → shared}/utils/function/client.ts +0 -0
  1312. /package/src/{routes/chromium → shared}/utils/performance/child.ts +0 -0
  1313. /package/src/{routes/chromium → shared}/utils/performance/types.ts +0 -0
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true
4
+ },
5
+ "files": [
6
+ "package/lit-html.js",
7
+ "package/directives/class-map.js",
8
+ "package/directives/if-defined.js",
9
+ "package/directives/style-map.js",
10
+ "package/directives/repeat.js",
11
+ "package/lib/template-result.js",
12
+ "package/lib/default-template-processor.js",
13
+ "package/lib/directive.js",
14
+ "package/lib/dom.js",
15
+ "package/lib/part.js",
16
+ "package/lib/parts.js",
17
+ "package/lib/render.js",
18
+ "package/lib/template-factory.js",
19
+ "package/lib/template-instance.js",
20
+ "package/lib/template.js"
21
+ ]
22
+ }
@@ -0,0 +1,120 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt
6
+ * The complete set of authors may be found at
7
+ * http://polymer.github.io/AUTHORS.txt
8
+ * The complete set of contributors may be found at
9
+ * http://polymer.github.io/CONTRIBUTORS.txt
10
+ * Code distributed by Google as part of the polymer project is also
11
+ * subject to an additional IP rights grant found at
12
+ * http://polymer.github.io/PATENTS.txt
13
+ */
14
+ const e=new WeakMap,t=t=>(...s)=>{const n=t(...s);return e.set(n,!0),n},s=t=>"function"==typeof t&&e.has(t),n="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,i=(e,t,s=null,n=null)=>{for(;t!==s;){const s=t.nextSibling;e.insertBefore(t,n),t=s}},o=(e,t,s=null)=>{for(;t!==s;){const s=t.nextSibling;e.removeChild(t),t=s}},r={},l={},a=`{{lit-${String(Math.random()).slice(2)}}}`,c=`\x3c!--${a}--\x3e`,h=new RegExp(`${a}|${c}`);class d{constructor(e,t){this.parts=[],this.element=t;const s=[],n=[],i=document.createTreeWalker(t.content,133,null,!1);let o=0,r=-1,l=0;const{strings:c,values:{length:d}}=e;for(;l<d;){const e=i.nextNode();if(null!==e){if(r++,1===e.nodeType){if(e.hasAttributes()){const t=e.attributes,{length:s}=t;let n=0;for(let e=0;e<s;e++)u(t[e].name,"$lit$")&&n++;for(;n-- >0;){const t=c[l],s=f.exec(t)[2],n=s.toLowerCase()+"$lit$",i=e.getAttribute(n);e.removeAttribute(n);const o=i.split(h);this.parts.push({type:"attribute",index:r,name:s,strings:o}),l+=o.length-1}}"TEMPLATE"===e.tagName&&(n.push(e),i.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(a)>=0){const n=e.parentNode,i=t.split(h),o=i.length-1;for(let t=0;t<o;t++){let s,o=i[t];if(""===o)s=m();else{const e=f.exec(o);null!==e&&u(e[2],"$lit$")&&(o=o.slice(0,e.index)+e[1]+e[2].slice(0,-"$lit$".length)+e[3]),s=document.createTextNode(o)}n.insertBefore(s,e),this.parts.push({type:"node",index:++r})}""===i[o]?(n.insertBefore(m(),e),s.push(e)):e.data=i[o],l+=o}}else if(8===e.nodeType)if(e.data===a){const t=e.parentNode;null!==e.previousSibling&&r!==o||(r++,t.insertBefore(m(),e)),o=r,this.parts.push({type:"node",index:r}),null===e.nextSibling?e.data="":(s.push(e),r--),l++}else{let t=-1;for(;-1!==(t=e.data.indexOf(a,t+1));)this.parts.push({type:"node",index:-1}),l++}}else i.currentNode=n.pop()}for(const e of s)e.parentNode.removeChild(e)}}const u=(e,t)=>{const s=e.length-t.length;return s>=0&&e.slice(s)===t},p=e=>-1!==e.index,m=()=>document.createComment(""),f=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
15
+ /**
16
+ * @license
17
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
18
+ * This code may only be used under the BSD style license found at
19
+ * http://polymer.github.io/LICENSE.txt
20
+ * The complete set of authors may be found at
21
+ * http://polymer.github.io/AUTHORS.txt
22
+ * The complete set of contributors may be found at
23
+ * http://polymer.github.io/CONTRIBUTORS.txt
24
+ * Code distributed by Google as part of the polymer project is also
25
+ * subject to an additional IP rights grant found at
26
+ * http://polymer.github.io/PATENTS.txt
27
+ */
28
+ class g{constructor(e,t,s){this.__parts=[],this.template=e,this.processor=t,this.options=s}update(e){let t=0;for(const s of this.__parts)void 0!==s&&s.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=n?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],s=this.template.parts,i=document.createTreeWalker(e,133,null,!1);let o,r=0,l=0,a=i.nextNode();for(;r<s.length;)if(o=s[r],p(o)){for(;l<o.index;)l++,"TEMPLATE"===a.nodeName&&(t.push(a),i.currentNode=a.content),null===(a=i.nextNode())&&(i.currentNode=t.pop(),a=i.nextNode());if("node"===o.type){const e=this.processor.handleTextExpression(this.options);e.insertAfterNode(a.previousSibling),this.__parts.push(e)}else this.__parts.push(...this.processor.handleAttributeExpressions(a,o.name,o.strings,this.options));r++}else this.__parts.push(void 0),r++;return n&&(document.adoptNode(e),customElements.upgrade(e)),e}}
29
+ /**
30
+ * @license
31
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
32
+ * This code may only be used under the BSD style license found at
33
+ * http://polymer.github.io/LICENSE.txt
34
+ * The complete set of authors may be found at
35
+ * http://polymer.github.io/AUTHORS.txt
36
+ * The complete set of contributors may be found at
37
+ * http://polymer.github.io/CONTRIBUTORS.txt
38
+ * Code distributed by Google as part of the polymer project is also
39
+ * subject to an additional IP rights grant found at
40
+ * http://polymer.github.io/PATENTS.txt
41
+ */const _=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),v=` ${a} `;class x{constructor(e,t,s,n){this.strings=e,this.values=t,this.type=s,this.processor=n}getHTML(){const e=this.strings.length-1;let t="",s=!1;for(let n=0;n<e;n++){const e=this.strings[n],i=e.lastIndexOf("\x3c!--");s=(i>-1||s)&&-1===e.indexOf("--\x3e",i+1);const o=f.exec(e);t+=null===o?e+(s?v:c):e.substr(0,o.index)+o[1]+o[2]+"$lit$"+o[3]+a}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");let t=this.getHTML();return void 0!==_&&(t=_.createHTML(t)),e.innerHTML=t,e}}class N extends x{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const e=super.getTemplateElement(),t=e.content,s=t.firstChild;return t.removeChild(s),i(t,s.firstChild),e}}
42
+ /**
43
+ * @license
44
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
45
+ * This code may only be used under the BSD style license found at
46
+ * http://polymer.github.io/LICENSE.txt
47
+ * The complete set of authors may be found at
48
+ * http://polymer.github.io/AUTHORS.txt
49
+ * The complete set of contributors may be found at
50
+ * http://polymer.github.io/CONTRIBUTORS.txt
51
+ * Code distributed by Google as part of the polymer project is also
52
+ * subject to an additional IP rights grant found at
53
+ * http://polymer.github.io/PATENTS.txt
54
+ */const w=e=>null===e||!("object"==typeof e||"function"==typeof e),y=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class b{constructor(e,t,s){this.dirty=!0,this.element=e,this.name=t,this.strings=s,this.parts=[];for(let e=0;e<s.length-1;e++)this.parts[e]=this._createPart()}_createPart(){return new V(this)}_getValue(){const e=this.strings,t=e.length-1,s=this.parts;if(1===t&&""===e[0]&&""===e[1]){const e=s[0].value;if("symbol"==typeof e)return String(e);if("string"==typeof e||!y(e))return e}let n="";for(let i=0;i<t;i++){n+=e[i];const t=s[i];if(void 0!==t){const e=t.value;if(w(e)||!y(e))n+="string"==typeof e?e:String(e);else for(const t of e)n+="string"==typeof t?t:String(t)}}return n+=e[t],n}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class V{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===r||w(e)&&e===this.value||(this.value=e,s(e)||(this.committer.dirty=!0))}commit(){for(;s(this.value);){const e=this.value;this.value=r,e(this)}this.value!==r&&this.committer.commit()}}class E{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(m()),this.endNode=e.appendChild(m())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=m()),e.__insert(this.endNode=m())}insertAfterPart(e){e.__insert(this.startNode=m()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null===this.startNode.parentNode)return;for(;s(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=r,e(this)}const e=this.__pendingValue;e!==r&&(w(e)?e!==this.value&&this.__commitText(e):e instanceof x?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):y(e)?this.__commitIterable(e):e===l?(this.value=l,this.clear()):this.__commitText(e))}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){const t=this.startNode.nextSibling,s="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=s:this.__commitNode(document.createTextNode(s)),this.value=e}__commitTemplateResult(e){const t=this.options.templateFactory(e);if(this.value instanceof g&&this.value.template===t)this.value.update(e.values);else{const s=new g(t,e.processor,this.options),n=s._clone();s.update(e.values),this.__commitNode(n),this.value=s}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());const t=this.value;let s,n=0;for(const i of e)s=t[n],void 0===s&&(s=new E(this.options),t.push(s),0===n?s.appendIntoPart(this):s.insertAfterPart(t[n-1])),s.setValue(i),s.commit(),n++;n<t.length&&(t.length=n,this.clear(s&&s.endNode))}clear(e=this.startNode){o(this.startNode.parentNode,e.nextSibling,this.endNode)}}class T{constructor(e,t,s){if(this.value=void 0,this.__pendingValue=void 0,2!==s.length||""!==s[0]||""!==s[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=s}setValue(e){this.__pendingValue=e}commit(){for(;s(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=r,e(this)}if(this.__pendingValue===r)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=r}}class A extends b{constructor(e,t,s){super(e,t,s),this.single=2===s.length&&""===s[0]&&""===s[1]}_createPart(){return new M(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class M extends V{}let S=!1;(()=>{try{const e={get capture(){return S=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class ${constructor(e,t,s){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=s,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;s(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=r,e(this)}if(this.__pendingValue===r)return;const e=this.__pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),i=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),i&&(this.__options=L(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=r}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const L=e=>e&&(S?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)
55
+ /**
56
+ * @license
57
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
58
+ * This code may only be used under the BSD style license found at
59
+ * http://polymer.github.io/LICENSE.txt
60
+ * The complete set of authors may be found at
61
+ * http://polymer.github.io/AUTHORS.txt
62
+ * The complete set of contributors may be found at
63
+ * http://polymer.github.io/CONTRIBUTORS.txt
64
+ * Code distributed by Google as part of the polymer project is also
65
+ * subject to an additional IP rights grant found at
66
+ * http://polymer.github.io/PATENTS.txt
67
+ */;class k{handleAttributeExpressions(e,t,s,n){const i=t[0];if("."===i){return new A(e,t.slice(1),s).parts}if("@"===i)return[new $(e,t.slice(1),n.eventContext)];if("?"===i)return[new T(e,t.slice(1),s)];return new b(e,t,s).parts}handleTextExpression(e){return new E(e)}}const C=new k;
68
+ /**
69
+ * @license
70
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
71
+ * This code may only be used under the BSD style license found at
72
+ * http://polymer.github.io/LICENSE.txt
73
+ * The complete set of authors may be found at
74
+ * http://polymer.github.io/AUTHORS.txt
75
+ * The complete set of contributors may be found at
76
+ * http://polymer.github.io/CONTRIBUTORS.txt
77
+ * Code distributed by Google as part of the polymer project is also
78
+ * subject to an additional IP rights grant found at
79
+ * http://polymer.github.io/PATENTS.txt
80
+ */function H(e){let t=P.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},P.set(e.type,t));let s=t.stringsArray.get(e.strings);if(void 0!==s)return s;const n=e.strings.join(a);return s=t.keyString.get(n),void 0===s&&(s=new d(e,e.getTemplateElement()),t.keyString.set(n,s)),t.stringsArray.set(e.strings,s),s}const P=new Map,W=new WeakMap,B=(e,t,s)=>{let n=W.get(t);void 0===n&&(o(t,t.firstChild),W.set(t,n=new E(Object.assign({templateFactory:H},s))),n.appendInto(t)),n.setValue(e),n.commit()};
81
+ /**
82
+ * @license
83
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
84
+ * This code may only be used under the BSD style license found at
85
+ * http://polymer.github.io/LICENSE.txt
86
+ * The complete set of authors may be found at
87
+ * http://polymer.github.io/AUTHORS.txt
88
+ * The complete set of contributors may be found at
89
+ * http://polymer.github.io/CONTRIBUTORS.txt
90
+ * Code distributed by Google as part of the polymer project is also
91
+ * subject to an additional IP rights grant found at
92
+ * http://polymer.github.io/PATENTS.txt
93
+ */
94
+ /**
95
+ * @license
96
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
97
+ * This code may only be used under the BSD style license found at
98
+ * http://polymer.github.io/LICENSE.txt
99
+ * The complete set of authors may be found at
100
+ * http://polymer.github.io/AUTHORS.txt
101
+ * The complete set of contributors may be found at
102
+ * http://polymer.github.io/CONTRIBUTORS.txt
103
+ * Code distributed by Google as part of the polymer project is also
104
+ * subject to an additional IP rights grant found at
105
+ * http://polymer.github.io/PATENTS.txt
106
+ */
107
+ "undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.3.0");const O=(e,...t)=>new x(e,t,"html",C),I=(e,...t)=>new N(e,t,"svg",C)
108
+ /**
109
+ * @license
110
+ * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
111
+ * This code may only be used under the BSD style license found at
112
+ * http://polymer.github.io/LICENSE.txt
113
+ * The complete set of authors may be found at
114
+ * http://polymer.github.io/AUTHORS.txt
115
+ * The complete set of contributors may be found at
116
+ * http://polymer.github.io/CONTRIBUTORS.txt
117
+ * Code distributed by Google as part of the polymer project is also
118
+ * subject to an additional IP rights grant found at
119
+ * http://polymer.github.io/PATENTS.txt
120
+ */;class j{constructor(e){this.classes=new Set,this.changed=!1,this.element=e;const t=(e.getAttribute("class")||"").split(/\s+/);for(const e of t)this.classes.add(e)}add(e){this.classes.add(e),this.changed=!0}remove(e){this.classes.delete(e),this.changed=!0}commit(){if(this.changed){let e="";this.classes.forEach((t=>e+=t+" ")),this.element.setAttribute("class",e)}}}const F=new WeakMap,R=t((e=>t=>{if(!(t instanceof V)||t instanceof M||"class"!==t.committer.name||t.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");const{committer:s}=t,{element:n}=s;let i=F.get(t);void 0===i&&(n.setAttribute("class",s.strings.join(" ")),F.set(t,i=new Set));const o=n.classList||new j(n);i.forEach((t=>{t in e||(o.remove(t),i.delete(t))}));for(const t in e){const s=e[t];s!=i.has(t)&&(s?(o.add(t),i.add(t)):(o.remove(t),i.delete(t)))}"function"==typeof o.commit&&o.commit()})),D=new WeakMap,z=t((e=>t=>{const s=D.get(t);if(void 0===e&&t instanceof V){if(void 0!==s||!D.has(t)){const e=t.committer.name;t.committer.element.removeAttribute(e)}}else e!==s&&t.setValue(e);D.set(t,e)})),q=new WeakMap,G=t((e=>t=>{if(!(t instanceof V)||t instanceof M||"style"!==t.committer.name||t.committer.parts.length>1)throw new Error("The `styleMap` directive must be used in the style attribute and must be the only part in the attribute.");const{committer:s}=t,{style:n}=s.element;let i=q.get(t);void 0===i&&(n.cssText=s.strings.join(" "),q.set(t,i=new Set)),i.forEach((t=>{t in e||(i.delete(t),-1===t.indexOf("-")?n[t]=null:n.removeProperty(t))}));for(const t in e)i.add(t),-1===t.indexOf("-")?n[t]=e[t]:n.setProperty(t,e[t])})),J=t((e=>t=>{let s;if(t instanceof $||t instanceof E)throw new Error("The `live` directive is not allowed on text or event bindings");if(t instanceof T)K(t.strings),s=t.element.hasAttribute(t.name),t.value=s;else{const{element:n,name:i,strings:o}=t.committer;if(K(o),t instanceof M){if(s=n[i],s===e)return}else t instanceof V&&(s=n.getAttribute(i));if(s===String(e))return}t.setValue(e)})),K=e=>{if(2!==e.length||""!==e[0]||""!==e[1])throw new Error("`live` bindings can only contain a single expression")},Q=(e,t)=>{const s=e.startNode.parentNode,n=void 0===t?e.endNode:t.startNode,i=s.insertBefore(m(),n);s.insertBefore(m(),n);const o=new E(e.options);return o.insertAfterNode(i),o},U=(e,t)=>(e.setValue(t),e.commit(),e),X=(e,t,s)=>{const n=e.startNode.parentNode,o=s?s.startNode:e.endNode,r=t.endNode.nextSibling;r!==o&&i(n,t.startNode,r,o)},Y=e=>{o(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},Z=(e,t,s)=>{const n=new Map;for(let i=t;i<=s;i++)n.set(e[i],i);return n},ee=new WeakMap,te=new WeakMap,se=t(((e,t,s)=>{let n;return void 0===s?s=t:void 0!==t&&(n=t),t=>{if(!(t instanceof E))throw new Error("repeat can only be used in text bindings");const i=ee.get(t)||[],o=te.get(t)||[],r=[],l=[],a=[];let c,h,d=0;for(const t of e)a[d]=n?n(t,d):d,l[d]=s(t,d),d++;let u=0,p=i.length-1,m=0,f=l.length-1;for(;u<=p&&m<=f;)if(null===i[u])u++;else if(null===i[p])p--;else if(o[u]===a[m])r[m]=U(i[u],l[m]),u++,m++;else if(o[p]===a[f])r[f]=U(i[p],l[f]),p--,f--;else if(o[u]===a[f])r[f]=U(i[u],l[f]),X(t,i[u],r[f+1]),u++,f--;else if(o[p]===a[m])r[m]=U(i[p],l[m]),X(t,i[p],i[u]),p--,m++;else if(void 0===c&&(c=Z(a,m,f),h=Z(o,u,p)),c.has(o[u]))if(c.has(o[p])){const e=h.get(a[m]),s=void 0!==e?i[e]:null;if(null===s){const e=Q(t,i[u]);U(e,l[m]),r[m]=e}else r[m]=U(s,l[m]),X(t,s,i[u]),i[e]=null;m++}else Y(i[p]),p--;else Y(i[u]),u++;for(;m<=f;){const e=Q(t,r[f+1]);U(e,l[m]),r[m++]=e}for(;u<=p;){const e=i[u++];null!==e&&Y(e)}ee.set(t,r),te.set(t,a)}}));var ne=Object.freeze({__proto__:null,classMap:R,ifDefined:z,styleMap:G,live:J,repeat:se});export{b as AttributeCommitter,V as AttributePart,T as BooleanAttributePart,k as DefaultTemplateProcessor,ne as Directives,$ as EventPart,E as NodePart,A as PropertyCommitter,M as PropertyPart,N as SVGTemplateResult,d as Template,g as TemplateInstance,x as TemplateResult,m as createMarker,C as defaultTemplateProcessor,t as directive,O as html,s as isDirective,y as isIterable,w as isPrimitive,p as isTemplatePartActive,r as noChange,l as nothing,W as parts,o as removeNodes,B as render,i as reparentNodes,I as svg,P as templateCaches,H as templateFactory};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt
6
+ * The complete set of authors may be found at
7
+ * http://polymer.github.io/AUTHORS.txt
8
+ * The complete set of contributors may be found at
9
+ * http://polymer.github.io/CONTRIBUTORS.txt
10
+ * Code distributed by Google as part of the polymer project is also
11
+ * subject to an additional IP rights grant found at
12
+ * http://polymer.github.io/PATENTS.txt
13
+ */
14
+ import { Part } from '../lit-html.js';
15
+ export interface ClassInfo {
16
+ readonly [name: string]: string | boolean | number;
17
+ }
18
+ /**
19
+ * A directive that applies CSS classes. This must be used in the `class`
20
+ * attribute and must be the only part used in the attribute. It takes each
21
+ * property in the `classInfo` argument and adds the property name to the
22
+ * element's `class` if the property value is truthy; if the property value is
23
+ * falsey, the property name is removed from the element's `class`. For example
24
+ * `{foo: bar}` applies the class `foo` if the value of `bar` is truthy.
25
+ * @param classInfo {ClassInfo}
26
+ */
27
+ export declare const classMap: (classInfo: ClassInfo) => (part: Part) => void;
28
+ //# sourceMappingURL=class-map.d.ts.map
@@ -0,0 +1,101 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt
6
+ * The complete set of authors may be found at
7
+ * http://polymer.github.io/AUTHORS.txt
8
+ * The complete set of contributors may be found at
9
+ * http://polymer.github.io/CONTRIBUTORS.txt
10
+ * Code distributed by Google as part of the polymer project is also
11
+ * subject to an additional IP rights grant found at
12
+ * http://polymer.github.io/PATENTS.txt
13
+ */
14
+ import { AttributePart, directive, PropertyPart } from '../lit-html.js';
15
+ // IE11 doesn't support classList on SVG elements, so we emulate it with a Set
16
+ class ClassList {
17
+ constructor(element) {
18
+ this.classes = new Set();
19
+ this.changed = false;
20
+ this.element = element;
21
+ const classList = (element.getAttribute('class') || '').split(/\s+/);
22
+ for (const cls of classList) {
23
+ this.classes.add(cls);
24
+ }
25
+ }
26
+ add(cls) {
27
+ this.classes.add(cls);
28
+ this.changed = true;
29
+ }
30
+ remove(cls) {
31
+ this.classes.delete(cls);
32
+ this.changed = true;
33
+ }
34
+ commit() {
35
+ if (this.changed) {
36
+ let classString = '';
37
+ this.classes.forEach((cls) => classString += cls + ' ');
38
+ this.element.setAttribute('class', classString);
39
+ }
40
+ }
41
+ }
42
+ /**
43
+ * Stores the ClassInfo object applied to a given AttributePart.
44
+ * Used to unset existing values when a new ClassInfo object is applied.
45
+ */
46
+ const previousClassesCache = new WeakMap();
47
+ /**
48
+ * A directive that applies CSS classes. This must be used in the `class`
49
+ * attribute and must be the only part used in the attribute. It takes each
50
+ * property in the `classInfo` argument and adds the property name to the
51
+ * element's `class` if the property value is truthy; if the property value is
52
+ * falsey, the property name is removed from the element's `class`. For example
53
+ * `{foo: bar}` applies the class `foo` if the value of `bar` is truthy.
54
+ * @param classInfo {ClassInfo}
55
+ */
56
+ export const classMap = directive((classInfo) => (part) => {
57
+ if (!(part instanceof AttributePart) || (part instanceof PropertyPart) ||
58
+ part.committer.name !== 'class' || part.committer.parts.length > 1) {
59
+ throw new Error('The `classMap` directive must be used in the `class` attribute ' +
60
+ 'and must be the only part in the attribute.');
61
+ }
62
+ const { committer } = part;
63
+ const { element } = committer;
64
+ let previousClasses = previousClassesCache.get(part);
65
+ if (previousClasses === undefined) {
66
+ // Write static classes once
67
+ // Use setAttribute() because className isn't a string on SVG elements
68
+ element.setAttribute('class', committer.strings.join(' '));
69
+ previousClassesCache.set(part, previousClasses = new Set());
70
+ }
71
+ const classList = (element.classList || new ClassList(element));
72
+ // Remove old classes that no longer apply
73
+ // We use forEach() instead of for-of so that re don't require down-level
74
+ // iteration.
75
+ previousClasses.forEach((name) => {
76
+ if (!(name in classInfo)) {
77
+ classList.remove(name);
78
+ previousClasses.delete(name);
79
+ }
80
+ });
81
+ // Add or remove classes based on their classMap value
82
+ for (const name in classInfo) {
83
+ const value = classInfo[name];
84
+ if (value != previousClasses.has(name)) {
85
+ // We explicitly want a loose truthy check of `value` because it seems
86
+ // more convenient that '' and 0 are skipped.
87
+ if (value) {
88
+ classList.add(name);
89
+ previousClasses.add(name);
90
+ }
91
+ else {
92
+ classList.remove(name);
93
+ previousClasses.delete(name);
94
+ }
95
+ }
96
+ }
97
+ if (typeof classList.commit === 'function') {
98
+ classList.commit();
99
+ }
100
+ });
101
+ //# sourceMappingURL=class-map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-map.js","sourceRoot":"","sources":["../src/directives/class-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAC,aAAa,EAAE,SAAS,EAAQ,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5E,8EAA8E;AAC9E,MAAM,SAAS;IAKb,YAAY,OAAgB;QAH5B,YAAO,GAAgB,IAAI,GAAG,EAAE,CAAC;QACjC,YAAO,GAAG,KAAK,CAAC;QAGd,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,MAAM,SAAS,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrE,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE;YAC3B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SACvB;IACH,CAAC;IACD,GAAG,CAAC,GAAW;QACb,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,MAAM;QACJ,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,WAAW,GAAG,EAAE,CAAC;YACrB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC;YACxD,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;SACjD;IACH,CAAC;CACF;AAMD;;;GAGG;AACH,MAAM,oBAAoB,GAAG,IAAI,OAAO,EAAqB,CAAC;AAE9D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,CAAC,IAAU,EAAE,EAAE;IACzE,IAAI,CAAC,CAAC,IAAI,YAAY,aAAa,CAAC,IAAI,CAAC,IAAI,YAAY,YAAY,CAAC;QAClE,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACtE,MAAM,IAAI,KAAK,CACX,iEAAiE;YACjE,6CAA6C,CAAC,CAAC;KACpD;IAED,MAAM,EAAC,SAAS,EAAC,GAAG,IAAI,CAAC;IACzB,MAAM,EAAC,OAAO,EAAC,GAAG,SAAS,CAAC;IAE5B,IAAI,eAAe,GAAG,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrD,IAAI,eAAe,KAAK,SAAS,EAAE;QACjC,4BAA4B;QAC5B,sEAAsE;QACtE,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC3D,oBAAoB,CAAC,GAAG,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC;KAC7D;IAED,MAAM,SAAS,GACX,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC,CAA6B,CAAC;IAE9E,0CAA0C;IAC1C,yEAAyE;IACzE,aAAa;IACb,eAAe,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC/B,IAAI,CAAC,CAAC,IAAI,IAAI,SAAS,CAAC,EAAE;YACxB,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACvB,eAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;SAC/B;IACH,CAAC,CAAC,CAAC;IAEH,sDAAsD;IACtD,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE;QAC5B,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;QAC9B,IAAI,KAAK,IAAI,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YACtC,sEAAsE;YACtE,6CAA6C;YAC7C,IAAI,KAAK,EAAE;gBACT,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACpB,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;aAC3B;iBAAM;gBACL,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACvB,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;aAC9B;SACF;KACF;IACD,IAAI,OAAQ,SAAuB,CAAC,MAAM,KAAK,UAAU,EAAE;QACxD,SAAuB,CAAC,MAAM,EAAE,CAAC;KACnC;AACH,CAAC,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\nimport {AttributePart, directive, Part, PropertyPart} from '../lit-html.js';\n\n// IE11 doesn't support classList on SVG elements, so we emulate it with a Set\nclass ClassList {\n element: Element;\n classes: Set<string> = new Set();\n changed = false;\n\n constructor(element: Element) {\n this.element = element;\n const classList = (element.getAttribute('class') || '').split(/\\s+/);\n for (const cls of classList) {\n this.classes.add(cls);\n }\n }\n add(cls: string) {\n this.classes.add(cls);\n this.changed = true;\n }\n\n remove(cls: string) {\n this.classes.delete(cls);\n this.changed = true;\n }\n\n commit() {\n if (this.changed) {\n let classString = '';\n this.classes.forEach((cls) => classString += cls + ' ');\n this.element.setAttribute('class', classString);\n }\n }\n}\n\nexport interface ClassInfo {\n readonly [name: string]: string|boolean|number;\n}\n\n/**\n * Stores the ClassInfo object applied to a given AttributePart.\n * Used to unset existing values when a new ClassInfo object is applied.\n */\nconst previousClassesCache = new WeakMap<Part, Set<string>>();\n\n/**\n * A directive that applies CSS classes. This must be used in the `class`\n * attribute and must be the only part used in the attribute. It takes each\n * property in the `classInfo` argument and adds the property name to the\n * element's `class` if the property value is truthy; if the property value is\n * falsey, the property name is removed from the element's `class`. For example\n * `{foo: bar}` applies the class `foo` if the value of `bar` is truthy.\n * @param classInfo {ClassInfo}\n */\nexport const classMap = directive((classInfo: ClassInfo) => (part: Part) => {\n if (!(part instanceof AttributePart) || (part instanceof PropertyPart) ||\n part.committer.name !== 'class' || part.committer.parts.length > 1) {\n throw new Error(\n 'The `classMap` directive must be used in the `class` attribute ' +\n 'and must be the only part in the attribute.');\n }\n\n const {committer} = part;\n const {element} = committer;\n\n let previousClasses = previousClassesCache.get(part);\n if (previousClasses === undefined) {\n // Write static classes once\n // Use setAttribute() because className isn't a string on SVG elements\n element.setAttribute('class', committer.strings.join(' '));\n previousClassesCache.set(part, previousClasses = new Set());\n }\n\n const classList =\n (element.classList || new ClassList(element)) as DOMTokenList | ClassList;\n\n // Remove old classes that no longer apply\n // We use forEach() instead of for-of so that re don't require down-level\n // iteration.\n previousClasses.forEach((name) => {\n if (!(name in classInfo)) {\n classList.remove(name);\n previousClasses!.delete(name);\n }\n });\n\n // Add or remove classes based on their classMap value\n for (const name in classInfo) {\n const value = classInfo[name];\n if (value != previousClasses.has(name)) {\n // We explicitly want a loose truthy check of `value` because it seems\n // more convenient that '' and 0 are skipped.\n if (value) {\n classList.add(name);\n previousClasses.add(name);\n } else {\n classList.remove(name);\n previousClasses.delete(name);\n }\n }\n }\n if (typeof (classList as ClassList).commit === 'function') {\n (classList as ClassList).commit();\n }\n});\n"]}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt
6
+ * The complete set of authors may be found at
7
+ * http://polymer.github.io/AUTHORS.txt
8
+ * The complete set of contributors may be found at
9
+ * http://polymer.github.io/CONTRIBUTORS.txt
10
+ * Code distributed by Google as part of the polymer project is also
11
+ * subject to an additional IP rights grant found at
12
+ * http://polymer.github.io/PATENTS.txt
13
+ */
14
+ import { Part } from '../lit-html.js';
15
+ /**
16
+ * For AttributeParts, sets the attribute if the value is defined and removes
17
+ * the attribute if the value is undefined.
18
+ *
19
+ * For other part types, this directive is a no-op.
20
+ */
21
+ export declare const ifDefined: (value: unknown) => (part: Part) => void;
22
+ //# sourceMappingURL=if-defined.d.ts.map
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt
6
+ * The complete set of authors may be found at
7
+ * http://polymer.github.io/AUTHORS.txt
8
+ * The complete set of contributors may be found at
9
+ * http://polymer.github.io/CONTRIBUTORS.txt
10
+ * Code distributed by Google as part of the polymer project is also
11
+ * subject to an additional IP rights grant found at
12
+ * http://polymer.github.io/PATENTS.txt
13
+ */
14
+ import { AttributePart, directive } from '../lit-html.js';
15
+ const previousValues = new WeakMap();
16
+ /**
17
+ * For AttributeParts, sets the attribute if the value is defined and removes
18
+ * the attribute if the value is undefined.
19
+ *
20
+ * For other part types, this directive is a no-op.
21
+ */
22
+ export const ifDefined = directive((value) => (part) => {
23
+ const previousValue = previousValues.get(part);
24
+ if (value === undefined && part instanceof AttributePart) {
25
+ // If the value is undefined, remove the attribute, but only if the value
26
+ // was previously defined.
27
+ if (previousValue !== undefined || !previousValues.has(part)) {
28
+ const name = part.committer.name;
29
+ part.committer.element.removeAttribute(name);
30
+ }
31
+ }
32
+ else if (value !== previousValue) {
33
+ part.setValue(value);
34
+ }
35
+ previousValues.set(part, value);
36
+ });
37
+ //# sourceMappingURL=if-defined.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"if-defined.js","sourceRoot":"","sources":["../src/directives/if-defined.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAC,aAAa,EAAE,SAAS,EAAO,MAAM,gBAAgB,CAAC;AAE9D,MAAM,cAAc,GAAG,IAAI,OAAO,EAAiB,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,IAAU,EAAE,EAAE;IACpE,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/C,IAAI,KAAK,KAAK,SAAS,IAAI,IAAI,YAAY,aAAa,EAAE;QACxD,yEAAyE;QACzE,0BAA0B;QAC1B,IAAI,aAAa,KAAK,SAAS,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAC5D,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACjC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SAC9C;KACF;SAAM,IAAI,KAAK,KAAK,aAAa,EAAE;QAClC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KACtB;IAED,cAAc,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\nimport {AttributePart, directive, Part} from '../lit-html.js';\n\nconst previousValues = new WeakMap<Part, unknown>();\n\n/**\n * For AttributeParts, sets the attribute if the value is defined and removes\n * the attribute if the value is undefined.\n *\n * For other part types, this directive is a no-op.\n */\nexport const ifDefined = directive((value: unknown) => (part: Part) => {\n const previousValue = previousValues.get(part);\n\n if (value === undefined && part instanceof AttributePart) {\n // If the value is undefined, remove the attribute, but only if the value\n // was previously defined.\n if (previousValue !== undefined || !previousValues.has(part)) {\n const name = part.committer.name;\n part.committer.element.removeAttribute(name);\n }\n } else if (value !== previousValue) {\n part.setValue(value);\n }\n\n previousValues.set(part, value);\n});\n"]}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt
6
+ * The complete set of authors may be found at
7
+ * http://polymer.github.io/AUTHORS.txt
8
+ * The complete set of contributors may be found at
9
+ * http://polymer.github.io/CONTRIBUTORS.txt
10
+ * Code distributed by Google as part of the polymer project is also
11
+ * subject to an additional IP rights grant found at
12
+ * http://polymer.github.io/PATENTS.txt
13
+ */
14
+ import { AttributePart, BooleanAttributePart, PropertyPart } from '../lit-html.js';
15
+ /**
16
+ * Checks binding values against live DOM values, instead of previously bound
17
+ * values, when determining whether to update the value.
18
+ *
19
+ * This is useful for cases where the DOM value may change from outside of
20
+ * lit-html, such as with a binding to an `<input>` element's `value` property,
21
+ * a content editable elements text, or to a custom element that changes it's
22
+ * own properties or attributes.
23
+ *
24
+ * In these cases if the DOM value changes, but the value set through lit-html
25
+ * bindings hasn't, lit-html won't know to update the DOM value and will leave
26
+ * it alone. If this is not what you want—if you want to overwrite the DOM
27
+ * value with the bound value no matter what—use the `live()` directive:
28
+ *
29
+ * html`<input .value=${live(x)}>`
30
+ *
31
+ * `live()` performs a strict equality check agains the live DOM value, and if
32
+ * the new value is equal to the live value, does nothing. This means that
33
+ * `live()` should not be used when the binding will cause a type conversion. If
34
+ * you use `live()` with an attribute binding, make sure that only strings are
35
+ * passed in, or the binding will update every render.
36
+ */
37
+ export declare const live: (value: unknown) => (part: AttributePart | BooleanAttributePart | PropertyPart) => void;
38
+ //# sourceMappingURL=live.d.ts.map
@@ -0,0 +1,73 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt
6
+ * The complete set of authors may be found at
7
+ * http://polymer.github.io/AUTHORS.txt
8
+ * The complete set of contributors may be found at
9
+ * http://polymer.github.io/CONTRIBUTORS.txt
10
+ * Code distributed by Google as part of the polymer project is also
11
+ * subject to an additional IP rights grant found at
12
+ * http://polymer.github.io/PATENTS.txt
13
+ */
14
+ import { AttributePart, BooleanAttributePart, directive, EventPart, NodePart, PropertyPart } from '../lit-html.js';
15
+ /**
16
+ * Checks binding values against live DOM values, instead of previously bound
17
+ * values, when determining whether to update the value.
18
+ *
19
+ * This is useful for cases where the DOM value may change from outside of
20
+ * lit-html, such as with a binding to an `<input>` element's `value` property,
21
+ * a content editable elements text, or to a custom element that changes it's
22
+ * own properties or attributes.
23
+ *
24
+ * In these cases if the DOM value changes, but the value set through lit-html
25
+ * bindings hasn't, lit-html won't know to update the DOM value and will leave
26
+ * it alone. If this is not what you want—if you want to overwrite the DOM
27
+ * value with the bound value no matter what—use the `live()` directive:
28
+ *
29
+ * html`<input .value=${live(x)}>`
30
+ *
31
+ * `live()` performs a strict equality check agains the live DOM value, and if
32
+ * the new value is equal to the live value, does nothing. This means that
33
+ * `live()` should not be used when the binding will cause a type conversion. If
34
+ * you use `live()` with an attribute binding, make sure that only strings are
35
+ * passed in, or the binding will update every render.
36
+ */
37
+ export const live = directive((value) => (part) => {
38
+ let previousValue;
39
+ if (part instanceof EventPart || part instanceof NodePart) {
40
+ throw new Error('The `live` directive is not allowed on text or event bindings');
41
+ }
42
+ if (part instanceof BooleanAttributePart) {
43
+ checkStrings(part.strings);
44
+ previousValue = part.element.hasAttribute(part.name);
45
+ // This is a hack needed because BooleanAttributePart doesn't have a
46
+ // committer and does its own dirty checking after directives
47
+ part.value = previousValue;
48
+ }
49
+ else {
50
+ const { element, name, strings } = part.committer;
51
+ checkStrings(strings);
52
+ if (part instanceof PropertyPart) {
53
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
54
+ previousValue = element[name];
55
+ if (previousValue === value) {
56
+ return;
57
+ }
58
+ }
59
+ else if (part instanceof AttributePart) {
60
+ previousValue = element.getAttribute(name);
61
+ }
62
+ if (previousValue === String(value)) {
63
+ return;
64
+ }
65
+ }
66
+ part.setValue(value);
67
+ });
68
+ const checkStrings = (strings) => {
69
+ if (strings.length !== 2 || strings[0] !== '' || strings[1] !== '') {
70
+ throw new Error('`live` bindings can only contain a single expression');
71
+ }
72
+ };
73
+ //# sourceMappingURL=live.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"live.js","sourceRoot":"","sources":["../src/directives/live.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAC,aAAa,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAEjH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,SAAS,CACzB,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,IACoB,EAAE,EAAE;IAC3C,IAAI,aAAsB,CAAC;IAC3B,IAAI,IAAI,YAAY,SAAS,IAAI,IAAI,YAAY,QAAQ,EAAE;QACzD,MAAM,IAAI,KAAK,CACX,+DAA+D,CAAC,CAAC;KACtE;IACD,IAAI,IAAI,YAAY,oBAAoB,EAAE;QACxC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3B,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,oEAAoE;QACpE,6DAA6D;QAC7D,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC;KAC5B;SAAM;QACL,MAAM,EAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAC,GAAG,IAAI,CAAC,SAAS,CAAC;QAChD,YAAY,CAAC,OAAO,CAAC,CAAC;QACtB,IAAI,IAAI,YAAY,YAAY,EAAE;YAChC,8DAA8D;YAC9D,aAAa,GAAI,OAAe,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,aAAa,KAAK,KAAK,EAAE;gBAC3B,OAAO;aACR;SACF;aAAM,IAAI,IAAI,YAAY,aAAa,EAAE;YACxC,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SAC5C;QACD,IAAI,aAAa,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE;YACnC,OAAO;SACR;KACF;IACD,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC;AAEP,MAAM,YAAY,GAAG,CAAC,OAA0B,EAAE,EAAE;IAClD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE;QAClE,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;KACzE;AACH,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\nimport {AttributePart, BooleanAttributePart, directive, EventPart, NodePart, PropertyPart} from '../lit-html.js';\n\n/**\n * Checks binding values against live DOM values, instead of previously bound\n * values, when determining whether to update the value.\n *\n * This is useful for cases where the DOM value may change from outside of\n * lit-html, such as with a binding to an `<input>` element's `value` property,\n * a content editable elements text, or to a custom element that changes it's\n * own properties or attributes.\n *\n * In these cases if the DOM value changes, but the value set through lit-html\n * bindings hasn't, lit-html won't know to update the DOM value and will leave\n * it alone. If this is not what you want—if you want to overwrite the DOM\n * value with the bound value no matter what—use the `live()` directive:\n *\n * html`<input .value=${live(x)}>`\n *\n * `live()` performs a strict equality check agains the live DOM value, and if\n * the new value is equal to the live value, does nothing. This means that\n * `live()` should not be used when the binding will cause a type conversion. If\n * you use `live()` with an attribute binding, make sure that only strings are\n * passed in, or the binding will update every render.\n */\nexport const live = directive(\n (value: unknown) => (part: AttributePart|PropertyPart|\n BooleanAttributePart) => {\n let previousValue: unknown;\n if (part instanceof EventPart || part instanceof NodePart) {\n throw new Error(\n 'The `live` directive is not allowed on text or event bindings');\n }\n if (part instanceof BooleanAttributePart) {\n checkStrings(part.strings);\n previousValue = part.element.hasAttribute(part.name);\n // This is a hack needed because BooleanAttributePart doesn't have a\n // committer and does its own dirty checking after directives\n part.value = previousValue;\n } else {\n const {element, name, strings} = part.committer;\n checkStrings(strings);\n if (part instanceof PropertyPart) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n previousValue = (element as any)[name];\n if (previousValue === value) {\n return;\n }\n } else if (part instanceof AttributePart) {\n previousValue = element.getAttribute(name);\n }\n if (previousValue === String(value)) {\n return;\n }\n }\n part.setValue(value);\n });\n\nconst checkStrings = (strings: readonly string[]) => {\n if (strings.length !== 2 || strings[0] !== '' || strings[1] !== '') {\n throw new Error('`live` bindings can only contain a single expression');\n }\n};\n"]}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at
5
+ * http://polymer.github.io/LICENSE.txt
6
+ * The complete set of authors may be found at
7
+ * http://polymer.github.io/AUTHORS.txt
8
+ * The complete set of contributors may be found at
9
+ * http://polymer.github.io/CONTRIBUTORS.txt
10
+ * Code distributed by Google as part of the polymer project is also
11
+ * subject to an additional IP rights grant found at
12
+ * http://polymer.github.io/PATENTS.txt
13
+ */
14
+ import { DirectiveFn } from '../lib/directive.js';
15
+ export declare type KeyFn<T> = (item: T, index: number) => unknown;
16
+ export declare type ItemTemplate<T> = (item: T, index: number) => unknown;
17
+ /**
18
+ * A directive that repeats a series of values (usually `TemplateResults`)
19
+ * generated from an iterable, and updates those items efficiently when the
20
+ * iterable changes based on user-provided `keys` associated with each item.
21
+ *
22
+ * Note that if a `keyFn` is provided, strict key-to-DOM mapping is maintained,
23
+ * meaning previous DOM for a given key is moved into the new position if
24
+ * needed, and DOM will never be reused with values for different keys (new DOM
25
+ * will always be created for new keys). This is generally the most efficient
26
+ * way to use `repeat` since it performs minimum unnecessary work for insertions
27
+ * and removals.
28
+ *
29
+ * IMPORTANT: If providing a `keyFn`, keys *must* be unique for all items in a
30
+ * given call to `repeat`. The behavior when two or more items have the same key
31
+ * is undefined.
32
+ *
33
+ * If no `keyFn` is provided, this directive will perform similar to mapping
34
+ * items to values, and DOM will be reused against potentially different items.
35
+ */
36
+ export declare const repeat: <T>(items: Iterable<T>, keyFnOrTemplate: KeyFn<T> | ItemTemplate<T>, template?: ItemTemplate<T> | undefined) => DirectiveFn;
37
+ //# sourceMappingURL=repeat.d.ts.map