easytouch-linux 1.0.7 → 1.0.18

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 (337) hide show
  1. package/LICENSE.txt +201 -0
  2. package/README.md +33 -314
  3. package/SKILL.md +366 -0
  4. package/bin/arm64/et +0 -0
  5. package/bin/et.js +60 -0
  6. package/bin/x64/et +0 -0
  7. package/package.json +19 -37
  8. package/.playwright/node/LICENSE +0 -2607
  9. package/.playwright/node/linux-x64/node +0 -0
  10. package/.playwright/package/README.md +0 -3
  11. package/.playwright/package/ThirdPartyNotices.txt +0 -1602
  12. package/.playwright/package/api.json +0 -1
  13. package/.playwright/package/bin/install_media_pack.ps1 +0 -5
  14. package/.playwright/package/bin/reinstall_chrome_beta_linux.sh +0 -42
  15. package/.playwright/package/bin/reinstall_chrome_beta_mac.sh +0 -13
  16. package/.playwright/package/bin/reinstall_chrome_beta_win.ps1 +0 -24
  17. package/.playwright/package/bin/reinstall_chrome_stable_linux.sh +0 -42
  18. package/.playwright/package/bin/reinstall_chrome_stable_mac.sh +0 -12
  19. package/.playwright/package/bin/reinstall_chrome_stable_win.ps1 +0 -24
  20. package/.playwright/package/bin/reinstall_msedge_beta_linux.sh +0 -48
  21. package/.playwright/package/bin/reinstall_msedge_beta_mac.sh +0 -11
  22. package/.playwright/package/bin/reinstall_msedge_beta_win.ps1 +0 -23
  23. package/.playwright/package/bin/reinstall_msedge_dev_linux.sh +0 -48
  24. package/.playwright/package/bin/reinstall_msedge_dev_mac.sh +0 -11
  25. package/.playwright/package/bin/reinstall_msedge_dev_win.ps1 +0 -23
  26. package/.playwright/package/bin/reinstall_msedge_stable_linux.sh +0 -48
  27. package/.playwright/package/bin/reinstall_msedge_stable_mac.sh +0 -11
  28. package/.playwright/package/bin/reinstall_msedge_stable_win.ps1 +0 -24
  29. package/.playwright/package/browsers.json +0 -66
  30. package/.playwright/package/cli.js +0 -18
  31. package/.playwright/package/index.d.ts +0 -17
  32. package/.playwright/package/index.js +0 -33
  33. package/.playwright/package/index.mjs +0 -28
  34. package/.playwright/package/lib/androidServerImpl.js +0 -69
  35. package/.playwright/package/lib/browserServerImpl.js +0 -92
  36. package/.playwright/package/lib/cli/driver.js +0 -95
  37. package/.playwright/package/lib/cli/program.js +0 -583
  38. package/.playwright/package/lib/cli/programWithTestStub.js +0 -67
  39. package/.playwright/package/lib/client/accessibility.js +0 -50
  40. package/.playwright/package/lib/client/android.js +0 -473
  41. package/.playwright/package/lib/client/api.js +0 -285
  42. package/.playwright/package/lib/client/artifact.js +0 -79
  43. package/.playwright/package/lib/client/browser.js +0 -145
  44. package/.playwright/package/lib/client/browserContext.js +0 -559
  45. package/.playwright/package/lib/client/browserType.js +0 -241
  46. package/.playwright/package/lib/client/cdpSession.js +0 -53
  47. package/.playwright/package/lib/client/channelOwner.js +0 -215
  48. package/.playwright/package/lib/client/clientHelper.js +0 -57
  49. package/.playwright/package/lib/client/clientInstrumentation.js +0 -52
  50. package/.playwright/package/lib/client/clock.js +0 -68
  51. package/.playwright/package/lib/client/connection.js +0 -333
  52. package/.playwright/package/lib/client/consoleMessage.js +0 -55
  53. package/.playwright/package/lib/client/coverage.js +0 -41
  54. package/.playwright/package/lib/client/dialog.js +0 -57
  55. package/.playwright/package/lib/client/download.js +0 -62
  56. package/.playwright/package/lib/client/electron.js +0 -135
  57. package/.playwright/package/lib/client/elementHandle.js +0 -321
  58. package/.playwright/package/lib/client/errors.js +0 -77
  59. package/.playwright/package/lib/client/eventEmitter.js +0 -314
  60. package/.playwright/package/lib/client/events.js +0 -94
  61. package/.playwright/package/lib/client/fetch.js +0 -391
  62. package/.playwright/package/lib/client/fileChooser.js +0 -45
  63. package/.playwright/package/lib/client/frame.js +0 -504
  64. package/.playwright/package/lib/client/harRouter.js +0 -99
  65. package/.playwright/package/lib/client/input.js +0 -111
  66. package/.playwright/package/lib/client/jsHandle.js +0 -121
  67. package/.playwright/package/lib/client/jsonPipe.js +0 -35
  68. package/.playwright/package/lib/client/localUtils.js +0 -36
  69. package/.playwright/package/lib/client/locator.js +0 -448
  70. package/.playwright/package/lib/client/network.js +0 -769
  71. package/.playwright/package/lib/client/page.js +0 -748
  72. package/.playwright/package/lib/client/playwright.js +0 -80
  73. package/.playwright/package/lib/client/selectors.js +0 -67
  74. package/.playwright/package/lib/client/stream.js +0 -54
  75. package/.playwright/package/lib/client/tracing.js +0 -147
  76. package/.playwright/package/lib/client/types.js +0 -24
  77. package/.playwright/package/lib/client/video.js +0 -51
  78. package/.playwright/package/lib/client/waiter.js +0 -162
  79. package/.playwright/package/lib/client/webError.js +0 -37
  80. package/.playwright/package/lib/client/worker.js +0 -71
  81. package/.playwright/package/lib/client/writableStream.js +0 -54
  82. package/.playwright/package/lib/common/socksProxy.js +0 -569
  83. package/.playwright/package/lib/common/timeoutSettings.js +0 -73
  84. package/.playwright/package/lib/common/types.js +0 -5
  85. package/.playwright/package/lib/generated/clockSource.js +0 -7
  86. package/.playwright/package/lib/generated/consoleApiSource.js +0 -7
  87. package/.playwright/package/lib/generated/injectedScriptSource.js +0 -7
  88. package/.playwright/package/lib/generated/pollingRecorderSource.js +0 -7
  89. package/.playwright/package/lib/generated/utilityScriptSource.js +0 -7
  90. package/.playwright/package/lib/generated/webSocketMockSource.js +0 -7
  91. package/.playwright/package/lib/image_tools/colorUtils.js +0 -98
  92. package/.playwright/package/lib/image_tools/compare.js +0 -108
  93. package/.playwright/package/lib/image_tools/imageChannel.js +0 -70
  94. package/.playwright/package/lib/image_tools/stats.js +0 -102
  95. package/.playwright/package/lib/inProcessFactory.js +0 -56
  96. package/.playwright/package/lib/inprocess.js +0 -20
  97. package/.playwright/package/lib/outofprocess.js +0 -67
  98. package/.playwright/package/lib/protocol/debug.js +0 -27
  99. package/.playwright/package/lib/protocol/serializers.js +0 -173
  100. package/.playwright/package/lib/protocol/transport.js +0 -82
  101. package/.playwright/package/lib/protocol/validator.js +0 -2780
  102. package/.playwright/package/lib/protocol/validatorPrimitives.js +0 -139
  103. package/.playwright/package/lib/remote/playwrightConnection.js +0 -275
  104. package/.playwright/package/lib/remote/playwrightServer.js +0 -111
  105. package/.playwright/package/lib/server/accessibility.js +0 -62
  106. package/.playwright/package/lib/server/android/android.js +0 -441
  107. package/.playwright/package/lib/server/android/backendAdb.js +0 -172
  108. package/.playwright/package/lib/server/artifact.js +0 -104
  109. package/.playwright/package/lib/server/bidi/bidiBrowser.js +0 -314
  110. package/.playwright/package/lib/server/bidi/bidiChromium.js +0 -124
  111. package/.playwright/package/lib/server/bidi/bidiConnection.js +0 -204
  112. package/.playwright/package/lib/server/bidi/bidiExecutionContext.js +0 -175
  113. package/.playwright/package/lib/server/bidi/bidiFirefox.js +0 -104
  114. package/.playwright/package/lib/server/bidi/bidiInput.js +0 -160
  115. package/.playwright/package/lib/server/bidi/bidiNetworkManager.js +0 -337
  116. package/.playwright/package/lib/server/bidi/bidiOverCdp.js +0 -103
  117. package/.playwright/package/lib/server/bidi/bidiPage.js +0 -518
  118. package/.playwright/package/lib/server/bidi/bidiPdf.js +0 -140
  119. package/.playwright/package/lib/server/bidi/third_party/bidiDeserializer.js +0 -93
  120. package/.playwright/package/lib/server/bidi/third_party/bidiKeyboard.js +0 -240
  121. package/.playwright/package/lib/server/bidi/third_party/bidiProtocol.js +0 -139
  122. package/.playwright/package/lib/server/bidi/third_party/bidiSerializer.js +0 -144
  123. package/.playwright/package/lib/server/bidi/third_party/firefoxPrefs.js +0 -221
  124. package/.playwright/package/lib/server/browser.js +0 -148
  125. package/.playwright/package/lib/server/browserContext.js +0 -675
  126. package/.playwright/package/lib/server/browserType.js +0 -338
  127. package/.playwright/package/lib/server/chromium/appIcon.png +0 -0
  128. package/.playwright/package/lib/server/chromium/chromium.js +0 -354
  129. package/.playwright/package/lib/server/chromium/chromiumSwitches.js +0 -46
  130. package/.playwright/package/lib/server/chromium/crAccessibility.js +0 -237
  131. package/.playwright/package/lib/server/chromium/crBrowser.js +0 -516
  132. package/.playwright/package/lib/server/chromium/crConnection.js +0 -228
  133. package/.playwright/package/lib/server/chromium/crCoverage.js +0 -246
  134. package/.playwright/package/lib/server/chromium/crDevTools.js +0 -104
  135. package/.playwright/package/lib/server/chromium/crDragDrop.js +0 -143
  136. package/.playwright/package/lib/server/chromium/crExecutionContext.js +0 -132
  137. package/.playwright/package/lib/server/chromium/crInput.js +0 -182
  138. package/.playwright/package/lib/server/chromium/crNetworkManager.js +0 -767
  139. package/.playwright/package/lib/server/chromium/crPage.js +0 -1122
  140. package/.playwright/package/lib/server/chromium/crPdf.js +0 -153
  141. package/.playwright/package/lib/server/chromium/crProtocolHelper.js +0 -133
  142. package/.playwright/package/lib/server/chromium/crServiceWorker.js +0 -112
  143. package/.playwright/package/lib/server/chromium/defaultFontFamilies.js +0 -145
  144. package/.playwright/package/lib/server/chromium/videoRecorder.js +0 -155
  145. package/.playwright/package/lib/server/clock.js +0 -125
  146. package/.playwright/package/lib/server/codegen/csharp.js +0 -304
  147. package/.playwright/package/lib/server/codegen/java.js +0 -243
  148. package/.playwright/package/lib/server/codegen/javascript.js +0 -253
  149. package/.playwright/package/lib/server/codegen/jsonl.js +0 -47
  150. package/.playwright/package/lib/server/codegen/language.js +0 -88
  151. package/.playwright/package/lib/server/codegen/languages.js +0 -30
  152. package/.playwright/package/lib/server/codegen/python.js +0 -262
  153. package/.playwright/package/lib/server/codegen/types.js +0 -5
  154. package/.playwright/package/lib/server/console.js +0 -57
  155. package/.playwright/package/lib/server/cookieStore.js +0 -185
  156. package/.playwright/package/lib/server/debugController.js +0 -212
  157. package/.playwright/package/lib/server/debugger.js +0 -132
  158. package/.playwright/package/lib/server/deviceDescriptors.js +0 -26
  159. package/.playwright/package/lib/server/deviceDescriptorsSource.json +0 -1669
  160. package/.playwright/package/lib/server/dialog.js +0 -71
  161. package/.playwright/package/lib/server/dispatchers/androidDispatcher.js +0 -204
  162. package/.playwright/package/lib/server/dispatchers/artifactDispatcher.js +0 -118
  163. package/.playwright/package/lib/server/dispatchers/browserContextDispatcher.js +0 -357
  164. package/.playwright/package/lib/server/dispatchers/browserDispatcher.js +0 -170
  165. package/.playwright/package/lib/server/dispatchers/browserTypeDispatcher.js +0 -55
  166. package/.playwright/package/lib/server/dispatchers/cdpSessionDispatcher.js +0 -48
  167. package/.playwright/package/lib/server/dispatchers/debugControllerDispatcher.js +0 -105
  168. package/.playwright/package/lib/server/dispatchers/dialogDispatcher.js +0 -44
  169. package/.playwright/package/lib/server/dispatchers/dispatcher.js +0 -395
  170. package/.playwright/package/lib/server/dispatchers/electronDispatcher.js +0 -93
  171. package/.playwright/package/lib/server/dispatchers/elementHandlerDispatcher.js +0 -228
  172. package/.playwright/package/lib/server/dispatchers/frameDispatcher.js +0 -294
  173. package/.playwright/package/lib/server/dispatchers/jsHandleDispatcher.js +0 -97
  174. package/.playwright/package/lib/server/dispatchers/jsonPipeDispatcher.js +0 -59
  175. package/.playwright/package/lib/server/dispatchers/localUtilsDispatcher.js +0 -413
  176. package/.playwright/package/lib/server/dispatchers/networkDispatchers.js +0 -221
  177. package/.playwright/package/lib/server/dispatchers/pageDispatcher.js +0 -367
  178. package/.playwright/package/lib/server/dispatchers/playwrightDispatcher.js +0 -107
  179. package/.playwright/package/lib/server/dispatchers/selectorsDispatcher.js +0 -36
  180. package/.playwright/package/lib/server/dispatchers/streamDispatcher.js +0 -62
  181. package/.playwright/package/lib/server/dispatchers/tracingDispatcher.js +0 -64
  182. package/.playwright/package/lib/server/dispatchers/webSocketRouteDispatcher.js +0 -188
  183. package/.playwright/package/lib/server/dispatchers/writableStreamDispatcher.js +0 -58
  184. package/.playwright/package/lib/server/dom.js +0 -893
  185. package/.playwright/package/lib/server/download.js +0 -60
  186. package/.playwright/package/lib/server/electron/electron.js +0 -296
  187. package/.playwright/package/lib/server/electron/loader.js +0 -57
  188. package/.playwright/package/lib/server/errors.js +0 -68
  189. package/.playwright/package/lib/server/fetch.js +0 -663
  190. package/.playwright/package/lib/server/fileChooser.js +0 -42
  191. package/.playwright/package/lib/server/fileUploadUtils.js +0 -75
  192. package/.playwright/package/lib/server/firefox/ffAccessibility.js +0 -216
  193. package/.playwright/package/lib/server/firefox/ffBrowser.js +0 -462
  194. package/.playwright/package/lib/server/firefox/ffConnection.js +0 -168
  195. package/.playwright/package/lib/server/firefox/ffExecutionContext.js +0 -123
  196. package/.playwright/package/lib/server/firefox/ffInput.js +0 -161
  197. package/.playwright/package/lib/server/firefox/ffNetworkManager.js +0 -233
  198. package/.playwright/package/lib/server/firefox/ffPage.js +0 -544
  199. package/.playwright/package/lib/server/firefox/firefox.js +0 -99
  200. package/.playwright/package/lib/server/formData.js +0 -75
  201. package/.playwright/package/lib/server/frameSelectors.js +0 -171
  202. package/.playwright/package/lib/server/frames.js +0 -1663
  203. package/.playwright/package/lib/server/har/harRecorder.js +0 -139
  204. package/.playwright/package/lib/server/har/harTracer.js +0 -542
  205. package/.playwright/package/lib/server/helper.js +0 -103
  206. package/.playwright/package/lib/server/index.js +0 -108
  207. package/.playwright/package/lib/server/input.js +0 -309
  208. package/.playwright/package/lib/server/instrumentation.js +0 -70
  209. package/.playwright/package/lib/server/isomorphic/utilityScriptSerializers.js +0 -226
  210. package/.playwright/package/lib/server/javascript.js +0 -293
  211. package/.playwright/package/lib/server/launchApp.js +0 -91
  212. package/.playwright/package/lib/server/macEditingCommands.js +0 -139
  213. package/.playwright/package/lib/server/network.js +0 -617
  214. package/.playwright/package/lib/server/page.js +0 -863
  215. package/.playwright/package/lib/server/pipeTransport.js +0 -85
  216. package/.playwright/package/lib/server/playwright.js +0 -88
  217. package/.playwright/package/lib/server/progress.js +0 -99
  218. package/.playwright/package/lib/server/protocolError.js +0 -49
  219. package/.playwright/package/lib/server/recorder/chat.js +0 -177
  220. package/.playwright/package/lib/server/recorder/contextRecorder.js +0 -290
  221. package/.playwright/package/lib/server/recorder/recorderApp.js +0 -187
  222. package/.playwright/package/lib/server/recorder/recorderCollection.js +0 -104
  223. package/.playwright/package/lib/server/recorder/recorderFrontend.js +0 -5
  224. package/.playwright/package/lib/server/recorder/recorderRunner.js +0 -159
  225. package/.playwright/package/lib/server/recorder/recorderUtils.js +0 -89
  226. package/.playwright/package/lib/server/recorder/throttledFile.js +0 -46
  227. package/.playwright/package/lib/server/recorder.js +0 -367
  228. package/.playwright/package/lib/server/registry/browserFetcher.js +0 -168
  229. package/.playwright/package/lib/server/registry/dependencies.js +0 -322
  230. package/.playwright/package/lib/server/registry/index.js +0 -1165
  231. package/.playwright/package/lib/server/registry/nativeDeps.js +0 -496
  232. package/.playwright/package/lib/server/registry/oopDownloadBrowserMain.js +0 -138
  233. package/.playwright/package/lib/server/screenshotter.js +0 -348
  234. package/.playwright/package/lib/server/selectors.js +0 -73
  235. package/.playwright/package/lib/server/socksClientCertificatesInterceptor.js +0 -340
  236. package/.playwright/package/lib/server/socksInterceptor.js +0 -100
  237. package/.playwright/package/lib/server/trace/recorder/snapshotter.js +0 -161
  238. package/.playwright/package/lib/server/trace/recorder/snapshotterInjected.js +0 -518
  239. package/.playwright/package/lib/server/trace/recorder/tracing.js +0 -596
  240. package/.playwright/package/lib/server/trace/test/inMemorySnapshotter.js +0 -93
  241. package/.playwright/package/lib/server/trace/viewer/traceViewer.js +0 -219
  242. package/.playwright/package/lib/server/transport.js +0 -192
  243. package/.playwright/package/lib/server/types.js +0 -24
  244. package/.playwright/package/lib/server/usKeyboardLayout.js +0 -555
  245. package/.playwright/package/lib/server/webkit/webkit.js +0 -87
  246. package/.playwright/package/lib/server/webkit/wkAccessibility.js +0 -194
  247. package/.playwright/package/lib/server/webkit/wkBrowser.js +0 -329
  248. package/.playwright/package/lib/server/webkit/wkConnection.js +0 -173
  249. package/.playwright/package/lib/server/webkit/wkExecutionContext.js +0 -131
  250. package/.playwright/package/lib/server/webkit/wkInput.js +0 -179
  251. package/.playwright/package/lib/server/webkit/wkInterceptableRequest.js +0 -162
  252. package/.playwright/package/lib/server/webkit/wkPage.js +0 -1207
  253. package/.playwright/package/lib/server/webkit/wkProvisionalPage.js +0 -94
  254. package/.playwright/package/lib/server/webkit/wkWorkers.js +0 -104
  255. package/.playwright/package/lib/third_party/pixelmatch.js +0 -255
  256. package/.playwright/package/lib/utils/ascii.js +0 -31
  257. package/.playwright/package/lib/utils/comparators.js +0 -159
  258. package/.playwright/package/lib/utils/crypto.js +0 -171
  259. package/.playwright/package/lib/utils/debug.js +0 -46
  260. package/.playwright/package/lib/utils/debugLogger.js +0 -93
  261. package/.playwright/package/lib/utils/env.js +0 -49
  262. package/.playwright/package/lib/utils/eventsHelper.js +0 -38
  263. package/.playwright/package/lib/utils/expectUtils.js +0 -33
  264. package/.playwright/package/lib/utils/fileUtils.js +0 -205
  265. package/.playwright/package/lib/utils/happy-eyeballs.js +0 -194
  266. package/.playwright/package/lib/utils/headers.js +0 -52
  267. package/.playwright/package/lib/utils/hostPlatform.js +0 -145
  268. package/.playwright/package/lib/utils/httpServer.js +0 -233
  269. package/.playwright/package/lib/utils/index.js +0 -368
  270. package/.playwright/package/lib/utils/isomorphic/ariaSnapshot.js +0 -391
  271. package/.playwright/package/lib/utils/isomorphic/cssParser.js +0 -250
  272. package/.playwright/package/lib/utils/isomorphic/cssTokenizer.js +0 -979
  273. package/.playwright/package/lib/utils/isomorphic/locatorGenerators.js +0 -660
  274. package/.playwright/package/lib/utils/isomorphic/locatorParser.js +0 -185
  275. package/.playwright/package/lib/utils/isomorphic/locatorUtils.js +0 -62
  276. package/.playwright/package/lib/utils/isomorphic/mimeType.js +0 -29
  277. package/.playwright/package/lib/utils/isomorphic/selectorParser.js +0 -397
  278. package/.playwright/package/lib/utils/isomorphic/stringUtils.js +0 -169
  279. package/.playwright/package/lib/utils/isomorphic/traceUtils.js +0 -39
  280. package/.playwright/package/lib/utils/isomorphic/urlMatch.js +0 -122
  281. package/.playwright/package/lib/utils/linuxUtils.js +0 -78
  282. package/.playwright/package/lib/utils/manualPromise.js +0 -109
  283. package/.playwright/package/lib/utils/multimap.js +0 -75
  284. package/.playwright/package/lib/utils/network.js +0 -160
  285. package/.playwright/package/lib/utils/processLauncher.js +0 -248
  286. package/.playwright/package/lib/utils/profiler.js +0 -53
  287. package/.playwright/package/lib/utils/rtti.js +0 -44
  288. package/.playwright/package/lib/utils/semaphore.js +0 -51
  289. package/.playwright/package/lib/utils/sequence.js +0 -64
  290. package/.playwright/package/lib/utils/spawnAsync.js +0 -45
  291. package/.playwright/package/lib/utils/stackTrace.js +0 -134
  292. package/.playwright/package/lib/utils/task.js +0 -58
  293. package/.playwright/package/lib/utils/time.js +0 -37
  294. package/.playwright/package/lib/utils/timeoutRunner.js +0 -66
  295. package/.playwright/package/lib/utils/traceUtils.js +0 -44
  296. package/.playwright/package/lib/utils/userAgent.js +0 -105
  297. package/.playwright/package/lib/utils/wsServer.js +0 -128
  298. package/.playwright/package/lib/utils/zipFile.js +0 -75
  299. package/.playwright/package/lib/utils/zones.js +0 -69
  300. package/.playwright/package/lib/utilsBundle.js +0 -81
  301. package/.playwright/package/lib/utilsBundleImpl/index.js +0 -210
  302. package/.playwright/package/lib/utilsBundleImpl/xdg-open +0 -1066
  303. package/.playwright/package/lib/vite/htmlReport/index.html +0 -69
  304. package/.playwright/package/lib/vite/recorder/assets/codeMirrorModule-C3UTv-Ge.css +0 -1
  305. package/.playwright/package/lib/vite/recorder/assets/codeMirrorModule-k-61wZCK.js +0 -24
  306. package/.playwright/package/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  307. package/.playwright/package/lib/vite/recorder/assets/index-B70BEW3b.js +0 -184
  308. package/.playwright/package/lib/vite/recorder/assets/index-eHBmevrY.css +0 -1
  309. package/.playwright/package/lib/vite/recorder/index.html +0 -29
  310. package/.playwright/package/lib/vite/recorder/playwright-logo.svg +0 -9
  311. package/.playwright/package/lib/vite/traceViewer/assets/codeMirrorModule-CyuxU5C-.js +0 -24
  312. package/.playwright/package/lib/vite/traceViewer/assets/defaultSettingsView-5nVJRt0A.js +0 -243
  313. package/.playwright/package/lib/vite/traceViewer/assets/xtermModule-c-SNdYZy.js +0 -9
  314. package/.playwright/package/lib/vite/traceViewer/codeMirrorModule.C3UTv-Ge.css +0 -1
  315. package/.playwright/package/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  316. package/.playwright/package/lib/vite/traceViewer/defaultSettingsView.2xeEXCXv.css +0 -1
  317. package/.playwright/package/lib/vite/traceViewer/index.CFOW-Ezb.css +0 -1
  318. package/.playwright/package/lib/vite/traceViewer/index.html +0 -43
  319. package/.playwright/package/lib/vite/traceViewer/index.qVn2ZnpC.js +0 -2
  320. package/.playwright/package/lib/vite/traceViewer/playwright-logo.svg +0 -9
  321. package/.playwright/package/lib/vite/traceViewer/snapshot.html +0 -21
  322. package/.playwright/package/lib/vite/traceViewer/sw.bundle.js +0 -3
  323. package/.playwright/package/lib/vite/traceViewer/uiMode.BatfzHMG.css +0 -1
  324. package/.playwright/package/lib/vite/traceViewer/uiMode.html +0 -17
  325. package/.playwright/package/lib/vite/traceViewer/uiMode.m4IPRPOd.js +0 -5
  326. package/.playwright/package/lib/vite/traceViewer/xtermModule.Beg8tuEN.css +0 -32
  327. package/.playwright/package/lib/zipBundle.js +0 -25
  328. package/.playwright/package/lib/zipBundleImpl.js +0 -5
  329. package/.playwright/package/package.json +0 -44
  330. package/.playwright/package/protocol.yml +0 -3758
  331. package/.playwright/package/types/protocol.d.ts +0 -21868
  332. package/.playwright/package/types/structs.d.ts +0 -45
  333. package/.playwright/package/types/types.d.ts +0 -22663
  334. package/et +0 -0
  335. package/install.js +0 -19
  336. package/playwright.ps1 +0 -7
  337. package/scripts/playwright-bridge.js +0 -560
