testeranto 0.203.0 → 0.205.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 (1145) hide show
  1. package/.vscode/settings.json +1 -0
  2. package/Dockerfile.golang +14 -0
  3. package/Dockerfile.mothership +11 -0
  4. package/Dockerfile.node +9 -0
  5. package/Dockerfile.python +19 -0
  6. package/Dockerfile.web +9 -0
  7. package/README.md +3 -1
  8. package/bundle.js +2 -11
  9. package/dist/cjs-shim.js +14 -0
  10. package/dist/common/design-editor/DesignEditor.js +77 -0
  11. package/dist/common/design-editor/index.js +18 -0
  12. package/dist/common/design-editor/server.js +98 -0
  13. package/dist/common/design-editor/types.js +2 -0
  14. package/dist/common/example/Calculator.js +105 -0
  15. package/dist/common/example/Calculator.test.adapter.js +39 -0
  16. package/dist/common/example/Calculator.test.implementation.js +50 -0
  17. package/dist/common/example/Calculator.test.js +11 -0
  18. package/dist/common/example/Calculator.test.specification.js +92 -0
  19. package/dist/common/example/Calculator.test.types.js +3 -0
  20. package/dist/common/package.json +3 -0
  21. package/dist/common/scripts/build-example.js +105 -0
  22. package/dist/common/src/CoreTypes.js +2 -0
  23. package/dist/common/src/Helpo.js +55 -0
  24. package/dist/common/src/Init.js +56 -0
  25. package/dist/common/src/Node.js +39 -0
  26. package/dist/common/src/NodeSidecar.js +15 -0
  27. package/dist/common/src/PM/__tests__/nodeSidecar.testeranto.js +108 -0
  28. package/dist/common/src/PM/__tests__/pureSidecar.testeranto.js +93 -0
  29. package/dist/common/src/PM/__tests__/webSidecar.testeranto.js +93 -0
  30. package/dist/common/src/PM/golingvuBuild.js +46 -0
  31. package/dist/common/src/PM/index.js +6 -0
  32. package/dist/common/src/PM/node.js +179 -0
  33. package/dist/common/src/PM/nodeSidecar.js +65 -0
  34. package/dist/common/src/PM/pitonoBuild.js +46 -0
  35. package/dist/common/src/PM/pitonoRunner.js +54 -0
  36. package/dist/common/src/PM/pure.js +103 -0
  37. package/dist/common/src/PM/pureSidecar.js +48 -0
  38. package/dist/common/src/PM/sidecar.js +11 -0
  39. package/dist/common/src/PM/types.js +2 -0
  40. package/dist/common/src/PM/utils.js +217 -0
  41. package/dist/common/src/PM/web.js +102 -0
  42. package/dist/common/src/PM/webSidecar.js +47 -0
  43. package/dist/common/src/Pure.js +38 -0
  44. package/dist/common/src/Pure.test.js +175 -0
  45. package/dist/common/src/PureSidecar.js +13 -0
  46. package/dist/common/src/Types.js +2 -0
  47. package/dist/common/src/Web.js +27 -0
  48. package/dist/common/src/WebSidecar.js +13 -0
  49. package/dist/common/src/app/FileService.js +25 -0
  50. package/dist/common/src/app/api.js +73 -0
  51. package/dist/common/src/app/backend/PM_0.js +317 -0
  52. package/dist/common/src/app/backend/PM_1_WithProcesses.js +922 -0
  53. package/dist/common/src/app/backend/PM_2_WithTCP.js +244 -0
  54. package/dist/common/src/app/backend/PM_WithBuild.js +120 -0
  55. package/dist/common/src/app/backend/PM_WithEslintAndTsc.js +133 -0
  56. package/dist/common/src/app/backend/PM_WithGit.js +586 -0
  57. package/dist/common/src/app/backend/PM_WithHelpo.js +257 -0
  58. package/dist/common/src/app/backend/PM_WithProcesses.js +1083 -0
  59. package/dist/common/src/app/backend/PM_WithTCP.js +388 -0
  60. package/dist/common/src/app/backend/getAllFilesRecursively.js +22 -0
  61. package/dist/common/src/app/backend/main.js +804 -0
  62. package/dist/common/src/app/backend/makePrompt.js +73 -0
  63. package/dist/common/src/app/backend/utils.js +144 -0
  64. package/dist/common/src/app/frontend/App.js +206 -0
  65. package/dist/common/src/app/frontend/DevelopmentFileService.js +98 -0
  66. package/dist/common/src/app/frontend/GitFileService.js +262 -0
  67. package/dist/common/src/app/frontend/GitHubAuthService.js +184 -0
  68. package/dist/common/src/app/frontend/api.js +93 -0
  69. package/dist/common/src/app/frontend/components/DesignEditorPage.js +208 -0
  70. package/dist/common/src/app/frontend/components/SunriseAnimation.js +291 -0
  71. package/dist/common/src/app/frontend/components/SunriseAnimation.test/implementation.js +1 -0
  72. package/dist/common/src/app/frontend/components/SunriseAnimation.test/index.js +1 -0
  73. package/dist/common/src/app/frontend/components/SunriseAnimation.test/interface.js +68 -0
  74. package/dist/common/src/app/frontend/components/SunriseAnimation.test/specification.js +1 -0
  75. package/dist/common/src/app/frontend/components/SunriseAnimation.test/types.js +2 -0
  76. package/dist/common/src/app/frontend/components/TestStatusBadge.js +35 -0
  77. package/dist/common/src/app/frontend/components/pure/AppFrame.js +177 -0
  78. package/dist/common/src/app/frontend/components/pure/AppFrame.test/implementation.js +63 -0
  79. package/dist/common/src/app/frontend/components/pure/AppFrame.test/index.js +14 -0
  80. package/dist/common/src/app/frontend/components/pure/AppFrame.test/specification.js +25 -0
  81. package/dist/common/src/app/frontend/components/pure/AppFrame.test/types.js +3 -0
  82. package/dist/common/src/app/frontend/components/pure/ArtifactTree.js +80 -0
  83. package/dist/common/src/app/frontend/components/pure/BuildLogViewer.js +106 -0
  84. package/dist/common/src/app/frontend/components/pure/DebugEnv.js +30 -0
  85. package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.js +23 -0
  86. package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/implementation.js +84 -0
  87. package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/index.js +14 -0
  88. package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/specification.js +27 -0
  89. package/dist/common/src/app/frontend/components/pure/FeaturesReporterView.test/types.js +2 -0
  90. package/dist/common/src/app/frontend/components/pure/FileTree.js +34 -0
  91. package/dist/common/src/app/frontend/components/pure/FileTreeItem.js +29 -0
  92. package/dist/common/src/app/frontend/components/pure/GitHubLoginButton.js +18 -0
  93. package/dist/common/src/app/frontend/components/pure/GitIntegrationView.js +383 -0
  94. package/dist/common/src/app/frontend/components/pure/HelpoChatDrawer.js +179 -0
  95. package/dist/common/src/app/frontend/components/pure/MagicRobotModal.js +73 -0
  96. package/dist/common/src/app/frontend/components/pure/ModalContent.js +86 -0
  97. package/dist/common/src/app/frontend/components/pure/ModalContent.test/implementation.js +35 -0
  98. package/dist/common/src/app/frontend/components/pure/ModalContent.test/index.js +61 -0
  99. package/dist/common/src/app/frontend/components/pure/ModalContent.test/specification.js +19 -0
  100. package/dist/common/src/app/frontend/components/pure/ModalContent.test/types.js +4 -0
  101. package/dist/common/src/app/frontend/components/pure/NavBar.js +45 -0
  102. package/dist/common/src/app/frontend/components/pure/ProcessDetails.js +49 -0
  103. package/dist/common/src/app/frontend/components/pure/ProcessInput.js +62 -0
  104. package/dist/common/src/app/frontend/components/pure/ProcessList.js +52 -0
  105. package/dist/common/src/app/frontend/components/pure/ProcessLogs.js +67 -0
  106. package/dist/common/src/app/frontend/components/pure/ProcessManager.js +113 -0
  107. package/dist/common/src/app/frontend/components/pure/ProcessManagerView.js +82 -0
  108. package/dist/common/src/app/frontend/components/pure/ProcessManagerViewTypes.js +2 -0
  109. package/dist/common/src/app/frontend/components/pure/ProcessSidebar.js +56 -0
  110. package/dist/common/src/app/frontend/components/pure/ProcessTerminal.js +62 -0
  111. package/dist/common/src/app/frontend/components/pure/ProjectPageView.js +69 -0
  112. package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/implementation.js +185 -0
  113. package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/index.js +14 -0
  114. package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/specification.js +32 -0
  115. package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/types.js +4 -0
  116. package/dist/common/src/app/frontend/components/pure/ProjectsPageView.js +72 -0
  117. package/dist/common/src/app/frontend/components/pure/Settings.js +122 -0
  118. package/dist/common/src/app/frontend/components/pure/Settings.test.js +30 -0
  119. package/dist/common/src/app/frontend/components/pure/SettingsButton.js +13 -0
  120. package/dist/common/src/app/frontend/components/pure/SignIn.js +22 -0
  121. package/dist/common/src/app/frontend/components/pure/SingleProcessView.js +126 -0
  122. package/dist/common/src/app/frontend/components/pure/TerminalInput.js +76 -0
  123. package/dist/common/src/app/frontend/components/pure/TerminalLogs.js +80 -0
  124. package/dist/common/src/app/frontend/components/pure/TestTable.js +33 -0
  125. package/dist/common/src/app/frontend/components/pure/ThemeCard.js +15 -0
  126. package/dist/common/src/app/frontend/components/pure/ToastNotification.js +14 -0
  127. package/dist/common/src/app/frontend/components/pure/UserProfile.js +27 -0
  128. package/dist/common/src/app/frontend/components/stateful/AuthCallbackPage.js +51 -0
  129. package/dist/common/src/app/frontend/components/stateful/DratoPage.js +319 -0
  130. package/dist/common/src/app/frontend/components/stateful/FeaturesReporter.js +22 -0
  131. package/dist/common/src/app/frontend/components/stateful/FileTree.js +59 -0
  132. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.js +51 -0
  133. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.js +152 -0
  134. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.js +156 -0
  135. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.js +169 -0
  136. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.js +30 -0
  137. package/dist/common/src/app/frontend/components/stateful/GenericXMLEditorPage.js +306 -0
  138. package/dist/common/src/app/frontend/components/stateful/GitIntegrationPage.js +252 -0
  139. package/dist/common/src/app/frontend/components/stateful/GrafeoPage.js +437 -0
  140. package/dist/common/src/app/frontend/components/stateful/ProcessManagerPage.js +113 -0
  141. package/dist/common/src/app/frontend/components/stateful/ProjectPage.js +108 -0
  142. package/dist/common/src/app/frontend/components/stateful/ProjectsPage.js +136 -0
  143. package/dist/common/src/app/frontend/components/stateful/SVGEditor/CircleForm.js +24 -0
  144. package/dist/common/src/app/frontend/components/stateful/SVGEditor/GroupForm.js +22 -0
  145. package/dist/common/src/app/frontend/components/stateful/SVGEditor/RectForm.js +25 -0
  146. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.js +15 -0
  147. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.js +87 -0
  148. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.js +23 -0
  149. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.js +23 -0
  150. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGPreview.js +178 -0
  151. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.js +155 -0
  152. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTree.js +105 -0
  153. package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTypes.js +2 -0
  154. package/dist/common/src/app/frontend/components/stateful/SVGEditorPage.js +437 -0
  155. package/dist/common/src/app/frontend/components/stateful/SettingsPage.js +72 -0
  156. package/dist/common/src/app/frontend/components/stateful/SingleProcessPage.js +134 -0
  157. package/dist/common/src/app/frontend/components/stateful/SkriboPage.js +517 -0
  158. package/dist/common/src/app/frontend/components/stateful/TextEditorPage.js +154 -0
  159. package/dist/common/src/app/frontend/fetchDataUtil.js +187 -0
  160. package/dist/common/src/app/frontend/flua/FluaPage.js +378 -0
  161. package/dist/common/src/app/frontend/testPage/ITestPageViewProps.js +2 -0
  162. package/dist/common/src/app/frontend/testPage/ProjectsTree.js +179 -0
  163. package/dist/common/src/app/frontend/testPage/TestPage.js +85 -0
  164. package/dist/common/src/app/frontend/testPage/TestPageLeftContent.js +48 -0
  165. package/dist/common/src/app/frontend/testPage/TestPageMainContent.js +82 -0
  166. package/dist/common/src/app/frontend/testPage/TestPageNavbar.js +33 -0
  167. package/dist/common/src/app/frontend/testPage/TestPageView.js +352 -0
  168. package/dist/common/src/app/frontend/testPage/TestPageView.test/implementation.js +158 -0
  169. package/dist/common/src/app/frontend/testPage/TestPageView.test/index.js +15 -0
  170. package/dist/common/src/app/frontend/testPage/TestPageView.test/specification.js +27 -0
  171. package/dist/common/src/app/frontend/testPage/TestPageView.test/types.js +4 -0
  172. package/dist/common/src/app/frontend/testPage/TestPageView_utils.js +128 -0
  173. package/dist/common/src/app/frontend/useFileSystemSync.js +108 -0
  174. package/dist/common/src/app/frontend/useFs.js +15 -0
  175. package/dist/common/src/app/frontend/useGitMode.js +20 -0
  176. package/dist/common/src/app/frontend/useTerminalWebSocket.js +44 -0
  177. package/dist/common/src/app/frontend/useWebSocket.js +16 -0
  178. package/dist/common/src/app/types.js +2 -0
  179. package/dist/common/src/builders/golang.js +30 -0
  180. package/dist/common/src/builders/node.js +35 -0
  181. package/dist/common/src/builders/python.js +28 -0
  182. package/dist/common/src/builders/web.js +35 -0
  183. package/dist/common/src/defaultConfig.js +19 -0
  184. package/dist/common/src/esbuildConfigs/consoleDetectorPlugin.js +38 -0
  185. package/dist/common/src/esbuildConfigs/eslint-formatter-testeranto.js +21 -0
  186. package/dist/common/src/esbuildConfigs/featuresPlugin.js +39 -0
  187. package/dist/common/src/esbuildConfigs/index.js +21 -0
  188. package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +30 -0
  189. package/dist/common/src/esbuildConfigs/nativeImportDetectorPlugin.js +24 -0
  190. package/dist/common/src/esbuildConfigs/node.js +26 -0
  191. package/dist/common/src/esbuildConfigs/pure.js +42 -0
  192. package/dist/common/src/esbuildConfigs/rebuildPlugin.js +19 -0
  193. package/dist/common/src/esbuildConfigs/web.js +48 -0
  194. package/dist/common/src/init-docs.js +9 -0
  195. package/dist/common/src/lib/BaseGiven.js +176 -0
  196. package/dist/common/src/lib/BaseSuite.js +138 -0
  197. package/dist/common/src/lib/BaseSuite.test/mock.js +68 -0
  198. package/dist/common/src/lib/BaseSuite.test/node.test.js +10 -0
  199. package/dist/common/src/lib/BaseSuite.test/pure.test.js +10 -0
  200. package/dist/common/src/lib/BaseSuite.test/test.js +184 -0
  201. package/dist/common/src/lib/BaseSuite.test/web.test.js +10 -0
  202. package/dist/common/src/lib/BaseThen.js +63 -0
  203. package/dist/common/src/lib/BaseWhen.js +47 -0
  204. package/dist/common/src/lib/Sidecar.js +7 -0
  205. package/dist/common/src/lib/Tiposkripto.js +188 -0
  206. package/dist/common/src/lib/Tiposkripto.test/MockTiposkripto.js +170 -0
  207. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.adapter.js +29 -0
  208. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +215 -0
  209. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.js +11 -0
  210. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.specification.js +53 -0
  211. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.types.js +2 -0
  212. package/dist/common/src/lib/abstractBase.test/MockGiven.js +24 -0
  213. package/dist/common/src/lib/abstractBase.test/MockThen.js +16 -0
  214. package/dist/common/src/lib/abstractBase.test/MockWhen.js +20 -0
  215. package/dist/common/src/lib/abstractBase.test/adapter.js +24 -0
  216. package/dist/common/src/lib/abstractBase.test/implementation.js +38 -0
  217. package/dist/common/src/lib/abstractBase.test/index.js +18 -0
  218. package/dist/common/src/lib/abstractBase.test/specification.js +19 -0
  219. package/dist/common/src/lib/abstractBase.test/types.js +2 -0
  220. package/dist/common/src/lib/index.js +31 -0
  221. package/dist/common/src/lib/pmProxy.js +260 -0
  222. package/dist/common/src/lib/pmProxy.test/adapter.js +54 -0
  223. package/dist/common/src/lib/pmProxy.test/implementation.js +130 -0
  224. package/dist/common/src/lib/pmProxy.test/index.js +13 -0
  225. package/dist/common/src/lib/pmProxy.test/mockPM.js +35 -0
  226. package/dist/common/src/lib/pmProxy.test/mockPMBase.js +131 -0
  227. package/dist/common/src/lib/pmProxy.test/specification.js +178 -0
  228. package/dist/common/src/lib/pmProxy.test/types.js +2 -0
  229. package/dist/common/src/lib/types.js +3 -0
  230. package/dist/common/src/mothership/index.js +183 -0
  231. package/dist/common/src/mothership/test.js +85 -0
  232. package/dist/common/src/run.js +49 -0
  233. package/dist/common/src/testeranto.js +223 -0
  234. package/dist/common/src/utils/buildTemplates.js +37 -0
  235. package/dist/common/src/utils/generateGolingvuMetafile.js +157 -0
  236. package/dist/common/src/utils/golingvuMetafile/fileDiscovery.js +142 -0
  237. package/dist/common/src/utils/golingvuMetafile/goList.js +103 -0
  238. package/dist/common/src/utils/golingvuMetafile/helpers.js +68 -0
  239. package/dist/common/src/utils/golingvuMetafile/importParser.js +89 -0
  240. package/dist/common/src/utils/golingvuMetafile/types.js +3 -0
  241. package/dist/common/src/utils/golingvuMetafile.js +9 -0
  242. package/dist/common/src/utils/golingvuWatcher.js +233 -0
  243. package/dist/common/src/utils/logFiles.js +60 -0
  244. package/dist/common/src/utils/pitonoMetafile.js +247 -0
  245. package/dist/common/src/utils/pitonoWatcher.js +130 -0
  246. package/dist/common/src/utils/queue.js +36 -0
  247. package/dist/common/src/utils/writeGolingvuMetafile.js +324 -0
  248. package/dist/common/src/web.html.js +18 -0
  249. package/dist/common/testeranto.config.js +91 -0
  250. package/dist/common/tsconfig.common.tsbuildinfo +1 -0
  251. package/dist/module/design-editor/DesignEditor.js +40 -0
  252. package/dist/module/design-editor/index.js +2 -0
  253. package/dist/module/design-editor/server.js +92 -0
  254. package/dist/module/design-editor/types.js +1 -0
  255. package/dist/module/example/Calculator.js +101 -0
  256. package/dist/module/example/Calculator.test.adapter.js +36 -0
  257. package/dist/module/example/Calculator.test.implementation.js +47 -0
  258. package/dist/module/example/Calculator.test.js +6 -0
  259. package/dist/module/example/Calculator.test.specification.js +88 -0
  260. package/dist/module/example/Calculator.test.types.js +2 -0
  261. package/dist/module/package.json +3 -0
  262. package/dist/module/scripts/build-example.js +100 -0
  263. package/dist/module/src/CoreTypes.js +1 -0
  264. package/dist/module/src/Helpo.js +48 -0
  265. package/dist/module/src/Init.js +51 -0
  266. package/dist/module/src/Node.js +32 -0
  267. package/dist/module/src/NodeSidecar.js +11 -0
  268. package/dist/module/src/PM/__tests__/nodeSidecar.testeranto.js +103 -0
  269. package/dist/module/src/PM/__tests__/pureSidecar.testeranto.js +88 -0
  270. package/dist/module/src/PM/__tests__/webSidecar.testeranto.js +88 -0
  271. package/dist/module/src/PM/golingvuBuild.js +42 -0
  272. package/dist/module/src/PM/index.js +2 -0
  273. package/dist/module/src/PM/node.js +172 -0
  274. package/dist/module/src/PM/nodeSidecar.js +58 -0
  275. package/dist/module/src/PM/pitonoBuild.js +42 -0
  276. package/dist/module/src/PM/pitonoRunner.js +47 -0
  277. package/dist/module/src/PM/pure.js +99 -0
  278. package/dist/module/src/PM/pureSidecar.js +41 -0
  279. package/dist/module/src/PM/sidecar.js +7 -0
  280. package/dist/module/src/PM/types.js +1 -0
  281. package/dist/module/src/PM/utils.js +203 -0
  282. package/dist/module/src/PM/web.js +98 -0
  283. package/dist/module/src/PM/webSidecar.js +40 -0
  284. package/dist/module/src/Pure.js +31 -0
  285. package/dist/module/src/Pure.test.js +170 -0
  286. package/dist/module/src/PureSidecar.js +9 -0
  287. package/dist/module/src/Types.js +1 -0
  288. package/dist/module/src/Web.js +20 -0
  289. package/dist/module/src/WebSidecar.js +9 -0
  290. package/dist/module/src/app/FileService.js +21 -0
  291. package/dist/module/src/app/api.js +70 -0
  292. package/dist/module/src/app/backend/PM_0.js +310 -0
  293. package/dist/module/src/app/backend/PM_1_WithProcesses.js +882 -0
  294. package/dist/module/src/app/backend/PM_2_WithTCP.js +237 -0
  295. package/dist/module/src/app/backend/PM_WithBuild.js +113 -0
  296. package/dist/module/src/app/backend/PM_WithEslintAndTsc.js +126 -0
  297. package/dist/module/src/app/backend/PM_WithGit.js +546 -0
  298. package/dist/module/src/app/backend/PM_WithHelpo.js +250 -0
  299. package/dist/module/src/app/backend/PM_WithProcesses.js +1083 -0
  300. package/dist/module/src/app/backend/PM_WithTCP.js +381 -0
  301. package/dist/module/src/app/backend/getAllFilesRecursively.js +16 -0
  302. package/dist/module/src/app/backend/main.js +764 -0
  303. package/dist/module/src/app/backend/makePrompt.js +66 -0
  304. package/dist/module/src/app/backend/utils.js +131 -0
  305. package/dist/module/src/app/frontend/App.js +164 -0
  306. package/dist/module/src/app/frontend/DevelopmentFileService.js +91 -0
  307. package/dist/module/src/app/frontend/GitFileService.js +258 -0
  308. package/dist/module/src/app/frontend/GitHubAuthService.js +180 -0
  309. package/dist/module/src/app/frontend/api.js +87 -0
  310. package/dist/module/src/app/frontend/components/DesignEditorPage.js +171 -0
  311. package/dist/module/src/app/frontend/components/SunriseAnimation.js +256 -0
  312. package/dist/module/src/app/frontend/components/SunriseAnimation.test/implementation.js +1 -0
  313. package/dist/module/src/app/frontend/components/SunriseAnimation.test/index.js +1 -0
  314. package/dist/module/src/app/frontend/components/SunriseAnimation.test/interface.js +32 -0
  315. package/dist/module/src/app/frontend/components/SunriseAnimation.test/specification.js +1 -0
  316. package/dist/module/src/app/frontend/components/SunriseAnimation.test/types.js +1 -0
  317. package/dist/module/src/app/frontend/components/TestStatusBadge.js +28 -0
  318. package/dist/module/src/app/frontend/components/pure/AppFrame.js +140 -0
  319. package/dist/module/src/app/frontend/components/pure/AppFrame.test/implementation.js +57 -0
  320. package/dist/module/src/app/frontend/components/pure/AppFrame.test/index.js +9 -0
  321. package/dist/module/src/app/frontend/components/pure/AppFrame.test/specification.js +21 -0
  322. package/dist/module/src/app/frontend/components/pure/AppFrame.test/types.js +2 -0
  323. package/dist/module/src/app/frontend/components/pure/ArtifactTree.js +80 -0
  324. package/dist/module/src/app/frontend/components/pure/BuildLogViewer.js +99 -0
  325. package/dist/module/src/app/frontend/components/pure/DebugEnv.js +23 -0
  326. package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.js +16 -0
  327. package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/implementation.js +81 -0
  328. package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/index.js +9 -0
  329. package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/specification.js +23 -0
  330. package/dist/module/src/app/frontend/components/pure/FeaturesReporterView.test/types.js +1 -0
  331. package/dist/module/src/app/frontend/components/pure/FileTree.js +27 -0
  332. package/dist/module/src/app/frontend/components/pure/FileTreeItem.js +22 -0
  333. package/dist/module/src/app/frontend/components/pure/GitHubLoginButton.js +11 -0
  334. package/dist/module/src/app/frontend/components/pure/GitIntegrationView.js +346 -0
  335. package/dist/module/src/app/frontend/components/pure/HelpoChatDrawer.js +142 -0
  336. package/dist/module/src/app/frontend/components/pure/MagicRobotModal.js +66 -0
  337. package/dist/module/src/app/frontend/components/pure/ModalContent.js +79 -0
  338. package/dist/module/src/app/frontend/components/pure/ModalContent.test/implementation.js +32 -0
  339. package/dist/module/src/app/frontend/components/pure/ModalContent.test/index.js +56 -0
  340. package/dist/module/src/app/frontend/components/pure/ModalContent.test/specification.js +15 -0
  341. package/dist/module/src/app/frontend/components/pure/ModalContent.test/types.js +3 -0
  342. package/dist/module/src/app/frontend/components/pure/NavBar.js +38 -0
  343. package/dist/module/src/app/frontend/components/pure/ProcessDetails.js +42 -0
  344. package/dist/module/src/app/frontend/components/pure/ProcessInput.js +25 -0
  345. package/dist/module/src/app/frontend/components/pure/ProcessList.js +45 -0
  346. package/dist/module/src/app/frontend/components/pure/ProcessLogs.js +30 -0
  347. package/dist/module/src/app/frontend/components/pure/ProcessManager.js +76 -0
  348. package/dist/module/src/app/frontend/components/pure/ProcessManagerView.js +45 -0
  349. package/dist/module/src/app/frontend/components/pure/ProcessManagerViewTypes.js +1 -0
  350. package/dist/module/src/app/frontend/components/pure/ProcessSidebar.js +49 -0
  351. package/dist/module/src/app/frontend/components/pure/ProcessTerminal.js +25 -0
  352. package/dist/module/src/app/frontend/components/pure/ProjectPageView.js +62 -0
  353. package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/implementation.js +182 -0
  354. package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/index.js +9 -0
  355. package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/specification.js +28 -0
  356. package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/types.js +3 -0
  357. package/dist/module/src/app/frontend/components/pure/ProjectsPageView.js +65 -0
  358. package/dist/module/src/app/frontend/components/pure/Settings.js +85 -0
  359. package/dist/module/src/app/frontend/components/pure/Settings.test.js +30 -0
  360. package/dist/module/src/app/frontend/components/pure/SettingsButton.js +6 -0
  361. package/dist/module/src/app/frontend/components/pure/SignIn.js +15 -0
  362. package/dist/module/src/app/frontend/components/pure/SingleProcessView.js +126 -0
  363. package/dist/module/src/app/frontend/components/pure/TerminalInput.js +39 -0
  364. package/dist/module/src/app/frontend/components/pure/TerminalLogs.js +43 -0
  365. package/dist/module/src/app/frontend/components/pure/TestTable.js +26 -0
  366. package/dist/module/src/app/frontend/components/pure/ThemeCard.js +8 -0
  367. package/dist/module/src/app/frontend/components/pure/ToastNotification.js +7 -0
  368. package/dist/module/src/app/frontend/components/pure/UserProfile.js +20 -0
  369. package/dist/module/src/app/frontend/components/stateful/AuthCallbackPage.js +14 -0
  370. package/dist/module/src/app/frontend/components/stateful/DratoPage.js +282 -0
  371. package/dist/module/src/app/frontend/components/stateful/FeaturesReporter.js +22 -0
  372. package/dist/module/src/app/frontend/components/stateful/FileTree.js +59 -0
  373. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.js +44 -0
  374. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.js +115 -0
  375. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.js +119 -0
  376. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.js +132 -0
  377. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.js +23 -0
  378. package/dist/module/src/app/frontend/components/stateful/GenericXMLEditorPage.js +269 -0
  379. package/dist/module/src/app/frontend/components/stateful/GitIntegrationPage.js +215 -0
  380. package/dist/module/src/app/frontend/components/stateful/GrafeoPage.js +400 -0
  381. package/dist/module/src/app/frontend/components/stateful/ProcessManagerPage.js +76 -0
  382. package/dist/module/src/app/frontend/components/stateful/ProjectPage.js +71 -0
  383. package/dist/module/src/app/frontend/components/stateful/ProjectsPage.js +99 -0
  384. package/dist/module/src/app/frontend/components/stateful/SVGEditor/CircleForm.js +17 -0
  385. package/dist/module/src/app/frontend/components/stateful/SVGEditor/GroupForm.js +15 -0
  386. package/dist/module/src/app/frontend/components/stateful/SVGEditor/RectForm.js +18 -0
  387. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.js +8 -0
  388. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.js +50 -0
  389. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.js +16 -0
  390. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.js +16 -0
  391. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGPreview.js +141 -0
  392. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.js +118 -0
  393. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTree.js +68 -0
  394. package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTypes.js +1 -0
  395. package/dist/module/src/app/frontend/components/stateful/SVGEditorPage.js +400 -0
  396. package/dist/module/src/app/frontend/components/stateful/SettingsPage.js +35 -0
  397. package/dist/module/src/app/frontend/components/stateful/SingleProcessPage.js +134 -0
  398. package/dist/module/src/app/frontend/components/stateful/SkriboPage.js +510 -0
  399. package/dist/module/src/app/frontend/components/stateful/TextEditorPage.js +117 -0
  400. package/dist/module/src/app/frontend/fetchDataUtil.js +187 -0
  401. package/dist/module/src/app/frontend/flua/FluaPage.js +341 -0
  402. package/dist/module/src/app/frontend/testPage/ITestPageViewProps.js +1 -0
  403. package/dist/module/src/app/frontend/testPage/ProjectsTree.js +142 -0
  404. package/dist/module/src/app/frontend/testPage/TestPage.js +48 -0
  405. package/dist/module/src/app/frontend/testPage/TestPageLeftContent.js +11 -0
  406. package/dist/module/src/app/frontend/testPage/TestPageMainContent.js +75 -0
  407. package/dist/module/src/app/frontend/testPage/TestPageNavbar.js +26 -0
  408. package/dist/module/src/app/frontend/testPage/TestPageView.js +315 -0
  409. package/dist/module/src/app/frontend/testPage/TestPageView.test/implementation.js +122 -0
  410. package/dist/module/src/app/frontend/testPage/TestPageView.test/index.js +10 -0
  411. package/dist/module/src/app/frontend/testPage/TestPageView.test/specification.js +23 -0
  412. package/dist/module/src/app/frontend/testPage/TestPageView.test/types.js +3 -0
  413. package/dist/module/src/app/frontend/testPage/TestPageView_utils.js +120 -0
  414. package/dist/module/src/app/frontend/useFileSystemSync.js +108 -0
  415. package/dist/module/src/app/frontend/useFs.js +11 -0
  416. package/dist/module/src/app/frontend/useGitMode.js +16 -0
  417. package/dist/module/src/app/frontend/useTerminalWebSocket.js +40 -0
  418. package/dist/module/src/app/frontend/useWebSocket.js +12 -0
  419. package/dist/module/src/app/types.js +1 -0
  420. package/dist/module/src/builders/golang.js +28 -0
  421. package/dist/module/src/builders/node.js +33 -0
  422. package/dist/module/src/builders/python.js +26 -0
  423. package/dist/module/src/builders/web.js +33 -0
  424. package/dist/module/src/defaultConfig.js +17 -0
  425. package/dist/module/src/esbuildConfigs/consoleDetectorPlugin.js +32 -0
  426. package/dist/module/src/esbuildConfigs/eslint-formatter-testeranto.js +18 -0
  427. package/dist/module/src/esbuildConfigs/featuresPlugin.js +34 -0
  428. package/dist/module/src/esbuildConfigs/index.js +19 -0
  429. package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +25 -0
  430. package/dist/module/src/esbuildConfigs/nativeImportDetectorPlugin.js +21 -0
  431. package/dist/module/src/esbuildConfigs/node.js +21 -0
  432. package/dist/module/src/esbuildConfigs/pure.js +37 -0
  433. package/dist/module/src/esbuildConfigs/rebuildPlugin.js +14 -0
  434. package/dist/module/src/esbuildConfigs/web.js +43 -0
  435. package/dist/module/src/init-docs.js +4 -0
  436. package/dist/module/src/lib/BaseGiven.js +172 -0
  437. package/dist/module/src/lib/BaseSuite.js +134 -0
  438. package/dist/module/src/lib/BaseSuite.test/mock.js +61 -0
  439. package/dist/module/src/lib/BaseSuite.test/node.test.js +5 -0
  440. package/dist/module/src/lib/BaseSuite.test/pure.test.js +5 -0
  441. package/dist/module/src/lib/BaseSuite.test/test.js +180 -0
  442. package/dist/module/src/lib/BaseSuite.test/web.test.js +5 -0
  443. package/dist/module/src/lib/BaseThen.js +59 -0
  444. package/dist/module/src/lib/BaseWhen.js +43 -0
  445. package/dist/module/src/lib/Sidecar.js +3 -0
  446. package/dist/module/src/lib/Tiposkripto.js +185 -0
  447. package/dist/module/src/lib/Tiposkripto.test/MockTiposkripto.js +163 -0
  448. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.adapter.js +26 -0
  449. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +212 -0
  450. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.js +6 -0
  451. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.specification.js +49 -0
  452. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.types.js +1 -0
  453. package/dist/module/src/lib/abstractBase.test/MockGiven.js +20 -0
  454. package/dist/module/src/lib/abstractBase.test/MockThen.js +12 -0
  455. package/dist/module/src/lib/abstractBase.test/MockWhen.js +16 -0
  456. package/dist/module/src/lib/abstractBase.test/adapter.js +21 -0
  457. package/dist/module/src/lib/abstractBase.test/implementation.js +35 -0
  458. package/dist/module/src/lib/abstractBase.test/index.js +13 -0
  459. package/dist/module/src/lib/abstractBase.test/specification.js +15 -0
  460. package/dist/module/src/lib/abstractBase.test/types.js +1 -0
  461. package/dist/module/src/lib/index.js +26 -0
  462. package/dist/module/src/lib/pmProxy.js +251 -0
  463. package/dist/module/src/lib/pmProxy.test/adapter.js +51 -0
  464. package/dist/module/src/lib/pmProxy.test/implementation.js +127 -0
  465. package/dist/module/src/lib/pmProxy.test/index.js +8 -0
  466. package/dist/module/src/lib/pmProxy.test/mockPM.js +31 -0
  467. package/dist/module/src/lib/pmProxy.test/mockPMBase.js +127 -0
  468. package/dist/module/src/lib/pmProxy.test/specification.js +174 -0
  469. package/dist/module/src/lib/pmProxy.test/types.js +1 -0
  470. package/dist/module/src/lib/types.js +2 -0
  471. package/dist/module/src/mothership/index.js +178 -0
  472. package/dist/module/src/mothership/test.js +80 -0
  473. package/dist/module/src/run.js +49 -0
  474. package/dist/module/src/testeranto.js +185 -0
  475. package/dist/module/src/utils/buildTemplates.js +33 -0
  476. package/dist/module/src/utils/generateGolingvuMetafile.js +151 -0
  477. package/dist/module/src/utils/golingvuMetafile/fileDiscovery.js +136 -0
  478. package/dist/module/src/utils/golingvuMetafile/goList.js +97 -0
  479. package/dist/module/src/utils/golingvuMetafile/helpers.js +59 -0
  480. package/dist/module/src/utils/golingvuMetafile/importParser.js +83 -0
  481. package/dist/module/src/utils/golingvuMetafile/types.js +2 -0
  482. package/dist/module/src/utils/golingvuMetafile.js +6 -0
  483. package/dist/module/src/utils/golingvuWatcher.js +226 -0
  484. package/dist/module/src/utils/logFiles.js +55 -0
  485. package/dist/module/src/utils/pitonoMetafile.js +240 -0
  486. package/dist/module/src/utils/pitonoWatcher.js +123 -0
  487. package/dist/module/src/utils/queue.js +32 -0
  488. package/dist/module/src/utils/writeGolingvuMetafile.js +318 -0
  489. package/dist/module/src/web.html.js +16 -0
  490. package/dist/module/testeranto.config.js +89 -0
  491. package/dist/module/tsconfig.module.tsbuildinfo +1 -0
  492. package/dist/prebuild/App.css +173 -173
  493. package/dist/prebuild/App.js +20450 -46037
  494. package/dist/prebuild/init-docs.mjs +9 -1
  495. package/dist/prebuild/testeranto.mjs +3051 -3418
  496. package/dist/types/design-editor/DesignEditor.d.ts +1 -0
  497. package/dist/types/src/CoreTypes.d.ts +52 -0
  498. package/dist/types/src/Helpo.d.ts +1 -0
  499. package/dist/types/src/Init.d.ts +2 -0
  500. package/dist/types/src/Node.d.ts +9 -0
  501. package/dist/types/src/NodeSidecar.d.ts +6 -0
  502. package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +2 -0
  503. package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +2 -0
  504. package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +2 -0
  505. package/dist/types/src/PM/golingvuBuild.d.ts +11 -0
  506. package/dist/types/src/PM/index.d.ts +35 -0
  507. package/dist/types/src/PM/node.d.ts +38 -0
  508. package/dist/types/src/PM/nodeSidecar.d.ts +13 -0
  509. package/dist/types/src/PM/pitonoBuild.d.ts +11 -0
  510. package/dist/types/src/PM/pitonoRunner.d.ts +7 -0
  511. package/dist/types/src/PM/pure.d.ts +41 -0
  512. package/dist/types/src/PM/pureSidecar.d.ts +11 -0
  513. package/dist/types/src/PM/sidecar.d.ts +8 -0
  514. package/dist/types/src/PM/types.d.ts +118 -0
  515. package/dist/types/src/PM/utils.d.ts +35 -0
  516. package/dist/types/src/PM/web.d.ts +41 -0
  517. package/dist/types/src/PM/webSidecar.d.ts +11 -0
  518. package/dist/types/src/Pure.d.ts +14 -0
  519. package/dist/types/src/Pure.test.d.ts +61 -0
  520. package/dist/types/src/PureSidecar.d.ts +8 -0
  521. package/dist/types/src/Types.d.ts +120 -0
  522. package/dist/types/src/Web.d.ts +9 -0
  523. package/dist/types/src/WebSidecar.d.ts +8 -0
  524. package/dist/types/src/app/FileService.d.ts +37 -0
  525. package/dist/types/src/app/api.d.ts +37 -0
  526. package/dist/types/src/app/backend/PM_0.d.ts +38 -0
  527. package/dist/types/src/app/backend/PM_1_WithProcesses.d.ts +149 -0
  528. package/dist/types/src/app/backend/PM_2_WithTCP.d.ts +29 -0
  529. package/dist/types/src/app/backend/PM_WithBuild.d.ts +8 -0
  530. package/dist/types/src/app/backend/PM_WithEslintAndTsc.d.ts +22 -0
  531. package/dist/types/src/app/backend/PM_WithGit.d.ts +24 -0
  532. package/dist/types/src/app/backend/PM_WithHelpo.d.ts +43 -0
  533. package/dist/types/src/app/backend/PM_WithTCP.d.ts +41 -0
  534. package/dist/types/src/app/backend/getAllFilesRecursively.d.ts +1 -0
  535. package/dist/types/src/app/backend/main.d.ts +15 -0
  536. package/dist/types/src/app/backend/makePrompt.d.ts +2 -0
  537. package/dist/types/src/app/backend/utils.d.ts +20 -0
  538. package/dist/types/src/app/frontend/App.d.ts +14 -0
  539. package/dist/types/src/app/frontend/DevelopmentFileService.d.ts +25 -0
  540. package/dist/types/src/app/frontend/GitFileService.d.ts +27 -0
  541. package/dist/types/src/app/frontend/GitHubAuthService.d.ts +32 -0
  542. package/dist/types/src/app/frontend/api.d.ts +10 -0
  543. package/dist/types/src/app/frontend/components/DesignEditorPage.d.ts +1 -0
  544. package/dist/types/src/app/frontend/components/SunriseAnimation.d.ts +5 -0
  545. package/dist/types/src/app/frontend/components/SunriseAnimation.test/interface.d.ts +11 -0
  546. package/dist/types/src/app/frontend/components/SunriseAnimation.test/types.d.ts +39 -0
  547. package/dist/types/src/app/frontend/components/TestStatusBadge.d.ts +15 -0
  548. package/dist/types/src/app/frontend/components/pure/AppFrame.d.ts +11 -0
  549. package/dist/types/src/app/frontend/components/pure/AppFrame.test/implementation.d.ts +3 -0
  550. package/dist/types/src/app/frontend/components/pure/AppFrame.test/index.d.ts +3 -0
  551. package/dist/types/src/app/frontend/components/pure/AppFrame.test/specification.d.ts +3 -0
  552. package/dist/types/src/app/frontend/components/pure/AppFrame.test/types.d.ts +33 -0
  553. package/dist/types/src/app/frontend/components/pure/BuildLogViewer.d.ts +7 -0
  554. package/dist/types/src/app/frontend/components/pure/DebugEnv.d.ts +2 -0
  555. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.d.ts +7 -0
  556. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/implementation.d.ts +3 -0
  557. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/index.d.ts +2 -0
  558. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/specification.d.ts +3 -0
  559. package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/types.d.ts +54 -0
  560. package/dist/types/src/app/frontend/components/pure/FileTree.d.ts +6 -0
  561. package/dist/types/src/app/frontend/components/pure/FileTreeItem.d.ts +8 -0
  562. package/dist/types/src/app/frontend/components/pure/GitHubLoginButton.d.ts +8 -0
  563. package/dist/types/src/app/frontend/components/pure/GitIntegrationView.d.ts +27 -0
  564. package/dist/types/src/app/frontend/components/pure/HelpoChatDrawer.d.ts +7 -0
  565. package/dist/types/src/app/frontend/components/pure/MagicRobotModal.d.ts +16 -0
  566. package/dist/types/src/app/frontend/components/pure/ModalContent.d.ts +7 -0
  567. package/dist/types/src/app/frontend/components/pure/ModalContent.test/implementation.d.ts +3 -0
  568. package/dist/types/src/app/frontend/components/pure/ModalContent.test/index.d.ts +14 -0
  569. package/dist/types/src/app/frontend/components/pure/ModalContent.test/specification.d.ts +3 -0
  570. package/dist/types/src/app/frontend/components/pure/ModalContent.test/types.d.ts +45 -0
  571. package/dist/types/src/app/frontend/components/pure/NavBar.d.ts +23 -0
  572. package/dist/types/src/app/frontend/components/pure/ProcessDetails.d.ts +8 -0
  573. package/dist/types/src/app/frontend/components/pure/ProcessInput.d.ts +10 -0
  574. package/dist/types/src/app/frontend/components/pure/ProcessList.d.ts +10 -0
  575. package/dist/types/src/app/frontend/components/pure/ProcessLogs.d.ts +6 -0
  576. package/dist/types/src/app/frontend/components/pure/ProcessManager.d.ts +8 -0
  577. package/dist/types/src/app/frontend/components/pure/ProcessManagerView.d.ts +10 -0
  578. package/dist/types/src/app/frontend/components/pure/ProcessManagerViewTypes.d.ts +10 -0
  579. package/dist/types/src/app/frontend/components/pure/ProcessSidebar.d.ts +8 -0
  580. package/dist/types/src/app/frontend/components/pure/ProcessTerminal.d.ts +8 -0
  581. package/dist/types/src/app/frontend/components/pure/ProjectPageView.d.ts +14 -0
  582. package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/implementation.d.ts +3 -0
  583. package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/index.d.ts +17 -0
  584. package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/specification.d.ts +3 -0
  585. package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/types.d.ts +57 -0
  586. package/dist/types/src/app/frontend/components/pure/ProjectsPageView.d.ts +29 -0
  587. package/dist/types/src/app/frontend/components/pure/Settings.d.ts +1 -0
  588. package/dist/types/src/app/frontend/components/pure/SettingsButton.d.ts +2 -0
  589. package/dist/types/src/app/frontend/components/pure/SignIn.d.ts +1 -0
  590. package/dist/types/src/app/frontend/components/pure/TerminalInput.d.ts +6 -0
  591. package/dist/types/src/app/frontend/components/pure/TerminalLogs.d.ts +6 -0
  592. package/dist/types/src/app/frontend/components/pure/TestTable.d.ts +16 -0
  593. package/dist/types/src/app/frontend/components/pure/ThemeCard.d.ts +9 -0
  594. package/dist/types/src/app/frontend/components/pure/ToastNotification.d.ts +6 -0
  595. package/dist/types/src/app/frontend/components/pure/UserProfile.d.ts +2 -0
  596. package/dist/types/src/app/frontend/components/stateful/AuthCallbackPage.d.ts +2 -0
  597. package/dist/types/src/app/frontend/components/stateful/DratoPage.d.ts +8 -0
  598. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.d.ts +9 -0
  599. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.d.ts +12 -0
  600. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.d.ts +11 -0
  601. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.d.ts +8 -0
  602. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.d.ts +17 -0
  603. package/dist/types/src/app/frontend/components/stateful/GenericXMLEditorPage.d.ts +21 -0
  604. package/dist/types/src/app/frontend/components/stateful/GitIntegrationPage.d.ts +1 -0
  605. package/dist/types/src/app/frontend/components/stateful/GrafeoPage.d.ts +8 -0
  606. package/dist/types/src/app/frontend/components/stateful/ProcessManagerPage.d.ts +2 -0
  607. package/dist/types/src/app/frontend/components/stateful/ProjectPage.d.ts +1 -0
  608. package/dist/types/src/app/frontend/components/stateful/ProjectsPage.d.ts +1 -0
  609. package/dist/types/src/app/frontend/components/stateful/SVGEditor/CircleForm.d.ts +8 -0
  610. package/dist/types/src/app/frontend/components/stateful/SVGEditor/GroupForm.d.ts +8 -0
  611. package/dist/types/src/app/frontend/components/stateful/SVGEditor/RectForm.d.ts +8 -0
  612. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.d.ts +9 -0
  613. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.d.ts +9 -0
  614. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.d.ts +9 -0
  615. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.d.ts +9 -0
  616. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGPreview.d.ts +12 -0
  617. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.d.ts +8 -0
  618. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTree.d.ts +20 -0
  619. package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTypes.d.ts +30 -0
  620. package/dist/types/src/app/frontend/components/stateful/SVGEditorPage.d.ts +7 -0
  621. package/dist/types/src/app/frontend/components/stateful/SettingsPage.d.ts +2 -0
  622. package/dist/types/src/app/frontend/components/stateful/SkriboPage.d.ts +1 -0
  623. package/dist/types/src/app/frontend/components/stateful/TextEditorPage.d.ts +1 -0
  624. package/dist/types/src/app/frontend/flua/FluaPage.d.ts +2 -0
  625. package/dist/types/src/app/frontend/testPage/ITestPageViewProps.d.ts +14 -0
  626. package/dist/types/src/app/frontend/testPage/ProjectsTree.d.ts +17 -0
  627. package/dist/types/src/app/frontend/testPage/TestPage.d.ts +1 -0
  628. package/dist/types/src/app/frontend/testPage/TestPageLeftContent.d.ts +14 -0
  629. package/dist/types/src/app/frontend/testPage/TestPageMainContent.d.ts +7 -0
  630. package/dist/types/src/app/frontend/testPage/TestPageNavbar.d.ts +7 -0
  631. package/dist/types/src/app/frontend/testPage/TestPageView.d.ts +2 -0
  632. package/dist/types/src/app/frontend/testPage/TestPageView.test/implementation.d.ts +13 -0
  633. package/dist/types/src/app/frontend/testPage/TestPageView.test/index.d.ts +13 -0
  634. package/dist/types/src/app/frontend/testPage/TestPageView.test/specification.d.ts +11 -0
  635. package/dist/types/src/app/frontend/testPage/TestPageView.test/types.d.ts +65 -0
  636. package/dist/types/src/app/frontend/testPage/TestPageView_utils.d.ts +23 -0
  637. package/dist/types/src/app/frontend/useFs.d.ts +2 -0
  638. package/dist/types/src/app/frontend/useGitMode.d.ts +7 -0
  639. package/dist/types/src/app/frontend/useTerminalWebSocket.d.ts +4 -0
  640. package/dist/types/src/app/frontend/useWebSocket.d.ts +8 -0
  641. package/dist/types/src/app/types.d.ts +1 -0
  642. package/dist/types/src/builders/golang.d.ts +1 -0
  643. package/dist/types/src/builders/node.d.ts +1 -0
  644. package/dist/types/src/builders/python.d.ts +1 -0
  645. package/dist/types/src/builders/web.d.ts +1 -0
  646. package/dist/types/src/defaultConfig.d.ts +3 -0
  647. package/dist/types/src/esbuildConfigs/consoleDetectorPlugin.d.ts +2 -0
  648. package/dist/types/src/esbuildConfigs/eslint-formatter-testeranto.d.ts +2 -0
  649. package/dist/types/src/esbuildConfigs/featuresPlugin.d.ts +5 -0
  650. package/dist/types/src/esbuildConfigs/index.d.ts +4 -0
  651. package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +7 -0
  652. package/dist/types/src/esbuildConfigs/nativeImportDetectorPlugin.d.ts +2 -0
  653. package/dist/types/src/esbuildConfigs/node.d.ts +4 -0
  654. package/dist/types/src/esbuildConfigs/pure.d.ts +4 -0
  655. package/dist/types/src/esbuildConfigs/rebuildPlugin.d.ts +6 -0
  656. package/dist/types/src/esbuildConfigs/web.d.ts +4 -0
  657. package/dist/types/src/init-docs.d.ts +1 -0
  658. package/dist/types/src/lib/BaseGiven.d.ts +44 -0
  659. package/dist/types/src/lib/BaseSuite.d.ts +47 -0
  660. package/dist/types/src/lib/BaseSuite.test/mock.d.ts +21 -0
  661. package/dist/types/src/lib/BaseSuite.test/node.test.d.ts +2 -0
  662. package/dist/types/src/lib/BaseSuite.test/pure.test.d.ts +3 -0
  663. package/dist/types/src/lib/BaseSuite.test/test.d.ts +37 -0
  664. package/dist/types/src/lib/BaseSuite.test/web.test.d.ts +3 -0
  665. package/dist/types/src/lib/BaseThen.d.ts +29 -0
  666. package/dist/types/src/lib/BaseWhen.d.ts +29 -0
  667. package/dist/types/src/lib/Sidecar.d.ts +5 -0
  668. package/dist/types/src/lib/Tiposkripto.d.ts +37 -0
  669. package/dist/types/src/lib/Tiposkripto.test/MockTiposkripto.d.ts +18 -0
  670. package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.adapter.d.ts +3 -0
  671. package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.d.ts +2 -0
  672. package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.implementation.d.ts +3 -0
  673. package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.specification.d.ts +3 -0
  674. package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.types.d.ts +58 -0
  675. package/dist/types/src/lib/abstractBase.test/MockGiven.d.ts +9 -0
  676. package/dist/types/src/lib/abstractBase.test/MockThen.d.ts +6 -0
  677. package/dist/types/src/lib/abstractBase.test/MockWhen.d.ts +6 -0
  678. package/dist/types/src/lib/abstractBase.test/adapter.d.ts +3 -0
  679. package/dist/types/src/lib/abstractBase.test/implementation.d.ts +3 -0
  680. package/dist/types/src/lib/abstractBase.test/index.d.ts +2 -0
  681. package/dist/types/src/lib/abstractBase.test/specification.d.ts +3 -0
  682. package/dist/types/src/lib/abstractBase.test/types.d.ts +39 -0
  683. package/dist/types/src/lib/index.d.ts +73 -0
  684. package/dist/types/src/lib/pmProxy.d.ts +12 -0
  685. package/dist/types/src/lib/pmProxy.test/adapter.d.ts +3 -0
  686. package/dist/types/src/lib/pmProxy.test/implementation.d.ts +3 -0
  687. package/dist/types/src/lib/pmProxy.test/index.d.ts +6 -0
  688. package/dist/types/src/lib/pmProxy.test/mockPM.d.ts +10 -0
  689. package/dist/types/src/lib/pmProxy.test/mockPMBase.d.ts +40 -0
  690. package/dist/types/src/lib/pmProxy.test/specification.d.ts +3 -0
  691. package/dist/types/src/lib/pmProxy.test/types.d.ts +42 -0
  692. package/dist/types/src/lib/types.d.ts +24 -0
  693. package/dist/types/src/mothership/index.d.ts +2 -0
  694. package/dist/types/src/mothership/test.d.ts +2 -0
  695. package/dist/types/src/testeranto.d.ts +1 -0
  696. package/dist/types/src/utils/buildTemplates.d.ts +1 -0
  697. package/dist/types/src/utils/generateGolingvuMetafile.d.ts +2 -0
  698. package/dist/types/src/utils/golingvuMetafile/fileDiscovery.d.ts +1 -0
  699. package/dist/types/src/utils/golingvuMetafile/goList.d.ts +2 -0
  700. package/dist/types/src/utils/golingvuMetafile/helpers.d.ts +7 -0
  701. package/dist/types/src/utils/golingvuMetafile/importParser.d.ts +5 -0
  702. package/dist/types/src/utils/golingvuMetafile/types.d.ts +66 -0
  703. package/dist/types/src/utils/golingvuMetafile.d.ts +4 -0
  704. package/dist/types/src/utils/golingvuWatcher.d.ts +14 -0
  705. package/dist/types/src/utils/logFiles.d.ts +103 -0
  706. package/dist/types/src/utils/pitonoMetafile.d.ts +22 -0
  707. package/dist/types/src/utils/pitonoWatcher.d.ts +13 -0
  708. package/dist/types/src/utils/queue.d.ts +11 -0
  709. package/dist/types/src/utils/writeGolingvuMetafile.d.ts +2 -0
  710. package/dist/types/src/web.html.d.ts +2 -0
  711. package/dist/types/tsconfig.types.tsbuildinfo +1 -0
  712. package/docker-compose.yml +74 -0
  713. package/docs/testing.prompt.txt +5 -1
  714. package/example/Calculator.go +64 -28
  715. package/example/Calculator.golingvu.implementation.go +51 -2
  716. package/example/Calculator.golingvu.test.go +216 -0
  717. package/example/Calculator.pitono.test.py +112 -27
  718. package/example/Calculator.test.adapter.ts +9 -49
  719. package/example/Calculator.test.implementation.ts +1 -28
  720. package/example/Calculator.ts +2 -18
  721. package/example/__pycache__/Calculator.cpython-313.pyc +0 -0
  722. package/example/go.mod +1 -3
  723. package/example/go.sum +2 -0
  724. package/example/requirements.txt +9 -0
  725. package/example/single-kanban-process.xml +9 -0
  726. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/LICENSE +21 -0
  727. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/README.md +187 -0
  728. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_given.go +163 -0
  729. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_suite.go +85 -0
  730. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_then.go +21 -0
  731. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/base_when.go +21 -0
  732. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/golingvu.go +889 -0
  733. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/test_adapter.go +33 -0
  734. package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/types.go +72 -0
  735. package/example/vendor/modules.txt +4 -0
  736. package/go.mod +4 -1
  737. package/go.sum +2 -0
  738. package/log.txt +36 -82
  739. package/package.json +16 -8
  740. package/scripts/build-example.ts +65 -204
  741. package/src/Init.ts +9 -1
  742. package/src/Node.ts +0 -1
  743. package/src/NodeSidecar.ts +0 -8
  744. package/src/PM/__tests__/nodeSidecar.testeranto.ts +4 -1
  745. package/src/PM/types.ts +1 -0
  746. package/src/PM/web.ts +8 -24
  747. package/src/Pure.test.ts +18 -9
  748. package/src/Pure.ts +1 -16
  749. package/src/Types.ts +1 -0
  750. package/src/Web.ts +2 -38
  751. package/src/WebSidecar.ts +1 -1
  752. package/src/app/FileService.ts +91 -0
  753. package/src/app/api.ts +75 -0
  754. package/src/app/backend/PM_0.ts +392 -0
  755. package/src/app/backend/PM_1_WithProcesses.ts +1186 -0
  756. package/src/app/backend/PM_2_WithTCP.ts +283 -0
  757. package/src/app/backend/PM_WithBuild.ts +148 -0
  758. package/src/app/backend/PM_WithEslintAndTsc.ts +194 -0
  759. package/src/app/backend/PM_WithGit.ts +662 -0
  760. package/src/app/backend/PM_WithHelpo.ts +340 -0
  761. package/src/app/backend/PM_WithProcesses.ts +1247 -0
  762. package/src/app/backend/PM_WithTCP.ts +777 -0
  763. package/src/app/backend/getAllFilesRecursively.ts +17 -0
  764. package/src/app/backend/main.ts +1011 -0
  765. package/src/app/backend/makePrompt.ts +92 -0
  766. package/src/app/backend/utils.ts +202 -0
  767. package/src/app/frontend/App.tsx +242 -0
  768. package/src/app/frontend/DevelopmentFileService.ts +117 -0
  769. package/src/app/frontend/GitFileService.ts +285 -0
  770. package/src/app/frontend/GitHubAuthService.ts +241 -0
  771. package/src/app/frontend/api.ts +108 -0
  772. package/src/app/frontend/app.scss +119 -0
  773. package/src/app/frontend/components/DesignEditorPage.tsx +210 -0
  774. package/src/app/frontend/components/SunriseAnimation.test/interface.ts +50 -0
  775. package/src/app/frontend/components/SunriseAnimation.test/types.ts +53 -0
  776. package/src/app/frontend/components/SunriseAnimation.tsx +350 -0
  777. package/src/app/frontend/components/pure/AppFrame.tsx +445 -0
  778. package/src/app/frontend/components/pure/FeaturesReporterView.tsx +38 -0
  779. package/src/app/frontend/components/pure/GitHubLoginButton.tsx +32 -0
  780. package/src/app/frontend/components/pure/GitIntegrationView.tsx +727 -0
  781. package/src/app/frontend/components/pure/HelpoChatDrawer.tsx +223 -0
  782. package/src/app/frontend/components/pure/MagicRobotModal.tsx +135 -0
  783. package/src/app/frontend/components/pure/ModalContent.test/index.tsx +68 -0
  784. package/src/app/frontend/components/pure/NavBar.tsx +119 -0
  785. package/src/app/frontend/components/pure/ProcessManagerView.tsx +89 -0
  786. package/src/app/frontend/components/pure/ProcessTerminal.tsx +55 -0
  787. package/src/app/frontend/components/pure/ProjectPageView.test/implementation.tsx +216 -0
  788. package/src/app/frontend/components/pure/ProjectPageView.tsx +165 -0
  789. package/src/app/frontend/components/pure/Settings.test.tsx +34 -0
  790. package/src/app/frontend/components/pure/Settings.tsx +171 -0
  791. package/src/app/frontend/components/pure/SignIn.tsx +33 -0
  792. package/src/app/frontend/components/stateful/FeaturesReporter.tsx +27 -0
  793. package/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.tsx +105 -0
  794. package/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.tsx +234 -0
  795. package/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.tsx +173 -0
  796. package/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.tsx +105 -0
  797. package/src/app/frontend/components/stateful/GenericXMLEditorPage.tsx +455 -0
  798. package/src/app/frontend/components/stateful/GitIntegrationPage.tsx +256 -0
  799. package/src/app/frontend/components/stateful/ProcessManagerPage.tsx +110 -0
  800. package/src/app/frontend/components/stateful/ProjectPage.tsx +94 -0
  801. package/src/app/frontend/components/stateful/ProjectsPage.tsx +129 -0
  802. package/src/app/frontend/components/stateful/SkriboPage.tsx +577 -0
  803. package/src/app/frontend/fetchDataUtil.ts +206 -0
  804. package/src/app/frontend/flua/FluaPage.tsx +458 -0
  805. package/src/app/frontend/flua/agile.xsd +32 -0
  806. package/src/app/frontend/flua/core.xsd +42 -0
  807. package/src/app/frontend/flua/kanban.xsd +21 -0
  808. package/src/app/frontend/flua/scrum.xsd +35 -0
  809. package/src/app/frontend/testPage/ITestPageViewProps.ts +14 -0
  810. package/src/app/frontend/testPage/ProjectsTree.tsx +329 -0
  811. package/src/app/frontend/testPage/TestPage.tsx +75 -0
  812. package/src/app/frontend/testPage/TestPageLeftContent.tsx +54 -0
  813. package/src/app/frontend/testPage/TestPageMainContent.tsx +181 -0
  814. package/src/app/frontend/testPage/TestPageNavbar.tsx +52 -0
  815. package/src/app/frontend/testPage/TestPageView.test/implementation.ts +209 -0
  816. package/src/app/frontend/testPage/TestPageView.test/index.tsx +22 -0
  817. package/src/app/frontend/testPage/TestPageView.test/specification.ts +60 -0
  818. package/src/app/frontend/testPage/TestPageView.test/types.ts +92 -0
  819. package/src/app/frontend/testPage/TestPageView.tsx +481 -0
  820. package/src/app/frontend/testPage/TestPageView_utils.tsx +301 -0
  821. package/src/app/frontend/testPage/index.md +14 -0
  822. package/src/app/frontend/useFileSystemSync.ts +117 -0
  823. package/src/app/frontend/useFs.ts +16 -0
  824. package/src/app/frontend/useGitMode.ts +21 -0
  825. package/src/app/frontend/useTerminalWebSocket.ts +56 -0
  826. package/src/app/frontend/useWebSocket.ts +20 -0
  827. package/src/app/trash +1697 -0
  828. package/src/app/types.ts +1 -0
  829. package/src/builders/golang.ts +29 -0
  830. package/src/builders/node.ts +34 -0
  831. package/src/builders/python.ts +28 -0
  832. package/src/builders/web.ts +34 -0
  833. package/src/cjs-shim.js +2 -0
  834. package/src/golingvu/PM/golang_test.go +88 -88
  835. package/src/golingvu/base_given.go +27 -28
  836. package/src/golingvu/base_suite.go +20 -20
  837. package/src/golingvu/base_then.go +2 -2
  838. package/src/golingvu/base_when.go +2 -2
  839. package/src/golingvu/golingvu.go +124 -147
  840. package/src/graphml.xsd +345 -0
  841. package/src/lib/BaseGiven.ts +71 -95
  842. package/src/lib/BaseSuite.test/test.ts +7 -12
  843. package/src/lib/BaseSuite.ts +24 -16
  844. package/src/lib/BaseThen.ts +7 -4
  845. package/src/lib/BaseWhen.ts +4 -12
  846. package/src/lib/Tiposkripto.test/MockTiposkripto.ts +59 -63
  847. package/src/lib/Tiposkripto.test/Tiposkripto.implementation.ts +33 -20
  848. package/src/lib/Tiposkripto.ts +1 -19
  849. package/src/lib/pmProxy.test/implementation.ts +112 -117
  850. package/src/lib/pmProxy.test/index.ts +2 -2
  851. package/src/lib/pmProxy.test/mockPM.ts +1 -0
  852. package/src/lib/pmProxy.test/mockPMBase.ts +1 -1
  853. package/src/lib/pmProxy.test/specification.ts +0 -2
  854. package/src/lib/pmProxy.test/types.ts +1 -0
  855. package/src/lib/pmProxy.ts +0 -74
  856. package/src/mothership/index.ts +197 -2
  857. package/src/mothership/test.ts +5 -5
  858. package/src/pitono/PM/__pycache__/python.cpython-313.pyc +0 -0
  859. package/src/pitono/PM/python.py +3 -0
  860. package/src/pitono/Pitono.py +166 -20
  861. package/src/pitono/__pycache__/Pitono.cpython-313.pyc +0 -0
  862. package/src/pitono/__pycache__/__init__.cpython-313.pyc +0 -0
  863. package/src/pitono/__pycache__/base_given.cpython-313.pyc +0 -0
  864. package/src/pitono/__pycache__/base_suite.cpython-313.pyc +0 -0
  865. package/src/pitono/__pycache__/base_then.cpython-313.pyc +0 -0
  866. package/src/pitono/__pycache__/base_when.cpython-313.pyc +0 -0
  867. package/src/pitono/__pycache__/core_generator.cpython-313.pyc +0 -0
  868. package/src/pitono/__pycache__/simple_adapter.cpython-313.pyc +0 -0
  869. package/src/pitono/__pycache__/types.cpython-313.pyc +0 -0
  870. package/src/pitono/base_given.py +35 -10
  871. package/src/pitono/base_suite.py +2 -1
  872. package/src/pitono/base_then.py +5 -4
  873. package/src/pitono/base_when.py +4 -3
  874. package/src/style.scss +261 -2
  875. package/src/testeranto.ts +6 -5
  876. package/src/utils/generateGolingvuMetafile.ts +196 -0
  877. package/src/utils/golingvuMetafile/fileDiscovery.ts +157 -0
  878. package/src/utils/golingvuMetafile/goList.ts +106 -0
  879. package/src/utils/golingvuMetafile/helpers.ts +65 -0
  880. package/src/utils/golingvuMetafile/importParser.ts +97 -0
  881. package/src/utils/golingvuMetafile/types.ts +78 -0
  882. package/src/utils/golingvuMetafile.ts +4 -865
  883. package/src/utils/golingvuWatcher.ts +35 -40
  884. package/src/utils/pitonoMetafile.ts +205 -207
  885. package/src/utils/pitonoWatcher.ts +2 -9
  886. package/src/utils/writeGolingvuMetafile.ts +386 -0
  887. package/testeranto/App.css +173 -173
  888. package/testeranto/App.js +20428 -46026
  889. package/testeranto/bundles/golang/core/example/Calculator.golingvu.test +58 -0
  890. package/testeranto/bundles/node/core/example/Calculator.test.mjs +5862 -0
  891. package/testeranto/bundles/python/core/Calculator.pitono.test.py +24 -0
  892. package/testeranto/metafiles/golang/core.json +126 -26
  893. package/testeranto/metafiles/node/core.json +43 -550
  894. package/testeranto/metafiles/python/core.json +4 -39
  895. package/testeranto/reports/core/config.json +1 -81
  896. package/testeranto/reports/core/example/Calculator.golingvu.test/golang/stderr.log +7 -0
  897. package/testeranto/reports/core/example/Calculator.pitono.test/python/exit.log +1 -1
  898. package/testeranto/reports/core/example/Calculator.pitono.test/python/prompt.txt +13 -0
  899. package/testeranto/reports/core/example/Calculator.pitono.test/python/stderr.log +0 -11
  900. package/testeranto/reports/core/example/Calculator.pitono.test/python/stdout.log +26 -1
  901. package/testeranto/reports/core/example/Calculator.pitono.test/python/tests.json +255 -0
  902. package/testeranto/reports/core/example/Calculator.test/node/lint_errors.txt +2 -2
  903. package/testeranto/reports/core/example/Calculator.test/node/stderr.log +562 -29
  904. package/testeranto/reports/core/example/Calculator.test/node/stdout.log +0 -1076
  905. package/testeranto/reports/core/example/Calculator.test/node/tests.json +133 -79
  906. package/testeranto/reports/core/example/Calculator.test/node/type_errors.txt +16 -24
  907. package/testeranto/reports/core/summary.json +2 -69
  908. package/testeranto.config.ts +28 -26
  909. package/tsc.log +305 -370
  910. package/example/Calculator.golingvu.go +0 -67
  911. package/example/base_suite_test.go +0 -51
  912. package/example/cmd/main.go +0 -16
  913. package/example/main +0 -0
  914. package/example/testeranto/bundles/golang/core/Calculator.golingvu.go +0 -53
  915. package/example/testeranto/metafiles/golang/core.json +0 -198
  916. package/src/App.tsx +0 -278
  917. package/src/PM/PM_WithBuild.ts +0 -183
  918. package/src/PM/PM_WithEslintAndTsc.ts +0 -279
  919. package/src/PM/PM_WithGit.ts +0 -632
  920. package/src/PM/PM_WithHelpo.ts +0 -341
  921. package/src/PM/PM_WithProcesses.ts +0 -900
  922. package/src/PM/PM_WithWebSocket.ts +0 -839
  923. package/src/PM/base.ts +0 -390
  924. package/src/PM/main.ts +0 -981
  925. package/src/ReportServer.test.ts/index.ts +0 -194
  926. package/src/app.scss +0 -121
  927. package/src/components/DesignEditorPage.tsx +0 -202
  928. package/src/components/SunriseAnimation.test/interface.ts +0 -49
  929. package/src/components/SunriseAnimation.test/types.ts +0 -53
  930. package/src/components/SunriseAnimation.tsx +0 -350
  931. package/src/components/pure/AppFrame.tsx +0 -410
  932. package/src/components/pure/FeaturesReporterView.tsx +0 -37
  933. package/src/components/pure/GitHubLoginButton.tsx +0 -31
  934. package/src/components/pure/GitIntegrationView.tsx +0 -732
  935. package/src/components/pure/HelpoChatDrawer.tsx +0 -222
  936. package/src/components/pure/MagicRobotModal.tsx +0 -136
  937. package/src/components/pure/ModalContent.test/index.tsx +0 -67
  938. package/src/components/pure/NavBar.tsx +0 -118
  939. package/src/components/pure/ProcessManagerView.tsx +0 -85
  940. package/src/components/pure/ProcessTerminal.tsx +0 -51
  941. package/src/components/pure/ProjectPageView.test/implementation.tsx +0 -213
  942. package/src/components/pure/ProjectPageView.tsx +0 -148
  943. package/src/components/pure/Settings.test.tsx +0 -34
  944. package/src/components/pure/Settings.tsx +0 -163
  945. package/src/components/pure/SignIn.tsx +0 -33
  946. package/src/components/pure/TestPageView.test/implementation.ts +0 -162
  947. package/src/components/pure/TestPageView.test/index.tsx +0 -20
  948. package/src/components/pure/TestPageView.test/specification.ts +0 -59
  949. package/src/components/pure/TestPageView.test/types.ts +0 -92
  950. package/src/components/pure/TestPageView.tsx +0 -611
  951. package/src/components/pure/TestPageView_utils.tsx +0 -287
  952. package/src/components/stateful/FeaturesReporter.tsx +0 -26
  953. package/src/components/stateful/GenericXMLEditor/AttributeEditor.tsx +0 -87
  954. package/src/components/stateful/GenericXMLEditor/GenericPreview.tsx +0 -160
  955. package/src/components/stateful/GenericXMLEditor/GenericTextEditor.tsx +0 -104
  956. package/src/components/stateful/GenericXMLEditor/GenericTree.tsx +0 -104
  957. package/src/components/stateful/GenericXMLEditorPage.tsx +0 -346
  958. package/src/components/stateful/GitIntegrationPage.tsx +0 -263
  959. package/src/components/stateful/ProcessManagerPage.tsx +0 -104
  960. package/src/components/stateful/ProjectPage.tsx +0 -86
  961. package/src/components/stateful/ProjectsPage.tsx +0 -100
  962. package/src/components/stateful/SkriboPage.tsx +0 -765
  963. package/src/components/stateful/TestPage.tsx +0 -269
  964. package/src/example/go.mod +0 -9
  965. package/src/example/main.go +0 -61
  966. package/src/hooks/useGitMode.ts +0 -20
  967. package/src/hooks/useTerminalWebSocket.ts +0 -49
  968. package/src/services/FileService.ts +0 -677
  969. package/src/services/GitHubAuthService.ts +0 -240
  970. package/src/types/features.ts +0 -38
  971. package/src/utils/api.ts +0 -108
  972. package/src/utils/featureUtils.tsx +0 -42
  973. package/src/utils/gitTest.ts +0 -29
  974. package/src/utils/makePrompt.ts +0 -160
  975. package/src/utils.ts +0 -202
  976. package/stargazers.txt +0 -15
  977. package/testeranto/bundles/node/core/chunk-MJTSYIAQ.mjs +0 -1099
  978. package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +0 -318
  979. package/testeranto/bundles/node/core/src/lib/TipoSkripto.test/TipoSkripto.mjs +0 -572
  980. package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +0 -4795
  981. package/testeranto/bundles/pure/core/chunk-6HR24P27.mjs +0 -1003
  982. package/testeranto/bundles/pure/core/src/Pure.test.mjs +0 -410
  983. package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +0 -318
  984. package/testeranto/bundles/web/core/MPLUSRounded1c-Black-O75GP5JI.ttf +0 -0
  985. package/testeranto/bundles/web/core/MPLUSRounded1c-Bold-R524Q5BH.ttf +0 -0
  986. package/testeranto/bundles/web/core/MPLUSRounded1c-ExtraBold-C6GRMYVT.ttf +0 -0
  987. package/testeranto/bundles/web/core/MPLUSRounded1c-Light-WKN65Y2C.ttf +0 -0
  988. package/testeranto/bundles/web/core/MPLUSRounded1c-Medium-ZC4DWL7C.ttf +0 -0
  989. package/testeranto/bundles/web/core/MPLUSRounded1c-Regular-DT6EKZ3S.ttf +0 -0
  990. package/testeranto/bundles/web/core/MPLUSRounded1c-Thin-YWDNVG6M.ttf +0 -0
  991. package/testeranto/bundles/web/core/chunk-AZZHJNSU.mjs +0 -30278
  992. package/testeranto/bundles/web/core/chunk-ME6I6FJZ.mjs +0 -3005
  993. package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.html +0 -15
  994. package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.mjs +0 -162
  995. package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.css +0 -11619
  996. package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.html +0 -15
  997. package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +0 -6924
  998. package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.html +0 -15
  999. package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.mjs +0 -333
  1000. package/testeranto/metafiles/pure/core.json +0 -719
  1001. package/testeranto/metafiles/web/core.json +0 -17007
  1002. package/testeranto/reports/core/example/Calculator.golingvu/golang/stderr.log +0 -2
  1003. package/testeranto/reports/core/example/Calculator.golingvu/golang/stdout.log +0 -1
  1004. package/testeranto/reports/core/example/test_example/python/exit.log +0 -1
  1005. package/testeranto/reports/core/example/test_example/python/stderr.log +0 -24
  1006. package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +0 -13
  1007. package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +0 -86
  1008. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/message.txt +0 -17
  1009. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/prompt.txt +0 -26
  1010. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/type_errors.txt +0 -69
  1011. package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/lint_errors.txt +0 -16
  1012. package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/message.txt +0 -17
  1013. package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/prompt.txt +0 -27
  1014. package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/type_errors.txt +0 -42
  1015. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/debug.log +0 -0
  1016. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +0 -0
  1017. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/exit.log +0 -0
  1018. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +0 -0
  1019. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +0 -30
  1020. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +0 -17
  1021. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +0 -30
  1022. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +0 -58
  1023. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/warn.log +0 -0
  1024. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/exit.log +0 -1
  1025. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/lint_errors.txt +0 -0
  1026. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/message.txt +0 -17
  1027. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +0 -23
  1028. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stderr.log +0 -1
  1029. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stdout.log +0 -4
  1030. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/tests.json +0 -120
  1031. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +0 -69
  1032. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/exit.log +0 -0
  1033. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/lint_errors.txt +0 -0
  1034. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/message.txt +0 -16
  1035. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +0 -13
  1036. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +0 -74
  1037. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/debug.log +0 -0
  1038. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +0 -0
  1039. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/exit.log +0 -0
  1040. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/info.log +0 -0
  1041. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/lint_errors.txt +0 -0
  1042. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/message.txt +0 -17
  1043. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/prompt.txt +0 -25
  1044. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/type_errors.txt +0 -69
  1045. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/warn.log +0 -0
  1046. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/exit.log +0 -1
  1047. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/lint_errors.txt +0 -0
  1048. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/message.txt +0 -16
  1049. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/prompt.txt +0 -13
  1050. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stderr.log +0 -88
  1051. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stdout.log +0 -521
  1052. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/tests.json +0 -166
  1053. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/type_errors.txt +0 -78
  1054. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/exit.log +0 -1
  1055. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/lint_errors.txt +0 -15
  1056. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/message.txt +0 -17
  1057. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +0 -25
  1058. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +0 -0
  1059. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +0 -2
  1060. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +0 -31
  1061. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +0 -62
  1062. package/testeranto.ts-0.0.1.tgz +0 -0
  1063. package/type-fix.txt +0 -2
  1064. /package/{src/ReportServer.ts → build-go.sh} +0 -0
  1065. /package/{src/ReportServerLib.ts → dist/types/src/app/backend/PM_WithProcesses.d.ts} +0 -0
  1066. /package/{src/components/SunriseAnimation.test/implementation.ts → dist/types/src/app/frontend/components/SunriseAnimation.test/implementation.d.ts} +0 -0
  1067. /package/{src/components/SunriseAnimation.test/index.ts → dist/types/src/app/frontend/components/SunriseAnimation.test/index.d.ts} +0 -0
  1068. /package/{src/components/SunriseAnimation.test/specification.ts → dist/types/src/app/frontend/components/SunriseAnimation.test/specification.d.ts} +0 -0
  1069. /package/{testeranto/reports/core/example/test_example/python/stdout.log → dist/types/src/app/frontend/components/pure/ArtifactTree.d.ts} +0 -0
  1070. /package/{testeranto/reports/core/src/Pure.test/pure/exit.log → dist/types/src/app/frontend/components/pure/Settings.test.d.ts} +0 -0
  1071. /package/{testeranto/reports/core/src/Pure.test/pure/lint_errors.txt → dist/types/src/app/frontend/components/pure/SingleProcessView.d.ts} +0 -0
  1072. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/debug.log → dist/types/src/app/frontend/components/stateful/FeaturesReporter.d.ts} +0 -0
  1073. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log → dist/types/src/app/frontend/components/stateful/FileTree.d.ts} +0 -0
  1074. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/exit.log → dist/types/src/app/frontend/components/stateful/SingleProcessPage.d.ts} +0 -0
  1075. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log → dist/types/src/app/frontend/fetchDataUtil.d.ts} +0 -0
  1076. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/lint_errors.txt → dist/types/src/app/frontend/useFileSystemSync.d.ts} +0 -0
  1077. /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/warn.log → dist/types/src/run.d.ts} +0 -0
  1078. /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/debug.log → docker.md} +0 -0
  1079. /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/error.log → src/app/frontend/components/SunriseAnimation.test/implementation.ts} +0 -0
  1080. /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/exit.log → src/app/frontend/components/SunriseAnimation.test/index.ts} +0 -0
  1081. /package/src/{components → app/frontend/components}/SunriseAnimation.test/index.tsx +0 -0
  1082. /package/{testeranto/reports/core/src/components/pure/ModalContent.test/index/web/info.log → src/app/frontend/components/SunriseAnimation.test/specification.ts} +0 -0
  1083. /package/src/{components → app/frontend/components}/TestStatusBadge.tsx +0 -0
  1084. /package/src/{components → app/frontend/components}/pure/AppFrame.test/implementation.tsx +0 -0
  1085. /package/src/{components → app/frontend/components}/pure/AppFrame.test/index.tsx +0 -0
  1086. /package/src/{components → app/frontend/components}/pure/AppFrame.test/specification.ts +0 -0
  1087. /package/src/{components → app/frontend/components}/pure/AppFrame.test/types.ts +0 -0
  1088. /package/src/{components → app/frontend/components}/pure/ArtifactTree.tsx +0 -0
  1089. /package/src/{components → app/frontend/components}/pure/BuildLogViewer.tsx +0 -0
  1090. /package/src/{components → app/frontend/components}/pure/DebugEnv.tsx +0 -0
  1091. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/implementation.tsx +0 -0
  1092. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/index.tsx +0 -0
  1093. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/specification.ts +0 -0
  1094. /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/types.ts +0 -0
  1095. /package/src/{components → app/frontend/components}/pure/FileTree.tsx +0 -0
  1096. /package/src/{components → app/frontend/components}/pure/FileTreeItem.tsx +0 -0
  1097. /package/src/{components → app/frontend/components}/pure/ModalContent.test/implementation.tsx +0 -0
  1098. /package/src/{components → app/frontend/components}/pure/ModalContent.test/specification.ts +0 -0
  1099. /package/src/{components → app/frontend/components}/pure/ModalContent.test/types.ts +0 -0
  1100. /package/src/{components → app/frontend/components}/pure/ModalContent.tsx +0 -0
  1101. /package/src/{components → app/frontend/components}/pure/ProcessDetails.tsx +0 -0
  1102. /package/src/{components → app/frontend/components}/pure/ProcessInput.tsx +0 -0
  1103. /package/src/{components → app/frontend/components}/pure/ProcessList.tsx +0 -0
  1104. /package/src/{components → app/frontend/components}/pure/ProcessLogs.tsx +0 -0
  1105. /package/src/{components → app/frontend/components}/pure/ProcessManager.tsx +0 -0
  1106. /package/src/{components → app/frontend/components}/pure/ProcessManagerViewTypes.ts +0 -0
  1107. /package/src/{components → app/frontend/components}/pure/ProcessSidebar.tsx +0 -0
  1108. /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/index.tsx +0 -0
  1109. /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/specification.ts +0 -0
  1110. /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/types.ts +0 -0
  1111. /package/src/{components → app/frontend/components}/pure/ProjectsPageView.tsx +0 -0
  1112. /package/src/{components → app/frontend/components}/pure/SettingsButton.md +0 -0
  1113. /package/src/{components → app/frontend/components}/pure/SettingsButton.tsx +0 -0
  1114. /package/src/{components → app/frontend/components}/pure/SingleProcessView.tsx +0 -0
  1115. /package/src/{components → app/frontend/components}/pure/TerminalInput.tsx +0 -0
  1116. /package/src/{components → app/frontend/components}/pure/TerminalLogs.tsx +0 -0
  1117. /package/src/{components → app/frontend/components}/pure/TestTable.tsx +0 -0
  1118. /package/src/{components → app/frontend/components}/pure/ThemeCard.tsx +0 -0
  1119. /package/src/{components → app/frontend/components}/pure/ToastNotification.tsx +0 -0
  1120. /package/src/{components → app/frontend/components}/pure/UserProfile.tsx +0 -0
  1121. /package/src/{components → app/frontend/components}/stateful/AuthCallbackPage.tsx +0 -0
  1122. /package/src/{components → app/frontend/components}/stateful/DratoPage.tsx +0 -0
  1123. /package/src/{components → app/frontend/components}/stateful/FileTree.tsx +0 -0
  1124. /package/src/{components → app/frontend/components}/stateful/GenericXMLEditor/Drawer.tsx +0 -0
  1125. /package/src/{components → app/frontend/components}/stateful/GrafeoPage.tsx +0 -0
  1126. /package/src/{components → app/frontend/components}/stateful/SVGEditor/CircleForm.tsx +0 -0
  1127. /package/src/{components → app/frontend/components}/stateful/SVGEditor/GroupForm.tsx +0 -0
  1128. /package/src/{components → app/frontend/components}/stateful/SVGEditor/RectForm.tsx +0 -0
  1129. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGAttributeField.tsx +0 -0
  1130. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGAttributesEditor.tsx +0 -0
  1131. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGEditorControls.tsx +0 -0
  1132. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGElementForm.tsx +0 -0
  1133. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGPreview.tsx +0 -0
  1134. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTextEditor.tsx +0 -0
  1135. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTree.tsx +0 -0
  1136. /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTypes.ts +0 -0
  1137. /package/src/{components → app/frontend/components}/stateful/SVGEditor/svg.xsd.xml +0 -0
  1138. /package/src/{components → app/frontend/components}/stateful/SVGEditorPage.tsx +0 -0
  1139. /package/src/{components → app/frontend/components}/stateful/SettingsPage.tsx +0 -0
  1140. /package/src/{components → app/frontend/components}/stateful/SingleProcessPage.tsx +0 -0
  1141. /package/src/{components → app/frontend/components}/stateful/TextEditorPage.tsx +0 -0
  1142. /package/testeranto/{projects.html → index.html} +0 -0
  1143. /package/testeranto/reports/core/example/{Calculator.golingvu → Calculator.golingvu.test}/golang/exit.log +0 -0
  1144. /package/testeranto/reports/core/{src/components/pure/ModalContent.test/index/web/warn.log → example/Calculator.golingvu.test/golang/stdout.log} +0 -0
  1145. /package/testeranto/reports/core/{src/Pure.test/pure → example/Calculator.pitono.test/python}/message.txt +0 -0
