@stablyai/internal-playwright-core 0.1.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 (405) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +5 -0
  3. package/README.md +3 -0
  4. package/ThirdPartyNotices.txt +1134 -0
  5. package/bin/install_media_pack.ps1 +5 -0
  6. package/bin/install_webkit_wsl.ps1 +35 -0
  7. package/bin/reinstall_chrome_beta_linux.sh +42 -0
  8. package/bin/reinstall_chrome_beta_mac.sh +13 -0
  9. package/bin/reinstall_chrome_beta_win.ps1 +24 -0
  10. package/bin/reinstall_chrome_stable_linux.sh +42 -0
  11. package/bin/reinstall_chrome_stable_mac.sh +12 -0
  12. package/bin/reinstall_chrome_stable_win.ps1 +24 -0
  13. package/bin/reinstall_msedge_beta_linux.sh +48 -0
  14. package/bin/reinstall_msedge_beta_mac.sh +11 -0
  15. package/bin/reinstall_msedge_beta_win.ps1 +23 -0
  16. package/bin/reinstall_msedge_dev_linux.sh +48 -0
  17. package/bin/reinstall_msedge_dev_mac.sh +11 -0
  18. package/bin/reinstall_msedge_dev_win.ps1 +23 -0
  19. package/bin/reinstall_msedge_stable_linux.sh +48 -0
  20. package/bin/reinstall_msedge_stable_mac.sh +11 -0
  21. package/bin/reinstall_msedge_stable_win.ps1 +24 -0
  22. package/browsers.json +80 -0
  23. package/cli.js +18 -0
  24. package/index.d.ts +17 -0
  25. package/index.js +32 -0
  26. package/index.mjs +28 -0
  27. package/lib/androidServerImpl.js +65 -0
  28. package/lib/browserServerImpl.js +120 -0
  29. package/lib/cli/cli.js +58 -0
  30. package/lib/cli/driver.js +97 -0
  31. package/lib/cli/program.js +634 -0
  32. package/lib/cli/programWithTestStub.js +74 -0
  33. package/lib/client/accessibility.js +49 -0
  34. package/lib/client/android.js +361 -0
  35. package/lib/client/api.js +137 -0
  36. package/lib/client/artifact.js +79 -0
  37. package/lib/client/browser.js +163 -0
  38. package/lib/client/browserContext.js +529 -0
  39. package/lib/client/browserType.js +184 -0
  40. package/lib/client/cdpSession.js +51 -0
  41. package/lib/client/channelOwner.js +194 -0
  42. package/lib/client/clientHelper.js +64 -0
  43. package/lib/client/clientInstrumentation.js +55 -0
  44. package/lib/client/clientStackTrace.js +69 -0
  45. package/lib/client/clock.js +68 -0
  46. package/lib/client/connection.js +314 -0
  47. package/lib/client/consoleMessage.js +54 -0
  48. package/lib/client/coverage.js +44 -0
  49. package/lib/client/dialog.js +56 -0
  50. package/lib/client/download.js +62 -0
  51. package/lib/client/electron.js +138 -0
  52. package/lib/client/elementHandle.js +281 -0
  53. package/lib/client/errors.js +77 -0
  54. package/lib/client/eventEmitter.js +314 -0
  55. package/lib/client/events.js +99 -0
  56. package/lib/client/fetch.js +369 -0
  57. package/lib/client/fileChooser.js +46 -0
  58. package/lib/client/fileUtils.js +34 -0
  59. package/lib/client/frame.js +408 -0
  60. package/lib/client/harRouter.js +87 -0
  61. package/lib/client/input.js +84 -0
  62. package/lib/client/jsHandle.js +109 -0
  63. package/lib/client/jsonPipe.js +39 -0
  64. package/lib/client/localUtils.js +60 -0
  65. package/lib/client/locator.js +368 -0
  66. package/lib/client/network.js +747 -0
  67. package/lib/client/page.js +721 -0
  68. package/lib/client/platform.js +74 -0
  69. package/lib/client/playwright.js +71 -0
  70. package/lib/client/selectors.js +55 -0
  71. package/lib/client/stream.js +39 -0
  72. package/lib/client/timeoutSettings.js +79 -0
  73. package/lib/client/tracing.js +117 -0
  74. package/lib/client/types.js +28 -0
  75. package/lib/client/video.js +59 -0
  76. package/lib/client/waiter.js +142 -0
  77. package/lib/client/webError.js +39 -0
  78. package/lib/client/webSocket.js +93 -0
  79. package/lib/client/worker.js +63 -0
  80. package/lib/client/writableStream.js +39 -0
  81. package/lib/common/debugLogger.js +90 -0
  82. package/lib/common/socksProxy.js +569 -0
  83. package/lib/common/timeoutSettings.js +73 -0
  84. package/lib/common/types.js +5 -0
  85. package/lib/generated/bindingsControllerSource.js +28 -0
  86. package/lib/generated/clockSource.js +28 -0
  87. package/lib/generated/consoleApiSource.js +28 -0
  88. package/lib/generated/injectedScriptSource.js +28 -0
  89. package/lib/generated/pollingRecorderSource.js +28 -0
  90. package/lib/generated/recorderSource.js +28 -0
  91. package/lib/generated/storageScriptSource.js +28 -0
  92. package/lib/generated/utilityScriptSource.js +28 -0
  93. package/lib/generated/webSocketMockSource.js +336 -0
  94. package/lib/image_tools/colorUtils.js +98 -0
  95. package/lib/image_tools/compare.js +108 -0
  96. package/lib/image_tools/imageChannel.js +70 -0
  97. package/lib/image_tools/stats.js +102 -0
  98. package/lib/inProcessFactory.js +60 -0
  99. package/lib/index.js +19 -0
  100. package/lib/inprocess.js +3 -0
  101. package/lib/outofprocess.js +76 -0
  102. package/lib/protocol/debug.js +27 -0
  103. package/lib/protocol/serializers.js +192 -0
  104. package/lib/protocol/transport.js +82 -0
  105. package/lib/protocol/validator.js +2919 -0
  106. package/lib/protocol/validatorPrimitives.js +193 -0
  107. package/lib/remote/playwrightConnection.js +129 -0
  108. package/lib/remote/playwrightServer.js +335 -0
  109. package/lib/server/accessibility.js +69 -0
  110. package/lib/server/android/android.js +465 -0
  111. package/lib/server/android/backendAdb.js +177 -0
  112. package/lib/server/artifact.js +127 -0
  113. package/lib/server/bidi/bidiBrowser.js +490 -0
  114. package/lib/server/bidi/bidiChromium.js +153 -0
  115. package/lib/server/bidi/bidiConnection.js +212 -0
  116. package/lib/server/bidi/bidiExecutionContext.js +221 -0
  117. package/lib/server/bidi/bidiFirefox.js +130 -0
  118. package/lib/server/bidi/bidiInput.js +146 -0
  119. package/lib/server/bidi/bidiNetworkManager.js +383 -0
  120. package/lib/server/bidi/bidiOverCdp.js +102 -0
  121. package/lib/server/bidi/bidiPage.js +552 -0
  122. package/lib/server/bidi/bidiPdf.js +106 -0
  123. package/lib/server/bidi/third_party/bidiCommands.d.js +22 -0
  124. package/lib/server/bidi/third_party/bidiDeserializer.js +98 -0
  125. package/lib/server/bidi/third_party/bidiKeyboard.js +256 -0
  126. package/lib/server/bidi/third_party/bidiProtocol.js +24 -0
  127. package/lib/server/bidi/third_party/bidiProtocolCore.js +179 -0
  128. package/lib/server/bidi/third_party/bidiProtocolPermissions.js +42 -0
  129. package/lib/server/bidi/third_party/bidiSerializer.js +148 -0
  130. package/lib/server/bidi/third_party/firefoxPrefs.js +259 -0
  131. package/lib/server/browser.js +149 -0
  132. package/lib/server/browserContext.js +695 -0
  133. package/lib/server/browserType.js +328 -0
  134. package/lib/server/callLog.js +82 -0
  135. package/lib/server/chromium/appIcon.png +0 -0
  136. package/lib/server/chromium/chromium.js +402 -0
  137. package/lib/server/chromium/chromiumSwitches.js +95 -0
  138. package/lib/server/chromium/crAccessibility.js +263 -0
  139. package/lib/server/chromium/crBrowser.js +501 -0
  140. package/lib/server/chromium/crConnection.js +202 -0
  141. package/lib/server/chromium/crCoverage.js +235 -0
  142. package/lib/server/chromium/crDevTools.js +113 -0
  143. package/lib/server/chromium/crDragDrop.js +131 -0
  144. package/lib/server/chromium/crExecutionContext.js +146 -0
  145. package/lib/server/chromium/crInput.js +187 -0
  146. package/lib/server/chromium/crNetworkManager.js +666 -0
  147. package/lib/server/chromium/crPage.js +1069 -0
  148. package/lib/server/chromium/crPdf.js +121 -0
  149. package/lib/server/chromium/crProtocolHelper.js +145 -0
  150. package/lib/server/chromium/crServiceWorker.js +123 -0
  151. package/lib/server/chromium/defaultFontFamilies.js +162 -0
  152. package/lib/server/chromium/protocol.d.js +16 -0
  153. package/lib/server/chromium/videoRecorder.js +113 -0
  154. package/lib/server/clock.js +149 -0
  155. package/lib/server/codegen/csharp.js +327 -0
  156. package/lib/server/codegen/java.js +274 -0
  157. package/lib/server/codegen/javascript.js +270 -0
  158. package/lib/server/codegen/jsonl.js +52 -0
  159. package/lib/server/codegen/language.js +132 -0
  160. package/lib/server/codegen/languages.js +68 -0
  161. package/lib/server/codegen/python.js +279 -0
  162. package/lib/server/codegen/types.js +16 -0
  163. package/lib/server/console.js +53 -0
  164. package/lib/server/cookieStore.js +206 -0
  165. package/lib/server/debugController.js +191 -0
  166. package/lib/server/debugger.js +119 -0
  167. package/lib/server/deviceDescriptors.js +39 -0
  168. package/lib/server/deviceDescriptorsSource.json +1779 -0
  169. package/lib/server/dialog.js +116 -0
  170. package/lib/server/dispatchers/androidDispatcher.js +325 -0
  171. package/lib/server/dispatchers/artifactDispatcher.js +118 -0
  172. package/lib/server/dispatchers/browserContextDispatcher.js +364 -0
  173. package/lib/server/dispatchers/browserDispatcher.js +118 -0
  174. package/lib/server/dispatchers/browserTypeDispatcher.js +64 -0
  175. package/lib/server/dispatchers/cdpSessionDispatcher.js +44 -0
  176. package/lib/server/dispatchers/debugControllerDispatcher.js +78 -0
  177. package/lib/server/dispatchers/dialogDispatcher.js +47 -0
  178. package/lib/server/dispatchers/dispatcher.js +371 -0
  179. package/lib/server/dispatchers/electronDispatcher.js +89 -0
  180. package/lib/server/dispatchers/elementHandlerDispatcher.js +181 -0
  181. package/lib/server/dispatchers/frameDispatcher.js +227 -0
  182. package/lib/server/dispatchers/jsHandleDispatcher.js +85 -0
  183. package/lib/server/dispatchers/jsonPipeDispatcher.js +58 -0
  184. package/lib/server/dispatchers/localUtilsDispatcher.js +149 -0
  185. package/lib/server/dispatchers/networkDispatchers.js +213 -0
  186. package/lib/server/dispatchers/pageDispatcher.js +401 -0
  187. package/lib/server/dispatchers/playwrightDispatcher.js +108 -0
  188. package/lib/server/dispatchers/selectorsDispatcher.js +36 -0
  189. package/lib/server/dispatchers/streamDispatcher.js +67 -0
  190. package/lib/server/dispatchers/tracingDispatcher.js +68 -0
  191. package/lib/server/dispatchers/webSocketRouteDispatcher.js +165 -0
  192. package/lib/server/dispatchers/writableStreamDispatcher.js +79 -0
  193. package/lib/server/dom.js +806 -0
  194. package/lib/server/download.js +70 -0
  195. package/lib/server/electron/electron.js +270 -0
  196. package/lib/server/electron/loader.js +29 -0
  197. package/lib/server/errors.js +69 -0
  198. package/lib/server/fetch.js +621 -0
  199. package/lib/server/fileChooser.js +43 -0
  200. package/lib/server/fileUploadUtils.js +84 -0
  201. package/lib/server/firefox/ffAccessibility.js +238 -0
  202. package/lib/server/firefox/ffBrowser.js +428 -0
  203. package/lib/server/firefox/ffConnection.js +147 -0
  204. package/lib/server/firefox/ffExecutionContext.js +150 -0
  205. package/lib/server/firefox/ffInput.js +159 -0
  206. package/lib/server/firefox/ffNetworkManager.js +256 -0
  207. package/lib/server/firefox/ffPage.js +503 -0
  208. package/lib/server/firefox/firefox.js +116 -0
  209. package/lib/server/firefox/protocol.d.js +16 -0
  210. package/lib/server/formData.js +147 -0
  211. package/lib/server/frameSelectors.js +156 -0
  212. package/lib/server/frames.js +1502 -0
  213. package/lib/server/har/harRecorder.js +147 -0
  214. package/lib/server/har/harTracer.js +607 -0
  215. package/lib/server/harBackend.js +157 -0
  216. package/lib/server/helper.js +96 -0
  217. package/lib/server/index.js +58 -0
  218. package/lib/server/input.js +273 -0
  219. package/lib/server/instrumentation.js +69 -0
  220. package/lib/server/isomorphic/utilityScriptSerializers.js +212 -0
  221. package/lib/server/javascript.js +291 -0
  222. package/lib/server/launchApp.js +128 -0
  223. package/lib/server/localUtils.js +218 -0
  224. package/lib/server/macEditingCommands.js +143 -0
  225. package/lib/server/network.js +629 -0
  226. package/lib/server/page.js +871 -0
  227. package/lib/server/pipeTransport.js +89 -0
  228. package/lib/server/playwright.js +69 -0
  229. package/lib/server/progress.js +112 -0
  230. package/lib/server/protocolError.js +52 -0
  231. package/lib/server/recorder/chat.js +161 -0
  232. package/lib/server/recorder/codeGenerator.js +153 -0
  233. package/lib/server/recorder/csharp.js +310 -0
  234. package/lib/server/recorder/java.js +248 -0
  235. package/lib/server/recorder/javascript.js +229 -0
  236. package/lib/server/recorder/jsonl.js +47 -0
  237. package/lib/server/recorder/language.js +44 -0
  238. package/lib/server/recorder/python.js +276 -0
  239. package/lib/server/recorder/recorderActions.js +5 -0
  240. package/lib/server/recorder/recorderApp.js +387 -0
  241. package/lib/server/recorder/recorderRunner.js +138 -0
  242. package/lib/server/recorder/recorderSignalProcessor.js +83 -0
  243. package/lib/server/recorder/recorderUtils.js +157 -0
  244. package/lib/server/recorder/throttledFile.js +57 -0
  245. package/lib/server/recorder/utils.js +45 -0
  246. package/lib/server/recorder.js +499 -0
  247. package/lib/server/registry/browserFetcher.js +175 -0
  248. package/lib/server/registry/dependencies.js +371 -0
  249. package/lib/server/registry/index.js +1331 -0
  250. package/lib/server/registry/nativeDeps.js +1280 -0
  251. package/lib/server/registry/oopDownloadBrowserMain.js +120 -0
  252. package/lib/server/screenshotter.js +333 -0
  253. package/lib/server/selectors.js +112 -0
  254. package/lib/server/socksClientCertificatesInterceptor.js +383 -0
  255. package/lib/server/socksInterceptor.js +95 -0
  256. package/lib/server/stably/ai-tools/http-request.js +70 -0
  257. package/lib/server/stably/ai-tools/stablyApiCaller.js +137 -0
  258. package/lib/server/stably/autohealing/elementHandleFromCoordinates.js +64 -0
  259. package/lib/server/stably/autohealing/healingService.js +228 -0
  260. package/lib/server/stably/autohealing/screenshotFrame.js +41 -0
  261. package/lib/server/stably/constants.js +31 -0
  262. package/lib/server/trace/recorder/snapshotter.js +147 -0
  263. package/lib/server/trace/recorder/snapshotterInjected.js +541 -0
  264. package/lib/server/trace/recorder/tracing.js +602 -0
  265. package/lib/server/trace/test/inMemorySnapshotter.js +87 -0
  266. package/lib/server/trace/viewer/traceViewer.js +240 -0
  267. package/lib/server/transport.js +181 -0
  268. package/lib/server/types.js +28 -0
  269. package/lib/server/usKeyboardLayout.js +145 -0
  270. package/lib/server/utils/ascii.js +44 -0
  271. package/lib/server/utils/comparators.js +161 -0
  272. package/lib/server/utils/crypto.js +216 -0
  273. package/lib/server/utils/debug.js +42 -0
  274. package/lib/server/utils/debugLogger.js +122 -0
  275. package/lib/server/utils/env.js +73 -0
  276. package/lib/server/utils/eventsHelper.js +39 -0
  277. package/lib/server/utils/expectUtils.js +38 -0
  278. package/lib/server/utils/fileUtils.js +191 -0
  279. package/lib/server/utils/happyEyeballs.js +207 -0
  280. package/lib/server/utils/hostPlatform.js +111 -0
  281. package/lib/server/utils/httpServer.js +218 -0
  282. package/lib/server/utils/image_tools/colorUtils.js +89 -0
  283. package/lib/server/utils/image_tools/compare.js +109 -0
  284. package/lib/server/utils/image_tools/imageChannel.js +78 -0
  285. package/lib/server/utils/image_tools/stats.js +102 -0
  286. package/lib/server/utils/linuxUtils.js +71 -0
  287. package/lib/server/utils/network.js +233 -0
  288. package/lib/server/utils/nodePlatform.js +148 -0
  289. package/lib/server/utils/pipeTransport.js +84 -0
  290. package/lib/server/utils/processLauncher.js +241 -0
  291. package/lib/server/utils/profiler.js +65 -0
  292. package/lib/server/utils/socksProxy.js +511 -0
  293. package/lib/server/utils/spawnAsync.js +41 -0
  294. package/lib/server/utils/task.js +51 -0
  295. package/lib/server/utils/userAgent.js +98 -0
  296. package/lib/server/utils/wsServer.js +121 -0
  297. package/lib/server/utils/zipFile.js +74 -0
  298. package/lib/server/utils/zones.js +57 -0
  299. package/lib/server/webkit/protocol.d.js +16 -0
  300. package/lib/server/webkit/webkit.js +119 -0
  301. package/lib/server/webkit/wkAccessibility.js +237 -0
  302. package/lib/server/webkit/wkBrowser.js +339 -0
  303. package/lib/server/webkit/wkConnection.js +149 -0
  304. package/lib/server/webkit/wkExecutionContext.js +154 -0
  305. package/lib/server/webkit/wkInput.js +181 -0
  306. package/lib/server/webkit/wkInterceptableRequest.js +169 -0
  307. package/lib/server/webkit/wkPage.js +1134 -0
  308. package/lib/server/webkit/wkProvisionalPage.js +83 -0
  309. package/lib/server/webkit/wkWorkers.js +104 -0
  310. package/lib/server/webkit/wsl/webkit-wsl-transport-client.js +74 -0
  311. package/lib/server/webkit/wsl/webkit-wsl-transport-server.js +113 -0
  312. package/lib/third_party/diff_match_patch.js +2222 -0
  313. package/lib/third_party/pixelmatch.js +255 -0
  314. package/lib/utils/ascii.js +31 -0
  315. package/lib/utils/comparators.js +171 -0
  316. package/lib/utils/crypto.js +33 -0
  317. package/lib/utils/debug.js +46 -0
  318. package/lib/utils/debugLogger.js +89 -0
  319. package/lib/utils/env.js +49 -0
  320. package/lib/utils/eventsHelper.js +38 -0
  321. package/lib/utils/fileUtils.js +205 -0
  322. package/lib/utils/glob.js +83 -0
  323. package/lib/utils/happy-eyeballs.js +160 -0
  324. package/lib/utils/headers.js +52 -0
  325. package/lib/utils/hostPlatform.js +128 -0
  326. package/lib/utils/httpServer.js +236 -0
  327. package/lib/utils/index.js +346 -0
  328. package/lib/utils/isomorphic/ariaSnapshot.js +392 -0
  329. package/lib/utils/isomorphic/assert.js +31 -0
  330. package/lib/utils/isomorphic/colors.js +72 -0
  331. package/lib/utils/isomorphic/cssParser.js +245 -0
  332. package/lib/utils/isomorphic/cssTokenizer.js +1051 -0
  333. package/lib/utils/isomorphic/headers.js +53 -0
  334. package/lib/utils/isomorphic/locatorGenerators.js +673 -0
  335. package/lib/utils/isomorphic/locatorParser.js +176 -0
  336. package/lib/utils/isomorphic/locatorUtils.js +81 -0
  337. package/lib/utils/isomorphic/manualPromise.js +114 -0
  338. package/lib/utils/isomorphic/mimeType.js +459 -0
  339. package/lib/utils/isomorphic/multimap.js +80 -0
  340. package/lib/utils/isomorphic/protocolFormatter.js +78 -0
  341. package/lib/utils/isomorphic/protocolMetainfo.js +321 -0
  342. package/lib/utils/isomorphic/rtti.js +43 -0
  343. package/lib/utils/isomorphic/selectorParser.js +386 -0
  344. package/lib/utils/isomorphic/semaphore.js +54 -0
  345. package/lib/utils/isomorphic/stackTrace.js +158 -0
  346. package/lib/utils/isomorphic/stringUtils.js +155 -0
  347. package/lib/utils/isomorphic/time.js +49 -0
  348. package/lib/utils/isomorphic/timeoutRunner.js +66 -0
  349. package/lib/utils/isomorphic/traceUtils.js +58 -0
  350. package/lib/utils/isomorphic/types.js +16 -0
  351. package/lib/utils/isomorphic/urlMatch.js +176 -0
  352. package/lib/utils/isomorphic/utilityScriptSerializers.js +251 -0
  353. package/lib/utils/linuxUtils.js +78 -0
  354. package/lib/utils/manualPromise.js +109 -0
  355. package/lib/utils/mimeType.js +29 -0
  356. package/lib/utils/multimap.js +75 -0
  357. package/lib/utils/network.js +188 -0
  358. package/lib/utils/processLauncher.js +248 -0
  359. package/lib/utils/profiler.js +53 -0
  360. package/lib/utils/rtti.js +44 -0
  361. package/lib/utils/semaphore.js +51 -0
  362. package/lib/utils/spawnAsync.js +45 -0
  363. package/lib/utils/stackTrace.js +121 -0
  364. package/lib/utils/task.js +58 -0
  365. package/lib/utils/time.js +37 -0
  366. package/lib/utils/timeoutRunner.js +66 -0
  367. package/lib/utils/traceUtils.js +44 -0
  368. package/lib/utils/userAgent.js +105 -0
  369. package/lib/utils/wsServer.js +127 -0
  370. package/lib/utils/zipFile.js +75 -0
  371. package/lib/utils/zones.js +62 -0
  372. package/lib/utils.js +107 -0
  373. package/lib/utilsBundle.js +109 -0
  374. package/lib/utilsBundleImpl/index.js +218 -0
  375. package/lib/utilsBundleImpl/xdg-open +1066 -0
  376. package/lib/vite/htmlReport/index.html +84 -0
  377. package/lib/vite/recorder/assets/codeMirrorModule-C3UTv-Ge.css +1 -0
  378. package/lib/vite/recorder/assets/codeMirrorModule-RJCXzfmE.js +24 -0
  379. package/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  380. package/lib/vite/recorder/assets/index-Ri0uHF7I.css +1 -0
  381. package/lib/vite/recorder/assets/index-Y-X2TGJv.js +193 -0
  382. package/lib/vite/recorder/index.html +29 -0
  383. package/lib/vite/recorder/playwright-logo.svg +9 -0
  384. package/lib/vite/traceViewer/assets/codeMirrorModule-Bhnc5o2x.js +24 -0
  385. package/lib/vite/traceViewer/assets/defaultSettingsView-ClwvkA2N.js +265 -0
  386. package/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
  387. package/lib/vite/traceViewer/codeMirrorModule.C3UTv-Ge.css +1 -0
  388. package/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  389. package/lib/vite/traceViewer/defaultSettingsView.TQ8_7ybu.css +1 -0
  390. package/lib/vite/traceViewer/index.DFO9NNF5.js +2 -0
  391. package/lib/vite/traceViewer/index.I8N9v4jT.css +1 -0
  392. package/lib/vite/traceViewer/index.html +43 -0
  393. package/lib/vite/traceViewer/playwright-logo.svg +9 -0
  394. package/lib/vite/traceViewer/snapshot.html +21 -0
  395. package/lib/vite/traceViewer/sw.bundle.js +3 -0
  396. package/lib/vite/traceViewer/uiMode.Btcz36p_.css +1 -0
  397. package/lib/vite/traceViewer/uiMode.Shu3QS-1.js +5 -0
  398. package/lib/vite/traceViewer/uiMode.html +17 -0
  399. package/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +32 -0
  400. package/lib/zipBundle.js +34 -0
  401. package/lib/zipBundleImpl.js +5 -0
  402. package/package.json +43 -0
  403. package/types/protocol.d.ts +23130 -0
  404. package/types/structs.d.ts +45 -0
  405. package/types/types.d.ts +22857 -0
