@jointhedots/gear 1.0.21 → 1.1.4

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 (334) hide show
  1. package/browser-modules/asap-raw.js +79 -0
  2. package/browser-modules/asap.js +57 -0
  3. package/browser-modules/buffer.js +3 -1
  4. package/browser-modules/child_process.js +145 -0
  5. package/browser-modules/events.js +200 -0
  6. package/browser-modules/side-effects.js +7 -0
  7. package/browser-modules/stream.js +323 -0
  8. package/browser-modules/util.js +170 -0
  9. package/browser-modules/worker_threads.js +85 -0
  10. package/esm/builder/build-app-bundle.js +185 -0
  11. package/esm/builder/build-app-bundle.js.map +1 -0
  12. package/esm/builder/build-app-host.js +170 -0
  13. package/esm/builder/build-app-host.js.map +1 -0
  14. package/esm/builder/build-application.js +219 -63
  15. package/esm/builder/build-application.js.map +1 -1
  16. package/esm/builder/build-library.js +17 -33
  17. package/esm/builder/build-library.js.map +1 -1
  18. package/esm/builder/build-target.js +45 -76
  19. package/esm/builder/build-target.js.map +1 -1
  20. package/esm/builder/emit-dts.js +110 -87
  21. package/esm/builder/emit-dts.js.map +1 -1
  22. package/esm/builder/esbuild-plugins.js +256 -59
  23. package/esm/builder/esbuild-plugins.js.map +1 -1
  24. package/esm/builder/helpers/path-helpers.js +95 -0
  25. package/esm/builder/helpers/path-helpers.js.map +1 -0
  26. package/esm/cli.js +0 -1
  27. package/esm/cli.js.map +1 -1
  28. package/esm/commands/init.js +1 -0
  29. package/esm/commands/init.js.map +1 -1
  30. package/esm/commands/make.js +52 -9
  31. package/esm/commands/make.js.map +1 -1
  32. package/esm/commands/publish.js +1 -0
  33. package/esm/commands/publish.js.map +1 -1
  34. package/esm/commands/run.js +1 -0
  35. package/esm/commands/run.js.map +1 -1
  36. package/esm/commands/serve.js +42 -9
  37. package/esm/commands/serve.js.map +1 -1
  38. package/esm/model/component.js +4 -8
  39. package/esm/model/component.js.map +1 -1
  40. package/esm/model/helpers/create-manifests.js +73 -0
  41. package/esm/model/helpers/create-manifests.js.map +1 -0
  42. package/esm/model/helpers/discover-workspace.js +227 -0
  43. package/esm/model/helpers/discover-workspace.js.map +1 -0
  44. package/esm/model/helpers/logger.js +116 -0
  45. package/esm/model/helpers/logger.js.map +1 -0
  46. package/esm/model/storage.js +82 -24
  47. package/esm/model/storage.js.map +1 -1
  48. package/esm/model/workspace.js +97 -147
  49. package/esm/model/workspace.js.map +1 -1
  50. package/esm/publish/publish_aws_s3.js +1 -0
  51. package/esm/publish/publish_aws_s3.js.map +1 -1
  52. package/esm/utils/file.js +10 -2
  53. package/esm/utils/file.js.map +1 -1
  54. package/esm/utils/graph-ordering.js +86 -0
  55. package/esm/utils/graph-ordering.js.map +1 -0
  56. package/esm/utils/normalized-name.js +94 -0
  57. package/esm/utils/normalized-name.js.map +1 -0
  58. package/node_modules/@jspm/core/.github/workflows/ci.yml +64 -0
  59. package/node_modules/@jspm/core/LICENSE +796 -0
  60. package/node_modules/@jspm/core/README.md +11 -0
  61. package/node_modules/@jspm/core/chompfile.toml +28 -0
  62. package/node_modules/@jspm/core/generate-node-libs.mjs +10 -0
  63. package/node_modules/@jspm/core/nodelibs/@empty.dew.js +7 -0
  64. package/node_modules/@jspm/core/nodelibs/@empty.js +3 -0
  65. package/node_modules/@jspm/core/nodelibs/browser/_stream_duplex.js +13 -0
  66. package/node_modules/@jspm/core/nodelibs/browser/_stream_passthrough.js +12 -0
  67. package/node_modules/@jspm/core/nodelibs/browser/_stream_readable.js +14 -0
  68. package/node_modules/@jspm/core/nodelibs/browser/_stream_transform.js +12 -0
  69. package/node_modules/@jspm/core/nodelibs/browser/_stream_writable.js +13 -0
  70. package/node_modules/@jspm/core/nodelibs/browser/assert/strict.js +29 -0
  71. package/node_modules/@jspm/core/nodelibs/browser/assert.js +2574 -0
  72. package/node_modules/@jspm/core/nodelibs/browser/async_hooks.js +14 -0
  73. package/node_modules/@jspm/core/nodelibs/browser/buffer.js +10 -0
  74. package/node_modules/@jspm/core/nodelibs/browser/child_process.js +17 -0
  75. package/node_modules/@jspm/core/nodelibs/browser/chunk-B6-G-Ftj.js +158 -0
  76. package/node_modules/@jspm/core/nodelibs/browser/chunk-B738Er4n.js +5524 -0
  77. package/node_modules/@jspm/core/nodelibs/browser/chunk-BlJi4mNy.js +448 -0
  78. package/node_modules/@jspm/core/nodelibs/browser/chunk-BsRZ0PEC.js +74 -0
  79. package/node_modules/@jspm/core/nodelibs/browser/chunk-C4rKjYLo.js +20 -0
  80. package/node_modules/@jspm/core/nodelibs/browser/chunk-CbQqNoLO.js +32 -0
  81. package/node_modules/@jspm/core/nodelibs/browser/chunk-CcCWfKp1.js +360 -0
  82. package/node_modules/@jspm/core/nodelibs/browser/chunk-CjPlbOtt.js +47 -0
  83. package/node_modules/@jspm/core/nodelibs/browser/chunk-CkFCi-G1.js +36 -0
  84. package/node_modules/@jspm/core/nodelibs/browser/chunk-D3uu3VYh.js +33 -0
  85. package/node_modules/@jspm/core/nodelibs/browser/chunk-DEMDiNwt.js +275 -0
  86. package/node_modules/@jspm/core/nodelibs/browser/chunk-DHWh-hmB.js +1344 -0
  87. package/node_modules/@jspm/core/nodelibs/browser/chunk-DtDiafJB.js +96 -0
  88. package/node_modules/@jspm/core/nodelibs/browser/chunk-DtcTpLWz.js +826 -0
  89. package/node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js +1923 -0
  90. package/node_modules/@jspm/core/nodelibs/browser/chunk-b0rmRow7.js +246 -0
  91. package/node_modules/@jspm/core/nodelibs/browser/chunk-tHuMsdT0.js +8 -0
  92. package/node_modules/@jspm/core/nodelibs/browser/cluster.js +33 -0
  93. package/node_modules/@jspm/core/nodelibs/browser/console.js +103 -0
  94. package/node_modules/@jspm/core/nodelibs/browser/constants.js +419 -0
  95. package/node_modules/@jspm/core/nodelibs/browser/crypto.js +109730 -0
  96. package/node_modules/@jspm/core/nodelibs/browser/dgram.js +11 -0
  97. package/node_modules/@jspm/core/nodelibs/browser/diagnostics_channel.js +153 -0
  98. package/node_modules/@jspm/core/nodelibs/browser/dns/promises.js +26 -0
  99. package/node_modules/@jspm/core/nodelibs/browser/dns.js +101 -0
  100. package/node_modules/@jspm/core/nodelibs/browser/domain.js +77 -0
  101. package/node_modules/@jspm/core/nodelibs/browser/events.js +491 -0
  102. package/node_modules/@jspm/core/nodelibs/browser/fs/promises.js +50 -0
  103. package/node_modules/@jspm/core/nodelibs/browser/fs.js +4139 -0
  104. package/node_modules/@jspm/core/nodelibs/browser/http.js +3513 -0
  105. package/node_modules/@jspm/core/nodelibs/browser/http2.js +88 -0
  106. package/node_modules/@jspm/core/nodelibs/browser/https.js +873 -0
  107. package/node_modules/@jspm/core/nodelibs/browser/module.js +58 -0
  108. package/node_modules/@jspm/core/nodelibs/browser/net.js +20 -0
  109. package/node_modules/@jspm/core/nodelibs/browser/os.js +94 -0
  110. package/node_modules/@jspm/core/nodelibs/browser/path/posix.js +40 -0
  111. package/node_modules/@jspm/core/nodelibs/browser/path/win32.js +27 -0
  112. package/node_modules/@jspm/core/nodelibs/browser/path.js +20 -0
  113. package/node_modules/@jspm/core/nodelibs/browser/perf_hooks.js +30 -0
  114. package/node_modules/@jspm/core/nodelibs/browser/process-production.js +274 -0
  115. package/node_modules/@jspm/core/nodelibs/browser/process.js +277 -0
  116. package/node_modules/@jspm/core/nodelibs/browser/punycode.js +436 -0
  117. package/node_modules/@jspm/core/nodelibs/browser/querystring.js +118 -0
  118. package/node_modules/@jspm/core/nodelibs/browser/readline.js +15 -0
  119. package/node_modules/@jspm/core/nodelibs/browser/repl.js +21 -0
  120. package/node_modules/@jspm/core/nodelibs/browser/stream/consumers.js +61 -0
  121. package/node_modules/@jspm/core/nodelibs/browser/stream/promises.js +12 -0
  122. package/node_modules/@jspm/core/nodelibs/browser/stream/web.js +35 -0
  123. package/node_modules/@jspm/core/nodelibs/browser/stream.js +6574 -0
  124. package/node_modules/@jspm/core/nodelibs/browser/string_decoder.js +2 -0
  125. package/node_modules/@jspm/core/nodelibs/browser/sys.js +9 -0
  126. package/node_modules/@jspm/core/nodelibs/browser/timers/promises.js +17 -0
  127. package/node_modules/@jspm/core/nodelibs/browser/timers.js +256 -0
  128. package/node_modules/@jspm/core/nodelibs/browser/tls.js +34 -0
  129. package/node_modules/@jspm/core/nodelibs/browser/tty.js +20 -0
  130. package/node_modules/@jspm/core/nodelibs/browser/url.js +2361 -0
  131. package/node_modules/@jspm/core/nodelibs/browser/util/types.js +51 -0
  132. package/node_modules/@jspm/core/nodelibs/browser/util.js +1345 -0
  133. package/node_modules/@jspm/core/nodelibs/browser/v8.js +21 -0
  134. package/node_modules/@jspm/core/nodelibs/browser/vm.js +139 -0
  135. package/node_modules/@jspm/core/nodelibs/browser/wasi.js +160 -0
  136. package/node_modules/@jspm/core/nodelibs/browser/worker_threads.js +140 -0
  137. package/node_modules/@jspm/core/nodelibs/browser/zlib.js +6545 -0
  138. package/node_modules/@jspm/core/nodelibs/deno/_stream_duplex.ts +5 -0
  139. package/node_modules/@jspm/core/nodelibs/deno/_stream_passthrough.ts +1 -0
  140. package/node_modules/@jspm/core/nodelibs/deno/_stream_readable.ts +5 -0
  141. package/node_modules/@jspm/core/nodelibs/deno/_stream_transform.ts +1 -0
  142. package/node_modules/@jspm/core/nodelibs/deno/_stream_writable.ts +5 -0
  143. package/node_modules/@jspm/core/nodelibs/deno/assert/strict.ts +2 -0
  144. package/node_modules/@jspm/core/nodelibs/deno/assert.ts +2 -0
  145. package/node_modules/@jspm/core/nodelibs/deno/async_hooks.ts +2 -0
  146. package/node_modules/@jspm/core/nodelibs/deno/buffer.ts +5 -0
  147. package/node_modules/@jspm/core/nodelibs/deno/child_process.ts +2 -0
  148. package/node_modules/@jspm/core/nodelibs/deno/cluster.ts +2 -0
  149. package/node_modules/@jspm/core/nodelibs/deno/console.ts +2 -0
  150. package/node_modules/@jspm/core/nodelibs/deno/constants.ts +2 -0
  151. package/node_modules/@jspm/core/nodelibs/deno/crypto.ts +2 -0
  152. package/node_modules/@jspm/core/nodelibs/deno/dgram.ts +2 -0
  153. package/node_modules/@jspm/core/nodelibs/deno/diagnostics_channel.ts +2 -0
  154. package/node_modules/@jspm/core/nodelibs/deno/dns/promises.ts +2 -0
  155. package/node_modules/@jspm/core/nodelibs/deno/dns.ts +2 -0
  156. package/node_modules/@jspm/core/nodelibs/deno/domain.ts +2 -0
  157. package/node_modules/@jspm/core/nodelibs/deno/events.ts +2 -0
  158. package/node_modules/@jspm/core/nodelibs/deno/fs/promises.ts +2 -0
  159. package/node_modules/@jspm/core/nodelibs/deno/fs.ts +2 -0
  160. package/node_modules/@jspm/core/nodelibs/deno/http.ts +2 -0
  161. package/node_modules/@jspm/core/nodelibs/deno/http2.ts +2 -0
  162. package/node_modules/@jspm/core/nodelibs/deno/https.ts +2 -0
  163. package/node_modules/@jspm/core/nodelibs/deno/inspector.ts +2 -0
  164. package/node_modules/@jspm/core/nodelibs/deno/module.ts +2 -0
  165. package/node_modules/@jspm/core/nodelibs/deno/net.ts +2 -0
  166. package/node_modules/@jspm/core/nodelibs/deno/os.ts +2 -0
  167. package/node_modules/@jspm/core/nodelibs/deno/path/posix.ts +2 -0
  168. package/node_modules/@jspm/core/nodelibs/deno/path/win32.ts +2 -0
  169. package/node_modules/@jspm/core/nodelibs/deno/path.ts +2 -0
  170. package/node_modules/@jspm/core/nodelibs/deno/perf_hooks.ts +2 -0
  171. package/node_modules/@jspm/core/nodelibs/deno/process-production.ts +4 -0
  172. package/node_modules/@jspm/core/nodelibs/deno/process.ts +2 -0
  173. package/node_modules/@jspm/core/nodelibs/deno/punycode.ts +2 -0
  174. package/node_modules/@jspm/core/nodelibs/deno/querystring.ts +2 -0
  175. package/node_modules/@jspm/core/nodelibs/deno/readline/promises.ts +2 -0
  176. package/node_modules/@jspm/core/nodelibs/deno/readline.ts +2 -0
  177. package/node_modules/@jspm/core/nodelibs/deno/repl.ts +2 -0
  178. package/node_modules/@jspm/core/nodelibs/deno/stream/consumers.ts +2 -0
  179. package/node_modules/@jspm/core/nodelibs/deno/stream/promises.ts +2 -0
  180. package/node_modules/@jspm/core/nodelibs/deno/stream/web.ts +2 -0
  181. package/node_modules/@jspm/core/nodelibs/deno/stream.ts +2 -0
  182. package/node_modules/@jspm/core/nodelibs/deno/string_decoder.ts +2 -0
  183. package/node_modules/@jspm/core/nodelibs/deno/timers/promises.ts +2 -0
  184. package/node_modules/@jspm/core/nodelibs/deno/timers.ts +2 -0
  185. package/node_modules/@jspm/core/nodelibs/deno/tls.ts +2 -0
  186. package/node_modules/@jspm/core/nodelibs/deno/tty.ts +2 -0
  187. package/node_modules/@jspm/core/nodelibs/deno/url.ts +2 -0
  188. package/node_modules/@jspm/core/nodelibs/deno/util/types.ts +2 -0
  189. package/node_modules/@jspm/core/nodelibs/deno/util.ts +2 -0
  190. package/node_modules/@jspm/core/nodelibs/deno/v8.ts +2 -0
  191. package/node_modules/@jspm/core/nodelibs/deno/vm.ts +2 -0
  192. package/node_modules/@jspm/core/nodelibs/deno/wasi.ts +2 -0
  193. package/node_modules/@jspm/core/nodelibs/deno/worker_threads.ts +2 -0
  194. package/node_modules/@jspm/core/nodelibs/deno/zlib.ts +2 -0
  195. package/node_modules/@jspm/core/nodelibs/node/_http_agent.js +2 -0
  196. package/node_modules/@jspm/core/nodelibs/node/_http_client.js +2 -0
  197. package/node_modules/@jspm/core/nodelibs/node/_http_common.js +2 -0
  198. package/node_modules/@jspm/core/nodelibs/node/_http_incoming.js +2 -0
  199. package/node_modules/@jspm/core/nodelibs/node/_http_outgoing.js +2 -0
  200. package/node_modules/@jspm/core/nodelibs/node/_http_server.js +2 -0
  201. package/node_modules/@jspm/core/nodelibs/node/_stream_duplex.js +2 -0
  202. package/node_modules/@jspm/core/nodelibs/node/_stream_passthrough.js +2 -0
  203. package/node_modules/@jspm/core/nodelibs/node/_stream_readable.js +2 -0
  204. package/node_modules/@jspm/core/nodelibs/node/_stream_transform.js +2 -0
  205. package/node_modules/@jspm/core/nodelibs/node/_stream_wrap.js +2 -0
  206. package/node_modules/@jspm/core/nodelibs/node/_stream_writable.js +2 -0
  207. package/node_modules/@jspm/core/nodelibs/node/_tls_common.js +2 -0
  208. package/node_modules/@jspm/core/nodelibs/node/_tls_wrap.js +2 -0
  209. package/node_modules/@jspm/core/nodelibs/node/assert/strict.js +2 -0
  210. package/node_modules/@jspm/core/nodelibs/node/assert.js +2 -0
  211. package/node_modules/@jspm/core/nodelibs/node/async_hooks.js +2 -0
  212. package/node_modules/@jspm/core/nodelibs/node/buffer.js +2 -0
  213. package/node_modules/@jspm/core/nodelibs/node/child_process.js +2 -0
  214. package/node_modules/@jspm/core/nodelibs/node/cluster.js +2 -0
  215. package/node_modules/@jspm/core/nodelibs/node/console.js +2 -0
  216. package/node_modules/@jspm/core/nodelibs/node/constants.js +2 -0
  217. package/node_modules/@jspm/core/nodelibs/node/crypto.js +2 -0
  218. package/node_modules/@jspm/core/nodelibs/node/dgram.js +2 -0
  219. package/node_modules/@jspm/core/nodelibs/node/diagnostics_channel.js +2 -0
  220. package/node_modules/@jspm/core/nodelibs/node/dns/promises.js +2 -0
  221. package/node_modules/@jspm/core/nodelibs/node/dns.js +2 -0
  222. package/node_modules/@jspm/core/nodelibs/node/domain.js +2 -0
  223. package/node_modules/@jspm/core/nodelibs/node/events.js +2 -0
  224. package/node_modules/@jspm/core/nodelibs/node/fs/promises.js +2 -0
  225. package/node_modules/@jspm/core/nodelibs/node/fs.js +2 -0
  226. package/node_modules/@jspm/core/nodelibs/node/http.js +2 -0
  227. package/node_modules/@jspm/core/nodelibs/node/http2.js +2 -0
  228. package/node_modules/@jspm/core/nodelibs/node/https.js +2 -0
  229. package/node_modules/@jspm/core/nodelibs/node/inspector/promises.js +2 -0
  230. package/node_modules/@jspm/core/nodelibs/node/inspector.js +2 -0
  231. package/node_modules/@jspm/core/nodelibs/node/module.js +2 -0
  232. package/node_modules/@jspm/core/nodelibs/node/net.js +2 -0
  233. package/node_modules/@jspm/core/nodelibs/node/os.js +2 -0
  234. package/node_modules/@jspm/core/nodelibs/node/path/posix.js +2 -0
  235. package/node_modules/@jspm/core/nodelibs/node/path/win32.js +2 -0
  236. package/node_modules/@jspm/core/nodelibs/node/path.js +2 -0
  237. package/node_modules/@jspm/core/nodelibs/node/perf_hooks.js +2 -0
  238. package/node_modules/@jspm/core/nodelibs/node/process-production.js +4 -0
  239. package/node_modules/@jspm/core/nodelibs/node/process.js +2 -0
  240. package/node_modules/@jspm/core/nodelibs/node/punycode.js +2 -0
  241. package/node_modules/@jspm/core/nodelibs/node/querystring.js +2 -0
  242. package/node_modules/@jspm/core/nodelibs/node/readline/promises.js +2 -0
  243. package/node_modules/@jspm/core/nodelibs/node/readline.js +2 -0
  244. package/node_modules/@jspm/core/nodelibs/node/repl.js +2 -0
  245. package/node_modules/@jspm/core/nodelibs/node/stream/consumers.js +2 -0
  246. package/node_modules/@jspm/core/nodelibs/node/stream/promises.js +2 -0
  247. package/node_modules/@jspm/core/nodelibs/node/stream/web.js +2 -0
  248. package/node_modules/@jspm/core/nodelibs/node/stream.js +2 -0
  249. package/node_modules/@jspm/core/nodelibs/node/string_decoder.js +2 -0
  250. package/node_modules/@jspm/core/nodelibs/node/sys.js +2 -0
  251. package/node_modules/@jspm/core/nodelibs/node/timers/promises.js +2 -0
  252. package/node_modules/@jspm/core/nodelibs/node/timers.js +2 -0
  253. package/node_modules/@jspm/core/nodelibs/node/tls.js +2 -0
  254. package/node_modules/@jspm/core/nodelibs/node/trace_events.js +2 -0
  255. package/node_modules/@jspm/core/nodelibs/node/tty.js +2 -0
  256. package/node_modules/@jspm/core/nodelibs/node/url.js +2 -0
  257. package/node_modules/@jspm/core/nodelibs/node/util/types.js +2 -0
  258. package/node_modules/@jspm/core/nodelibs/node/util.js +2 -0
  259. package/node_modules/@jspm/core/nodelibs/node/v8.js +2 -0
  260. package/node_modules/@jspm/core/nodelibs/node/vm.js +2 -0
  261. package/node_modules/@jspm/core/nodelibs/node/wasi.js +2 -0
  262. package/node_modules/@jspm/core/nodelibs/node/worker_threads.js +2 -0
  263. package/node_modules/@jspm/core/nodelibs/node/zlib.js +2 -0
  264. package/node_modules/@jspm/core/package.json +75 -0
  265. package/node_modules/@jspm/core/rollup.config.mjs +55 -0
  266. package/node_modules/@jspm/core/src-browser/__tty.js +11 -0
  267. package/node_modules/@jspm/core/src-browser/_stream_duplex.js +3 -0
  268. package/node_modules/@jspm/core/src-browser/_stream_passthrough.js +2 -0
  269. package/node_modules/@jspm/core/src-browser/_stream_readable.js +5 -0
  270. package/node_modules/@jspm/core/src-browser/_stream_transform.js +2 -0
  271. package/node_modules/@jspm/core/src-browser/_stream_writable.js +3 -0
  272. package/node_modules/@jspm/core/src-browser/assert/strict.js +26 -0
  273. package/node_modules/@jspm/core/src-browser/assert.js +19 -0
  274. package/node_modules/@jspm/core/src-browser/async_hooks.js +21 -0
  275. package/node_modules/@jspm/core/src-browser/buffer.js +5 -0
  276. package/node_modules/@jspm/core/src-browser/child_process.js +27 -0
  277. package/node_modules/@jspm/core/src-browser/cluster.js +38 -0
  278. package/node_modules/@jspm/core/src-browser/console.js +25 -0
  279. package/node_modules/@jspm/core/src-browser/constants.js +209 -0
  280. package/node_modules/@jspm/core/src-browser/crypto.js +63 -0
  281. package/node_modules/@jspm/core/src-browser/dgram.js +15 -0
  282. package/node_modules/@jspm/core/src-browser/diagnostics_channel.js +6 -0
  283. package/node_modules/@jspm/core/src-browser/dns/promises.js +45 -0
  284. package/node_modules/@jspm/core/src-browser/dns.js +121 -0
  285. package/node_modules/@jspm/core/src-browser/domain.js +4 -0
  286. package/node_modules/@jspm/core/src-browser/events.js +105 -0
  287. package/node_modules/@jspm/core/src-browser/fs/promises.js +34 -0
  288. package/node_modules/@jspm/core/src-browser/fs.js +209 -0
  289. package/node_modules/@jspm/core/src-browser/http.js +10 -0
  290. package/node_modules/@jspm/core/src-browser/http2.js +86 -0
  291. package/node_modules/@jspm/core/src-browser/https.js +10 -0
  292. package/node_modules/@jspm/core/src-browser/module.js +75 -0
  293. package/node_modules/@jspm/core/src-browser/net.js +33 -0
  294. package/node_modules/@jspm/core/src-browser/os.js +35 -0
  295. package/node_modules/@jspm/core/src-browser/path/posix.js +38 -0
  296. package/node_modules/@jspm/core/src-browser/path/win32.js +42 -0
  297. package/node_modules/@jspm/core/src-browser/path.js +17 -0
  298. package/node_modules/@jspm/core/src-browser/perf_hooks.js +30 -0
  299. package/node_modules/@jspm/core/src-browser/process-production.js +279 -0
  300. package/node_modules/@jspm/core/src-browser/process.js +282 -0
  301. package/node_modules/@jspm/core/src-browser/punycode.js +8 -0
  302. package/node_modules/@jspm/core/src-browser/querystring.js +6 -0
  303. package/node_modules/@jspm/core/src-browser/readline.js +23 -0
  304. package/node_modules/@jspm/core/src-browser/repl.js +26 -0
  305. package/node_modules/@jspm/core/src-browser/stream/consumers.js +57 -0
  306. package/node_modules/@jspm/core/src-browser/stream/promises.js +4 -0
  307. package/node_modules/@jspm/core/src-browser/stream/web.js +33 -0
  308. package/node_modules/@jspm/core/src-browser/stream.js +26 -0
  309. package/node_modules/@jspm/core/src-browser/string_decoder.js +3 -0
  310. package/node_modules/@jspm/core/src-browser/sys.js +3 -0
  311. package/node_modules/@jspm/core/src-browser/timers/promises.js +12 -0
  312. package/node_modules/@jspm/core/src-browser/timers.js +13 -0
  313. package/node_modules/@jspm/core/src-browser/tls.js +46 -0
  314. package/node_modules/@jspm/core/src-browser/tty.js +3 -0
  315. package/node_modules/@jspm/core/src-browser/url.js +154 -0
  316. package/node_modules/@jspm/core/src-browser/util/types.js +48 -0
  317. package/node_modules/@jspm/core/src-browser/util.js +30 -0
  318. package/node_modules/@jspm/core/src-browser/v8.js +35 -0
  319. package/node_modules/@jspm/core/src-browser/vm.js +9 -0
  320. package/node_modules/@jspm/core/src-browser/wasi.js +15 -0
  321. package/node_modules/@jspm/core/src-browser/worker_threads.js +139 -0
  322. package/node_modules/@jspm/core/src-browser/zlib.js +71 -0
  323. package/node_modules/@jspm/core/test/chrome-worker_threads.test.js +14 -0
  324. package/node_modules/@jspm/core/test/cowsay.wasm +0 -0
  325. package/node_modules/@jspm/core/test/exports.test.js +99 -0
  326. package/node_modules/@jspm/core/test/fs.test.js +13 -0
  327. package/node_modules/@jspm/core/test/os.test.js +7 -0
  328. package/node_modules/@jspm/core/test/process.test.js +15 -0
  329. package/node_modules/@jspm/core/test/server.js +177 -0
  330. package/node_modules/@jspm/core/test/test.html +29 -0
  331. package/node_modules/@jspm/core/test/wasi.test.js +13 -0
  332. package/package.json +38 -24
  333. package/esm/utils/helpers.js +0 -32
  334. package/esm/utils/helpers.js.map +0 -1