@@ -1,169 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.cacheNormalizedWhitespaces = cacheNormalizedWhitespaces;
7
- exports.cssEscape = cssEscape;
8
- exports.escapeForAttributeSelector = escapeForAttributeSelector;
9
- exports.escapeForTextSelector = escapeForTextSelector;
10
- exports.escapeHTML = escapeHTML;
11
- exports.escapeHTMLAttribute = escapeHTMLAttribute;
12
- exports.escapeRegExp = escapeRegExp;
13
- exports.escapeTemplateString = escapeTemplateString;
14
- exports.escapeWithQuotes = escapeWithQuotes;
15
- exports.isString = isString;
16
- exports.longestCommonSubstring = longestCommonSubstring;
17
- exports.normalizeEscapedRegexQuotes = normalizeEscapedRegexQuotes;
18
- exports.normalizeWhiteSpace = normalizeWhiteSpace;
19
- exports.quoteCSSAttributeValue = quoteCSSAttributeValue;
20
- exports.toSnakeCase = toSnakeCase;
21
- exports.toTitleCase = toTitleCase;
22
- exports.trimString = trimString;
23
- exports.trimStringWithEllipsis = trimStringWithEllipsis;
24
- /**
25
- * Copyright (c) Microsoft Corporation.
26
- *
27
- * Licensed under the Apache License, Version 2.0 (the "License");
28
- * you may not use this file except in compliance with the License.
29
- * You may obtain a copy of the License at
30
- *
31
- * http://www.apache.org/licenses/LICENSE-2.0
32
- *
33
- * Unless required by applicable law or agreed to in writing, software
34
- * distributed under the License is distributed on an "AS IS" BASIS,
35
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36
- * See the License for the specific language governing permissions and
37
- * limitations under the License.
38
- */
39
-
40
- // NOTE: this function should not be used to escape any selectors.
41
- function escapeWithQuotes(text, char = '\'') {
42
- const stringified = JSON.stringify(text);
43
- const escapedText = stringified.substring(1, stringified.length - 1).replace(/\\"/g, '"');
44
- if (char === '\'') return char + escapedText.replace(/[']/g, '\\\'') + char;
45
- if (char === '"') return char + escapedText.replace(/["]/g, '\\"') + char;
46
- if (char === '`') return char + escapedText.replace(/[`]/g, '`') + char;
47
- throw new Error('Invalid escape char');
48
- }
49
- function escapeTemplateString(text) {
50
- return text.replace(/\\/g, '\\\\').replace(/`/g, '\\`').replace(/\$\{/g, '\\${');
51
- }
52
- function isString(obj) {
53
- return typeof obj === 'string' || obj instanceof String;
54
- }
55
- function toTitleCase(name) {
56
- return name.charAt(0).toUpperCase() + name.substring(1);
57
- }
58
- function toSnakeCase(name) {
59
- // E.g. ignoreHTTPSErrors => ignore_https_errors.
60
- return name.replace(/([a-z0-9])([A-Z])/g, '$1_$2').replace(/([A-Z])([A-Z][a-z])/g, '$1_$2').toLowerCase();
61
- }
62
- function cssEscape(s) {
63
- let result = '';
64
- for (let i = 0; i < s.length; i++) result += cssEscapeOne(s, i);
65
- return result;
66
- }
67
- function quoteCSSAttributeValue(text) {
68
- return `"${cssEscape(text).replace(/\\ /g, ' ')}"`;
69
- }
70
- function cssEscapeOne(s, i) {
71
- // https://drafts.csswg.org/cssom/#serialize-an-identifier
72
- const c = s.charCodeAt(i);
73
- if (c === 0x0000) return '\uFFFD';
74
- if (c >= 0x0001 && c <= 0x001f || c >= 0x0030 && c <= 0x0039 && (i === 0 || i === 1 && s.charCodeAt(0) === 0x002d)) return '\\' + c.toString(16) + ' ';
75
- if (i === 0 && c === 0x002d && s.length === 1) return '\\' + s.charAt(i);
76
- if (c >= 0x0080 || c === 0x002d || c === 0x005f || c >= 0x0030 && c <= 0x0039 || c >= 0x0041 && c <= 0x005a || c >= 0x0061 && c <= 0x007a) return s.charAt(i);
77
- return '\\' + s.charAt(i);
78
- }
79
- let normalizedWhitespaceCache;
80
- function cacheNormalizedWhitespaces() {
81
- normalizedWhitespaceCache = new Map();
82
- }
83
- function normalizeWhiteSpace(text) {
84
- var _normalizedWhitespace;
85
- let result = (_normalizedWhitespace = normalizedWhitespaceCache) === null || _normalizedWhitespace === void 0 ? void 0 : _normalizedWhitespace.get(text);
86
- if (result === undefined) {
87
- var _normalizedWhitespace2;
88
- result = text.replace(/\u200b/g, '').trim().replace(/\s+/g, ' ');
89
- (_normalizedWhitespace2 = normalizedWhitespaceCache) === null || _normalizedWhitespace2 === void 0 || _normalizedWhitespace2.set(text, result);
90
- }
91
- return result;
92
- }
93
- function normalizeEscapedRegexQuotes(source) {
94
- // This function reverses the effect of escapeRegexForSelector below.
95
- // Odd number of backslashes followed by the quote -> remove unneeded backslash.
96
- return source.replace(/(^|[^\\])(\\\\)*\\(['"`])/g, '$1$2$3');
97
- }
98
- function escapeRegexForSelector(re) {
99
- // Unicode mode does not allow "identity character escapes", so we do not escape and
100
- // hope that it does not contain quotes and/or >> signs.
101
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_escape
102
- // TODO: rework RE usages in internal selectors away from literal representation to json, e.g. {source,flags}.
103
- if (re.unicode || re.unicodeSets) return String(re);
104
- // Even number of backslashes followed by the quote -> insert a backslash.
105
- return String(re).replace(/(^|[^\\])(\\\\)*(["'`])/g, '$1$2\\$3').replace(/>>/g, '\\>\\>');
106
- }
107
- function escapeForTextSelector(text, exact) {
108
- if (typeof text !== 'string') return escapeRegexForSelector(text);
109
- return `${JSON.stringify(text)}${exact ? 's' : 'i'}`;
110
- }
111
- function escapeForAttributeSelector(value, exact) {
112
- if (typeof value !== 'string') return escapeRegexForSelector(value);
113
- // TODO: this should actually be
114
- // cssEscape(value).replace(/\\ /g, ' ')
115
- // However, our attribute selectors do not conform to CSS parsing spec,
116
- // so we escape them differently.
117
- return `"${value.replace(/\\/g, '\\\\').replace(/["]/g, '\\"')}"${exact ? 's' : 'i'}`;
118
- }
119
- function trimString(input, cap, suffix = '') {
120
- if (input.length <= cap) return input;
121
- const chars = [...input];
122
- if (chars.length > cap) return chars.slice(0, cap - suffix.length).join('') + suffix;
123
- return chars.join('');
124
- }
125
- function trimStringWithEllipsis(input, cap) {
126
- return trimString(input, cap, '\u2026');
127
- }
128
- function escapeRegExp(s) {
129
- // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping
130
- return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
131
- }
132
- const escaped = {
133
- '&': '&amp;',
134
- '<': '&lt;',
135
- '>': '&gt;',
136
- '"': '&quot;',
137
- '\'': '&#39;'
138
- };
139
- function escapeHTMLAttribute(s) {
140
- return s.replace(/[&<>"']/ug, char => escaped[char]);
141
- }
142
- function escapeHTML(s) {
143
- return s.replace(/[&<]/ug, char => escaped[char]);
144
- }
145
- function longestCommonSubstring(s1, s2) {
146
- const n = s1.length;
147
- const m = s2.length;
148
- let maxLen = 0;
149
- let endingIndex = 0;
150
-
151
- // Initialize a 2D array with zeros
152
- const dp = Array(n + 1).fill(null).map(() => Array(m + 1).fill(0));
153
-
154
- // Build the dp table
155
- for (let i = 1; i <= n; i++) {
156
- for (let j = 1; j <= m; j++) {
157
- if (s1[i - 1] === s2[j - 1]) {
158
- dp[i][j] = dp[i - 1][j - 1] + 1;
159
- if (dp[i][j] > maxLen) {
160
- maxLen = dp[i][j];
161
- endingIndex = i;
162
- }
163
- }
164
- }
165
- }
166
-
167
- // Extract the longest common substring
168
- return s1.slice(endingIndex - maxLen, endingIndex);
169
- }
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.parseClientSideCallMetadata = parseClientSideCallMetadata;
7
- /**
8
- * Copyright (c) Microsoft Corporation.
9
- *
10
- * Licensed under the Apache License, Version 2.0 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.apache.org/licenses/LICENSE-2.0
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
-
23
- function parseClientSideCallMetadata(data) {
24
- const result = new Map();
25
- const {
26
- files,
27
- stacks
28
- } = data;
29
- for (const s of stacks) {
30
- const [id, ff] = s;
31
- result.set(`call@${id}`, ff.map(f => ({
32
- file: files[f[0]],
33
- line: f[1],
34
- column: f[2],
35
- function: f[3]
36
- })));
37
- }
38
- return result;
39
- }
@@ -1,122 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.constructURLBasedOnBaseURL = constructURLBasedOnBaseURL;
7
- exports.globToRegex = globToRegex;
8
- exports.urlMatches = urlMatches;
9
- exports.urlMatchesEqual = urlMatchesEqual;
10
- var _stringUtils = require("./stringUtils");
11
- /**
12
- * Copyright (c) Microsoft Corporation.
13
- *
14
- * Licensed under the Apache License, Version 2.0 (the "License");
15
- * you may not use this file except in compliance with the License.
16
- * You may obtain a copy of the License at
17
- *
18
- * http://www.apache.org/licenses/LICENSE-2.0
19
- *
20
- * Unless required by applicable law or agreed to in writing, software
21
- * distributed under the License is distributed on an "AS IS" BASIS,
22
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23
- * See the License for the specific language governing permissions and
24
- * limitations under the License.
25
- */
26
-
27
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#escaping
28
- const escapedChars = new Set(['$', '^', '+', '.', '*', '(', ')', '|', '\\', '?', '{', '}', '[', ']']);
29
- function globToRegex(glob) {
30
- const tokens = ['^'];
31
- let inGroup = false;
32
- for (let i = 0; i < glob.length; ++i) {
33
- const c = glob[i];
34
- if (c === '\\' && i + 1 < glob.length) {
35
- const char = glob[++i];
36
- tokens.push(escapedChars.has(char) ? '\\' + char : char);
37
- continue;
38
- }
39
- if (c === '*') {
40
- const beforeDeep = glob[i - 1];
41
- let starCount = 1;
42
- while (glob[i + 1] === '*') {
43
- starCount++;
44
- i++;
45
- }
46
- const afterDeep = glob[i + 1];
47
- const isDeep = starCount > 1 && (beforeDeep === '/' || beforeDeep === undefined) && (afterDeep === '/' || afterDeep === undefined);
48
- if (isDeep) {
49
- tokens.push('((?:[^/]*(?:\/|$))*)');
50
- i++;
51
- } else {
52
- tokens.push('([^/]*)');
53
- }
54
- continue;
55
- }
56
- switch (c) {
57
- case '?':
58
- tokens.push('.');
59
- break;
60
- case '[':
61
- tokens.push('[');
62
- break;
63
- case ']':
64
- tokens.push(']');
65
- break;
66
- case '{':
67
- inGroup = true;
68
- tokens.push('(');
69
- break;
70
- case '}':
71
- inGroup = false;
72
- tokens.push(')');
73
- break;
74
- case ',':
75
- if (inGroup) {
76
- tokens.push('|');
77
- break;
78
- }
79
- tokens.push('\\' + c);
80
- break;
81
- default:
82
- tokens.push(escapedChars.has(c) ? '\\' + c : c);
83
- }
84
- }
85
- tokens.push('$');
86
- return new RegExp(tokens.join(''));
87
- }
88
- function isRegExp(obj) {
89
- return obj instanceof RegExp || Object.prototype.toString.call(obj) === '[object RegExp]';
90
- }
91
- function urlMatchesEqual(match1, match2) {
92
- if (isRegExp(match1) && isRegExp(match2)) return match1.source === match2.source && match1.flags === match2.flags;
93
- return match1 === match2;
94
- }
95
- function urlMatches(baseURL, urlString, match) {
96
- if (match === undefined || match === '') return true;
97
- if ((0, _stringUtils.isString)(match) && !match.startsWith('*')) {
98
- // Allow http(s) baseURL to match ws(s) urls.
99
- if (baseURL && /^https?:\/\//.test(baseURL) && /^wss?:\/\//.test(urlString)) baseURL = baseURL.replace(/^http/, 'ws');
100
- match = constructURLBasedOnBaseURL(baseURL, match);
101
- }
102
- if ((0, _stringUtils.isString)(match)) match = globToRegex(match);
103
- if (isRegExp(match)) return match.test(urlString);
104
- const url = parseURL(urlString);
105
- if (!url) return false;
106
- if (typeof match !== 'function') throw new Error('url parameter should be string, RegExp or function');
107
- return match(url);
108
- }
109
- function parseURL(url) {
110
- try {
111
- return new URL(url);
112
- } catch (e) {
113
- return null;
114
- }
115
- }
116
- function constructURLBasedOnBaseURL(baseURL, givenURL) {
117
- try {
118
- return new URL(givenURL, baseURL).toString();
119
- } catch (e) {
120
- return givenURL;
121
- }
122
- }
@@ -1,78 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getLinuxDistributionInfo = getLinuxDistributionInfo;
7
- exports.getLinuxDistributionInfoSync = getLinuxDistributionInfoSync;
8
- var _fs = _interopRequireDefault(require("fs"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- /**
11
- * Copyright 2017 Google Inc. All rights reserved.
12
- * Modifications copyright (c) Microsoft Corporation.
13
- *
14
- * Licensed under the Apache License, Version 2.0 (the "License");
15
- * you may not use this file except in compliance with the License.
16
- * You may obtain a copy of the License at
17
- *
18
- * http://www.apache.org/licenses/LICENSE-2.0
19
- *
20
- * Unless required by applicable law or agreed to in writing, software
21
- * distributed under the License is distributed on an "AS IS" BASIS,
22
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23
- * See the License for the specific language governing permissions and
24
- * limitations under the License.
25
- */
26
-
27
- let didFailToReadOSRelease = false;
28
- let osRelease;
29
- async function getLinuxDistributionInfo() {
30
- if (process.platform !== 'linux') return undefined;
31
- if (!osRelease && !didFailToReadOSRelease) {
32
- try {
33
- var _fields$get, _fields$get2;
34
- // List of /etc/os-release values for different distributions could be
35
- // found here: https://gist.github.com/aslushnikov/8ceddb8288e4cf9db3039c02e0f4fb75
36
- const osReleaseText = await _fs.default.promises.readFile('/etc/os-release', 'utf8');
37
- const fields = parseOSReleaseText(osReleaseText);
38
- osRelease = {
39
- id: (_fields$get = fields.get('id')) !== null && _fields$get !== void 0 ? _fields$get : '',
40
- version: (_fields$get2 = fields.get('version_id')) !== null && _fields$get2 !== void 0 ? _fields$get2 : ''
41
- };
42
- } catch (e) {
43
- didFailToReadOSRelease = true;
44
- }
45
- }
46
- return osRelease;
47
- }
48
- function getLinuxDistributionInfoSync() {
49
- if (process.platform !== 'linux') return undefined;
50
- if (!osRelease && !didFailToReadOSRelease) {
51
- try {
52
- var _fields$get3, _fields$get4;
53
- // List of /etc/os-release values for different distributions could be
54
- // found here: https://gist.github.com/aslushnikov/8ceddb8288e4cf9db3039c02e0f4fb75
55
- const osReleaseText = _fs.default.readFileSync('/etc/os-release', 'utf8');
56
- const fields = parseOSReleaseText(osReleaseText);
57
- osRelease = {
58
- id: (_fields$get3 = fields.get('id')) !== null && _fields$get3 !== void 0 ? _fields$get3 : '',
59
- version: (_fields$get4 = fields.get('version_id')) !== null && _fields$get4 !== void 0 ? _fields$get4 : ''
60
- };
61
- } catch (e) {
62
- didFailToReadOSRelease = true;
63
- }
64
- }
65
- return osRelease;
66
- }
67
- function parseOSReleaseText(osReleaseText) {
68
- const fields = new Map();
69
- for (const line of osReleaseText.split('\n')) {
70
- const tokens = line.split('=');
71
- const name = tokens.shift();
72
- let value = tokens.join('=').trim();
73
- if (value.startsWith('"') && value.endsWith('"')) value = value.substring(1, value.length - 1);
74
- if (!name) continue;
75
- fields.set(name.toLowerCase(), value);
76
- }
77
- return fields;
78
- }
@@ -1,109 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ManualPromise = exports.LongStandingScope = void 0;
7
- var _stackTrace = require("./stackTrace");
8
- let _Symbol$species, _Symbol$toStringTag;
9
- /**
10
- * Copyright (c) Microsoft Corporation.
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
- _Symbol$species = Symbol.species;
25
- _Symbol$toStringTag = Symbol.toStringTag;
26
- class ManualPromise extends Promise {
27
- constructor() {
28
- let resolve;
29
- let reject;
30
- super((f, r) => {
31
- resolve = f;
32
- reject = r;
33
- });
34
- this._resolve = void 0;
35
- this._reject = void 0;
36
- this._isDone = void 0;
37
- this._isDone = false;
38
- this._resolve = resolve;
39
- this._reject = reject;
40
- }
41
- isDone() {
42
- return this._isDone;
43
- }
44
- resolve(t) {
45
- this._isDone = true;
46
- this._resolve(t);
47
- }
48
- reject(e) {
49
- this._isDone = true;
50
- this._reject(e);
51
- }
52
- static get [_Symbol$species]() {
53
- return Promise;
54
- }
55
- get [_Symbol$toStringTag]() {
56
- return 'ManualPromise';
57
- }
58
- }
59
- exports.ManualPromise = ManualPromise;
60
- class LongStandingScope {
61
- constructor() {
62
- this._terminateError = void 0;
63
- this._closeError = void 0;
64
- this._terminatePromises = new Map();
65
- this._isClosed = false;
66
- }
67
- reject(error) {
68
- this._isClosed = true;
69
- this._terminateError = error;
70
- for (const p of this._terminatePromises.keys()) p.resolve(error);
71
- }
72
- close(error) {
73
- this._isClosed = true;
74
- this._closeError = error;
75
- for (const [p, frames] of this._terminatePromises) p.resolve(cloneError(error, frames));
76
- }
77
- isClosed() {
78
- return this._isClosed;
79
- }
80
- static async raceMultiple(scopes, promise) {
81
- return Promise.race(scopes.map(s => s.race(promise)));
82
- }
83
- async race(promise) {
84
- return this._race(Array.isArray(promise) ? promise : [promise], false);
85
- }
86
- async safeRace(promise, defaultValue) {
87
- return this._race([promise], true, defaultValue);
88
- }
89
- async _race(promises, safe, defaultValue) {
90
- const terminatePromise = new ManualPromise();
91
- const frames = (0, _stackTrace.captureRawStack)();
92
- if (this._terminateError) terminatePromise.resolve(this._terminateError);
93
- if (this._closeError) terminatePromise.resolve(cloneError(this._closeError, frames));
94
- this._terminatePromises.set(terminatePromise, frames);
95
- try {
96
- return await Promise.race([terminatePromise.then(e => safe ? defaultValue : Promise.reject(e)), ...promises]);
97
- } finally {
98
- this._terminatePromises.delete(terminatePromise);
99
- }
100
- }
101
- }
102
- exports.LongStandingScope = LongStandingScope;
103
- function cloneError(error, frames) {
104
- const clone = new Error();
105
- clone.name = error.name;
106
- clone.message = error.message;
107
- clone.stack = [error.name + ':' + error.message, ...frames].join('\n');
108
- return clone;
109
- }
@@ -1,75 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.MultiMap = void 0;
7
- let _Symbol$iterator;
8
- _Symbol$iterator = Symbol.iterator;
9
- /**
10
- * Copyright (c) Microsoft Corporation.
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the "License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
-
25
- class MultiMap {
26
- constructor() {
27
- this._map = void 0;
28
- this._map = new Map();
29
- }
30
- set(key, value) {
31
- let values = this._map.get(key);
32
- if (!values) {
33
- values = [];
34
- this._map.set(key, values);
35
- }
36
- values.push(value);
37
- }
38
- get(key) {
39
- return this._map.get(key) || [];
40
- }
41
- has(key) {
42
- return this._map.has(key);
43
- }
44
- delete(key, value) {
45
- const values = this._map.get(key);
46
- if (!values) return;
47
- if (values.includes(value)) this._map.set(key, values.filter(v => value !== v));
48
- }
49
- deleteAll(key) {
50
- this._map.delete(key);
51
- }
52
- hasValue(key, value) {
53
- const values = this._map.get(key);
54
- if (!values) return false;
55
- return values.includes(value);
56
- }
57
- get size() {
58
- return this._map.size;
59
- }
60
- [_Symbol$iterator]() {
61
- return this._map[Symbol.iterator]();
62
- }
63
- keys() {
64
- return this._map.keys();
65
- }
66
- values() {
67
- const result = [];
68
- for (const key of this.keys()) result.push(...this.get(key));
69
- return result;
70
- }
71
- clear() {
72
- this._map.clear();
73
- }
74
- }
75
- exports.MultiMap = MultiMap;