@@ -0,0 +1,3 @@
1
+ var Ks=Object.defineProperty;var Xs=(n,t,e)=>t in n?Ks(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var v=(n,t,e)=>Xs(n,typeof t!="symbol"?t+"":t,e);function $s(n,t){const e=new Array(t.length).fill(0);return new Array(t.length).fill(0).map((s,r)=>(i,a)=>{e[r]=i/a*t[r]*1e3,n(e.reduce((o,l)=>o+l,0),1e3)})}const Mn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Js(n){return n.replace(/[&<>"']/ug,t=>Mn[t])}function Qs(n){return n.replace(/[&<]/ug,t=>Mn[t])}function Ht(n,t,e){return n.find((s,r)=>{if(r===n.length-1)return!0;const i=n[r+1];return Math.abs(t(s)-e)<Math.abs(t(i)-e)})}function Un(n){return Array.isArray(n)&&typeof n[0]=="string"}function zs(n){return Array.isArray(n)&&Array.isArray(n[0])}class er{constructor(t,e,s,r,i){v(this,"_htmlCache");v(this,"_snapshots");v(this,"_index");v(this,"snapshotName");v(this,"_resources");v(this,"_snapshot");v(this,"_callId");v(this,"_screencastFrames");this._htmlCache=t,this._resources=e,this._snapshots=s,this._index=i,this._snapshot=s[i],this._callId=s[i].callId,this._screencastFrames=r,this.snapshotName=s[i].snapshotName}snapshot(){return this._snapshots[this._index]}viewport(){return this._snapshots[this._index].viewport}closestScreenshot(){var r;const{wallTime:t,timestamp:e}=this.snapshot(),s=t&&((r=this._screencastFrames[0])!=null&&r.frameSwapWallTime)?Ht(this._screencastFrames,i=>i.frameSwapWallTime,t):Ht(this._screencastFrames,i=>i.timestamp,e);return s==null?void 0:s.sha1}render(){const t=[],e=(i,a,o,l)=>{if(typeof i=="string"){o==="STYLE"||o==="style"?t.push(cr(ir(i))):t.push(Qs(i));return}if(zs(i)){const _=a-i[0][0];if(_>=0&&_<=a){const u=nr(this._snapshots[_]),h=i[0][1];if(h>=0&&h<u.length)return e(u[h],_,o,l)}}else if(Un(i)){const[_,u,...h]=i,p=_==="NOSCRIPT"?"X-NOSCRIPT":_,x=Object.entries(u||{});t.push("<",p);const S="__playwright_current_src__",f=p==="IFRAME"||p==="FRAME",c=p==="A",d=p==="IMG",y=d&&x.some(g=>g[0]===S),b=p==="SOURCE"&&o==="PICTURE"&&(l==null?void 0:l.some(g=>g[0]===S));for(const[g,A]of x){let m=g;f&&g.toLowerCase()==="src"&&(m="__playwright_src__"),d&&g===S&&(m="src"),["src","srcset"].includes(g.toLowerCase())&&(y||b)&&(m="_"+m);let R=A;c&&g.toLowerCase()==="href"?R="link://"+A:(g.toLowerCase()==="href"||g.toLowerCase()==="src"||g===S)&&(R=ft(A)),t.push(" ",m,'="',Js(R),'"')}t.push(">");for(const g of h)e(g,a,p,x);tr.has(p)||t.push("</",p,">");return}else return},s=this._snapshot;return{html:this._htmlCache.getOrCompute(this,()=>{e(s.html,this._index,void 0,void 0);const a=(s.doctype?`<!DOCTYPE ${s.doctype}>`:"")+["<style>*,*::before,*::after { visibility: hidden }</style>",`<script>${sr(this.viewport(),this._callId,this.snapshotName)}<\/script>`].join("")+t.join("");return{value:a,size:a.length}}),pageId:s.pageId,frameId:s.frameId,index:this._index}}resourceByUrl(t,e){const s=this._snapshot;let r,i;for(const o of this._resources){if(typeof o._monotonicTime=="number"&&o._monotonicTime>=s.timestamp)break;o.response.status!==304&&o.request.url===t&&o.request.method===e&&(o._frameref===s.frameId?r=o:i=o)}let a=r??i;if(a&&e.toUpperCase()==="GET"){for(const o of s.resourceOverrides)if(t===o.url&&o.sha1){a={...a,response:{...a.response,content:{...a.response.content,_sha1:o.sha1}}};break}}return a}}const tr=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","MENUITEM","META","PARAM","SOURCE","TRACK","WBR"]);function nr(n){if(!n._nodes){const t=[],e=s=>{if(typeof s=="string")t.push(s);else if(Un(s)){const[,,...r]=s;for(const i of r)e(i);t.push(s)}};e(n.html),n._nodes=t}return n._nodes}function sr(n,...t){function e(s,r,...i){const a=new URLSearchParams(location.search),o=a.has("shouldPopulateCanvasFromScreenshot"),l=a.has("isUnderTest"),_={viewport:r,frames:new WeakMap};window.__playwright_frame_bounding_rects__=_;const u="Recorded click position in absolute coordinates did not match the center of the clicked element. This is likely due to a difference between the test runner and the trace viewer operating systems.",h=[],p=[],x=[],S=[];let f=window;for(;f!==f.parent&&!f.location.pathname.match(/\/page@[a-z0-9]+$/);)f=f.parent;const c=b=>{for(const g of b.querySelectorAll("[__playwright_scroll_top_]"))h.push(g);for(const g of b.querySelectorAll("[__playwright_scroll_left_]"))p.push(g);for(const g of b.querySelectorAll("[__playwright_value_]")){const A=g;A.type!=="file"&&(A.value=A.getAttribute("__playwright_value_")),g.removeAttribute("__playwright_value_")}for(const g of b.querySelectorAll("[__playwright_checked_]"))g.checked=g.getAttribute("__playwright_checked_")==="true",g.removeAttribute("__playwright_checked_");for(const g of b.querySelectorAll("[__playwright_selected_]"))g.selected=g.getAttribute("__playwright_selected_")==="true",g.removeAttribute("__playwright_selected_");for(const g of b.querySelectorAll("[__playwright_popover_open_]")){try{g.showPopover()}catch{}g.removeAttribute("__playwright_popover_open_")}for(const g of b.querySelectorAll("[__playwright_dialog_open_]")){try{g.getAttribute("__playwright_dialog_open_")==="modal"?g.showModal():g.show()}catch{}g.removeAttribute("__playwright_dialog_open_")}for(const g of i)for(const A of b.querySelectorAll(`[__playwright_target__="${g}"]`)){const m=A.style;m.outline="2px solid #006ab1",m.backgroundColor="#6fa8dc7f",x.push(A)}for(const g of b.querySelectorAll("iframe, frame")){const A=g.getAttribute("__playwright_bounding_rect__");g.removeAttribute("__playwright_bounding_rect__");const m=A?JSON.parse(A):void 0;m&&_.frames.set(g,{boundingRect:m,scrollLeft:0,scrollTop:0});const R=g.getAttribute("__playwright_src__");if(!R)g.setAttribute("src",'data:text/html,<body style="background: #ddd"></body>');else{const E=new URL(s(window.location.href)),O=E.pathname.lastIndexOf("/snapshot/");O!==-1&&(E.pathname=E.pathname.substring(0,O+1)),E.pathname+=R.substring(1),g.setAttribute("src",E.toString())}}{const g=b.querySelector("body[__playwright_custom_elements__]");if(g&&window.customElements){const A=(g.getAttribute("__playwright_custom_elements__")||"").split(",");for(const m of A)window.customElements.define(m,class extends HTMLElement{})}}for(const g of b.querySelectorAll("template[__playwright_shadow_root_]")){const A=g,m=A.parentElement.attachShadow({mode:"open"});m.appendChild(A.content),A.remove(),c(m)}if("adoptedStyleSheets"in b){const g=[...b.adoptedStyleSheets];for(const A of b.querySelectorAll("template[__playwright_style_sheet_]")){const m=A,R=new CSSStyleSheet;R.replaceSync(m.getAttribute("__playwright_style_sheet_")),g.push(R)}b.adoptedStyleSheets=g}S.push(...b.querySelectorAll("canvas"))},d=()=>{window.removeEventListener("load",d);for(const A of h)A.scrollTop=+A.getAttribute("__playwright_scroll_top_"),A.removeAttribute("__playwright_scroll_top_"),_.frames.has(A)&&(_.frames.get(A).scrollTop=A.scrollTop);for(const A of p)A.scrollLeft=+A.getAttribute("__playwright_scroll_left_"),A.removeAttribute("__playwright_scroll_left_"),_.frames.has(A)&&(_.frames.get(A).scrollLeft=A.scrollTop);document.styleSheets[0].disabled=!0;const b=new URL(window.location.href).searchParams,g=window===f;if(b.get("pointX")&&b.get("pointY")){const A=+b.get("pointX"),m=+b.get("pointY"),R=b.has("hasInputTarget"),E=x.length>0,O=document.documentElement?[document.documentElement]:[];for(const T of E?x:O){const w=document.createElement("x-pw-pointer");if(w.style.position="fixed",w.style.backgroundColor="#f44336",w.style.width="20px",w.style.height="20px",w.style.borderRadius="10px",w.style.margin="-10px 0 0 -10px",w.style.zIndex="2147483646",w.style.display="flex",w.style.alignItems="center",w.style.justifyContent="center",E){const C=T.getBoundingClientRect(),I=C.left+C.width/2,k=C.top+C.height/2;if(w.style.left=I+"px",w.style.top=k+"px",g&&(Math.abs(I-A)>=10||Math.abs(k-m)>=10)){const P=document.createElement("x-pw-pointer-warning");P.textContent="⚠",P.style.fontSize="19px",P.style.color="white",P.style.marginTop="-3.5px",P.style.userSelect="none",w.appendChild(P),w.setAttribute("title",u)}document.documentElement.appendChild(w)}else g&&!R&&(w.style.left=A+"px",w.style.top=m+"px",document.documentElement.appendChild(w))}}if(S.length>0){let A=function(R,E){function O(){const T=document.createElement("canvas");T.width=T.width/Math.floor(T.width/24),T.height=T.height/Math.floor(T.height/24);const w=T.getContext("2d");return w.fillStyle="lightgray",w.fillRect(0,0,T.width,T.height),w.fillStyle="white",w.fillRect(0,0,T.width/2,T.height/2),w.fillRect(T.width/2,T.height/2,T.width,T.height),w.createPattern(T,"repeat")}R.fillStyle=O(),R.fillRect(0,0,E.width,E.height)};const m=new Image;m.onload=()=>{var R;for(const E of S){const O=E.getContext("2d"),T=E.getAttribute("__playwright_bounding_rect__");if(E.removeAttribute("__playwright_bounding_rect__"),!T)continue;let w;try{w=JSON.parse(T)}catch{continue}let C=window;for(;C!==f;){const U=C.frameElement;C=C.parent;const L=(R=C.__playwright_frame_bounding_rects__)==null?void 0:R.frames.get(U);if(!(L!=null&&L.boundingRect))break;const Z=L.boundingRect.left-L.scrollLeft,N=L.boundingRect.top-L.scrollTop;w.left+=Z,w.top+=N,w.right+=Z,w.bottom+=N}const{width:I,height:k}=f.__playwright_frame_bounding_rects__.viewport;w.left=w.left/I,w.top=w.top/k,w.right=w.right/I,w.bottom=w.bottom/k;const P=w.right>1||w.bottom>1;if(w.left>1||w.top>1){E.title="Playwright couldn't capture canvas contents because it's located outside the viewport.";continue}A(O,E),o?(O.drawImage(m,w.left*m.width,w.top*m.height,(w.right-w.left)*m.width,(w.bottom-w.top)*m.height,0,0,E.width,E.height),P?E.title="Playwright couldn't capture full canvas contents because it's located partially outside the viewport.":E.title="Canvas contents are displayed on a best-effort basis based on viewport screenshots taken during test execution."):E.title="Canvas content display is disabled.",l&&console.log("canvas drawn:",JSON.stringify([w.left,w.top,w.right-w.left,w.bottom-w.top].map(U=>Math.floor(U*100))))}},m.onerror=()=>{for(const R of S){const E=R.getContext("2d");A(E,R),R.title="Playwright couldn't show canvas contents because the screenshot failed to load."}},m.src=location.href.replace("/snapshot","/closest-screenshot")}},y=()=>c(document);window.addEventListener("load",d),window.addEventListener("DOMContentLoaded",y)}return`
2
+ (${e.toString()})(${ut.toString()}, ${JSON.stringify(n)}${t.map(s=>`, "${s}"`).join("")})`}const Hn=["about:","blob:","data:","file:","ftp:","http:","https:","mailto:","sftp:","ws:","wss:"],Wt="http://playwright.bloburl/#";function ft(n){n.startsWith(Wt)&&(n=n.substring(Wt.length));try{const t=new URL(n);if(t.protocol==="javascript:"||t.protocol==="vbscript:")return"javascript:void(0)";const e=t.protocol==="blob:",s=t.protocol==="file:";if(!e&&!s&&Hn.includes(t.protocol))return n;const r="pw-"+t.protocol.slice(0,t.protocol.length-1);return s||(t.protocol="https:"),t.hostname=t.hostname?`${r}--${t.hostname}`:r,s&&(t.protocol="https:"),t.toString()}catch{return n}}const rr=/url\(['"]?([\w-]+:)\/\//ig;function ir(n){return n.replace(rr,(t,e)=>!(e==="blob:")&&!(e==="file:")&&Hn.includes(e)?t:t.replace(e+"//",`https://pw-${e.slice(0,-1)}--`))}const ar=/url\(\s*'([^']*)'\s*\)/ig,or=/url\(\s*"([^"]*)"\s*\)/ig;function cr(n){const t=(e,s)=>s.includes("</")?e.replace(s,encodeURI(s)):e;return n.replace(ar,t).replace(or,t)}function ut(n){const t=new URL(n);return t.pathname.endsWith("/snapshot.html")?t.searchParams.get("r"):n}class lr{constructor(t,e){v(this,"_snapshotStorage");v(this,"_resourceLoader");v(this,"_snapshotIds",new Map);this._snapshotStorage=t,this._resourceLoader=e}serveSnapshot(t,e,s){const r=this._snapshot(t,e);if(!r)return new Response(null,{status:404});const i=r.render();return this._snapshotIds.set(s,r),new Response(i.html,{status:200,headers:{"Content-Type":"text/html; charset=utf-8"}})}async serveClosestScreenshot(t,e){const s=this._snapshot(t,e),r=s==null?void 0:s.closestScreenshot();return r?new Response(await this._resourceLoader(r)):new Response(null,{status:404})}serveSnapshotInfo(t,e){const s=this._snapshot(t,e);return this._respondWithJson(s?{viewport:s.viewport(),url:s.snapshot().frameUrl,timestamp:s.snapshot().timestamp,wallTime:s.snapshot().wallTime}:{error:"No snapshot found"})}_snapshot(t,e){const s=e.get("name");return this._snapshotStorage.snapshotByName(t,s)}_respondWithJson(t){return new Response(JSON.stringify(t),{status:200,headers:{"Cache-Control":"public, max-age=31536000","Content-Type":"application/json"}})}async serveResource(t,e,s){let r;const i=this._snapshotIds.get(s);for(const x of t)if(r=i==null?void 0:i.resourceByUrl(fr(x),e),r)break;if(!r)return new Response(null,{status:404});const a=r.response.content._sha1,o=a?await this._resourceLoader(a)||new Blob([]):new Blob([]);let l=r.response.content.mimeType;/^text\/|^application\/(javascript|json)/.test(l)&&!l.includes("charset")&&(l=`${l}; charset=utf-8`);const u=new Headers;l!=="x-unknown"&&u.set("Content-Type",l);for(const{name:x,value:S}of r.response.headers)u.set(x,S);u.delete("Content-Encoding"),u.delete("Access-Control-Allow-Origin"),u.set("Access-Control-Allow-Origin","*"),u.delete("Content-Length"),u.set("Content-Length",String(o.size)),u.set("Cache-Control","public, max-age=31536000");const{status:h}=r.response,p=h===101||h===204||h===205||h===304;return new Response(p?null:o,{headers:u,status:r.response.status,statusText:r.response.statusText})}}function fr(n){try{const t=new URL(n);return t.hash="",t.toString()}catch{return n}}function ur(n){const t=new Map,{files:e,stacks:s}=n;for(const r of s){const[i,a]=r;t.set(`call@${i}`,a.map(o=>({file:e[o[0]],line:o[1],column:o[2],function:o[3]})))}return t}class dr{constructor(t){v(this,"_maxSize");v(this,"_map");v(this,"_size");this._maxSize=t,this._map=new Map,this._size=0}getOrCompute(t,e){if(this._map.has(t)){const r=this._map.get(t);return this._map.delete(t),this._map.set(t,r),r.value}const s=e();for(;this._map.size&&this._size+s.size>this._maxSize;){const[r,i]=this._map.entries().next().value;this._size-=i.size,this._map.delete(r)}return this._map.set(t,s),this._size+=s.size,s.value}}class _r{constructor(){v(this,"_frameSnapshots",new Map);v(this,"_cache",new dr(1e8));v(this,"_contextToResources",new Map)}addResource(t,e){e.request.url=ft(e.request.url),this._ensureResourcesForContext(t).push(e)}addFrameSnapshot(t,e,s){for(const o of e.resourceOverrides)o.url=ft(o.url);let r=this._frameSnapshots.get(e.frameId);r||(r={raw:[],renderers:[]},this._frameSnapshots.set(e.frameId,r),e.isMainFrame&&this._frameSnapshots.set(e.pageId,r)),r.raw.push(e);const i=this._ensureResourcesForContext(t),a=new er(this._cache,i,r.raw,s,r.raw.length-1);return r.renderers.push(a),a}snapshotByName(t,e){const s=this._frameSnapshots.get(t);return s==null?void 0:s.renderers.find(r=>r.snapshotName===e)}snapshotsForTest(){return[...this._frameSnapshots.keys()]}finalize(){for(const t of this._contextToResources.values())t.sort((e,s)=>(e._monotonicTime||0)-(s._monotonicTime||0))}_ensureResourcesForContext(t){let e=this._contextToResources.get(t);return e||(e=[],this._contextToResources.set(t,e)),e}}class Wn extends Error{constructor(t){super(t),this.name="TraceVersionError"}}const Bt=8;class hr{constructor(t,e){v(this,"_contextEntry");v(this,"_snapshotStorage");v(this,"_actionMap",new Map);v(this,"_version");v(this,"_pageEntries",new Map);v(this,"_jsHandles",new Map);v(this,"_consoleObjects",new Map);this._contextEntry=t,this._snapshotStorage=e}appendTrace(t){for(const e of t.split(`
3
+ `))this._appendEvent(e)}actions(){return[...this._actionMap.values()]}_pageEntry(t){let e=this._pageEntries.get(t);return e||(e={pageId:t,screencastFrames:[]},this._pageEntries.set(t,e),this._contextEntry.pages.push(e)),e}_appendEvent(t){if(!t)return;const e=this._modernize(JSON.parse(t));for(const s of e)this._innerAppendEvent(s)}_innerAppendEvent(t){const e=this._contextEntry;switch(t.type){case"context-options":{if(t.version>Bt)throw new Wn("The trace was created by a newer version of Playwright and is not supported by this version of the viewer. Please use latest Playwright to open the trace.");this._version=t.version,e.origin=t.origin,e.browserName=t.browserName,e.channel=t.channel,e.title=t.title,e.platform=t.platform,e.wallTime=t.wallTime,e.startTime=t.monotonicTime,e.sdkLanguage=t.sdkLanguage,e.options=t.options,e.testIdAttributeName=t.testIdAttributeName,e.contextId=t.contextId??"";break}case"screencast-frame":{this._pageEntry(t.pageId).screencastFrames.push(t);break}case"before":{this._actionMap.set(t.callId,{...t,type:"action",endTime:0,log:[]});break}case"input":{const s=this._actionMap.get(t.callId);s.inputSnapshot=t.inputSnapshot,s.point=t.point;break}case"log":{const s=this._actionMap.get(t.callId);if(!s)return;s.log.push({time:t.time,message:t.message});break}case"after":{const s=this._actionMap.get(t.callId);s.afterSnapshot=t.afterSnapshot,s.endTime=t.endTime,s.result=t.result,s.error=t.error,s.attachments=t.attachments,s.annotations=t.annotations,t.point&&(s.point=t.point);break}case"action":{this._actionMap.set(t.callId,{...t,log:[]});break}case"event":{e.events.push(t);break}case"stdout":{e.stdio.push(t);break}case"stderr":{e.stdio.push(t);break}case"error":{e.errors.push(t);break}case"console":{e.events.push(t);break}case"resource-snapshot":this._snapshotStorage.addResource(this._contextEntry.contextId,t.snapshot),e.resources.push(t.snapshot);break;case"frame-snapshot":this._snapshotStorage.addFrameSnapshot(this._contextEntry.contextId,t.snapshot,this._pageEntry(t.snapshot.pageId).screencastFrames);break}"pageId"in t&&t.pageId&&this._pageEntry(t.pageId),(t.type==="action"||t.type==="before")&&(e.startTime=Math.min(e.startTime,t.startTime)),(t.type==="action"||t.type==="after")&&(e.endTime=Math.max(e.endTime,t.endTime)),t.type==="event"&&(e.startTime=Math.min(e.startTime,t.time),e.endTime=Math.max(e.endTime,t.time)),t.type==="screencast-frame"&&(e.startTime=Math.min(e.startTime,t.timestamp),e.endTime=Math.max(e.endTime,t.timestamp))}_processedContextCreatedEvent(){return this._version!==void 0}_modernize(t){let e=this._version??t.version??6,s=[t];for(;e<Bt;++e)s=this[`_modernize_${e}_to_${e+1}`].call(this,s);return s}_modernize_0_to_1(t){for(const e of t)e.type==="action"&&typeof e.metadata.error=="string"&&(e.metadata.error={error:{name:"Error",message:e.metadata.error}});return t}_modernize_1_to_2(t){var e;for(const s of t)s.type!=="frame-snapshot"||!s.snapshot.isMainFrame||(s.snapshot.viewport=((e=this._contextEntry.options)==null?void 0:e.viewport)||{width:1280,height:720});return t}_modernize_2_to_3(t){for(const e of t){if(e.type!=="resource-snapshot"||e.snapshot.request)continue;const s=e.snapshot;e.snapshot={_frameref:s.frameId,request:{url:s.url,method:s.method,headers:s.requestHeaders,postData:s.requestSha1?{_sha1:s.requestSha1}:void 0},response:{status:s.status,headers:s.responseHeaders,content:{mimeType:s.contentType,_sha1:s.responseSha1}},_monotonicTime:s.timestamp}}return t}_modernize_3_to_4(t){const e=[];for(const s of t){const r=this._modernize_event_3_to_4(s);r&&e.push(r)}return e}_modernize_event_3_to_4(t){var s,r,i,a;if(t.type!=="action"&&t.type!=="event")return t;const e=t.metadata;return e.internal||e.method.startsWith("tracing")?null:t.type==="event"?e.method==="__create__"&&e.type==="ConsoleMessage"?{type:"object",class:e.type,guid:e.params.guid,initializer:e.params.initializer}:{type:"event",time:e.startTime,class:e.type,method:e.method,params:e.params,pageId:e.pageId}:{type:"action",callId:e.id,startTime:e.startTime,endTime:e.endTime,apiName:e.apiName||e.type+"."+e.method,class:e.type,method:e.method,params:e.params,wallTime:e.wallTime||Date.now(),log:e.log,beforeSnapshot:(s=e.snapshots.find(o=>o.title==="before"))==null?void 0:s.snapshotName,inputSnapshot:(r=e.snapshots.find(o=>o.title==="input"))==null?void 0:r.snapshotName,afterSnapshot:(i=e.snapshots.find(o=>o.title==="after"))==null?void 0:i.snapshotName,error:(a=e.error)==null?void 0:a.error,result:e.result,point:e.point,pageId:e.pageId}}_modernize_4_to_5(t){const e=[];for(const s of t){const r=this._modernize_event_4_to_5(s);r&&e.push(r)}return e}_modernize_event_4_to_5(t){var e,s;if(t.type==="event"&&t.method==="__create__"&&t.class==="JSHandle"&&this._jsHandles.set(t.params.guid,t.params.initializer),t.type==="object"){if(t.class!=="ConsoleMessage")return null;const r=(e=t.initializer.args)==null?void 0:e.map(i=>{if(i.guid){const a=this._jsHandles.get(i.guid);return{preview:(a==null?void 0:a.preview)||"",value:""}}return{preview:i.preview||"",value:i.value||""}});return this._consoleObjects.set(t.guid,{type:t.initializer.type,text:t.initializer.text,location:t.initializer.location,args:r}),null}if(t.type==="event"&&t.method==="console"){const r=this._consoleObjects.get(((s=t.params.message)==null?void 0:s.guid)||"");return r?{type:"console",time:t.time,pageId:t.pageId,messageType:r.type,text:r.text,args:r.args,location:r.location}:null}return t}_modernize_5_to_6(t){const e=[];for(const s of t)if(e.push(s),!(s.type!=="after"||!s.log.length))for(const r of s.log)e.push({type:"log",callId:s.callId,message:r,time:-1});return e}_modernize_6_to_7(t){const e=[];if(!this._processedContextCreatedEvent()&&t[0].type!=="context-options"){const s={type:"context-options",origin:"testRunner",version:6,browserName:"",options:{},platform:"unknown",wallTime:0,monotonicTime:0,sdkLanguage:"javascript",contextId:""};e.push(s)}for(const s of t){if(s.type==="context-options"){e.push({...s,monotonicTime:0,origin:"library",contextId:""});continue}if(s.type==="before"||s.type==="action"){this._contextEntry.wallTime||(this._contextEntry.wallTime=s.wallTime);const r=s,i=s;i.stepId=`${r.apiName}@${r.wallTime}`,e.push(i)}else e.push(s)}return e}_modernize_7_to_8(t){const e=[];for(const s of t)if(s.type==="before"||s.type==="action"){const r=s,i=s;r.apiName&&(i.title=r.apiName,delete i.apiName),i.stepId=r.stepId??r.callId,e.push(i)}else e.push(s);return e}}class pr{constructor(){v(this,"contextEntries",[]);v(this,"_snapshotStorage");v(this,"_backend");v(this,"_resourceToContentType",new Map)}async load(t,e){var o,l;this._backend=t;const s=[];let r=!1;for(const _ of await this._backend.entryNames()){const u=_.match(/(.+)\.trace$/);u&&s.push(u[1]||""),_.includes("src@")&&(r=!0)}if(!s.length)throw new Error("Cannot find .trace file");this._snapshotStorage=new _r;const i=s.length*3;let a=0;for(const _ of s){const u=mr();u.hasSource=r;const h=new hr(u,this._snapshotStorage),p=await this._backend.readText(_+".trace")||"";h.appendTrace(p),e(++a,i);const x=await this._backend.readText(_+".network")||"";if(h.appendTrace(x),e(++a,i),u.actions=h.actions().sort((f,c)=>f.startTime-c.startTime),!t.isLive()){for(const f of u.actions.slice().reverse())if(!f.endTime&&!f.error)for(const c of u.actions)c.parentId===f.callId&&f.endTime<c.endTime&&(f.endTime=c.endTime)}const S=await this._backend.readText(_+".stacks");if(S){const f=ur(JSON.parse(S));for(const c of u.actions)c.stack=c.stack||f.get(c.callId)}e(++a,i);for(const f of u.resources)(o=f.request.postData)!=null&&o._sha1&&this._resourceToContentType.set(f.request.postData._sha1,jt(f.request.postData.mimeType)),(l=f.response.content)!=null&&l._sha1&&this._resourceToContentType.set(f.response.content._sha1,jt(f.response.content.mimeType));this.contextEntries.push(u)}this._snapshotStorage.finalize()}async hasEntry(t){return this._backend.hasEntry(t)}async resourceForSha1(t){const e=await this._backend.readBlob("resources/"+t),s=this._resourceToContentType.get(t);return!e||s===void 0||s==="x-unknown"?e:new Blob([e],{type:s})}storage(){return this._snapshotStorage}}function jt(n){const t=n.match(/^(.*);\s*charset=.*$/);return t?t[1]:n}function mr(){return{origin:"testRunner",startTime:Number.MAX_SAFE_INTEGER,wallTime:Number.MAX_SAFE_INTEGER,endTime:0,browserName:"",options:{deviceScaleFactor:1,isMobile:!1,viewport:{width:1280,height:800}},pages:[],resources:[],actions:[],events:[],errors:[],stdio:[],hasSource:!1,contextId:""}}const wr=15,F=0,se=1,gr=2,X=-2,B=-3,Gt=-4,re=-5,$=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Bn=1440,br=0,yr=4,Er=9,xr=5,Tr=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],Sr=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],Rr=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Ar=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],Or=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],Ir=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ae=15;function dt(){const n=this;let t,e,s,r,i,a;function o(_,u,h,p,x,S,f,c,d,y,b){let g,A,m,R,E,O,T,w,C,I,k,P,D,U,L;I=0,E=h;do s[_[u+I]]++,I++,E--;while(E!==0);if(s[0]==h)return f[0]=-1,c[0]=0,F;for(w=c[0],O=1;O<=ae&&s[O]===0;O++);for(T=O,w<O&&(w=O),E=ae;E!==0&&s[E]===0;E--);for(m=E,w>E&&(w=E),c[0]=w,U=1<<O;O<E;O++,U<<=1)if((U-=s[O])<0)return B;if((U-=s[E])<0)return B;for(s[E]+=U,a[1]=O=0,I=1,D=2;--E!==0;)a[D]=O+=s[I],D++,I++;E=0,I=0;do(O=_[u+I])!==0&&(b[a[O]++]=E),I++;while(++E<h);for(h=a[m],a[0]=E=0,I=0,R=-1,P=-w,i[0]=0,k=0,L=0;T<=m;T++)for(g=s[T];g--!==0;){for(;T>P+w;){if(R++,P+=w,L=m-P,L=L>w?w:L,(A=1<<(O=T-P))>g+1&&(A-=g+1,D=T,O<L))for(;++O<L&&!((A<<=1)<=s[++D]);)A-=s[D];if(L=1<<O,y[0]+L>Bn)return B;i[R]=k=y[0],y[0]+=L,R!==0?(a[R]=E,r[0]=O,r[1]=w,O=E>>>P-w,r[2]=k-i[R-1]-O,d.set(r,(i[R-1]+O)*3)):f[0]=k}for(r[1]=T-P,I>=h?r[0]=192:b[I]<p?(r[0]=b[I]<256?0:96,r[2]=b[I++]):(r[0]=S[b[I]-p]+16+64,r[2]=x[b[I++]-p]),A=1<<T-P,O=E>>>P;O<L;O+=A)d.set(r,(k+O)*3);for(O=1<<T-1;(E&O)!==0;O>>>=1)E^=O;for(E^=O,C=(1<<P)-1;(E&C)!=a[R];)R--,P-=w,C=(1<<P)-1}return U!==0&&m!=1?re:F}function l(_){let u;for(t||(t=[],e=[],s=new Int32Array(ae+1),r=[],i=new Int32Array(ae),a=new Int32Array(ae+1)),e.length<_&&(e=[]),u=0;u<_;u++)e[u]=0;for(u=0;u<ae+1;u++)s[u]=0;for(u=0;u<3;u++)r[u]=0;i.set(s.subarray(0,ae),0),a.set(s.subarray(0,ae+1),0)}n.inflate_trees_bits=function(_,u,h,p,x){let S;return l(19),t[0]=0,S=o(_,0,19,19,null,null,h,u,p,t,e),S==B?x.msg="oversubscribed dynamic bit lengths tree":(S==re||u[0]===0)&&(x.msg="incomplete dynamic bit lengths tree",S=B),S},n.inflate_trees_dynamic=function(_,u,h,p,x,S,f,c,d){let y;return l(288),t[0]=0,y=o(h,0,_,257,Rr,Ar,S,p,c,t,e),y!=F||p[0]===0?(y==B?d.msg="oversubscribed literal/length tree":y!=Gt&&(d.msg="incomplete literal/length tree",y=B),y):(l(288),y=o(h,_,u,0,Or,Ir,f,x,c,t,e),y!=F||x[0]===0&&_>257?(y==B?d.msg="oversubscribed distance tree":y==re?(d.msg="incomplete distance tree",y=B):y!=Gt&&(d.msg="empty distance tree with lengths",y=B),y):F)}}dt.inflate_trees_fixed=function(n,t,e,s){return n[0]=Er,t[0]=xr,e[0]=Tr,s[0]=Sr,F};const We=0,Yt=1,qt=2,Vt=3,Zt=4,Kt=5,Xt=6,et=7,$t=8,Be=9;function Cr(){const n=this;let t,e=0,s,r=0,i=0,a=0,o=0,l=0,_=0,u=0,h,p=0,x,S=0;function f(c,d,y,b,g,A,m,R){let E,O,T,w,C,I,k,P,D,U,L,Z,N,Q,M,H;k=R.next_in_index,P=R.avail_in,C=m.bitb,I=m.bitk,D=m.write,U=D<m.read?m.read-D-1:m.end-D,L=$[c],Z=$[d];do{for(;I<20;)P--,C|=(R.read_byte(k++)&255)<<I,I+=8;if(E=C&L,O=y,T=b,H=(T+E)*3,(w=O[H])===0){C>>=O[H+1],I-=O[H+1],m.win[D++]=O[H+2],U--;continue}do{if(C>>=O[H+1],I-=O[H+1],(w&16)!==0){for(w&=15,N=O[H+2]+(C&$[w]),C>>=w,I-=w;I<15;)P--,C|=(R.read_byte(k++)&255)<<I,I+=8;E=C&Z,O=g,T=A,H=(T+E)*3,w=O[H];do if(C>>=O[H+1],I-=O[H+1],(w&16)!==0){for(w&=15;I<w;)P--,C|=(R.read_byte(k++)&255)<<I,I+=8;if(Q=O[H+2]+(C&$[w]),C>>=w,I-=w,U-=N,D>=Q)M=D-Q,D-M>0&&2>D-M?(m.win[D++]=m.win[M++],m.win[D++]=m.win[M++],N-=2):(m.win.set(m.win.subarray(M,M+2),D),D+=2,M+=2,N-=2);else{M=D-Q;do M+=m.end;while(M<0);if(w=m.end-M,N>w){if(N-=w,D-M>0&&w>D-M)do m.win[D++]=m.win[M++];while(--w!==0);else m.win.set(m.win.subarray(M,M+w),D),D+=w,M+=w,w=0;M=0}}if(D-M>0&&N>D-M)do m.win[D++]=m.win[M++];while(--N!==0);else m.win.set(m.win.subarray(M,M+N),D),D+=N,M+=N,N=0;break}else if((w&64)===0)E+=O[H+2],E+=C&$[w],H=(T+E)*3,w=O[H];else return R.msg="invalid distance code",N=R.avail_in-P,N=I>>3<N?I>>3:N,P+=N,k-=N,I-=N<<3,m.bitb=C,m.bitk=I,R.avail_in=P,R.total_in+=k-R.next_in_index,R.next_in_index=k,m.write=D,B;while(!0);break}if((w&64)===0){if(E+=O[H+2],E+=C&$[w],H=(T+E)*3,(w=O[H])===0){C>>=O[H+1],I-=O[H+1],m.win[D++]=O[H+2],U--;break}}else return(w&32)!==0?(N=R.avail_in-P,N=I>>3<N?I>>3:N,P+=N,k-=N,I-=N<<3,m.bitb=C,m.bitk=I,R.avail_in=P,R.total_in+=k-R.next_in_index,R.next_in_index=k,m.write=D,se):(R.msg="invalid literal/length code",N=R.avail_in-P,N=I>>3<N?I>>3:N,P+=N,k-=N,I-=N<<3,m.bitb=C,m.bitk=I,R.avail_in=P,R.total_in+=k-R.next_in_index,R.next_in_index=k,m.write=D,B)}while(!0)}while(U>=258&&P>=10);return N=R.avail_in-P,N=I>>3<N?I>>3:N,P+=N,k-=N,I-=N<<3,m.bitb=C,m.bitk=I,R.avail_in=P,R.total_in+=k-R.next_in_index,R.next_in_index=k,m.write=D,F}n.init=function(c,d,y,b,g,A){t=We,_=c,u=d,h=y,p=b,x=g,S=A,s=null},n.proc=function(c,d,y){let b,g,A,m=0,R=0,E=0,O,T,w,C;for(E=d.next_in_index,O=d.avail_in,m=c.bitb,R=c.bitk,T=c.write,w=T<c.read?c.read-T-1:c.end-T;;)switch(t){case We:if(w>=258&&O>=10&&(c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,y=f(_,u,h,p,x,S,c,d),E=d.next_in_index,O=d.avail_in,m=c.bitb,R=c.bitk,T=c.write,w=T<c.read?c.read-T-1:c.end-T,y!=F)){t=y==se?et:Be;break}i=_,s=h,r=p,t=Yt;case Yt:for(b=i;R<b;){if(O!==0)y=F;else return c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y);O--,m|=(d.read_byte(E++)&255)<<R,R+=8}if(g=(r+(m&$[b]))*3,m>>>=s[g+1],R-=s[g+1],A=s[g],A===0){a=s[g+2],t=Xt;break}if((A&16)!==0){o=A&15,e=s[g+2],t=qt;break}if((A&64)===0){i=A,r=g/3+s[g+2];break}if((A&32)!==0){t=et;break}return t=Be,d.msg="invalid literal/length code",y=B,c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y);case qt:for(b=o;R<b;){if(O!==0)y=F;else return c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y);O--,m|=(d.read_byte(E++)&255)<<R,R+=8}e+=m&$[b],m>>=b,R-=b,i=u,s=x,r=S,t=Vt;case Vt:for(b=i;R<b;){if(O!==0)y=F;else return c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y);O--,m|=(d.read_byte(E++)&255)<<R,R+=8}if(g=(r+(m&$[b]))*3,m>>=s[g+1],R-=s[g+1],A=s[g],(A&16)!==0){o=A&15,l=s[g+2],t=Zt;break}if((A&64)===0){i=A,r=g/3+s[g+2];break}return t=Be,d.msg="invalid distance code",y=B,c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y);case Zt:for(b=o;R<b;){if(O!==0)y=F;else return c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y);O--,m|=(d.read_byte(E++)&255)<<R,R+=8}l+=m&$[b],m>>=b,R-=b,t=Kt;case Kt:for(C=T-l;C<0;)C+=c.end;for(;e!==0;){if(w===0&&(T==c.end&&c.read!==0&&(T=0,w=T<c.read?c.read-T-1:c.end-T),w===0&&(c.write=T,y=c.inflate_flush(d,y),T=c.write,w=T<c.read?c.read-T-1:c.end-T,T==c.end&&c.read!==0&&(T=0,w=T<c.read?c.read-T-1:c.end-T),w===0)))return c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y);c.win[T++]=c.win[C++],w--,C==c.end&&(C=0),e--}t=We;break;case Xt:if(w===0&&(T==c.end&&c.read!==0&&(T=0,w=T<c.read?c.read-T-1:c.end-T),w===0&&(c.write=T,y=c.inflate_flush(d,y),T=c.write,w=T<c.read?c.read-T-1:c.end-T,T==c.end&&c.read!==0&&(T=0,w=T<c.read?c.read-T-1:c.end-T),w===0)))return c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y);y=F,c.win[T++]=a,w--,t=We;break;case et:if(R>7&&(R-=8,O++,E--),c.write=T,y=c.inflate_flush(d,y),T=c.write,w=T<c.read?c.read-T-1:c.end-T,c.read!=c.write)return c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y);t=$t;case $t:return y=se,c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y);case Be:return y=B,c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y);default:return y=X,c.bitb=m,c.bitk=R,d.avail_in=O,d.total_in+=E-d.next_in_index,d.next_in_index=E,c.write=T,c.inflate_flush(d,y)}},n.free=function(){}}const Jt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],be=0,tt=1,Qt=2,zt=3,en=4,tn=5,je=6,Ge=7,nn=8,me=9;function Pr(n,t){const e=this;let s=be,r=0,i=0,a=0,o;const l=[0],_=[0],u=new Cr;let h=0,p=new Int32Array(Bn*3);const x=0,S=new dt;e.bitk=0,e.bitb=0,e.win=new Uint8Array(t),e.end=t,e.read=0,e.write=0,e.reset=function(f,c){c&&(c[0]=x),s==je&&u.free(f),s=be,e.bitk=0,e.bitb=0,e.read=e.write=0},e.reset(n,null),e.inflate_flush=function(f,c){let d,y,b;return y=f.next_out_index,b=e.read,d=(b<=e.write?e.write:e.end)-b,d>f.avail_out&&(d=f.avail_out),d!==0&&c==re&&(c=F),f.avail_out-=d,f.total_out+=d,f.next_out.set(e.win.subarray(b,b+d),y),y+=d,b+=d,b==e.end&&(b=0,e.write==e.end&&(e.write=0),d=e.write-b,d>f.avail_out&&(d=f.avail_out),d!==0&&c==re&&(c=F),f.avail_out-=d,f.total_out+=d,f.next_out.set(e.win.subarray(b,b+d),y),y+=d,b+=d),f.next_out_index=y,e.read=b,c},e.proc=function(f,c){let d,y,b,g,A,m,R,E;for(g=f.next_in_index,A=f.avail_in,y=e.bitb,b=e.bitk,m=e.write,R=m<e.read?e.read-m-1:e.end-m;;){let O,T,w,C,I,k,P,D;switch(s){case be:for(;b<3;){if(A!==0)c=F;else return e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);A--,y|=(f.read_byte(g++)&255)<<b,b+=8}switch(d=y&7,h=d&1,d>>>1){case 0:y>>>=3,b-=3,d=b&7,y>>>=d,b-=d,s=tt;break;case 1:O=[],T=[],w=[[]],C=[[]],dt.inflate_trees_fixed(O,T,w,C),u.init(O[0],T[0],w[0],0,C[0],0),y>>>=3,b-=3,s=je;break;case 2:y>>>=3,b-=3,s=zt;break;case 3:return y>>>=3,b-=3,s=me,f.msg="invalid block type",c=B,e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c)}break;case tt:for(;b<32;){if(A!==0)c=F;else return e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);A--,y|=(f.read_byte(g++)&255)<<b,b+=8}if((~y>>>16&65535)!=(y&65535))return s=me,f.msg="invalid stored block lengths",c=B,e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);r=y&65535,y=b=0,s=r!==0?Qt:h!==0?Ge:be;break;case Qt:if(A===0||R===0&&(m==e.end&&e.read!==0&&(m=0,R=m<e.read?e.read-m-1:e.end-m),R===0&&(e.write=m,c=e.inflate_flush(f,c),m=e.write,R=m<e.read?e.read-m-1:e.end-m,m==e.end&&e.read!==0&&(m=0,R=m<e.read?e.read-m-1:e.end-m),R===0)))return e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);if(c=F,d=r,d>A&&(d=A),d>R&&(d=R),e.win.set(f.read_buf(g,d),m),g+=d,A-=d,m+=d,R-=d,(r-=d)!==0)break;s=h!==0?Ge:be;break;case zt:for(;b<14;){if(A!==0)c=F;else return e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);A--,y|=(f.read_byte(g++)&255)<<b,b+=8}if(i=d=y&16383,(d&31)>29||(d>>5&31)>29)return s=me,f.msg="too many length or distance symbols",c=B,e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);if(d=258+(d&31)+(d>>5&31),!o||o.length<d)o=[];else for(E=0;E<d;E++)o[E]=0;y>>>=14,b-=14,a=0,s=en;case en:for(;a<4+(i>>>10);){for(;b<3;){if(A!==0)c=F;else return e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);A--,y|=(f.read_byte(g++)&255)<<b,b+=8}o[Jt[a++]]=y&7,y>>>=3,b-=3}for(;a<19;)o[Jt[a++]]=0;if(l[0]=7,d=S.inflate_trees_bits(o,l,_,p,f),d!=F)return c=d,c==B&&(o=null,s=me),e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);a=0,s=tn;case tn:for(;d=i,!(a>=258+(d&31)+(d>>5&31));){let U,L;for(d=l[0];b<d;){if(A!==0)c=F;else return e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);A--,y|=(f.read_byte(g++)&255)<<b,b+=8}if(d=p[(_[0]+(y&$[d]))*3+1],L=p[(_[0]+(y&$[d]))*3+2],L<16)y>>>=d,b-=d,o[a++]=L;else{for(E=L==18?7:L-14,U=L==18?11:3;b<d+E;){if(A!==0)c=F;else return e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);A--,y|=(f.read_byte(g++)&255)<<b,b+=8}if(y>>>=d,b-=d,U+=y&$[E],y>>>=E,b-=E,E=a,d=i,E+U>258+(d&31)+(d>>5&31)||L==16&&E<1)return o=null,s=me,f.msg="invalid bit length repeat",c=B,e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);L=L==16?o[E-1]:0;do o[E++]=L;while(--U!==0);a=E}}if(_[0]=-1,I=[],k=[],P=[],D=[],I[0]=9,k[0]=6,d=i,d=S.inflate_trees_dynamic(257+(d&31),1+(d>>5&31),o,I,k,P,D,p,f),d!=F)return d==B&&(o=null,s=me),c=d,e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);u.init(I[0],k[0],p,P[0],p,D[0]),s=je;case je:if(e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,(c=u.proc(e,f,c))!=se)return e.inflate_flush(f,c);if(c=F,u.free(f),g=f.next_in_index,A=f.avail_in,y=e.bitb,b=e.bitk,m=e.write,R=m<e.read?e.read-m-1:e.end-m,h===0){s=be;break}s=Ge;case Ge:if(e.write=m,c=e.inflate_flush(f,c),m=e.write,R=m<e.read?e.read-m-1:e.end-m,e.read!=e.write)return e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);s=nn;case nn:return c=se,e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);case me:return c=B,e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c);default:return c=X,e.bitb=y,e.bitk=b,f.avail_in=A,f.total_in+=g-f.next_in_index,f.next_in_index=g,e.write=m,e.inflate_flush(f,c)}}},e.free=function(f){e.reset(f,null),e.win=null,p=null},e.set_dictionary=function(f,c,d){e.win.set(f.subarray(c,c+d),0),e.read=e.write=d},e.sync_point=function(){return s==tt?1:0}}const Nr=32,Dr=8,kr=0,sn=1,rn=2,an=3,on=4,cn=5,nt=6,Re=7,ln=12,oe=13,Lr=[0,0,255,255];function vr(){const n=this;n.mode=0,n.method=0,n.was=[0],n.need=0,n.marker=0,n.wbits=0;function t(e){return!e||!e.istate?X:(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=Re,e.istate.blocks.reset(e,null),F)}n.inflateEnd=function(e){return n.blocks&&n.blocks.free(e),n.blocks=null,F},n.inflateInit=function(e,s){return e.msg=null,n.blocks=null,s<8||s>15?(n.inflateEnd(e),X):(n.wbits=s,e.istate.blocks=new Pr(e,1<<s),t(e),F)},n.inflate=function(e,s){let r,i;if(!e||!e.istate||!e.next_in)return X;const a=e.istate;for(s=s==yr?re:F,r=re;;)switch(a.mode){case kr:if(e.avail_in===0)return r;if(r=s,e.avail_in--,e.total_in++,((a.method=e.read_byte(e.next_in_index++))&15)!=Dr){a.mode=oe,e.msg="unknown compression method",a.marker=5;break}if((a.method>>4)+8>a.wbits){a.mode=oe,e.msg="invalid win size",a.marker=5;break}a.mode=sn;case sn:if(e.avail_in===0)return r;if(r=s,e.avail_in--,e.total_in++,i=e.read_byte(e.next_in_index++)&255,((a.method<<8)+i)%31!==0){a.mode=oe,e.msg="incorrect header check",a.marker=5;break}if((i&Nr)===0){a.mode=Re;break}a.mode=rn;case rn:if(e.avail_in===0)return r;r=s,e.avail_in--,e.total_in++,a.need=(e.read_byte(e.next_in_index++)&255)<<24&4278190080,a.mode=an;case an:if(e.avail_in===0)return r;r=s,e.avail_in--,e.total_in++,a.need+=(e.read_byte(e.next_in_index++)&255)<<16&16711680,a.mode=on;case on:if(e.avail_in===0)return r;r=s,e.avail_in--,e.total_in++,a.need+=(e.read_byte(e.next_in_index++)&255)<<8&65280,a.mode=cn;case cn:return e.avail_in===0?r:(r=s,e.avail_in--,e.total_in++,a.need+=e.read_byte(e.next_in_index++)&255,a.mode=nt,gr);case nt:return a.mode=oe,e.msg="need dictionary",a.marker=0,X;case Re:if(r=a.blocks.proc(e,r),r==B){a.mode=oe,a.marker=0;break}if(r==F&&(r=s),r!=se)return r;r=s,a.blocks.reset(e,a.was),a.mode=ln;case ln:return e.avail_in=0,se;case oe:return B;default:return X}},n.inflateSetDictionary=function(e,s,r){let i=0,a=r;if(!e||!e.istate||e.istate.mode!=nt)return X;const o=e.istate;return a>=1<<o.wbits&&(a=(1<<o.wbits)-1,i=r-a),o.blocks.set_dictionary(s,i,a),o.mode=Re,F},n.inflateSync=function(e){let s,r,i,a,o;if(!e||!e.istate)return X;const l=e.istate;if(l.mode!=oe&&(l.mode=oe,l.marker=0),(s=e.avail_in)===0)return re;for(r=e.next_in_index,i=l.marker;s!==0&&i<4;)e.read_byte(r)==Lr[i]?i++:e.read_byte(r)!==0?i=0:i=4-i,r++,s--;return e.total_in+=r-e.next_in_index,e.next_in_index=r,e.avail_in=s,l.marker=i,i!=4?B:(a=e.total_in,o=e.total_out,t(e),e.total_in=a,e.total_out=o,l.mode=Re,F)},n.inflateSyncPoint=function(e){return!e||!e.istate||!e.istate.blocks?X:e.istate.blocks.sync_point()}}function jn(){}jn.prototype={inflateInit(n){const t=this;return t.istate=new vr,n||(n=wr),t.istate.inflateInit(t,n)},inflate(n){const t=this;return t.istate?t.istate.inflate(t,n):X},inflateEnd(){const n=this;if(!n.istate)return X;const t=n.istate.inflateEnd(n);return n.istate=null,t},inflateSync(){const n=this;return n.istate?n.istate.inflateSync(n):X},inflateSetDictionary(n,t){const e=this;return e.istate?e.istate.inflateSetDictionary(e,n,t):X},read_byte(n){return this.next_in[n]},read_buf(n,t){return this.next_in.subarray(n,n+t)}};function Fr(n){const t=this,e=new jn,s=n&&n.chunkSize?Math.floor(n.chunkSize*2):128*1024,r=br,i=new Uint8Array(s);let a=!1;e.inflateInit(),e.next_out=i,t.append=function(o,l){const _=[];let u,h,p=0,x=0,S=0;if(o.length!==0){e.next_in_index=0,e.next_in=o,e.avail_in=o.length;do{if(e.next_out_index=0,e.avail_out=s,e.avail_in===0&&!a&&(e.next_in_index=0,a=!0),u=e.inflate(r),a&&u===re){if(e.avail_in!==0)throw new Error("inflating: bad input")}else if(u!==F&&u!==se)throw new Error("inflating: "+e.msg);if((a||u===se)&&e.avail_in===o.length)throw new Error("inflating: bad input");e.next_out_index&&(e.next_out_index===s?_.push(new Uint8Array(i)):_.push(i.subarray(0,e.next_out_index))),S+=e.next_out_index,l&&e.next_in_index>0&&e.next_in_index!=p&&(l(e.next_in_index),p=e.next_in_index)}while(e.avail_in>0||e.avail_out===0);return _.length>1?(h=new Uint8Array(S),_.forEach(function(f){h.set(f,x),x+=f.length})):h=_[0]?new Uint8Array(_[0]):new Uint8Array,h}},t.flush=function(){e.inflateEnd()}}const we=4294967295,fe=65535,Mr=8,Ur=0,Hr=99,Wr=67324752,Gn=134695760,Br=Gn,fn=33639248,jr=101010256,un=101075792,Gr=117853008,ne=22,st=20,rt=56,Yr=12,qr=20,dn=4,Vr=1,Zr=39169,Kr=10,Xr=1,$r=21589,Jr=28789,Qr=25461,zr=6534,_n=1,ei=6,hn=8,pn=2048,mn=16,ti=61440,ni=16384,si=73,wn="/",it=30,ri=10,ii=14,ai=18,G=void 0,he="undefined",ke="function";class gn{constructor(t){return class extends TransformStream{constructor(e,s){const r=new t(s);super({transform(i,a){a.enqueue(r.append(i))},flush(i){const a=r.flush();a&&i.enqueue(a)}})}}}}const oi=64;let Yn=2;try{typeof navigator!=he&&navigator.hardwareConcurrency&&(Yn=navigator.hardwareConcurrency)}catch{}const ci={chunkSize:512*1024,maxWorkers:Yn,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:G,CompressionStreamNative:typeof CompressionStream!=he&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=he&&DecompressionStream},ue=Object.assign({},ci);function qn(){return ue}function li(n){return Math.max(n.chunkSize,oi)}function Vn(n){const{baseURL:t,chunkSize:e,maxWorkers:s,terminateWorkerTimeout:r,useCompressionStream:i,useWebWorkers:a,Deflate:o,Inflate:l,CompressionStream:_,DecompressionStream:u,workerScripts:h}=n;if(ce("baseURL",t),ce("chunkSize",e),ce("maxWorkers",s),ce("terminateWorkerTimeout",r),ce("useCompressionStream",i),ce("useWebWorkers",a),o&&(ue.CompressionStream=new gn(o)),l&&(ue.DecompressionStream=new gn(l)),ce("CompressionStream",_),ce("DecompressionStream",u),h!==G){const{deflate:p,inflate:x}=h;if((p||x)&&(ue.workerScripts||(ue.workerScripts={})),p){if(!Array.isArray(p))throw new Error("workerScripts.deflate must be an array");ue.workerScripts.deflate=p}if(x){if(!Array.isArray(x))throw new Error("workerScripts.inflate must be an array");ue.workerScripts.inflate=x}}}function ce(n,t){t!==G&&(ue[n]=t)}function fi(){return"application/octet-stream"}const Zn=[];for(let n=0;n<256;n++){let t=n;for(let e=0;e<8;e++)t&1?t=t>>>1^3988292384:t=t>>>1;Zn[n]=t}class Ze{constructor(t){this.crc=t||-1}append(t){let e=this.crc|0;for(let s=0,r=t.length|0;s<r;s++)e=e>>>8^Zn[(e^t[s])&255];this.crc=e}get(){return~this.crc}}class Kn extends TransformStream{constructor(){let t;const e=new Ze;super({transform(s,r){e.append(s),r.enqueue(s)},flush(){const s=new Uint8Array(4);new DataView(s.buffer).setUint32(0,e.get()),t.value=s}}),t=this}}function ui(n){if(typeof TextEncoder==he){n=unescape(encodeURIComponent(n));const t=new Uint8Array(n.length);for(let e=0;e<t.length;e++)t[e]=n.charCodeAt(e);return t}else return new TextEncoder().encode(n)}const K={concat(n,t){if(n.length===0||t.length===0)return n.concat(t);const e=n[n.length-1],s=K.getPartial(e);return s===32?n.concat(t):K._shiftRight(t,s,e|0,n.slice(0,n.length-1))},bitLength(n){const t=n.length;if(t===0)return 0;const e=n[t-1];return(t-1)*32+K.getPartial(e)},clamp(n,t){if(n.length*32<t)return n;n=n.slice(0,Math.ceil(t/32));const e=n.length;return t=t&31,e>0&&t&&(n[e-1]=K.partial(t,n[e-1]&2147483648>>t-1,1)),n},partial(n,t,e){return n===32?t:(e?t|0:t<<32-n)+n*1099511627776},getPartial(n){return Math.round(n/1099511627776)||32},_shiftRight(n,t,e,s){for(s===void 0&&(s=[]);t>=32;t-=32)s.push(e),e=0;if(t===0)return s.concat(n);for(let a=0;a<n.length;a++)s.push(e|n[a]>>>t),e=n[a]<<32-t;const r=n.length?n[n.length-1]:0,i=K.getPartial(r);return s.push(K.partial(t+i&31,t+i>32?e:s.pop(),1)),s}},Ke={bytes:{fromBits(n){const e=K.bitLength(n)/8,s=new Uint8Array(e);let r;for(let i=0;i<e;i++)(i&3)===0&&(r=n[i/4]),s[i]=r>>>24,r<<=8;return s},toBits(n){const t=[];let e,s=0;for(e=0;e<n.length;e++)s=s<<8|n[e],(e&3)===3&&(t.push(s),s=0);return e&3&&t.push(K.partial(8*(e&3),s)),t}}},Xn={};Xn.sha1=class{constructor(n){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],n?(t._h=n._h.slice(0),t._buffer=n._buffer.slice(0),t._length=n._length):t.reset()}reset(){const n=this;return n._h=n._init.slice(0),n._buffer=[],n._length=0,n}update(n){const t=this;typeof n=="string"&&(n=Ke.utf8String.toBits(n));const e=t._buffer=K.concat(t._buffer,n),s=t._length,r=t._length=s+K.bitLength(n);if(r>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const i=new Uint32Array(e);let a=0;for(let o=t.blockSize+s-(t.blockSize+s&t.blockSize-1);o<=r;o+=t.blockSize)t._block(i.subarray(16*a,16*(a+1))),a+=1;return e.splice(0,16*a),t}finalize(){const n=this;let t=n._buffer;const e=n._h;t=K.concat(t,[K.partial(1,1)]);for(let s=t.length+2;s&15;s++)t.push(0);for(t.push(Math.floor(n._length/4294967296)),t.push(n._length|0);t.length;)n._block(t.splice(0,16));return n.reset(),e}_f(n,t,e,s){if(n<=19)return t&e|~t&s;if(n<=39)return t^e^s;if(n<=59)return t&e|t&s|e&s;if(n<=79)return t^e^s}_S(n,t){return t<<n|t>>>32-n}_block(n){const t=this,e=t._h,s=Array(80);for(let _=0;_<16;_++)s[_]=n[_];let r=e[0],i=e[1],a=e[2],o=e[3],l=e[4];for(let _=0;_<=79;_++){_>=16&&(s[_]=t._S(1,s[_-3]^s[_-8]^s[_-14]^s[_-16]));const u=t._S(5,r)+t._f(_,i,a,o)+l+s[_]+t._key[Math.floor(_/20)]|0;l=o,o=a,a=t._S(30,i),i=r,r=u}e[0]=e[0]+r|0,e[1]=e[1]+i|0,e[2]=e[2]+a|0,e[3]=e[3]+o|0,e[4]=e[4]+l|0}};const $n={};$n.aes=class{constructor(n){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const e=t._tables[0][4],s=t._tables[1],r=n.length;let i,a,o,l=1;if(r!==4&&r!==6&&r!==8)throw new Error("invalid aes key size");for(t._key=[a=n.slice(0),o=[]],i=r;i<4*r+28;i++){let _=a[i-1];(i%r===0||r===8&&i%r===4)&&(_=e[_>>>24]<<24^e[_>>16&255]<<16^e[_>>8&255]<<8^e[_&255],i%r===0&&(_=_<<8^_>>>24^l<<24,l=l<<1^(l>>7)*283)),a[i]=a[i-r]^_}for(let _=0;i;_++,i--){const u=a[_&3?i:i-4];i<=4||_<4?o[_]=u:o[_]=s[0][e[u>>>24]]^s[1][e[u>>16&255]]^s[2][e[u>>8&255]]^s[3][e[u&255]]}}encrypt(n){return this._crypt(n,0)}decrypt(n){return this._crypt(n,1)}_precompute(){const n=this._tables[0],t=this._tables[1],e=n[4],s=t[4],r=[],i=[];let a,o,l,_;for(let u=0;u<256;u++)i[(r[u]=u<<1^(u>>7)*283)^u]=u;for(let u=a=0;!e[u];u^=o||1,a=i[a]||1){let h=a^a<<1^a<<2^a<<3^a<<4;h=h>>8^h&255^99,e[u]=h,s[h]=u,_=r[l=r[o=r[u]]];let p=_*16843009^l*65537^o*257^u*16843008,x=r[h]*257^h*16843008;for(let S=0;S<4;S++)n[S][u]=x=x<<24^x>>>8,t[S][h]=p=p<<24^p>>>8}for(let u=0;u<5;u++)n[u]=n[u].slice(0),t[u]=t[u].slice(0)}_crypt(n,t){if(n.length!==4)throw new Error("invalid aes block size");const e=this._key[t],s=e.length/4-2,r=[0,0,0,0],i=this._tables[t],a=i[0],o=i[1],l=i[2],_=i[3],u=i[4];let h=n[0]^e[0],p=n[t?3:1]^e[1],x=n[2]^e[2],S=n[t?1:3]^e[3],f=4,c,d,y;for(let b=0;b<s;b++)c=a[h>>>24]^o[p>>16&255]^l[x>>8&255]^_[S&255]^e[f],d=a[p>>>24]^o[x>>16&255]^l[S>>8&255]^_[h&255]^e[f+1],y=a[x>>>24]^o[S>>16&255]^l[h>>8&255]^_[p&255]^e[f+2],S=a[S>>>24]^o[h>>16&255]^l[p>>8&255]^_[x&255]^e[f+3],f+=4,h=c,p=d,x=y;for(let b=0;b<4;b++)r[t?3&-b:b]=u[h>>>24]<<24^u[p>>16&255]<<16^u[x>>8&255]<<8^u[S&255]^e[f++],c=h,h=p,p=x,x=S,S=c;return r}};const di={getRandomValues(n){const t=new Uint32Array(n.buffer),e=s=>{let r=987654321;const i=4294967295;return function(){return r=36969*(r&65535)+(r>>16)&i,s=18e3*(s&65535)+(s>>16)&i,(((r<<16)+s&i)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let s=0,r;s<n.length;s+=4){const i=e((r||Math.random())*4294967296);r=i()*987654071,t[s/4]=i()*4294967296|0}return n}},Jn={};Jn.ctrGladman=class{constructor(n,t){this._prf=n,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(n){return this.calculate(this._prf,n,this._iv)}incWord(n){if((n>>24&255)===255){let t=n>>16&255,e=n>>8&255,s=n&255;t===255?(t=0,e===255?(e=0,s===255?s=0:++s):++e):++t,n=0,n+=t<<16,n+=e<<8,n+=s}else n+=1<<24;return n}incCounter(n){(n[0]=this.incWord(n[0]))===0&&(n[1]=this.incWord(n[1]))}calculate(n,t,e){let s;if(!(s=t.length))return[];const r=K.bitLength(t);for(let i=0;i<s;i+=4){this.incCounter(e);const a=n.encrypt(e);t[i]^=a[0],t[i+1]^=a[1],t[i+2]^=a[2],t[i+3]^=a[3]}return K.clamp(t,r)}};const ge={importKey(n){return new ge.hmacSha1(Ke.bytes.toBits(n))},pbkdf2(n,t,e,s){if(e=e||1e4,s<0||e<0)throw new Error("invalid params to pbkdf2");const r=(s>>5)+1<<2;let i,a,o,l,_;const u=new ArrayBuffer(r),h=new DataView(u);let p=0;const x=K;for(t=Ke.bytes.toBits(t),_=1;p<(r||1);_++){for(i=a=n.encrypt(x.concat(t,[_])),o=1;o<e;o++)for(a=n.encrypt(a),l=0;l<a.length;l++)i[l]^=a[l];for(o=0;p<(r||1)&&o<i.length;o++)h.setInt32(p,i[o]),p+=4}return u.slice(0,s/8)}};ge.hmacSha1=class{constructor(n){const t=this,e=t._hash=Xn.sha1,s=[[],[]];t._baseHash=[new e,new e];const r=t._baseHash[0].blockSize/32;n.length>r&&(n=new e().update(n).finalize());for(let i=0;i<r;i++)s[0][i]=n[i]^909522486,s[1][i]=n[i]^1549556828;t._baseHash[0].update(s[0]),t._baseHash[1].update(s[1]),t._resultHash=new e(t._baseHash[0])}reset(){const n=this;n._resultHash=new n._hash(n._baseHash[0]),n._updated=!1}update(n){const t=this;t._updated=!0,t._resultHash.update(n)}digest(){const n=this,t=n._resultHash.finalize(),e=new n._hash(n._baseHash[1]).update(t).finalize();return n.reset(),e}encrypt(n){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(n),this.digest(n)}};const _i=typeof crypto!=he&&typeof crypto.getRandomValues==ke,xt="Invalid password",Tt="Invalid signature",St="zipjs-abort-check-password";function Qn(n){return _i?crypto.getRandomValues(n):di.getRandomValues(n)}const ye=16,hi="raw",zn={name:"PBKDF2"},pi={name:"HMAC"},mi="SHA-1",wi=Object.assign({hash:pi},zn),_t=Object.assign({iterations:1e3,hash:{name:mi}},zn),gi=["deriveBits"],Ce=[8,12,16],Ae=[16,24,32],le=10,bi=[0,0,0,0],Je=typeof crypto!=he,Le=Je&&crypto.subtle,es=Je&&typeof Le!=he,ee=Ke.bytes,yi=$n.aes,Ei=Jn.ctrGladman,xi=ge.hmacSha1;let bn=Je&&es&&typeof Le.importKey==ke,yn=Je&&es&&typeof Le.deriveBits==ke;class Ti extends TransformStream{constructor({password:t,rawPassword:e,signed:s,encryptionStrength:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{ready:new Promise(a=>this.resolveReady=a),password:ss(t,e),signed:s,strength:r-1,pending:new Uint8Array})},async transform(a,o){const l=this,{password:_,strength:u,resolveReady:h,ready:p}=l;_?(await Ri(l,u,_,J(a,0,Ce[u]+2)),a=J(a,Ce[u]+2),i?o.error(new Error(St)):h()):await p;const x=new Uint8Array(a.length-le-(a.length-le)%ye);o.enqueue(ts(l,a,x,0,le,!0))},async flush(a){const{signed:o,ctr:l,hmac:_,pending:u,ready:h}=this;if(_&&l){await h;const p=J(u,0,u.length-le),x=J(u,u.length-le);let S=new Uint8Array;if(p.length){const f=Ne(ee,p);_.update(f);const c=l.update(f);S=Pe(ee,c)}if(o){const f=J(Pe(ee,_.digest()),0,le);for(let c=0;c<le;c++)if(f[c]!=x[c])throw new Error(Tt)}a.enqueue(S)}}})}}class Si extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:s}){let r;super({start(){Object.assign(this,{ready:new Promise(i=>this.resolveReady=i),password:ss(t,e),strength:s-1,pending:new Uint8Array})},async transform(i,a){const o=this,{password:l,strength:_,resolveReady:u,ready:h}=o;let p=new Uint8Array;l?(p=await Ai(o,_,l),u()):await h;const x=new Uint8Array(p.length+i.length-i.length%ye);x.set(p,0),a.enqueue(ts(o,i,x,p.length,0))},async flush(i){const{ctr:a,hmac:o,pending:l,ready:_}=this;if(o&&a){await _;let u=new Uint8Array;if(l.length){const h=a.update(Ne(ee,l));o.update(h),u=Pe(ee,h)}r.signature=Pe(ee,o.digest()).slice(0,le),i.enqueue(Rt(u,r.signature))}}}),r=this}}function ts(n,t,e,s,r,i){const{ctr:a,hmac:o,pending:l}=n,_=t.length-r;l.length&&(t=Rt(l,t),e=Ci(e,_-_%ye));let u;for(u=0;u<=_-ye;u+=ye){const h=Ne(ee,J(t,u,u+ye));i&&o.update(h);const p=a.update(h);i||o.update(p),e.set(Pe(ee,p),u+s)}return n.pending=J(t,u),e}async function Ri(n,t,e,s){const r=await ns(n,t,e,J(s,0,Ce[t])),i=J(s,Ce[t]);if(r[0]!=i[0]||r[1]!=i[1])throw new Error(xt)}async function Ai(n,t,e){const s=Qn(new Uint8Array(Ce[t])),r=await ns(n,t,e,s);return Rt(s,r)}async function ns(n,t,e,s){n.password=null;const r=await Oi(hi,e,wi,!1,gi),i=await Ii(Object.assign({salt:s},_t),r,8*(Ae[t]*2+2)),a=new Uint8Array(i),o=Ne(ee,J(a,0,Ae[t])),l=Ne(ee,J(a,Ae[t],Ae[t]*2)),_=J(a,Ae[t]*2);return Object.assign(n,{keys:{key:o,authentication:l,passwordVerification:_},ctr:new Ei(new yi(o),Array.from(bi)),hmac:new xi(l)}),_}async function Oi(n,t,e,s,r){if(bn)try{return await Le.importKey(n,t,e,s,r)}catch{return bn=!1,ge.importKey(t)}else return ge.importKey(t)}async function Ii(n,t,e){if(yn)try{return await Le.deriveBits(n,t,e)}catch{return yn=!1,ge.pbkdf2(t,n.salt,_t.iterations,e)}else return ge.pbkdf2(t,n.salt,_t.iterations,e)}function ss(n,t){return t===G?ui(n):t}function Rt(n,t){let e=n;return n.length+t.length&&(e=new Uint8Array(n.length+t.length),e.set(n,0),e.set(t,n.length)),e}function Ci(n,t){if(t&&t>n.length){const e=n;n=new Uint8Array(t),n.set(e,0)}return n}function J(n,t,e){return n.subarray(t,e)}function Pe(n,t){return n.fromBits(t)}function Ne(n,t){return n.toBits(t)}const Ie=12;class Pi extends TransformStream{constructor({password:t,passwordVerification:e,checkPasswordOnly:s}){super({start(){Object.assign(this,{password:t,passwordVerification:e}),rs(this,t)},transform(r,i){const a=this;if(a.password){const o=En(a,r.subarray(0,Ie));if(a.password=null,o.at(-1)!=a.passwordVerification)throw new Error(xt);r=r.subarray(Ie)}s?i.error(new Error(St)):i.enqueue(En(a,r))}})}}class Ni extends TransformStream{constructor({password:t,passwordVerification:e}){super({start(){Object.assign(this,{password:t,passwordVerification:e}),rs(this,t)},transform(s,r){const i=this;let a,o;if(i.password){i.password=null;const l=Qn(new Uint8Array(Ie));l[Ie-1]=i.passwordVerification,a=new Uint8Array(s.length+l.length),a.set(xn(i,l),0),o=Ie}else a=new Uint8Array(s.length),o=0;a.set(xn(i,s),o),r.enqueue(a)}})}}function En(n,t){const e=new Uint8Array(t.length);for(let s=0;s<t.length;s++)e[s]=is(n)^t[s],At(n,e[s]);return e}function xn(n,t){const e=new Uint8Array(t.length);for(let s=0;s<t.length;s++)e[s]=is(n)^t[s],At(n,t[s]);return e}function rs(n,t){const e=[305419896,591751049,878082192];Object.assign(n,{keys:e,crcKey0:new Ze(e[0]),crcKey2:new Ze(e[2])});for(let s=0;s<t.length;s++)At(n,t.charCodeAt(s))}function At(n,t){let[e,s,r]=n.keys;n.crcKey0.append([t]),e=~n.crcKey0.get(),s=Tn(Math.imul(Tn(s+as(e)),134775813)+1),n.crcKey2.append([s>>>24]),r=~n.crcKey2.get(),n.keys=[e,s,r]}function is(n){const t=n.keys[2]|2;return as(Math.imul(t,t^1)>>>8)}function as(n){return n&255}function Tn(n){return n&4294967295}const Ot="Invalid uncompressed size",Sn="deflate-raw";class Di extends TransformStream{constructor(t,{chunkSize:e,CompressionStream:s,CompressionStreamNative:r}){super({});const{compressed:i,encrypted:a,useCompressionStream:o,zipCrypto:l,signed:_,level:u}=t,h=this;let p,x,S=super.readable;(!a||l)&&_&&(p=new Kn,S=ie(S,p)),i&&(S=cs(S,o,{level:u,chunkSize:e},r,s)),a&&(l?S=ie(S,new Ni(t)):(x=new Si(t),S=ie(S,x))),os(h,S,()=>{let f;a&&!l&&(f=x.signature),(!a||l)&&_&&(f=new DataView(p.value.buffer).getUint32(0)),h.signature=f})}}class ki extends TransformStream{constructor(t,{chunkSize:e,DecompressionStream:s,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:a,signed:o,signature:l,compressed:_,useCompressionStream:u}=t;let h,p,x=super.readable;a&&(i?x=ie(x,new Pi(t)):(p=new Ti(t),x=ie(x,p))),_&&(x=cs(x,u,{chunkSize:e},r,s)),(!a||i)&&o&&(h=new Kn,x=ie(x,h)),os(this,x,()=>{if((!a||i)&&o){const S=new DataView(h.value.buffer);if(l!=S.getUint32(0,!1))throw new Error(Tt)}})}}function os(n,t,e){t=ie(t,new TransformStream({flush:e})),Object.defineProperty(n,"readable",{get(){return t}})}function cs(n,t,e,s,r){try{const i=t&&s?s:r;n=ie(n,new i(Sn,e))}catch(i){if(t)n=ie(n,new r(Sn,e));else throw i}return n}function ie(n,t){return n.pipeThrough(t)}const Li="message",vi="start",Fi="pull",Rn="data",Mi="ack",An="close",Ui="deflate",ls="inflate";class Hi extends TransformStream{constructor(t,e){super({});const s=this,{codecType:r}=t;let i;r.startsWith(Ui)?i=Di:r.startsWith(ls)&&(i=ki),s.outputSize=0;let a=0;const o=new i(t,e),l=super.readable,_=new TransformStream({transform(h,p){h&&h.length&&(a+=h.length,p.enqueue(h))},flush(){Object.assign(s,{inputSize:a})}}),u=new TransformStream({transform(h,p){if(h&&h.length&&(p.enqueue(h),s.outputSize+=h.length,t.outputSize&&s.outputSize>t.outputSize))throw new Error(Ot)},flush(){const{signature:h}=o;Object.assign(s,{signature:h,inputSize:a})}});Object.defineProperty(s,"readable",{get(){return l.pipeThrough(_).pipeThrough(o).pipeThrough(u)}})}}class Wi extends TransformStream{constructor(t){let e;super({transform:s,flush(r){e&&e.length&&r.enqueue(e)}});function s(r,i){if(e){const a=new Uint8Array(e.length+r.length);a.set(e),a.set(r,e.length),r=a,e=null}r.length>t?(i.enqueue(r.slice(0,t)),s(r.slice(t),i)):e=r}}}let fs=typeof Worker!=he;class at{constructor(t,{readable:e,writable:s},{options:r,config:i,streamOptions:a,useWebWorkers:o,transferStreams:l,scripts:_},u){const{signal:h}=a;return Object.assign(t,{busy:!0,readable:e.pipeThrough(new Wi(i.chunkSize)).pipeThrough(new Bi(a),{signal:h}),writable:s,options:Object.assign({},r),scripts:_,transferStreams:l,terminate(){return new Promise(p=>{const{worker:x,busy:S}=t;x?(S?t.resolveTerminated=p:(x.terminate(),p()),t.interface=null):p()})},onTaskFinished(){const{resolveTerminated:p}=t;p&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),p()),t.busy=!1,u(t)}}),(o&&fs?ji:us)(t,i)}}class Bi extends TransformStream{constructor({onstart:t,onprogress:e,size:s,onend:r}){let i=0;super({async start(){t&&await ot(t,s)},async transform(a,o){i+=a.length,e&&await ot(e,i,s),o.enqueue(a)},async flush(){r&&await ot(r,i)}})}}async function ot(n,...t){try{await n(...t)}catch{}}function us(n,t){return{run:()=>Gi(n,t)}}function ji(n,t){const{baseURL:e,chunkSize:s}=t;if(!n.interface){let r;try{r=Vi(n.scripts[0],e,n)}catch{return fs=!1,us(n,t)}Object.assign(n,{worker:r,interface:{run:()=>Yi(n,{chunkSize:s})}})}return n.interface}async function Gi({options:n,readable:t,writable:e,onTaskFinished:s},r){let i;try{i=new Hi(n,r),await t.pipeThrough(i).pipeTo(e,{preventClose:!0,preventAbort:!0});const{signature:a,inputSize:o,outputSize:l}=i;return{signature:a,inputSize:o,outputSize:l}}catch(a){throw i&&(a.outputSize=i.outputSize),a}finally{s()}}async function Yi(n,t){let e,s;const r=new Promise((p,x)=>{e=p,s=x});Object.assign(n,{reader:null,writer:null,resolveResult:e,rejectResult:s,result:r});const{readable:i,options:a,scripts:o}=n,{writable:l,closed:_}=qi(n.writable),u=Ye({type:vi,scripts:o.slice(1),options:a,config:t,readable:i,writable:l},n);u||Object.assign(n,{reader:i.getReader(),writer:l.getWriter()});const h=await r;return u||await l.getWriter().close(),await _,h}function qi(n){let t;const e=new Promise(r=>t=r);return{writable:new WritableStream({async write(r){const i=n.getWriter();await i.ready,await i.write(r),i.releaseLock()},close(){t()},abort(r){return n.getWriter().abort(r)}}),closed:e}}let On=!0,In=!0;function Vi(n,t,e){const s={type:"module"};let r,i;typeof n==ke&&(n=n());try{r=new URL(n,t)}catch{r=n}if(On)try{i=new Worker(r)}catch{On=!1,i=new Worker(r,s)}else i=new Worker(r,s);return i.addEventListener(Li,a=>Zi(a,e)),i}function Ye(n,{worker:t,writer:e,onTaskFinished:s,transferStreams:r}){try{const{value:i,readable:a,writable:o}=n,l=[];if(i&&(i.byteLength<i.buffer.byteLength?n.value=i.buffer.slice(0,i.byteLength):n.value=i.buffer,l.push(n.value)),r&&In?(a&&l.push(a),o&&l.push(o)):n.readable=n.writable=null,l.length)try{return t.postMessage(n,l),!0}catch{In=!1,n.readable=n.writable=null,t.postMessage(n)}else t.postMessage(n)}catch(i){throw e&&e.releaseLock(),s(),i}}async function Zi({data:n},t){const{type:e,value:s,messageId:r,result:i,error:a}=n,{reader:o,writer:l,resolveResult:_,rejectResult:u,onTaskFinished:h}=t;try{if(a){const{message:x,stack:S,code:f,name:c,outputSize:d}=a,y=new Error(x);Object.assign(y,{stack:S,code:f,name:c,outputSize:d}),p(y)}else{if(e==Fi){const{value:x,done:S}=await o.read();Ye({type:Rn,value:x,done:S,messageId:r},t)}e==Rn&&(await l.ready,await l.write(new Uint8Array(s)),Ye({type:Mi,messageId:r},t)),e==An&&p(null,i)}}catch(x){Ye({type:An,messageId:r},t),p(x)}function p(x,S){x?u(x):_(S),l&&l.releaseLock(),h()}}let de=[];const ct=[];let Cn=0;async function Ki(n,t){const{options:e,config:s}=t,{transferStreams:r,useWebWorkers:i,useCompressionStream:a,codecType:o,compressed:l,signed:_,encrypted:u}=e,{workerScripts:h,maxWorkers:p}=s;t.transferStreams=r||r===G;const x=!l&&!_&&!u&&!t.transferStreams;return t.useWebWorkers=!x&&(i||i===G&&s.useWebWorkers),t.scripts=t.useWebWorkers&&h?h[o]:[],e.useCompressionStream=a||a===G&&s.useCompressionStream,(await S()).run();async function S(){const c=de.find(d=>!d.busy);if(c)return ht(c),new at(c,n,t,f);if(de.length<p){const d={indexWorker:Cn};return Cn++,de.push(d),new at(d,n,t,f)}else return new Promise(d=>ct.push({resolve:d,stream:n,workerOptions:t}))}function f(c){if(ct.length){const[{resolve:d,stream:y,workerOptions:b}]=ct.splice(0,1);d(new at(c,y,b,f))}else c.worker?(ht(c),Xi(c,t)):de=de.filter(d=>d!=c)}}function Xi(n,t){const{config:e}=t,{terminateWorkerTimeout:s}=e;Number.isFinite(s)&&s>=0&&(n.terminated?n.terminated=!1:n.terminateTimeout=setTimeout(async()=>{de=de.filter(r=>r!=n);try{await n.terminate()}catch{}},s))}function ht(n){const{terminateTimeout:t}=n;t&&(clearTimeout(t),n.terminateTimeout=null)}async function $i(){await Promise.allSettled(de.map(n=>(ht(n),n.terminate())))}const ds="HTTP error ",ve="HTTP Range not supported",_s="Writer iterator completed too soon",hs="Writer not initialized",Ji="text/plain",Qi="Content-Length",zi="Content-Range",ea="Accept-Ranges",ta="Range",na="Content-Type",sa="HEAD",It="GET",ps="bytes",ra=64*1024,Ct="writable";class Qe{constructor(){this.size=0}init(){this.initialized=!0}}class pe extends Qe{get readable(){const t=this,{chunkSize:e=ra}=t,s=new ReadableStream({start(){this.chunkOffset=0},async pull(r){const{offset:i=0,size:a,diskNumberStart:o}=s,{chunkOffset:l}=this,_=a===G?e:Math.min(e,a-l),u=await Y(t,i+l,_,o);r.enqueue(u),l+e>a||a===G&&!u.length&&_?r.close():this.chunkOffset+=e}});return s}}class Pt extends Qe{constructor(){super();const t=this,e=new WritableStream({write(s){if(!t.initialized)throw new Error(hs);return t.writeUint8Array(s)}});Object.defineProperty(t,Ct,{get(){return e}})}writeUint8Array(){}}class ia extends pe{constructor(t){super();let e=t.length;for(;t.charAt(e-1)=="=";)e--;const s=t.indexOf(",")+1;Object.assign(this,{dataURI:t,dataStart:s,size:Math.floor((e-s)*.75)})}readUint8Array(t,e){const{dataStart:s,dataURI:r}=this,i=new Uint8Array(e),a=Math.floor(t/3)*4,o=atob(r.substring(a+s,Math.ceil((t+e)/3)*4+s)),l=t-Math.floor(a/4)*3;let _=0;for(let u=l;u<l+e&&u<o.length;u++)i[u-l]=o.charCodeAt(u),_++;return _<i.length?i.subarray(0,_):i}}class aa extends Pt{constructor(t){super(),Object.assign(this,{data:"data:"+(t||"")+";base64,",pending:[]})}writeUint8Array(t){const e=this;let s=0,r=e.pending;const i=e.pending.length;for(e.pending="",s=0;s<Math.floor((i+t.length)/3)*3-i;s++)r+=String.fromCharCode(t[s]);for(;s<t.length;s++)e.pending+=String.fromCharCode(t[s]);r.length&&(r.length>2?e.data+=btoa(r):e.pending+=r)}getData(){return this.data+btoa(this.pending)}}class Nt extends pe{constructor(t){super(),Object.assign(this,{blob:t,size:t.size})}async readUint8Array(t,e){const s=this,r=t+e;let a=await(t||r<s.size?s.blob.slice(t,r):s.blob).arrayBuffer();return a.byteLength>e&&(a=a.slice(t,r)),new Uint8Array(a)}}class ms extends Qe{constructor(t){super();const e=this,s=new TransformStream,r=[];t&&r.push([na,t]),Object.defineProperty(e,Ct,{get(){return s.writable}}),e.blob=new Response(s.readable,{headers:r}).blob()}getData(){return this.blob}}class oa extends Nt{constructor(t){super(new Blob([t],{type:Ji}))}}class ca extends ms{constructor(t){super(t),Object.assign(this,{encoding:t,utf8:!t||t.toLowerCase()=="utf-8"})}async getData(){const{encoding:t,utf8:e}=this,s=await super.getData();if(s.text&&e)return s.text();{const r=new FileReader;return new Promise((i,a)=>{Object.assign(r,{onload:({target:o})=>i(o.result),onerror:()=>a(r.error)}),r.readAsText(s,t)})}}}class la extends pe{constructor(t,e){super(),ws(this,t,e)}async init(){await gs(this,pt,Pn),super.init()}readUint8Array(t,e){return bs(this,t,e,pt,Pn)}}class fa extends pe{constructor(t,e){super(),ws(this,t,e)}async init(){await gs(this,mt,Nn),super.init()}readUint8Array(t,e){return bs(this,t,e,mt,Nn)}}function ws(n,t,e){const{preventHeadRequest:s,useRangeHeader:r,forceRangeRequests:i,combineSizeEocd:a}=e;e=Object.assign({},e),delete e.preventHeadRequest,delete e.useRangeHeader,delete e.forceRangeRequests,delete e.combineSizeEocd,delete e.useXHR,Object.assign(n,{url:t,options:e,preventHeadRequest:s,useRangeHeader:r,forceRangeRequests:i,combineSizeEocd:a})}async function gs(n,t,e){const{url:s,preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:a,combineSizeEocd:o}=n;if(ha(s)&&(i||a)&&(typeof r>"u"||r)){const l=await t(It,n,ys(n,o?-ne:void 0));if(!a&&l.headers.get(ea)!=ps)throw new Error(ve);{o&&(n.eocdCache=new Uint8Array(await l.arrayBuffer()));let _;const u=l.headers.get(zi);if(u){const h=u.trim().split(/\s*\/\s*/);if(h.length){const p=h[1];p&&p!="*"&&(_=Number(p))}}_===G?await Dn(n,t,e):n.size=_}}else await Dn(n,t,e)}async function bs(n,t,e,s,r){const{useRangeHeader:i,forceRangeRequests:a,eocdCache:o,size:l,options:_}=n;if(i||a){if(o&&t==l-ne&&e==ne)return o;if(t>=l)return new Uint8Array;{t+e>l&&(e=l-t);const u=await s(It,n,ys(n,t,e));if(u.status!=206)throw new Error(ve);return new Uint8Array(await u.arrayBuffer())}}else{const{data:u}=n;return u||await r(n,_),new Uint8Array(n.data.subarray(t,t+e))}}function ys(n,t=0,e=1){return Object.assign({},Dt(n),{[ta]:ps+"="+(t<0?t:t+"-"+(t+e-1))})}function Dt({options:n}){const{headers:t}=n;if(t)return Symbol.iterator in t?Object.fromEntries(t):t}async function Pn(n){await Es(n,pt)}async function Nn(n){await Es(n,mt)}async function Es(n,t){const e=await t(It,n,Dt(n));n.data=new Uint8Array(await e.arrayBuffer()),n.size||(n.size=n.data.length)}async function Dn(n,t,e){if(n.preventHeadRequest)await e(n,n.options);else{const r=(await t(sa,n,Dt(n))).headers.get(Qi);r?n.size=Number(r):await e(n,n.options)}}async function pt(n,{options:t,url:e},s){const r=await fetch(e,Object.assign({},t,{method:n,headers:s}));if(r.status<400)return r;throw r.status==416?new Error(ve):new Error(ds+(r.statusText||r.status))}function mt(n,{url:t},e){return new Promise((s,r)=>{const i=new XMLHttpRequest;if(i.addEventListener("load",()=>{if(i.status<400){const a=[];i.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(o=>{const l=o.trim().split(/\s*:\s*/);l[0]=l[0].trim().replace(/^[a-z]|-[a-z]/g,_=>_.toUpperCase()),a.push(l)}),s({status:i.status,arrayBuffer:()=>i.response,headers:new Map(a)})}else r(i.status==416?new Error(ve):new Error(ds+(i.statusText||i.status)))},!1),i.addEventListener("error",a=>r(a.detail?a.detail.error:new Error("Network error")),!1),i.open(n,t),e)for(const a of Object.entries(e))i.setRequestHeader(a[0],a[1]);i.responseType="arraybuffer",i.send()})}class xs extends pe{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR?new fa(t,e):new la(t,e)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}readUint8Array(t,e){return this.reader.readUint8Array(t,e)}}class ua extends xs{constructor(t,e={}){e.useRangeHeader=!0,super(t,e)}}class da extends pe{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{array:t,size:t.length})}readUint8Array(t,e){return this.array.slice(t,t+e)}}class _a extends Pt{init(t=0){Object.assign(this,{offset:0,array:new Uint8Array(t)}),super.init()}writeUint8Array(t){const e=this;if(e.offset+t.length>e.array.length){const s=e.array;e.array=new Uint8Array(s.length+t.length),e.array.set(s)}e.array.set(t,e.offset),e.offset+=t.length}getData(){return this.array}}class kt extends pe{constructor(t){super(),this.readers=t}async init(){const t=this,{readers:e}=t;t.lastDiskNumber=0,t.lastDiskOffset=0,await Promise.all(e.map(async(s,r)=>{await s.init(),r!=e.length-1&&(t.lastDiskOffset+=s.size),t.size+=s.size})),super.init()}async readUint8Array(t,e,s=0){const r=this,{readers:i}=this;let a,o=s;o==-1&&(o=i.length-1);let l=t;for(;i[o]&&l>=i[o].size;)l-=i[o].size,o++;const _=i[o];if(_){const u=_.size;if(l+e<=u)a=await Y(_,l,e);else{const h=u-l;a=new Uint8Array(e);const p=await Y(_,l,h);a.set(p,0);const x=await r.readUint8Array(t+h,e-h,s);a.set(x,h),p.length+x.length<e&&(a=a.subarray(0,p.length+x.length))}}else a=new Uint8Array;return r.lastDiskNumber=Math.max(o,r.lastDiskNumber),a}}class Xe extends Qe{constructor(t,e=4294967295){super();const s=this;Object.assign(s,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});let r,i,a;const o=new WritableStream({async write(u){const{availableSize:h}=s;if(a)u.length>=h?(await l(u.subarray(0,h)),await _(),s.diskOffset+=r.size,s.diskNumber++,a=null,await this.write(u.subarray(h))):await l(u);else{const{value:p,done:x}=await t.next();if(x&&!p)throw new Error(_s);r=p,r.size=0,r.maxSize&&(s.maxSize=r.maxSize),s.availableSize=s.maxSize,await De(r),i=p.writable,a=i.getWriter(),await this.write(u)}},async close(){await a.ready,await _()}});Object.defineProperty(s,Ct,{get(){return o}});async function l(u){const h=u.length;h&&(await a.ready,await a.write(u),r.size+=h,s.size+=h,s.availableSize-=h)}async function _(){await a.close()}}}class Ts{constructor(t){return Array.isArray(t)&&(t=new kt(t)),t instanceof ReadableStream&&(t={readable:t}),t}}class Ss{constructor(t){return t.writable===G&&typeof t.next==ke&&(t=new Xe(t)),t instanceof WritableStream&&(t={writable:t}),t.size===G&&(t.size=0),t instanceof Xe||Object.assign(t,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),t}}function ha(n){const{baseURL:t}=qn(),{protocol:e}=new URL(n,t);return e=="http:"||e=="https:"}async function De(n,t){if(n.init&&!n.initialized)await n.init(t);else return Promise.resolve()}function Y(n,t,e,s){return n.readUint8Array(t,e,s)}const pa=kt,ma=Xe,Rs="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),wa=Rs.length==256;function ga(n){if(wa){let t="";for(let e=0;e<n.length;e++)t+=Rs[n[e]];return t}else return new TextDecoder().decode(n)}function qe(n,t){return t&&t.trim().toLowerCase()=="cp437"?ga(n):new TextDecoder(t).decode(n)}const As="filename",Os="rawFilename",Is="comment",Cs="rawComment",Ps="uncompressedSize",Ns="compressedSize",Ds="offset",wt="diskNumberStart",gt="lastModDate",bt="rawLastModDate",ks="lastAccessDate",ba="rawLastAccessDate",Ls="creationDate",ya="rawCreationDate",Ea="internalFileAttribute",xa="internalFileAttributes",Ta="externalFileAttribute",Sa="externalFileAttributes",Ra="msDosCompatible",Aa="zip64",Oa="encrypted",Ia="version",Ca="versionMadeBy",Pa="zipCrypto",Na="directory",Da="executable",ka="compressionMethod",La="signature",va="extraField",Fa=[As,Os,Ns,Ps,gt,bt,Is,Cs,ks,Ls,Ds,wt,wt,Ea,xa,Ta,Sa,Ra,Aa,Oa,Ia,Ca,Pa,Na,Da,ka,La,va,"bitFlag","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class kn{constructor(t){Fa.forEach(e=>this[e]=t[e])}}const Ma="filenameEncoding",Ua="commentEncoding",Ha="decodeText",Wa="extractPrependedData",Ba="extractAppendedData",ja="password",Ga="rawPassword",Ya="passThrough",qa="signal",Va="checkPasswordOnly",Za="checkOverlappingEntryOnly",Ka="checkOverlappingEntry",Xa="checkSignature",$a="useWebWorkers",Ja="useCompressionStream",Qa="transferStreams",za="preventClose",Ve="File format is not recognized",vs="End of central directory not found",Fs="End of Zip64 central directory locator not found",Ms="Central directory header not found",Us="Local file header not found",Hs="Zip64 extra field not found",Ws="File contains encrypted entry",Bs="Encryption method not supported",yt="Compression method not supported",Et="Split zip file",js="Overlapping entry found",Ln="utf-8",vn="cp437",eo=[[Ps,we],[Ns,we],[Ds,we],[wt,fe]],to={[fe]:{getValue:W,bytes:4},[we]:{getValue:xe,bytes:8}};class Gs{constructor(t,e={}){Object.assign(this,{reader:new Ts(t),options:e,config:qn(),readRanges:[]})}async*getEntriesGenerator(t={}){const e=this;let{reader:s}=e;const{config:r}=e;if(await De(s),(s.size===G||!s.readUint8Array)&&(s=new Nt(await new Response(s.readable).blob()),await De(s)),s.size<ne)throw new Error(Ve);s.chunkSize=li(r);const i=await lo(s,jr,s.size,ne,fe*16);if(!i){const T=await Y(s,0,4),w=j(T);throw W(w)==Gn?new Error(Et):new Error(vs)}const a=j(i);let o=W(a,12),l=W(a,16);const _=i.offset,u=q(a,20),h=_+ne+u;let p=q(a,4);const x=s.lastDiskNumber||0;let S=q(a,6),f=q(a,8),c=0,d=0;if(l==we||o==we||f==fe||S==fe){const T=await Y(s,i.offset-st,st),w=j(T);if(W(w,0)==Gr){l=xe(w,8);let C=await Y(s,l,rt,-1),I=j(C);const k=i.offset-st-rt;if(W(I,0)!=un&&l!=k){const P=l;l=k,l>P&&(c=l-P),C=await Y(s,l,rt,-1),I=j(C)}if(W(I,0)!=un)throw new Error(Fs);p==fe&&(p=W(I,16)),S==fe&&(S=W(I,20)),f==fe&&(f=xe(I,32)),o==we&&(o=xe(I,40)),l-=o}}if(l>=s.size&&(c=s.size-l-o-ne,l=s.size-o-ne),x!=p)throw new Error(Et);if(l<0)throw new Error(Ve);let y=0,b=await Y(s,l,o,S),g=j(b);if(o){const T=i.offset-o;if(W(g,y)!=fn&&l!=T){const w=l;l=T,l>w&&(c+=l-w),b=await Y(s,l,o,S),g=j(b)}}const A=i.offset-l-(s.lastDiskOffset||0);if(o!=A&&A>=0&&(o=A,b=await Y(s,l,o,S),g=j(b)),l<0||l>=s.size)throw new Error(Ve);const m=V(e,t,Ma),R=V(e,t,Ua);for(let T=0;T<f;T++){const w=new so(s,r,e.options);if(W(g,y)!=fn)throw new Error(Ms);Ys(w,g,y+6);const C=!!w.bitFlag.languageEncodingFlag,I=y+46,k=I+w.filenameLength,P=k+w.extraFieldLength,D=q(g,y+4),U=D>>8==0,L=D>>8==3,Z=b.subarray(I,k),N=q(g,y+32),Q=P+N,M=b.subarray(P,Q),H=C,Fe=C,Te=W(g,y+38),te=U&&(Ee(g,y+38)&mn)==mn||L&&(Te>>16&ti)==ni||Z.length&&Z.at(-1)==wn.charCodeAt(0),z=L&&(Te>>16&si)!=0,Lt=W(g,y+42)+c;Object.assign(w,{versionMadeBy:D,msDosCompatible:U,compressedSize:0,uncompressedSize:0,commentLength:N,directory:te,offset:Lt,diskNumberStart:q(g,y+34),internalFileAttributes:q(g,y+36),externalFileAttributes:Te,rawFilename:Z,filenameUTF8:H,commentUTF8:Fe,rawExtraField:b.subarray(k,P),executable:z}),w.internalFileAttribute=w.internalFileAttributes,w.externalFileAttribute=w.externalFileAttributes;const vt=V(e,t,Ha)||qe,Ft=H?Ln:m||vn,Mt=Fe?Ln:R||vn;let Me=vt(Z,Ft);Me===G&&(Me=qe(Z,Ft));let ze=vt(M,Mt);ze===G&&(ze=qe(M,Mt)),Object.assign(w,{rawComment:M,filename:Me,comment:ze,directory:te||Me.endsWith(wn)}),d=Math.max(Lt,d),qs(w,w,g,y+6),w.zipCrypto=w.encrypted&&!w.extraFieldAES;const Se=new kn(w);Se.getData=(Ue,He)=>w.getData(Ue,Se,e.readRanges,He),Se.arrayBuffer=async Ue=>{const He=new TransformStream,[Zs]=await Promise.all([new Response(He.readable).arrayBuffer(),w.getData(He,Se,e.readRanges,Ue)]);return Zs},y=Q;const{onprogress:Ut}=t;if(Ut)try{await Ut(T+1,f,new kn(w))}catch{}yield Se}const E=V(e,t,Wa),O=V(e,t,Ba);return E&&(e.prependedData=d>0?await Y(s,0,d):new Uint8Array),e.comment=u?await Y(s,_+ne,u):new Uint8Array,O&&(e.appendedData=h<s.size?await Y(s,h,s.size-h):new Uint8Array),!0}async getEntries(t={}){const e=[];for await(const s of this.getEntriesGenerator(t))e.push(s);return e}async close(){}}class no{constructor(t={}){const{readable:e,writable:s}=new TransformStream,r=new Gs(e,t).getEntriesGenerator();this.readable=new ReadableStream({async pull(i){const{done:a,value:o}=await r.next();if(a)return i.close();const l={...o,readable:(function(){const{readable:_,writable:u}=new TransformStream;if(o.getData)return o.getData(u),_})()};delete l.getData,i.enqueue(l)}}),this.writable=s}}class so{constructor(t,e,s){Object.assign(this,{reader:t,config:e,options:s})}async getData(t,e,s,r={}){const i=this,{reader:a,offset:o,diskNumberStart:l,extraFieldAES:_,extraFieldZip64:u,compressionMethod:h,config:p,bitFlag:x,signature:S,rawLastModDate:f,uncompressedSize:c,compressedSize:d}=i,{dataDescriptor:y}=x,b=e.localDirectory={},g=await Y(a,o,it,l),A=j(g);let m=V(i,r,ja),R=V(i,r,Ga);const E=V(i,r,Ya);if(m=m&&m.length&&m,R=R&&R.length&&R,_&&_.originalCompressionMethod!=Hr)throw new Error(yt);if(h!=Ur&&h!=Mr&&!E)throw new Error(yt);if(W(A,0)!=Wr)throw new Error(Us);Ys(b,A,4);const{extraFieldLength:O,filenameLength:T,lastAccessDate:w,creationDate:C}=b;b.rawExtraField=O?await Y(a,o+it+T,O,l):new Uint8Array,qs(i,b,A,4,!0),Object.assign(e,{lastAccessDate:w,creationDate:C});const I=i.encrypted&&b.encrypted&&!E,k=I&&!_;if(E||(e.zipCrypto=k),I){if(!k&&_.strength===G)throw new Error(Bs);if(!m&&!R)throw new Error(Ws)}const P=o+it+T+O,D=d,U=a.readable;Object.assign(U,{diskNumberStart:l,offset:P,size:D});const L=V(i,r,qa),Z=V(i,r,Va);let N=V(i,r,Ka);const Q=V(i,r,Za);Q&&(N=!0);const{onstart:M,onprogress:H,onend:Fe}=r,Te={options:{codecType:ls,password:m,rawPassword:R,zipCrypto:k,encryptionStrength:_&&_.strength,signed:V(i,r,Xa)&&!E,passwordVerification:k&&(y?f>>>8&255:S>>>24&255),outputSize:c,signature:S,compressed:h!=0&&!E,encrypted:i.encrypted&&!E,useWebWorkers:V(i,r,$a),useCompressionStream:V(i,r,Ja),transferStreams:V(i,r,Qa),checkPasswordOnly:Z},config:p,streamOptions:{signal:L,size:D,onstart:M,onprogress:H,onend:Fe}};N&&await co({reader:a,fileEntry:e,offset:o,diskNumberStart:l,signature:S,compressedSize:d,uncompressedSize:c,dataOffset:P,dataDescriptor:y||b.bitFlag.dataDescriptor,extraFieldZip64:u||b.extraFieldZip64,readRanges:s});let te;try{if(!Q){Z&&(t=new WritableStream),t=new Ss(t),await De(t,E?d:c),{writable:te}=t;const{outputSize:z}=await Ki({readable:U,writable:te},Te);if(t.size+=z,z!=(E?d:c))throw new Error(Ot)}}catch(z){if(z.outputSize!==G&&(t.size+=z.outputSize),!Z||z.message!=St)throw z}finally{!V(i,r,za)&&te&&!te.locked&&await te.getWriter().close()}return Z||Q?G:t.getData?t.getData():te}}function Ys(n,t,e){const s=n.rawBitFlag=q(t,e+2),r=(s&_n)==_n,i=W(t,e+6);Object.assign(n,{encrypted:r,version:q(t,e),bitFlag:{level:(s&ei)>>1,dataDescriptor:(s&hn)==hn,languageEncodingFlag:(s&pn)==pn},rawLastModDate:i,lastModDate:fo(i),filenameLength:q(t,e+22),extraFieldLength:q(t,e+24)})}function qs(n,t,e,s,r){const{rawExtraField:i}=t,a=t.extraField=new Map,o=j(new Uint8Array(i));let l=0;try{for(;l<i.length;){const d=q(o,l),y=q(o,l+2);a.set(d,{type:d,data:i.slice(l+4,l+4+y)}),l+=4+y}}catch{}const _=q(e,s+4);Object.assign(t,{signature:W(e,s+ri),compressedSize:W(e,s+ii),uncompressedSize:W(e,s+ai)});const u=a.get(Vr);u&&(ro(u,t),t.extraFieldZip64=u);const h=a.get(Jr);h&&(Fn(h,As,Os,t,n),t.extraFieldUnicodePath=h);const p=a.get(Qr);p&&(Fn(p,Is,Cs,t,n),t.extraFieldUnicodeComment=p);const x=a.get(Zr);x?(io(x,t,_),t.extraFieldAES=x):t.compressionMethod=_;const S=a.get(Kr);S&&(ao(S,t),t.extraFieldNTFS=S);const f=a.get($r);f&&(oo(f,t,r),t.extraFieldExtendedTimestamp=f);const c=a.get(zr);c&&(t.extraFieldUSDZ=c)}function ro(n,t){t.zip64=!0;const e=j(n.data),s=eo.filter(([r,i])=>t[r]==i);for(let r=0,i=0;r<s.length;r++){const[a,o]=s[r];if(t[a]==o){const l=to[o];t[a]=n[a]=l.getValue(e,i),i+=l.bytes}else if(n[a])throw new Error(Hs)}}function Fn(n,t,e,s,r){const i=j(n.data),a=new Ze;a.append(r[e]);const o=j(new Uint8Array(4));o.setUint32(0,a.get(),!0);const l=W(i,1);Object.assign(n,{version:Ee(i,0),[t]:qe(n.data.subarray(5)),valid:!r.bitFlag.languageEncodingFlag&&l==W(o,0)}),n.valid&&(s[t]=n[t],s[t+"UTF8"]=!0)}function io(n,t,e){const s=j(n.data),r=Ee(s,4);Object.assign(n,{vendorVersion:Ee(s,0),vendorId:Ee(s,2),strength:r,originalCompressionMethod:e,compressionMethod:q(s,5)}),t.compressionMethod=n.compressionMethod}function ao(n,t){const e=j(n.data);let s=4,r;try{for(;s<n.data.length&&!r;){const i=q(e,s),a=q(e,s+2);i==Xr&&(r=n.data.slice(s+4,s+4+a)),s+=4+a}}catch{}try{if(r&&r.length==24){const i=j(r),a=i.getBigUint64(0,!0),o=i.getBigUint64(8,!0),l=i.getBigUint64(16,!0);Object.assign(n,{rawLastModDate:a,rawLastAccessDate:o,rawCreationDate:l});const _=lt(a),u=lt(o),h=lt(l),p={lastModDate:_,lastAccessDate:u,creationDate:h};Object.assign(n,p),Object.assign(t,p)}}catch{}}function oo(n,t,e){const s=j(n.data),r=Ee(s,0),i=[],a=[];e?((r&1)==1&&(i.push(gt),a.push(bt)),(r&2)==2&&(i.push(ks),a.push(ba)),(r&4)==4&&(i.push(Ls),a.push(ya))):n.data.length>=5&&(i.push(gt),a.push(bt));let o=1;i.forEach((l,_)=>{if(n.data.length>=o+4){const u=W(s,o);t[l]=n[l]=new Date(u*1e3);const h=a[_];n[h]=u}o+=4})}async function co({reader:n,fileEntry:t,offset:e,diskNumberStart:s,signature:r,compressedSize:i,uncompressedSize:a,dataOffset:o,dataDescriptor:l,extraFieldZip64:_,readRanges:u}){let h=0;if(s)for(let S=0;S<s;S++){const f=n.readers[S];h+=f.size}let p=0;if(l&&(_?p=qr:p=Yr),p){const S=await Y(n,o+i,p+dn,s);if(W(j(S),0)==Br){const c=W(j(S),4);let d,y;_?(d=xe(j(S),8),y=xe(j(S),16)):(d=W(j(S),8),y=W(j(S),12)),(t.encrypted&&!t.zipCrypto||c==r)&&d==i&&y==a&&(p+=dn)}}const x={start:h+e,end:h+o+i+p,fileEntry:t};for(const S of u)if(S.fileEntry!=t&&x.start>=S.start&&x.start<S.end){const f=new Error(js);throw f.overlappingEntry=S.fileEntry,f}u.push(x)}async function lo(n,t,e,s,r){const i=new Uint8Array(4),a=j(i);uo(a,0,t);const o=s+r;return await l(s)||await l(Math.min(o,e));async function l(_){const u=e-_,h=await Y(n,u,_);for(let p=h.length-s;p>=0;p--)if(h[p]==i[0]&&h[p+1]==i[1]&&h[p+2]==i[2]&&h[p+3]==i[3])return{offset:u+p,buffer:h.slice(p,p+s).buffer}}}function V(n,t,e){return t[e]===G?n.options[e]:t[e]}function fo(n){const t=(n&4294901760)>>16,e=n&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(e&63488)>>11,(e&2016)>>5,(e&31)*2,0)}catch{}}function lt(n){return new Date(Number(n/BigInt(1e4)-BigInt(116444736e5)))}function Ee(n,t){return n.getUint8(t)}function q(n,t){return n.getUint16(t,!0)}function W(n,t){return n.getUint32(t,!0)}function xe(n,t){return Number(n.getBigUint64(t,!0))}function uo(n,t,e){n.setUint32(t,e,!0)}function j(n){return new DataView(n.buffer)}Vn({Inflate:Fr});const _o=Object.freeze(Object.defineProperty({__proto__:null,BlobReader:Nt,BlobWriter:ms,Data64URIReader:ia,Data64URIWriter:aa,ERR_BAD_FORMAT:Ve,ERR_CENTRAL_DIRECTORY_NOT_FOUND:Ms,ERR_ENCRYPTED:Ws,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Fs,ERR_EOCDR_NOT_FOUND:vs,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Hs,ERR_HTTP_RANGE:ve,ERR_INVALID_PASSWORD:xt,ERR_INVALID_SIGNATURE:Tt,ERR_INVALID_UNCOMPRESSED_SIZE:Ot,ERR_ITERATOR_COMPLETED_TOO_SOON:_s,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Us,ERR_OVERLAPPING_ENTRY:js,ERR_SPLIT_ZIP_FILE:Et,ERR_UNSUPPORTED_COMPRESSION:yt,ERR_UNSUPPORTED_ENCRYPTION:Bs,ERR_WRITER_NOT_INITIALIZED:hs,GenericReader:Ts,GenericWriter:Ss,HttpRangeReader:ua,HttpReader:xs,Reader:pe,SplitDataReader:kt,SplitDataWriter:Xe,SplitZipReader:pa,SplitZipWriter:ma,TextReader:oa,TextWriter:ca,Uint8ArrayReader:da,Uint8ArrayWriter:_a,Writer:Pt,ZipReader:Gs,ZipReaderStream:no,configure:Vn,getMimeType:fi,initStream:De,readUint8Array:Y,terminateWorkers:$i},Symbol.toStringTag,{value:"Module"})),Oe=_o;class ho{constructor(t,e,s){v(this,"_zipReader");v(this,"_entriesPromise");v(this,"_traceURL");this._traceURL=t,Oe.configure({baseURL:self.location.href}),this._zipReader=new Oe.ZipReader(new Oe.HttpReader(mo(t,e),{mode:"cors",preventHeadRequest:!0}),{useWebWorkers:!1}),this._entriesPromise=this._zipReader.getEntries({onprogress:s}).then(r=>{const i=new Map;for(const a of r)i.set(a.filename,a);return i})}isLive(){return!1}traceURL(){return this._traceURL}async entryNames(){return[...(await this._entriesPromise).keys()]}async hasEntry(t){return(await this._entriesPromise).has(t)}async readText(t){var i;const s=(await this._entriesPromise).get(t);if(!s)return;const r=new Oe.TextWriter;return await((i=s.getData)==null?void 0:i.call(s,r)),r.getData()}async readBlob(t){const s=(await this._entriesPromise).get(t);if(!s)return;const r=new Oe.BlobWriter;return await s.getData(r),r.getData()}}class po{constructor(t,e){v(this,"_entriesPromise");v(this,"_path");v(this,"_server");this._path=t,this._server=e,this._entriesPromise=e.readFile(t).then(async s=>{if(!s)throw new Error("File not found");const r=await s.json(),i=new Map;for(const a of r.entries)i.set(a.name,a.path);return i})}isLive(){return!0}traceURL(){return this._path}async entryNames(){return[...(await this._entriesPromise).keys()]}async hasEntry(t){return(await this._entriesPromise).has(t)}async readText(t){const e=await this._readEntry(t);return e==null?void 0:e.text()}async readBlob(t){const e=await this._readEntry(t);return(e==null?void 0:e.status)===200?await(e==null?void 0:e.blob()):void 0}async _readEntry(t){const s=(await this._entriesPromise).get(t);if(s)return this._server.readFile(s)}}function mo(n,t){let e=n.startsWith("http")||n.startsWith("blob")?n:t.getFileURL(n).toString();return e.startsWith("https://www.dropbox.com/")&&(e="https://dl.dropboxusercontent.com/"+e.substring(24)),e}class wo{constructor(t){this.baseUrl=t}getFileURL(t){const e=new URL("trace/file",this.baseUrl);return e.searchParams.set("path",t),e}async readFile(t){const e=await fetch(this.getFileURL(t));if(e.status!==404)return e}}self.addEventListener("install",function(n){self.skipWaiting()});self.addEventListener("activate",function(n){n.waitUntil(self.clients.claim())});const go=new URL(self.registration.scope).pathname,_e=new Map,$e=new Map;async function bo(n,t,e,s){var u;const r=(e==null?void 0:e.id)??"",i=new URL((e==null?void 0:e.url)??self.registration.scope),a=new URL(i.searchParams.get("server")??"../",i),o={traceUrl:n,traceViewerServer:new wo(a)};$e.set(r,o),await Vs();const l=new pr;try{const[h,p]=$s(s,[.5,.4,.1]),x=n.endsWith("json")?new po(n,o.traceViewerServer):new ho(n,o.traceViewerServer,h);await l.load(x,p)}catch(h){throw console.error(h),(u=h==null?void 0:h.message)!=null&&u.includes("Cannot find .trace file")&&await l.hasEntry("index.html")?new Error("Could not load trace. Did you upload a Playwright HTML report instead? Make sure to extract the archive first and then double-click the index.html file or put it on a web server."):h instanceof Wn?new Error(`Could not load trace from ${t||n}. ${h.message}`):t?new Error(`Could not load trace from ${t}. Make sure to upload a valid Playwright trace.`):new Error(`Could not load trace from ${n}. Make sure a valid Playwright Trace is accessible over this url.`)}const _=new lr(l.storage(),h=>l.resourceForSha1(h));return _e.set(n,{traceModel:l,snapshotServer:_}),l}async function yo(n){var l;if(n.request.url.startsWith("chrome-extension://"))return fetch(n.request);if(n.request.headers.get("x-pw-serviceworker")==="forward"){const _=new Request(n.request);return _.headers.delete("x-pw-serviceworker"),fetch(_)}const t=n.request,e=await self.clients.get(n.clientId),s=self.registration.scope.startsWith("https://");if(t.url.startsWith(self.registration.scope)){const _=new URL(ut(t.url)),u=_.pathname.substring(go.length-1);if(u==="/ping")return await Vs(),new Response(null,{status:200});const h=_.searchParams.get("trace");if(u==="/contexts")try{const p=await bo(h,_.searchParams.get("traceFileName"),e,(x,S)=>{e.postMessage({method:"progress",params:{done:x,total:S}})});return new Response(JSON.stringify(p.contextEntries),{status:200,headers:{"Content-Type":"application/json"}})}catch(p){return new Response(JSON.stringify({error:p==null?void 0:p.message}),{status:500,headers:{"Content-Type":"application/json"}})}if(u.startsWith("/snapshotInfo/")){const{snapshotServer:p}=_e.get(h)||{};if(!p)return new Response(null,{status:404});const x=u.substring(14);return p.serveSnapshotInfo(x,_.searchParams)}if(u.startsWith("/snapshot/")){const{snapshotServer:p}=_e.get(h)||{};if(!p)return new Response(null,{status:404});const x=u.substring(10),S=p.serveSnapshot(x,_.searchParams,_.href);return s&&S.headers.set("Content-Security-Policy","upgrade-insecure-requests"),S}if(u.startsWith("/closest-screenshot/")){const{snapshotServer:p}=_e.get(h)||{};if(!p)return new Response(null,{status:404});const x=u.substring(20);return p.serveClosestScreenshot(x,_.searchParams)}if(u.startsWith("/sha1/")){const p=u.slice(6);for(const x of _e.values()){const S=await x.traceModel.resourceForSha1(p);if(S)return new Response(S,{status:200,headers:Eo(_.searchParams)})}return new Response(null,{status:404})}if(u.startsWith("/file/")){const p=_.searchParams.get("path"),x=(l=$e.get(n.clientId??""))==null?void 0:l.traceViewerServer;if(!x)throw new Error("client is not initialized");const S=await x.readFile(p);return S||new Response(null,{status:404})}return fetch(n.request)}const r=ut(e.url),i=new URL(r).searchParams.get("trace"),{snapshotServer:a}=_e.get(i)||{};if(!a)return new Response(null,{status:404});const o=[t.url];return s&&t.url.startsWith("https://")&&o.push(t.url.replace(/^https/,"http")),a.serveResource(o,t.method,r)}function Eo(n){const t=n.get("dn"),e=n.get("dct");if(!t)return;const s=new Headers;return s.set("Content-Disposition",`attachment; filename="attachment"; filename*=UTF-8''${encodeURIComponent(t)}`),e&&s.set("Content-Type",e),s}async function Vs(){const n=await self.clients.matchAll(),t=new Set;for(const[e,s]of $e){if(!n.find(r=>r.id===e)){$e.delete(e);continue}t.add(s.traceUrl)}for(const e of _e.keys())t.has(e)||_e.delete(e)}self.addEventListener("fetch",function(n){n.respondWith(yo(n))});
@@ -0,0 +1 @@
1
+ .ui-mode-sidebar{background-color:var(--vscode-sideBar-background)}.ui-mode-sidebar>.settings-toolbar{border-top:1px solid var(--vscode-panel-border);cursor:pointer}.ui-mode-sidebar>.settings-view{margin:0 0 8px 23px}.ui-mode-sidebar .toolbar-button:not([disabled]) .codicon-play{color:var(--vscode-debugIcon-restartForeground)}.ui-mode-sidebar .toolbar-button:not([disabled]) .codicon-debug-stop{color:var(--vscode-debugIcon-stopForeground)}.ui-mode .section-toolbar{border-top:1px solid var(--vscode-panel-border)}.ui-mode .section-title{display:flex;flex:auto;flex-direction:row;align-items:center;font-size:11px;text-transform:uppercase;font-weight:700;text-overflow:ellipsis;overflow:hidden;padding:8px;height:30px}.ui-mode-sidebar img{flex:none;margin-left:6px;width:24px;height:24px}.ui-mode .disconnected{display:flex;align-items:center;justify-content:center;flex:auto;flex-direction:column;background-color:var(--vscode-editor-background);position:absolute;top:0;right:0;bottom:0;left:0;z-index:1000;line-height:24px}.disconnected .title{font-size:24px;font-weight:700;margin-bottom:30px}.status-line{flex:auto;white-space:nowrap;line-height:22px;padding-left:10px;display:flex;flex-direction:row;align-items:center;height:30px}.status-line>div{overflow:hidden;text-overflow:ellipsis}.ui-mode-sidebar input[type=search]{flex:auto;padding:0 5px;line-height:24px;outline:none;margin:0 4px;border:none;color:var(--vscode-input-foreground);background-color:var(--vscode-input-background)}.ui-mode-sidebar select{flex:auto;padding:0 5px;height:24px;line-height:24px;outline:none;border:none;color:var(--vscode-input-foreground);background-color:var(--vscode-input-background)}:root{--vscode-font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif;--vscode-font-weight: normal;--vscode-font-size: 13px;--vscode-editor-font-family: "Droid Sans Mono", "monospace", monospace;--vscode-editor-font-weight: normal;--vscode-editor-font-size: 14px;--vscode-foreground: #616161;--vscode-disabledForeground: rgba(97, 97, 97, .5);--vscode-errorForeground: #a1260d;--vscode-descriptionForeground: #717171;--vscode-icon-foreground: #424242;--vscode-focusBorder: #0090f1;--vscode-textSeparator-foreground: rgba(0, 0, 0, .18);--vscode-textLink-foreground: #006ab1;--vscode-textLink-activeForeground: #006ab1;--vscode-textPreformat-foreground: #a31515;--vscode-textBlockQuote-background: rgba(127, 127, 127, .1);--vscode-textBlockQuote-border: rgba(0, 122, 204, .5);--vscode-textCodeBlock-background: rgba(220, 220, 220, .4);--vscode-widget-shadow: rgba(0, 0, 0, .16);--vscode-input-background: #ffffff;--vscode-input-foreground: #616161;--vscode-inputOption-activeBorder: #007acc;--vscode-inputOption-hoverBackground: rgba(184, 184, 184, .31);--vscode-inputOption-activeBackground: rgba(0, 144, 241, .2);--vscode-inputOption-activeForeground: #000000;--vscode-input-placeholderForeground: #767676;--vscode-inputValidation-infoBackground: #d6ecf2;--vscode-inputValidation-infoBorder: #007acc;--vscode-inputValidation-warningBackground: #f6f5d2;--vscode-inputValidation-warningBorder: #b89500;--vscode-inputValidation-errorBackground: #f2dede;--vscode-inputValidation-errorBorder: #be1100;--vscode-dropdown-background: #ffffff;--vscode-dropdown-border: #cecece;--vscode-checkbox-background: #ffffff;--vscode-checkbox-border: #cecece;--vscode-button-foreground: #ffffff;--vscode-button-separator: rgba(255, 255, 255, .4);--vscode-button-background: #007acc;--vscode-button-hoverBackground: #0062a3;--vscode-button-secondaryForeground: #ffffff;--vscode-button-secondaryBackground: #5f6a79;--vscode-button-secondaryHoverBackground: #4c5561;--vscode-badge-background: #c4c4c4;--vscode-badge-foreground: #333333;--vscode-scrollbar-shadow: #dddddd;--vscode-scrollbarSlider-background: rgba(100, 100, 100, .4);--vscode-scrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--vscode-scrollbarSlider-activeBackground: rgba(0, 0, 0, .6);--vscode-progressBar-background: #0e70c0;--vscode-editorError-foreground: #e51400;--vscode-editorWarning-foreground: #bf8803;--vscode-editorInfo-foreground: #1a85ff;--vscode-editorHint-foreground: #6c6c6c;--vscode-sash-hoverBorder: #0090f1;--vscode-editor-background: #ffffff;--vscode-editor-foreground: #000000;--vscode-editorStickyScroll-background: #ffffff;--vscode-editorStickyScrollHover-background: #f0f0f0;--vscode-editorWidget-background: #f3f3f3;--vscode-editorWidget-foreground: #616161;--vscode-editorWidget-border: #c8c8c8;--vscode-quickInput-background: #f3f3f3;--vscode-quickInput-foreground: #616161;--vscode-quickInputTitle-background: rgba(0, 0, 0, .06);--vscode-pickerGroup-foreground: #0066bf;--vscode-pickerGroup-border: #cccedb;--vscode-keybindingLabel-background: rgba(221, 221, 221, .4);--vscode-keybindingLabel-foreground: #555555;--vscode-keybindingLabel-border: rgba(204, 204, 204, .4);--vscode-keybindingLabel-bottomBorder: rgba(187, 187, 187, .4);--vscode-editor-selectionBackground: #add6ff;--vscode-editor-inactiveSelectionBackground: #e5ebf1;--vscode-editor-selectionHighlightBackground: rgba(173, 214, 255, .5);--vscode-editor-findMatchBackground: #a8ac94;--vscode-editor-findMatchHighlightBackground: rgba(234, 92, 0, .33);--vscode-editor-findRangeHighlightBackground: rgba(180, 180, 180, .3);--vscode-searchEditor-findMatchBackground: rgba(234, 92, 0, .22);--vscode-editor-hoverHighlightBackground: rgba(173, 214, 255, .15);--vscode-editorHoverWidget-background: #f3f3f3;--vscode-editorHoverWidget-foreground: #616161;--vscode-editorHoverWidget-border: #c8c8c8;--vscode-editorHoverWidget-statusBarBackground: #e7e7e7;--vscode-editorLink-activeForeground: #0000ff;--vscode-editorInlayHint-foreground: rgba(51, 51, 51, .8);--vscode-editorInlayHint-background: rgba(196, 196, 196, .3);--vscode-editorInlayHint-typeForeground: rgba(51, 51, 51, .8);--vscode-editorInlayHint-typeBackground: rgba(196, 196, 196, .3);--vscode-editorInlayHint-parameterForeground: rgba(51, 51, 51, .8);--vscode-editorInlayHint-parameterBackground: rgba(196, 196, 196, .3);--vscode-editorLightBulb-foreground: #ddb100;--vscode-editorLightBulbAutoFix-foreground: #007acc;--vscode-diffEditor-insertedTextBackground: rgba(156, 204, 44, .4);--vscode-diffEditor-removedTextBackground: rgba(255, 0, 0, .3);--vscode-diffEditor-insertedLineBackground: rgba(155, 185, 85, .2);--vscode-diffEditor-removedLineBackground: rgba(255, 0, 0, .2);--vscode-diffEditor-diagonalFill: rgba(34, 34, 34, .2);--vscode-list-focusOutline: #0090f1;--vscode-list-focusAndSelectionOutline: #90c2f9;--vscode-list-activeSelectionBackground: #0060c0;--vscode-list-activeSelectionForeground: #ffffff;--vscode-list-activeSelectionIconForeground: #ffffff;--vscode-list-inactiveSelectionBackground: #e4e6f1;--vscode-list-hoverBackground: #e8e8e8;--vscode-list-dropBackground: #d6ebff;--vscode-list-highlightForeground: #0066bf;--vscode-list-focusHighlightForeground: #bbe7ff;--vscode-list-invalidItemForeground: #b89500;--vscode-list-errorForeground: #b01011;--vscode-list-warningForeground: #855f00;--vscode-listFilterWidget-background: #f3f3f3;--vscode-listFilterWidget-outline: rgba(0, 0, 0, 0);--vscode-listFilterWidget-noMatchesOutline: #be1100;--vscode-listFilterWidget-shadow: rgba(0, 0, 0, .16);--vscode-list-filterMatchBackground: rgba(234, 92, 0, .33);--vscode-tree-indentGuidesStroke: #a9a9a9;--vscode-tree-tableColumnsBorder: rgba(97, 97, 97, .13);--vscode-tree-tableOddRowsBackground: rgba(97, 97, 97, .04);--vscode-list-deemphasizedForeground: #8e8e90;--vscode-quickInputList-focusForeground: #ffffff;--vscode-quickInputList-focusIconForeground: #ffffff;--vscode-quickInputList-focusBackground: #0060c0;--vscode-menu-foreground: #616161;--vscode-menu-background: #ffffff;--vscode-menu-selectionForeground: #ffffff;--vscode-menu-selectionBackground: #0060c0;--vscode-menu-separatorBackground: #d4d4d4;--vscode-toolbar-hoverBackground: rgba(184, 184, 184, .31);--vscode-toolbar-activeBackground: rgba(166, 166, 166, .31);--vscode-editor-snippetTabstopHighlightBackground: rgba(10, 50, 100, .2);--vscode-editor-snippetFinalTabstopHighlightBorder: rgba(10, 50, 100, .5);--vscode-breadcrumb-foreground: rgba(97, 97, 97, .8);--vscode-breadcrumb-background: #ffffff;--vscode-breadcrumb-focusForeground: #4e4e4e;--vscode-breadcrumb-activeSelectionForeground: #4e4e4e;--vscode-breadcrumbPicker-background: #f3f3f3;--vscode-merge-currentHeaderBackground: rgba(64, 200, 174, .5);--vscode-merge-currentContentBackground: rgba(64, 200, 174, .2);--vscode-merge-incomingHeaderBackground: rgba(64, 166, 255, .5);--vscode-merge-incomingContentBackground: rgba(64, 166, 255, .2);--vscode-merge-commonHeaderBackground: rgba(96, 96, 96, .4);--vscode-merge-commonContentBackground: rgba(96, 96, 96, .16);--vscode-editorOverviewRuler-currentContentForeground: rgba(64, 200, 174, .5);--vscode-editorOverviewRuler-incomingContentForeground: rgba(64, 166, 255, .5);--vscode-editorOverviewRuler-commonContentForeground: rgba(96, 96, 96, .4);--vscode-editorOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--vscode-editorOverviewRuler-selectionHighlightForeground: rgba(160, 160, 160, .8);--vscode-minimap-findMatchHighlight: #d18616;--vscode-minimap-selectionOccurrenceHighlight: #c9c9c9;--vscode-minimap-selectionHighlight: #add6ff;--vscode-minimap-errorHighlight: rgba(255, 18, 18, .7);--vscode-minimap-warningHighlight: #bf8803;--vscode-minimap-foregroundOpacity: #000000;--vscode-minimapSlider-background: rgba(100, 100, 100, .2);--vscode-minimapSlider-hoverBackground: rgba(100, 100, 100, .35);--vscode-minimapSlider-activeBackground: rgba(0, 0, 0, .3);--vscode-problemsErrorIcon-foreground: #e51400;--vscode-problemsWarningIcon-foreground: #bf8803;--vscode-problemsInfoIcon-foreground: #1a85ff;--vscode-charts-foreground: #616161;--vscode-charts-lines: rgba(97, 97, 97, .5);--vscode-charts-red: #e51400;--vscode-charts-blue: #1a85ff;--vscode-charts-yellow: #bf8803;--vscode-charts-orange: #d18616;--vscode-charts-green: #388a34;--vscode-charts-purple: #652d90;--vscode-editor-lineHighlightBorder: #eeeeee;--vscode-editor-rangeHighlightBackground: rgba(253, 255, 0, .2);--vscode-editor-symbolHighlightBackground: rgba(234, 92, 0, .33);--vscode-editorCursor-foreground: #000000;--vscode-editorWhitespace-foreground: rgba(51, 51, 51, .2);--vscode-editorIndentGuide-background: #d3d3d3;--vscode-editorIndentGuide-activeBackground: #939393;--vscode-editorLineNumber-foreground: #237893;--vscode-editorActiveLineNumber-foreground: #0b216f;--vscode-editorLineNumber-activeForeground: #0b216f;--vscode-editorRuler-foreground: #d3d3d3;--vscode-editorCodeLens-foreground: #919191;--vscode-editorBracketMatch-background: rgba(0, 100, 0, .1);--vscode-editorBracketMatch-border: #b9b9b9;--vscode-editorOverviewRuler-border: rgba(127, 127, 127, .3);--vscode-editorGutter-background: #ffffff;--vscode-editorUnnecessaryCode-opacity: rgba(0, 0, 0, .47);--vscode-editorGhostText-foreground: rgba(0, 0, 0, .47);--vscode-editorOverviewRuler-rangeHighlightForeground: rgba(0, 122, 204, .6);--vscode-editorOverviewRuler-errorForeground: rgba(255, 18, 18, .7);--vscode-editorOverviewRuler-warningForeground: #bf8803;--vscode-editorOverviewRuler-infoForeground: #1a85ff;--vscode-editorBracketHighlight-foreground1: #0431fa;--vscode-editorBracketHighlight-foreground2: #319331;--vscode-editorBracketHighlight-foreground3: #7b3814;--vscode-editorBracketHighlight-foreground4: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-foreground5: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-foreground6: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-unexpectedBracket\.foreground: rgba(255, 18, 18, .8);--vscode-editorBracketPairGuide-background1: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background2: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background3: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background4: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background5: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background6: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground1: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground2: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground3: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground4: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground5: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground6: rgba(0, 0, 0, 0);--vscode-editorUnicodeHighlight-border: #cea33d;--vscode-editorUnicodeHighlight-background: rgba(206, 163, 61, .08);--vscode-symbolIcon-arrayForeground: #616161;--vscode-symbolIcon-booleanForeground: #616161;--vscode-symbolIcon-classForeground: #d67e00;--vscode-symbolIcon-colorForeground: #616161;--vscode-symbolIcon-constantForeground: #616161;--vscode-symbolIcon-constructorForeground: #652d90;--vscode-symbolIcon-enumeratorForeground: #d67e00;--vscode-symbolIcon-enumeratorMemberForeground: #007acc;--vscode-symbolIcon-eventForeground: #d67e00;--vscode-symbolIcon-fieldForeground: #007acc;--vscode-symbolIcon-fileForeground: #616161;--vscode-symbolIcon-folderForeground: #616161;--vscode-symbolIcon-functionForeground: #652d90;--vscode-symbolIcon-interfaceForeground: #007acc;--vscode-symbolIcon-keyForeground: #616161;--vscode-symbolIcon-keywordForeground: #616161;--vscode-symbolIcon-methodForeground: #652d90;--vscode-symbolIcon-moduleForeground: #616161;--vscode-symbolIcon-namespaceForeground: #616161;--vscode-symbolIcon-nullForeground: #616161;--vscode-symbolIcon-numberForeground: #616161;--vscode-symbolIcon-objectForeground: #616161;--vscode-symbolIcon-operatorForeground: #616161;--vscode-symbolIcon-packageForeground: #616161;--vscode-symbolIcon-propertyForeground: #616161;--vscode-symbolIcon-referenceForeground: #616161;--vscode-symbolIcon-snippetForeground: #616161;--vscode-symbolIcon-stringForeground: #616161;--vscode-symbolIcon-structForeground: #616161;--vscode-symbolIcon-textForeground: #616161;--vscode-symbolIcon-typeParameterForeground: #616161;--vscode-symbolIcon-unitForeground: #616161;--vscode-symbolIcon-variableForeground: #007acc;--vscode-editorHoverWidget-highlightForeground: #0066bf;--vscode-editorOverviewRuler-bracketMatchForeground: #a0a0a0;--vscode-editor-foldBackground: rgba(173, 214, 255, .3);--vscode-editorGutter-foldingControlForeground: #424242;--vscode-editor-linkedEditingBackground: rgba(255, 0, 0, .3);--vscode-editor-wordHighlightBackground: rgba(87, 87, 87, .25);--vscode-editor-wordHighlightStrongBackground: rgba(14, 99, 156, .25);--vscode-editorOverviewRuler-wordHighlightForeground: rgba(160, 160, 160, .8);--vscode-editorOverviewRuler-wordHighlightStrongForeground: rgba(192, 160, 192, .8);--vscode-peekViewTitle-background: rgba(26, 133, 255, .1);--vscode-peekViewTitleLabel-foreground: #000000;--vscode-peekViewTitleDescription-foreground: #616161;--vscode-peekView-border: #1a85ff;--vscode-peekViewResult-background: #f3f3f3;--vscode-peekViewResult-lineForeground: #646465;--vscode-peekViewResult-fileForeground: #1e1e1e;--vscode-peekViewResult-selectionBackground: rgba(51, 153, 255, .2);--vscode-peekViewResult-selectionForeground: #6c6c6c;--vscode-peekViewEditor-background: #f2f8fc;--vscode-peekViewEditorGutter-background: #f2f8fc;--vscode-peekViewResult-matchHighlightBackground: rgba(234, 92, 0, .3);--vscode-peekViewEditor-matchHighlightBackground: rgba(245, 216, 2, .87);--vscode-editorMarkerNavigationError-background: #e51400;--vscode-editorMarkerNavigationError-headerBackground: rgba(229, 20, 0, .1);--vscode-editorMarkerNavigationWarning-background: #bf8803;--vscode-editorMarkerNavigationWarning-headerBackground: rgba(191, 136, 3, .1);--vscode-editorMarkerNavigationInfo-background: #1a85ff;--vscode-editorMarkerNavigationInfo-headerBackground: rgba(26, 133, 255, .1);--vscode-editorMarkerNavigation-background: #ffffff;--vscode-editorSuggestWidget-background: #f3f3f3;--vscode-editorSuggestWidget-border: #c8c8c8;--vscode-editorSuggestWidget-foreground: #000000;--vscode-editorSuggestWidget-selectedForeground: #ffffff;--vscode-editorSuggestWidget-selectedIconForeground: #ffffff;--vscode-editorSuggestWidget-selectedBackground: #0060c0;--vscode-editorSuggestWidget-highlightForeground: #0066bf;--vscode-editorSuggestWidget-focusHighlightForeground: #bbe7ff;--vscode-editorSuggestWidgetStatus-foreground: rgba(0, 0, 0, .5);--vscode-tab-activeBackground: #ffffff;--vscode-tab-unfocusedActiveBackground: #ffffff;--vscode-tab-inactiveBackground: #ececec;--vscode-tab-unfocusedInactiveBackground: #ececec;--vscode-tab-activeForeground: #333333;--vscode-tab-inactiveForeground: rgba(51, 51, 51, .7);--vscode-tab-unfocusedActiveForeground: rgba(51, 51, 51, .7);--vscode-tab-unfocusedInactiveForeground: rgba(51, 51, 51, .35);--vscode-tab-border: #f3f3f3;--vscode-tab-lastPinnedBorder: rgba(97, 97, 97, .19);--vscode-tab-activeModifiedBorder: #33aaee;--vscode-tab-inactiveModifiedBorder: rgba(51, 170, 238, .5);--vscode-tab-unfocusedActiveModifiedBorder: rgba(51, 170, 238, .7);--vscode-tab-unfocusedInactiveModifiedBorder: rgba(51, 170, 238, .25);--vscode-editorPane-background: #ffffff;--vscode-editorGroupHeader-tabsBackground: #f3f3f3;--vscode-editorGroupHeader-noTabsBackground: #ffffff;--vscode-editorGroup-border: #e7e7e7;--vscode-editorGroup-dropBackground: rgba(38, 119, 203, .18);--vscode-editorGroup-dropIntoPromptForeground: #616161;--vscode-editorGroup-dropIntoPromptBackground: #f3f3f3;--vscode-sideBySideEditor-horizontalBorder: #e7e7e7;--vscode-sideBySideEditor-verticalBorder: #e7e7e7;--vscode-panel-background: #ffffff;--vscode-panel-border: rgba(128, 128, 128, .35);--vscode-panelTitle-activeForeground: #424242;--vscode-panelTitle-inactiveForeground: rgba(66, 66, 66, .75);--vscode-panelTitle-activeBorder: #424242;--vscode-panelInput-border: #dddddd;--vscode-panel-dropBorder: #424242;--vscode-panelSection-dropBackground: rgba(38, 119, 203, .18);--vscode-panelSectionHeader-background: rgba(128, 128, 128, .2);--vscode-panelSection-border: rgba(128, 128, 128, .35);--vscode-banner-background: #004386;--vscode-banner-foreground: #ffffff;--vscode-banner-iconForeground: #1a85ff;--vscode-statusBar-foreground: #ffffff;--vscode-statusBar-noFolderForeground: #ffffff;--vscode-statusBar-background: #007acc;--vscode-statusBar-noFolderBackground: #68217a;--vscode-statusBar-focusBorder: #ffffff;--vscode-statusBarItem-activeBackground: rgba(255, 255, 255, .18);--vscode-statusBarItem-focusBorder: #ffffff;--vscode-statusBarItem-hoverBackground: rgba(255, 255, 255, .12);--vscode-statusBarItem-compactHoverBackground: rgba(255, 255, 255, .2);--vscode-statusBarItem-prominentForeground: #ffffff;--vscode-statusBarItem-prominentBackground: rgba(0, 0, 0, .5);--vscode-statusBarItem-prominentHoverBackground: rgba(0, 0, 0, .3);--vscode-statusBarItem-errorBackground: #c72e0f;--vscode-statusBarItem-errorForeground: #ffffff;--vscode-statusBarItem-warningBackground: #725102;--vscode-statusBarItem-warningForeground: #ffffff;--vscode-activityBar-background: #2c2c2c;--vscode-activityBar-foreground: #ffffff;--vscode-activityBar-inactiveForeground: rgba(255, 255, 255, .4);--vscode-activityBar-activeBorder: #ffffff;--vscode-activityBar-dropBorder: #ffffff;--vscode-activityBarBadge-background: #007acc;--vscode-activityBarBadge-foreground: #ffffff;--vscode-statusBarItem-remoteBackground: #16825d;--vscode-statusBarItem-remoteForeground: #ffffff;--vscode-extensionBadge-remoteBackground: #007acc;--vscode-extensionBadge-remoteForeground: #ffffff;--vscode-sideBar-background: #f3f3f3;--vscode-sideBarTitle-foreground: #6f6f6f;--vscode-sideBar-dropBackground: rgba(38, 119, 203, .18);--vscode-sideBarSectionHeader-background: rgba(0, 0, 0, 0);--vscode-sideBarSectionHeader-border: rgba(97, 97, 97, .19);--vscode-titleBar-activeForeground: #333333;--vscode-titleBar-inactiveForeground: rgba(51, 51, 51, .6);--vscode-titleBar-activeBackground: #dddddd;--vscode-titleBar-inactiveBackground: rgba(221, 221, 221, .6);--vscode-menubar-selectionForeground: #333333;--vscode-menubar-selectionBackground: rgba(184, 184, 184, .31);--vscode-notifications-foreground: #616161;--vscode-notifications-background: #f3f3f3;--vscode-notificationLink-foreground: #006ab1;--vscode-notificationCenterHeader-background: #e7e7e7;--vscode-notifications-border: #e7e7e7;--vscode-notificationsErrorIcon-foreground: #e51400;--vscode-notificationsWarningIcon-foreground: #bf8803;--vscode-notificationsInfoIcon-foreground: #1a85ff;--vscode-commandCenter-foreground: #333333;--vscode-commandCenter-activeForeground: #333333;--vscode-commandCenter-activeBackground: rgba(184, 184, 184, .31);--vscode-commandCenter-border: rgba(128, 128, 128, .35);--vscode-editorCommentsWidget-resolvedBorder: rgba(97, 97, 97, .5);--vscode-editorCommentsWidget-unresolvedBorder: #1a85ff;--vscode-editorCommentsWidget-rangeBackground: rgba(26, 133, 255, .1);--vscode-editorCommentsWidget-rangeBorder: rgba(26, 133, 255, .4);--vscode-editorCommentsWidget-rangeActiveBackground: rgba(26, 133, 255, .1);--vscode-editorCommentsWidget-rangeActiveBorder: rgba(26, 133, 255, .4);--vscode-editorGutter-commentRangeForeground: #d5d8e9;--vscode-debugToolBar-background: #f3f3f3;--vscode-debugIcon-startForeground: #388a34;--vscode-editor-stackFrameHighlightBackground: rgba(255, 255, 102, .45);--vscode-editor-focusedStackFrameHighlightBackground: rgba(206, 231, 206, .45);--vscode-mergeEditor-change\.background: rgba(155, 185, 85, .2);--vscode-mergeEditor-change\.word\.background: rgba(156, 204, 44, .4);--vscode-mergeEditor-conflict\.unhandledUnfocused\.border: rgba(255, 166, 0, .48);--vscode-mergeEditor-conflict\.unhandledFocused\.border: #ffa600;--vscode-mergeEditor-conflict\.handledUnfocused\.border: rgba(134, 134, 134, .29);--vscode-mergeEditor-conflict\.handledFocused\.border: rgba(193, 193, 193, .8);--vscode-mergeEditor-conflict\.handled\.minimapOverViewRuler: rgba(173, 172, 168, .93);--vscode-mergeEditor-conflict\.unhandled\.minimapOverViewRuler: #fcba03;--vscode-mergeEditor-conflictingLines\.background: rgba(255, 234, 0, .28);--vscode-settings-headerForeground: #444444;--vscode-settings-modifiedItemIndicator: #66afe0;--vscode-settings-headerBorder: rgba(128, 128, 128, .35);--vscode-settings-sashBorder: rgba(128, 128, 128, .35);--vscode-settings-dropdownBackground: #ffffff;--vscode-settings-dropdownBorder: #cecece;--vscode-settings-dropdownListBorder: #c8c8c8;--vscode-settings-checkboxBackground: #ffffff;--vscode-settings-checkboxBorder: #cecece;--vscode-settings-textInputBackground: #ffffff;--vscode-settings-textInputForeground: #616161;--vscode-settings-textInputBorder: #cecece;--vscode-settings-numberInputBackground: #ffffff;--vscode-settings-numberInputForeground: #616161;--vscode-settings-numberInputBorder: #cecece;--vscode-settings-focusedRowBackground: rgba(232, 232, 232, .6);--vscode-settings-rowHoverBackground: rgba(232, 232, 232, .3);--vscode-settings-focusedRowBorder: rgba(0, 0, 0, .12);--vscode-terminal-foreground: #333333;--vscode-terminal-selectionBackground: #add6ff;--vscode-terminal-inactiveSelectionBackground: #e5ebf1;--vscode-terminalCommandDecoration-defaultBackground: rgba(0, 0, 0, .25);--vscode-terminalCommandDecoration-successBackground: #2090d3;--vscode-terminalCommandDecoration-errorBackground: #e51400;--vscode-terminalOverviewRuler-cursorForeground: rgba(160, 160, 160, .8);--vscode-terminal-border: rgba(128, 128, 128, .35);--vscode-terminal-findMatchBackground: #a8ac94;--vscode-terminal-findMatchHighlightBackground: rgba(234, 92, 0, .33);--vscode-terminalOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--vscode-terminal-dropBackground: rgba(38, 119, 203, .18);--vscode-testing-iconFailed: #f14c4c;--vscode-testing-iconErrored: #f14c4c;--vscode-testing-iconPassed: #73c991;--vscode-testing-runAction: #73c991;--vscode-testing-iconQueued: #cca700;--vscode-testing-iconUnset: #848484;--vscode-testing-iconSkipped: #848484;--vscode-testing-peekBorder: #e51400;--vscode-testing-peekHeaderBackground: rgba(229, 20, 0, .1);--vscode-testing-message\.error\.decorationForeground: #e51400;--vscode-testing-message\.error\.lineBackground: rgba(255, 0, 0, .2);--vscode-testing-message\.info\.decorationForeground: rgba(0, 0, 0, .5);--vscode-welcomePage-tileBackground: #f3f3f3;--vscode-welcomePage-tileHoverBackground: #dbdbdb;--vscode-welcomePage-tileShadow: rgba(0, 0, 0, .16);--vscode-welcomePage-progress\.background: #ffffff;--vscode-welcomePage-progress\.foreground: #006ab1;--vscode-debugExceptionWidget-border: #a31515;--vscode-debugExceptionWidget-background: #f1dfde;--vscode-ports-iconRunningProcessForeground: #369432;--vscode-statusBar-debuggingBackground: #cc6633;--vscode-statusBar-debuggingForeground: #ffffff;--vscode-editor-inlineValuesForeground: rgba(0, 0, 0, .5);--vscode-editor-inlineValuesBackground: rgba(255, 200, 0, .2);--vscode-editorGutter-modifiedBackground: #2090d3;--vscode-editorGutter-addedBackground: #48985d;--vscode-editorGutter-deletedBackground: #e51400;--vscode-minimapGutter-modifiedBackground: #2090d3;--vscode-minimapGutter-addedBackground: #48985d;--vscode-minimapGutter-deletedBackground: #e51400;--vscode-editorOverviewRuler-modifiedForeground: rgba(32, 144, 211, .6);--vscode-editorOverviewRuler-addedForeground: rgba(72, 152, 93, .6);--vscode-editorOverviewRuler-deletedForeground: rgba(229, 20, 0, .6);--vscode-debugIcon-breakpointForeground: #e51400;--vscode-debugIcon-breakpointDisabledForeground: #848484;--vscode-debugIcon-breakpointUnverifiedForeground: #848484;--vscode-debugIcon-breakpointCurrentStackframeForeground: #be8700;--vscode-debugIcon-breakpointStackframeForeground: #89d185;--vscode-notebook-cellBorderColor: #e8e8e8;--vscode-notebook-focusedEditorBorder: #0090f1;--vscode-notebookStatusSuccessIcon-foreground: #388a34;--vscode-notebookStatusErrorIcon-foreground: #a1260d;--vscode-notebookStatusRunningIcon-foreground: #616161;--vscode-notebook-cellToolbarSeparator: rgba(128, 128, 128, .35);--vscode-notebook-selectedCellBackground: rgba(200, 221, 241, .31);--vscode-notebook-selectedCellBorder: #e8e8e8;--vscode-notebook-focusedCellBorder: #0090f1;--vscode-notebook-inactiveFocusedCellBorder: #e8e8e8;--vscode-notebook-cellStatusBarItemHoverBackground: rgba(0, 0, 0, .08);--vscode-notebook-cellInsertionIndicator: #0090f1;--vscode-notebookScrollbarSlider-background: rgba(100, 100, 100, .4);--vscode-notebookScrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--vscode-notebookScrollbarSlider-activeBackground: rgba(0, 0, 0, .6);--vscode-notebook-symbolHighlightBackground: rgba(253, 255, 0, .2);--vscode-notebook-cellEditorBackground: #f3f3f3;--vscode-notebook-editorBackground: #ffffff;--vscode-keybindingTable-headerBackground: rgba(97, 97, 97, .04);--vscode-keybindingTable-rowsBackground: rgba(97, 97, 97, .04);--vscode-scm-providerBorder: #c8c8c8;--vscode-searchEditor-textInputBorder: #cecece;--vscode-debugTokenExpression-name: #9b46b0;--vscode-debugTokenExpression-value: rgba(108, 108, 108, .8);--vscode-debugTokenExpression-string: #a31515;--vscode-debugTokenExpression-boolean: #0000ff;--vscode-debugTokenExpression-number: #098658;--vscode-debugTokenExpression-error: #e51400;--vscode-debugView-exceptionLabelForeground: #ffffff;--vscode-debugView-exceptionLabelBackground: #a31515;--vscode-debugView-stateLabelForeground: #616161;--vscode-debugView-stateLabelBackground: rgba(136, 136, 136, .27);--vscode-debugView-valueChangedHighlight: #569cd6;--vscode-debugConsole-infoForeground: #1a85ff;--vscode-debugConsole-warningForeground: #bf8803;--vscode-debugConsole-errorForeground: #a1260d;--vscode-debugConsole-sourceForeground: #616161;--vscode-debugConsoleInputIcon-foreground: #616161;--vscode-debugIcon-pauseForeground: #007acc;--vscode-debugIcon-stopForeground: #a1260d;--vscode-debugIcon-disconnectForeground: #a1260d;--vscode-debugIcon-restartForeground: #388a34;--vscode-debugIcon-stepOverForeground: #007acc;--vscode-debugIcon-stepIntoForeground: #007acc;--vscode-debugIcon-stepOutForeground: #007acc;--vscode-debugIcon-continueForeground: #007acc;--vscode-debugIcon-stepBackForeground: #007acc;--vscode-extensionButton-prominentBackground: #007acc;--vscode-extensionButton-prominentForeground: #ffffff;--vscode-extensionButton-prominentHoverBackground: #0062a3;--vscode-extensionIcon-starForeground: #df6100;--vscode-extensionIcon-verifiedForeground: #006ab1;--vscode-extensionIcon-preReleaseForeground: #1d9271;--vscode-extensionIcon-sponsorForeground: #b51e78;--vscode-terminal-ansiBlack: #000000;--vscode-terminal-ansiRed: #cd3131;--vscode-terminal-ansiGreen: #00bc00;--vscode-terminal-ansiYellow: #949800;--vscode-terminal-ansiBlue: #0451a5;--vscode-terminal-ansiMagenta: #bc05bc;--vscode-terminal-ansiCyan: #0598bc;--vscode-terminal-ansiWhite: #555555;--vscode-terminal-ansiBrightBlack: #666666;--vscode-terminal-ansiBrightRed: #cd3131;--vscode-terminal-ansiBrightGreen: #14ce14;--vscode-terminal-ansiBrightYellow: #b5ba00;--vscode-terminal-ansiBrightBlue: #0451a5;--vscode-terminal-ansiBrightMagenta: #bc05bc;--vscode-terminal-ansiBrightCyan: #0598bc;--vscode-terminal-ansiBrightWhite: #a5a5a5;--vscode-interactive-activeCodeBorder: #1a85ff;--vscode-interactive-inactiveCodeBorder: #e4e6f1;--vscode-gitDecoration-addedResourceForeground: #587c0c;--vscode-gitDecoration-modifiedResourceForeground: #895503;--vscode-gitDecoration-deletedResourceForeground: #ad0707;--vscode-gitDecoration-renamedResourceForeground: #007100;--vscode-gitDecoration-untrackedResourceForeground: #007100;--vscode-gitDecoration-ignoredResourceForeground: #8e8e90;--vscode-gitDecoration-stageModifiedResourceForeground: #895503;--vscode-gitDecoration-stageDeletedResourceForeground: #ad0707;--vscode-gitDecoration-conflictingResourceForeground: #ad0707;--vscode-gitDecoration-submoduleResourceForeground: #1258a7}:root.light-mode{color-scheme:light}:root.dark-mode{color-scheme:dark;--vscode-font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif;--vscode-font-weight: normal;--vscode-font-size: 13px;--vscode-editor-font-family: "Droid Sans Mono", "monospace", monospace;--vscode-editor-font-weight: normal;--vscode-editor-font-size: 14px;--vscode-foreground: #cccccc;--vscode-disabledForeground: rgba(204, 204, 204, .5);--vscode-errorForeground: #f48771;--vscode-descriptionForeground: rgba(204, 204, 204, .7);--vscode-icon-foreground: #c5c5c5;--vscode-focusBorder: #007fd4;--vscode-textSeparator-foreground: rgba(255, 255, 255, .18);--vscode-textLink-foreground: #3794ff;--vscode-textLink-activeForeground: #3794ff;--vscode-textPreformat-foreground: #d7ba7d;--vscode-textBlockQuote-background: rgba(127, 127, 127, .1);--vscode-textBlockQuote-border: rgba(0, 122, 204, .5);--vscode-textCodeBlock-background: rgba(10, 10, 10, .4);--vscode-widget-shadow: rgba(0, 0, 0, .36);--vscode-input-background: #3c3c3c;--vscode-input-foreground: #cccccc;--vscode-inputOption-activeBorder: #007acc;--vscode-inputOption-hoverBackground: rgba(90, 93, 94, .5);--vscode-inputOption-activeBackground: rgba(0, 127, 212, .4);--vscode-inputOption-activeForeground: #ffffff;--vscode-input-placeholderForeground: #a6a6a6;--vscode-inputValidation-infoBackground: #063b49;--vscode-inputValidation-infoBorder: #007acc;--vscode-inputValidation-warningBackground: #352a05;--vscode-inputValidation-warningBorder: #b89500;--vscode-inputValidation-errorBackground: #5a1d1d;--vscode-inputValidation-errorBorder: #be1100;--vscode-dropdown-background: #3c3c3c;--vscode-dropdown-foreground: #f0f0f0;--vscode-dropdown-border: #3c3c3c;--vscode-checkbox-background: #3c3c3c;--vscode-checkbox-foreground: #f0f0f0;--vscode-checkbox-border: #3c3c3c;--vscode-button-foreground: #ffffff;--vscode-button-separator: rgba(255, 255, 255, .4);--vscode-button-background: #0e639c;--vscode-button-hoverBackground: #1177bb;--vscode-button-secondaryForeground: #ffffff;--vscode-button-secondaryBackground: #3a3d41;--vscode-button-secondaryHoverBackground: #45494e;--vscode-badge-background: #4d4d4d;--vscode-badge-foreground: #ffffff;--vscode-scrollbar-shadow: #000000;--vscode-scrollbarSlider-background: rgba(121, 121, 121, .4);--vscode-scrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--vscode-scrollbarSlider-activeBackground: rgba(191, 191, 191, .4);--vscode-progressBar-background: #0e70c0;--vscode-editorError-foreground: #f14c4c;--vscode-editorWarning-foreground: #cca700;--vscode-editorInfo-foreground: #3794ff;--vscode-editorHint-foreground: rgba(238, 238, 238, .7);--vscode-sash-hoverBorder: #007fd4;--vscode-editor-background: #1e1e1e;--vscode-editor-foreground: #d4d4d4;--vscode-editorStickyScroll-background: #1e1e1e;--vscode-editorStickyScrollHover-background: #2a2d2e;--vscode-editorWidget-background: #252526;--vscode-editorWidget-foreground: #cccccc;--vscode-editorWidget-border: #454545;--vscode-quickInput-background: #252526;--vscode-quickInput-foreground: #cccccc;--vscode-quickInputTitle-background: rgba(255, 255, 255, .1);--vscode-pickerGroup-foreground: #3794ff;--vscode-pickerGroup-border: #3f3f46;--vscode-keybindingLabel-background: rgba(128, 128, 128, .17);--vscode-keybindingLabel-foreground: #cccccc;--vscode-keybindingLabel-border: rgba(51, 51, 51, .6);--vscode-keybindingLabel-bottomBorder: rgba(68, 68, 68, .6);--vscode-editor-selectionBackground: #264f78;--vscode-editor-inactiveSelectionBackground: #3a3d41;--vscode-editor-selectionHighlightBackground: rgba(173, 214, 255, .15);--vscode-editor-findMatchBackground: #515c6a;--vscode-editor-findMatchHighlightBackground: rgba(234, 92, 0, .33);--vscode-editor-findRangeHighlightBackground: rgba(58, 61, 65, .4);--vscode-searchEditor-findMatchBackground: rgba(234, 92, 0, .22);--vscode-editor-hoverHighlightBackground: rgba(38, 79, 120, .25);--vscode-editorHoverWidget-background: #252526;--vscode-editorHoverWidget-foreground: #cccccc;--vscode-editorHoverWidget-border: #454545;--vscode-editorHoverWidget-statusBarBackground: #2c2c2d;--vscode-editorLink-activeForeground: #4e94ce;--vscode-editorInlayHint-foreground: rgba(255, 255, 255, .8);--vscode-editorInlayHint-background: rgba(77, 77, 77, .6);--vscode-editorInlayHint-typeForeground: rgba(255, 255, 255, .8);--vscode-editorInlayHint-typeBackground: rgba(77, 77, 77, .6);--vscode-editorInlayHint-parameterForeground: rgba(255, 255, 255, .8);--vscode-editorInlayHint-parameterBackground: rgba(77, 77, 77, .6);--vscode-editorLightBulb-foreground: #ffcc00;--vscode-editorLightBulbAutoFix-foreground: #75beff;--vscode-diffEditor-insertedTextBackground: rgba(156, 204, 44, .2);--vscode-diffEditor-removedTextBackground: rgba(255, 0, 0, .4);--vscode-diffEditor-insertedLineBackground: rgba(155, 185, 85, .2);--vscode-diffEditor-removedLineBackground: rgba(255, 0, 0, .2);--vscode-diffEditor-diagonalFill: rgba(204, 204, 204, .2);--vscode-list-focusOutline: #007fd4;--vscode-list-activeSelectionBackground: #04395e;--vscode-list-activeSelectionForeground: #ffffff;--vscode-list-activeSelectionIconForeground: #ffffff;--vscode-list-inactiveSelectionBackground: #37373d;--vscode-list-hoverBackground: #2a2d2e;--vscode-list-dropBackground: #383b3d;--vscode-list-highlightForeground: #2aaaff;--vscode-list-focusHighlightForeground: #2aaaff;--vscode-list-invalidItemForeground: #b89500;--vscode-list-errorForeground: #f88070;--vscode-list-warningForeground: #cca700;--vscode-listFilterWidget-background: #252526;--vscode-listFilterWidget-outline: rgba(0, 0, 0, 0);--vscode-listFilterWidget-noMatchesOutline: #be1100;--vscode-listFilterWidget-shadow: rgba(0, 0, 0, .36);--vscode-list-filterMatchBackground: rgba(234, 92, 0, .33);--vscode-tree-indentGuidesStroke: #585858;--vscode-tree-tableColumnsBorder: rgba(204, 204, 204, .13);--vscode-tree-tableOddRowsBackground: rgba(204, 204, 204, .04);--vscode-list-deemphasizedForeground: #8c8c8c;--vscode-quickInputList-focusForeground: #ffffff;--vscode-quickInputList-focusIconForeground: #ffffff;--vscode-quickInputList-focusBackground: #04395e;--vscode-menu-foreground: #cccccc;--vscode-menu-background: #303031;--vscode-menu-selectionForeground: #ffffff;--vscode-menu-selectionBackground: #04395e;--vscode-menu-separatorBackground: #606060;--vscode-toolbar-hoverBackground: rgba(90, 93, 94, .31);--vscode-toolbar-activeBackground: rgba(99, 102, 103, .31);--vscode-editor-snippetTabstopHighlightBackground: rgba(124, 124, 124, .3);--vscode-editor-snippetFinalTabstopHighlightBorder: #525252;--vscode-breadcrumb-foreground: rgba(204, 204, 204, .8);--vscode-breadcrumb-background: #1e1e1e;--vscode-breadcrumb-focusForeground: #e0e0e0;--vscode-breadcrumb-activeSelectionForeground: #e0e0e0;--vscode-breadcrumbPicker-background: #252526;--vscode-merge-currentHeaderBackground: rgba(64, 200, 174, .5);--vscode-merge-currentContentBackground: rgba(64, 200, 174, .2);--vscode-merge-incomingHeaderBackground: rgba(64, 166, 255, .5);--vscode-merge-incomingContentBackground: rgba(64, 166, 255, .2);--vscode-merge-commonHeaderBackground: rgba(96, 96, 96, .4);--vscode-merge-commonContentBackground: rgba(96, 96, 96, .16);--vscode-editorOverviewRuler-currentContentForeground: rgba(64, 200, 174, .5);--vscode-editorOverviewRuler-incomingContentForeground: rgba(64, 166, 255, .5);--vscode-editorOverviewRuler-commonContentForeground: rgba(96, 96, 96, .4);--vscode-editorOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--vscode-editorOverviewRuler-selectionHighlightForeground: rgba(160, 160, 160, .8);--vscode-minimap-findMatchHighlight: #d18616;--vscode-minimap-selectionOccurrenceHighlight: #676767;--vscode-minimap-selectionHighlight: #264f78;--vscode-minimap-errorHighlight: rgba(255, 18, 18, .7);--vscode-minimap-warningHighlight: #cca700;--vscode-minimap-foregroundOpacity: #000000;--vscode-minimapSlider-background: rgba(121, 121, 121, .2);--vscode-minimapSlider-hoverBackground: rgba(100, 100, 100, .35);--vscode-minimapSlider-activeBackground: rgba(191, 191, 191, .2);--vscode-problemsErrorIcon-foreground: #f14c4c;--vscode-problemsWarningIcon-foreground: #cca700;--vscode-problemsInfoIcon-foreground: #3794ff;--vscode-charts-foreground: #cccccc;--vscode-charts-lines: rgba(204, 204, 204, .5);--vscode-charts-red: #f14c4c;--vscode-charts-blue: #3794ff;--vscode-charts-yellow: #cca700;--vscode-charts-orange: #d18616;--vscode-charts-green: #89d185;--vscode-charts-purple: #b180d7;--vscode-editor-lineHighlightBorder: #282828;--vscode-editor-rangeHighlightBackground: rgba(255, 255, 255, .04);--vscode-editor-symbolHighlightBackground: rgba(234, 92, 0, .33);--vscode-editorCursor-foreground: #aeafad;--vscode-editorWhitespace-foreground: rgba(227, 228, 226, .16);--vscode-editorIndentGuide-background: #404040;--vscode-editorIndentGuide-activeBackground: #707070;--vscode-editorLineNumber-foreground: #858585;--vscode-editorActiveLineNumber-foreground: #c6c6c6;--vscode-editorLineNumber-activeForeground: #c6c6c6;--vscode-editorRuler-foreground: #5a5a5a;--vscode-editorCodeLens-foreground: #999999;--vscode-editorBracketMatch-background: rgba(0, 100, 0, .1);--vscode-editorBracketMatch-border: #888888;--vscode-editorOverviewRuler-border: rgba(127, 127, 127, .3);--vscode-editorGutter-background: #1e1e1e;--vscode-editorUnnecessaryCode-opacity: rgba(0, 0, 0, .67);--vscode-editorGhostText-foreground: rgba(255, 255, 255, .34);--vscode-editorOverviewRuler-rangeHighlightForeground: rgba(0, 122, 204, .6);--vscode-editorOverviewRuler-errorForeground: rgba(255, 18, 18, .7);--vscode-editorOverviewRuler-warningForeground: #cca700;--vscode-editorOverviewRuler-infoForeground: #3794ff;--vscode-editorBracketHighlight-foreground1: #ffd700;--vscode-editorBracketHighlight-foreground2: #da70d6;--vscode-editorBracketHighlight-foreground3: #179fff;--vscode-editorBracketHighlight-foreground4: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-foreground5: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-foreground6: rgba(0, 0, 0, 0);--vscode-editorBracketHighlight-unexpectedBracket\.foreground: rgba(255, 18, 18, .8);--vscode-editorBracketPairGuide-background1: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background2: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background3: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background4: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background5: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-background6: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground1: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground2: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground3: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground4: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground5: rgba(0, 0, 0, 0);--vscode-editorBracketPairGuide-activeBackground6: rgba(0, 0, 0, 0);--vscode-editorUnicodeHighlight-border: #bd9b03;--vscode-editorUnicodeHighlight-background: rgba(189, 155, 3, .15);--vscode-symbolIcon-arrayForeground: #cccccc;--vscode-symbolIcon-booleanForeground: #cccccc;--vscode-symbolIcon-classForeground: #ee9d28;--vscode-symbolIcon-colorForeground: #cccccc;--vscode-symbolIcon-constantForeground: #cccccc;--vscode-symbolIcon-constructorForeground: #b180d7;--vscode-symbolIcon-enumeratorForeground: #ee9d28;--vscode-symbolIcon-enumeratorMemberForeground: #75beff;--vscode-symbolIcon-eventForeground: #ee9d28;--vscode-symbolIcon-fieldForeground: #75beff;--vscode-symbolIcon-fileForeground: #cccccc;--vscode-symbolIcon-folderForeground: #cccccc;--vscode-symbolIcon-functionForeground: #b180d7;--vscode-symbolIcon-interfaceForeground: #75beff;--vscode-symbolIcon-keyForeground: #cccccc;--vscode-symbolIcon-keywordForeground: #cccccc;--vscode-symbolIcon-methodForeground: #b180d7;--vscode-symbolIcon-moduleForeground: #cccccc;--vscode-symbolIcon-namespaceForeground: #cccccc;--vscode-symbolIcon-nullForeground: #cccccc;--vscode-symbolIcon-numberForeground: #cccccc;--vscode-symbolIcon-objectForeground: #cccccc;--vscode-symbolIcon-operatorForeground: #cccccc;--vscode-symbolIcon-packageForeground: #cccccc;--vscode-symbolIcon-propertyForeground: #cccccc;--vscode-symbolIcon-referenceForeground: #cccccc;--vscode-symbolIcon-snippetForeground: #cccccc;--vscode-symbolIcon-stringForeground: #cccccc;--vscode-symbolIcon-structForeground: #cccccc;--vscode-symbolIcon-textForeground: #cccccc;--vscode-symbolIcon-typeParameterForeground: #cccccc;--vscode-symbolIcon-unitForeground: #cccccc;--vscode-symbolIcon-variableForeground: #75beff;--vscode-editorHoverWidget-highlightForeground: #2aaaff;--vscode-editorOverviewRuler-bracketMatchForeground: #a0a0a0;--vscode-editor-foldBackground: rgba(38, 79, 120, .3);--vscode-editorGutter-foldingControlForeground: #c5c5c5;--vscode-editor-linkedEditingBackground: rgba(255, 0, 0, .3);--vscode-editor-wordHighlightBackground: rgba(87, 87, 87, .72);--vscode-editor-wordHighlightStrongBackground: rgba(0, 73, 114, .72);--vscode-editorOverviewRuler-wordHighlightForeground: rgba(160, 160, 160, .8);--vscode-editorOverviewRuler-wordHighlightStrongForeground: rgba(192, 160, 192, .8);--vscode-peekViewTitle-background: rgba(55, 148, 255, .1);--vscode-peekViewTitleLabel-foreground: #ffffff;--vscode-peekViewTitleDescription-foreground: rgba(204, 204, 204, .7);--vscode-peekView-border: #3794ff;--vscode-peekViewResult-background: #252526;--vscode-peekViewResult-lineForeground: #bbbbbb;--vscode-peekViewResult-fileForeground: #ffffff;--vscode-peekViewResult-selectionBackground: rgba(51, 153, 255, .2);--vscode-peekViewResult-selectionForeground: #ffffff;--vscode-peekViewEditor-background: #001f33;--vscode-peekViewEditorGutter-background: #001f33;--vscode-peekViewResult-matchHighlightBackground: rgba(234, 92, 0, .3);--vscode-peekViewEditor-matchHighlightBackground: rgba(255, 143, 0, .6);--vscode-editorMarkerNavigationError-background: #f14c4c;--vscode-editorMarkerNavigationError-headerBackground: rgba(241, 76, 76, .1);--vscode-editorMarkerNavigationWarning-background: #cca700;--vscode-editorMarkerNavigationWarning-headerBackground: rgba(204, 167, 0, .1);--vscode-editorMarkerNavigationInfo-background: #3794ff;--vscode-editorMarkerNavigationInfo-headerBackground: rgba(55, 148, 255, .1);--vscode-editorMarkerNavigation-background: #1e1e1e;--vscode-editorSuggestWidget-background: #252526;--vscode-editorSuggestWidget-border: #454545;--vscode-editorSuggestWidget-foreground: #d4d4d4;--vscode-editorSuggestWidget-selectedForeground: #ffffff;--vscode-editorSuggestWidget-selectedIconForeground: #ffffff;--vscode-editorSuggestWidget-selectedBackground: #04395e;--vscode-editorSuggestWidget-highlightForeground: #2aaaff;--vscode-editorSuggestWidget-focusHighlightForeground: #2aaaff;--vscode-editorSuggestWidgetStatus-foreground: rgba(212, 212, 212, .5);--vscode-tab-activeBackground: #1e1e1e;--vscode-tab-unfocusedActiveBackground: #1e1e1e;--vscode-tab-inactiveBackground: #2d2d2d;--vscode-tab-unfocusedInactiveBackground: #2d2d2d;--vscode-tab-activeForeground: #ffffff;--vscode-tab-inactiveForeground: rgba(255, 255, 255, .5);--vscode-tab-unfocusedActiveForeground: rgba(255, 255, 255, .5);--vscode-tab-unfocusedInactiveForeground: rgba(255, 255, 255, .25);--vscode-tab-border: #252526;--vscode-tab-lastPinnedBorder: rgba(204, 204, 204, .2);--vscode-tab-activeModifiedBorder: #3399cc;--vscode-tab-inactiveModifiedBorder: rgba(51, 153, 204, .5);--vscode-tab-unfocusedActiveModifiedBorder: rgba(51, 153, 204, .5);--vscode-tab-unfocusedInactiveModifiedBorder: rgba(51, 153, 204, .25);--vscode-editorPane-background: #1e1e1e;--vscode-editorGroupHeader-tabsBackground: #252526;--vscode-editorGroupHeader-noTabsBackground: #1e1e1e;--vscode-editorGroup-border: #444444;--vscode-editorGroup-dropBackground: rgba(83, 89, 93, .5);--vscode-editorGroup-dropIntoPromptForeground: #cccccc;--vscode-editorGroup-dropIntoPromptBackground: #252526;--vscode-sideBySideEditor-horizontalBorder: #444444;--vscode-sideBySideEditor-verticalBorder: #444444;--vscode-panel-background: #1e1e1e;--vscode-panel-border: rgba(128, 128, 128, .35);--vscode-panelTitle-activeForeground: #e7e7e7;--vscode-panelTitle-inactiveForeground: rgba(231, 231, 231, .6);--vscode-panelTitle-activeBorder: #e7e7e7;--vscode-panel-dropBorder: #e7e7e7;--vscode-panelSection-dropBackground: rgba(83, 89, 93, .5);--vscode-panelSectionHeader-background: rgba(128, 128, 128, .2);--vscode-panelSection-border: rgba(128, 128, 128, .35);--vscode-banner-background: #04395e;--vscode-banner-foreground: #ffffff;--vscode-banner-iconForeground: #3794ff;--vscode-statusBar-foreground: #ffffff;--vscode-statusBar-noFolderForeground: #ffffff;--vscode-statusBar-background: #007acc;--vscode-statusBar-noFolderBackground: #68217a;--vscode-statusBar-focusBorder: #ffffff;--vscode-statusBarItem-activeBackground: rgba(255, 255, 255, .18);--vscode-statusBarItem-focusBorder: #ffffff;--vscode-statusBarItem-hoverBackground: rgba(255, 255, 255, .12);--vscode-statusBarItem-compactHoverBackground: rgba(255, 255, 255, .2);--vscode-statusBarItem-prominentForeground: #ffffff;--vscode-statusBarItem-prominentBackground: rgba(0, 0, 0, .5);--vscode-statusBarItem-prominentHoverBackground: rgba(0, 0, 0, .3);--vscode-statusBarItem-errorBackground: #c72e0f;--vscode-statusBarItem-errorForeground: #ffffff;--vscode-statusBarItem-warningBackground: #7a6400;--vscode-statusBarItem-warningForeground: #ffffff;--vscode-activityBar-background: #333333;--vscode-activityBar-foreground: #ffffff;--vscode-activityBar-inactiveForeground: rgba(255, 255, 255, .4);--vscode-activityBar-activeBorder: #ffffff;--vscode-activityBar-dropBorder: #ffffff;--vscode-activityBarBadge-background: #007acc;--vscode-activityBarBadge-foreground: #ffffff;--vscode-statusBarItem-remoteBackground: #16825d;--vscode-statusBarItem-remoteForeground: #ffffff;--vscode-extensionBadge-remoteBackground: #007acc;--vscode-extensionBadge-remoteForeground: #ffffff;--vscode-sideBar-background: #252526;--vscode-sideBarTitle-foreground: #bbbbbb;--vscode-sideBar-dropBackground: rgba(83, 89, 93, .5);--vscode-sideBarSectionHeader-background: rgba(0, 0, 0, 0);--vscode-sideBarSectionHeader-border: rgba(204, 204, 204, .2);--vscode-titleBar-activeForeground: #cccccc;--vscode-titleBar-inactiveForeground: rgba(204, 204, 204, .6);--vscode-titleBar-activeBackground: #3c3c3c;--vscode-titleBar-inactiveBackground: rgba(60, 60, 60, .6);--vscode-menubar-selectionForeground: #cccccc;--vscode-menubar-selectionBackground: rgba(90, 93, 94, .31);--vscode-notifications-foreground: #cccccc;--vscode-notifications-background: #252526;--vscode-notificationLink-foreground: #3794ff;--vscode-notificationCenterHeader-background: #303031;--vscode-notifications-border: #303031;--vscode-notificationsErrorIcon-foreground: #f14c4c;--vscode-notificationsWarningIcon-foreground: #cca700;--vscode-notificationsInfoIcon-foreground: #3794ff;--vscode-commandCenter-foreground: #cccccc;--vscode-commandCenter-activeForeground: #cccccc;--vscode-commandCenter-activeBackground: rgba(90, 93, 94, .31);--vscode-commandCenter-border: rgba(128, 128, 128, .35);--vscode-editorCommentsWidget-resolvedBorder: rgba(204, 204, 204, .5);--vscode-editorCommentsWidget-unresolvedBorder: #3794ff;--vscode-editorCommentsWidget-rangeBackground: rgba(55, 148, 255, .1);--vscode-editorCommentsWidget-rangeBorder: rgba(55, 148, 255, .4);--vscode-editorCommentsWidget-rangeActiveBackground: rgba(55, 148, 255, .1);--vscode-editorCommentsWidget-rangeActiveBorder: rgba(55, 148, 255, .4);--vscode-editorGutter-commentRangeForeground: #37373d;--vscode-debugToolBar-background: #333333;--vscode-debugIcon-startForeground: #89d185;--vscode-editor-stackFrameHighlightBackground: rgba(255, 255, 0, .2);--vscode-editor-focusedStackFrameHighlightBackground: rgba(122, 189, 122, .3);--vscode-mergeEditor-change\.background: rgba(155, 185, 85, .2);--vscode-mergeEditor-change\.word\.background: rgba(156, 204, 44, .2);--vscode-mergeEditor-conflict\.unhandledUnfocused\.border: rgba(255, 166, 0, .48);--vscode-mergeEditor-conflict\.unhandledFocused\.border: #ffa600;--vscode-mergeEditor-conflict\.handledUnfocused\.border: rgba(134, 134, 134, .29);--vscode-mergeEditor-conflict\.handledFocused\.border: rgba(193, 193, 193, .8);--vscode-mergeEditor-conflict\.handled\.minimapOverViewRuler: rgba(173, 172, 168, .93);--vscode-mergeEditor-conflict\.unhandled\.minimapOverViewRuler: #fcba03;--vscode-mergeEditor-conflictingLines\.background: rgba(255, 234, 0, .28);--vscode-settings-headerForeground: #e7e7e7;--vscode-settings-modifiedItemIndicator: #0c7d9d;--vscode-settings-headerBorder: rgba(128, 128, 128, .35);--vscode-settings-sashBorder: rgba(128, 128, 128, .35);--vscode-settings-dropdownBackground: #3c3c3c;--vscode-settings-dropdownForeground: #f0f0f0;--vscode-settings-dropdownBorder: #3c3c3c;--vscode-settings-dropdownListBorder: #454545;--vscode-settings-checkboxBackground: #3c3c3c;--vscode-settings-checkboxForeground: #f0f0f0;--vscode-settings-checkboxBorder: #3c3c3c;--vscode-settings-textInputBackground: #3c3c3c;--vscode-settings-textInputForeground: #cccccc;--vscode-settings-numberInputBackground: #3c3c3c;--vscode-settings-numberInputForeground: #cccccc;--vscode-settings-focusedRowBackground: rgba(42, 45, 46, .6);--vscode-settings-rowHoverBackground: rgba(42, 45, 46, .3);--vscode-settings-focusedRowBorder: rgba(255, 255, 255, .12);--vscode-terminal-foreground: #cccccc;--vscode-terminal-selectionBackground: #264f78;--vscode-terminal-inactiveSelectionBackground: #3a3d41;--vscode-terminalCommandDecoration-defaultBackground: rgba(255, 255, 255, .25);--vscode-terminalCommandDecoration-successBackground: #1b81a8;--vscode-terminalCommandDecoration-errorBackground: #f14c4c;--vscode-terminalOverviewRuler-cursorForeground: rgba(160, 160, 160, .8);--vscode-terminal-border: rgba(128, 128, 128, .35);--vscode-terminal-findMatchBackground: #515c6a;--vscode-terminal-findMatchHighlightBackground: rgba(234, 92, 0, .33);--vscode-terminalOverviewRuler-findMatchForeground: rgba(209, 134, 22, .49);--vscode-terminal-dropBackground: rgba(83, 89, 93, .5);--vscode-testing-iconFailed: #f14c4c;--vscode-testing-iconErrored: #f14c4c;--vscode-testing-iconPassed: #73c991;--vscode-testing-runAction: #73c991;--vscode-testing-iconQueued: #cca700;--vscode-testing-iconUnset: #848484;--vscode-testing-iconSkipped: #848484;--vscode-testing-peekBorder: #f14c4c;--vscode-testing-peekHeaderBackground: rgba(241, 76, 76, .1);--vscode-testing-message\.error\.decorationForeground: #f14c4c;--vscode-testing-message\.error\.lineBackground: rgba(255, 0, 0, .2);--vscode-testing-message\.info\.decorationForeground: rgba(212, 212, 212, .5);--vscode-welcomePage-tileBackground: #252526;--vscode-welcomePage-tileHoverBackground: #2c2c2d;--vscode-welcomePage-tileShadow: rgba(0, 0, 0, .36);--vscode-welcomePage-progress\.background: #3c3c3c;--vscode-welcomePage-progress\.foreground: #3794ff;--vscode-debugExceptionWidget-border: #a31515;--vscode-debugExceptionWidget-background: #420b0d;--vscode-ports-iconRunningProcessForeground: #369432;--vscode-statusBar-debuggingBackground: #cc6633;--vscode-statusBar-debuggingForeground: #ffffff;--vscode-editor-inlineValuesForeground: rgba(255, 255, 255, .5);--vscode-editor-inlineValuesBackground: rgba(255, 200, 0, .2);--vscode-editorGutter-modifiedBackground: #1b81a8;--vscode-editorGutter-addedBackground: #487e02;--vscode-editorGutter-deletedBackground: #f14c4c;--vscode-minimapGutter-modifiedBackground: #1b81a8;--vscode-minimapGutter-addedBackground: #487e02;--vscode-minimapGutter-deletedBackground: #f14c4c;--vscode-editorOverviewRuler-modifiedForeground: rgba(27, 129, 168, .6);--vscode-editorOverviewRuler-addedForeground: rgba(72, 126, 2, .6);--vscode-editorOverviewRuler-deletedForeground: rgba(241, 76, 76, .6);--vscode-debugIcon-breakpointForeground: #e51400;--vscode-debugIcon-breakpointDisabledForeground: #848484;--vscode-debugIcon-breakpointUnverifiedForeground: #848484;--vscode-debugIcon-breakpointCurrentStackframeForeground: #ffcc00;--vscode-debugIcon-breakpointStackframeForeground: #89d185;--vscode-notebook-cellBorderColor: #37373d;--vscode-notebook-focusedEditorBorder: #007fd4;--vscode-notebookStatusSuccessIcon-foreground: #89d185;--vscode-notebookStatusErrorIcon-foreground: #f48771;--vscode-notebookStatusRunningIcon-foreground: #cccccc;--vscode-notebook-cellToolbarSeparator: rgba(128, 128, 128, .35);--vscode-notebook-selectedCellBackground: #37373d;--vscode-notebook-selectedCellBorder: #37373d;--vscode-notebook-focusedCellBorder: #007fd4;--vscode-notebook-inactiveFocusedCellBorder: #37373d;--vscode-notebook-cellStatusBarItemHoverBackground: rgba(255, 255, 255, .15);--vscode-notebook-cellInsertionIndicator: #007fd4;--vscode-notebookScrollbarSlider-background: rgba(121, 121, 121, .4);--vscode-notebookScrollbarSlider-hoverBackground: rgba(100, 100, 100, .7);--vscode-notebookScrollbarSlider-activeBackground: rgba(191, 191, 191, .4);--vscode-notebook-symbolHighlightBackground: rgba(255, 255, 255, .04);--vscode-notebook-cellEditorBackground: #252526;--vscode-notebook-editorBackground: #1e1e1e;--vscode-keybindingTable-headerBackground: rgba(204, 204, 204, .04);--vscode-keybindingTable-rowsBackground: rgba(204, 204, 204, .04);--vscode-scm-providerBorder: #454545;--vscode-debugTokenExpression-name: #c586c0;--vscode-debugTokenExpression-value: rgba(204, 204, 204, .6);--vscode-debugTokenExpression-string: #ce9178;--vscode-debugTokenExpression-boolean: #4e94ce;--vscode-debugTokenExpression-number: #b5cea8;--vscode-debugTokenExpression-error: #f48771;--vscode-debugView-exceptionLabelForeground: #cccccc;--vscode-debugView-exceptionLabelBackground: #6c2022;--vscode-debugView-stateLabelForeground: #cccccc;--vscode-debugView-stateLabelBackground: rgba(136, 136, 136, .27);--vscode-debugView-valueChangedHighlight: #569cd6;--vscode-debugConsole-infoForeground: #3794ff;--vscode-debugConsole-warningForeground: #cca700;--vscode-debugConsole-errorForeground: #f48771;--vscode-debugConsole-sourceForeground: #cccccc;--vscode-debugConsoleInputIcon-foreground: #cccccc;--vscode-debugIcon-pauseForeground: #75beff;--vscode-debugIcon-stopForeground: #f48771;--vscode-debugIcon-disconnectForeground: #f48771;--vscode-debugIcon-restartForeground: #89d185;--vscode-debugIcon-stepOverForeground: #75beff;--vscode-debugIcon-stepIntoForeground: #75beff;--vscode-debugIcon-stepOutForeground: #75beff;--vscode-debugIcon-continueForeground: #75beff;--vscode-debugIcon-stepBackForeground: #75beff;--vscode-extensionButton-prominentBackground: #0e639c;--vscode-extensionButton-prominentForeground: #ffffff;--vscode-extensionButton-prominentHoverBackground: #1177bb;--vscode-extensionIcon-starForeground: #ff8e00;--vscode-extensionIcon-verifiedForeground: #3794ff;--vscode-extensionIcon-preReleaseForeground: #1d9271;--vscode-extensionIcon-sponsorForeground: #d758b3;--vscode-terminal-ansiBlack: #000000;--vscode-terminal-ansiRed: #cd3131;--vscode-terminal-ansiGreen: #0dbc79;--vscode-terminal-ansiYellow: #e5e510;--vscode-terminal-ansiBlue: #2472c8;--vscode-terminal-ansiMagenta: #bc3fbc;--vscode-terminal-ansiCyan: #11a8cd;--vscode-terminal-ansiWhite: #e5e5e5;--vscode-terminal-ansiBrightBlack: #666666;--vscode-terminal-ansiBrightRed: #f14c4c;--vscode-terminal-ansiBrightGreen: #23d18b;--vscode-terminal-ansiBrightYellow: #f5f543;--vscode-terminal-ansiBrightBlue: #3b8eea;--vscode-terminal-ansiBrightMagenta: #d670d6;--vscode-terminal-ansiBrightCyan: #29b8db;--vscode-terminal-ansiBrightWhite: #e5e5e5;--vscode-interactive-activeCodeBorder: #3794ff;--vscode-interactive-inactiveCodeBorder: #37373d;--vscode-gitDecoration-addedResourceForeground: #81b88b;--vscode-gitDecoration-modifiedResourceForeground: #e2c08d;--vscode-gitDecoration-deletedResourceForeground: #c74e39;--vscode-gitDecoration-renamedResourceForeground: #73c991;--vscode-gitDecoration-untrackedResourceForeground: #73c991;--vscode-gitDecoration-ignoredResourceForeground: #8c8c8c;--vscode-gitDecoration-stageModifiedResourceForeground: #e2c08d;--vscode-gitDecoration-stageDeletedResourceForeground: #c74e39;--vscode-gitDecoration-conflictingResourceForeground: #e4676b;--vscode-gitDecoration-submoduleResourceForeground: #8db9e2}.xterm-wrapper{padding-left:5px}.xterm-wrapper .xterm-viewport{background-color:var(--vscode-panel-background)!important;color:var(--vscode-foreground)!important}.filters{flex:none;display:flex;flex-direction:column;margin:2px 0}.filter-list{padding:0 10px 10px;-webkit-user-select:none;user-select:none}.filter-title,.filter-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;user-select:none;cursor:pointer}.filter-label{color:var(--vscode-disabledForeground)}.filter-summary{line-height:24px;margin-left:24px}.filter-summary .filter-label{margin-left:5px}.filter-entry{line-height:24px}.filter-entry label{display:flex;align-items:center;cursor:pointer}.filter-entry input{flex:none;display:flex;align-items:center;cursor:pointer}.filter-entry label div{overflow:hidden;text-overflow:ellipsis}.ui-mode-tree-item{flex:auto}.ui-mode-tree-item-title{flex:auto;text-overflow:ellipsis;overflow:hidden}.ui-mode-tree-item-time{flex:none;color:var(--vscode-editorCodeLens-foreground);margin:0 4px;-webkit-user-select:none;user-select:none}.tests-tree-view .tree-view-entry.selected .ui-mode-tree-item-time,.tests-tree-view .tree-view-entry.highlighted .ui-mode-tree-item-time{display:none}.tests-tree-view .tree-view-entry:not(.highlighted):not(.selected) .toolbar-button:not(.toggled){display:none}.tag{display:inline-block;padding:0 8px;font-size:12px;font-weight:500;line-height:18px;border:1px solid transparent;border-radius:2em;background-color:#8c959f;color:#fff;margin:0 10px;flex:none;font-weight:600}.tag-color-0{background-color:#ddf4ff;color:#0550ae;border:1px solid #218bff}.tag-color-1{background-color:#fff8c5;color:#7d4e00;border:1px solid #bf8700}.tag-color-2{background-color:#fbefff;color:#6e40c9;border:1px solid #a475f9}.tag-color-3{background-color:#ffeff7;color:#99286e;border:1px solid #e85aad}.tag-color-4{background-color:#fff0eb;color:#9e2f1c;border:1px solid #EA6045}.tag-color-5{background-color:#fff1e5;color:#9b4215;border:1px solid #e16f24}.dark-mode .tag-color-0{background-color:#051d4d;color:#80ccff;border:1px solid #218bff}.dark-mode .tag-color-1{background-color:#3b2300;color:#eac54f;border:1px solid #bf8700}.dark-mode .tag-color-2{background-color:#271052;color:#d2a8ff;border:1px solid #a475f9}.dark-mode .tag-color-3{background-color:#42062a;color:#ff9bce;border:1px solid #e85aad}.dark-mode .tag-color-4{background-color:#460701;color:#ffa28b;border:1px solid #EC6547}.dark-mode .tag-color-5{background-color:#471700;color:#ffa657;border:1px solid #e16f24}
@@ -0,0 +1,5 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./assets/xtermModule-CsJ4vdCR.js","./xtermModule.DYP7pi_n.css"])))=>i.map(i=>d[i]);
2
+ import{u as At,r as K,f as Ut,_ as Wt,g as zt,h as Vt,j as r,R as u,E as Kt,s as xt,i as ht,k as Ht,t as $t,m as qt,l as H,n as O,M as St,b as Yt,o as ot,T as Qt,W as Xt,S as Jt,p as Zt,a as Gt,d as te,e as ee}from"./assets/defaultSettingsView-ClwvkA2N.js";var se={};class dt{constructor(t,e={}){this.isListing=!1,this._tests=new Map,this._rootSuite=new X("","root"),this._options=e,this._reporter=t}reset(){this._rootSuite._entries=[],this._tests.clear()}dispatch(t){const{method:e,params:s}=t;if(e==="onConfigure"){this._onConfigure(s.config);return}if(e==="onProject"){this._onProject(s.project);return}if(e==="onBegin"){this._onBegin();return}if(e==="onTestBegin"){this._onTestBegin(s.testId,s.result);return}if(e==="onTestEnd"){this._onTestEnd(s.test,s.result);return}if(e==="onStepBegin"){this._onStepBegin(s.testId,s.resultId,s.step);return}if(e==="onAttach"){this._onAttach(s.testId,s.resultId,s.attachments);return}if(e==="onStepEnd"){this._onStepEnd(s.testId,s.resultId,s.step);return}if(e==="onError"){this._onError(s.error);return}if(e==="onStdIO"){this._onStdIO(s.type,s.testId,s.resultId,s.data,s.isBase64);return}if(e==="onEnd")return this._onEnd(s.result);if(e==="onExit")return this._onExit()}_onConfigure(t){var e,s;this._rootDir=t.rootDir,this._config=this._parseConfig(t),(s=(e=this._reporter).onConfigure)==null||s.call(e,this._config)}_onProject(t){let e=this._options.mergeProjects?this._rootSuite.suites.find(s=>s.project().name===t.name):void 0;e||(e=new X(t.name,"project"),this._rootSuite._addSuite(e)),e._project=this._parseProject(t);for(const s of t.suites)this._mergeSuiteInto(s,e)}_onBegin(){var t,e;(e=(t=this._reporter).onBegin)==null||e.call(t,this._rootSuite)}_onTestBegin(t,e){var d,n;const s=this._tests.get(t);this._options.clearPreviousResultsWhenTestBegins&&(s.results=[]);const i=s._createTestResult(e.id);i.retry=e.retry,i.workerIndex=e.workerIndex,i.parallelIndex=e.parallelIndex,i.setStartTimeNumber(e.startTime),(n=(d=this._reporter).onTestBegin)==null||n.call(d,s,i)}_onTestEnd(t,e){var d,n,m;const s=this._tests.get(t.testId);s.timeout=t.timeout,s.expectedStatus=t.expectedStatus;const i=s.results.find(c=>c._id===e.id);i.duration=e.duration,i.status=e.status,i.errors=e.errors,i.error=(d=i.errors)==null?void 0:d[0],e.attachments&&(i.attachments=this._parseAttachments(e.attachments)),e.annotations&&(this._absoluteAnnotationLocationsInplace(e.annotations),i.annotations=e.annotations,s.annotations=e.annotations),(m=(n=this._reporter).onTestEnd)==null||m.call(n,s,i),i._stepMap=new Map}_onStepBegin(t,e,s){var f,a;const i=this._tests.get(t),d=i.results.find(w=>w._id===e),n=s.parentStepId?d._stepMap.get(s.parentStepId):void 0,m=this._absoluteLocation(s.location),c=new oe(s,n,m,d);n?n.steps.push(c):d.steps.push(c),d._stepMap.set(s.id,c),(a=(f=this._reporter).onStepBegin)==null||a.call(f,i,d,c)}_onStepEnd(t,e,s){var m,c;const i=this._tests.get(t),d=i.results.find(f=>f._id===e),n=d._stepMap.get(s.id);n._endPayload=s,n.duration=s.duration,n.error=s.error,(c=(m=this._reporter).onStepEnd)==null||c.call(m,i,d,n)}_onAttach(t,e,s){this._tests.get(t).results.find(n=>n._id===e).attachments.push(...s.map(n=>({name:n.name,contentType:n.contentType,path:n.path,body:n.base64&&globalThis.Buffer?Buffer.from(n.base64,"base64"):void 0})))}_onError(t){var e,s;(s=(e=this._reporter).onError)==null||s.call(e,t)}_onStdIO(t,e,s,i,d){var f,a,w,x;const n=d?globalThis.Buffer?Buffer.from(i,"base64"):atob(i):i,m=e?this._tests.get(e):void 0,c=m&&s?m.results.find(l=>l._id===s):void 0;t==="stdout"?(c==null||c.stdout.push(n),(a=(f=this._reporter).onStdOut)==null||a.call(f,n,m,c)):(c==null||c.stderr.push(n),(x=(w=this._reporter).onStdErr)==null||x.call(w,n,m,c))}async _onEnd(t){var e,s;await((s=(e=this._reporter).onEnd)==null?void 0:s.call(e,{status:t.status,startTime:new Date(t.startTime),duration:t.duration}))}_onExit(){var t,e;return(e=(t=this._reporter).onExit)==null?void 0:e.call(t)}_parseConfig(t){const e={...ne,...t};return this._options.configOverrides&&(e.configFile=this._options.configOverrides.configFile,e.reportSlowTests=this._options.configOverrides.reportSlowTests,e.quiet=this._options.configOverrides.quiet,e.reporter=[...this._options.configOverrides.reporter]),e}_parseProject(t){return{metadata:t.metadata,name:t.name,outputDir:this._absolutePath(t.outputDir),repeatEach:t.repeatEach,retries:t.retries,testDir:this._absolutePath(t.testDir),testIgnore:rt(t.testIgnore),testMatch:rt(t.testMatch),timeout:t.timeout,grep:rt(t.grep),grepInvert:rt(t.grepInvert),dependencies:t.dependencies,teardown:t.teardown,snapshotDir:this._absolutePath(t.snapshotDir),use:t.use}}_parseAttachments(t){return t.map(e=>({...e,body:e.base64&&globalThis.Buffer?Buffer.from(e.base64,"base64"):void 0}))}_mergeSuiteInto(t,e){let s=e.suites.find(i=>i.title===t.title);s||(s=new X(t.title,e.type==="project"?"file":"describe"),e._addSuite(s)),s.location=this._absoluteLocation(t.location),t.entries.forEach(i=>{"testId"in i?this._mergeTestInto(i,s):this._mergeSuiteInto(i,s)})}_mergeTestInto(t,e){let s=this._options.mergeTestCases?e.tests.find(i=>i.title===t.title&&i.repeatEachIndex===t.repeatEachIndex):void 0;s||(s=new ie(t.testId,t.title,this._absoluteLocation(t.location),t.repeatEachIndex),e._addTest(s),this._tests.set(s.id,s)),this._updateTest(t,s)}_updateTest(t,e){return e.id=t.testId,e.location=this._absoluteLocation(t.location),e.retries=t.retries,e.tags=t.tags??[],e.annotations=t.annotations??[],this._absoluteAnnotationLocationsInplace(e.annotations),e}_absoluteAnnotationLocationsInplace(t){for(const e of t)e.location&&(e.location=this._absoluteLocation(e.location))}_absoluteLocation(t){return t&&{...t,file:this._absolutePath(t.file)}}_absolutePath(t){if(t!==void 0)return this._options.resolvePath?this._options.resolvePath(this._rootDir,t):this._rootDir+"/"+t}}class X{constructor(t,e){this._entries=[],this._requireFile="",this._parallelMode="none",this.title=t,this._type=e}get type(){return this._type}get suites(){return this._entries.filter(t=>t.type!=="test")}get tests(){return this._entries.filter(t=>t.type==="test")}entries(){return this._entries}allTests(){const t=[],e=s=>{for(const i of s.entries())i.type==="test"?t.push(i):e(i)};return e(this),t}titlePath(){const t=this.parent?this.parent.titlePath():[];return(this.title||this._type!=="describe")&&t.push(this.title),t}project(){var t;return this._project??((t=this.parent)==null?void 0:t.project())}_addTest(t){t.parent=this,this._entries.push(t)}_addSuite(t){t.parent=this,this._entries.push(t)}}class ie{constructor(t,e,s,i){this.fn=()=>{},this.results=[],this.type="test",this.expectedStatus="passed",this.timeout=0,this.annotations=[],this.retries=0,this.tags=[],this.repeatEachIndex=0,this.id=t,this.title=e,this.location=s,this.repeatEachIndex=i}titlePath(){const t=this.parent?this.parent.titlePath():[];return t.push(this.title),t}outcome(){return ae(this)}ok(){const t=this.outcome();return t==="expected"||t==="flaky"||t==="skipped"}_createTestResult(t){const e=new re(this.results.length,t);return this.results.push(e),e}}class oe{constructor(t,e,s,i){this.duration=-1,this.steps=[],this._startTime=0,this.title=t.title,this.category=t.category,this.location=s,this.parent=e,this._startTime=t.startTime,this._result=i}titlePath(){var e;return[...((e=this.parent)==null?void 0:e.titlePath())||[],this.title]}get startTime(){return new Date(this._startTime)}set startTime(t){this._startTime=+t}get attachments(){var t,e;return((e=(t=this._endPayload)==null?void 0:t.attachments)==null?void 0:e.map(s=>this._result.attachments[s]))??[]}get annotations(){var t;return((t=this._endPayload)==null?void 0:t.annotations)??[]}}class re{constructor(t,e){this.parallelIndex=-1,this.workerIndex=-1,this.duration=-1,this.stdout=[],this.stderr=[],this.attachments=[],this.annotations=[],this.status="skipped",this.steps=[],this.errors=[],this._stepMap=new Map,this._startTime=0,this.retry=t,this._id=e}setStartTimeNumber(t){this._startTime=t}get startTime(){return new Date(this._startTime)}set startTime(t){this._startTime=+t}}const ne={forbidOnly:!1,fullyParallel:!1,globalSetup:null,globalTeardown:null,globalTimeout:0,grep:/.*/,grepInvert:null,maxFailures:0,metadata:{},preserveOutput:"always",projects:[],reporter:[[se.CI?"dot":"list"]],reportSlowTests:{max:5,threshold:3e5},configFile:"",rootDir:"",quiet:!1,shard:null,updateSnapshots:"missing",updateSourceMethod:"patch",version:"",workers:0,webServer:null};function rt(o){return o.map(t=>t.s!==void 0?t.s:new RegExp(t.r.source,t.r.flags))}function ae(o){let t=0,e=0,s=0;for(const i of o.results)i.status==="interrupted"||(i.status==="skipped"&&o.expectedStatus==="skipped"?++t:i.status==="skipped"||(i.status===o.expectedStatus?++e:++s));return e===0&&s===0?"skipped":s===0?"expected":e===0&&t===0?"unexpected":"flaky"}class ut{constructor(t,e,s,i,d,n){this._treeItemById=new Map,this._treeItemByTestId=new Map;const m=i&&[...i.values()].some(Boolean);this.pathSeparator=d,this.rootItem={kind:"group",subKind:"folder",id:t,title:"",location:{file:"",line:0,column:0},duration:0,parent:void 0,children:[],status:"none",hasLoadErrors:!1},this._treeItemById.set(t,this.rootItem);const c=(f,a,w,x)=>{for(const l of x==="tests"?[]:a.suites){if(!l.title){c(f,l,w,"all");continue}let T=w.children.find(_=>_.kind==="group"&&_.title===l.title);T||(T={kind:"group",subKind:"describe",id:"suite:"+a.titlePath().join("")+""+l.title,title:l.title,location:l.location,duration:0,parent:w,children:[],status:"none",hasLoadErrors:!1},this._addChild(w,T)),c(f,l,T,"all")}for(const l of x==="suites"?[]:a.tests){const T=l.title;let _=w.children.find(N=>N.kind!=="group"&&N.title===T);_||(_={kind:"case",id:"test:"+l.titlePath().join(""),title:T,parent:w,children:[],tests:[],location:l.location,duration:0,status:"none",project:void 0,test:void 0,tags:l.tags},this._addChild(w,_));const b=l.results[0];let R="none";(b==null?void 0:b[J])==="scheduled"?R="scheduled":(b==null?void 0:b[J])==="running"?R="running":(b==null?void 0:b.status)==="skipped"?R="skipped":(b==null?void 0:b.status)==="interrupted"?R="none":b&&l.outcome()!=="expected"?R="failed":b&&l.outcome()==="expected"&&(R="passed"),_.tests.push(l);const k={kind:"test",id:l.id,title:f.name,location:l.location,test:l,parent:_,children:[],status:R,duration:l.results.length?Math.max(0,l.results[0].duration):0,project:f};this._addChild(_,k),this._treeItemByTestId.set(l.id,k),_.duration=_.children.reduce((N,D)=>N+D.duration,0)}};for(const f of(e==null?void 0:e.suites)||[])if(!(m&&!i.get(f.title)))for(const a of f.suites)if(n){if(c(f.project(),a,this.rootItem,"suites"),a.tests.length){const w=this._defaultDescribeItem();c(f.project(),a,w,"tests")}}else{const w=this._fileItem(a.location.file.split(d),!0);c(f.project(),a,w,"all")}for(const f of s){if(!f.location)continue;const a=this._fileItem(f.location.file.split(d),!0);a.hasLoadErrors=!0}}_addChild(t,e){t.children.push(e),e.parent=t,this._treeItemById.set(e.id,e)}filterTree(t,e,s){const i=t.trim().toLowerCase().split(" "),d=[...e.values()].some(Boolean),n=c=>{const f=[...c.tests[0].titlePath(),...c.tests[0].tags].join(" ").toLowerCase();return!i.every(a=>f.includes(a))&&!c.tests.some(a=>s==null?void 0:s.has(a.id))?!1:(c.children=c.children.filter(a=>!d||(s==null?void 0:s.has(a.test.id))||e.get(a.status)),c.tests=c.children.map(a=>a.test),!!c.children.length)},m=c=>{const f=[];for(const a of c.children)a.kind==="case"?n(a)&&f.push(a):(m(a),(a.children.length||a.hasLoadErrors)&&f.push(a));c.children=f};m(this.rootItem)}_fileItem(t,e){if(t.length===0)return this.rootItem;const s=t.join(this.pathSeparator),i=this._treeItemById.get(s);if(i)return i;const d=this._fileItem(t.slice(0,t.length-1),!1),n={kind:"group",subKind:e?"file":"folder",id:s,title:t[t.length-1],location:{file:s,line:0,column:0},duration:0,parent:d,children:[],status:"none",hasLoadErrors:!1};return this._addChild(d,n),n}_defaultDescribeItem(){let t=this._treeItemById.get("<anonymous>");return t||(t={kind:"group",subKind:"describe",id:"<anonymous>",title:"<anonymous>",location:{file:"",line:0,column:0},duration:0,parent:this.rootItem,children:[],status:"none",hasLoadErrors:!1},this._addChild(this.rootItem,t)),t}sortAndPropagateStatus(){Tt(this.rootItem)}flattenForSingleProject(){const t=e=>{e.kind==="case"&&e.children.length===1?(e.project=e.children[0].project,e.test=e.children[0].test,e.children=[],this._treeItemByTestId.set(e.test.id,e)):e.children.forEach(t)};t(this.rootItem)}shortenRoot(){let t=this.rootItem;for(;t.children.length===1&&t.children[0].kind==="group"&&t.children[0].subKind==="folder";)t=t.children[0];t.location=this.rootItem.location,this.rootItem=t}testIds(){const t=new Set,e=s=>{s.kind==="case"&&s.tests.forEach(i=>t.add(i.id)),s.children.forEach(e)};return e(this.rootItem),t}fileNames(){const t=new Set,e=s=>{s.kind==="group"&&s.subKind==="file"?t.add(s.id):s.children.forEach(e)};return e(this.rootItem),[...t]}flatTreeItems(){const t=[],e=s=>{t.push(s),s.children.forEach(e)};return e(this.rootItem),t}treeItemById(t){return this._treeItemById.get(t)}collectTestIds(t){return t?le(t):new Set}}function Tt(o){for(const n of o.children)Tt(n);o.kind==="group"&&o.children.sort((n,m)=>n.location.file.localeCompare(m.location.file)||n.location.line-m.location.line);let t=o.children.length>0,e=o.children.length>0,s=!1,i=!1,d=!1;for(const n of o.children)e=e&&n.status==="skipped",t=t&&(n.status==="passed"||n.status==="skipped"),s=s||n.status==="failed",i=i||n.status==="running",d=d||n.status==="scheduled";i?o.status="running":d?o.status="scheduled":s?o.status="failed":e?o.status="skipped":t&&(o.status="passed")}function le(o){const t=new Set,e=s=>{var i;s.kind==="case"?s.tests.map(d=>d.id).forEach(d=>t.add(d)):s.kind==="test"?t.add(s.id):(i=s.children)==null||i.forEach(e)};return e(o),t}const J=Symbol("statusEx");class ce{constructor(t){this.loadErrors=[],this.progress={total:0,passed:0,failed:0,skipped:0},this._lastRunTestCount=0,this._receiver=new dt(this._createReporter(),{mergeProjects:!0,mergeTestCases:!0,resolvePath:(e,s)=>e+t.pathSeparator+s,clearPreviousResultsWhenTestBegins:!0}),this._options=t}_createReporter(){return{version:()=>"v2",onConfigure:t=>{this.config=t,this._lastRunReceiver=new dt({version:()=>"v2",onBegin:e=>{this._lastRunTestCount=e.allTests().length,this._lastRunReceiver=void 0}},{mergeProjects:!0,mergeTestCases:!1,resolvePath:(e,s)=>e+this._options.pathSeparator+s})},onBegin:t=>{var e;if(this.rootSuite||(this.rootSuite=t),this._testResultsSnapshot){for(const s of this.rootSuite.allTests())s.results=((e=this._testResultsSnapshot)==null?void 0:e.get(s.id))||s.results;this._testResultsSnapshot=void 0}this.progress.total=this._lastRunTestCount,this.progress.passed=0,this.progress.failed=0,this.progress.skipped=0,this._options.onUpdate(!0)},onEnd:()=>{this._options.onUpdate(!0)},onTestBegin:(t,e)=>{e[J]="running",this._options.onUpdate()},onTestEnd:(t,e)=>{t.outcome()==="skipped"?++this.progress.skipped:t.outcome()==="unexpected"?++this.progress.failed:++this.progress.passed,e[J]=e.status,this._options.onUpdate()},onError:t=>this._handleOnError(t),printsToStdio:()=>!1}}processGlobalReport(t){const e=new dt({version:()=>"v2",onConfigure:s=>{this.config=s},onError:s=>this._handleOnError(s)});for(const s of t)e.dispatch(s)}processListReport(t){var s;const e=((s=this.rootSuite)==null?void 0:s.allTests())||[];this._testResultsSnapshot=new Map(e.map(i=>[i.id,i.results])),this._receiver.reset();for(const i of t)this._receiver.dispatch(i)}processTestReportEvent(t){var e,s,i;(s=(e=this._lastRunReceiver)==null?void 0:e.dispatch(t))==null||s.catch(()=>{}),(i=this._receiver.dispatch(t))==null||i.catch(()=>{})}_handleOnError(t){var e,s;this.loadErrors.push(t),(s=(e=this._options).onError)==null||s.call(e,t),this._options.onUpdate()}asModel(){return{rootSuite:this.rootSuite||new X("","root"),config:this.config,loadErrors:this.loadErrors,progress:this.progress}}}const de=({source:o})=>{const[t,e]=At(),[s,i]=K.useState(Ut()),[d]=K.useState(Wt(()=>import("./assets/xtermModule-CsJ4vdCR.js"),__vite__mapDeps([0,1]),import.meta.url).then(m=>m.default)),n=K.useRef(null);return K.useEffect(()=>(zt(i),()=>Vt(i)),[]),K.useEffect(()=>{const m=o.write,c=o.clear;return(async()=>{const{Terminal:f,FitAddon:a}=await d,w=e.current;if(!w)return;const x=s==="dark-mode"?he:ue;if(n.current&&n.current.terminal.options.theme===x)return;n.current&&(w.textContent="");const l=new f({convertEol:!0,fontSize:13,scrollback:1e4,fontFamily:"monospace",theme:x}),T=new a;l.loadAddon(T);for(const _ of o.pending)l.write(_);o.write=(_=>{o.pending.push(_),l.write(_)}),o.clear=()=>{o.pending=[],l.clear()},l.open(w),T.fit(),n.current={terminal:l,fitAddon:T}})(),()=>{o.clear=c,o.write=m}},[d,n,e,o,s]),K.useEffect(()=>{setTimeout(()=>{n.current&&(n.current.fitAddon.fit(),o.resize(n.current.terminal.cols,n.current.terminal.rows))},250)},[t,o]),r.jsx("div",{"data-testid":"output",className:"xterm-wrapper",style:{flex:"auto"},ref:e})},ue={foreground:"#383a42",background:"#fafafa",cursor:"#383a42",black:"#000000",red:"#e45649",green:"#50a14f",yellow:"#c18401",blue:"#4078f2",magenta:"#a626a4",cyan:"#0184bc",white:"#a0a0a0",brightBlack:"#000000",brightRed:"#e06c75",brightGreen:"#98c379",brightYellow:"#d19a66",brightBlue:"#4078f2",brightMagenta:"#a626a4",brightCyan:"#0184bc",brightWhite:"#383a42",selectionBackground:"#d7d7d7",selectionForeground:"#383a42"},he={foreground:"#f8f8f2",background:"#1e1e1e",cursor:"#f8f8f0",black:"#000000",red:"#ff5555",green:"#50fa7b",yellow:"#f1fa8c",blue:"#bd93f9",magenta:"#ff79c6",cyan:"#8be9fd",white:"#bfbfbf",brightBlack:"#4d4d4d",brightRed:"#ff6e6e",brightGreen:"#69ff94",brightYellow:"#ffffa5",brightBlue:"#d6acff",brightMagenta:"#ff92df",brightCyan:"#a4ffff",brightWhite:"#e6e6e6",selectionBackground:"#44475a",selectionForeground:"#f8f8f2"},fe=({filterText:o,setFilterText:t,statusFilters:e,setStatusFilters:s,projectFilters:i,setProjectFilters:d,testModel:n,runTests:m})=>{const[c,f]=u.useState(!1),a=u.useRef(null);u.useEffect(()=>{var l;(l=a.current)==null||l.focus()},[]);const w=[...e.entries()].filter(([l,T])=>T).map(([l])=>l).join(" ")||"all",x=[...i.entries()].filter(([l,T])=>T).map(([l])=>l).join(" ")||"all";return r.jsxs("div",{className:"filters",children:[r.jsx(Kt,{expanded:c,setExpanded:f,title:r.jsx("input",{ref:a,type:"search",placeholder:"Filter (e.g. text, @tag)",spellCheck:!1,value:o,onChange:l=>{t(l.target.value)},onKeyDown:l=>{l.key==="Enter"&&m()}})}),r.jsxs("div",{className:"filter-summary",title:"Status: "+w+`
3
+ Projects: `+x,onClick:()=>f(!c),children:[r.jsx("span",{className:"filter-label",children:"Status:"})," ",w,r.jsx("span",{className:"filter-label",children:"Projects:"})," ",x]}),c&&r.jsxs("div",{className:"hbox",style:{marginLeft:14,maxHeight:200,overflowY:"auto"},children:[r.jsx("div",{className:"filter-list",role:"list","data-testid":"status-filters",children:[...e.entries()].map(([l,T])=>r.jsx("div",{className:"filter-entry",role:"listitem",children:r.jsxs("label",{children:[r.jsx("input",{type:"checkbox",checked:T,onChange:()=>{const _=new Map(e);_.set(l,!_.get(l)),s(_)}}),r.jsx("div",{children:l})]})},l))}),r.jsx("div",{className:"filter-list",role:"list","data-testid":"project-filters",children:[...i.entries()].map(([l,T])=>r.jsx("div",{className:"filter-entry",role:"listitem",children:r.jsxs("label",{children:[r.jsx("input",{type:"checkbox",checked:T,onChange:()=>{var R;const _=new Map(i);_.set(l,!_.get(l)),d(_);const b=(R=n==null?void 0:n.config)==null?void 0:R.configFile;b&&xt.setObject(b+":projects",[..._.entries()].filter(([k,N])=>N).map(([k])=>k))}}),r.jsx("div",{children:l||"untitled"})]})},l))})]})]})},pe=({tag:o,style:t,onClick:e})=>r.jsx("span",{className:ht("tag",`tag-color-${ge(o)}`),onClick:e,style:{margin:"6px 0 0 6px",...t},title:`Click to filter by tag: ${o}`,children:o});function ge(o){let t=0;for(let e=0;e<o.length;e++)t=o.charCodeAt(e)+((t<<8)-t);return Math.abs(t%6)}const me=Ht,_e=({filterText:o,testModel:t,testServerConnection:e,testTree:s,runTests:i,runningState:d,watchAll:n,watchedTreeIds:m,setWatchedTreeIds:c,isLoading:f,onItemSelected:a,requestedCollapseAllCount:w,requestedExpandAllCount:x,setFilterText:l,onRevealSource:T})=>{const[_,b]=u.useState({expandedItems:new Map}),[R,k]=u.useState(),[N,D]=u.useState(w),[$,L]=u.useState(x);u.useEffect(()=>{if(N!==w){_.expandedItems.clear();for(const S of s.flatTreeItems())_.expandedItems.set(S.id,!1);D(w),k(void 0),b({..._});return}if($!==x){_.expandedItems.clear();for(const S of s.flatTreeItems())_.expandedItems.set(S.id,!0);L(x),k(void 0),b({..._});return}if(!d||d.itemSelectedByUser)return;let h;const E=S=>{var M;S.children.forEach(E),!h&&S.status==="failed"&&(S.kind==="test"&&d.testIds.has(S.test.id)||S.kind==="case"&&d.testIds.has((M=S.tests[0])==null?void 0:M.id))&&(h=S)};E(s.rootItem),h&&k(h.id)},[d,k,s,N,D,w,$,L,x,_,b]);const C=u.useMemo(()=>{if(R)return s.treeItemById(R)},[R,s]);u.useEffect(()=>{if(!t)return;const h=ve(C,t);let E;(C==null?void 0:C.kind)==="test"?E=C.test:(C==null?void 0:C.kind)==="case"&&C.tests.length===1&&(E=C.tests[0]),a({treeItem:C,testCase:E,testFile:h})},[t,C,a]),u.useEffect(()=>{if(!f)if(n)e==null||e.watchNoReply({fileNames:s.fileNames()});else{const h=new Set;for(const E of m.value){const S=s.treeItemById(E),M=S==null?void 0:S.location.file;M&&h.add(M)}e==null||e.watchNoReply({fileNames:[...h]})}},[f,s,n,m,e]);const Z=h=>{k(h.id),i("bounce-if-busy",s.collectTestIds(h))},q=(h,E)=>{if(h.preventDefault(),h.stopPropagation(),h.metaKey||h.ctrlKey){const S=o.split(" ");S.includes(E)?l(S.filter(M=>M!==E).join(" ").trim()):l((o+" "+E).trim())}else l((o.split(" ").filter(S=>!S.startsWith("@")).join(" ")+" "+E).trim())};return r.jsx(me,{name:"tests",treeState:_,setTreeState:b,rootItem:s.rootItem,dataTestId:"test-tree",render:h=>{const E=h.id.replace(/[^\w\d-_]/g,"-"),S=E+"-label",M=E+"-time";return r.jsxs("div",{className:"hbox ui-mode-tree-item","aria-labelledby":`${S} ${M}`,children:[r.jsxs("div",{id:S,className:"ui-mode-tree-item-title",children:[r.jsx("span",{children:h.title}),h.kind==="case"?h.tags.map(Y=>r.jsx(pe,{tag:Y.slice(1),onClick:G=>q(G,Y)},Y)):null]}),!!h.duration&&h.status!=="skipped"&&r.jsx("div",{id:M,className:"ui-mode-tree-item-time",children:qt(h.duration)}),r.jsxs(H,{noMinHeight:!0,noShadow:!0,children:[r.jsx(O,{icon:"play",title:"Run",onClick:()=>Z(h),disabled:!!d&&!d.completed}),r.jsx(O,{icon:"go-to-file",title:"Show source",onClick:T,style:h.kind==="group"&&h.subKind==="folder"?{visibility:"hidden"}:{}}),!n&&r.jsx(O,{icon:"eye",title:"Watch",onClick:()=>{m.value.has(h.id)?m.value.delete(h.id):m.value.add(h.id),c({...m})},toggled:m.value.has(h.id)})]})]})},icon:h=>$t(h.status),title:h=>h.title,selectedItem:C,onAccepted:Z,onSelected:h=>{d&&(d.itemSelectedByUser=!0),k(h.id)},isError:h=>h.kind==="group"?h.hasLoadErrors:!1,autoExpandDepth:o?5:1,noItemsMessage:f?"Loading…":"No tests"})};function ve(o,t){if(!(!o||!t))return{file:o.location.file,line:o.location.line,column:o.location.column,source:{errors:t.loadErrors.filter(e=>{var s;return((s=e.location)==null?void 0:s.file)===o.location.file}).map(e=>({line:e.location.line,message:e.message})),content:void 0}}}function we(o){return`.playwright-artifacts-${o}`}const be=({item:o,rootDir:t,onOpenExternally:e,revealSource:s,pathSeparator:i})=>{var w,x;const[d,n]=u.useState(void 0),[m,c]=u.useState(0),f=u.useRef(null),{outputDir:a}=u.useMemo(()=>({outputDir:o.testCase?xe(o.testCase):void 0}),[o]);return u.useEffect(()=>{var b,R;f.current&&clearTimeout(f.current);const l=(b=o.testCase)==null?void 0:b.results[0];if(!l){n(void 0);return}const T=l&&l.duration>=0&&l.attachments.find(k=>k.name==="trace");if(T&&T.path){vt(T.path).then(k=>n({model:k,isLive:!1}));return}if(!a){n(void 0);return}const _=[a,we(l.workerIndex),"traces",`${(R=o.testCase)==null?void 0:R.id}.json`].join(i);return f.current=setTimeout(async()=>{try{const k=await vt(_);n({model:k,isLive:!0})}catch{const k=new St("",[]);k.errorDescriptors.push(...l.errors.flatMap(N=>N.message?[{message:N.message}]:[])),n({model:k,isLive:!1})}finally{c(m+1)}},500),()=>{f.current&&clearTimeout(f.current)}},[a,o,n,m,c,i]),r.jsx(Yt,{model:d==null?void 0:d.model,showSourcesFirst:!0,rootDir:t,fallbackLocation:o.testFile,isLive:d==null?void 0:d.isLive,status:(w=o.treeItem)==null?void 0:w.status,annotations:((x=o.testCase)==null?void 0:x.annotations)??[],onOpenExternally:e,revealSource:s},"workbench")},xe=o=>{var t;for(let e=o.parent;e;e=e.parent)if(e.project())return(t=e.project())==null?void 0:t.outputDir};async function vt(o){const t=new URLSearchParams;t.set("trace",o);const s=await(await fetch(`contexts?${t.toString()}`)).json();return new St(o,s)}let wt={cols:80};const z={pending:[],clear:()=>{},write:o=>z.pending.push(o),resize:()=>{}},A=new URLSearchParams(window.location.search),Se=new URL(A.get("server")??"../",window.location.href),ft=new URL(A.get("ws"),Se);ft.protocol=ft.protocol==="https:"?"wss:":"ws:";const B={args:A.getAll("arg"),grep:A.get("grep")||void 0,grepInvert:A.get("grepInvert")||void 0,projects:A.getAll("project"),workers:A.get("workers")||void 0,headed:A.has("headed"),updateSnapshots:A.get("updateSnapshots")||void 0,reporters:A.has("reporter")?A.getAll("reporter"):void 0,pathSeparator:A.get("pathSeparator")||"/"};B.updateSnapshots&&!["all","changed","none","missing"].includes(B.updateSnapshots)&&(B.updateSnapshots=void 0);const bt=navigator.platform==="MacIntel",Te=({})=>{var _t;const[o,t]=u.useState(""),[e,s]=u.useState(!1),[i,d]=u.useState(!1),[n,m]=u.useState(new Map([["passed",!1],["failed",!1],["skipped",!1]])),[c,f]=u.useState(new Map),[a,w]=u.useState(),[x,l]=u.useState(),[T,_]=u.useState({}),[b,R]=u.useState(new Set),[k,N]=u.useState(!1),[D,$]=u.useState(),L=D&&!D.completed,[C,Z]=ot("watch-all",!1),[q,h]=u.useState({value:new Set}),E=u.useRef(Promise.resolve()),S=u.useRef(new Set),[M,Y]=u.useState(0),[G,kt]=u.useState(0),[jt,yt]=u.useState(!1),[pt,gt]=u.useState(!0),[v,Et]=u.useState(),[tt,It]=u.useState(),[et,Rt]=u.useState(!1),[st,Bt]=u.useState(!1),[Ct,mt]=u.useState(!1),Nt=u.useCallback(()=>mt(!0),[mt]),[nt,Pt]=ot("single-worker",!1),[at,Lt]=ot("updateSnapshots","missing"),[Q]=ot("mergeFiles",!1),Dt=u.useRef(null),it=u.useCallback(()=>{Et(p=>(p==null||p.close(),new Qt(new Xt(ft))))},[]);u.useEffect(()=>{var p;(p=Dt.current)==null||p.focus(),N(!0),it()},[it]),u.useEffect(()=>{if(!v)return;const p=[v.onStdio(g=>{if(g.buffer){const j=atob(g.buffer);z.write(j)}else z.write(g.text);g.type==="stderr"&&d(!0)}),v.onClose(()=>yt(!0))];return z.resize=(g,j)=>{wt={cols:g,rows:j},v.resizeTerminalNoReply({cols:g,rows:j})},()=>{for(const g of p)g.dispose()}},[v]),u.useEffect(()=>{if(!v)return;let p;const g=new ce({onUpdate:j=>{clearTimeout(p),p=void 0,j?w(g.asModel()):p||(p=setTimeout(()=>{w(g.asModel())},250))},onError:j=>{z.write((j.stack||j.value||"")+`
4
+ `),d(!0)},pathSeparator:B.pathSeparator});return It(g),w(void 0),N(!0),h({value:new Set}),(async()=>{try{await v.initialize({interceptStdio:!0,watchTestDirs:!0});const{status:j,report:I}=await v.runGlobalSetup({});if(g.processGlobalReport(I),j!=="passed")return;const P=await v.listTests({projects:B.projects,locations:B.args,grep:B.grep,grepInvert:B.grepInvert});g.processListReport(P.report),v.onReport(F=>{g.processTestReportEvent(F)});const{hasBrowsers:U}=await v.checkBrowsers({});gt(U)}finally{N(!1)}})(),()=>{clearTimeout(p)}},[v]),u.useEffect(()=>{if(!a)return;const{config:p,rootSuite:g}=a,j=p.configFile?xt.getObject(p.configFile+":projects",void 0):void 0,I=new Map(c);for(const P of I.keys())g.suites.find(U=>U.title===P)||I.delete(P);for(const P of g.suites)I.has(P.title)||I.set(P.title,!!(j!=null&&j.includes(P.title)));!j&&I.size&&![...I.values()].includes(!0)&&I.set(I.entries().next().value[0],!0),(c.size!==I.size||[...c].some(([P,U])=>I.get(P)!==U))&&f(I)},[c,a]),u.useEffect(()=>{L&&(a!=null&&a.progress)?l(a.progress):a||l(void 0)},[a,L]);const{testTree:Mt}=u.useMemo(()=>{if(!a)return{testTree:new ut("",new X("","root"),[],c,B.pathSeparator,Q)};const p=new ut("",a.rootSuite,a.loadErrors,c,B.pathSeparator,Q);return p.filterTree(o,n,L?D==null?void 0:D.testIds:void 0),p.sortAndPropagateStatus(),p.shortenRoot(),p.flattenForSingleProject(),R(p.testIds()),{testTree:p}},[o,a,n,c,R,D,L,Q]),V=u.useCallback((p,g)=>{!v||!a||p==="bounce-if-busy"&&L||(S.current=new Set([...S.current,...g]),E.current=E.current.then(async()=>{var P,U,F;const j=S.current;if(S.current=new Set,!j.size)return;{for(const y of((P=a.rootSuite)==null?void 0:P.allTests())||[])if(j.has(y.id)){y.results=[];const W=y._createTestResult("pending");W[J]="scheduled"}w({...a})}const I=" ["+new Date().toLocaleTimeString()+"]";z.write("\x1B[2m—".repeat(Math.max(0,wt.cols-I.length))+I+"\x1B[22m"),l({total:0,passed:0,failed:0,skipped:0}),$({testIds:j}),await v.runTests({locations:B.args,grep:B.grep,grepInvert:B.grepInvert,testIds:[...j],projects:[...c].filter(([y,W])=>W).map(([y])=>y),updateSnapshots:at,reporters:B.reporters,workers:nt?1:void 0,trace:"on"});for(const y of((U=a.rootSuite)==null?void 0:U.allTests())||[])((F=y.results[0])==null?void 0:F.duration)===-1&&(y.results=[]);w({...a}),$(y=>y?{...y,completed:!0}:void 0)}))},[c,L,a,v,at,nt]);u.useEffect(()=>{if(!v||!tt)return;const p=v.onTestFilesChanged(async g=>{if(E.current=E.current.then(async()=>{N(!0);try{const F=await v.listTests({projects:B.projects,locations:B.args,grep:B.grep,grepInvert:B.grepInvert});tt.processListReport(F.report)}catch(F){console.log(F)}finally{N(!1)}}),await E.current,g.testFiles.length===0)return;const j=tt.asModel(),I=new ut("",j.rootSuite,j.loadErrors,c,B.pathSeparator,Q),P=[],U=new Set(g.testFiles);if(C){const F=y=>{const W=y.location.file;W&&U.has(W)&&P.push(...I.collectTestIds(y)),y.kind==="group"&&y.subKind==="folder"&&y.children.forEach(F)};F(I.rootItem)}else for(const F of q.value){const y=I.treeItemById(F),W=y==null?void 0:y.location.file;W&&U.has(W)&&P.push(...I.collectTestIds(y))}V("queue-if-busy",new Set(P))});return()=>p.dispose()},[V,v,C,q,tt,c,Q]),u.useEffect(()=>{if(!v)return;const p=g=>{g.code==="Backquote"&&g.ctrlKey?(g.preventDefault(),s(!e)):g.code==="F5"&&g.shiftKey?(g.preventDefault(),v==null||v.stopTestsNoReply({})):g.code==="F5"&&(g.preventDefault(),V("bounce-if-busy",b))};return addEventListener("keydown",p),()=>{removeEventListener("keydown",p)}},[V,it,v,b,e]);const lt=u.useRef(null),Ft=u.useCallback(p=>{var g;p.preventDefault(),p.stopPropagation(),(g=lt.current)==null||g.showModal()},[]),ct=u.useCallback(p=>{var g;p.preventDefault(),p.stopPropagation(),(g=lt.current)==null||g.close()},[]),Ot=u.useCallback(p=>{ct(p),s(!0),v==null||v.installBrowsers({}).then(async()=>{s(!1);const{hasBrowsers:g}=await(v==null?void 0:v.checkBrowsers({}));gt(g)})},[ct,v]);return r.jsxs("div",{className:"vbox ui-mode",children:[!pt&&r.jsxs("dialog",{ref:lt,children:[r.jsxs("div",{className:"title",children:[r.jsx("span",{className:"codicon codicon-lightbulb"}),"Install browsers"]}),r.jsxs("div",{className:"body",children:["Playwright did not find installed browsers.",r.jsx("br",{}),"Would you like to run `playwright install`?",r.jsx("br",{}),r.jsx("button",{className:"button",onClick:Ot,children:"Install"}),r.jsx("button",{className:"button secondary",onClick:ct,children:"Dismiss"})]})]}),jt&&r.jsxs("div",{className:"disconnected",children:[r.jsx("div",{className:"title",children:"UI Mode disconnected"}),r.jsxs("div",{children:[r.jsx("a",{href:"#",onClick:()=>window.location.href="/",children:"Reload the page"})," to reconnect"]})]}),r.jsx(Jt,{sidebarSize:250,minSidebarSize:150,orientation:"horizontal",sidebarIsFirst:!0,settingName:"testListSidebar",main:r.jsxs("div",{className:"vbox",children:[r.jsxs("div",{className:ht("vbox",!e&&"hidden"),children:[r.jsxs(H,{children:[r.jsx("div",{className:"section-title",style:{flex:"none"},children:"Output"}),r.jsx(O,{icon:"circle-slash",title:"Clear output",onClick:()=>{z.clear(),d(!1)}}),r.jsx("div",{className:"spacer"}),r.jsx(O,{icon:"close",title:"Close",onClick:()=>s(!1)})]}),r.jsx(de,{source:z})]}),r.jsx("div",{className:ht("vbox",e&&"hidden"),children:r.jsx(be,{pathSeparator:B.pathSeparator,item:T,rootDir:(_t=a==null?void 0:a.config)==null?void 0:_t.rootDir,revealSource:Ct,onOpenExternally:p=>v==null?void 0:v.openNoReply({location:{file:p.file,line:p.line,column:p.column}})})})]}),sidebar:r.jsxs("div",{className:"vbox ui-mode-sidebar",children:[r.jsxs(H,{noShadow:!0,noMinHeight:!0,children:[r.jsx("img",{src:"playwright-logo.svg",alt:"Playwright logo"}),r.jsx("div",{className:"section-title",children:"Playwright"}),r.jsx(O,{icon:"refresh",title:"Reload",onClick:()=>it(),disabled:L||k}),r.jsxs("div",{style:{position:"relative"},children:[r.jsx(O,{icon:"terminal",title:"Toggle output — "+(bt?"⌃`":"Ctrl + `"),toggled:e,onClick:()=>{s(!e)}}),i&&r.jsx("div",{title:"Output contains error",style:{position:"absolute",top:2,right:2,width:7,height:7,borderRadius:"50%",backgroundColor:"var(--vscode-notificationsErrorIcon-foreground)"}})]}),!pt&&r.jsx(O,{icon:"lightbulb-autofix",style:{color:"var(--vscode-list-warningForeground)"},title:"Playwright browsers are missing",onClick:Ft})]}),r.jsx(fe,{filterText:o,setFilterText:t,statusFilters:n,setStatusFilters:m,projectFilters:c,setProjectFilters:f,testModel:a,runTests:()=>V("bounce-if-busy",b)}),r.jsxs(H,{className:"section-toolbar",noMinHeight:!0,children:[!L&&!x&&r.jsx("div",{className:"section-title",children:"Tests"}),!L&&x&&r.jsx("div",{"data-testid":"status-line",className:"status-line",children:r.jsxs("div",{children:[x.passed,"/",x.total," passed (",x.passed/x.total*100|0,"%)"]})}),L&&x&&r.jsx("div",{"data-testid":"status-line",className:"status-line",children:r.jsxs("div",{children:["Running ",x.passed,"/",D.testIds.size," passed (",x.passed/D.testIds.size*100|0,"%)"]})}),r.jsx(O,{icon:"play",title:"Run all — F5",onClick:()=>V("bounce-if-busy",b),disabled:L||k}),r.jsx(O,{icon:"debug-stop",title:"Stop — "+(bt?"⇧F5":"Shift + F5"),onClick:()=>v==null?void 0:v.stopTests({}),disabled:!L||k}),r.jsx(O,{icon:"eye",title:"Watch all",toggled:C,onClick:()=>{h({value:new Set}),Z(!C)}}),r.jsx(O,{icon:"collapse-all",title:"Collapse all",onClick:()=>{Y(M+1)}}),r.jsx(O,{icon:"expand-all",title:"Expand all",onClick:()=>{kt(G+1)}})]}),r.jsx(_e,{filterText:o,testModel:a,testTree:Mt,testServerConnection:v,runningState:D,runTests:V,onItemSelected:_,watchAll:C,watchedTreeIds:q,setWatchedTreeIds:h,isLoading:k,requestedCollapseAllCount:M,requestedExpandAllCount:G,setFilterText:t,onRevealSource:Nt}),r.jsxs(H,{noShadow:!0,noMinHeight:!0,className:"settings-toolbar",onClick:()=>Bt(!st),children:[r.jsx("span",{className:`codicon codicon-${st?"chevron-down":"chevron-right"}`,style:{marginLeft:5},title:st?"Hide Testing Options":"Show Testing Options"}),r.jsx("div",{className:"section-title",children:"Testing Options"})]}),st&&r.jsx(Zt,{settings:[{type:"check",value:nt,set:Pt,name:"Single worker"},{type:"select",options:[{label:"All",value:"all"},{label:"Changed",value:"changed"},{label:"Missing",value:"missing"},{label:"None",value:"none"}],value:at,set:Lt,name:"Update snapshots"}]}),r.jsxs(H,{noShadow:!0,noMinHeight:!0,className:"settings-toolbar",onClick:()=>Rt(!et),children:[r.jsx("span",{className:`codicon codicon-${et?"chevron-down":"chevron-right"}`,style:{marginLeft:5},title:et?"Hide Settings":"Show Settings"}),r.jsx("div",{className:"section-title",children:"Settings"})]}),et&&r.jsx(Gt,{})]})})]})};(async()=>{if(te(),window.location.protocol!=="file:"){if(window.location.href.includes("isUnderTest=true")&&await new Promise(o=>setTimeout(o,1e3)),!navigator.serviceWorker)throw new Error(`Service workers are not supported.
5
+ Make sure to serve the website (${window.location}) via HTTPS or localhost.`);navigator.serviceWorker.register("sw.bundle.js"),navigator.serviceWorker.controller||await new Promise(o=>{navigator.serviceWorker.oncontrollerchange=()=>o()}),setInterval(function(){fetch("ping")},1e4)}ee.createRoot(document.querySelector("#root")).render(r.jsx(Te,{}))})();
@@ -0,0 +1,17 @@
1
+
2
+ <!DOCTYPE html>
3
+ <html lang="en" translate="no">
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <link rel="icon" href="./playwright-logo.svg" type="image/svg+xml">
8
+ <title>Playwright Test</title>
9
+ <script type="module" crossorigin src="./uiMode.Shu3QS-1.js"></script>
10
+ <link rel="modulepreload" crossorigin href="./assets/defaultSettingsView-ClwvkA2N.js">
11
+ <link rel="stylesheet" crossorigin href="./defaultSettingsView.TQ8_7ybu.css">
12
+ <link rel="stylesheet" crossorigin href="./uiMode.Btcz36p_.css">
13
+ </head>
14
+ <body>
15
+ <div id="root"></div>
16
+ </body>
17
+ </html>
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Copyright (c) 2014 The xterm.js authors. All rights reserved.
3
+ * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
4
+ * https://github.com/chjj/term.js
5
+ * @license MIT
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in
15
+ * all copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ * THE SOFTWARE.
24
+ *
25
+ * Originally forked from (with the author's permission):
26
+ * Fabrice Bellard's javascript vt100 for jslinux:
27
+ * http://bellard.org/jslinux/
28
+ * Copyright (c) 2011 Fabrice Bellard
29
+ * The original design remains. The terminal itself
30
+ * has been extended to include xterm CSI codes, among
31
+ * other features.
32
+ */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var zipBundle_exports = {};
20
+ __export(zipBundle_exports, {
21
+ extract: () => extract,
22
+ yauzl: () => yauzl,
23
+ yazl: () => yazl
24
+ });
25
+ module.exports = __toCommonJS(zipBundle_exports);
26
+ const yazl = require("./zipBundleImpl").yazl;
27
+ const yauzl = require("./zipBundleImpl").yauzl;
28
+ const extract = require("./zipBundleImpl").extract;
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ extract,
32
+ yauzl,
33
+ yazl
34
+ });