@@ -1,3005 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __esm = (fn, res) => function __init() {
8
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
9
- };
10
- var __commonJS = (cb, mod) => function __require() {
11
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
-
30
- // node_modules/esbuild-plugin-polyfill-node/polyfills/__dirname.js
31
- var init_dirname = __esm({
32
- "node_modules/esbuild-plugin-polyfill-node/polyfills/__dirname.js"() {
33
- }
34
- });
35
-
36
- // node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js
37
- function dew$2() {
38
- if (_dewExec$2)
39
- return exports$2;
40
- _dewExec$2 = true;
41
- exports$2.byteLength = byteLength;
42
- exports$2.toByteArray = toByteArray;
43
- exports$2.fromByteArray = fromByteArray;
44
- var lookup = [];
45
- var revLookup = [];
46
- var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
47
- var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
48
- for (var i = 0, len = code.length; i < len; ++i) {
49
- lookup[i] = code[i];
50
- revLookup[code.charCodeAt(i)] = i;
51
- }
52
- revLookup["-".charCodeAt(0)] = 62;
53
- revLookup["_".charCodeAt(0)] = 63;
54
- function getLens(b64) {
55
- var len2 = b64.length;
56
- if (len2 % 4 > 0) {
57
- throw new Error("Invalid string. Length must be a multiple of 4");
58
- }
59
- var validLen = b64.indexOf("=");
60
- if (validLen === -1)
61
- validLen = len2;
62
- var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4;
63
- return [validLen, placeHoldersLen];
64
- }
65
- function byteLength(b64) {
66
- var lens = getLens(b64);
67
- var validLen = lens[0];
68
- var placeHoldersLen = lens[1];
69
- return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
70
- }
71
- function _byteLength(b64, validLen, placeHoldersLen) {
72
- return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
73
- }
74
- function toByteArray(b64) {
75
- var tmp;
76
- var lens = getLens(b64);
77
- var validLen = lens[0];
78
- var placeHoldersLen = lens[1];
79
- var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
80
- var curByte = 0;
81
- var len2 = placeHoldersLen > 0 ? validLen - 4 : validLen;
82
- var i2;
83
- for (i2 = 0; i2 < len2; i2 += 4) {
84
- tmp = revLookup[b64.charCodeAt(i2)] << 18 | revLookup[b64.charCodeAt(i2 + 1)] << 12 | revLookup[b64.charCodeAt(i2 + 2)] << 6 | revLookup[b64.charCodeAt(i2 + 3)];
85
- arr[curByte++] = tmp >> 16 & 255;
86
- arr[curByte++] = tmp >> 8 & 255;
87
- arr[curByte++] = tmp & 255;
88
- }
89
- if (placeHoldersLen === 2) {
90
- tmp = revLookup[b64.charCodeAt(i2)] << 2 | revLookup[b64.charCodeAt(i2 + 1)] >> 4;
91
- arr[curByte++] = tmp & 255;
92
- }
93
- if (placeHoldersLen === 1) {
94
- tmp = revLookup[b64.charCodeAt(i2)] << 10 | revLookup[b64.charCodeAt(i2 + 1)] << 4 | revLookup[b64.charCodeAt(i2 + 2)] >> 2;
95
- arr[curByte++] = tmp >> 8 & 255;
96
- arr[curByte++] = tmp & 255;
97
- }
98
- return arr;
99
- }
100
- function tripletToBase64(num) {
101
- return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
102
- }
103
- function encodeChunk(uint8, start, end) {
104
- var tmp;
105
- var output = [];
106
- for (var i2 = start; i2 < end; i2 += 3) {
107
- tmp = (uint8[i2] << 16 & 16711680) + (uint8[i2 + 1] << 8 & 65280) + (uint8[i2 + 2] & 255);
108
- output.push(tripletToBase64(tmp));
109
- }
110
- return output.join("");
111
- }
112
- function fromByteArray(uint8) {
113
- var tmp;
114
- var len2 = uint8.length;
115
- var extraBytes = len2 % 3;
116
- var parts = [];
117
- var maxChunkLength = 16383;
118
- for (var i2 = 0, len22 = len2 - extraBytes; i2 < len22; i2 += maxChunkLength) {
119
- parts.push(encodeChunk(uint8, i2, i2 + maxChunkLength > len22 ? len22 : i2 + maxChunkLength));
120
- }
121
- if (extraBytes === 1) {
122
- tmp = uint8[len2 - 1];
123
- parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "==");
124
- } else if (extraBytes === 2) {
125
- tmp = (uint8[len2 - 2] << 8) + uint8[len2 - 1];
126
- parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "=");
127
- }
128
- return parts.join("");
129
- }
130
- return exports$2;
131
- }
132
- function dew$1() {
133
- if (_dewExec$1)
134
- return exports$1;
135
- _dewExec$1 = true;
136
- exports$1.read = function(buffer, offset, isLE, mLen, nBytes) {
137
- var e, m;
138
- var eLen = nBytes * 8 - mLen - 1;
139
- var eMax = (1 << eLen) - 1;
140
- var eBias = eMax >> 1;
141
- var nBits = -7;
142
- var i = isLE ? nBytes - 1 : 0;
143
- var d = isLE ? -1 : 1;
144
- var s = buffer[offset + i];
145
- i += d;
146
- e = s & (1 << -nBits) - 1;
147
- s >>= -nBits;
148
- nBits += eLen;
149
- for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {
150
- }
151
- m = e & (1 << -nBits) - 1;
152
- e >>= -nBits;
153
- nBits += mLen;
154
- for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {
155
- }
156
- if (e === 0) {
157
- e = 1 - eBias;
158
- } else if (e === eMax) {
159
- return m ? NaN : (s ? -1 : 1) * Infinity;
160
- } else {
161
- m = m + Math.pow(2, mLen);
162
- e = e - eBias;
163
- }
164
- return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
165
- };
166
- exports$1.write = function(buffer, value, offset, isLE, mLen, nBytes) {
167
- var e, m, c;
168
- var eLen = nBytes * 8 - mLen - 1;
169
- var eMax = (1 << eLen) - 1;
170
- var eBias = eMax >> 1;
171
- var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
172
- var i = isLE ? 0 : nBytes - 1;
173
- var d = isLE ? 1 : -1;
174
- var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
175
- value = Math.abs(value);
176
- if (isNaN(value) || value === Infinity) {
177
- m = isNaN(value) ? 1 : 0;
178
- e = eMax;
179
- } else {
180
- e = Math.floor(Math.log(value) / Math.LN2);
181
- if (value * (c = Math.pow(2, -e)) < 1) {
182
- e--;
183
- c *= 2;
184
- }
185
- if (e + eBias >= 1) {
186
- value += rt / c;
187
- } else {
188
- value += rt * Math.pow(2, 1 - eBias);
189
- }
190
- if (value * c >= 2) {
191
- e++;
192
- c /= 2;
193
- }
194
- if (e + eBias >= eMax) {
195
- m = 0;
196
- e = eMax;
197
- } else if (e + eBias >= 1) {
198
- m = (value * c - 1) * Math.pow(2, mLen);
199
- e = e + eBias;
200
- } else {
201
- m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
202
- e = 0;
203
- }
204
- }
205
- for (; mLen >= 8; buffer[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) {
206
- }
207
- e = e << mLen | m;
208
- eLen += mLen;
209
- for (; eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {
210
- }
211
- buffer[offset + i - d] |= s * 128;
212
- };
213
- return exports$1;
214
- }
215
- function dew() {
216
- if (_dewExec)
217
- return exports;
218
- _dewExec = true;
219
- const base64 = dew$2();
220
- const ieee754 = dew$1();
221
- const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
222
- exports.Buffer = Buffer3;
223
- exports.SlowBuffer = SlowBuffer;
224
- exports.INSPECT_MAX_BYTES = 50;
225
- const K_MAX_LENGTH = 2147483647;
226
- exports.kMaxLength = K_MAX_LENGTH;
227
- Buffer3.TYPED_ARRAY_SUPPORT = typedArraySupport();
228
- if (!Buffer3.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
229
- console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
230
- }
231
- function typedArraySupport() {
232
- try {
233
- const arr = new Uint8Array(1);
234
- const proto = {
235
- foo: function() {
236
- return 42;
237
- }
238
- };
239
- Object.setPrototypeOf(proto, Uint8Array.prototype);
240
- Object.setPrototypeOf(arr, proto);
241
- return arr.foo() === 42;
242
- } catch (e) {
243
- return false;
244
- }
245
- }
246
- Object.defineProperty(Buffer3.prototype, "parent", {
247
- enumerable: true,
248
- get: function() {
249
- if (!Buffer3.isBuffer(this))
250
- return void 0;
251
- return this.buffer;
252
- }
253
- });
254
- Object.defineProperty(Buffer3.prototype, "offset", {
255
- enumerable: true,
256
- get: function() {
257
- if (!Buffer3.isBuffer(this))
258
- return void 0;
259
- return this.byteOffset;
260
- }
261
- });
262
- function createBuffer(length) {
263
- if (length > K_MAX_LENGTH) {
264
- throw new RangeError('The value "' + length + '" is invalid for option "size"');
265
- }
266
- const buf = new Uint8Array(length);
267
- Object.setPrototypeOf(buf, Buffer3.prototype);
268
- return buf;
269
- }
270
- function Buffer3(arg, encodingOrOffset, length) {
271
- if (typeof arg === "number") {
272
- if (typeof encodingOrOffset === "string") {
273
- throw new TypeError('The "string" argument must be of type string. Received type number');
274
- }
275
- return allocUnsafe(arg);
276
- }
277
- return from(arg, encodingOrOffset, length);
278
- }
279
- Buffer3.poolSize = 8192;
280
- function from(value, encodingOrOffset, length) {
281
- if (typeof value === "string") {
282
- return fromString(value, encodingOrOffset);
283
- }
284
- if (ArrayBuffer.isView(value)) {
285
- return fromArrayView(value);
286
- }
287
- if (value == null) {
288
- throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
289
- }
290
- if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
291
- return fromArrayBuffer(value, encodingOrOffset, length);
292
- }
293
- if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {
294
- return fromArrayBuffer(value, encodingOrOffset, length);
295
- }
296
- if (typeof value === "number") {
297
- throw new TypeError('The "value" argument must not be of type number. Received type number');
298
- }
299
- const valueOf = value.valueOf && value.valueOf();
300
- if (valueOf != null && valueOf !== value) {
301
- return Buffer3.from(valueOf, encodingOrOffset, length);
302
- }
303
- const b = fromObject(value);
304
- if (b)
305
- return b;
306
- if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
307
- return Buffer3.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
308
- }
309
- throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
310
- }
311
- Buffer3.from = function(value, encodingOrOffset, length) {
312
- return from(value, encodingOrOffset, length);
313
- };
314
- Object.setPrototypeOf(Buffer3.prototype, Uint8Array.prototype);
315
- Object.setPrototypeOf(Buffer3, Uint8Array);
316
- function assertSize(size) {
317
- if (typeof size !== "number") {
318
- throw new TypeError('"size" argument must be of type number');
319
- } else if (size < 0) {
320
- throw new RangeError('The value "' + size + '" is invalid for option "size"');
321
- }
322
- }
323
- function alloc(size, fill, encoding) {
324
- assertSize(size);
325
- if (size <= 0) {
326
- return createBuffer(size);
327
- }
328
- if (fill !== void 0) {
329
- return typeof encoding === "string" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);
330
- }
331
- return createBuffer(size);
332
- }
333
- Buffer3.alloc = function(size, fill, encoding) {
334
- return alloc(size, fill, encoding);
335
- };
336
- function allocUnsafe(size) {
337
- assertSize(size);
338
- return createBuffer(size < 0 ? 0 : checked(size) | 0);
339
- }
340
- Buffer3.allocUnsafe = function(size) {
341
- return allocUnsafe(size);
342
- };
343
- Buffer3.allocUnsafeSlow = function(size) {
344
- return allocUnsafe(size);
345
- };
346
- function fromString(string, encoding) {
347
- if (typeof encoding !== "string" || encoding === "") {
348
- encoding = "utf8";
349
- }
350
- if (!Buffer3.isEncoding(encoding)) {
351
- throw new TypeError("Unknown encoding: " + encoding);
352
- }
353
- const length = byteLength(string, encoding) | 0;
354
- let buf = createBuffer(length);
355
- const actual = buf.write(string, encoding);
356
- if (actual !== length) {
357
- buf = buf.slice(0, actual);
358
- }
359
- return buf;
360
- }
361
- function fromArrayLike(array) {
362
- const length = array.length < 0 ? 0 : checked(array.length) | 0;
363
- const buf = createBuffer(length);
364
- for (let i = 0; i < length; i += 1) {
365
- buf[i] = array[i] & 255;
366
- }
367
- return buf;
368
- }
369
- function fromArrayView(arrayView) {
370
- if (isInstance(arrayView, Uint8Array)) {
371
- const copy = new Uint8Array(arrayView);
372
- return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
373
- }
374
- return fromArrayLike(arrayView);
375
- }
376
- function fromArrayBuffer(array, byteOffset, length) {
377
- if (byteOffset < 0 || array.byteLength < byteOffset) {
378
- throw new RangeError('"offset" is outside of buffer bounds');
379
- }
380
- if (array.byteLength < byteOffset + (length || 0)) {
381
- throw new RangeError('"length" is outside of buffer bounds');
382
- }
383
- let buf;
384
- if (byteOffset === void 0 && length === void 0) {
385
- buf = new Uint8Array(array);
386
- } else if (length === void 0) {
387
- buf = new Uint8Array(array, byteOffset);
388
- } else {
389
- buf = new Uint8Array(array, byteOffset, length);
390
- }
391
- Object.setPrototypeOf(buf, Buffer3.prototype);
392
- return buf;
393
- }
394
- function fromObject(obj) {
395
- if (Buffer3.isBuffer(obj)) {
396
- const len = checked(obj.length) | 0;
397
- const buf = createBuffer(len);
398
- if (buf.length === 0) {
399
- return buf;
400
- }
401
- obj.copy(buf, 0, 0, len);
402
- return buf;
403
- }
404
- if (obj.length !== void 0) {
405
- if (typeof obj.length !== "number" || numberIsNaN(obj.length)) {
406
- return createBuffer(0);
407
- }
408
- return fromArrayLike(obj);
409
- }
410
- if (obj.type === "Buffer" && Array.isArray(obj.data)) {
411
- return fromArrayLike(obj.data);
412
- }
413
- }
414
- function checked(length) {
415
- if (length >= K_MAX_LENGTH) {
416
- throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + " bytes");
417
- }
418
- return length | 0;
419
- }
420
- function SlowBuffer(length) {
421
- if (+length != length) {
422
- length = 0;
423
- }
424
- return Buffer3.alloc(+length);
425
- }
426
- Buffer3.isBuffer = function isBuffer(b) {
427
- return b != null && b._isBuffer === true && b !== Buffer3.prototype;
428
- };
429
- Buffer3.compare = function compare(a, b) {
430
- if (isInstance(a, Uint8Array))
431
- a = Buffer3.from(a, a.offset, a.byteLength);
432
- if (isInstance(b, Uint8Array))
433
- b = Buffer3.from(b, b.offset, b.byteLength);
434
- if (!Buffer3.isBuffer(a) || !Buffer3.isBuffer(b)) {
435
- throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
436
- }
437
- if (a === b)
438
- return 0;
439
- let x = a.length;
440
- let y = b.length;
441
- for (let i = 0, len = Math.min(x, y); i < len; ++i) {
442
- if (a[i] !== b[i]) {
443
- x = a[i];
444
- y = b[i];
445
- break;
446
- }
447
- }
448
- if (x < y)
449
- return -1;
450
- if (y < x)
451
- return 1;
452
- return 0;
453
- };
454
- Buffer3.isEncoding = function isEncoding(encoding) {
455
- switch (String(encoding).toLowerCase()) {
456
- case "hex":
457
- case "utf8":
458
- case "utf-8":
459
- case "ascii":
460
- case "latin1":
461
- case "binary":
462
- case "base64":
463
- case "ucs2":
464
- case "ucs-2":
465
- case "utf16le":
466
- case "utf-16le":
467
- return true;
468
- default:
469
- return false;
470
- }
471
- };
472
- Buffer3.concat = function concat(list, length) {
473
- if (!Array.isArray(list)) {
474
- throw new TypeError('"list" argument must be an Array of Buffers');
475
- }
476
- if (list.length === 0) {
477
- return Buffer3.alloc(0);
478
- }
479
- let i;
480
- if (length === void 0) {
481
- length = 0;
482
- for (i = 0; i < list.length; ++i) {
483
- length += list[i].length;
484
- }
485
- }
486
- const buffer = Buffer3.allocUnsafe(length);
487
- let pos = 0;
488
- for (i = 0; i < list.length; ++i) {
489
- let buf = list[i];
490
- if (isInstance(buf, Uint8Array)) {
491
- if (pos + buf.length > buffer.length) {
492
- if (!Buffer3.isBuffer(buf))
493
- buf = Buffer3.from(buf);
494
- buf.copy(buffer, pos);
495
- } else {
496
- Uint8Array.prototype.set.call(buffer, buf, pos);
497
- }
498
- } else if (!Buffer3.isBuffer(buf)) {
499
- throw new TypeError('"list" argument must be an Array of Buffers');
500
- } else {
501
- buf.copy(buffer, pos);
502
- }
503
- pos += buf.length;
504
- }
505
- return buffer;
506
- };
507
- function byteLength(string, encoding) {
508
- if (Buffer3.isBuffer(string)) {
509
- return string.length;
510
- }
511
- if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
512
- return string.byteLength;
513
- }
514
- if (typeof string !== "string") {
515
- throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
516
- }
517
- const len = string.length;
518
- const mustMatch = arguments.length > 2 && arguments[2] === true;
519
- if (!mustMatch && len === 0)
520
- return 0;
521
- let loweredCase = false;
522
- for (; ; ) {
523
- switch (encoding) {
524
- case "ascii":
525
- case "latin1":
526
- case "binary":
527
- return len;
528
- case "utf8":
529
- case "utf-8":
530
- return utf8ToBytes(string).length;
531
- case "ucs2":
532
- case "ucs-2":
533
- case "utf16le":
534
- case "utf-16le":
535
- return len * 2;
536
- case "hex":
537
- return len >>> 1;
538
- case "base64":
539
- return base64ToBytes(string).length;
540
- default:
541
- if (loweredCase) {
542
- return mustMatch ? -1 : utf8ToBytes(string).length;
543
- }
544
- encoding = ("" + encoding).toLowerCase();
545
- loweredCase = true;
546
- }
547
- }
548
- }
549
- Buffer3.byteLength = byteLength;
550
- function slowToString(encoding, start, end) {
551
- let loweredCase = false;
552
- if (start === void 0 || start < 0) {
553
- start = 0;
554
- }
555
- if (start > this.length) {
556
- return "";
557
- }
558
- if (end === void 0 || end > this.length) {
559
- end = this.length;
560
- }
561
- if (end <= 0) {
562
- return "";
563
- }
564
- end >>>= 0;
565
- start >>>= 0;
566
- if (end <= start) {
567
- return "";
568
- }
569
- if (!encoding)
570
- encoding = "utf8";
571
- while (true) {
572
- switch (encoding) {
573
- case "hex":
574
- return hexSlice(this, start, end);
575
- case "utf8":
576
- case "utf-8":
577
- return utf8Slice(this, start, end);
578
- case "ascii":
579
- return asciiSlice(this, start, end);
580
- case "latin1":
581
- case "binary":
582
- return latin1Slice(this, start, end);
583
- case "base64":
584
- return base64Slice(this, start, end);
585
- case "ucs2":
586
- case "ucs-2":
587
- case "utf16le":
588
- case "utf-16le":
589
- return utf16leSlice(this, start, end);
590
- default:
591
- if (loweredCase)
592
- throw new TypeError("Unknown encoding: " + encoding);
593
- encoding = (encoding + "").toLowerCase();
594
- loweredCase = true;
595
- }
596
- }
597
- }
598
- Buffer3.prototype._isBuffer = true;
599
- function swap(b, n, m) {
600
- const i = b[n];
601
- b[n] = b[m];
602
- b[m] = i;
603
- }
604
- Buffer3.prototype.swap16 = function swap16() {
605
- const len = this.length;
606
- if (len % 2 !== 0) {
607
- throw new RangeError("Buffer size must be a multiple of 16-bits");
608
- }
609
- for (let i = 0; i < len; i += 2) {
610
- swap(this, i, i + 1);
611
- }
612
- return this;
613
- };
614
- Buffer3.prototype.swap32 = function swap32() {
615
- const len = this.length;
616
- if (len % 4 !== 0) {
617
- throw new RangeError("Buffer size must be a multiple of 32-bits");
618
- }
619
- for (let i = 0; i < len; i += 4) {
620
- swap(this, i, i + 3);
621
- swap(this, i + 1, i + 2);
622
- }
623
- return this;
624
- };
625
- Buffer3.prototype.swap64 = function swap64() {
626
- const len = this.length;
627
- if (len % 8 !== 0) {
628
- throw new RangeError("Buffer size must be a multiple of 64-bits");
629
- }
630
- for (let i = 0; i < len; i += 8) {
631
- swap(this, i, i + 7);
632
- swap(this, i + 1, i + 6);
633
- swap(this, i + 2, i + 5);
634
- swap(this, i + 3, i + 4);
635
- }
636
- return this;
637
- };
638
- Buffer3.prototype.toString = function toString() {
639
- const length = this.length;
640
- if (length === 0)
641
- return "";
642
- if (arguments.length === 0)
643
- return utf8Slice(this, 0, length);
644
- return slowToString.apply(this, arguments);
645
- };
646
- Buffer3.prototype.toLocaleString = Buffer3.prototype.toString;
647
- Buffer3.prototype.equals = function equals(b) {
648
- if (!Buffer3.isBuffer(b))
649
- throw new TypeError("Argument must be a Buffer");
650
- if (this === b)
651
- return true;
652
- return Buffer3.compare(this, b) === 0;
653
- };
654
- Buffer3.prototype.inspect = function inspect() {
655
- let str = "";
656
- const max = exports.INSPECT_MAX_BYTES;
657
- str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
658
- if (this.length > max)
659
- str += " ... ";
660
- return "<Buffer " + str + ">";
661
- };
662
- if (customInspectSymbol) {
663
- Buffer3.prototype[customInspectSymbol] = Buffer3.prototype.inspect;
664
- }
665
- Buffer3.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
666
- if (isInstance(target, Uint8Array)) {
667
- target = Buffer3.from(target, target.offset, target.byteLength);
668
- }
669
- if (!Buffer3.isBuffer(target)) {
670
- throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target);
671
- }
672
- if (start === void 0) {
673
- start = 0;
674
- }
675
- if (end === void 0) {
676
- end = target ? target.length : 0;
677
- }
678
- if (thisStart === void 0) {
679
- thisStart = 0;
680
- }
681
- if (thisEnd === void 0) {
682
- thisEnd = this.length;
683
- }
684
- if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
685
- throw new RangeError("out of range index");
686
- }
687
- if (thisStart >= thisEnd && start >= end) {
688
- return 0;
689
- }
690
- if (thisStart >= thisEnd) {
691
- return -1;
692
- }
693
- if (start >= end) {
694
- return 1;
695
- }
696
- start >>>= 0;
697
- end >>>= 0;
698
- thisStart >>>= 0;
699
- thisEnd >>>= 0;
700
- if (this === target)
701
- return 0;
702
- let x = thisEnd - thisStart;
703
- let y = end - start;
704
- const len = Math.min(x, y);
705
- const thisCopy = this.slice(thisStart, thisEnd);
706
- const targetCopy = target.slice(start, end);
707
- for (let i = 0; i < len; ++i) {
708
- if (thisCopy[i] !== targetCopy[i]) {
709
- x = thisCopy[i];
710
- y = targetCopy[i];
711
- break;
712
- }
713
- }
714
- if (x < y)
715
- return -1;
716
- if (y < x)
717
- return 1;
718
- return 0;
719
- };
720
- function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
721
- if (buffer.length === 0)
722
- return -1;
723
- if (typeof byteOffset === "string") {
724
- encoding = byteOffset;
725
- byteOffset = 0;
726
- } else if (byteOffset > 2147483647) {
727
- byteOffset = 2147483647;
728
- } else if (byteOffset < -2147483648) {
729
- byteOffset = -2147483648;
730
- }
731
- byteOffset = +byteOffset;
732
- if (numberIsNaN(byteOffset)) {
733
- byteOffset = dir ? 0 : buffer.length - 1;
734
- }
735
- if (byteOffset < 0)
736
- byteOffset = buffer.length + byteOffset;
737
- if (byteOffset >= buffer.length) {
738
- if (dir)
739
- return -1;
740
- else
741
- byteOffset = buffer.length - 1;
742
- } else if (byteOffset < 0) {
743
- if (dir)
744
- byteOffset = 0;
745
- else
746
- return -1;
747
- }
748
- if (typeof val === "string") {
749
- val = Buffer3.from(val, encoding);
750
- }
751
- if (Buffer3.isBuffer(val)) {
752
- if (val.length === 0) {
753
- return -1;
754
- }
755
- return arrayIndexOf(buffer, val, byteOffset, encoding, dir);
756
- } else if (typeof val === "number") {
757
- val = val & 255;
758
- if (typeof Uint8Array.prototype.indexOf === "function") {
759
- if (dir) {
760
- return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);
761
- } else {
762
- return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);
763
- }
764
- }
765
- return arrayIndexOf(buffer, [val], byteOffset, encoding, dir);
766
- }
767
- throw new TypeError("val must be string, number or Buffer");
768
- }
769
- function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
770
- let indexSize = 1;
771
- let arrLength = arr.length;
772
- let valLength = val.length;
773
- if (encoding !== void 0) {
774
- encoding = String(encoding).toLowerCase();
775
- if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") {
776
- if (arr.length < 2 || val.length < 2) {
777
- return -1;
778
- }
779
- indexSize = 2;
780
- arrLength /= 2;
781
- valLength /= 2;
782
- byteOffset /= 2;
783
- }
784
- }
785
- function read(buf, i2) {
786
- if (indexSize === 1) {
787
- return buf[i2];
788
- } else {
789
- return buf.readUInt16BE(i2 * indexSize);
790
- }
791
- }
792
- let i;
793
- if (dir) {
794
- let foundIndex = -1;
795
- for (i = byteOffset; i < arrLength; i++) {
796
- if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
797
- if (foundIndex === -1)
798
- foundIndex = i;
799
- if (i - foundIndex + 1 === valLength)
800
- return foundIndex * indexSize;
801
- } else {
802
- if (foundIndex !== -1)
803
- i -= i - foundIndex;
804
- foundIndex = -1;
805
- }
806
- }
807
- } else {
808
- if (byteOffset + valLength > arrLength)
809
- byteOffset = arrLength - valLength;
810
- for (i = byteOffset; i >= 0; i--) {
811
- let found = true;
812
- for (let j = 0; j < valLength; j++) {
813
- if (read(arr, i + j) !== read(val, j)) {
814
- found = false;
815
- break;
816
- }
817
- }
818
- if (found)
819
- return i;
820
- }
821
- }
822
- return -1;
823
- }
824
- Buffer3.prototype.includes = function includes(val, byteOffset, encoding) {
825
- return this.indexOf(val, byteOffset, encoding) !== -1;
826
- };
827
- Buffer3.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
828
- return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
829
- };
830
- Buffer3.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
831
- return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
832
- };
833
- function hexWrite(buf, string, offset, length) {
834
- offset = Number(offset) || 0;
835
- const remaining = buf.length - offset;
836
- if (!length) {
837
- length = remaining;
838
- } else {
839
- length = Number(length);
840
- if (length > remaining) {
841
- length = remaining;
842
- }
843
- }
844
- const strLen = string.length;
845
- if (length > strLen / 2) {
846
- length = strLen / 2;
847
- }
848
- let i;
849
- for (i = 0; i < length; ++i) {
850
- const parsed = parseInt(string.substr(i * 2, 2), 16);
851
- if (numberIsNaN(parsed))
852
- return i;
853
- buf[offset + i] = parsed;
854
- }
855
- return i;
856
- }
857
- function utf8Write(buf, string, offset, length) {
858
- return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
859
- }
860
- function asciiWrite(buf, string, offset, length) {
861
- return blitBuffer(asciiToBytes(string), buf, offset, length);
862
- }
863
- function base64Write(buf, string, offset, length) {
864
- return blitBuffer(base64ToBytes(string), buf, offset, length);
865
- }
866
- function ucs2Write(buf, string, offset, length) {
867
- return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
868
- }
869
- Buffer3.prototype.write = function write(string, offset, length, encoding) {
870
- if (offset === void 0) {
871
- encoding = "utf8";
872
- length = this.length;
873
- offset = 0;
874
- } else if (length === void 0 && typeof offset === "string") {
875
- encoding = offset;
876
- length = this.length;
877
- offset = 0;
878
- } else if (isFinite(offset)) {
879
- offset = offset >>> 0;
880
- if (isFinite(length)) {
881
- length = length >>> 0;
882
- if (encoding === void 0)
883
- encoding = "utf8";
884
- } else {
885
- encoding = length;
886
- length = void 0;
887
- }
888
- } else {
889
- throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
890
- }
891
- const remaining = this.length - offset;
892
- if (length === void 0 || length > remaining)
893
- length = remaining;
894
- if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
895
- throw new RangeError("Attempt to write outside buffer bounds");
896
- }
897
- if (!encoding)
898
- encoding = "utf8";
899
- let loweredCase = false;
900
- for (; ; ) {
901
- switch (encoding) {
902
- case "hex":
903
- return hexWrite(this, string, offset, length);
904
- case "utf8":
905
- case "utf-8":
906
- return utf8Write(this, string, offset, length);
907
- case "ascii":
908
- case "latin1":
909
- case "binary":
910
- return asciiWrite(this, string, offset, length);
911
- case "base64":
912
- return base64Write(this, string, offset, length);
913
- case "ucs2":
914
- case "ucs-2":
915
- case "utf16le":
916
- case "utf-16le":
917
- return ucs2Write(this, string, offset, length);
918
- default:
919
- if (loweredCase)
920
- throw new TypeError("Unknown encoding: " + encoding);
921
- encoding = ("" + encoding).toLowerCase();
922
- loweredCase = true;
923
- }
924
- }
925
- };
926
- Buffer3.prototype.toJSON = function toJSON() {
927
- return {
928
- type: "Buffer",
929
- data: Array.prototype.slice.call(this._arr || this, 0)
930
- };
931
- };
932
- function base64Slice(buf, start, end) {
933
- if (start === 0 && end === buf.length) {
934
- return base64.fromByteArray(buf);
935
- } else {
936
- return base64.fromByteArray(buf.slice(start, end));
937
- }
938
- }
939
- function utf8Slice(buf, start, end) {
940
- end = Math.min(buf.length, end);
941
- const res = [];
942
- let i = start;
943
- while (i < end) {
944
- const firstByte = buf[i];
945
- let codePoint = null;
946
- let bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
947
- if (i + bytesPerSequence <= end) {
948
- let secondByte, thirdByte, fourthByte, tempCodePoint;
949
- switch (bytesPerSequence) {
950
- case 1:
951
- if (firstByte < 128) {
952
- codePoint = firstByte;
953
- }
954
- break;
955
- case 2:
956
- secondByte = buf[i + 1];
957
- if ((secondByte & 192) === 128) {
958
- tempCodePoint = (firstByte & 31) << 6 | secondByte & 63;
959
- if (tempCodePoint > 127) {
960
- codePoint = tempCodePoint;
961
- }
962
- }
963
- break;
964
- case 3:
965
- secondByte = buf[i + 1];
966
- thirdByte = buf[i + 2];
967
- if ((secondByte & 192) === 128 && (thirdByte & 192) === 128) {
968
- tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63;
969
- if (tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343)) {
970
- codePoint = tempCodePoint;
971
- }
972
- }
973
- break;
974
- case 4:
975
- secondByte = buf[i + 1];
976
- thirdByte = buf[i + 2];
977
- fourthByte = buf[i + 3];
978
- if ((secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) {
979
- tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63;
980
- if (tempCodePoint > 65535 && tempCodePoint < 1114112) {
981
- codePoint = tempCodePoint;
982
- }
983
- }
984
- }
985
- }
986
- if (codePoint === null) {
987
- codePoint = 65533;
988
- bytesPerSequence = 1;
989
- } else if (codePoint > 65535) {
990
- codePoint -= 65536;
991
- res.push(codePoint >>> 10 & 1023 | 55296);
992
- codePoint = 56320 | codePoint & 1023;
993
- }
994
- res.push(codePoint);
995
- i += bytesPerSequence;
996
- }
997
- return decodeCodePointsArray(res);
998
- }
999
- const MAX_ARGUMENTS_LENGTH = 4096;
1000
- function decodeCodePointsArray(codePoints) {
1001
- const len = codePoints.length;
1002
- if (len <= MAX_ARGUMENTS_LENGTH) {
1003
- return String.fromCharCode.apply(String, codePoints);
1004
- }
1005
- let res = "";
1006
- let i = 0;
1007
- while (i < len) {
1008
- res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));
1009
- }
1010
- return res;
1011
- }
1012
- function asciiSlice(buf, start, end) {
1013
- let ret = "";
1014
- end = Math.min(buf.length, end);
1015
- for (let i = start; i < end; ++i) {
1016
- ret += String.fromCharCode(buf[i] & 127);
1017
- }
1018
- return ret;
1019
- }
1020
- function latin1Slice(buf, start, end) {
1021
- let ret = "";
1022
- end = Math.min(buf.length, end);
1023
- for (let i = start; i < end; ++i) {
1024
- ret += String.fromCharCode(buf[i]);
1025
- }
1026
- return ret;
1027
- }
1028
- function hexSlice(buf, start, end) {
1029
- const len = buf.length;
1030
- if (!start || start < 0)
1031
- start = 0;
1032
- if (!end || end < 0 || end > len)
1033
- end = len;
1034
- let out = "";
1035
- for (let i = start; i < end; ++i) {
1036
- out += hexSliceLookupTable[buf[i]];
1037
- }
1038
- return out;
1039
- }
1040
- function utf16leSlice(buf, start, end) {
1041
- const bytes = buf.slice(start, end);
1042
- let res = "";
1043
- for (let i = 0; i < bytes.length - 1; i += 2) {
1044
- res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
1045
- }
1046
- return res;
1047
- }
1048
- Buffer3.prototype.slice = function slice(start, end) {
1049
- const len = this.length;
1050
- start = ~~start;
1051
- end = end === void 0 ? len : ~~end;
1052
- if (start < 0) {
1053
- start += len;
1054
- if (start < 0)
1055
- start = 0;
1056
- } else if (start > len) {
1057
- start = len;
1058
- }
1059
- if (end < 0) {
1060
- end += len;
1061
- if (end < 0)
1062
- end = 0;
1063
- } else if (end > len) {
1064
- end = len;
1065
- }
1066
- if (end < start)
1067
- end = start;
1068
- const newBuf = this.subarray(start, end);
1069
- Object.setPrototypeOf(newBuf, Buffer3.prototype);
1070
- return newBuf;
1071
- };
1072
- function checkOffset(offset, ext, length) {
1073
- if (offset % 1 !== 0 || offset < 0)
1074
- throw new RangeError("offset is not uint");
1075
- if (offset + ext > length)
1076
- throw new RangeError("Trying to access beyond buffer length");
1077
- }
1078
- Buffer3.prototype.readUintLE = Buffer3.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
1079
- offset = offset >>> 0;
1080
- byteLength2 = byteLength2 >>> 0;
1081
- if (!noAssert)
1082
- checkOffset(offset, byteLength2, this.length);
1083
- let val = this[offset];
1084
- let mul = 1;
1085
- let i = 0;
1086
- while (++i < byteLength2 && (mul *= 256)) {
1087
- val += this[offset + i] * mul;
1088
- }
1089
- return val;
1090
- };
1091
- Buffer3.prototype.readUintBE = Buffer3.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
1092
- offset = offset >>> 0;
1093
- byteLength2 = byteLength2 >>> 0;
1094
- if (!noAssert) {
1095
- checkOffset(offset, byteLength2, this.length);
1096
- }
1097
- let val = this[offset + --byteLength2];
1098
- let mul = 1;
1099
- while (byteLength2 > 0 && (mul *= 256)) {
1100
- val += this[offset + --byteLength2] * mul;
1101
- }
1102
- return val;
1103
- };
1104
- Buffer3.prototype.readUint8 = Buffer3.prototype.readUInt8 = function readUInt8(offset, noAssert) {
1105
- offset = offset >>> 0;
1106
- if (!noAssert)
1107
- checkOffset(offset, 1, this.length);
1108
- return this[offset];
1109
- };
1110
- Buffer3.prototype.readUint16LE = Buffer3.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
1111
- offset = offset >>> 0;
1112
- if (!noAssert)
1113
- checkOffset(offset, 2, this.length);
1114
- return this[offset] | this[offset + 1] << 8;
1115
- };
1116
- Buffer3.prototype.readUint16BE = Buffer3.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
1117
- offset = offset >>> 0;
1118
- if (!noAssert)
1119
- checkOffset(offset, 2, this.length);
1120
- return this[offset] << 8 | this[offset + 1];
1121
- };
1122
- Buffer3.prototype.readUint32LE = Buffer3.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
1123
- offset = offset >>> 0;
1124
- if (!noAssert)
1125
- checkOffset(offset, 4, this.length);
1126
- return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
1127
- };
1128
- Buffer3.prototype.readUint32BE = Buffer3.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
1129
- offset = offset >>> 0;
1130
- if (!noAssert)
1131
- checkOffset(offset, 4, this.length);
1132
- return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
1133
- };
1134
- Buffer3.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
1135
- offset = offset >>> 0;
1136
- validateNumber(offset, "offset");
1137
- const first = this[offset];
1138
- const last = this[offset + 7];
1139
- if (first === void 0 || last === void 0) {
1140
- boundsError(offset, this.length - 8);
1141
- }
1142
- const lo = first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24;
1143
- const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
1144
- return BigInt(lo) + (BigInt(hi) << BigInt(32));
1145
- });
1146
- Buffer3.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
1147
- offset = offset >>> 0;
1148
- validateNumber(offset, "offset");
1149
- const first = this[offset];
1150
- const last = this[offset + 7];
1151
- if (first === void 0 || last === void 0) {
1152
- boundsError(offset, this.length - 8);
1153
- }
1154
- const hi = first * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
1155
- const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
1156
- return (BigInt(hi) << BigInt(32)) + BigInt(lo);
1157
- });
1158
- Buffer3.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
1159
- offset = offset >>> 0;
1160
- byteLength2 = byteLength2 >>> 0;
1161
- if (!noAssert)
1162
- checkOffset(offset, byteLength2, this.length);
1163
- let val = this[offset];
1164
- let mul = 1;
1165
- let i = 0;
1166
- while (++i < byteLength2 && (mul *= 256)) {
1167
- val += this[offset + i] * mul;
1168
- }
1169
- mul *= 128;
1170
- if (val >= mul)
1171
- val -= Math.pow(2, 8 * byteLength2);
1172
- return val;
1173
- };
1174
- Buffer3.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
1175
- offset = offset >>> 0;
1176
- byteLength2 = byteLength2 >>> 0;
1177
- if (!noAssert)
1178
- checkOffset(offset, byteLength2, this.length);
1179
- let i = byteLength2;
1180
- let mul = 1;
1181
- let val = this[offset + --i];
1182
- while (i > 0 && (mul *= 256)) {
1183
- val += this[offset + --i] * mul;
1184
- }
1185
- mul *= 128;
1186
- if (val >= mul)
1187
- val -= Math.pow(2, 8 * byteLength2);
1188
- return val;
1189
- };
1190
- Buffer3.prototype.readInt8 = function readInt8(offset, noAssert) {
1191
- offset = offset >>> 0;
1192
- if (!noAssert)
1193
- checkOffset(offset, 1, this.length);
1194
- if (!(this[offset] & 128))
1195
- return this[offset];
1196
- return (255 - this[offset] + 1) * -1;
1197
- };
1198
- Buffer3.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
1199
- offset = offset >>> 0;
1200
- if (!noAssert)
1201
- checkOffset(offset, 2, this.length);
1202
- const val = this[offset] | this[offset + 1] << 8;
1203
- return val & 32768 ? val | 4294901760 : val;
1204
- };
1205
- Buffer3.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
1206
- offset = offset >>> 0;
1207
- if (!noAssert)
1208
- checkOffset(offset, 2, this.length);
1209
- const val = this[offset + 1] | this[offset] << 8;
1210
- return val & 32768 ? val | 4294901760 : val;
1211
- };
1212
- Buffer3.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
1213
- offset = offset >>> 0;
1214
- if (!noAssert)
1215
- checkOffset(offset, 4, this.length);
1216
- return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
1217
- };
1218
- Buffer3.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
1219
- offset = offset >>> 0;
1220
- if (!noAssert)
1221
- checkOffset(offset, 4, this.length);
1222
- return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
1223
- };
1224
- Buffer3.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
1225
- offset = offset >>> 0;
1226
- validateNumber(offset, "offset");
1227
- const first = this[offset];
1228
- const last = this[offset + 7];
1229
- if (first === void 0 || last === void 0) {
1230
- boundsError(offset, this.length - 8);
1231
- }
1232
- const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
1233
- return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
1234
- });
1235
- Buffer3.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
1236
- offset = offset >>> 0;
1237
- validateNumber(offset, "offset");
1238
- const first = this[offset];
1239
- const last = this[offset + 7];
1240
- if (first === void 0 || last === void 0) {
1241
- boundsError(offset, this.length - 8);
1242
- }
1243
- const val = (first << 24) + // Overflow
1244
- this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
1245
- return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
1246
- });
1247
- Buffer3.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
1248
- offset = offset >>> 0;
1249
- if (!noAssert)
1250
- checkOffset(offset, 4, this.length);
1251
- return ieee754.read(this, offset, true, 23, 4);
1252
- };
1253
- Buffer3.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
1254
- offset = offset >>> 0;
1255
- if (!noAssert)
1256
- checkOffset(offset, 4, this.length);
1257
- return ieee754.read(this, offset, false, 23, 4);
1258
- };
1259
- Buffer3.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
1260
- offset = offset >>> 0;
1261
- if (!noAssert)
1262
- checkOffset(offset, 8, this.length);
1263
- return ieee754.read(this, offset, true, 52, 8);
1264
- };
1265
- Buffer3.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
1266
- offset = offset >>> 0;
1267
- if (!noAssert)
1268
- checkOffset(offset, 8, this.length);
1269
- return ieee754.read(this, offset, false, 52, 8);
1270
- };
1271
- function checkInt(buf, value, offset, ext, max, min) {
1272
- if (!Buffer3.isBuffer(buf))
1273
- throw new TypeError('"buffer" argument must be a Buffer instance');
1274
- if (value > max || value < min)
1275
- throw new RangeError('"value" argument is out of bounds');
1276
- if (offset + ext > buf.length)
1277
- throw new RangeError("Index out of range");
1278
- }
1279
- Buffer3.prototype.writeUintLE = Buffer3.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
1280
- value = +value;
1281
- offset = offset >>> 0;
1282
- byteLength2 = byteLength2 >>> 0;
1283
- if (!noAssert) {
1284
- const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1285
- checkInt(this, value, offset, byteLength2, maxBytes, 0);
1286
- }
1287
- let mul = 1;
1288
- let i = 0;
1289
- this[offset] = value & 255;
1290
- while (++i < byteLength2 && (mul *= 256)) {
1291
- this[offset + i] = value / mul & 255;
1292
- }
1293
- return offset + byteLength2;
1294
- };
1295
- Buffer3.prototype.writeUintBE = Buffer3.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
1296
- value = +value;
1297
- offset = offset >>> 0;
1298
- byteLength2 = byteLength2 >>> 0;
1299
- if (!noAssert) {
1300
- const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1301
- checkInt(this, value, offset, byteLength2, maxBytes, 0);
1302
- }
1303
- let i = byteLength2 - 1;
1304
- let mul = 1;
1305
- this[offset + i] = value & 255;
1306
- while (--i >= 0 && (mul *= 256)) {
1307
- this[offset + i] = value / mul & 255;
1308
- }
1309
- return offset + byteLength2;
1310
- };
1311
- Buffer3.prototype.writeUint8 = Buffer3.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
1312
- value = +value;
1313
- offset = offset >>> 0;
1314
- if (!noAssert)
1315
- checkInt(this, value, offset, 1, 255, 0);
1316
- this[offset] = value & 255;
1317
- return offset + 1;
1318
- };
1319
- Buffer3.prototype.writeUint16LE = Buffer3.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
1320
- value = +value;
1321
- offset = offset >>> 0;
1322
- if (!noAssert)
1323
- checkInt(this, value, offset, 2, 65535, 0);
1324
- this[offset] = value & 255;
1325
- this[offset + 1] = value >>> 8;
1326
- return offset + 2;
1327
- };
1328
- Buffer3.prototype.writeUint16BE = Buffer3.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
1329
- value = +value;
1330
- offset = offset >>> 0;
1331
- if (!noAssert)
1332
- checkInt(this, value, offset, 2, 65535, 0);
1333
- this[offset] = value >>> 8;
1334
- this[offset + 1] = value & 255;
1335
- return offset + 2;
1336
- };
1337
- Buffer3.prototype.writeUint32LE = Buffer3.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
1338
- value = +value;
1339
- offset = offset >>> 0;
1340
- if (!noAssert)
1341
- checkInt(this, value, offset, 4, 4294967295, 0);
1342
- this[offset + 3] = value >>> 24;
1343
- this[offset + 2] = value >>> 16;
1344
- this[offset + 1] = value >>> 8;
1345
- this[offset] = value & 255;
1346
- return offset + 4;
1347
- };
1348
- Buffer3.prototype.writeUint32BE = Buffer3.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
1349
- value = +value;
1350
- offset = offset >>> 0;
1351
- if (!noAssert)
1352
- checkInt(this, value, offset, 4, 4294967295, 0);
1353
- this[offset] = value >>> 24;
1354
- this[offset + 1] = value >>> 16;
1355
- this[offset + 2] = value >>> 8;
1356
- this[offset + 3] = value & 255;
1357
- return offset + 4;
1358
- };
1359
- function wrtBigUInt64LE(buf, value, offset, min, max) {
1360
- checkIntBI(value, min, max, buf, offset, 7);
1361
- let lo = Number(value & BigInt(4294967295));
1362
- buf[offset++] = lo;
1363
- lo = lo >> 8;
1364
- buf[offset++] = lo;
1365
- lo = lo >> 8;
1366
- buf[offset++] = lo;
1367
- lo = lo >> 8;
1368
- buf[offset++] = lo;
1369
- let hi = Number(value >> BigInt(32) & BigInt(4294967295));
1370
- buf[offset++] = hi;
1371
- hi = hi >> 8;
1372
- buf[offset++] = hi;
1373
- hi = hi >> 8;
1374
- buf[offset++] = hi;
1375
- hi = hi >> 8;
1376
- buf[offset++] = hi;
1377
- return offset;
1378
- }
1379
- function wrtBigUInt64BE(buf, value, offset, min, max) {
1380
- checkIntBI(value, min, max, buf, offset, 7);
1381
- let lo = Number(value & BigInt(4294967295));
1382
- buf[offset + 7] = lo;
1383
- lo = lo >> 8;
1384
- buf[offset + 6] = lo;
1385
- lo = lo >> 8;
1386
- buf[offset + 5] = lo;
1387
- lo = lo >> 8;
1388
- buf[offset + 4] = lo;
1389
- let hi = Number(value >> BigInt(32) & BigInt(4294967295));
1390
- buf[offset + 3] = hi;
1391
- hi = hi >> 8;
1392
- buf[offset + 2] = hi;
1393
- hi = hi >> 8;
1394
- buf[offset + 1] = hi;
1395
- hi = hi >> 8;
1396
- buf[offset] = hi;
1397
- return offset + 8;
1398
- }
1399
- Buffer3.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
1400
- return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1401
- });
1402
- Buffer3.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
1403
- return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1404
- });
1405
- Buffer3.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
1406
- value = +value;
1407
- offset = offset >>> 0;
1408
- if (!noAssert) {
1409
- const limit = Math.pow(2, 8 * byteLength2 - 1);
1410
- checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1411
- }
1412
- let i = 0;
1413
- let mul = 1;
1414
- let sub = 0;
1415
- this[offset] = value & 255;
1416
- while (++i < byteLength2 && (mul *= 256)) {
1417
- if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
1418
- sub = 1;
1419
- }
1420
- this[offset + i] = (value / mul >> 0) - sub & 255;
1421
- }
1422
- return offset + byteLength2;
1423
- };
1424
- Buffer3.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
1425
- value = +value;
1426
- offset = offset >>> 0;
1427
- if (!noAssert) {
1428
- const limit = Math.pow(2, 8 * byteLength2 - 1);
1429
- checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1430
- }
1431
- let i = byteLength2 - 1;
1432
- let mul = 1;
1433
- let sub = 0;
1434
- this[offset + i] = value & 255;
1435
- while (--i >= 0 && (mul *= 256)) {
1436
- if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
1437
- sub = 1;
1438
- }
1439
- this[offset + i] = (value / mul >> 0) - sub & 255;
1440
- }
1441
- return offset + byteLength2;
1442
- };
1443
- Buffer3.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
1444
- value = +value;
1445
- offset = offset >>> 0;
1446
- if (!noAssert)
1447
- checkInt(this, value, offset, 1, 127, -128);
1448
- if (value < 0)
1449
- value = 255 + value + 1;
1450
- this[offset] = value & 255;
1451
- return offset + 1;
1452
- };
1453
- Buffer3.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
1454
- value = +value;
1455
- offset = offset >>> 0;
1456
- if (!noAssert)
1457
- checkInt(this, value, offset, 2, 32767, -32768);
1458
- this[offset] = value & 255;
1459
- this[offset + 1] = value >>> 8;
1460
- return offset + 2;
1461
- };
1462
- Buffer3.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
1463
- value = +value;
1464
- offset = offset >>> 0;
1465
- if (!noAssert)
1466
- checkInt(this, value, offset, 2, 32767, -32768);
1467
- this[offset] = value >>> 8;
1468
- this[offset + 1] = value & 255;
1469
- return offset + 2;
1470
- };
1471
- Buffer3.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
1472
- value = +value;
1473
- offset = offset >>> 0;
1474
- if (!noAssert)
1475
- checkInt(this, value, offset, 4, 2147483647, -2147483648);
1476
- this[offset] = value & 255;
1477
- this[offset + 1] = value >>> 8;
1478
- this[offset + 2] = value >>> 16;
1479
- this[offset + 3] = value >>> 24;
1480
- return offset + 4;
1481
- };
1482
- Buffer3.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
1483
- value = +value;
1484
- offset = offset >>> 0;
1485
- if (!noAssert)
1486
- checkInt(this, value, offset, 4, 2147483647, -2147483648);
1487
- if (value < 0)
1488
- value = 4294967295 + value + 1;
1489
- this[offset] = value >>> 24;
1490
- this[offset + 1] = value >>> 16;
1491
- this[offset + 2] = value >>> 8;
1492
- this[offset + 3] = value & 255;
1493
- return offset + 4;
1494
- };
1495
- Buffer3.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
1496
- return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1497
- });
1498
- Buffer3.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
1499
- return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1500
- });
1501
- function checkIEEE754(buf, value, offset, ext, max, min) {
1502
- if (offset + ext > buf.length)
1503
- throw new RangeError("Index out of range");
1504
- if (offset < 0)
1505
- throw new RangeError("Index out of range");
1506
- }
1507
- function writeFloat(buf, value, offset, littleEndian, noAssert) {
1508
- value = +value;
1509
- offset = offset >>> 0;
1510
- if (!noAssert) {
1511
- checkIEEE754(buf, value, offset, 4);
1512
- }
1513
- ieee754.write(buf, value, offset, littleEndian, 23, 4);
1514
- return offset + 4;
1515
- }
1516
- Buffer3.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
1517
- return writeFloat(this, value, offset, true, noAssert);
1518
- };
1519
- Buffer3.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
1520
- return writeFloat(this, value, offset, false, noAssert);
1521
- };
1522
- function writeDouble(buf, value, offset, littleEndian, noAssert) {
1523
- value = +value;
1524
- offset = offset >>> 0;
1525
- if (!noAssert) {
1526
- checkIEEE754(buf, value, offset, 8);
1527
- }
1528
- ieee754.write(buf, value, offset, littleEndian, 52, 8);
1529
- return offset + 8;
1530
- }
1531
- Buffer3.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
1532
- return writeDouble(this, value, offset, true, noAssert);
1533
- };
1534
- Buffer3.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
1535
- return writeDouble(this, value, offset, false, noAssert);
1536
- };
1537
- Buffer3.prototype.copy = function copy(target, targetStart, start, end) {
1538
- if (!Buffer3.isBuffer(target))
1539
- throw new TypeError("argument should be a Buffer");
1540
- if (!start)
1541
- start = 0;
1542
- if (!end && end !== 0)
1543
- end = this.length;
1544
- if (targetStart >= target.length)
1545
- targetStart = target.length;
1546
- if (!targetStart)
1547
- targetStart = 0;
1548
- if (end > 0 && end < start)
1549
- end = start;
1550
- if (end === start)
1551
- return 0;
1552
- if (target.length === 0 || this.length === 0)
1553
- return 0;
1554
- if (targetStart < 0) {
1555
- throw new RangeError("targetStart out of bounds");
1556
- }
1557
- if (start < 0 || start >= this.length)
1558
- throw new RangeError("Index out of range");
1559
- if (end < 0)
1560
- throw new RangeError("sourceEnd out of bounds");
1561
- if (end > this.length)
1562
- end = this.length;
1563
- if (target.length - targetStart < end - start) {
1564
- end = target.length - targetStart + start;
1565
- }
1566
- const len = end - start;
1567
- if (this === target && typeof Uint8Array.prototype.copyWithin === "function") {
1568
- this.copyWithin(targetStart, start, end);
1569
- } else {
1570
- Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);
1571
- }
1572
- return len;
1573
- };
1574
- Buffer3.prototype.fill = function fill(val, start, end, encoding) {
1575
- if (typeof val === "string") {
1576
- if (typeof start === "string") {
1577
- encoding = start;
1578
- start = 0;
1579
- end = this.length;
1580
- } else if (typeof end === "string") {
1581
- encoding = end;
1582
- end = this.length;
1583
- }
1584
- if (encoding !== void 0 && typeof encoding !== "string") {
1585
- throw new TypeError("encoding must be a string");
1586
- }
1587
- if (typeof encoding === "string" && !Buffer3.isEncoding(encoding)) {
1588
- throw new TypeError("Unknown encoding: " + encoding);
1589
- }
1590
- if (val.length === 1) {
1591
- const code = val.charCodeAt(0);
1592
- if (encoding === "utf8" && code < 128 || encoding === "latin1") {
1593
- val = code;
1594
- }
1595
- }
1596
- } else if (typeof val === "number") {
1597
- val = val & 255;
1598
- } else if (typeof val === "boolean") {
1599
- val = Number(val);
1600
- }
1601
- if (start < 0 || this.length < start || this.length < end) {
1602
- throw new RangeError("Out of range index");
1603
- }
1604
- if (end <= start) {
1605
- return this;
1606
- }
1607
- start = start >>> 0;
1608
- end = end === void 0 ? this.length : end >>> 0;
1609
- if (!val)
1610
- val = 0;
1611
- let i;
1612
- if (typeof val === "number") {
1613
- for (i = start; i < end; ++i) {
1614
- this[i] = val;
1615
- }
1616
- } else {
1617
- const bytes = Buffer3.isBuffer(val) ? val : Buffer3.from(val, encoding);
1618
- const len = bytes.length;
1619
- if (len === 0) {
1620
- throw new TypeError('The value "' + val + '" is invalid for argument "value"');
1621
- }
1622
- for (i = 0; i < end - start; ++i) {
1623
- this[i + start] = bytes[i % len];
1624
- }
1625
- }
1626
- return this;
1627
- };
1628
- const errors = {};
1629
- function E(sym, getMessage, Base) {
1630
- errors[sym] = class NodeError extends Base {
1631
- constructor() {
1632
- super();
1633
- Object.defineProperty(this, "message", {
1634
- value: getMessage.apply(this, arguments),
1635
- writable: true,
1636
- configurable: true
1637
- });
1638
- this.name = `${this.name} [${sym}]`;
1639
- this.stack;
1640
- delete this.name;
1641
- }
1642
- get code() {
1643
- return sym;
1644
- }
1645
- set code(value) {
1646
- Object.defineProperty(this, "code", {
1647
- configurable: true,
1648
- enumerable: true,
1649
- value,
1650
- writable: true
1651
- });
1652
- }
1653
- toString() {
1654
- return `${this.name} [${sym}]: ${this.message}`;
1655
- }
1656
- };
1657
- }
1658
- E("ERR_BUFFER_OUT_OF_BOUNDS", function(name) {
1659
- if (name) {
1660
- return `${name} is outside of buffer bounds`;
1661
- }
1662
- return "Attempt to access memory outside buffer bounds";
1663
- }, RangeError);
1664
- E("ERR_INVALID_ARG_TYPE", function(name, actual) {
1665
- return `The "${name}" argument must be of type number. Received type ${typeof actual}`;
1666
- }, TypeError);
1667
- E("ERR_OUT_OF_RANGE", function(str, range, input) {
1668
- let msg = `The value of "${str}" is out of range.`;
1669
- let received = input;
1670
- if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
1671
- received = addNumericalSeparator(String(input));
1672
- } else if (typeof input === "bigint") {
1673
- received = String(input);
1674
- if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {
1675
- received = addNumericalSeparator(received);
1676
- }
1677
- received += "n";
1678
- }
1679
- msg += ` It must be ${range}. Received ${received}`;
1680
- return msg;
1681
- }, RangeError);
1682
- function addNumericalSeparator(val) {
1683
- let res = "";
1684
- let i = val.length;
1685
- const start = val[0] === "-" ? 1 : 0;
1686
- for (; i >= start + 4; i -= 3) {
1687
- res = `_${val.slice(i - 3, i)}${res}`;
1688
- }
1689
- return `${val.slice(0, i)}${res}`;
1690
- }
1691
- function checkBounds(buf, offset, byteLength2) {
1692
- validateNumber(offset, "offset");
1693
- if (buf[offset] === void 0 || buf[offset + byteLength2] === void 0) {
1694
- boundsError(offset, buf.length - (byteLength2 + 1));
1695
- }
1696
- }
1697
- function checkIntBI(value, min, max, buf, offset, byteLength2) {
1698
- if (value > max || value < min) {
1699
- const n = typeof min === "bigint" ? "n" : "";
1700
- let range;
1701
- {
1702
- if (min === 0 || min === BigInt(0)) {
1703
- range = `>= 0${n} and < 2${n} ** ${(byteLength2 + 1) * 8}${n}`;
1704
- } else {
1705
- range = `>= -(2${n} ** ${(byteLength2 + 1) * 8 - 1}${n}) and < 2 ** ${(byteLength2 + 1) * 8 - 1}${n}`;
1706
- }
1707
- }
1708
- throw new errors.ERR_OUT_OF_RANGE("value", range, value);
1709
- }
1710
- checkBounds(buf, offset, byteLength2);
1711
- }
1712
- function validateNumber(value, name) {
1713
- if (typeof value !== "number") {
1714
- throw new errors.ERR_INVALID_ARG_TYPE(name, "number", value);
1715
- }
1716
- }
1717
- function boundsError(value, length, type) {
1718
- if (Math.floor(value) !== value) {
1719
- validateNumber(value, type);
1720
- throw new errors.ERR_OUT_OF_RANGE("offset", "an integer", value);
1721
- }
1722
- if (length < 0) {
1723
- throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();
1724
- }
1725
- throw new errors.ERR_OUT_OF_RANGE("offset", `>= ${0} and <= ${length}`, value);
1726
- }
1727
- const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
1728
- function base64clean(str) {
1729
- str = str.split("=")[0];
1730
- str = str.trim().replace(INVALID_BASE64_RE, "");
1731
- if (str.length < 2)
1732
- return "";
1733
- while (str.length % 4 !== 0) {
1734
- str = str + "=";
1735
- }
1736
- return str;
1737
- }
1738
- function utf8ToBytes(string, units) {
1739
- units = units || Infinity;
1740
- let codePoint;
1741
- const length = string.length;
1742
- let leadSurrogate = null;
1743
- const bytes = [];
1744
- for (let i = 0; i < length; ++i) {
1745
- codePoint = string.charCodeAt(i);
1746
- if (codePoint > 55295 && codePoint < 57344) {
1747
- if (!leadSurrogate) {
1748
- if (codePoint > 56319) {
1749
- if ((units -= 3) > -1)
1750
- bytes.push(239, 191, 189);
1751
- continue;
1752
- } else if (i + 1 === length) {
1753
- if ((units -= 3) > -1)
1754
- bytes.push(239, 191, 189);
1755
- continue;
1756
- }
1757
- leadSurrogate = codePoint;
1758
- continue;
1759
- }
1760
- if (codePoint < 56320) {
1761
- if ((units -= 3) > -1)
1762
- bytes.push(239, 191, 189);
1763
- leadSurrogate = codePoint;
1764
- continue;
1765
- }
1766
- codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;
1767
- } else if (leadSurrogate) {
1768
- if ((units -= 3) > -1)
1769
- bytes.push(239, 191, 189);
1770
- }
1771
- leadSurrogate = null;
1772
- if (codePoint < 128) {
1773
- if ((units -= 1) < 0)
1774
- break;
1775
- bytes.push(codePoint);
1776
- } else if (codePoint < 2048) {
1777
- if ((units -= 2) < 0)
1778
- break;
1779
- bytes.push(codePoint >> 6 | 192, codePoint & 63 | 128);
1780
- } else if (codePoint < 65536) {
1781
- if ((units -= 3) < 0)
1782
- break;
1783
- bytes.push(codePoint >> 12 | 224, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
1784
- } else if (codePoint < 1114112) {
1785
- if ((units -= 4) < 0)
1786
- break;
1787
- bytes.push(codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
1788
- } else {
1789
- throw new Error("Invalid code point");
1790
- }
1791
- }
1792
- return bytes;
1793
- }
1794
- function asciiToBytes(str) {
1795
- const byteArray = [];
1796
- for (let i = 0; i < str.length; ++i) {
1797
- byteArray.push(str.charCodeAt(i) & 255);
1798
- }
1799
- return byteArray;
1800
- }
1801
- function utf16leToBytes(str, units) {
1802
- let c, hi, lo;
1803
- const byteArray = [];
1804
- for (let i = 0; i < str.length; ++i) {
1805
- if ((units -= 2) < 0)
1806
- break;
1807
- c = str.charCodeAt(i);
1808
- hi = c >> 8;
1809
- lo = c % 256;
1810
- byteArray.push(lo);
1811
- byteArray.push(hi);
1812
- }
1813
- return byteArray;
1814
- }
1815
- function base64ToBytes(str) {
1816
- return base64.toByteArray(base64clean(str));
1817
- }
1818
- function blitBuffer(src, dst, offset, length) {
1819
- let i;
1820
- for (i = 0; i < length; ++i) {
1821
- if (i + offset >= dst.length || i >= src.length)
1822
- break;
1823
- dst[i + offset] = src[i];
1824
- }
1825
- return i;
1826
- }
1827
- function isInstance(obj, type) {
1828
- return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
1829
- }
1830
- function numberIsNaN(obj) {
1831
- return obj !== obj;
1832
- }
1833
- const hexSliceLookupTable = function() {
1834
- const alphabet = "0123456789abcdef";
1835
- const table = new Array(256);
1836
- for (let i = 0; i < 16; ++i) {
1837
- const i16 = i * 16;
1838
- for (let j = 0; j < 16; ++j) {
1839
- table[i16 + j] = alphabet[i] + alphabet[j];
1840
- }
1841
- }
1842
- return table;
1843
- }();
1844
- function defineBigIntMethod(fn) {
1845
- return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
1846
- }
1847
- function BufferBigIntNotDefined() {
1848
- throw new Error("BigInt not supported");
1849
- }
1850
- return exports;
1851
- }
1852
- var exports$2, _dewExec$2, exports$1, _dewExec$1, exports, _dewExec;
1853
- var init_chunk_DtuTasat = __esm({
1854
- "node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js"() {
1855
- init_dirname();
1856
- init_buffer2();
1857
- init_process2();
1858
- exports$2 = {};
1859
- _dewExec$2 = false;
1860
- exports$1 = {};
1861
- _dewExec$1 = false;
1862
- exports = {};
1863
- _dewExec = false;
1864
- }
1865
- });
1866
-
1867
- // node_modules/@jspm/core/nodelibs/browser/buffer.js
1868
- var exports2, Buffer2, INSPECT_MAX_BYTES, kMaxLength;
1869
- var init_buffer = __esm({
1870
- "node_modules/@jspm/core/nodelibs/browser/buffer.js"() {
1871
- init_dirname();
1872
- init_buffer2();
1873
- init_process2();
1874
- init_chunk_DtuTasat();
1875
- exports2 = dew();
1876
- exports2["Buffer"];
1877
- exports2["SlowBuffer"];
1878
- exports2["INSPECT_MAX_BYTES"];
1879
- exports2["kMaxLength"];
1880
- Buffer2 = exports2.Buffer;
1881
- INSPECT_MAX_BYTES = exports2.INSPECT_MAX_BYTES;
1882
- kMaxLength = exports2.kMaxLength;
1883
- }
1884
- });
1885
-
1886
- // node_modules/esbuild-plugin-polyfill-node/polyfills/buffer.js
1887
- var init_buffer2 = __esm({
1888
- "node_modules/esbuild-plugin-polyfill-node/polyfills/buffer.js"() {
1889
- init_buffer();
1890
- }
1891
- });
1892
-
1893
- // node_modules/@jspm/core/nodelibs/browser/process.js
1894
- function Item(fun, array) {
1895
- this.fun = fun;
1896
- this.array = array;
1897
- }
1898
- function hrtime(previousTimestamp) {
1899
- var baseNow = Math.floor((Date.now() - _performance.now()) * 1e-3);
1900
- var clocktime = _performance.now() * 1e-3;
1901
- var seconds = Math.floor(clocktime) + baseNow;
1902
- var nanoseconds = Math.floor(clocktime % 1 * 1e9);
1903
- if (previousTimestamp) {
1904
- seconds = seconds - previousTimestamp[0];
1905
- nanoseconds = nanoseconds - previousTimestamp[1];
1906
- if (nanoseconds < 0) {
1907
- seconds--;
1908
- nanoseconds += nanoPerSec;
1909
- }
1910
- }
1911
- return [seconds, nanoseconds];
1912
- }
1913
- var env, _performance, nowOffset, nanoPerSec;
1914
- var init_process = __esm({
1915
- "node_modules/@jspm/core/nodelibs/browser/process.js"() {
1916
- init_dirname();
1917
- init_buffer2();
1918
- init_process2();
1919
- Item.prototype.run = function() {
1920
- this.fun.apply(null, this.array);
1921
- };
1922
- env = {
1923
- PATH: "/usr/bin",
1924
- LANG: typeof navigator !== "undefined" ? navigator.language + ".UTF-8" : void 0,
1925
- PWD: "/",
1926
- HOME: "/home",
1927
- TMP: "/tmp"
1928
- };
1929
- _performance = {
1930
- now: typeof performance !== "undefined" ? performance.now.bind(performance) : void 0,
1931
- timing: typeof performance !== "undefined" ? performance.timing : void 0
1932
- };
1933
- if (_performance.now === void 0) {
1934
- nowOffset = Date.now();
1935
- if (_performance.timing && _performance.timing.navigationStart) {
1936
- nowOffset = _performance.timing.navigationStart;
1937
- }
1938
- _performance.now = () => Date.now() - nowOffset;
1939
- }
1940
- nanoPerSec = 1e9;
1941
- hrtime.bigint = function(time) {
1942
- var diff = hrtime(time);
1943
- if (typeof BigInt === "undefined") {
1944
- return diff[0] * nanoPerSec + diff[1];
1945
- }
1946
- return BigInt(diff[0] * nanoPerSec) + BigInt(diff[1]);
1947
- };
1948
- }
1949
- });
1950
-
1951
- // node_modules/esbuild-plugin-polyfill-node/polyfills/process.js
1952
- var init_process2 = __esm({
1953
- "node_modules/esbuild-plugin-polyfill-node/polyfills/process.js"() {
1954
- init_process();
1955
- }
1956
- });
1957
-
1958
- // src/lib/BaseSuite.ts
1959
- init_dirname();
1960
- init_buffer2();
1961
- init_process2();
1962
-
1963
- // src/lib/pmProxy.ts
1964
- init_dirname();
1965
- init_buffer2();
1966
- init_process2();
1967
- var baseProxy = function(pm, mappings) {
1968
- return new Proxy(pm, {
1969
- get: (target, prop, receiver) => {
1970
- for (const mapping of mappings) {
1971
- const method = mapping[0];
1972
- const arger = mapping[1];
1973
- if (prop === method) {
1974
- return (...x) => {
1975
- const modifiedArgs = arger(...x);
1976
- return target[prop](...modifiedArgs);
1977
- };
1978
- }
1979
- }
1980
- return (...x) => {
1981
- return target[prop](...x);
1982
- };
1983
- }
1984
- });
1985
- };
1986
- var butThenProxy = (pm, filepath, addArtifact) => {
1987
- return baseProxy(pm, [
1988
- [
1989
- "screencast",
1990
- (opts, p) => {
1991
- const path = `${filepath}/butThen/${opts.path}`;
1992
- addArtifact(path);
1993
- return [
1994
- {
1995
- ...opts,
1996
- path
1997
- },
1998
- p
1999
- ];
2000
- }
2001
- ],
2002
- [
2003
- "createWriteStream",
2004
- (fp) => {
2005
- const path = `${filepath}/butThen/${fp}`;
2006
- addArtifact(path);
2007
- return [path];
2008
- }
2009
- ],
2010
- [
2011
- "writeFileSync",
2012
- (fp, contents, testName) => {
2013
- console.log(
2014
- `[DEBUG] butThenProxy writeFileSync: fp="${fp}" (type: ${typeof fp}), contents="${contents}" (type: ${typeof contents}), testName="${testName}" (type: ${typeof testName})`
2015
- );
2016
- if (typeof fp !== "string") {
2017
- console.log(`[ERROR] fp is not a string:`, fp);
2018
- if (Array.isArray(fp)) {
2019
- fp = fp.join("");
2020
- console.log(`[DEBUG] Converted array to string: "${fp}"`);
2021
- } else {
2022
- fp = String(fp);
2023
- console.log(`[DEBUG] Converted to string: "${fp}"`);
2024
- }
2025
- }
2026
- const path = `${filepath}/butThen/${fp}`;
2027
- console.log(`[DEBUG] Generated path: "${path}"`);
2028
- addArtifact(path);
2029
- return [path, contents, testName];
2030
- }
2031
- ],
2032
- [
2033
- "customScreenShot",
2034
- (opts, p) => {
2035
- const path = `${filepath}/butThen/${opts.path}`;
2036
- addArtifact(path);
2037
- return [
2038
- {
2039
- ...opts,
2040
- path
2041
- },
2042
- p
2043
- ];
2044
- }
2045
- ]
2046
- ]);
2047
- };
2048
- var andWhenProxy = (pm, filepath, addArtifact) => {
2049
- return baseProxy(pm, [
2050
- [
2051
- "screencast",
2052
- (opts, p) => {
2053
- const path = `${filepath}/andWhen/${opts.path}`;
2054
- addArtifact(path);
2055
- return [
2056
- {
2057
- ...opts,
2058
- path
2059
- },
2060
- p
2061
- ];
2062
- }
2063
- ],
2064
- [
2065
- "createWriteStream",
2066
- (fp) => {
2067
- const path = `${filepath}/andWhen/${fp}`;
2068
- addArtifact(path);
2069
- return [path];
2070
- }
2071
- ],
2072
- [
2073
- "writeFileSync",
2074
- (fp, contents, testName) => {
2075
- const path = `${filepath}/andWhen/${fp}`;
2076
- addArtifact(path);
2077
- return [path, contents, testName];
2078
- }
2079
- ],
2080
- [
2081
- "customScreenShot",
2082
- (opts, p) => {
2083
- const path = `${filepath}/andWhen/${opts.path}`;
2084
- addArtifact(path);
2085
- return [
2086
- {
2087
- ...opts,
2088
- path
2089
- },
2090
- p
2091
- ];
2092
- }
2093
- ]
2094
- ]);
2095
- };
2096
- var afterEachProxy = (pm, suite, given, addArtifact) => {
2097
- return baseProxy(pm, [
2098
- [
2099
- "screencast",
2100
- (opts, p) => {
2101
- const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
2102
- addArtifact(path);
2103
- return [
2104
- {
2105
- ...opts,
2106
- path
2107
- },
2108
- p
2109
- ];
2110
- }
2111
- ],
2112
- [
2113
- "createWriteStream",
2114
- (fp) => {
2115
- const path = `suite-${suite}/afterEach/${fp}`;
2116
- addArtifact(path);
2117
- return [path];
2118
- }
2119
- ],
2120
- [
2121
- "writeFileSync",
2122
- (fp, contents, testName) => {
2123
- const path = `suite-${suite}/given-${given}/afterEach/${fp}`;
2124
- addArtifact(path);
2125
- return [path, contents, testName];
2126
- }
2127
- ],
2128
- [
2129
- "customScreenShot",
2130
- (opts, p) => {
2131
- const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
2132
- addArtifact(path);
2133
- return [
2134
- {
2135
- ...opts,
2136
- path
2137
- },
2138
- p
2139
- ];
2140
- }
2141
- ]
2142
- ]);
2143
- };
2144
- var beforeEachProxy = (pm, suite, addArtifact) => {
2145
- return baseProxy(pm, [
2146
- [
2147
- "screencast",
2148
- (opts, p) => {
2149
- const path = `suite-${suite}/beforeEach/${opts.path}`;
2150
- addArtifact(path);
2151
- return [
2152
- {
2153
- ...opts,
2154
- path
2155
- },
2156
- p
2157
- ];
2158
- }
2159
- ],
2160
- [
2161
- "writeFileSync",
2162
- (fp, contents, testName) => {
2163
- const path = `suite-${suite}/beforeEach/${fp}`;
2164
- addArtifact(path);
2165
- return [path, contents, testName];
2166
- }
2167
- ],
2168
- [
2169
- "customScreenShot",
2170
- (opts, p) => {
2171
- const path = `suite-${suite}/beforeEach/${opts.path}`;
2172
- addArtifact(path);
2173
- return [
2174
- {
2175
- ...opts,
2176
- path
2177
- },
2178
- p
2179
- ];
2180
- }
2181
- ],
2182
- [
2183
- "createWriteStream",
2184
- (fp) => {
2185
- const path = `suite-${suite}/beforeEach/${fp}`;
2186
- addArtifact(path);
2187
- return [path];
2188
- }
2189
- ]
2190
- ]);
2191
- };
2192
- var beforeAllProxy = (pm, suite, addArtifact) => {
2193
- return baseProxy(pm, [
2194
- [
2195
- "writeFileSync",
2196
- (fp, contents, testName) => {
2197
- const path = `suite-${suite}/beforeAll/${fp}`;
2198
- addArtifact(path);
2199
- return [path, contents, testName];
2200
- }
2201
- ],
2202
- [
2203
- "customScreenShot",
2204
- (opts, p) => {
2205
- const path = `suite-${suite}/beforeAll/${opts.path}`;
2206
- addArtifact(path);
2207
- return [
2208
- {
2209
- ...opts,
2210
- path
2211
- },
2212
- p
2213
- ];
2214
- }
2215
- ],
2216
- [
2217
- "createWriteStream",
2218
- (fp) => {
2219
- const path = `suite-${suite}/beforeAll/${fp}`;
2220
- addArtifact(path);
2221
- return [path];
2222
- }
2223
- ]
2224
- ]);
2225
- };
2226
- var afterAllProxy = (pm, suite, addArtifact) => {
2227
- return baseProxy(pm, [
2228
- [
2229
- "createWriteStream",
2230
- (fp) => {
2231
- const path = `suite-${suite}/afterAll/${fp}`;
2232
- addArtifact(path);
2233
- return [path];
2234
- }
2235
- ],
2236
- [
2237
- "writeFileSync",
2238
- (fp, contents, testName) => {
2239
- const path = `suite-${suite}/afterAll/${fp}`;
2240
- addArtifact(path);
2241
- return [path, contents, testName];
2242
- }
2243
- ],
2244
- [
2245
- "customScreenShot",
2246
- (opts, p) => {
2247
- const path = `suite-${suite}/afterAll/${opts.path}`;
2248
- addArtifact(path);
2249
- return [
2250
- {
2251
- ...opts,
2252
- path
2253
- },
2254
- p
2255
- ];
2256
- }
2257
- ]
2258
- ]);
2259
- };
2260
-
2261
- // src/lib/BaseSuite.ts
2262
- var BaseSuite = class {
2263
- constructor(name, index, givens = {}) {
2264
- this.artifacts = [];
2265
- const suiteName = name || "testSuite";
2266
- if (!suiteName) {
2267
- throw new Error("BaseSuite requires a non-empty name");
2268
- }
2269
- this.name = suiteName;
2270
- this.index = index;
2271
- this.givens = givens;
2272
- this.fails = 0;
2273
- }
2274
- addArtifact(path) {
2275
- const normalizedPath = path.replace(/\\/g, "/");
2276
- this.artifacts.push(normalizedPath);
2277
- }
2278
- features() {
2279
- try {
2280
- const features = Object.keys(this.givens).map((k) => this.givens[k].features).flat().filter((value, index, array) => {
2281
- return array.indexOf(value) === index;
2282
- });
2283
- return features || [];
2284
- } catch (e) {
2285
- console.error("[ERROR] Failed to extract features:", JSON.stringify(e));
2286
- return [];
2287
- }
2288
- }
2289
- toObj() {
2290
- const givens = Object.keys(this.givens).map((k) => this.givens[k].toObj());
2291
- return {
2292
- name: this.name,
2293
- givens,
2294
- fails: this.fails,
2295
- failed: this.failed,
2296
- features: this.features()
2297
- };
2298
- }
2299
- setup(s, artifactory, tr, pm) {
2300
- return new Promise((res) => res(s));
2301
- }
2302
- assertThat(t) {
2303
- return !!t;
2304
- }
2305
- afterAll(store, artifactory, pm) {
2306
- return store;
2307
- }
2308
- async run(input, testResourceConfiguration, artifactory, tLog, pm) {
2309
- this.testResourceConfiguration = testResourceConfiguration;
2310
- const suiteArtifactory = (fPath, value) => artifactory(`suite-${this.index}-${this.name}/${fPath}`, value);
2311
- const sNdx = this.index;
2312
- const addArtifact = this.addArtifact.bind(this);
2313
- const proxiedPm = beforeAllProxy(pm, sNdx.toString(), addArtifact);
2314
- const subject = await this.setup(
2315
- input,
2316
- suiteArtifactory,
2317
- testResourceConfiguration,
2318
- proxiedPm
2319
- );
2320
- for (const [gKey, g] of Object.entries(this.givens)) {
2321
- const giver = this.givens[gKey];
2322
- this.store = await giver.give(
2323
- subject,
2324
- gKey,
2325
- testResourceConfiguration,
2326
- this.assertThat,
2327
- suiteArtifactory,
2328
- tLog,
2329
- pm,
2330
- sNdx
2331
- ).catch((e) => {
2332
- this.failed = true;
2333
- this.fails = this.fails + 1;
2334
- throw e;
2335
- });
2336
- }
2337
- try {
2338
- const addArtifact2 = this.addArtifact.bind(this);
2339
- const afterAllPm = afterAllProxy(pm, sNdx.toString(), addArtifact2);
2340
- this.afterAll(this.store, artifactory, afterAllPm);
2341
- } catch (e) {
2342
- console.error(JSON.stringify(e));
2343
- }
2344
- return this;
2345
- }
2346
- };
2347
-
2348
- // src/Web.ts
2349
- init_dirname();
2350
- init_buffer2();
2351
- init_process2();
2352
-
2353
- // src/PM/web.ts
2354
- init_dirname();
2355
- init_buffer2();
2356
- init_process2();
2357
-
2358
- // src/PM/index.ts
2359
- init_dirname();
2360
- init_buffer2();
2361
- init_process2();
2362
- var PM = class {
2363
- // abstract launchSideCar(
2364
- // n: number
2365
- // ): Promise<[number, ITTestResourceConfiguration]>;
2366
- // abstract stopSideCar(n: number): Promise<any>;
2367
- };
2368
-
2369
- // src/PM/web.ts
2370
- var PM_Web = class extends PM {
2371
- constructor(t) {
2372
- super();
2373
- this.testResourceConfiguration = t;
2374
- }
2375
- start() {
2376
- return new Promise((r) => r());
2377
- }
2378
- stop() {
2379
- return new Promise((r) => r());
2380
- }
2381
- getInnerHtml(selector, page) {
2382
- throw new Error("web.ts getInnHtml not implemented");
2383
- }
2384
- pages() {
2385
- throw new Error("Method not implemented.");
2386
- }
2387
- waitForSelector(p, s) {
2388
- return window["waitForSelector"](p, s);
2389
- }
2390
- screencast(opts, page) {
2391
- return window["screencast"](
2392
- {
2393
- ...opts,
2394
- path: this.testResourceConfiguration.fs + "/" + opts.path
2395
- },
2396
- page.mainFrame()._id,
2397
- this.testResourceConfiguration.name
2398
- );
2399
- }
2400
- screencastStop(recorder) {
2401
- return window["screencastStop"](recorder);
2402
- }
2403
- closePage(p) {
2404
- return window["closePage"](p);
2405
- }
2406
- goto(p, url) {
2407
- return window["goto"](p, url);
2408
- }
2409
- newPage() {
2410
- return window["newPage"]();
2411
- }
2412
- $(selector) {
2413
- return window["$"](selector);
2414
- }
2415
- isDisabled(selector) {
2416
- return window["isDisabled"](selector);
2417
- }
2418
- getAttribute(selector, attribute) {
2419
- return window["getAttribute"](selector, attribute);
2420
- }
2421
- getValue(selector) {
2422
- return window["getValue"](selector);
2423
- }
2424
- focusOn(selector) {
2425
- return window["focusOn"](selector);
2426
- }
2427
- typeInto(value) {
2428
- return window["typeInto"](value);
2429
- }
2430
- async page(x) {
2431
- return window["page"](x);
2432
- }
2433
- click(selector) {
2434
- return window["click"](selector);
2435
- }
2436
- customScreenShot(x, y) {
2437
- const opts = x[0];
2438
- const page = x[1];
2439
- return window["customScreenShot"](
2440
- {
2441
- ...opts,
2442
- path: this.testResourceConfiguration.fs + "/" + opts.path
2443
- },
2444
- this.testResourceConfiguration.name,
2445
- page
2446
- );
2447
- }
2448
- existsSync(destFolder) {
2449
- return window["existsSync"](destFolder);
2450
- }
2451
- mkdirSync(x) {
2452
- return window["mkdirSync"](this.testResourceConfiguration.fs + "/");
2453
- }
2454
- write(uid, contents) {
2455
- return window["write"](uid, contents);
2456
- }
2457
- writeFileSync(x) {
2458
- const filepath = arguments[0];
2459
- const contents = arguments[1];
2460
- return window["writeFileSync"](
2461
- this.testResourceConfiguration.fs + "/" + filepath,
2462
- contents,
2463
- this.testResourceConfiguration.name
2464
- );
2465
- }
2466
- createWriteStream(filepath) {
2467
- return window["createWriteStream"](
2468
- this.testResourceConfiguration.fs + "/" + filepath,
2469
- this.testResourceConfiguration.name
2470
- );
2471
- }
2472
- end(uid) {
2473
- return window["end"](uid);
2474
- }
2475
- customclose() {
2476
- window["customclose"](
2477
- this.testResourceConfiguration.fs,
2478
- this.testResourceConfiguration.name
2479
- );
2480
- }
2481
- testArtiFactoryfileWriter(tLog, callback) {
2482
- return (fPath, value) => {
2483
- callback(
2484
- new Promise((res, rej) => {
2485
- tLog("testArtiFactory =>", fPath);
2486
- })
2487
- );
2488
- };
2489
- }
2490
- // stopSideCar(n: number): Promise<any> {
2491
- // return window["stopSideCar"](n, this.testResourceConfiguration.name);
2492
- // }
2493
- // launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]> {
2494
- // return window["launchSideCar"](n, this.testResourceConfiguration.name);
2495
- // }
2496
- };
2497
-
2498
- // src/lib/Tiposkripto.ts
2499
- init_dirname();
2500
- init_buffer2();
2501
- init_process2();
2502
-
2503
- // src/lib/index.ts
2504
- init_dirname();
2505
- init_buffer2();
2506
- init_process2();
2507
- var BaseAdapter = () => ({
2508
- beforeAll: async (input, testResource, pm) => {
2509
- return input;
2510
- },
2511
- beforeEach: async function(subject, initializer, testResource, initialValues, pm) {
2512
- return subject;
2513
- },
2514
- afterEach: async (store, key, pm) => Promise.resolve(store),
2515
- afterAll: (store, pm) => void 0,
2516
- butThen: async (store, thenCb, testResource, pm) => {
2517
- return thenCb(store, pm);
2518
- },
2519
- andWhen: async (store, whenCB, testResource, pm) => {
2520
- return whenCB(store, pm);
2521
- },
2522
- assertThis: (x) => x
2523
- });
2524
- var DefaultAdapter = (p) => {
2525
- const base = BaseAdapter();
2526
- return {
2527
- ...base,
2528
- ...p
2529
- };
2530
- };
2531
- var defaultTestResourceRequirement = {
2532
- ports: 0
2533
- };
2534
-
2535
- // src/lib/BaseGiven.ts
2536
- init_dirname();
2537
- init_buffer2();
2538
- init_process2();
2539
- var BaseGiven = class {
2540
- constructor(name, features, whens, thens, givenCB, initialValues) {
2541
- this.artifacts = [];
2542
- this.name = name;
2543
- this.features = features || [];
2544
- this.whens = whens || [];
2545
- this.thens = thens || [];
2546
- this.givenCB = givenCB;
2547
- this.initialValues = initialValues;
2548
- }
2549
- addArtifact(path) {
2550
- const normalizedPath = path.replace(/\\/g, "/");
2551
- this.artifacts.push(normalizedPath);
2552
- }
2553
- beforeAll(store) {
2554
- return store;
2555
- }
2556
- toObj() {
2557
- return {
2558
- key: this.key,
2559
- name: this.name,
2560
- whens: (this.whens || []).map((w) => {
2561
- if (w && w.toObj)
2562
- return w.toObj();
2563
- console.error("w is not as expected!", JSON.stringify(w));
2564
- return {};
2565
- }),
2566
- thens: (this.thens || []).map((t) => t && t.toObj ? t.toObj() : {}),
2567
- error: this.error ? [this.error, this.error.stack] : null,
2568
- failed: this.failed,
2569
- features: this.features || [],
2570
- artifacts: this.artifacts || []
2571
- };
2572
- }
2573
- async afterEach(store, key, artifactory, pm) {
2574
- return store;
2575
- }
2576
- async give(subject, key, testResourceConfiguration, tester, artifactory, tLog, pm, suiteNdx) {
2577
- this.key = key;
2578
- tLog(`
2579
- ${this.key}`);
2580
- tLog(`
2581
- Given: ${this.name}`);
2582
- const givenArtifactory = (fPath, value) => artifactory(`given-${key}/${fPath}`, value);
2583
- this.uberCatcher((e) => {
2584
- console.error(e.toString());
2585
- this.error = e.error;
2586
- tLog(e.stack);
2587
- });
2588
- try {
2589
- const addArtifact = this.addArtifact.bind(this);
2590
- const proxiedPm = beforeEachProxy(pm, suiteNdx.toString(), addArtifact);
2591
- this.store = await this.givenThat(
2592
- subject,
2593
- testResourceConfiguration,
2594
- givenArtifactory,
2595
- this.givenCB,
2596
- this.initialValues,
2597
- proxiedPm
2598
- );
2599
- } catch (e) {
2600
- this.failed = true;
2601
- this.error = e.stack;
2602
- }
2603
- try {
2604
- for (const [whenNdx, whenStep] of this.whens.entries()) {
2605
- await whenStep.test(
2606
- this.store,
2607
- testResourceConfiguration,
2608
- tLog,
2609
- pm,
2610
- `suite-${suiteNdx}/given-${key}/when/${whenNdx}`
2611
- );
2612
- }
2613
- for (const [thenNdx, thenStep] of this.thens.entries()) {
2614
- const t = await thenStep.test(
2615
- this.store,
2616
- testResourceConfiguration,
2617
- tLog,
2618
- pm,
2619
- `suite-${suiteNdx}/given-${key}/then-${thenNdx}`
2620
- );
2621
- tester(t);
2622
- }
2623
- } catch (e) {
2624
- this.error = e.stack;
2625
- this.failed = true;
2626
- } finally {
2627
- try {
2628
- const addArtifact = this.addArtifact.bind(this);
2629
- const proxiedPm = afterEachProxy(
2630
- pm,
2631
- suiteNdx.toString(),
2632
- key,
2633
- addArtifact
2634
- );
2635
- await this.afterEach(this.store, this.key, givenArtifactory, proxiedPm);
2636
- } catch (e) {
2637
- this.failed = e;
2638
- throw e;
2639
- }
2640
- }
2641
- return this.store;
2642
- }
2643
- };
2644
-
2645
- // src/lib/BaseWhen.ts
2646
- init_dirname();
2647
- init_buffer2();
2648
- init_process2();
2649
- var BaseWhen = class {
2650
- constructor(name, whenCB) {
2651
- this.artifacts = [];
2652
- this.name = name;
2653
- this.whenCB = whenCB;
2654
- }
2655
- addArtifact(path) {
2656
- const normalizedPath = path.replace(/\\/g, "/");
2657
- this.artifacts.push(normalizedPath);
2658
- }
2659
- toObj() {
2660
- const obj = {
2661
- name: this.name,
2662
- error: this.error ? `${this.error.name}: ${this.error.message}
2663
- ${this.error.stack}` : null,
2664
- artifacts: this.artifacts || []
2665
- };
2666
- console.log(
2667
- `[TOOBJ] Serializing ${this.constructor.name} with artifacts:`,
2668
- obj.artifacts
2669
- );
2670
- return obj;
2671
- }
2672
- async test(store, testResourceConfiguration, tLog, pm, filepath) {
2673
- try {
2674
- const addArtifact = this.addArtifact.bind(this);
2675
- const proxiedPm = andWhenProxy(pm, filepath, addArtifact);
2676
- const result = await this.andWhen(
2677
- store,
2678
- this.whenCB,
2679
- testResourceConfiguration,
2680
- proxiedPm
2681
- );
2682
- return result;
2683
- } catch (e) {
2684
- console.error(
2685
- "[ERROR] When step failed:",
2686
- this.name.toString(),
2687
- e.toString()
2688
- );
2689
- this.error = e;
2690
- throw e;
2691
- }
2692
- }
2693
- };
2694
-
2695
- // src/lib/BaseThen.ts
2696
- init_dirname();
2697
- init_buffer2();
2698
- init_process2();
2699
- var BaseThen = class {
2700
- constructor(name, thenCB) {
2701
- this.artifacts = [];
2702
- this.name = name;
2703
- this.thenCB = thenCB;
2704
- this.error = false;
2705
- this.artifacts = [];
2706
- }
2707
- addArtifact(path) {
2708
- const normalizedPath = path.replace(/\\/g, "/");
2709
- this.artifacts.push(normalizedPath);
2710
- }
2711
- toObj() {
2712
- const obj = {
2713
- name: this.name,
2714
- error: this.error,
2715
- artifacts: this.artifacts
2716
- };
2717
- return obj;
2718
- }
2719
- async test(store, testResourceConfiguration, tLog, pm, filepath) {
2720
- const addArtifact = this.addArtifact.bind(this);
2721
- const proxiedPm = butThenProxy(pm, filepath, addArtifact);
2722
- return this.butThen(
2723
- store,
2724
- async (s) => {
2725
- try {
2726
- if (typeof this.thenCB === "function") {
2727
- const wrappedPm = new Proxy(proxiedPm, {
2728
- get: (target, prop, receiver) => {
2729
- if (prop === "writeFileSync") {
2730
- return (...args) => {
2731
- console.log(
2732
- `[DEBUG] writeFileSync called with args:`,
2733
- args
2734
- );
2735
- return target[prop](...args);
2736
- };
2737
- }
2738
- return target[prop];
2739
- }
2740
- });
2741
- const result = await this.thenCB(s, wrappedPm);
2742
- return result;
2743
- } else {
2744
- return this.thenCB;
2745
- }
2746
- } catch (e) {
2747
- console.error(e.stack);
2748
- }
2749
- },
2750
- testResourceConfiguration,
2751
- proxiedPm
2752
- ).catch((e) => {
2753
- this.error = e.stack;
2754
- });
2755
- }
2756
- };
2757
-
2758
- // src/lib/Tiposkripto.ts
2759
- var Tiposkripto = class {
2760
- constructor(input, testSpecification, testImplementation, testResourceRequirement = defaultTestResourceRequirement, testAdapter = {}, uberCatcher = (cb) => cb()) {
2761
- this.artifacts = [];
2762
- const fullAdapter = DefaultAdapter(testAdapter);
2763
- const classySuites = Object.entries(testImplementation.suites).reduce(
2764
- (a, [key], index) => {
2765
- a[key] = (somestring, givens) => {
2766
- return new class extends BaseSuite {
2767
- afterAll(store, artifactory, pm) {
2768
- return fullAdapter.afterAll(store, pm);
2769
- }
2770
- assertThat(t) {
2771
- return fullAdapter.assertThis(t);
2772
- }
2773
- async setup(s, artifactory, tr, pm) {
2774
- return fullAdapter.beforeAll?.(s, tr, pm) ?? s;
2775
- }
2776
- }(somestring, index, givens);
2777
- };
2778
- return a;
2779
- },
2780
- {}
2781
- );
2782
- const classyGivens = Object.entries(testImplementation.givens).reduce(
2783
- (a, [key, g]) => {
2784
- a[key] = (name, features, whens, thens, gcb, initialValues) => {
2785
- return new class extends BaseGiven {
2786
- constructor() {
2787
- super(...arguments);
2788
- this.uberCatcher = uberCatcher;
2789
- }
2790
- async givenThat(subject, testResource, artifactory, initializer, initialValues2, pm) {
2791
- return fullAdapter.beforeEach(
2792
- subject,
2793
- initializer,
2794
- testResource,
2795
- initialValues2,
2796
- pm
2797
- );
2798
- }
2799
- afterEach(store, key2, artifactory, pm) {
2800
- return Promise.resolve(fullAdapter.afterEach(store, key2, pm));
2801
- }
2802
- }(
2803
- name,
2804
- features,
2805
- whens,
2806
- thens,
2807
- testImplementation.givens[key],
2808
- initialValues
2809
- );
2810
- };
2811
- return a;
2812
- },
2813
- {}
2814
- );
2815
- const classyWhens = Object.entries(testImplementation.whens).reduce(
2816
- (a, [key, whEn]) => {
2817
- a[key] = (...payload) => {
2818
- return new class extends BaseWhen {
2819
- async andWhen(store, whenCB, testResource, pm) {
2820
- return await fullAdapter.andWhen(store, whenCB, testResource, pm);
2821
- }
2822
- }(`${key}: ${payload && payload.toString()}`, whEn(...payload));
2823
- };
2824
- return a;
2825
- },
2826
- {}
2827
- );
2828
- const classyThens = Object.entries(testImplementation.thens).reduce(
2829
- (a, [key, thEn]) => {
2830
- a[key] = (...args) => {
2831
- return new class extends BaseThen {
2832
- async butThen(store, thenCB, testResource, pm) {
2833
- return await fullAdapter.butThen(store, thenCB, testResource, pm);
2834
- }
2835
- }(`${key}: ${args && args.toString()}`, thEn(...args));
2836
- };
2837
- return a;
2838
- },
2839
- {}
2840
- );
2841
- this.suitesOverrides = classySuites;
2842
- this.givenOverides = classyGivens;
2843
- this.whenOverides = classyWhens;
2844
- this.thenOverides = classyThens;
2845
- this.testResourceRequirement = testResourceRequirement;
2846
- this.testSpecification = testSpecification;
2847
- this.specs = testSpecification(
2848
- this.Suites(),
2849
- this.Given(),
2850
- this.When(),
2851
- this.Then()
2852
- );
2853
- this.totalTests = this.calculateTotalTests();
2854
- console.log(`Total tests calculated: ${this.totalTests}`);
2855
- this.testJobs = this.specs.map((suite) => {
2856
- const suiteRunner = (suite2) => async (puppetMaster, tLog) => {
2857
- try {
2858
- const x = await suite2.run(
2859
- input,
2860
- puppetMaster.testResourceConfiguration,
2861
- (fPath, value) => puppetMaster.testArtiFactoryfileWriter(
2862
- tLog,
2863
- (p) => {
2864
- this.artifacts.push(p);
2865
- }
2866
- )(
2867
- puppetMaster.testResourceConfiguration.fs + "/" + fPath,
2868
- value
2869
- ),
2870
- tLog,
2871
- puppetMaster
2872
- );
2873
- return x;
2874
- } catch (e) {
2875
- console.error(e.stack);
2876
- throw e;
2877
- }
2878
- };
2879
- const runner = suiteRunner(suite);
2880
- return {
2881
- test: suite,
2882
- toObj: () => {
2883
- return suite.toObj();
2884
- },
2885
- runner,
2886
- receiveTestResourceConfig: async function(puppetMaster) {
2887
- const tLog = async (...l) => {
2888
- };
2889
- try {
2890
- const suiteDone = await runner(puppetMaster, tLog);
2891
- const fails = suiteDone.fails;
2892
- await puppetMaster.writeFileSync(
2893
- `tests.json`,
2894
- JSON.stringify(this.toObj(), null, 2),
2895
- "test"
2896
- );
2897
- return {
2898
- failed: fails > 0,
2899
- fails,
2900
- artifacts: this.artifacts || [],
2901
- features: suiteDone.features(),
2902
- tests: 0,
2903
- // Keep existing field
2904
- runTimeTests: this.totalTests
2905
- // Add the total number of tests
2906
- };
2907
- } catch (e) {
2908
- console.error(e.stack);
2909
- return {
2910
- failed: true,
2911
- fails: -1,
2912
- artifacts: this.artifacts || [],
2913
- features: [],
2914
- tests: 0,
2915
- // Keep existing field
2916
- runTimeTests: -1
2917
- // Set to -1 on hard error
2918
- };
2919
- }
2920
- }
2921
- };
2922
- });
2923
- }
2924
- Specs() {
2925
- return this.specs;
2926
- }
2927
- Suites() {
2928
- return this.suitesOverrides;
2929
- }
2930
- Given() {
2931
- return this.givenOverides;
2932
- }
2933
- When() {
2934
- return this.whenOverides;
2935
- }
2936
- Then() {
2937
- return this.thenOverides;
2938
- }
2939
- // Add a method to access test jobs which can be used by receiveTestResourceConfig
2940
- getTestJobs() {
2941
- return this.testJobs;
2942
- }
2943
- calculateTotalTests() {
2944
- let total = 0;
2945
- for (const suite of this.specs) {
2946
- if (suite && typeof suite === "object") {
2947
- if ("givens" in suite) {
2948
- const givens = suite.givens;
2949
- if (givens && typeof givens === "object") {
2950
- total += Object.keys(givens).length;
2951
- }
2952
- }
2953
- }
2954
- }
2955
- return total;
2956
- }
2957
- };
2958
-
2959
- // src/Web.ts
2960
- var WebTesteranto = class extends Tiposkripto {
2961
- constructor(input, testSpecification, testImplementation, testResourceRequirement, testAdapter) {
2962
- super(
2963
- input,
2964
- testSpecification,
2965
- testImplementation,
2966
- testResourceRequirement,
2967
- testAdapter,
2968
- (cb) => {
2969
- }
2970
- );
2971
- }
2972
- async receiveTestResourceConfig(partialTestResource) {
2973
- const t = partialTestResource;
2974
- const pm = new PM_Web(t);
2975
- return await this.testJobs[0].receiveTestResourceConfig(pm);
2976
- }
2977
- };
2978
- var Web_default = async (input, testSpecification, testImplementation, testAdapter, testResourceRequirement = defaultTestResourceRequirement) => {
2979
- return new WebTesteranto(
2980
- input,
2981
- testSpecification,
2982
- testImplementation,
2983
- testResourceRequirement,
2984
- testAdapter
2985
- );
2986
- };
2987
-
2988
- export {
2989
- __commonJS,
2990
- __toESM,
2991
- init_dirname,
2992
- init_process2 as init_process,
2993
- Buffer2 as Buffer,
2994
- init_buffer2 as init_buffer,
2995
- BaseGiven,
2996
- BaseWhen,
2997
- BaseThen,
2998
- BaseSuite,
2999
- Web_default
3000
- };
3001
- /*! Bundled license information:
3002
-
3003
- @jspm/core/nodelibs/browser/chunk-DtuTasat.js:
3004
- (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
3005
- */