@@ -0,0 +1,1345 @@
1
+ import { d as dew$c, a as dew$d, e as dew$e, f as dew$f } from './chunk-DtcTpLWz.js';
2
+ import { d as dew$g } from './chunk-CkFCi-G1.js';
3
+ import { p as process } from './chunk-DEMDiNwt.js';
4
+
5
+ var exports$c = {},
6
+ _dewExec$b = false;
7
+ function dew$b() {
8
+ if (_dewExec$b) return exports$c;
9
+ _dewExec$b = true;
10
+ var hasSymbols = dew$c();
11
+
12
+ /** @type {import('.')} */
13
+ exports$c = function hasToStringTagShams() {
14
+ return hasSymbols() && !!Symbol.toStringTag;
15
+ };
16
+ return exports$c;
17
+ }
18
+
19
+ var exports$b = {},
20
+ _dewExec$a = false;
21
+ function dew$a() {
22
+ if (_dewExec$a) return exports$b;
23
+ _dewExec$a = true;
24
+ var hasToStringTag = dew$b()();
25
+ var callBound = dew$d();
26
+ var $toString = callBound("Object.prototype.toString");
27
+ var isStandardArguments = function isArguments(value) {
28
+ if (hasToStringTag && value && typeof value === "object" && Symbol.toStringTag in value) {
29
+ return false;
30
+ }
31
+ return $toString(value) === "[object Arguments]";
32
+ };
33
+ var isLegacyArguments = function isArguments(value) {
34
+ if (isStandardArguments(value)) {
35
+ return true;
36
+ }
37
+ return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]";
38
+ };
39
+ var supportsStandardArguments = function () {
40
+ return isStandardArguments(arguments);
41
+ }();
42
+ isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
43
+
44
+ exports$b = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
45
+ return exports$b;
46
+ }
47
+
48
+ var exports$a = {},
49
+ _dewExec$9 = false;
50
+ function dew$9() {
51
+ if (_dewExec$9) return exports$a;
52
+ _dewExec$9 = true;
53
+ var toStr = Object.prototype.toString;
54
+ var fnToStr = Function.prototype.toString;
55
+ var isFnRegex = /^\s*(?:function)?\*/;
56
+ var hasToStringTag = dew$b()();
57
+ var getProto = Object.getPrototypeOf;
58
+ var getGeneratorFunc = function () {
59
+ // eslint-disable-line consistent-return
60
+ if (!hasToStringTag) {
61
+ return false;
62
+ }
63
+ try {
64
+ return Function("return function*() {}")();
65
+ } catch (e) {}
66
+ };
67
+ var GeneratorFunction;
68
+ exports$a = function isGeneratorFunction(fn) {
69
+ if (typeof fn !== "function") {
70
+ return false;
71
+ }
72
+ if (isFnRegex.test(fnToStr.call(fn))) {
73
+ return true;
74
+ }
75
+ if (!hasToStringTag) {
76
+ var str = toStr.call(fn);
77
+ return str === "[object GeneratorFunction]";
78
+ }
79
+ if (!getProto) {
80
+ return false;
81
+ }
82
+ if (typeof GeneratorFunction === "undefined") {
83
+ var generatorFunc = getGeneratorFunc();
84
+ GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
85
+ }
86
+ return getProto(fn) === GeneratorFunction;
87
+ };
88
+ return exports$a;
89
+ }
90
+
91
+ var exports$9 = {},
92
+ _dewExec$8 = false;
93
+ function dew$8() {
94
+ if (_dewExec$8) return exports$9;
95
+ _dewExec$8 = true;
96
+ var fnToStr = Function.prototype.toString;
97
+ var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
98
+ var badArrayLike;
99
+ var isCallableMarker;
100
+ if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
101
+ try {
102
+ badArrayLike = Object.defineProperty({}, "length", {
103
+ get: function () {
104
+ throw isCallableMarker;
105
+ }
106
+ });
107
+ isCallableMarker = {};
108
+ // eslint-disable-next-line no-throw-literal
109
+ reflectApply(function () {
110
+ throw 42;
111
+ }, null, badArrayLike);
112
+ } catch (_) {
113
+ if (_ !== isCallableMarker) {
114
+ reflectApply = null;
115
+ }
116
+ }
117
+ } else {
118
+ reflectApply = null;
119
+ }
120
+ var constructorRegex = /^\s*class\b/;
121
+ var isES6ClassFn = function isES6ClassFunction(value) {
122
+ try {
123
+ var fnStr = fnToStr.call(value);
124
+ return constructorRegex.test(fnStr);
125
+ } catch (e) {
126
+ return false; // not a function
127
+ }
128
+ };
129
+ var tryFunctionObject = function tryFunctionToStr(value) {
130
+ try {
131
+ if (isES6ClassFn(value)) {
132
+ return false;
133
+ }
134
+ fnToStr.call(value);
135
+ return true;
136
+ } catch (e) {
137
+ return false;
138
+ }
139
+ };
140
+ var toStr = Object.prototype.toString;
141
+ var objectClass = "[object Object]";
142
+ var fnClass = "[object Function]";
143
+ var genClass = "[object GeneratorFunction]";
144
+ var ddaClass = "[object HTMLAllCollection]"; // IE 11
145
+ var ddaClass2 = "[object HTML document.all class]";
146
+ var ddaClass3 = "[object HTMLCollection]"; // IE 9-10
147
+ var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag; // better: use `has-tostringtag`
148
+
149
+ var isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing
150
+
151
+ var isDDA = function isDocumentDotAll() {
152
+ return false;
153
+ };
154
+ if (typeof document === "object") {
155
+ // Firefox 3 canonicalizes DDA to undefined when it's not accessed directly
156
+ var all = document.all;
157
+ if (toStr.call(all) === toStr.call(document.all)) {
158
+ isDDA = function isDocumentDotAll(value) {
159
+ /* globals document: false */
160
+ // in IE 6-8, typeof document.all is "object" and it's truthy
161
+ if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) {
162
+ try {
163
+ var str = toStr.call(value);
164
+ return (str === ddaClass || str === ddaClass2 || str === ddaClass3 // opera 12.16
165
+ || str === objectClass // IE 6-8
166
+ ) && value("") == null; // eslint-disable-line eqeqeq
167
+ } catch (e) {/**/}
168
+ }
169
+ return false;
170
+ };
171
+ }
172
+ }
173
+ exports$9 = reflectApply ? function isCallable(value) {
174
+ if (isDDA(value)) {
175
+ return true;
176
+ }
177
+ if (!value) {
178
+ return false;
179
+ }
180
+ if (typeof value !== "function" && typeof value !== "object") {
181
+ return false;
182
+ }
183
+ try {
184
+ reflectApply(value, null, badArrayLike);
185
+ } catch (e) {
186
+ if (e !== isCallableMarker) {
187
+ return false;
188
+ }
189
+ }
190
+ return !isES6ClassFn(value) && tryFunctionObject(value);
191
+ } : function isCallable(value) {
192
+ if (isDDA(value)) {
193
+ return true;
194
+ }
195
+ if (!value) {
196
+ return false;
197
+ }
198
+ if (typeof value !== "function" && typeof value !== "object") {
199
+ return false;
200
+ }
201
+ if (hasToStringTag) {
202
+ return tryFunctionObject(value);
203
+ }
204
+ if (isES6ClassFn(value)) {
205
+ return false;
206
+ }
207
+ var strClass = toStr.call(value);
208
+ if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
209
+ return false;
210
+ }
211
+ return tryFunctionObject(value);
212
+ };
213
+ return exports$9;
214
+ }
215
+
216
+ var exports$8 = {},
217
+ _dewExec$7 = false;
218
+ function dew$7() {
219
+ if (_dewExec$7) return exports$8;
220
+ _dewExec$7 = true;
221
+ var isCallable = dew$8();
222
+ var toStr = Object.prototype.toString;
223
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
224
+ var forEachArray = function forEachArray(array, iterator, receiver) {
225
+ for (var i = 0, len = array.length; i < len; i++) {
226
+ if (hasOwnProperty.call(array, i)) {
227
+ if (receiver == null) {
228
+ iterator(array[i], i, array);
229
+ } else {
230
+ iterator.call(receiver, array[i], i, array);
231
+ }
232
+ }
233
+ }
234
+ };
235
+ var forEachString = function forEachString(string, iterator, receiver) {
236
+ for (var i = 0, len = string.length; i < len; i++) {
237
+ // no such thing as a sparse string.
238
+ if (receiver == null) {
239
+ iterator(string.charAt(i), i, string);
240
+ } else {
241
+ iterator.call(receiver, string.charAt(i), i, string);
242
+ }
243
+ }
244
+ };
245
+ var forEachObject = function forEachObject(object, iterator, receiver) {
246
+ for (var k in object) {
247
+ if (hasOwnProperty.call(object, k)) {
248
+ if (receiver == null) {
249
+ iterator(object[k], k, object);
250
+ } else {
251
+ iterator.call(receiver, object[k], k, object);
252
+ }
253
+ }
254
+ }
255
+ };
256
+ var forEach = function forEach(list, iterator, thisArg) {
257
+ if (!isCallable(iterator)) {
258
+ throw new TypeError("iterator must be a function");
259
+ }
260
+ var receiver;
261
+ if (arguments.length >= 3) {
262
+ receiver = thisArg;
263
+ }
264
+ if (toStr.call(list) === "[object Array]") {
265
+ forEachArray(list, iterator, receiver);
266
+ } else if (typeof list === "string") {
267
+ forEachString(list, iterator, receiver);
268
+ } else {
269
+ forEachObject(list, iterator, receiver);
270
+ }
271
+ };
272
+ exports$8 = forEach;
273
+ return exports$8;
274
+ }
275
+
276
+ var exports$7 = {},
277
+ _dewExec$6 = false;
278
+ function dew$6() {
279
+ if (_dewExec$6) return exports$7;
280
+ _dewExec$6 = true;
281
+ /** @type {import('.')} */
282
+ exports$7 = ["Float32Array", "Float64Array", "Int8Array", "Int16Array", "Int32Array", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "BigInt64Array", "BigUint64Array"];
283
+ return exports$7;
284
+ }
285
+
286
+ var exports$6 = {},
287
+ _dewExec$5 = false;
288
+ var _global$2 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
289
+ function dew$5() {
290
+ if (_dewExec$5) return exports$6;
291
+ _dewExec$5 = true;
292
+ var possibleNames = dew$6();
293
+ var g = typeof globalThis === "undefined" ? _global$2 : globalThis;
294
+
295
+ /** @type {import('.')} */
296
+ exports$6 = function availableTypedArrays() {
297
+ var /** @type {ReturnType<typeof availableTypedArrays>} */out = [];
298
+ for (var i = 0; i < possibleNames.length; i++) {
299
+ if (typeof g[possibleNames[i]] === "function") {
300
+ // @ts-expect-error
301
+ out[out.length] = possibleNames[i];
302
+ }
303
+ }
304
+ return out;
305
+ };
306
+ return exports$6;
307
+ }
308
+
309
+ var exports$5 = {},
310
+ _dewExec$4 = false;
311
+ var _global$1 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
312
+ function dew$4() {
313
+ if (_dewExec$4) return exports$5;
314
+ _dewExec$4 = true;
315
+ var forEach = dew$7();
316
+ var availableTypedArrays = dew$5();
317
+ var callBind = dew$e();
318
+ var callBound = dew$d();
319
+ var gOPD = dew$f();
320
+
321
+ /** @type {(O: object) => string} */
322
+ var $toString = callBound("Object.prototype.toString");
323
+ var hasToStringTag = dew$b()();
324
+ var g = typeof globalThis === "undefined" ? _global$1 : globalThis;
325
+ var typedArrays = availableTypedArrays();
326
+ var $slice = callBound("String.prototype.slice");
327
+ var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
328
+
329
+ /** @type {<T = unknown>(array: readonly T[], value: unknown) => number} */
330
+ var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
331
+ for (var i = 0; i < array.length; i += 1) {
332
+ if (array[i] === value) {
333
+ return i;
334
+ }
335
+ }
336
+ return -1;
337
+ };
338
+
339
+ /** @typedef {(receiver: import('.').TypedArray) => string | typeof Uint8Array.prototype.slice.call | typeof Uint8Array.prototype.set.call} Getter */
340
+ /** @type {{ [k in `\$${import('.').TypedArrayName}`]?: Getter } & { __proto__: null }} */
341
+ var cache = {
342
+ __proto__: null
343
+ };
344
+ if (hasToStringTag && gOPD && getPrototypeOf) {
345
+ forEach(typedArrays, function (typedArray) {
346
+ var arr = new g[typedArray]();
347
+ if (Symbol.toStringTag in arr) {
348
+ var proto = getPrototypeOf(arr);
349
+ // @ts-expect-error TS won't narrow inside a closure
350
+ var descriptor = gOPD(proto, Symbol.toStringTag);
351
+ if (!descriptor) {
352
+ var superProto = getPrototypeOf(proto);
353
+ // @ts-expect-error TS won't narrow inside a closure
354
+ descriptor = gOPD(superProto, Symbol.toStringTag);
355
+ }
356
+ // @ts-expect-error TODO: fix
357
+ cache["$" + typedArray] = callBind(descriptor.get);
358
+ }
359
+ });
360
+ } else {
361
+ forEach(typedArrays, function (typedArray) {
362
+ var arr = new g[typedArray]();
363
+ var fn = arr.slice || arr.set;
364
+ if (fn) {
365
+ // @ts-expect-error TODO: fix
366
+ cache["$" + typedArray] = callBind(fn);
367
+ }
368
+ });
369
+ }
370
+
371
+ /** @type {(value: object) => false | import('.').TypedArrayName} */
372
+ var tryTypedArrays = function tryAllTypedArrays(value) {
373
+ /** @type {ReturnType<typeof tryAllTypedArrays>} */var found = false;
374
+ forEach(
375
+ // eslint-disable-next-line no-extra-parens
376
+ /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */
377
+ cache, /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
378
+ function (getter, typedArray) {
379
+ if (!found) {
380
+ try {
381
+ // @ts-expect-error TODO: fix
382
+ if ("$" + getter(value) === typedArray) {
383
+ found = $slice(typedArray, 1);
384
+ }
385
+ } catch (e) {/**/}
386
+ }
387
+ });
388
+ return found;
389
+ };
390
+
391
+ /** @type {(value: object) => false | import('.').TypedArrayName} */
392
+ var trySlices = function tryAllSlices(value) {
393
+ /** @type {ReturnType<typeof tryAllSlices>} */var found = false;
394
+ forEach(
395
+ // eslint-disable-next-line no-extra-parens
396
+ /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */
397
+ cache, /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */function (getter, name) {
398
+ if (!found) {
399
+ try {
400
+ // @ts-expect-error TODO: fix
401
+ getter(value);
402
+ found = $slice(name, 1);
403
+ } catch (e) {/**/}
404
+ }
405
+ });
406
+ return found;
407
+ };
408
+
409
+ /** @type {import('.')} */
410
+ exports$5 = function whichTypedArray(value) {
411
+ if (!value || typeof value !== "object") {
412
+ return false;
413
+ }
414
+ if (!hasToStringTag) {
415
+ /** @type {string} */
416
+ var tag = $slice($toString(value), 8, -1);
417
+ if ($indexOf(typedArrays, tag) > -1) {
418
+ return tag;
419
+ }
420
+ if (tag !== "Object") {
421
+ return false;
422
+ }
423
+ // node < 0.6 hits here on real Typed Arrays
424
+ return trySlices(value);
425
+ }
426
+ if (!gOPD) {
427
+ return null;
428
+ } // unknown engine
429
+ return tryTypedArrays(value);
430
+ };
431
+ return exports$5;
432
+ }
433
+
434
+ var exports$4 = {},
435
+ _dewExec$3 = false;
436
+ function dew$3() {
437
+ if (_dewExec$3) return exports$4;
438
+ _dewExec$3 = true;
439
+ var whichTypedArray = dew$4();
440
+
441
+ /** @type {import('.')} */
442
+ exports$4 = function isTypedArray(value) {
443
+ return !!whichTypedArray(value);
444
+ };
445
+ return exports$4;
446
+ }
447
+
448
+ var exports$3 = {},
449
+ _dewExec$2 = false;
450
+ function dew$2() {
451
+ if (_dewExec$2) return exports$3;
452
+ _dewExec$2 = true;
453
+ var isArgumentsObject = dew$a();
454
+ var isGeneratorFunction = dew$9();
455
+ var whichTypedArray = dew$4();
456
+ var isTypedArray = dew$3();
457
+ function uncurryThis(f) {
458
+ return f.call.bind(f);
459
+ }
460
+ var BigIntSupported = typeof BigInt !== "undefined";
461
+ var SymbolSupported = typeof Symbol !== "undefined";
462
+ var ObjectToString = uncurryThis(Object.prototype.toString);
463
+ var numberValue = uncurryThis(Number.prototype.valueOf);
464
+ var stringValue = uncurryThis(String.prototype.valueOf);
465
+ var booleanValue = uncurryThis(Boolean.prototype.valueOf);
466
+ if (BigIntSupported) {
467
+ var bigIntValue = uncurryThis(BigInt.prototype.valueOf);
468
+ }
469
+ if (SymbolSupported) {
470
+ var symbolValue = uncurryThis(Symbol.prototype.valueOf);
471
+ }
472
+ function checkBoxedPrimitive(value, prototypeValueOf) {
473
+ if (typeof value !== "object") {
474
+ return false;
475
+ }
476
+ try {
477
+ prototypeValueOf(value);
478
+ return true;
479
+ } catch (e) {
480
+ return false;
481
+ }
482
+ }
483
+ exports$3.isArgumentsObject = isArgumentsObject;
484
+ exports$3.isGeneratorFunction = isGeneratorFunction;
485
+ exports$3.isTypedArray = isTypedArray;
486
+
487
+ // Taken from here and modified for better browser support
488
+ // https://github.com/sindresorhus/p-is-promise/blob/cda35a513bda03f977ad5cde3a079d237e82d7ef/index.js
489
+ function isPromise(input) {
490
+ return typeof Promise !== "undefined" && input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
491
+ }
492
+ exports$3.isPromise = isPromise;
493
+ function isArrayBufferView(value) {
494
+ if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
495
+ return ArrayBuffer.isView(value);
496
+ }
497
+ return isTypedArray(value) || isDataView(value);
498
+ }
499
+ exports$3.isArrayBufferView = isArrayBufferView;
500
+ function isUint8Array(value) {
501
+ return whichTypedArray(value) === "Uint8Array";
502
+ }
503
+ exports$3.isUint8Array = isUint8Array;
504
+ function isUint8ClampedArray(value) {
505
+ return whichTypedArray(value) === "Uint8ClampedArray";
506
+ }
507
+ exports$3.isUint8ClampedArray = isUint8ClampedArray;
508
+ function isUint16Array(value) {
509
+ return whichTypedArray(value) === "Uint16Array";
510
+ }
511
+ exports$3.isUint16Array = isUint16Array;
512
+ function isUint32Array(value) {
513
+ return whichTypedArray(value) === "Uint32Array";
514
+ }
515
+ exports$3.isUint32Array = isUint32Array;
516
+ function isInt8Array(value) {
517
+ return whichTypedArray(value) === "Int8Array";
518
+ }
519
+ exports$3.isInt8Array = isInt8Array;
520
+ function isInt16Array(value) {
521
+ return whichTypedArray(value) === "Int16Array";
522
+ }
523
+ exports$3.isInt16Array = isInt16Array;
524
+ function isInt32Array(value) {
525
+ return whichTypedArray(value) === "Int32Array";
526
+ }
527
+ exports$3.isInt32Array = isInt32Array;
528
+ function isFloat32Array(value) {
529
+ return whichTypedArray(value) === "Float32Array";
530
+ }
531
+ exports$3.isFloat32Array = isFloat32Array;
532
+ function isFloat64Array(value) {
533
+ return whichTypedArray(value) === "Float64Array";
534
+ }
535
+ exports$3.isFloat64Array = isFloat64Array;
536
+ function isBigInt64Array(value) {
537
+ return whichTypedArray(value) === "BigInt64Array";
538
+ }
539
+ exports$3.isBigInt64Array = isBigInt64Array;
540
+ function isBigUint64Array(value) {
541
+ return whichTypedArray(value) === "BigUint64Array";
542
+ }
543
+ exports$3.isBigUint64Array = isBigUint64Array;
544
+ function isMapToString(value) {
545
+ return ObjectToString(value) === "[object Map]";
546
+ }
547
+ isMapToString.working = typeof Map !== "undefined" && isMapToString(new Map());
548
+ function isMap(value) {
549
+ if (typeof Map === "undefined") {
550
+ return false;
551
+ }
552
+ return isMapToString.working ? isMapToString(value) : value instanceof Map;
553
+ }
554
+ exports$3.isMap = isMap;
555
+ function isSetToString(value) {
556
+ return ObjectToString(value) === "[object Set]";
557
+ }
558
+ isSetToString.working = typeof Set !== "undefined" && isSetToString(new Set());
559
+ function isSet(value) {
560
+ if (typeof Set === "undefined") {
561
+ return false;
562
+ }
563
+ return isSetToString.working ? isSetToString(value) : value instanceof Set;
564
+ }
565
+ exports$3.isSet = isSet;
566
+ function isWeakMapToString(value) {
567
+ return ObjectToString(value) === "[object WeakMap]";
568
+ }
569
+ isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(new WeakMap());
570
+ function isWeakMap(value) {
571
+ if (typeof WeakMap === "undefined") {
572
+ return false;
573
+ }
574
+ return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
575
+ }
576
+ exports$3.isWeakMap = isWeakMap;
577
+ function isWeakSetToString(value) {
578
+ return ObjectToString(value) === "[object WeakSet]";
579
+ }
580
+ isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(new WeakSet());
581
+ function isWeakSet(value) {
582
+ return isWeakSetToString(value);
583
+ }
584
+ exports$3.isWeakSet = isWeakSet;
585
+ function isArrayBufferToString(value) {
586
+ return ObjectToString(value) === "[object ArrayBuffer]";
587
+ }
588
+ isArrayBufferToString.working = typeof ArrayBuffer !== "undefined" && isArrayBufferToString(new ArrayBuffer());
589
+ function isArrayBuffer(value) {
590
+ if (typeof ArrayBuffer === "undefined") {
591
+ return false;
592
+ }
593
+ return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;
594
+ }
595
+ exports$3.isArrayBuffer = isArrayBuffer;
596
+ function isDataViewToString(value) {
597
+ return ObjectToString(value) === "[object DataView]";
598
+ }
599
+ isDataViewToString.working = typeof ArrayBuffer !== "undefined" && typeof DataView !== "undefined" && isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1));
600
+ function isDataView(value) {
601
+ if (typeof DataView === "undefined") {
602
+ return false;
603
+ }
604
+ return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;
605
+ }
606
+ exports$3.isDataView = isDataView;
607
+
608
+ // Store a copy of SharedArrayBuffer in case it's deleted elsewhere
609
+ var SharedArrayBufferCopy = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : undefined;
610
+ function isSharedArrayBufferToString(value) {
611
+ return ObjectToString(value) === "[object SharedArrayBuffer]";
612
+ }
613
+ function isSharedArrayBuffer(value) {
614
+ if (typeof SharedArrayBufferCopy === "undefined") {
615
+ return false;
616
+ }
617
+ if (typeof isSharedArrayBufferToString.working === "undefined") {
618
+ isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());
619
+ }
620
+ return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;
621
+ }
622
+ exports$3.isSharedArrayBuffer = isSharedArrayBuffer;
623
+ function isAsyncFunction(value) {
624
+ return ObjectToString(value) === "[object AsyncFunction]";
625
+ }
626
+ exports$3.isAsyncFunction = isAsyncFunction;
627
+ function isMapIterator(value) {
628
+ return ObjectToString(value) === "[object Map Iterator]";
629
+ }
630
+ exports$3.isMapIterator = isMapIterator;
631
+ function isSetIterator(value) {
632
+ return ObjectToString(value) === "[object Set Iterator]";
633
+ }
634
+ exports$3.isSetIterator = isSetIterator;
635
+ function isGeneratorObject(value) {
636
+ return ObjectToString(value) === "[object Generator]";
637
+ }
638
+ exports$3.isGeneratorObject = isGeneratorObject;
639
+ function isWebAssemblyCompiledModule(value) {
640
+ return ObjectToString(value) === "[object WebAssembly.Module]";
641
+ }
642
+ exports$3.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
643
+ function isNumberObject(value) {
644
+ return checkBoxedPrimitive(value, numberValue);
645
+ }
646
+ exports$3.isNumberObject = isNumberObject;
647
+ function isStringObject(value) {
648
+ return checkBoxedPrimitive(value, stringValue);
649
+ }
650
+ exports$3.isStringObject = isStringObject;
651
+ function isBooleanObject(value) {
652
+ return checkBoxedPrimitive(value, booleanValue);
653
+ }
654
+ exports$3.isBooleanObject = isBooleanObject;
655
+ function isBigIntObject(value) {
656
+ return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
657
+ }
658
+ exports$3.isBigIntObject = isBigIntObject;
659
+ function isSymbolObject(value) {
660
+ return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
661
+ }
662
+ exports$3.isSymbolObject = isSymbolObject;
663
+ function isBoxedPrimitive(value) {
664
+ return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);
665
+ }
666
+ exports$3.isBoxedPrimitive = isBoxedPrimitive;
667
+ function isAnyArrayBuffer(value) {
668
+ return typeof Uint8Array !== "undefined" && (isArrayBuffer(value) || isSharedArrayBuffer(value));
669
+ }
670
+ exports$3.isAnyArrayBuffer = isAnyArrayBuffer;
671
+ ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function (method) {
672
+ Object.defineProperty(exports$3, method, {
673
+ enumerable: false,
674
+ value: function () {
675
+ throw new Error(method + " is not supported in userland");
676
+ }
677
+ });
678
+ });
679
+ return exports$3;
680
+ }
681
+
682
+ var exports$2 = {},
683
+ _dewExec$1 = false;
684
+ function dew$1() {
685
+ if (_dewExec$1) return exports$2;
686
+ _dewExec$1 = true;
687
+ exports$2 = function isBuffer(arg) {
688
+ return arg && typeof arg === "object" && typeof arg.copy === "function" && typeof arg.fill === "function" && typeof arg.readUInt8 === "function";
689
+ };
690
+ return exports$2;
691
+ }
692
+
693
+ var exports$1 = {},
694
+ _dewExec = false;
695
+ var _global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : global;
696
+ function dew() {
697
+ if (_dewExec) return exports$1;
698
+ _dewExec = true;
699
+ var process$1 = process;
700
+ // Copyright Joyent, Inc. and other Node contributors.
701
+ //
702
+ // Permission is hereby granted, free of charge, to any person obtaining a
703
+ // copy of this software and associated documentation files (the
704
+ // "Software"), to deal in the Software without restriction, including
705
+ // without limitation the rights to use, copy, modify, merge, publish,
706
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
707
+ // persons to whom the Software is furnished to do so, subject to the
708
+ // following conditions:
709
+ //
710
+ // The above copyright notice and this permission notice shall be included
711
+ // in all copies or substantial portions of the Software.
712
+ //
713
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
714
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
715
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
716
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
717
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
718
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
719
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
720
+
721
+ var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors(obj) {
722
+ var keys = Object.keys(obj);
723
+ var descriptors = {};
724
+ for (var i = 0; i < keys.length; i++) {
725
+ descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);
726
+ }
727
+ return descriptors;
728
+ };
729
+ var formatRegExp = /%[sdj%]/g;
730
+ exports$1.format = function (f) {
731
+ if (!isString(f)) {
732
+ var objects = [];
733
+ for (var i = 0; i < arguments.length; i++) {
734
+ objects.push(inspect(arguments[i]));
735
+ }
736
+ return objects.join(" ");
737
+ }
738
+ var i = 1;
739
+ var args = arguments;
740
+ var len = args.length;
741
+ var str = String(f).replace(formatRegExp, function (x) {
742
+ if (x === "%%") return "%";
743
+ if (i >= len) return x;
744
+ switch (x) {
745
+ case "%s":
746
+ return String(args[i++]);
747
+ case "%d":
748
+ return Number(args[i++]);
749
+ case "%j":
750
+ try {
751
+ return JSON.stringify(args[i++]);
752
+ } catch (_) {
753
+ return "[Circular]";
754
+ }
755
+ default:
756
+ return x;
757
+ }
758
+ });
759
+ for (var x = args[i]; i < len; x = args[++i]) {
760
+ if (isNull(x) || !isObject(x)) {
761
+ str += " " + x;
762
+ } else {
763
+ str += " " + inspect(x);
764
+ }
765
+ }
766
+ return str;
767
+ };
768
+
769
+ // Mark that a method should not be used.
770
+ // Returns a modified function which warns once by default.
771
+ // If --no-deprecation is set, then it is a no-op.
772
+ exports$1.deprecate = function (fn, msg) {
773
+ if (typeof process$1 !== "undefined" && process$1.noDeprecation === true) {
774
+ return fn;
775
+ }
776
+
777
+ // Allow for deprecating things in the process of starting up.
778
+ if (typeof process$1 === "undefined") {
779
+ return function () {
780
+ return exports$1.deprecate(fn, msg).apply(this || _global, arguments);
781
+ };
782
+ }
783
+ var warned = false;
784
+ function deprecated() {
785
+ if (!warned) {
786
+ if (process$1.throwDeprecation) {
787
+ throw new Error(msg);
788
+ } else if (process$1.traceDeprecation) {
789
+ console.trace(msg);
790
+ } else {
791
+ console.error(msg);
792
+ }
793
+ warned = true;
794
+ }
795
+ return fn.apply(this || _global, arguments);
796
+ }
797
+ return deprecated;
798
+ };
799
+ var debugs = {};
800
+ var debugEnvRegex = /^$/;
801
+ if (process$1.env.NODE_DEBUG) {
802
+ var debugEnv = process$1.env.NODE_DEBUG;
803
+ debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase();
804
+ debugEnvRegex = new RegExp("^" + debugEnv + "$", "i");
805
+ }
806
+ exports$1.debuglog = function (set) {
807
+ set = set.toUpperCase();
808
+ if (!debugs[set]) {
809
+ if (debugEnvRegex.test(set)) {
810
+ var pid = process$1.pid;
811
+ debugs[set] = function () {
812
+ var msg = exports$1.format.apply(exports$1, arguments);
813
+ console.error("%s %d: %s", set, pid, msg);
814
+ };
815
+ } else {
816
+ debugs[set] = function () {};
817
+ }
818
+ }
819
+ return debugs[set];
820
+ };
821
+
822
+ /**
823
+ * Echos the value of a value. Trys to print the value out
824
+ * in the best way possible given the different types.
825
+ *
826
+ * @param {Object} obj The object to print out.
827
+ * @param {Object} opts Optional options object that alters the output.
828
+ */
829
+ /* legacy: obj, showHidden, depth, colors*/
830
+ function inspect(obj, opts) {
831
+ // default options
832
+ var ctx = {
833
+ seen: [],
834
+ stylize: stylizeNoColor
835
+ };
836
+ // legacy...
837
+ if (arguments.length >= 3) ctx.depth = arguments[2];
838
+ if (arguments.length >= 4) ctx.colors = arguments[3];
839
+ if (isBoolean(opts)) {
840
+ // legacy...
841
+ ctx.showHidden = opts;
842
+ } else if (opts) {
843
+ // got an "options" object
844
+ exports$1._extend(ctx, opts);
845
+ }
846
+ // set default options
847
+ if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
848
+ if (isUndefined(ctx.depth)) ctx.depth = 2;
849
+ if (isUndefined(ctx.colors)) ctx.colors = false;
850
+ if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
851
+ if (ctx.colors) ctx.stylize = stylizeWithColor;
852
+ return formatValue(ctx, obj, ctx.depth);
853
+ }
854
+ exports$1.inspect = inspect;
855
+
856
+ // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
857
+ inspect.colors = {
858
+ "bold": [1, 22],
859
+ "italic": [3, 23],
860
+ "underline": [4, 24],
861
+ "inverse": [7, 27],
862
+ "white": [37, 39],
863
+ "grey": [90, 39],
864
+ "black": [30, 39],
865
+ "blue": [34, 39],
866
+ "cyan": [36, 39],
867
+ "green": [32, 39],
868
+ "magenta": [35, 39],
869
+ "red": [31, 39],
870
+ "yellow": [33, 39]
871
+ };
872
+
873
+ // Don't use 'blue' not visible on cmd.exe
874
+ inspect.styles = {
875
+ "special": "cyan",
876
+ "number": "yellow",
877
+ "boolean": "yellow",
878
+ "undefined": "grey",
879
+ "null": "bold",
880
+ "string": "green",
881
+ "date": "magenta",
882
+ // "name": intentionally not styling
883
+ "regexp": "red"
884
+ };
885
+ function stylizeWithColor(str, styleType) {
886
+ var style = inspect.styles[styleType];
887
+ if (style) {
888
+ return "\x1B[" + inspect.colors[style][0] + "m" + str + "\x1B[" + inspect.colors[style][1] + "m";
889
+ } else {
890
+ return str;
891
+ }
892
+ }
893
+ function stylizeNoColor(str, styleType) {
894
+ return str;
895
+ }
896
+ function arrayToHash(array) {
897
+ var hash = {};
898
+ array.forEach(function (val, idx) {
899
+ hash[val] = true;
900
+ });
901
+ return hash;
902
+ }
903
+ function formatValue(ctx, value, recurseTimes) {
904
+ // Provide a hook for user-specified inspect functions.
905
+ // Check that value is an object with an inspect function on it
906
+ if (ctx.customInspect && value && isFunction(value.inspect) &&
907
+ // Filter out the util module, it's inspect function is special
908
+ value.inspect !== exports$1.inspect &&
909
+ // Also filter out any prototype objects using the circular check.
910
+ !(value.constructor && value.constructor.prototype === value)) {
911
+ var ret = value.inspect(recurseTimes, ctx);
912
+ if (!isString(ret)) {
913
+ ret = formatValue(ctx, ret, recurseTimes);
914
+ }
915
+ return ret;
916
+ }
917
+
918
+ // Primitive types cannot have properties
919
+ var primitive = formatPrimitive(ctx, value);
920
+ if (primitive) {
921
+ return primitive;
922
+ }
923
+
924
+ // Look up the keys of the object.
925
+ var keys = Object.keys(value);
926
+ var visibleKeys = arrayToHash(keys);
927
+ if (ctx.showHidden) {
928
+ keys = Object.getOwnPropertyNames(value);
929
+ }
930
+
931
+ // IE doesn't make error fields non-enumerable
932
+ // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
933
+ if (isError(value) && (keys.indexOf("message") >= 0 || keys.indexOf("description") >= 0)) {
934
+ return formatError(value);
935
+ }
936
+
937
+ // Some type of object without properties can be shortcutted.
938
+ if (keys.length === 0) {
939
+ if (isFunction(value)) {
940
+ var name = value.name ? ": " + value.name : "";
941
+ return ctx.stylize("[Function" + name + "]", "special");
942
+ }
943
+ if (isRegExp(value)) {
944
+ return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
945
+ }
946
+ if (isDate(value)) {
947
+ return ctx.stylize(Date.prototype.toString.call(value), "date");
948
+ }
949
+ if (isError(value)) {
950
+ return formatError(value);
951
+ }
952
+ }
953
+ var base = "",
954
+ array = false,
955
+ braces = ["{", "}"];
956
+
957
+ // Make Array say that they are Array
958
+ if (isArray(value)) {
959
+ array = true;
960
+ braces = ["[", "]"];
961
+ }
962
+
963
+ // Make functions say that they are functions
964
+ if (isFunction(value)) {
965
+ var n = value.name ? ": " + value.name : "";
966
+ base = " [Function" + n + "]";
967
+ }
968
+
969
+ // Make RegExps say that they are RegExps
970
+ if (isRegExp(value)) {
971
+ base = " " + RegExp.prototype.toString.call(value);
972
+ }
973
+
974
+ // Make dates with properties first say the date
975
+ if (isDate(value)) {
976
+ base = " " + Date.prototype.toUTCString.call(value);
977
+ }
978
+
979
+ // Make error with message first say the error
980
+ if (isError(value)) {
981
+ base = " " + formatError(value);
982
+ }
983
+ if (keys.length === 0 && (!array || value.length == 0)) {
984
+ return braces[0] + base + braces[1];
985
+ }
986
+ if (recurseTimes < 0) {
987
+ if (isRegExp(value)) {
988
+ return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
989
+ } else {
990
+ return ctx.stylize("[Object]", "special");
991
+ }
992
+ }
993
+ ctx.seen.push(value);
994
+ var output;
995
+ if (array) {
996
+ output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
997
+ } else {
998
+ output = keys.map(function (key) {
999
+ return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
1000
+ });
1001
+ }
1002
+ ctx.seen.pop();
1003
+ return reduceToSingleString(output, base, braces);
1004
+ }
1005
+ function formatPrimitive(ctx, value) {
1006
+ if (isUndefined(value)) return ctx.stylize("undefined", "undefined");
1007
+ if (isString(value)) {
1008
+ var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, "\"") + "'";
1009
+ return ctx.stylize(simple, "string");
1010
+ }
1011
+ if (isNumber(value)) return ctx.stylize("" + value, "number");
1012
+ if (isBoolean(value)) return ctx.stylize("" + value, "boolean");
1013
+ // For some reason typeof null is "object", so special case here.
1014
+ if (isNull(value)) return ctx.stylize("null", "null");
1015
+ }
1016
+ function formatError(value) {
1017
+ return "[" + Error.prototype.toString.call(value) + "]";
1018
+ }
1019
+ function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
1020
+ var output = [];
1021
+ for (var i = 0, l = value.length; i < l; ++i) {
1022
+ if (hasOwnProperty(value, String(i))) {
1023
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));
1024
+ } else {
1025
+ output.push("");
1026
+ }
1027
+ }
1028
+ keys.forEach(function (key) {
1029
+ if (!key.match(/^\d+$/)) {
1030
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));
1031
+ }
1032
+ });
1033
+ return output;
1034
+ }
1035
+ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
1036
+ var name, str, desc;
1037
+ desc = Object.getOwnPropertyDescriptor(value, key) || {
1038
+ value: value[key]
1039
+ };
1040
+ if (desc.get) {
1041
+ if (desc.set) {
1042
+ str = ctx.stylize("[Getter/Setter]", "special");
1043
+ } else {
1044
+ str = ctx.stylize("[Getter]", "special");
1045
+ }
1046
+ } else {
1047
+ if (desc.set) {
1048
+ str = ctx.stylize("[Setter]", "special");
1049
+ }
1050
+ }
1051
+ if (!hasOwnProperty(visibleKeys, key)) {
1052
+ name = "[" + key + "]";
1053
+ }
1054
+ if (!str) {
1055
+ if (ctx.seen.indexOf(desc.value) < 0) {
1056
+ if (isNull(recurseTimes)) {
1057
+ str = formatValue(ctx, desc.value, null);
1058
+ } else {
1059
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
1060
+ }
1061
+ if (str.indexOf("\n") > -1) {
1062
+ if (array) {
1063
+ str = str.split("\n").map(function (line) {
1064
+ return " " + line;
1065
+ }).join("\n").slice(2);
1066
+ } else {
1067
+ str = "\n" + str.split("\n").map(function (line) {
1068
+ return " " + line;
1069
+ }).join("\n");
1070
+ }
1071
+ }
1072
+ } else {
1073
+ str = ctx.stylize("[Circular]", "special");
1074
+ }
1075
+ }
1076
+ if (isUndefined(name)) {
1077
+ if (array && key.match(/^\d+$/)) {
1078
+ return str;
1079
+ }
1080
+ name = JSON.stringify("" + key);
1081
+ if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
1082
+ name = name.slice(1, -1);
1083
+ name = ctx.stylize(name, "name");
1084
+ } else {
1085
+ name = name.replace(/'/g, "\\'").replace(/\\"/g, "\"").replace(/(^"|"$)/g, "'");
1086
+ name = ctx.stylize(name, "string");
1087
+ }
1088
+ }
1089
+ return name + ": " + str;
1090
+ }
1091
+ function reduceToSingleString(output, base, braces) {
1092
+ var length = output.reduce(function (prev, cur) {
1093
+ if (cur.indexOf("\n") >= 0) ;
1094
+ return prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1;
1095
+ }, 0);
1096
+ if (length > 60) {
1097
+ return braces[0] + (base === "" ? "" : base + "\n ") + " " + output.join(",\n ") + " " + braces[1];
1098
+ }
1099
+ return braces[0] + base + " " + output.join(", ") + " " + braces[1];
1100
+ }
1101
+
1102
+ // NOTE: These type checking functions intentionally don't use `instanceof`
1103
+ // because it is fragile and can be easily faked with `Object.create()`.
1104
+ exports$1.types = dew$2();
1105
+ function isArray(ar) {
1106
+ return Array.isArray(ar);
1107
+ }
1108
+ exports$1.isArray = isArray;
1109
+ function isBoolean(arg) {
1110
+ return typeof arg === "boolean";
1111
+ }
1112
+ exports$1.isBoolean = isBoolean;
1113
+ function isNull(arg) {
1114
+ return arg === null;
1115
+ }
1116
+ exports$1.isNull = isNull;
1117
+ function isNullOrUndefined(arg) {
1118
+ return arg == null;
1119
+ }
1120
+ exports$1.isNullOrUndefined = isNullOrUndefined;
1121
+ function isNumber(arg) {
1122
+ return typeof arg === "number";
1123
+ }
1124
+ exports$1.isNumber = isNumber;
1125
+ function isString(arg) {
1126
+ return typeof arg === "string";
1127
+ }
1128
+ exports$1.isString = isString;
1129
+ function isSymbol(arg) {
1130
+ return typeof arg === "symbol";
1131
+ }
1132
+ exports$1.isSymbol = isSymbol;
1133
+ function isUndefined(arg) {
1134
+ return arg === void 0;
1135
+ }
1136
+ exports$1.isUndefined = isUndefined;
1137
+ function isRegExp(re) {
1138
+ return isObject(re) && objectToString(re) === "[object RegExp]";
1139
+ }
1140
+ exports$1.isRegExp = isRegExp;
1141
+ exports$1.types.isRegExp = isRegExp;
1142
+ function isObject(arg) {
1143
+ return typeof arg === "object" && arg !== null;
1144
+ }
1145
+ exports$1.isObject = isObject;
1146
+ function isDate(d) {
1147
+ return isObject(d) && objectToString(d) === "[object Date]";
1148
+ }
1149
+ exports$1.isDate = isDate;
1150
+ exports$1.types.isDate = isDate;
1151
+ function isError(e) {
1152
+ return isObject(e) && (objectToString(e) === "[object Error]" || e instanceof Error);
1153
+ }
1154
+ exports$1.isError = isError;
1155
+ exports$1.types.isNativeError = isError;
1156
+ function isFunction(arg) {
1157
+ return typeof arg === "function";
1158
+ }
1159
+ exports$1.isFunction = isFunction;
1160
+ function isPrimitive(arg) {
1161
+ return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" ||
1162
+ // ES6 symbol
1163
+ typeof arg === "undefined";
1164
+ }
1165
+ exports$1.isPrimitive = isPrimitive;
1166
+ exports$1.isBuffer = dew$1();
1167
+ function objectToString(o) {
1168
+ return Object.prototype.toString.call(o);
1169
+ }
1170
+ function pad(n) {
1171
+ return n < 10 ? "0" + n.toString(10) : n.toString(10);
1172
+ }
1173
+ var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
1174
+
1175
+ // 26 Feb 16:19:34
1176
+ function timestamp() {
1177
+ var d = new Date();
1178
+ var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(":");
1179
+ return [d.getDate(), months[d.getMonth()], time].join(" ");
1180
+ }
1181
+
1182
+ // log is just a thin wrapper to console.log that prepends a timestamp
1183
+ exports$1.log = function () {
1184
+ console.log("%s - %s", timestamp(), exports$1.format.apply(exports$1, arguments));
1185
+ };
1186
+
1187
+ /**
1188
+ * Inherit the prototype methods from one constructor into another.
1189
+ *
1190
+ * The Function.prototype.inherits from lang.js rewritten as a standalone
1191
+ * function (not on Function.prototype). NOTE: If this file is to be loaded
1192
+ * during bootstrapping this function needs to be rewritten using some native
1193
+ * functions as prototype setup using normal JavaScript does not work as
1194
+ * expected during bootstrapping (see mirror.js in r114903).
1195
+ *
1196
+ * @param {function} ctor Constructor function which needs to inherit the
1197
+ * prototype.
1198
+ * @param {function} superCtor Constructor function to inherit prototype from.
1199
+ */
1200
+ exports$1.inherits = dew$g();
1201
+ exports$1._extend = function (origin, add) {
1202
+ // Don't do anything if add isn't an object
1203
+ if (!add || !isObject(add)) return origin;
1204
+ var keys = Object.keys(add);
1205
+ var i = keys.length;
1206
+ while (i--) {
1207
+ origin[keys[i]] = add[keys[i]];
1208
+ }
1209
+ return origin;
1210
+ };
1211
+ function hasOwnProperty(obj, prop) {
1212
+ return Object.prototype.hasOwnProperty.call(obj, prop);
1213
+ }
1214
+ var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : undefined;
1215
+ exports$1.promisify = function promisify(original) {
1216
+ if (typeof original !== "function") throw new TypeError("The \"original\" argument must be of type Function");
1217
+ if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
1218
+ fn = original[kCustomPromisifiedSymbol];
1219
+ if (typeof fn !== "function") {
1220
+ throw new TypeError("The \"util.promisify.custom\" argument must be of type Function");
1221
+ }
1222
+ Object.defineProperty(fn, kCustomPromisifiedSymbol, {
1223
+ value: fn,
1224
+ enumerable: false,
1225
+ writable: false,
1226
+ configurable: true
1227
+ });
1228
+ return fn;
1229
+ }
1230
+ function fn() {
1231
+ var promiseResolve, promiseReject;
1232
+ var promise = new Promise(function (resolve, reject) {
1233
+ promiseResolve = resolve;
1234
+ promiseReject = reject;
1235
+ });
1236
+ var args = [];
1237
+ for (var i = 0; i < arguments.length; i++) {
1238
+ args.push(arguments[i]);
1239
+ }
1240
+ args.push(function (err, value) {
1241
+ if (err) {
1242
+ promiseReject(err);
1243
+ } else {
1244
+ promiseResolve(value);
1245
+ }
1246
+ });
1247
+ try {
1248
+ original.apply(this || _global, args);
1249
+ } catch (err) {
1250
+ promiseReject(err);
1251
+ }
1252
+ return promise;
1253
+ }
1254
+ Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
1255
+ if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
1256
+ value: fn,
1257
+ enumerable: false,
1258
+ writable: false,
1259
+ configurable: true
1260
+ });
1261
+ return Object.defineProperties(fn, getOwnPropertyDescriptors(original));
1262
+ };
1263
+ exports$1.promisify.custom = kCustomPromisifiedSymbol;
1264
+ function callbackifyOnRejected(reason, cb) {
1265
+ // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).
1266
+ // Because `null` is a special error value in callbacks which means "no error
1267
+ // occurred", we error-wrap so the callback consumer can distinguish between
1268
+ // "the promise rejected with null" or "the promise fulfilled with undefined".
1269
+ if (!reason) {
1270
+ var newReason = new Error("Promise was rejected with a falsy value");
1271
+ newReason.reason = reason;
1272
+ reason = newReason;
1273
+ }
1274
+ return cb(reason);
1275
+ }
1276
+ function callbackify(original) {
1277
+ if (typeof original !== "function") {
1278
+ throw new TypeError("The \"original\" argument must be of type Function");
1279
+ }
1280
+
1281
+ // We DO NOT return the promise as it gives the user a false sense that
1282
+ // the promise is actually somehow related to the callback's execution
1283
+ // and that the callback throwing will reject the promise.
1284
+ function callbackified() {
1285
+ var args = [];
1286
+ for (var i = 0; i < arguments.length; i++) {
1287
+ args.push(arguments[i]);
1288
+ }
1289
+ var maybeCb = args.pop();
1290
+ if (typeof maybeCb !== "function") {
1291
+ throw new TypeError("The last argument must be of type Function");
1292
+ }
1293
+ var self = this || _global;
1294
+ var cb = function () {
1295
+ return maybeCb.apply(self, arguments);
1296
+ };
1297
+ // In true node style we process the callback on `nextTick` with all the
1298
+ // implications (stack, `uncaughtException`, `async_hooks`)
1299
+ original.apply(this || _global, args).then(function (ret) {
1300
+ process$1.nextTick(cb.bind(null, null, ret));
1301
+ }, function (rej) {
1302
+ process$1.nextTick(callbackifyOnRejected.bind(null, rej, cb));
1303
+ });
1304
+ }
1305
+ Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
1306
+ Object.defineProperties(callbackified, getOwnPropertyDescriptors(original));
1307
+ return callbackified;
1308
+ }
1309
+ exports$1.callbackify = callbackify;
1310
+ return exports$1;
1311
+ }
1312
+
1313
+ const exports = dew();
1314
+ exports['format']; exports['deprecate']; exports['debuglog']; exports['inspect']; exports['types']; exports['isArray']; exports['isBoolean']; exports['isNull']; exports['isNullOrUndefined']; exports['isNumber']; exports['isString']; exports['isSymbol']; exports['isUndefined']; exports['isRegExp']; exports['isObject']; exports['isDate']; exports['isError']; exports['isFunction']; exports['isPrimitive']; exports['isBuffer']; exports['log']; exports['inherits']; exports['_extend']; exports['promisify']; exports['callbackify'];
1315
+
1316
+ var _extend = exports._extend;
1317
+ var callbackify = exports.callbackify;
1318
+ var debuglog = exports.debuglog;
1319
+ var deprecate = exports.deprecate;
1320
+ var format = exports.format;
1321
+ var inherits = exports.inherits;
1322
+ var inspect = exports.inspect;
1323
+ var isArray = exports.isArray;
1324
+ var isBoolean = exports.isBoolean;
1325
+ var isBuffer = exports.isBuffer;
1326
+ var isDate = exports.isDate;
1327
+ var isError = exports.isError;
1328
+ var isFunction = exports.isFunction;
1329
+ var isNull = exports.isNull;
1330
+ var isNullOrUndefined = exports.isNullOrUndefined;
1331
+ var isNumber = exports.isNumber;
1332
+ var isObject = exports.isObject;
1333
+ var isPrimitive = exports.isPrimitive;
1334
+ var isRegExp = exports.isRegExp;
1335
+ var isString = exports.isString;
1336
+ var isSymbol = exports.isSymbol;
1337
+ var isUndefined = exports.isUndefined;
1338
+ var log = exports.log;
1339
+ var promisify = exports.promisify;
1340
+ var types = exports.types;
1341
+
1342
+ const TextEncoder = exports.TextEncoder = globalThis.TextEncoder;
1343
+ const TextDecoder = exports.TextDecoder = globalThis.TextDecoder;
1344
+
1345
+ export { TextDecoder, TextEncoder, _extend, callbackify, debuglog, exports as default, deprecate, format, inherits, inspect, isArray, isBoolean, isBuffer, isDate, isError, isFunction, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined, log, promisify, types };