@emulsify/cli 0.0.0-development

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 (2090) hide show
  1. package/LICENSE +339 -0
  2. package/README.md +145 -0
  3. package/dist/handlers/componentInstall.js +72 -0
  4. package/dist/handlers/componentList.js +45 -0
  5. package/dist/handlers/hofs/withProgressBar.js +16 -0
  6. package/dist/handlers/init.js +85 -0
  7. package/dist/handlers/systemInstall.js +146 -0
  8. package/dist/handlers/systemList.js +11 -0
  9. package/dist/index.js +48 -0
  10. package/dist/lib/constants.js +14 -0
  11. package/dist/lib/log.js +31 -0
  12. package/dist/node_modules/.package-lock.json +289 -0
  13. package/dist/node_modules/@kwsites/file-exists/CHANGELOG.md +12 -0
  14. package/dist/node_modules/@kwsites/file-exists/LICENSE +20 -0
  15. package/dist/node_modules/@kwsites/file-exists/dist/index.d.ts +1 -0
  16. package/dist/node_modules/@kwsites/file-exists/dist/index.js +7 -0
  17. package/dist/node_modules/@kwsites/file-exists/dist/index.js.map +1 -0
  18. package/dist/node_modules/@kwsites/file-exists/dist/src/index.d.ts +19 -0
  19. package/dist/node_modules/@kwsites/file-exists/dist/src/index.js +55 -0
  20. package/dist/node_modules/@kwsites/file-exists/dist/src/index.js.map +1 -0
  21. package/dist/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.d.ts +7 -0
  22. package/dist/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js +26 -0
  23. package/dist/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js.map +1 -0
  24. package/dist/node_modules/@kwsites/file-exists/dist/test/exists.spec.d.ts +1 -0
  25. package/dist/node_modules/@kwsites/file-exists/dist/test/exists.spec.js +77 -0
  26. package/dist/node_modules/@kwsites/file-exists/dist/test/exists.spec.js.map +1 -0
  27. package/dist/node_modules/@kwsites/file-exists/package.json +42 -0
  28. package/dist/node_modules/@kwsites/file-exists/readme.md +41 -0
  29. package/dist/node_modules/@kwsites/promise-deferred/LICENSE +21 -0
  30. package/dist/node_modules/@kwsites/promise-deferred/dist/index.d.ts +49 -0
  31. package/dist/node_modules/@kwsites/promise-deferred/dist/index.js +59 -0
  32. package/dist/node_modules/@kwsites/promise-deferred/dist/index.js.map +1 -0
  33. package/dist/node_modules/@kwsites/promise-deferred/package.json +43 -0
  34. package/dist/node_modules/@types/node/LICENSE +21 -0
  35. package/dist/node_modules/@types/node/README.md +15 -0
  36. package/dist/node_modules/@types/node/assert/strict.d.ts +8 -0
  37. package/dist/node_modules/@types/node/assert.d.ts +1040 -0
  38. package/dist/node_modules/@types/node/async_hooks.d.ts +541 -0
  39. package/dist/node_modules/@types/node/buffer.d.ts +2282 -0
  40. package/dist/node_modules/@types/node/child_process.d.ts +1544 -0
  41. package/dist/node_modules/@types/node/cluster.d.ts +578 -0
  42. package/dist/node_modules/@types/node/console.d.ts +452 -0
  43. package/dist/node_modules/@types/node/constants.d.ts +19 -0
  44. package/dist/node_modules/@types/node/crypto.d.ts +4524 -0
  45. package/dist/node_modules/@types/node/dgram.d.ts +596 -0
  46. package/dist/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
  47. package/dist/node_modules/@types/node/dns/promises.d.ts +476 -0
  48. package/dist/node_modules/@types/node/dns.d.ts +864 -0
  49. package/dist/node_modules/@types/node/dom-events.d.ts +124 -0
  50. package/dist/node_modules/@types/node/domain.d.ts +170 -0
  51. package/dist/node_modules/@types/node/events.d.ts +931 -0
  52. package/dist/node_modules/@types/node/fs/promises.d.ts +1245 -0
  53. package/dist/node_modules/@types/node/fs.d.ts +4317 -0
  54. package/dist/node_modules/@types/node/globals.d.ts +412 -0
  55. package/dist/node_modules/@types/node/globals.global.d.ts +1 -0
  56. package/dist/node_modules/@types/node/http.d.ts +1908 -0
  57. package/dist/node_modules/@types/node/http2.d.ts +2418 -0
  58. package/dist/node_modules/@types/node/https.d.ts +550 -0
  59. package/dist/node_modules/@types/node/index.d.ts +89 -0
  60. package/dist/node_modules/@types/node/inspector.d.ts +2746 -0
  61. package/dist/node_modules/@types/node/module.d.ts +315 -0
  62. package/dist/node_modules/@types/node/net.d.ts +999 -0
  63. package/dist/node_modules/@types/node/os.d.ts +495 -0
  64. package/dist/node_modules/@types/node/package.json +217 -0
  65. package/dist/node_modules/@types/node/path.d.ts +191 -0
  66. package/dist/node_modules/@types/node/perf_hooks.d.ts +905 -0
  67. package/dist/node_modules/@types/node/process.d.ts +1754 -0
  68. package/dist/node_modules/@types/node/punycode.d.ts +117 -0
  69. package/dist/node_modules/@types/node/querystring.d.ts +153 -0
  70. package/dist/node_modules/@types/node/readline/promises.d.ts +150 -0
  71. package/dist/node_modules/@types/node/readline.d.ts +540 -0
  72. package/dist/node_modules/@types/node/repl.d.ts +430 -0
  73. package/dist/node_modules/@types/node/sea.d.ts +153 -0
  74. package/dist/node_modules/@types/node/stream/consumers.d.ts +12 -0
  75. package/dist/node_modules/@types/node/stream/promises.d.ts +83 -0
  76. package/dist/node_modules/@types/node/stream/web.d.ts +367 -0
  77. package/dist/node_modules/@types/node/stream.d.ts +1707 -0
  78. package/dist/node_modules/@types/node/string_decoder.d.ts +67 -0
  79. package/dist/node_modules/@types/node/test.d.ts +1719 -0
  80. package/dist/node_modules/@types/node/timers/promises.d.ts +97 -0
  81. package/dist/node_modules/@types/node/timers.d.ts +240 -0
  82. package/dist/node_modules/@types/node/tls.d.ts +1217 -0
  83. package/dist/node_modules/@types/node/trace_events.d.ts +197 -0
  84. package/dist/node_modules/@types/node/tty.d.ts +208 -0
  85. package/dist/node_modules/@types/node/url.d.ts +952 -0
  86. package/dist/node_modules/@types/node/util.d.ts +2292 -0
  87. package/dist/node_modules/@types/node/v8.d.ts +808 -0
  88. package/dist/node_modules/@types/node/vm.d.ts +924 -0
  89. package/dist/node_modules/@types/node/wasi.d.ts +181 -0
  90. package/dist/node_modules/@types/node/worker_threads.d.ts +694 -0
  91. package/dist/node_modules/@types/node/zlib.d.ts +530 -0
  92. package/dist/node_modules/@types/progress/LICENSE +21 -0
  93. package/dist/node_modules/@types/progress/README.md +15 -0
  94. package/dist/node_modules/@types/progress/index.d.ts +143 -0
  95. package/dist/node_modules/@types/progress/package.json +27 -0
  96. package/dist/node_modules/ajv/.tonic_example.js +20 -0
  97. package/dist/node_modules/ajv/LICENSE +22 -0
  98. package/dist/node_modules/ajv/README.md +331 -0
  99. package/dist/node_modules/ajv/dist/2019.d.ts +17 -0
  100. package/dist/node_modules/ajv/dist/2019.js +50 -0
  101. package/dist/node_modules/ajv/dist/2019.js.map +1 -0
  102. package/dist/node_modules/ajv/dist/ajv.d.ts +16 -0
  103. package/dist/node_modules/ajv/dist/ajv.js +39 -0
  104. package/dist/node_modules/ajv/dist/ajv.js.map +1 -0
  105. package/dist/node_modules/ajv/dist/compile/codegen/code.d.ts +38 -0
  106. package/dist/node_modules/ajv/dist/compile/codegen/code.js +143 -0
  107. package/dist/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  108. package/dist/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  109. package/dist/node_modules/ajv/dist/compile/codegen/index.js +696 -0
  110. package/dist/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  111. package/dist/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  112. package/dist/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  113. package/dist/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  114. package/dist/node_modules/ajv/dist/compile/context.d.ts +38 -0
  115. package/dist/node_modules/ajv/dist/compile/context.js +240 -0
  116. package/dist/node_modules/ajv/dist/compile/context.js.map +1 -0
  117. package/dist/node_modules/ajv/dist/compile/equal.d.ts +2 -0
  118. package/dist/node_modules/ajv/dist/compile/equal.js +5 -0
  119. package/dist/node_modules/ajv/dist/compile/equal.js.map +1 -0
  120. package/dist/node_modules/ajv/dist/compile/error_classes.d.ts +12 -0
  121. package/dist/node_modules/ajv/dist/compile/error_classes.js +25 -0
  122. package/dist/node_modules/ajv/dist/compile/error_classes.js.map +1 -0
  123. package/dist/node_modules/ajv/dist/compile/errors.d.ts +8 -0
  124. package/dist/node_modules/ajv/dist/compile/errors.js +121 -0
  125. package/dist/node_modules/ajv/dist/compile/errors.js.map +1 -0
  126. package/dist/node_modules/ajv/dist/compile/index.d.ts +76 -0
  127. package/dist/node_modules/ajv/dist/compile/index.js +235 -0
  128. package/dist/node_modules/ajv/dist/compile/index.js.map +1 -0
  129. package/dist/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  130. package/dist/node_modules/ajv/dist/compile/jtd/parse.js +341 -0
  131. package/dist/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  132. package/dist/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  133. package/dist/node_modules/ajv/dist/compile/jtd/serialize.js +223 -0
  134. package/dist/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  135. package/dist/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  136. package/dist/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  137. package/dist/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  138. package/dist/node_modules/ajv/dist/compile/names.d.ts +20 -0
  139. package/dist/node_modules/ajv/dist/compile/names.js +28 -0
  140. package/dist/node_modules/ajv/dist/compile/names.js.map +1 -0
  141. package/dist/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  142. package/dist/node_modules/ajv/dist/compile/resolve.js +152 -0
  143. package/dist/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  144. package/dist/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  145. package/dist/node_modules/ajv/dist/compile/rules.js +26 -0
  146. package/dist/node_modules/ajv/dist/compile/rules.js.map +1 -0
  147. package/dist/node_modules/ajv/dist/compile/subschema.d.ts +28 -0
  148. package/dist/node_modules/ajv/dist/compile/subschema.js +107 -0
  149. package/dist/node_modules/ajv/dist/compile/subschema.js.map +1 -0
  150. package/dist/node_modules/ajv/dist/compile/timestamp.d.ts +5 -0
  151. package/dist/node_modules/ajv/dist/compile/timestamp.js +31 -0
  152. package/dist/node_modules/ajv/dist/compile/timestamp.js.map +1 -0
  153. package/dist/node_modules/ajv/dist/compile/ucs2length.d.ts +1 -0
  154. package/dist/node_modules/ajv/dist/compile/ucs2length.js +23 -0
  155. package/dist/node_modules/ajv/dist/compile/ucs2length.js.map +1 -0
  156. package/dist/node_modules/ajv/dist/compile/util.d.ts +34 -0
  157. package/dist/node_modules/ajv/dist/compile/util.js +148 -0
  158. package/dist/node_modules/ajv/dist/compile/util.js.map +1 -0
  159. package/dist/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  160. package/dist/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  161. package/dist/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  162. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  163. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  164. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  165. package/dist/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  166. package/dist/node_modules/ajv/dist/compile/validate/dataType.js +202 -0
  167. package/dist/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  168. package/dist/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  169. package/dist/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  170. package/dist/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  171. package/dist/node_modules/ajv/dist/compile/validate/index.d.ts +6 -0
  172. package/dist/node_modules/ajv/dist/compile/validate/index.js +187 -0
  173. package/dist/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  174. package/dist/node_modules/ajv/dist/compile/validate/iterate.d.ts +4 -0
  175. package/dist/node_modules/ajv/dist/compile/validate/iterate.js +109 -0
  176. package/dist/node_modules/ajv/dist/compile/validate/iterate.js.map +1 -0
  177. package/dist/node_modules/ajv/dist/compile/validate/keyword.d.ts +4 -0
  178. package/dist/node_modules/ajv/dist/compile/validate/keyword.js +107 -0
  179. package/dist/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  180. package/dist/node_modules/ajv/dist/core.d.ts +159 -0
  181. package/dist/node_modules/ajv/dist/core.js +591 -0
  182. package/dist/node_modules/ajv/dist/core.js.map +1 -0
  183. package/dist/node_modules/ajv/dist/jtd.d.ts +45 -0
  184. package/dist/node_modules/ajv/dist/jtd.js +68 -0
  185. package/dist/node_modules/ajv/dist/jtd.js.map +1 -0
  186. package/dist/node_modules/ajv/dist/refs/data.json +13 -0
  187. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  188. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  189. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  190. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  191. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  192. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  193. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  194. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  195. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  196. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  197. package/dist/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  198. package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  199. package/dist/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  200. package/dist/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  201. package/dist/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  202. package/dist/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  203. package/dist/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  204. package/dist/node_modules/ajv/dist/runtime/parseJson.js +183 -0
  205. package/dist/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  206. package/dist/node_modules/ajv/dist/runtime/quote.d.ts +1 -0
  207. package/dist/node_modules/ajv/dist/runtime/quote.js +28 -0
  208. package/dist/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  209. package/dist/node_modules/ajv/dist/standalone/index.d.ts +5 -0
  210. package/dist/node_modules/ajv/dist/standalone/index.js +81 -0
  211. package/dist/node_modules/ajv/dist/standalone/index.js.map +1 -0
  212. package/dist/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  213. package/dist/node_modules/ajv/dist/standalone/instance.js +35 -0
  214. package/dist/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  215. package/dist/node_modules/ajv/dist/types/index.d.ts +169 -0
  216. package/dist/node_modules/ajv/dist/types/index.js +3 -0
  217. package/dist/node_modules/ajv/dist/types/index.js.map +1 -0
  218. package/dist/node_modules/ajv/dist/types/json-schema.d.ts +104 -0
  219. package/dist/node_modules/ajv/dist/types/json-schema.js +3 -0
  220. package/dist/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  221. package/dist/node_modules/ajv/dist/types/jtd-schema.d.ts +136 -0
  222. package/dist/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  223. package/dist/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  224. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +6 -0
  225. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +45 -0
  226. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  227. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  228. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +107 -0
  229. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  230. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  231. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  232. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  233. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  234. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +14 -0
  235. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  236. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  237. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +89 -0
  238. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  239. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  240. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  241. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  242. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  243. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  244. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  245. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  246. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +67 -0
  247. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  248. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  249. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +37 -0
  250. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  251. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +3 -0
  252. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +51 -0
  253. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  254. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  255. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +28 -0
  256. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  257. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  258. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +58 -0
  259. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  260. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  261. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +70 -0
  262. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  263. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  264. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  265. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  266. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  267. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  268. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  269. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  270. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  271. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  272. package/dist/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  273. package/dist/node_modules/ajv/dist/vocabularies/code.js +127 -0
  274. package/dist/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  275. package/dist/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  276. package/dist/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  277. package/dist/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  278. package/dist/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  279. package/dist/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  280. package/dist/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  281. package/dist/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  282. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +123 -0
  283. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  284. package/dist/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  285. package/dist/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  286. package/dist/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  287. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  288. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +29 -0
  289. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  290. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  291. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  292. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  293. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  294. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  295. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  296. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  297. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  298. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  299. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  300. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  301. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  302. package/dist/node_modules/ajv/dist/vocabularies/errors.d.ts +8 -0
  303. package/dist/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  304. package/dist/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  305. package/dist/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  306. package/dist/node_modules/ajv/dist/vocabularies/format/format.js +91 -0
  307. package/dist/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  308. package/dist/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  309. package/dist/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  310. package/dist/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  311. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +3 -0
  312. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +38 -0
  313. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  314. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +3 -0
  315. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js +22 -0
  316. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  317. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +3 -0
  318. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js +41 -0
  319. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  320. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +3 -0
  321. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js +30 -0
  322. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  323. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  324. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  325. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  326. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  327. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  328. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  329. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  330. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +14 -0
  331. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  332. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +5 -0
  333. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js +118 -0
  334. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  335. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  336. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js +66 -0
  337. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  338. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +7 -0
  339. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js +46 -0
  340. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  341. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  342. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js +11 -0
  343. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  344. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +3 -0
  345. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js +43 -0
  346. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  347. package/dist/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  348. package/dist/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  349. package/dist/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  350. package/dist/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  351. package/dist/node_modules/ajv/dist/vocabularies/next.js +8 -0
  352. package/dist/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  353. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  354. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  355. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  356. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  357. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +41 -0
  358. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  359. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  360. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +66 -0
  361. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  362. package/dist/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  363. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +23 -0
  364. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  365. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  366. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  367. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  368. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  369. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +49 -0
  370. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  371. package/dist/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  372. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  373. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  374. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  375. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  376. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  377. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  378. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  379. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  380. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  381. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +36 -0
  382. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  383. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  384. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  385. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  386. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  387. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  388. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  389. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  390. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  391. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  392. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  393. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +22 -0
  394. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  395. package/dist/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  396. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  397. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  398. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  399. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +66 -0
  400. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  401. package/dist/node_modules/ajv/lib/2019.ts +72 -0
  402. package/dist/node_modules/ajv/lib/ajv.ts +61 -0
  403. package/dist/node_modules/ajv/lib/compile/codegen/code.ts +156 -0
  404. package/dist/node_modules/ajv/lib/compile/codegen/index.ts +832 -0
  405. package/dist/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  406. package/dist/node_modules/ajv/lib/compile/context.ts +266 -0
  407. package/dist/node_modules/ajv/lib/compile/equal.js +3 -0
  408. package/dist/node_modules/ajv/lib/compile/error_classes.ts +30 -0
  409. package/dist/node_modules/ajv/lib/compile/errors.ts +154 -0
  410. package/dist/node_modules/ajv/lib/compile/index.ts +312 -0
  411. package/dist/node_modules/ajv/lib/compile/jtd/parse.ts +403 -0
  412. package/dist/node_modules/ajv/lib/compile/jtd/serialize.ts +266 -0
  413. package/dist/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  414. package/dist/node_modules/ajv/lib/compile/names.ts +27 -0
  415. package/dist/node_modules/ajv/lib/compile/resolve.ts +145 -0
  416. package/dist/node_modules/ajv/lib/compile/rules.ts +50 -0
  417. package/dist/node_modules/ajv/lib/compile/subschema.ts +169 -0
  418. package/dist/node_modules/ajv/lib/compile/timestamp.ts +31 -0
  419. package/dist/node_modules/ajv/lib/compile/ucs2length.ts +18 -0
  420. package/dist/node_modules/ajv/lib/compile/util.ts +176 -0
  421. package/dist/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  422. package/dist/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  423. package/dist/node_modules/ajv/lib/compile/validate/dataType.ts +229 -0
  424. package/dist/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  425. package/dist/node_modules/ajv/lib/compile/validate/index.ts +199 -0
  426. package/dist/node_modules/ajv/lib/compile/validate/iterate.ts +116 -0
  427. package/dist/node_modules/ajv/lib/compile/validate/keyword.ts +144 -0
  428. package/dist/node_modules/ajv/lib/core.ts +827 -0
  429. package/dist/node_modules/ajv/lib/jtd.ts +128 -0
  430. package/dist/node_modules/ajv/lib/refs/data.json +13 -0
  431. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  432. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  433. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  434. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  435. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  436. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  437. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  438. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  439. package/dist/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  440. package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  441. package/dist/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  442. package/dist/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  443. package/dist/node_modules/ajv/lib/runtime/parseJson.ts +175 -0
  444. package/dist/node_modules/ajv/lib/runtime/quote.ts +28 -0
  445. package/dist/node_modules/ajv/lib/standalone/index.ts +88 -0
  446. package/dist/node_modules/ajv/lib/standalone/instance.ts +36 -0
  447. package/dist/node_modules/ajv/lib/types/index.ts +223 -0
  448. package/dist/node_modules/ajv/lib/types/json-schema.ts +120 -0
  449. package/dist/node_modules/ajv/lib/types/jtd-schema.ts +228 -0
  450. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +53 -0
  451. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  452. package/dist/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  453. package/dist/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +16 -0
  454. package/dist/node_modules/ajv/lib/vocabularies/applicator/contains.ts +104 -0
  455. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  456. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  457. package/dist/node_modules/ajv/lib/vocabularies/applicator/if.ts +81 -0
  458. package/dist/node_modules/ajv/lib/vocabularies/applicator/index.ts +49 -0
  459. package/dist/node_modules/ajv/lib/vocabularies/applicator/items.ts +56 -0
  460. package/dist/node_modules/ajv/lib/vocabularies/applicator/not.ts +40 -0
  461. package/dist/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +81 -0
  462. package/dist/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +76 -0
  463. package/dist/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  464. package/dist/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  465. package/dist/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  466. package/dist/node_modules/ajv/lib/vocabularies/code.ts +163 -0
  467. package/dist/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  468. package/dist/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  469. package/dist/node_modules/ajv/lib/vocabularies/core/ref.ts +130 -0
  470. package/dist/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  471. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +30 -0
  472. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  473. package/dist/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  474. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  475. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  476. package/dist/node_modules/ajv/lib/vocabularies/errors.ts +16 -0
  477. package/dist/node_modules/ajv/lib/vocabularies/format/format.ts +118 -0
  478. package/dist/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  479. package/dist/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +44 -0
  480. package/dist/node_modules/ajv/lib/vocabularies/jtd/elements.ts +22 -0
  481. package/dist/node_modules/ajv/lib/vocabularies/jtd/enum.ts +39 -0
  482. package/dist/node_modules/ajv/lib/vocabularies/jtd/index.ts +30 -0
  483. package/dist/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  484. package/dist/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +18 -0
  485. package/dist/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +14 -0
  486. package/dist/node_modules/ajv/lib/vocabularies/jtd/properties.ts +129 -0
  487. package/dist/node_modules/ajv/lib/vocabularies/jtd/ref.ts +71 -0
  488. package/dist/node_modules/ajv/lib/vocabularies/jtd/type.ts +49 -0
  489. package/dist/node_modules/ajv/lib/vocabularies/jtd/union.ts +11 -0
  490. package/dist/node_modules/ajv/lib/vocabularies/jtd/values.ts +48 -0
  491. package/dist/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  492. package/dist/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  493. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  494. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +48 -0
  495. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +86 -0
  496. package/dist/node_modules/ajv/lib/vocabularies/validation/const.ts +27 -0
  497. package/dist/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  498. package/dist/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  499. package/dist/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  500. package/dist/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  501. package/dist/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  502. package/dist/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +37 -0
  503. package/dist/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  504. package/dist/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  505. package/dist/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  506. package/dist/node_modules/ajv/lib/vocabularies/validation/pattern.ts +26 -0
  507. package/dist/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  508. package/dist/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +81 -0
  509. package/dist/node_modules/ajv/package.json +123 -0
  510. package/dist/node_modules/ajv/scripts/.eslintrc.yml +5 -0
  511. package/dist/node_modules/ajv/scripts/bundle.js +48 -0
  512. package/dist/node_modules/ajv/scripts/get-contributors.js +57 -0
  513. package/dist/node_modules/ajv/scripts/jsontests.js +31 -0
  514. package/dist/node_modules/ajv/scripts/prepare-site +15 -0
  515. package/dist/node_modules/ajv/scripts/prepare-tests +12 -0
  516. package/dist/node_modules/ajv/scripts/publish-bundles +37 -0
  517. package/dist/node_modules/ajv/scripts/publish-site +25 -0
  518. package/dist/node_modules/ajv-formats/LICENSE +21 -0
  519. package/dist/node_modules/ajv-formats/README.md +123 -0
  520. package/dist/node_modules/ajv-formats/dist/formats.d.ts +9 -0
  521. package/dist/node_modules/ajv-formats/dist/formats.js +173 -0
  522. package/dist/node_modules/ajv-formats/dist/formats.js.map +1 -0
  523. package/dist/node_modules/ajv-formats/dist/index.d.ts +15 -0
  524. package/dist/node_modules/ajv-formats/dist/index.js +37 -0
  525. package/dist/node_modules/ajv-formats/dist/index.js.map +1 -0
  526. package/dist/node_modules/ajv-formats/dist/limit.d.ts +10 -0
  527. package/dist/node_modules/ajv-formats/dist/limit.js +69 -0
  528. package/dist/node_modules/ajv-formats/dist/limit.js.map +1 -0
  529. package/dist/node_modules/ajv-formats/node_modules/ajv/.runkit_example.js +23 -0
  530. package/dist/node_modules/ajv-formats/node_modules/ajv/LICENSE +22 -0
  531. package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +207 -0
  532. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +19 -0
  533. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +61 -0
  534. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +1 -0
  535. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +19 -0
  536. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +55 -0
  537. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +1 -0
  538. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +18 -0
  539. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +50 -0
  540. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +1 -0
  541. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  542. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  543. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  544. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  545. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  546. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  547. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  548. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  549. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  550. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  551. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +123 -0
  552. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +1 -0
  553. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +80 -0
  554. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +242 -0
  555. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -0
  556. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  557. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  558. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  559. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  560. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +229 -0
  561. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  562. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  563. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  564. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  565. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.d.ts +20 -0
  566. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +28 -0
  567. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +1 -0
  568. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  569. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js +12 -0
  570. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  571. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  572. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +155 -0
  573. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  574. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  575. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js +26 -0
  576. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js.map +1 -0
  577. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +40 -0
  578. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +178 -0
  579. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +1 -0
  580. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  581. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  582. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  583. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  584. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  585. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  586. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  587. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  588. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  589. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  590. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  591. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  592. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  593. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +520 -0
  594. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  595. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  596. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  597. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  598. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  599. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  600. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  601. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +173 -0
  602. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js +618 -0
  603. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +1 -0
  604. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +47 -0
  605. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +72 -0
  606. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map +1 -0
  607. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/data.json +13 -0
  608. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  609. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  610. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  611. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  612. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  613. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  614. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  615. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  616. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  617. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  618. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  619. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  620. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  621. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  622. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  623. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  624. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  625. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  626. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  627. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  628. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  629. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  630. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  631. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  632. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  633. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  634. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  635. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  636. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js +7 -0
  637. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  638. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  639. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  640. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  641. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  642. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js +30 -0
  643. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  644. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  645. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js +6 -0
  646. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  647. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  648. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  649. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  650. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  651. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  652. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  653. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  654. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +6 -0
  655. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  656. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  657. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  658. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  659. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  660. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js +90 -0
  661. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +1 -0
  662. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  663. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js +35 -0
  664. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  665. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +183 -0
  666. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js +3 -0
  667. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js.map +1 -0
  668. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  669. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js +3 -0
  670. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  671. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  672. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  673. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  674. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  675. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  676. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  677. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  678. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  679. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  680. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  681. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  682. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  683. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  684. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  685. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  686. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  687. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  688. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  689. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  690. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  691. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  692. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  693. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  694. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  695. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  696. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  697. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  698. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  699. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  700. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  701. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  702. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  703. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  704. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  705. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  706. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  707. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  708. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  709. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  710. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  711. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  712. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  713. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  714. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  715. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  716. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  717. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  718. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  719. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  720. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  721. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  722. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  723. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  724. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  725. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  726. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  727. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  728. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  729. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js +131 -0
  730. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  731. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  732. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  733. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  734. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  735. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  736. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  737. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  738. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  739. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  740. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  741. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  742. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  743. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  744. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  745. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  746. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  747. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  748. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  749. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  750. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  751. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  752. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  753. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  754. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  755. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  756. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  757. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  758. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  759. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  760. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  761. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  762. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  763. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  764. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  765. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  766. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  767. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  768. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  769. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  770. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  771. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  772. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  773. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  774. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  775. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  776. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  777. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  778. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  779. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  780. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  781. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  782. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  783. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  784. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  785. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  786. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  787. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  788. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  789. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  790. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  791. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  792. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  793. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  794. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  795. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  796. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  797. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  798. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  799. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  800. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  801. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  802. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  803. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  804. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  805. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  806. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  807. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  808. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  809. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  810. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  811. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  812. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  813. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  814. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  815. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  816. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  817. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  818. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  819. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js +8 -0
  820. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  821. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  822. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  823. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  824. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  825. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  826. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  827. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  828. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  829. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  830. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  831. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  832. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  833. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  834. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  835. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  836. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  837. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  838. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  839. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  840. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  841. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  842. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  843. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  844. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  845. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  846. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  847. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  848. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  849. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  850. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  851. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  852. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  853. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  854. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  855. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  856. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  857. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  858. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  859. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  860. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  861. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
  862. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  863. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  864. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  865. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  866. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  867. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  868. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  869. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +81 -0
  870. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +75 -0
  871. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +70 -0
  872. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  873. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  874. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  875. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/errors.ts +184 -0
  876. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +324 -0
  877. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  878. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +266 -0
  879. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  880. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/names.ts +27 -0
  881. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  882. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +149 -0
  883. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +50 -0
  884. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/util.ts +213 -0
  885. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  886. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  887. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  888. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  889. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  890. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  891. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  892. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +891 -0
  893. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +132 -0
  894. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/data.json +13 -0
  895. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  896. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  897. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  898. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  899. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  900. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  901. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  902. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  903. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  904. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  905. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  906. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  907. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  908. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  909. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  910. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  911. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  912. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  913. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  914. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  915. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  916. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/equal.ts +7 -0
  917. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  918. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/quote.ts +31 -0
  919. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/re2.ts +6 -0
  920. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  921. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  922. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +6 -0
  923. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  924. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts +100 -0
  925. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/standalone/instance.ts +36 -0
  926. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +244 -0
  927. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +187 -0
  928. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  929. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  930. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  931. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  932. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  933. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  934. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  935. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  936. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  937. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  938. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  939. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  940. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  941. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  942. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  943. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  944. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  945. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  946. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  947. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  948. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  949. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  950. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  951. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  952. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  953. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  954. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  955. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  956. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  957. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  958. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  959. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  960. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  961. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  962. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  963. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  964. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  965. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  966. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  967. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  968. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  969. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  970. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  971. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  972. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  973. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  974. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  975. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  976. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  977. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  978. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  979. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  980. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  981. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  982. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  983. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  984. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  985. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  986. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  987. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  988. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  989. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  990. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  991. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  992. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  993. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  994. package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +126 -0
  995. package/dist/node_modules/ajv-formats/package.json +74 -0
  996. package/dist/node_modules/ajv-formats/src/formats.ts +232 -0
  997. package/dist/node_modules/ajv-formats/src/index.ts +62 -0
  998. package/dist/node_modules/ajv-formats/src/limit.ts +99 -0
  999. package/dist/node_modules/ansi-styles/index.d.ts +345 -0
  1000. package/dist/node_modules/ansi-styles/index.js +163 -0
  1001. package/dist/node_modules/ansi-styles/license +9 -0
  1002. package/dist/node_modules/ansi-styles/package.json +56 -0
  1003. package/dist/node_modules/ansi-styles/readme.md +152 -0
  1004. package/dist/node_modules/chalk/index.d.ts +415 -0
  1005. package/dist/node_modules/chalk/license +9 -0
  1006. package/dist/node_modules/chalk/package.json +68 -0
  1007. package/dist/node_modules/chalk/readme.md +341 -0
  1008. package/dist/node_modules/chalk/source/index.js +229 -0
  1009. package/dist/node_modules/chalk/source/templates.js +134 -0
  1010. package/dist/node_modules/chalk/source/util.js +39 -0
  1011. package/dist/node_modules/color-convert/CHANGELOG.md +54 -0
  1012. package/dist/node_modules/color-convert/LICENSE +21 -0
  1013. package/dist/node_modules/color-convert/README.md +68 -0
  1014. package/dist/node_modules/color-convert/conversions.js +839 -0
  1015. package/dist/node_modules/color-convert/index.js +81 -0
  1016. package/dist/node_modules/color-convert/package.json +48 -0
  1017. package/dist/node_modules/color-convert/route.js +97 -0
  1018. package/dist/node_modules/color-name/LICENSE +8 -0
  1019. package/dist/node_modules/color-name/README.md +11 -0
  1020. package/dist/node_modules/color-name/index.js +152 -0
  1021. package/dist/node_modules/color-name/package.json +28 -0
  1022. package/dist/node_modules/commander/LICENSE +22 -0
  1023. package/dist/node_modules/commander/Readme.md +1157 -0
  1024. package/dist/node_modules/commander/esm.mjs +16 -0
  1025. package/dist/node_modules/commander/index.js +24 -0
  1026. package/dist/node_modules/commander/lib/argument.js +149 -0
  1027. package/dist/node_modules/commander/lib/command.js +2509 -0
  1028. package/dist/node_modules/commander/lib/error.js +39 -0
  1029. package/dist/node_modules/commander/lib/help.js +520 -0
  1030. package/dist/node_modules/commander/lib/option.js +330 -0
  1031. package/dist/node_modules/commander/lib/suggestSimilar.js +101 -0
  1032. package/dist/node_modules/commander/package-support.json +16 -0
  1033. package/dist/node_modules/commander/package.json +84 -0
  1034. package/dist/node_modules/commander/typings/esm.d.mts +3 -0
  1035. package/dist/node_modules/commander/typings/index.d.ts +969 -0
  1036. package/dist/node_modules/consola/CHANGELOG.md +706 -0
  1037. package/dist/node_modules/consola/README.md +288 -0
  1038. package/dist/node_modules/consola/dist/consola.browser.js +1 -0
  1039. package/dist/node_modules/consola/dist/consola.js +1 -0
  1040. package/dist/node_modules/consola/package.json +80 -0
  1041. package/dist/node_modules/consola/src/browser.js +20 -0
  1042. package/dist/node_modules/consola/src/consola.js +327 -0
  1043. package/dist/node_modules/consola/src/index.js +7 -0
  1044. package/dist/node_modules/consola/src/logLevels.js +11 -0
  1045. package/dist/node_modules/consola/src/node.js +36 -0
  1046. package/dist/node_modules/consola/src/reporters/basic.js +72 -0
  1047. package/dist/node_modules/consola/src/reporters/browser.js +54 -0
  1048. package/dist/node_modules/consola/src/reporters/fancy.js +87 -0
  1049. package/dist/node_modules/consola/src/reporters/index.js +5 -0
  1050. package/dist/node_modules/consola/src/reporters/json.js +9 -0
  1051. package/dist/node_modules/consola/src/reporters/winston.js +45 -0
  1052. package/dist/node_modules/consola/src/types.js +50 -0
  1053. package/dist/node_modules/consola/src/utils/chalk.js +37 -0
  1054. package/dist/node_modules/consola/src/utils/date.js +5 -0
  1055. package/dist/node_modules/consola/src/utils/error.js +16 -0
  1056. package/dist/node_modules/consola/src/utils/fancy.js +10 -0
  1057. package/dist/node_modules/consola/src/utils/format.js +30 -0
  1058. package/dist/node_modules/consola/src/utils/global.js +38 -0
  1059. package/dist/node_modules/consola/src/utils/index.js +23 -0
  1060. package/dist/node_modules/consola/src/utils/stream.js +20 -0
  1061. package/dist/node_modules/consola/src/utils/string.js +41 -0
  1062. package/dist/node_modules/consola/types/consola.d.ts +182 -0
  1063. package/dist/node_modules/debug/LICENSE +20 -0
  1064. package/dist/node_modules/debug/README.md +481 -0
  1065. package/dist/node_modules/debug/package.json +60 -0
  1066. package/dist/node_modules/debug/src/browser.js +271 -0
  1067. package/dist/node_modules/debug/src/common.js +274 -0
  1068. package/dist/node_modules/debug/src/index.js +10 -0
  1069. package/dist/node_modules/debug/src/node.js +263 -0
  1070. package/dist/node_modules/fast-deep-equal/LICENSE +21 -0
  1071. package/dist/node_modules/fast-deep-equal/README.md +96 -0
  1072. package/dist/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  1073. package/dist/node_modules/fast-deep-equal/es6/index.js +72 -0
  1074. package/dist/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  1075. package/dist/node_modules/fast-deep-equal/es6/react.js +79 -0
  1076. package/dist/node_modules/fast-deep-equal/index.d.ts +4 -0
  1077. package/dist/node_modules/fast-deep-equal/index.js +46 -0
  1078. package/dist/node_modules/fast-deep-equal/package.json +61 -0
  1079. package/dist/node_modules/fast-deep-equal/react.d.ts +2 -0
  1080. package/dist/node_modules/fast-deep-equal/react.js +53 -0
  1081. package/dist/node_modules/fast-uri/.gitattributes +2 -0
  1082. package/dist/node_modules/fast-uri/.github/.stale.yml +21 -0
  1083. package/dist/node_modules/fast-uri/.github/dependabot.yml +13 -0
  1084. package/dist/node_modules/fast-uri/.github/tests_checker.yml +8 -0
  1085. package/dist/node_modules/fast-uri/.github/workflows/ci.yml +23 -0
  1086. package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +20 -0
  1087. package/dist/node_modules/fast-uri/.taprc +3 -0
  1088. package/dist/node_modules/fast-uri/LICENSE +30 -0
  1089. package/dist/node_modules/fast-uri/README.md +125 -0
  1090. package/dist/node_modules/fast-uri/benchmark.js +105 -0
  1091. package/dist/node_modules/fast-uri/index.js +309 -0
  1092. package/dist/node_modules/fast-uri/lib/schemes.js +188 -0
  1093. package/dist/node_modules/fast-uri/lib/scopedChars.js +30 -0
  1094. package/dist/node_modules/fast-uri/lib/utils.js +242 -0
  1095. package/dist/node_modules/fast-uri/package.json +39 -0
  1096. package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
  1097. package/dist/node_modules/fast-uri/test/ajv.test.js +39 -0
  1098. package/dist/node_modules/fast-uri/test/compatibility.test.js +130 -0
  1099. package/dist/node_modules/fast-uri/test/equal.test.js +104 -0
  1100. package/dist/node_modules/fast-uri/test/parse.test.js +319 -0
  1101. package/dist/node_modules/fast-uri/test/resolve.test.js +76 -0
  1102. package/dist/node_modules/fast-uri/test/serialize.test.js +144 -0
  1103. package/dist/node_modules/fast-uri/test/uri-js.test.js +940 -0
  1104. package/dist/node_modules/fast-uri/test/util.test.js +24 -0
  1105. package/dist/node_modules/fast-uri/types/index.d.ts +53 -0
  1106. package/dist/node_modules/fast-uri/types/index.test-d.ts +17 -0
  1107. package/dist/node_modules/fs-extra/LICENSE +15 -0
  1108. package/dist/node_modules/fs-extra/README.md +292 -0
  1109. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +161 -0
  1110. package/dist/node_modules/fs-extra/lib/copy/copy.js +177 -0
  1111. package/dist/node_modules/fs-extra/lib/copy/index.js +7 -0
  1112. package/dist/node_modules/fs-extra/lib/empty/index.js +39 -0
  1113. package/dist/node_modules/fs-extra/lib/ensure/file.js +66 -0
  1114. package/dist/node_modules/fs-extra/lib/ensure/index.js +23 -0
  1115. package/dist/node_modules/fs-extra/lib/ensure/link.js +64 -0
  1116. package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
  1117. package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
  1118. package/dist/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
  1119. package/dist/node_modules/fs-extra/lib/esm.mjs +68 -0
  1120. package/dist/node_modules/fs-extra/lib/fs/index.js +140 -0
  1121. package/dist/node_modules/fs-extra/lib/index.js +16 -0
  1122. package/dist/node_modules/fs-extra/lib/json/index.js +16 -0
  1123. package/dist/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  1124. package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  1125. package/dist/node_modules/fs-extra/lib/json/output-json.js +12 -0
  1126. package/dist/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  1127. package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  1128. package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  1129. package/dist/node_modules/fs-extra/lib/move/index.js +7 -0
  1130. package/dist/node_modules/fs-extra/lib/move/move-sync.js +55 -0
  1131. package/dist/node_modules/fs-extra/lib/move/move.js +59 -0
  1132. package/dist/node_modules/fs-extra/lib/output-file/index.js +31 -0
  1133. package/dist/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  1134. package/dist/node_modules/fs-extra/lib/remove/index.js +17 -0
  1135. package/dist/node_modules/fs-extra/lib/util/stat.js +158 -0
  1136. package/dist/node_modules/fs-extra/lib/util/utimes.js +36 -0
  1137. package/dist/node_modules/fs-extra/package.json +71 -0
  1138. package/dist/node_modules/graceful-fs/LICENSE +15 -0
  1139. package/dist/node_modules/graceful-fs/README.md +143 -0
  1140. package/dist/node_modules/graceful-fs/clone.js +23 -0
  1141. package/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
  1142. package/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
  1143. package/dist/node_modules/graceful-fs/package.json +53 -0
  1144. package/dist/node_modules/graceful-fs/polyfills.js +355 -0
  1145. package/dist/node_modules/has-flag/index.d.ts +39 -0
  1146. package/dist/node_modules/has-flag/index.js +8 -0
  1147. package/dist/node_modules/has-flag/license +9 -0
  1148. package/dist/node_modules/has-flag/package.json +46 -0
  1149. package/dist/node_modules/has-flag/readme.md +89 -0
  1150. package/dist/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  1151. package/dist/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  1152. package/dist/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  1153. package/dist/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  1154. package/dist/node_modules/json-schema-traverse/LICENSE +21 -0
  1155. package/dist/node_modules/json-schema-traverse/README.md +95 -0
  1156. package/dist/node_modules/json-schema-traverse/index.d.ts +40 -0
  1157. package/dist/node_modules/json-schema-traverse/index.js +93 -0
  1158. package/dist/node_modules/json-schema-traverse/package.json +43 -0
  1159. package/dist/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  1160. package/dist/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  1161. package/dist/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  1162. package/dist/node_modules/jsonfile/CHANGELOG.md +171 -0
  1163. package/dist/node_modules/jsonfile/LICENSE +15 -0
  1164. package/dist/node_modules/jsonfile/README.md +230 -0
  1165. package/dist/node_modules/jsonfile/index.js +88 -0
  1166. package/dist/node_modules/jsonfile/package.json +40 -0
  1167. package/dist/node_modules/jsonfile/utils.js +14 -0
  1168. package/dist/node_modules/ms/index.js +162 -0
  1169. package/dist/node_modules/ms/license.md +21 -0
  1170. package/dist/node_modules/ms/package.json +37 -0
  1171. package/dist/node_modules/ms/readme.md +60 -0
  1172. package/dist/node_modules/progress/CHANGELOG.md +115 -0
  1173. package/dist/node_modules/progress/LICENSE +22 -0
  1174. package/dist/node_modules/progress/Makefile +8 -0
  1175. package/dist/node_modules/progress/Readme.md +146 -0
  1176. package/dist/node_modules/progress/index.js +1 -0
  1177. package/dist/node_modules/progress/lib/node-progress.js +236 -0
  1178. package/dist/node_modules/progress/package.json +26 -0
  1179. package/dist/node_modules/punycode/LICENSE-MIT.txt +20 -0
  1180. package/dist/node_modules/punycode/README.md +148 -0
  1181. package/dist/node_modules/punycode/package.json +58 -0
  1182. package/dist/node_modules/punycode/punycode.es6.js +444 -0
  1183. package/dist/node_modules/punycode/punycode.js +443 -0
  1184. package/dist/node_modules/ramda/CHANGELOG.md +6 -0
  1185. package/dist/node_modules/ramda/LICENSE.txt +21 -0
  1186. package/dist/node_modules/ramda/README.md +248 -0
  1187. package/dist/node_modules/ramda/dist/ramda.js +9716 -0
  1188. package/dist/node_modules/ramda/dist/ramda.min.js +1 -0
  1189. package/dist/node_modules/ramda/es/F.js +20 -0
  1190. package/dist/node_modules/ramda/es/T.js +20 -0
  1191. package/dist/node_modules/ramda/es/__.js +30 -0
  1192. package/dist/node_modules/ramda/es/add.js +26 -0
  1193. package/dist/node_modules/ramda/es/addIndex.js +48 -0
  1194. package/dist/node_modules/ramda/es/adjust.js +46 -0
  1195. package/dist/node_modules/ramda/es/all.js +47 -0
  1196. package/dist/node_modules/ramda/es/allPass.js +51 -0
  1197. package/dist/node_modules/ramda/es/always.js +30 -0
  1198. package/dist/node_modules/ramda/es/and.js +28 -0
  1199. package/dist/node_modules/ramda/es/andThen.js +38 -0
  1200. package/dist/node_modules/ramda/es/any.js +48 -0
  1201. package/dist/node_modules/ramda/es/anyPass.js +52 -0
  1202. package/dist/node_modules/ramda/es/ap.js +42 -0
  1203. package/dist/node_modules/ramda/es/aperture.js +33 -0
  1204. package/dist/node_modules/ramda/es/append.js +30 -0
  1205. package/dist/node_modules/ramda/es/apply.js +29 -0
  1206. package/dist/node_modules/ramda/es/applySpec.js +58 -0
  1207. package/dist/node_modules/ramda/es/applyTo.js +28 -0
  1208. package/dist/node_modules/ramda/es/ascend.js +36 -0
  1209. package/dist/node_modules/ramda/es/assoc.js +36 -0
  1210. package/dist/node_modules/ramda/es/assocPath.js +55 -0
  1211. package/dist/node_modules/ramda/es/binary.js +38 -0
  1212. package/dist/node_modules/ramda/es/bind.js +34 -0
  1213. package/dist/node_modules/ramda/es/both.js +45 -0
  1214. package/dist/node_modules/ramda/es/call.js +40 -0
  1215. package/dist/node_modules/ramda/es/chain.js +47 -0
  1216. package/dist/node_modules/ramda/es/clamp.js +33 -0
  1217. package/dist/node_modules/ramda/es/clone.js +31 -0
  1218. package/dist/node_modules/ramda/es/comparator.js +34 -0
  1219. package/dist/node_modules/ramda/es/complement.js +29 -0
  1220. package/dist/node_modules/ramda/es/compose.js +34 -0
  1221. package/dist/node_modules/ramda/es/composeK.js +44 -0
  1222. package/dist/node_modules/ramda/es/composeP.js +45 -0
  1223. package/dist/node_modules/ramda/es/composeWith.js +35 -0
  1224. package/dist/node_modules/ramda/es/concat.js +65 -0
  1225. package/dist/node_modules/ramda/es/cond.js +53 -0
  1226. package/dist/node_modules/ramda/es/construct.js +42 -0
  1227. package/dist/node_modules/ramda/es/constructN.js +88 -0
  1228. package/dist/node_modules/ramda/es/contains.js +31 -0
  1229. package/dist/node_modules/ramda/es/converge.js +48 -0
  1230. package/dist/node_modules/ramda/es/countBy.js +32 -0
  1231. package/dist/node_modules/ramda/es/curry.js +51 -0
  1232. package/dist/node_modules/ramda/es/curryN.js +58 -0
  1233. package/dist/node_modules/ramda/es/dec.js +21 -0
  1234. package/dist/node_modules/ramda/es/defaultTo.js +32 -0
  1235. package/dist/node_modules/ramda/es/descend.js +36 -0
  1236. package/dist/node_modules/ramda/es/difference.js +48 -0
  1237. package/dist/node_modules/ramda/es/differenceWith.js +44 -0
  1238. package/dist/node_modules/ramda/es/dissoc.js +32 -0
  1239. package/dist/node_modules/ramda/es/dissocPath.js +53 -0
  1240. package/dist/node_modules/ramda/es/divide.js +31 -0
  1241. package/dist/node_modules/ramda/es/drop.js +38 -0
  1242. package/dist/node_modules/ramda/es/dropLast.js +35 -0
  1243. package/dist/node_modules/ramda/es/dropLastWhile.js +39 -0
  1244. package/dist/node_modules/ramda/es/dropRepeats.js +35 -0
  1245. package/dist/node_modules/ramda/es/dropRepeatsWith.js +51 -0
  1246. package/dist/node_modules/ramda/es/dropWhile.js +49 -0
  1247. package/dist/node_modules/ramda/es/either.js +44 -0
  1248. package/dist/node_modules/ramda/es/empty.js +39 -0
  1249. package/dist/node_modules/ramda/es/endsWith.js +33 -0
  1250. package/dist/node_modules/ramda/es/eqBy.js +27 -0
  1251. package/dist/node_modules/ramda/es/eqProps.js +31 -0
  1252. package/dist/node_modules/ramda/es/equals.js +35 -0
  1253. package/dist/node_modules/ramda/es/evolve.js +45 -0
  1254. package/dist/node_modules/ramda/es/filter.js +51 -0
  1255. package/dist/node_modules/ramda/es/find.js +46 -0
  1256. package/dist/node_modules/ramda/es/findIndex.js +46 -0
  1257. package/dist/node_modules/ramda/es/findLast.js +43 -0
  1258. package/dist/node_modules/ramda/es/findLastIndex.js +45 -0
  1259. package/dist/node_modules/ramda/es/flatten.js +27 -0
  1260. package/dist/node_modules/ramda/es/flip.js +35 -0
  1261. package/dist/node_modules/ramda/es/forEach.js +54 -0
  1262. package/dist/node_modules/ramda/es/forEachObjIndexed.js +41 -0
  1263. package/dist/node_modules/ramda/es/fromPairs.js +33 -0
  1264. package/dist/node_modules/ramda/es/groupBy.js +60 -0
  1265. package/dist/node_modules/ramda/es/groupWith.js +54 -0
  1266. package/dist/node_modules/ramda/es/gt.js +30 -0
  1267. package/dist/node_modules/ramda/es/gte.js +30 -0
  1268. package/dist/node_modules/ramda/es/has.js +34 -0
  1269. package/dist/node_modules/ramda/es/hasIn.js +35 -0
  1270. package/dist/node_modules/ramda/es/hasPath.js +48 -0
  1271. package/dist/node_modules/ramda/es/head.js +27 -0
  1272. package/dist/node_modules/ramda/es/identical.js +33 -0
  1273. package/dist/node_modules/ramda/es/identity.js +27 -0
  1274. package/dist/node_modules/ramda/es/ifElse.js +37 -0
  1275. package/dist/node_modules/ramda/es/inc.js +21 -0
  1276. package/dist/node_modules/ramda/es/includes.js +30 -0
  1277. package/dist/node_modules/ramda/es/index.js +257 -0
  1278. package/dist/node_modules/ramda/es/indexBy.js +30 -0
  1279. package/dist/node_modules/ramda/es/indexOf.js +30 -0
  1280. package/dist/node_modules/ramda/es/init.js +30 -0
  1281. package/dist/node_modules/ramda/es/innerJoin.js +48 -0
  1282. package/dist/node_modules/ramda/es/insert.js +31 -0
  1283. package/dist/node_modules/ramda/es/insertAll.js +28 -0
  1284. package/dist/node_modules/ramda/es/internal/_Set.js +201 -0
  1285. package/dist/node_modules/ramda/es/internal/_aperture.js +12 -0
  1286. package/dist/node_modules/ramda/es/internal/_arity.js +62 -0
  1287. package/dist/node_modules/ramda/es/internal/_arrayFromIterator.js +10 -0
  1288. package/dist/node_modules/ramda/es/internal/_assertPromise.js +7 -0
  1289. package/dist/node_modules/ramda/es/internal/_checkForMethod.js +24 -0
  1290. package/dist/node_modules/ramda/es/internal/_clone.js +53 -0
  1291. package/dist/node_modules/ramda/es/internal/_cloneRegExp.js +3 -0
  1292. package/dist/node_modules/ramda/es/internal/_complement.js +5 -0
  1293. package/dist/node_modules/ramda/es/internal/_concat.js +34 -0
  1294. package/dist/node_modules/ramda/es/internal/_createPartialApplicator.js +9 -0
  1295. package/dist/node_modules/ramda/es/internal/_curry1.js +19 -0
  1296. package/dist/node_modules/ramda/es/internal/_curry2.js +31 -0
  1297. package/dist/node_modules/ramda/es/internal/_curry3.js +49 -0
  1298. package/dist/node_modules/ramda/es/internal/_curryN.js +42 -0
  1299. package/dist/node_modules/ramda/es/internal/_dispatchable.js +46 -0
  1300. package/dist/node_modules/ramda/es/internal/_dropLast.js +4 -0
  1301. package/dist/node_modules/ramda/es/internal/_dropLastWhile.js +10 -0
  1302. package/dist/node_modules/ramda/es/internal/_equals.js +166 -0
  1303. package/dist/node_modules/ramda/es/internal/_filter.js +15 -0
  1304. package/dist/node_modules/ramda/es/internal/_flatCat.js +32 -0
  1305. package/dist/node_modules/ramda/es/internal/_forceReduced.js +6 -0
  1306. package/dist/node_modules/ramda/es/internal/_functionName.js +5 -0
  1307. package/dist/node_modules/ramda/es/internal/_functionsWith.js +14 -0
  1308. package/dist/node_modules/ramda/es/internal/_has.js +3 -0
  1309. package/dist/node_modules/ramda/es/internal/_identity.js +3 -0
  1310. package/dist/node_modules/ramda/es/internal/_includes.js +4 -0
  1311. package/dist/node_modules/ramda/es/internal/_includesWith.js +14 -0
  1312. package/dist/node_modules/ramda/es/internal/_indexOf.js +67 -0
  1313. package/dist/node_modules/ramda/es/internal/_isArguments.js +14 -0
  1314. package/dist/node_modules/ramda/es/internal/_isArray.js +15 -0
  1315. package/dist/node_modules/ramda/es/internal/_isArrayLike.js +56 -0
  1316. package/dist/node_modules/ramda/es/internal/_isFunction.js +4 -0
  1317. package/dist/node_modules/ramda/es/internal/_isInteger.js +11 -0
  1318. package/dist/node_modules/ramda/es/internal/_isNumber.js +3 -0
  1319. package/dist/node_modules/ramda/es/internal/_isObject.js +3 -0
  1320. package/dist/node_modules/ramda/es/internal/_isPlaceholder.js +3 -0
  1321. package/dist/node_modules/ramda/es/internal/_isRegExp.js +3 -0
  1322. package/dist/node_modules/ramda/es/internal/_isString.js +3 -0
  1323. package/dist/node_modules/ramda/es/internal/_isTransformer.js +3 -0
  1324. package/dist/node_modules/ramda/es/internal/_makeFlat.js +35 -0
  1325. package/dist/node_modules/ramda/es/internal/_map.js +12 -0
  1326. package/dist/node_modules/ramda/es/internal/_objectAssign.js +29 -0
  1327. package/dist/node_modules/ramda/es/internal/_objectIs.js +14 -0
  1328. package/dist/node_modules/ramda/es/internal/_of.js +3 -0
  1329. package/dist/node_modules/ramda/es/internal/_pipe.js +5 -0
  1330. package/dist/node_modules/ramda/es/internal/_pipeP.js +8 -0
  1331. package/dist/node_modules/ramda/es/internal/_quote.js +5 -0
  1332. package/dist/node_modules/ramda/es/internal/_reduce.js +71 -0
  1333. package/dist/node_modules/ramda/es/internal/_reduced.js +6 -0
  1334. package/dist/node_modules/ramda/es/internal/_stepCat.js +46 -0
  1335. package/dist/node_modules/ramda/es/internal/_toISOString.js +14 -0
  1336. package/dist/node_modules/ramda/es/internal/_toString.js +58 -0
  1337. package/dist/node_modules/ramda/es/internal/_xall.js +42 -0
  1338. package/dist/node_modules/ramda/es/internal/_xany.js +42 -0
  1339. package/dist/node_modules/ramda/es/internal/_xaperture.js +50 -0
  1340. package/dist/node_modules/ramda/es/internal/_xchain.js +11 -0
  1341. package/dist/node_modules/ramda/es/internal/_xdrop.js +33 -0
  1342. package/dist/node_modules/ramda/es/internal/_xdropLast.js +49 -0
  1343. package/dist/node_modules/ramda/es/internal/_xdropLastWhile.js +45 -0
  1344. package/dist/node_modules/ramda/es/internal/_xdropRepeatsWith.js +39 -0
  1345. package/dist/node_modules/ramda/es/internal/_xdropWhile.js +36 -0
  1346. package/dist/node_modules/ramda/es/internal/_xfBase.js +8 -0
  1347. package/dist/node_modules/ramda/es/internal/_xfilter.js +28 -0
  1348. package/dist/node_modules/ramda/es/internal/_xfind.js +42 -0
  1349. package/dist/node_modules/ramda/es/internal/_xfindIndex.js +45 -0
  1350. package/dist/node_modules/ramda/es/internal/_xfindLast.js +35 -0
  1351. package/dist/node_modules/ramda/es/internal/_xfindLastIndex.js +39 -0
  1352. package/dist/node_modules/ramda/es/internal/_xmap.js +28 -0
  1353. package/dist/node_modules/ramda/es/internal/_xreduceBy.js +52 -0
  1354. package/dist/node_modules/ramda/es/internal/_xtake.js +32 -0
  1355. package/dist/node_modules/ramda/es/internal/_xtakeWhile.js +29 -0
  1356. package/dist/node_modules/ramda/es/internal/_xtap.js +29 -0
  1357. package/dist/node_modules/ramda/es/internal/_xwrap.js +25 -0
  1358. package/dist/node_modules/ramda/es/intersection.js +40 -0
  1359. package/dist/node_modules/ramda/es/intersperse.js +43 -0
  1360. package/dist/node_modules/ramda/es/into.js +52 -0
  1361. package/dist/node_modules/ramda/es/invert.js +46 -0
  1362. package/dist/node_modules/ramda/es/invertObj.js +48 -0
  1363. package/dist/node_modules/ramda/es/invoker.js +54 -0
  1364. package/dist/node_modules/ramda/es/is.js +32 -0
  1365. package/dist/node_modules/ramda/es/isEmpty.js +32 -0
  1366. package/dist/node_modules/ramda/es/isNil.js +26 -0
  1367. package/dist/node_modules/ramda/es/join.js +25 -0
  1368. package/dist/node_modules/ramda/es/juxt.js +29 -0
  1369. package/dist/node_modules/ramda/es/keys.js +91 -0
  1370. package/dist/node_modules/ramda/es/keysIn.js +37 -0
  1371. package/dist/node_modules/ramda/es/last.js +26 -0
  1372. package/dist/node_modules/ramda/es/lastIndexOf.js +44 -0
  1373. package/dist/node_modules/ramda/es/length.js +25 -0
  1374. package/dist/node_modules/ramda/es/lens.js +39 -0
  1375. package/dist/node_modules/ramda/es/lensIndex.js +32 -0
  1376. package/dist/node_modules/ramda/es/lensPath.js +36 -0
  1377. package/dist/node_modules/ramda/es/lensProp.js +32 -0
  1378. package/dist/node_modules/ramda/es/lift.js +32 -0
  1379. package/dist/node_modules/ramda/es/liftN.js +33 -0
  1380. package/dist/node_modules/ramda/es/lt.js +30 -0
  1381. package/dist/node_modules/ramda/es/lte.js +30 -0
  1382. package/dist/node_modules/ramda/es/map.js +66 -0
  1383. package/dist/node_modules/ramda/es/mapAccum.js +54 -0
  1384. package/dist/node_modules/ramda/es/mapAccumRight.js +56 -0
  1385. package/dist/node_modules/ramda/es/mapObjIndexed.js +35 -0
  1386. package/dist/node_modules/ramda/es/match.js +30 -0
  1387. package/dist/node_modules/ramda/es/mathMod.js +51 -0
  1388. package/dist/node_modules/ramda/es/max.js +26 -0
  1389. package/dist/node_modules/ramda/es/maxBy.js +33 -0
  1390. package/dist/node_modules/ramda/es/mean.js +26 -0
  1391. package/dist/node_modules/ramda/es/median.js +37 -0
  1392. package/dist/node_modules/ramda/es/memoizeWith.js +48 -0
  1393. package/dist/node_modules/ramda/es/merge.js +34 -0
  1394. package/dist/node_modules/ramda/es/mergeAll.js +27 -0
  1395. package/dist/node_modules/ramda/es/mergeDeepLeft.js +33 -0
  1396. package/dist/node_modules/ramda/es/mergeDeepRight.js +33 -0
  1397. package/dist/node_modules/ramda/es/mergeDeepWith.js +39 -0
  1398. package/dist/node_modules/ramda/es/mergeDeepWithKey.js +45 -0
  1399. package/dist/node_modules/ramda/es/mergeLeft.js +33 -0
  1400. package/dist/node_modules/ramda/es/mergeRight.js +33 -0
  1401. package/dist/node_modules/ramda/es/mergeWith.js +35 -0
  1402. package/dist/node_modules/ramda/es/mergeWithKey.js +50 -0
  1403. package/dist/node_modules/ramda/es/min.js +26 -0
  1404. package/dist/node_modules/ramda/es/minBy.js +33 -0
  1405. package/dist/node_modules/ramda/es/modulo.js +34 -0
  1406. package/dist/node_modules/ramda/es/move.js +32 -0
  1407. package/dist/node_modules/ramda/es/multiply.js +29 -0
  1408. package/dist/node_modules/ramda/es/nAry.js +97 -0
  1409. package/dist/node_modules/ramda/es/negate.js +23 -0
  1410. package/dist/node_modules/ramda/es/none.js +36 -0
  1411. package/dist/node_modules/ramda/es/not.js +28 -0
  1412. package/dist/node_modules/ramda/es/nth.js +37 -0
  1413. package/dist/node_modules/ramda/es/nthArg.js +32 -0
  1414. package/dist/node_modules/ramda/es/o.js +36 -0
  1415. package/dist/node_modules/ramda/es/objOf.js +31 -0
  1416. package/dist/node_modules/ramda/es/of.js +26 -0
  1417. package/dist/node_modules/ramda/es/omit.js +41 -0
  1418. package/dist/node_modules/ramda/es/once.js +39 -0
  1419. package/dist/node_modules/ramda/es/or.js +29 -0
  1420. package/dist/node_modules/ramda/es/otherwise.js +40 -0
  1421. package/dist/node_modules/ramda/es/over.js +47 -0
  1422. package/dist/node_modules/ramda/es/pair.js +25 -0
  1423. package/dist/node_modules/ramda/es/partial.js +36 -0
  1424. package/dist/node_modules/ramda/es/partialRight.js +35 -0
  1425. package/dist/node_modules/ramda/es/partition.js +32 -0
  1426. package/dist/node_modules/ramda/es/path.js +30 -0
  1427. package/dist/node_modules/ramda/es/pathEq.js +35 -0
  1428. package/dist/node_modules/ramda/es/pathOr.js +30 -0
  1429. package/dist/node_modules/ramda/es/pathSatisfies.js +30 -0
  1430. package/dist/node_modules/ramda/es/paths.js +45 -0
  1431. package/dist/node_modules/ramda/es/pick.js +38 -0
  1432. package/dist/node_modules/ramda/es/pickAll.js +37 -0
  1433. package/dist/node_modules/ramda/es/pickBy.js +37 -0
  1434. package/dist/node_modules/ramda/es/pipe.js +35 -0
  1435. package/dist/node_modules/ramda/es/pipeK.js +45 -0
  1436. package/dist/node_modules/ramda/es/pipeP.js +31 -0
  1437. package/dist/node_modules/ramda/es/pipeWith.js +47 -0
  1438. package/dist/node_modules/ramda/es/pluck.js +38 -0
  1439. package/dist/node_modules/ramda/es/prepend.js +27 -0
  1440. package/dist/node_modules/ramda/es/product.js +22 -0
  1441. package/dist/node_modules/ramda/es/project.js +29 -0
  1442. package/dist/node_modules/ramda/es/prop.js +31 -0
  1443. package/dist/node_modules/ramda/es/propEq.js +35 -0
  1444. package/dist/node_modules/ramda/es/propIs.js +30 -0
  1445. package/dist/node_modules/ramda/es/propOr.js +36 -0
  1446. package/dist/node_modules/ramda/es/propSatisfies.js +28 -0
  1447. package/dist/node_modules/ramda/es/props.js +32 -0
  1448. package/dist/node_modules/ramda/es/range.js +38 -0
  1449. package/dist/node_modules/ramda/es/reduce.js +54 -0
  1450. package/dist/node_modules/ramda/es/reduceBy.js +61 -0
  1451. package/dist/node_modules/ramda/es/reduceRight.js +58 -0
  1452. package/dist/node_modules/ramda/es/reduceWhile.js +42 -0
  1453. package/dist/node_modules/ramda/es/reduced.js +33 -0
  1454. package/dist/node_modules/ramda/es/reject.js +35 -0
  1455. package/dist/node_modules/ramda/es/remove.js +31 -0
  1456. package/dist/node_modules/ramda/es/repeat.js +34 -0
  1457. package/dist/node_modules/ramda/es/replace.js +33 -0
  1458. package/dist/node_modules/ramda/es/reverse.js +34 -0
  1459. package/dist/node_modules/ramda/es/scan.js +40 -0
  1460. package/dist/node_modules/ramda/es/sequence.js +39 -0
  1461. package/dist/node_modules/ramda/es/set.js +33 -0
  1462. package/dist/node_modules/ramda/es/slice.js +36 -0
  1463. package/dist/node_modules/ramda/es/sort.js +29 -0
  1464. package/dist/node_modules/ramda/es/sortBy.js +46 -0
  1465. package/dist/node_modules/ramda/es/sortWith.js +51 -0
  1466. package/dist/node_modules/ramda/es/split.js +26 -0
  1467. package/dist/node_modules/ramda/es/splitAt.js +29 -0
  1468. package/dist/node_modules/ramda/es/splitEvery.js +38 -0
  1469. package/dist/node_modules/ramda/es/splitWhen.js +37 -0
  1470. package/dist/node_modules/ramda/es/startsWith.js +33 -0
  1471. package/dist/node_modules/ramda/es/subtract.js +32 -0
  1472. package/dist/node_modules/ramda/es/sum.js +22 -0
  1473. package/dist/node_modules/ramda/es/symmetricDifference.js +29 -0
  1474. package/dist/node_modules/ramda/es/symmetricDifferenceWith.js +33 -0
  1475. package/dist/node_modules/ramda/es/tail.js +40 -0
  1476. package/dist/node_modules/ramda/es/take.js +57 -0
  1477. package/dist/node_modules/ramda/es/takeLast.js +32 -0
  1478. package/dist/node_modules/ramda/es/takeLastWhile.js +41 -0
  1479. package/dist/node_modules/ramda/es/takeWhile.js +50 -0
  1480. package/dist/node_modules/ramda/es/tap.js +34 -0
  1481. package/dist/node_modules/ramda/es/test.js +33 -0
  1482. package/dist/node_modules/ramda/es/thunkify.js +33 -0
  1483. package/dist/node_modules/ramda/es/times.js +47 -0
  1484. package/dist/node_modules/ramda/es/toLower.js +21 -0
  1485. package/dist/node_modules/ramda/es/toPairs.js +36 -0
  1486. package/dist/node_modules/ramda/es/toPairsIn.js +36 -0
  1487. package/dist/node_modules/ramda/es/toString.js +46 -0
  1488. package/dist/node_modules/ramda/es/toUpper.js +21 -0
  1489. package/dist/node_modules/ramda/es/transduce.js +57 -0
  1490. package/dist/node_modules/ramda/es/transpose.js +52 -0
  1491. package/dist/node_modules/ramda/es/traverse.js +37 -0
  1492. package/dist/node_modules/ramda/es/trim.js +36 -0
  1493. package/dist/node_modules/ramda/es/tryCatch.js +40 -0
  1494. package/dist/node_modules/ramda/es/type.js +34 -0
  1495. package/dist/node_modules/ramda/es/unapply.js +35 -0
  1496. package/dist/node_modules/ramda/es/unary.js +38 -0
  1497. package/dist/node_modules/ramda/es/uncurryN.js +43 -0
  1498. package/dist/node_modules/ramda/es/unfold.js +42 -0
  1499. package/dist/node_modules/ramda/es/union.js +29 -0
  1500. package/dist/node_modules/ramda/es/unionWith.js +33 -0
  1501. package/dist/node_modules/ramda/es/uniq.js +24 -0
  1502. package/dist/node_modules/ramda/es/uniqBy.js +44 -0
  1503. package/dist/node_modules/ramda/es/uniqWith.js +47 -0
  1504. package/dist/node_modules/ramda/es/unless.js +33 -0
  1505. package/dist/node_modules/ramda/es/unnest.js +24 -0
  1506. package/dist/node_modules/ramda/es/until.js +34 -0
  1507. package/dist/node_modules/ramda/es/update.js +33 -0
  1508. package/dist/node_modules/ramda/es/useWith.js +49 -0
  1509. package/dist/node_modules/ramda/es/values.js +37 -0
  1510. package/dist/node_modules/ramda/es/valuesIn.js +37 -0
  1511. package/dist/node_modules/ramda/es/view.js +42 -0
  1512. package/dist/node_modules/ramda/es/when.js +37 -0
  1513. package/dist/node_modules/ramda/es/where.js +51 -0
  1514. package/dist/node_modules/ramda/es/whereEq.js +40 -0
  1515. package/dist/node_modules/ramda/es/without.js +31 -0
  1516. package/dist/node_modules/ramda/es/xor.js +30 -0
  1517. package/dist/node_modules/ramda/es/xprod.js +45 -0
  1518. package/dist/node_modules/ramda/es/zip.js +37 -0
  1519. package/dist/node_modules/ramda/es/zipObj.js +35 -0
  1520. package/dist/node_modules/ramda/es/zipWith.js +42 -0
  1521. package/dist/node_modules/ramda/package.json +105 -0
  1522. package/dist/node_modules/ramda/src/F.js +20 -0
  1523. package/dist/node_modules/ramda/src/T.js +20 -0
  1524. package/dist/node_modules/ramda/src/__.js +30 -0
  1525. package/dist/node_modules/ramda/src/add.js +29 -0
  1526. package/dist/node_modules/ramda/src/addIndex.js +57 -0
  1527. package/dist/node_modules/ramda/src/adjust.js +52 -0
  1528. package/dist/node_modules/ramda/src/all.js +56 -0
  1529. package/dist/node_modules/ramda/src/allPass.js +66 -0
  1530. package/dist/node_modules/ramda/src/always.js +33 -0
  1531. package/dist/node_modules/ramda/src/and.js +31 -0
  1532. package/dist/node_modules/ramda/src/andThen.js +44 -0
  1533. package/dist/node_modules/ramda/src/any.js +57 -0
  1534. package/dist/node_modules/ramda/src/anyPass.js +67 -0
  1535. package/dist/node_modules/ramda/src/ap.js +54 -0
  1536. package/dist/node_modules/ramda/src/aperture.js +45 -0
  1537. package/dist/node_modules/ramda/src/append.js +36 -0
  1538. package/dist/node_modules/ramda/src/apply.js +32 -0
  1539. package/dist/node_modules/ramda/src/applySpec.js +82 -0
  1540. package/dist/node_modules/ramda/src/applyTo.js +31 -0
  1541. package/dist/node_modules/ramda/src/ascend.js +39 -0
  1542. package/dist/node_modules/ramda/src/assoc.js +39 -0
  1543. package/dist/node_modules/ramda/src/assocPath.js +73 -0
  1544. package/dist/node_modules/ramda/src/binary.js +44 -0
  1545. package/dist/node_modules/ramda/src/bind.js +40 -0
  1546. package/dist/node_modules/ramda/src/both.js +57 -0
  1547. package/dist/node_modules/ramda/src/call.js +43 -0
  1548. package/dist/node_modules/ramda/src/chain.js +62 -0
  1549. package/dist/node_modules/ramda/src/clamp.js +36 -0
  1550. package/dist/node_modules/ramda/src/clone.js +37 -0
  1551. package/dist/node_modules/ramda/src/comparator.js +37 -0
  1552. package/dist/node_modules/ramda/src/complement.js +35 -0
  1553. package/dist/node_modules/ramda/src/compose.js +42 -0
  1554. package/dist/node_modules/ramda/src/composeK.js +55 -0
  1555. package/dist/node_modules/ramda/src/composeP.js +53 -0
  1556. package/dist/node_modules/ramda/src/composeWith.js +44 -0
  1557. package/dist/node_modules/ramda/src/concat.js +80 -0
  1558. package/dist/node_modules/ramda/src/cond.js +68 -0
  1559. package/dist/node_modules/ramda/src/construct.js +48 -0
  1560. package/dist/node_modules/ramda/src/constructN.js +97 -0
  1561. package/dist/node_modules/ramda/src/contains.js +37 -0
  1562. package/dist/node_modules/ramda/src/converge.js +66 -0
  1563. package/dist/node_modules/ramda/src/countBy.js +35 -0
  1564. package/dist/node_modules/ramda/src/curry.js +57 -0
  1565. package/dist/node_modules/ramda/src/curryN.js +70 -0
  1566. package/dist/node_modules/ramda/src/dec.js +24 -0
  1567. package/dist/node_modules/ramda/src/defaultTo.js +35 -0
  1568. package/dist/node_modules/ramda/src/descend.js +39 -0
  1569. package/dist/node_modules/ramda/src/difference.js +54 -0
  1570. package/dist/node_modules/ramda/src/differenceWith.js +50 -0
  1571. package/dist/node_modules/ramda/src/dissoc.js +35 -0
  1572. package/dist/node_modules/ramda/src/dissocPath.js +74 -0
  1573. package/dist/node_modules/ramda/src/divide.js +34 -0
  1574. package/dist/node_modules/ramda/src/drop.js +50 -0
  1575. package/dist/node_modules/ramda/src/dropLast.js +47 -0
  1576. package/dist/node_modules/ramda/src/dropLastWhile.js +51 -0
  1577. package/dist/node_modules/ramda/src/dropRepeats.js +50 -0
  1578. package/dist/node_modules/ramda/src/dropRepeatsWith.js +63 -0
  1579. package/dist/node_modules/ramda/src/dropWhile.js +61 -0
  1580. package/dist/node_modules/ramda/src/either.js +56 -0
  1581. package/dist/node_modules/ramda/src/empty.js +54 -0
  1582. package/dist/node_modules/ramda/src/endsWith.js +42 -0
  1583. package/dist/node_modules/ramda/src/eqBy.js +33 -0
  1584. package/dist/node_modules/ramda/src/eqProps.js +37 -0
  1585. package/dist/node_modules/ramda/src/equals.js +41 -0
  1586. package/dist/node_modules/ramda/src/evolve.js +48 -0
  1587. package/dist/node_modules/ramda/src/filter.js +72 -0
  1588. package/dist/node_modules/ramda/src/find.js +55 -0
  1589. package/dist/node_modules/ramda/src/findIndex.js +55 -0
  1590. package/dist/node_modules/ramda/src/findLast.js +52 -0
  1591. package/dist/node_modules/ramda/src/findLastIndex.js +54 -0
  1592. package/dist/node_modules/ramda/src/flatten.js +33 -0
  1593. package/dist/node_modules/ramda/src/flip.js +41 -0
  1594. package/dist/node_modules/ramda/src/forEach.js +60 -0
  1595. package/dist/node_modules/ramda/src/forEachObjIndexed.js +47 -0
  1596. package/dist/node_modules/ramda/src/fromPairs.js +36 -0
  1597. package/dist/node_modules/ramda/src/groupBy.js +69 -0
  1598. package/dist/node_modules/ramda/src/groupWith.js +57 -0
  1599. package/dist/node_modules/ramda/src/gt.js +33 -0
  1600. package/dist/node_modules/ramda/src/gte.js +33 -0
  1601. package/dist/node_modules/ramda/src/has.js +40 -0
  1602. package/dist/node_modules/ramda/src/hasIn.js +38 -0
  1603. package/dist/node_modules/ramda/src/hasPath.js +57 -0
  1604. package/dist/node_modules/ramda/src/head.js +30 -0
  1605. package/dist/node_modules/ramda/src/identical.js +39 -0
  1606. package/dist/node_modules/ramda/src/identity.js +33 -0
  1607. package/dist/node_modules/ramda/src/ifElse.js +43 -0
  1608. package/dist/node_modules/ramda/src/inc.js +24 -0
  1609. package/dist/node_modules/ramda/src/includes.js +36 -0
  1610. package/dist/node_modules/ramda/src/index.js +772 -0
  1611. package/dist/node_modules/ramda/src/index.mjs +257 -0
  1612. package/dist/node_modules/ramda/src/indexBy.js +33 -0
  1613. package/dist/node_modules/ramda/src/indexOf.js +39 -0
  1614. package/dist/node_modules/ramda/src/init.js +33 -0
  1615. package/dist/node_modules/ramda/src/innerJoin.js +57 -0
  1616. package/dist/node_modules/ramda/src/insert.js +34 -0
  1617. package/dist/node_modules/ramda/src/insertAll.js +31 -0
  1618. package/dist/node_modules/ramda/src/internal/_Set.js +203 -0
  1619. package/dist/node_modules/ramda/src/internal/_aperture.js +14 -0
  1620. package/dist/node_modules/ramda/src/internal/_arity.js +64 -0
  1621. package/dist/node_modules/ramda/src/internal/_arrayFromIterator.js +12 -0
  1622. package/dist/node_modules/ramda/src/internal/_assertPromise.js +15 -0
  1623. package/dist/node_modules/ramda/src/internal/_checkForMethod.js +29 -0
  1624. package/dist/node_modules/ramda/src/internal/_clone.js +61 -0
  1625. package/dist/node_modules/ramda/src/internal/_cloneRegExp.js +5 -0
  1626. package/dist/node_modules/ramda/src/internal/_complement.js +7 -0
  1627. package/dist/node_modules/ramda/src/internal/_concat.js +36 -0
  1628. package/dist/node_modules/ramda/src/internal/_createPartialApplicator.js +17 -0
  1629. package/dist/node_modules/ramda/src/internal/_curry1.js +24 -0
  1630. package/dist/node_modules/ramda/src/internal/_curry2.js +39 -0
  1631. package/dist/node_modules/ramda/src/internal/_curry3.js +60 -0
  1632. package/dist/node_modules/ramda/src/internal/_curryN.js +50 -0
  1633. package/dist/node_modules/ramda/src/internal/_dispatchable.js +54 -0
  1634. package/dist/node_modules/ramda/src/internal/_dropLast.js +9 -0
  1635. package/dist/node_modules/ramda/src/internal/_dropLastWhile.js +15 -0
  1636. package/dist/node_modules/ramda/src/internal/_equals.js +189 -0
  1637. package/dist/node_modules/ramda/src/internal/_filter.js +17 -0
  1638. package/dist/node_modules/ramda/src/internal/_flatCat.js +43 -0
  1639. package/dist/node_modules/ramda/src/internal/_forceReduced.js +8 -0
  1640. package/dist/node_modules/ramda/src/internal/_functionName.js +7 -0
  1641. package/dist/node_modules/ramda/src/internal/_functionsWith.js +19 -0
  1642. package/dist/node_modules/ramda/src/internal/_has.js +5 -0
  1643. package/dist/node_modules/ramda/src/internal/_identity.js +5 -0
  1644. package/dist/node_modules/ramda/src/internal/_includes.js +9 -0
  1645. package/dist/node_modules/ramda/src/internal/_includesWith.js +16 -0
  1646. package/dist/node_modules/ramda/src/internal/_indexOf.js +72 -0
  1647. package/dist/node_modules/ramda/src/internal/_isArguments.js +17 -0
  1648. package/dist/node_modules/ramda/src/internal/_isArray.js +15 -0
  1649. package/dist/node_modules/ramda/src/internal/_isArrayLike.js +65 -0
  1650. package/dist/node_modules/ramda/src/internal/_isFunction.js +6 -0
  1651. package/dist/node_modules/ramda/src/internal/_isInteger.js +11 -0
  1652. package/dist/node_modules/ramda/src/internal/_isNumber.js +5 -0
  1653. package/dist/node_modules/ramda/src/internal/_isObject.js +5 -0
  1654. package/dist/node_modules/ramda/src/internal/_isPlaceholder.js +5 -0
  1655. package/dist/node_modules/ramda/src/internal/_isRegExp.js +5 -0
  1656. package/dist/node_modules/ramda/src/internal/_isString.js +5 -0
  1657. package/dist/node_modules/ramda/src/internal/_isTransformer.js +5 -0
  1658. package/dist/node_modules/ramda/src/internal/_makeFlat.js +40 -0
  1659. package/dist/node_modules/ramda/src/internal/_map.js +14 -0
  1660. package/dist/node_modules/ramda/src/internal/_objectAssign.js +32 -0
  1661. package/dist/node_modules/ramda/src/internal/_objectIs.js +14 -0
  1662. package/dist/node_modules/ramda/src/internal/_of.js +5 -0
  1663. package/dist/node_modules/ramda/src/internal/_pipe.js +7 -0
  1664. package/dist/node_modules/ramda/src/internal/_pipeP.js +10 -0
  1665. package/dist/node_modules/ramda/src/internal/_quote.js +7 -0
  1666. package/dist/node_modules/ramda/src/internal/_reduce.js +82 -0
  1667. package/dist/node_modules/ramda/src/internal/_reduced.js +8 -0
  1668. package/dist/node_modules/ramda/src/internal/_stepCat.js +64 -0
  1669. package/dist/node_modules/ramda/src/internal/_toISOString.js +14 -0
  1670. package/dist/node_modules/ramda/src/internal/_toString.js +78 -0
  1671. package/dist/node_modules/ramda/src/internal/_xall.js +50 -0
  1672. package/dist/node_modules/ramda/src/internal/_xany.js +50 -0
  1673. package/dist/node_modules/ramda/src/internal/_xaperture.js +58 -0
  1674. package/dist/node_modules/ramda/src/internal/_xchain.js +19 -0
  1675. package/dist/node_modules/ramda/src/internal/_xdrop.js +38 -0
  1676. package/dist/node_modules/ramda/src/internal/_xdropLast.js +54 -0
  1677. package/dist/node_modules/ramda/src/internal/_xdropLastWhile.js +53 -0
  1678. package/dist/node_modules/ramda/src/internal/_xdropRepeatsWith.js +44 -0
  1679. package/dist/node_modules/ramda/src/internal/_xdropWhile.js +41 -0
  1680. package/dist/node_modules/ramda/src/internal/_xfBase.js +8 -0
  1681. package/dist/node_modules/ramda/src/internal/_xfilter.js +33 -0
  1682. package/dist/node_modules/ramda/src/internal/_xfind.js +50 -0
  1683. package/dist/node_modules/ramda/src/internal/_xfindIndex.js +53 -0
  1684. package/dist/node_modules/ramda/src/internal/_xfindLast.js +40 -0
  1685. package/dist/node_modules/ramda/src/internal/_xfindLastIndex.js +44 -0
  1686. package/dist/node_modules/ramda/src/internal/_xmap.js +33 -0
  1687. package/dist/node_modules/ramda/src/internal/_xreduceBy.js +60 -0
  1688. package/dist/node_modules/ramda/src/internal/_xtake.js +40 -0
  1689. package/dist/node_modules/ramda/src/internal/_xtakeWhile.js +37 -0
  1690. package/dist/node_modules/ramda/src/internal/_xtap.js +34 -0
  1691. package/dist/node_modules/ramda/src/internal/_xwrap.js +27 -0
  1692. package/dist/node_modules/ramda/src/intersection.js +55 -0
  1693. package/dist/node_modules/ramda/src/intersperse.js +49 -0
  1694. package/dist/node_modules/ramda/src/into.js +67 -0
  1695. package/dist/node_modules/ramda/src/invert.js +55 -0
  1696. package/dist/node_modules/ramda/src/invertObj.js +54 -0
  1697. package/dist/node_modules/ramda/src/invoker.js +66 -0
  1698. package/dist/node_modules/ramda/src/is.js +35 -0
  1699. package/dist/node_modules/ramda/src/isEmpty.js +41 -0
  1700. package/dist/node_modules/ramda/src/isNil.js +29 -0
  1701. package/dist/node_modules/ramda/src/join.js +28 -0
  1702. package/dist/node_modules/ramda/src/juxt.js +35 -0
  1703. package/dist/node_modules/ramda/src/keys.js +100 -0
  1704. package/dist/node_modules/ramda/src/keysIn.js +40 -0
  1705. package/dist/node_modules/ramda/src/last.js +29 -0
  1706. package/dist/node_modules/ramda/src/lastIndexOf.js +53 -0
  1707. package/dist/node_modules/ramda/src/length.js +31 -0
  1708. package/dist/node_modules/ramda/src/lens.js +45 -0
  1709. package/dist/node_modules/ramda/src/lensIndex.js +44 -0
  1710. package/dist/node_modules/ramda/src/lensPath.js +48 -0
  1711. package/dist/node_modules/ramda/src/lensProp.js +44 -0
  1712. package/dist/node_modules/ramda/src/lift.js +38 -0
  1713. package/dist/node_modules/ramda/src/liftN.js +48 -0
  1714. package/dist/node_modules/ramda/src/lt.js +33 -0
  1715. package/dist/node_modules/ramda/src/lte.js +33 -0
  1716. package/dist/node_modules/ramda/src/map.js +87 -0
  1717. package/dist/node_modules/ramda/src/mapAccum.js +57 -0
  1718. package/dist/node_modules/ramda/src/mapAccumRight.js +59 -0
  1719. package/dist/node_modules/ramda/src/mapObjIndexed.js +44 -0
  1720. package/dist/node_modules/ramda/src/match.js +33 -0
  1721. package/dist/node_modules/ramda/src/mathMod.js +57 -0
  1722. package/dist/node_modules/ramda/src/max.js +29 -0
  1723. package/dist/node_modules/ramda/src/maxBy.js +36 -0
  1724. package/dist/node_modules/ramda/src/mean.js +32 -0
  1725. package/dist/node_modules/ramda/src/median.js +43 -0
  1726. package/dist/node_modules/ramda/src/memoizeWith.js +57 -0
  1727. package/dist/node_modules/ramda/src/merge.js +40 -0
  1728. package/dist/node_modules/ramda/src/mergeAll.js +33 -0
  1729. package/dist/node_modules/ramda/src/mergeDeepLeft.js +39 -0
  1730. package/dist/node_modules/ramda/src/mergeDeepRight.js +39 -0
  1731. package/dist/node_modules/ramda/src/mergeDeepWith.js +45 -0
  1732. package/dist/node_modules/ramda/src/mergeDeepWithKey.js +54 -0
  1733. package/dist/node_modules/ramda/src/mergeLeft.js +39 -0
  1734. package/dist/node_modules/ramda/src/mergeRight.js +39 -0
  1735. package/dist/node_modules/ramda/src/mergeWith.js +41 -0
  1736. package/dist/node_modules/ramda/src/mergeWithKey.js +56 -0
  1737. package/dist/node_modules/ramda/src/min.js +29 -0
  1738. package/dist/node_modules/ramda/src/minBy.js +36 -0
  1739. package/dist/node_modules/ramda/src/modulo.js +37 -0
  1740. package/dist/node_modules/ramda/src/move.js +35 -0
  1741. package/dist/node_modules/ramda/src/multiply.js +32 -0
  1742. package/dist/node_modules/ramda/src/nAry.js +100 -0
  1743. package/dist/node_modules/ramda/src/negate.js +26 -0
  1744. package/dist/node_modules/ramda/src/none.js +45 -0
  1745. package/dist/node_modules/ramda/src/not.js +31 -0
  1746. package/dist/node_modules/ramda/src/nth.js +43 -0
  1747. package/dist/node_modules/ramda/src/nthArg.js +41 -0
  1748. package/dist/node_modules/ramda/src/o.js +39 -0
  1749. package/dist/node_modules/ramda/src/objOf.js +34 -0
  1750. package/dist/node_modules/ramda/src/of.js +32 -0
  1751. package/dist/node_modules/ramda/src/omit.js +44 -0
  1752. package/dist/node_modules/ramda/src/once.js +45 -0
  1753. package/dist/node_modules/ramda/src/or.js +32 -0
  1754. package/dist/node_modules/ramda/src/otherwise.js +46 -0
  1755. package/dist/node_modules/ramda/src/over.js +50 -0
  1756. package/dist/node_modules/ramda/src/pair.js +28 -0
  1757. package/dist/node_modules/ramda/src/partial.js +42 -0
  1758. package/dist/node_modules/ramda/src/partialRight.js +44 -0
  1759. package/dist/node_modules/ramda/src/partition.js +41 -0
  1760. package/dist/node_modules/ramda/src/path.js +36 -0
  1761. package/dist/node_modules/ramda/src/pathEq.js +44 -0
  1762. package/dist/node_modules/ramda/src/pathOr.js +39 -0
  1763. package/dist/node_modules/ramda/src/pathSatisfies.js +36 -0
  1764. package/dist/node_modules/ramda/src/paths.js +54 -0
  1765. package/dist/node_modules/ramda/src/pick.js +41 -0
  1766. package/dist/node_modules/ramda/src/pickAll.js +40 -0
  1767. package/dist/node_modules/ramda/src/pickBy.js +40 -0
  1768. package/dist/node_modules/ramda/src/pipe.js +49 -0
  1769. package/dist/node_modules/ramda/src/pipeK.js +53 -0
  1770. package/dist/node_modules/ramda/src/pipeP.js +45 -0
  1771. package/dist/node_modules/ramda/src/pipeWith.js +65 -0
  1772. package/dist/node_modules/ramda/src/pluck.js +47 -0
  1773. package/dist/node_modules/ramda/src/prepend.js +33 -0
  1774. package/dist/node_modules/ramda/src/product.js +28 -0
  1775. package/dist/node_modules/ramda/src/project.js +41 -0
  1776. package/dist/node_modules/ramda/src/prop.js +37 -0
  1777. package/dist/node_modules/ramda/src/propEq.js +41 -0
  1778. package/dist/node_modules/ramda/src/propIs.js +36 -0
  1779. package/dist/node_modules/ramda/src/propOr.js +42 -0
  1780. package/dist/node_modules/ramda/src/propSatisfies.js +31 -0
  1781. package/dist/node_modules/ramda/src/props.js +38 -0
  1782. package/dist/node_modules/ramda/src/range.js +44 -0
  1783. package/dist/node_modules/ramda/src/reduce.js +60 -0
  1784. package/dist/node_modules/ramda/src/reduceBy.js +79 -0
  1785. package/dist/node_modules/ramda/src/reduceRight.js +61 -0
  1786. package/dist/node_modules/ramda/src/reduceWhile.js +51 -0
  1787. package/dist/node_modules/ramda/src/reduced.js +39 -0
  1788. package/dist/node_modules/ramda/src/reject.js +44 -0
  1789. package/dist/node_modules/ramda/src/remove.js +34 -0
  1790. package/dist/node_modules/ramda/src/repeat.js +43 -0
  1791. package/dist/node_modules/ramda/src/replace.js +36 -0
  1792. package/dist/node_modules/ramda/src/reverse.js +40 -0
  1793. package/dist/node_modules/ramda/src/scan.js +43 -0
  1794. package/dist/node_modules/ramda/src/sequence.js +54 -0
  1795. package/dist/node_modules/ramda/src/set.js +42 -0
  1796. package/dist/node_modules/ramda/src/slice.js +42 -0
  1797. package/dist/node_modules/ramda/src/sort.js +32 -0
  1798. package/dist/node_modules/ramda/src/sortBy.js +49 -0
  1799. package/dist/node_modules/ramda/src/sortWith.js +54 -0
  1800. package/dist/node_modules/ramda/src/split.js +29 -0
  1801. package/dist/node_modules/ramda/src/splitAt.js +38 -0
  1802. package/dist/node_modules/ramda/src/splitEvery.js +44 -0
  1803. package/dist/node_modules/ramda/src/splitWhen.js +40 -0
  1804. package/dist/node_modules/ramda/src/startsWith.js +42 -0
  1805. package/dist/node_modules/ramda/src/subtract.js +35 -0
  1806. package/dist/node_modules/ramda/src/sum.js +28 -0
  1807. package/dist/node_modules/ramda/src/symmetricDifference.js +38 -0
  1808. package/dist/node_modules/ramda/src/symmetricDifferenceWith.js +42 -0
  1809. package/dist/node_modules/ramda/src/tail.js +49 -0
  1810. package/dist/node_modules/ramda/src/take.js +69 -0
  1811. package/dist/node_modules/ramda/src/takeLast.js +38 -0
  1812. package/dist/node_modules/ramda/src/takeLastWhile.js +47 -0
  1813. package/dist/node_modules/ramda/src/takeWhile.js +62 -0
  1814. package/dist/node_modules/ramda/src/tap.js +43 -0
  1815. package/dist/node_modules/ramda/src/test.js +45 -0
  1816. package/dist/node_modules/ramda/src/thunkify.js +39 -0
  1817. package/dist/node_modules/ramda/src/times.js +50 -0
  1818. package/dist/node_modules/ramda/src/toLower.js +24 -0
  1819. package/dist/node_modules/ramda/src/toPairs.js +42 -0
  1820. package/dist/node_modules/ramda/src/toPairsIn.js +39 -0
  1821. package/dist/node_modules/ramda/src/toString.js +52 -0
  1822. package/dist/node_modules/ramda/src/toUpper.js +24 -0
  1823. package/dist/node_modules/ramda/src/transduce.js +66 -0
  1824. package/dist/node_modules/ramda/src/transpose.js +55 -0
  1825. package/dist/node_modules/ramda/src/traverse.js +46 -0
  1826. package/dist/node_modules/ramda/src/trim.js +39 -0
  1827. package/dist/node_modules/ramda/src/tryCatch.js +49 -0
  1828. package/dist/node_modules/ramda/src/type.js +37 -0
  1829. package/dist/node_modules/ramda/src/unapply.js +38 -0
  1830. package/dist/node_modules/ramda/src/unary.js +44 -0
  1831. package/dist/node_modules/ramda/src/uncurryN.js +49 -0
  1832. package/dist/node_modules/ramda/src/unfold.js +45 -0
  1833. package/dist/node_modules/ramda/src/union.js +41 -0
  1834. package/dist/node_modules/ramda/src/unionWith.js +42 -0
  1835. package/dist/node_modules/ramda/src/uniq.js +30 -0
  1836. package/dist/node_modules/ramda/src/uniqBy.js +50 -0
  1837. package/dist/node_modules/ramda/src/uniqWith.js +53 -0
  1838. package/dist/node_modules/ramda/src/unless.js +36 -0
  1839. package/dist/node_modules/ramda/src/unnest.js +30 -0
  1840. package/dist/node_modules/ramda/src/until.js +37 -0
  1841. package/dist/node_modules/ramda/src/update.js +42 -0
  1842. package/dist/node_modules/ramda/src/useWith.js +55 -0
  1843. package/dist/node_modules/ramda/src/values.js +43 -0
  1844. package/dist/node_modules/ramda/src/valuesIn.js +40 -0
  1845. package/dist/node_modules/ramda/src/view.js +45 -0
  1846. package/dist/node_modules/ramda/src/when.js +40 -0
  1847. package/dist/node_modules/ramda/src/where.js +57 -0
  1848. package/dist/node_modules/ramda/src/whereEq.js +52 -0
  1849. package/dist/node_modules/ramda/src/without.js +43 -0
  1850. package/dist/node_modules/ramda/src/xor.js +33 -0
  1851. package/dist/node_modules/ramda/src/xprod.js +48 -0
  1852. package/dist/node_modules/ramda/src/zip.js +40 -0
  1853. package/dist/node_modules/ramda/src/zipObj.js +38 -0
  1854. package/dist/node_modules/ramda/src/zipWith.js +45 -0
  1855. package/dist/node_modules/require-from-string/index.js +34 -0
  1856. package/dist/node_modules/require-from-string/license +21 -0
  1857. package/dist/node_modules/require-from-string/package.json +28 -0
  1858. package/dist/node_modules/require-from-string/readme.md +56 -0
  1859. package/dist/node_modules/simple-git/dist/cjs/index.js +4958 -0
  1860. package/dist/node_modules/simple-git/dist/cjs/index.js.map +7 -0
  1861. package/dist/node_modules/simple-git/dist/esm/index.js +4813 -0
  1862. package/dist/node_modules/simple-git/dist/esm/index.js.map +7 -0
  1863. package/dist/node_modules/simple-git/dist/esm/package.json +3 -0
  1864. package/dist/node_modules/simple-git/dist/src/lib/api.d.ts +13 -0
  1865. package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +9 -0
  1866. package/dist/node_modules/simple-git/dist/src/lib/args/pathspec.d.ts +3 -0
  1867. package/dist/node_modules/simple-git/dist/src/lib/errors/git-construct-error.d.ts +15 -0
  1868. package/dist/node_modules/simple-git/dist/src/lib/errors/git-error.d.ts +30 -0
  1869. package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +7 -0
  1870. package/dist/node_modules/simple-git/dist/src/lib/errors/git-response-error.d.ts +32 -0
  1871. package/dist/node_modules/simple-git/dist/src/lib/errors/task-configuration-error.d.ts +12 -0
  1872. package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +15 -0
  1873. package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +21 -0
  1874. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch-delete.d.ts +5 -0
  1875. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +2 -0
  1876. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-commit.d.ts +2 -0
  1877. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +3 -0
  1878. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-fetch.d.ts +2 -0
  1879. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-list-log-summary.d.ts +6 -0
  1880. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-merge.d.ts +11 -0
  1881. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-move.d.ts +2 -0
  1882. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-pull.d.ts +6 -0
  1883. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-push.d.ts +4 -0
  1884. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-messages.d.ts +5 -0
  1885. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-objects.d.ts +3 -0
  1886. package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +3 -0
  1887. package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +3 -0
  1888. package/dist/node_modules/simple-git/dist/src/lib/plugins/command-config-prefixing-plugin.d.ts +2 -0
  1889. package/dist/node_modules/simple-git/dist/src/lib/plugins/completion-detection.plugin.d.ts +3 -0
  1890. package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +3 -0
  1891. package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +8 -0
  1892. package/dist/node_modules/simple-git/dist/src/lib/plugins/index.d.ts +11 -0
  1893. package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +11 -0
  1894. package/dist/node_modules/simple-git/dist/src/lib/plugins/progress-monitor-plugin.d.ts +3 -0
  1895. package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +47 -0
  1896. package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +4 -0
  1897. package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +2 -0
  1898. package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +3 -0
  1899. package/dist/node_modules/simple-git/dist/src/lib/responses/BranchDeleteSummary.d.ts +12 -0
  1900. package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +14 -0
  1901. package/dist/node_modules/simple-git/dist/src/lib/responses/CheckIgnore.d.ts +4 -0
  1902. package/dist/node_modules/simple-git/dist/src/lib/responses/CleanSummary.d.ts +9 -0
  1903. package/dist/node_modules/simple-git/dist/src/lib/responses/ConfigList.d.ts +13 -0
  1904. package/dist/node_modules/simple-git/dist/src/lib/responses/DiffSummary.d.ts +10 -0
  1905. package/dist/node_modules/simple-git/dist/src/lib/responses/FileStatusSummary.d.ts +9 -0
  1906. package/dist/node_modules/simple-git/dist/src/lib/responses/GetRemoteSummary.d.ts +11 -0
  1907. package/dist/node_modules/simple-git/dist/src/lib/responses/InitSummary.d.ts +9 -0
  1908. package/dist/node_modules/simple-git/dist/src/lib/responses/MergeSummary.d.ts +16 -0
  1909. package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +25 -0
  1910. package/dist/node_modules/simple-git/dist/src/lib/responses/StatusSummary.d.ts +19 -0
  1911. package/dist/node_modules/simple-git/dist/src/lib/responses/TagList.d.ts +7 -0
  1912. package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor-chain.d.ts +25 -0
  1913. package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor.d.ts +14 -0
  1914. package/dist/node_modules/simple-git/dist/src/lib/runners/promise-wrapped.d.ts +2 -0
  1915. package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +11 -0
  1916. package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +23 -0
  1917. package/dist/node_modules/simple-git/dist/src/lib/simple-git-api.d.ts +20 -0
  1918. package/dist/node_modules/simple-git/dist/src/lib/task-callback.d.ts +2 -0
  1919. package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +3 -0
  1920. package/dist/node_modules/simple-git/dist/src/lib/tasks/branch.d.ts +7 -0
  1921. package/dist/node_modules/simple-git/dist/src/lib/tasks/change-working-directory.d.ts +2 -0
  1922. package/dist/node_modules/simple-git/dist/src/lib/tasks/check-ignore.d.ts +2 -0
  1923. package/dist/node_modules/simple-git/dist/src/lib/tasks/check-is-repo.d.ts +9 -0
  1924. package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +2 -0
  1925. package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +25 -0
  1926. package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +5 -0
  1927. package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +4 -0
  1928. package/dist/node_modules/simple-git/dist/src/lib/tasks/config.d.ts +8 -0
  1929. package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +12 -0
  1930. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +12 -0
  1931. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +5 -0
  1932. package/dist/node_modules/simple-git/dist/src/lib/tasks/fetch.d.ts +4 -0
  1933. package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +2 -0
  1934. package/dist/node_modules/simple-git/dist/src/lib/tasks/grep.d.ts +12 -0
  1935. package/dist/node_modules/simple-git/dist/src/lib/tasks/hash-object.d.ts +5 -0
  1936. package/dist/node_modules/simple-git/dist/src/lib/tasks/init.d.ts +3 -0
  1937. package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +32 -0
  1938. package/dist/node_modules/simple-git/dist/src/lib/tasks/merge.d.ts +4 -0
  1939. package/dist/node_modules/simple-git/dist/src/lib/tasks/move.d.ts +3 -0
  1940. package/dist/node_modules/simple-git/dist/src/lib/tasks/pull.d.ts +3 -0
  1941. package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +9 -0
  1942. package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +6 -0
  1943. package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +11 -0
  1944. package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +2 -0
  1945. package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +4 -0
  1946. package/dist/node_modules/simple-git/dist/src/lib/tasks/status.d.ts +3 -0
  1947. package/dist/node_modules/simple-git/dist/src/lib/tasks/sub-module.d.ts +5 -0
  1948. package/dist/node_modules/simple-git/dist/src/lib/tasks/tag.d.ts +18 -0
  1949. package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +14 -0
  1950. package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +9 -0
  1951. package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +21 -0
  1952. package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +158 -0
  1953. package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +20 -0
  1954. package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +16 -0
  1955. package/dist/node_modules/simple-git/dist/src/lib/utils/exit-codes.d.ts +10 -0
  1956. package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +8 -0
  1957. package/dist/node_modules/simple-git/dist/src/lib/utils/index.d.ts +8 -0
  1958. package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +15 -0
  1959. package/dist/node_modules/simple-git/dist/src/lib/utils/simple-git-options.d.ts +2 -0
  1960. package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +13 -0
  1961. package/dist/node_modules/simple-git/dist/src/lib/utils/task-parser.d.ts +5 -0
  1962. package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +47 -0
  1963. package/dist/node_modules/simple-git/dist/typings/errors.d.ts +5 -0
  1964. package/dist/node_modules/simple-git/dist/typings/index.d.ts +12 -0
  1965. package/dist/node_modules/simple-git/dist/typings/response.d.ts +555 -0
  1966. package/dist/node_modules/simple-git/dist/typings/simple-git.d.ts +1032 -0
  1967. package/dist/node_modules/simple-git/dist/typings/types.d.ts +23 -0
  1968. package/dist/node_modules/simple-git/package.json +61 -0
  1969. package/dist/node_modules/simple-git/promise.js +17 -0
  1970. package/dist/node_modules/simple-git/readme.md +842 -0
  1971. package/dist/node_modules/supports-color/browser.js +5 -0
  1972. package/dist/node_modules/supports-color/index.js +135 -0
  1973. package/dist/node_modules/supports-color/license +9 -0
  1974. package/dist/node_modules/supports-color/package.json +53 -0
  1975. package/dist/node_modules/supports-color/readme.md +76 -0
  1976. package/dist/node_modules/undici-types/README.md +6 -0
  1977. package/dist/node_modules/undici-types/agent.d.ts +31 -0
  1978. package/dist/node_modules/undici-types/api.d.ts +43 -0
  1979. package/dist/node_modules/undici-types/balanced-pool.d.ts +18 -0
  1980. package/dist/node_modules/undici-types/cache.d.ts +36 -0
  1981. package/dist/node_modules/undici-types/client.d.ts +97 -0
  1982. package/dist/node_modules/undici-types/connector.d.ts +34 -0
  1983. package/dist/node_modules/undici-types/content-type.d.ts +21 -0
  1984. package/dist/node_modules/undici-types/cookies.d.ts +28 -0
  1985. package/dist/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  1986. package/dist/node_modules/undici-types/dispatcher.d.ts +241 -0
  1987. package/dist/node_modules/undici-types/errors.d.ts +128 -0
  1988. package/dist/node_modules/undici-types/fetch.d.ts +209 -0
  1989. package/dist/node_modules/undici-types/file.d.ts +39 -0
  1990. package/dist/node_modules/undici-types/filereader.d.ts +54 -0
  1991. package/dist/node_modules/undici-types/formdata.d.ts +108 -0
  1992. package/dist/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  1993. package/dist/node_modules/undici-types/global-origin.d.ts +7 -0
  1994. package/dist/node_modules/undici-types/handlers.d.ts +9 -0
  1995. package/dist/node_modules/undici-types/header.d.ts +4 -0
  1996. package/dist/node_modules/undici-types/index.d.ts +63 -0
  1997. package/dist/node_modules/undici-types/interceptors.d.ts +5 -0
  1998. package/dist/node_modules/undici-types/mock-agent.d.ts +50 -0
  1999. package/dist/node_modules/undici-types/mock-client.d.ts +25 -0
  2000. package/dist/node_modules/undici-types/mock-errors.d.ts +12 -0
  2001. package/dist/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  2002. package/dist/node_modules/undici-types/mock-pool.d.ts +25 -0
  2003. package/dist/node_modules/undici-types/package.json +55 -0
  2004. package/dist/node_modules/undici-types/patch.d.ts +71 -0
  2005. package/dist/node_modules/undici-types/pool-stats.d.ts +19 -0
  2006. package/dist/node_modules/undici-types/pool.d.ts +28 -0
  2007. package/dist/node_modules/undici-types/proxy-agent.d.ts +30 -0
  2008. package/dist/node_modules/undici-types/readable.d.ts +61 -0
  2009. package/dist/node_modules/undici-types/webidl.d.ts +220 -0
  2010. package/dist/node_modules/undici-types/websocket.d.ts +131 -0
  2011. package/dist/node_modules/universalify/LICENSE +20 -0
  2012. package/dist/node_modules/universalify/README.md +76 -0
  2013. package/dist/node_modules/universalify/index.js +24 -0
  2014. package/dist/node_modules/universalify/package.json +34 -0
  2015. package/dist/node_modules/uri-js/LICENSE +11 -0
  2016. package/dist/node_modules/uri-js/README.md +203 -0
  2017. package/dist/node_modules/uri-js/dist/es5/uri.all.d.ts +59 -0
  2018. package/dist/node_modules/uri-js/dist/es5/uri.all.js +1443 -0
  2019. package/dist/node_modules/uri-js/dist/es5/uri.all.js.map +1 -0
  2020. package/dist/node_modules/uri-js/dist/es5/uri.all.min.d.ts +59 -0
  2021. package/dist/node_modules/uri-js/dist/es5/uri.all.min.js +3 -0
  2022. package/dist/node_modules/uri-js/dist/es5/uri.all.min.js.map +1 -0
  2023. package/dist/node_modules/uri-js/dist/esnext/index.d.ts +1 -0
  2024. package/dist/node_modules/uri-js/dist/esnext/index.js +17 -0
  2025. package/dist/node_modules/uri-js/dist/esnext/index.js.map +1 -0
  2026. package/dist/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +3 -0
  2027. package/dist/node_modules/uri-js/dist/esnext/regexps-iri.js +3 -0
  2028. package/dist/node_modules/uri-js/dist/esnext/regexps-iri.js.map +1 -0
  2029. package/dist/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +4 -0
  2030. package/dist/node_modules/uri-js/dist/esnext/regexps-uri.js +42 -0
  2031. package/dist/node_modules/uri-js/dist/esnext/regexps-uri.js.map +1 -0
  2032. package/dist/node_modules/uri-js/dist/esnext/schemes/http.d.ts +3 -0
  2033. package/dist/node_modules/uri-js/dist/esnext/schemes/http.js +28 -0
  2034. package/dist/node_modules/uri-js/dist/esnext/schemes/http.js.map +1 -0
  2035. package/dist/node_modules/uri-js/dist/esnext/schemes/https.d.ts +3 -0
  2036. package/dist/node_modules/uri-js/dist/esnext/schemes/https.js +9 -0
  2037. package/dist/node_modules/uri-js/dist/esnext/schemes/https.js.map +1 -0
  2038. package/dist/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +12 -0
  2039. package/dist/node_modules/uri-js/dist/esnext/schemes/mailto.js +148 -0
  2040. package/dist/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +1 -0
  2041. package/dist/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +7 -0
  2042. package/dist/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +23 -0
  2043. package/dist/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +1 -0
  2044. package/dist/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +10 -0
  2045. package/dist/node_modules/uri-js/dist/esnext/schemes/urn.js +49 -0
  2046. package/dist/node_modules/uri-js/dist/esnext/schemes/urn.js.map +1 -0
  2047. package/dist/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +7 -0
  2048. package/dist/node_modules/uri-js/dist/esnext/schemes/ws.js +41 -0
  2049. package/dist/node_modules/uri-js/dist/esnext/schemes/ws.js.map +1 -0
  2050. package/dist/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +3 -0
  2051. package/dist/node_modules/uri-js/dist/esnext/schemes/wss.js +9 -0
  2052. package/dist/node_modules/uri-js/dist/esnext/schemes/wss.js.map +1 -0
  2053. package/dist/node_modules/uri-js/dist/esnext/uri.d.ts +59 -0
  2054. package/dist/node_modules/uri-js/dist/esnext/uri.js +480 -0
  2055. package/dist/node_modules/uri-js/dist/esnext/uri.js.map +1 -0
  2056. package/dist/node_modules/uri-js/dist/esnext/util.d.ts +6 -0
  2057. package/dist/node_modules/uri-js/dist/esnext/util.js +36 -0
  2058. package/dist/node_modules/uri-js/dist/esnext/util.js.map +1 -0
  2059. package/dist/node_modules/uri-js/package.json +77 -0
  2060. package/dist/node_modules/uri-js/yarn.lock +2558 -0
  2061. package/dist/package-lock.json +10146 -0
  2062. package/dist/package.json +78 -0
  2063. package/dist/schemas/system.json +74 -0
  2064. package/dist/schemas/variant.json +144 -0
  2065. package/dist/scripts/jsonSchemaToTs.js +17 -0
  2066. package/dist/util/cache/cloneIntoCache.js +28 -0
  2067. package/dist/util/cache/copyItemFromCache.js +15 -0
  2068. package/dist/util/cache/getCachedItemCheckout.js +13 -0
  2069. package/dist/util/cache/getCachedItemPath.js +19 -0
  2070. package/dist/util/cache/getJsonFromCachedFile.js +11 -0
  2071. package/dist/util/catchLater.js +10 -0
  2072. package/dist/util/fs/executeScript.js +14 -0
  2073. package/dist/util/fs/findFileInCurrentPath.js +19 -0
  2074. package/dist/util/fs/loadJsonFile.js +14 -0
  2075. package/dist/util/fs/writeToJsonFile.js +15 -0
  2076. package/dist/util/getAvailableStarters.js +13 -0
  2077. package/dist/util/getGitRepoNameFromUrl.js +15 -0
  2078. package/dist/util/getRepositoryLatestTag.js +16 -0
  2079. package/dist/util/platform/getDrupalInfo.js +32 -0
  2080. package/dist/util/platform/getInitSuccessMessageForPlatform.js +36 -0
  2081. package/dist/util/platform/getPlatformInfo.js +11 -0
  2082. package/dist/util/project/buildComponentDependencyList.js +20 -0
  2083. package/dist/util/project/getEmulsifyConfig.js +16 -0
  2084. package/dist/util/project/installComponentFromCache.js +30 -0
  2085. package/dist/util/project/installDependencies.js +16 -0
  2086. package/dist/util/project/installGeneralAssetsFromCache.js +24 -0
  2087. package/dist/util/project/setEmulsifyConfig.js +19 -0
  2088. package/dist/util/strToMachineName.js +13 -0
  2089. package/dist/util/system/getAvailableSystems.js +12 -0
  2090. package/package.json +78 -0
@@ -0,0 +1,4813 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
+ var __spreadValues = (a, b) => {
11
+ for (var prop in b || (b = {}))
12
+ if (__hasOwnProp.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ if (__getOwnPropSymbols)
15
+ for (var prop of __getOwnPropSymbols(b)) {
16
+ if (__propIsEnum.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ }
19
+ return a;
20
+ };
21
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
+ var __esm = (fn, res) => function __init() {
23
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
24
+ };
25
+ var __commonJS = (cb, mod) => function __require() {
26
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
27
+ };
28
+ var __export = (target, all) => {
29
+ for (var name in all)
30
+ __defProp(target, name, { get: all[name], enumerable: true });
31
+ };
32
+ var __copyProps = (to, from, except, desc) => {
33
+ if (from && typeof from === "object" || typeof from === "function") {
34
+ for (let key of __getOwnPropNames(from))
35
+ if (!__hasOwnProp.call(to, key) && key !== except)
36
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
37
+ }
38
+ return to;
39
+ };
40
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
+ var __async = (__this, __arguments, generator) => {
42
+ return new Promise((resolve, reject) => {
43
+ var fulfilled = (value) => {
44
+ try {
45
+ step(generator.next(value));
46
+ } catch (e) {
47
+ reject(e);
48
+ }
49
+ };
50
+ var rejected = (value) => {
51
+ try {
52
+ step(generator.throw(value));
53
+ } catch (e) {
54
+ reject(e);
55
+ }
56
+ };
57
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
58
+ step((generator = generator.apply(__this, __arguments)).next());
59
+ });
60
+ };
61
+
62
+ // src/lib/args/pathspec.ts
63
+ function pathspec(...paths) {
64
+ const key = new String(paths);
65
+ cache.set(key, paths);
66
+ return key;
67
+ }
68
+ function isPathSpec(path) {
69
+ return path instanceof String && cache.has(path);
70
+ }
71
+ function toPaths(pathSpec) {
72
+ return cache.get(pathSpec) || [];
73
+ }
74
+ var cache;
75
+ var init_pathspec = __esm({
76
+ "src/lib/args/pathspec.ts"() {
77
+ "use strict";
78
+ cache = /* @__PURE__ */ new WeakMap();
79
+ }
80
+ });
81
+
82
+ // src/lib/errors/git-error.ts
83
+ var GitError;
84
+ var init_git_error = __esm({
85
+ "src/lib/errors/git-error.ts"() {
86
+ "use strict";
87
+ GitError = class extends Error {
88
+ constructor(task, message) {
89
+ super(message);
90
+ this.task = task;
91
+ Object.setPrototypeOf(this, new.target.prototype);
92
+ }
93
+ };
94
+ }
95
+ });
96
+
97
+ // src/lib/errors/git-response-error.ts
98
+ var GitResponseError;
99
+ var init_git_response_error = __esm({
100
+ "src/lib/errors/git-response-error.ts"() {
101
+ "use strict";
102
+ init_git_error();
103
+ GitResponseError = class extends GitError {
104
+ constructor(git, message) {
105
+ super(void 0, message || String(git));
106
+ this.git = git;
107
+ }
108
+ };
109
+ }
110
+ });
111
+
112
+ // src/lib/errors/task-configuration-error.ts
113
+ var TaskConfigurationError;
114
+ var init_task_configuration_error = __esm({
115
+ "src/lib/errors/task-configuration-error.ts"() {
116
+ "use strict";
117
+ init_git_error();
118
+ TaskConfigurationError = class extends GitError {
119
+ constructor(message) {
120
+ super(void 0, message);
121
+ }
122
+ };
123
+ }
124
+ });
125
+
126
+ // src/lib/utils/util.ts
127
+ import { exists, FOLDER } from "@kwsites/file-exists";
128
+ function asFunction(source) {
129
+ return typeof source === "function" ? source : NOOP;
130
+ }
131
+ function isUserFunction(source) {
132
+ return typeof source === "function" && source !== NOOP;
133
+ }
134
+ function splitOn(input, char) {
135
+ const index = input.indexOf(char);
136
+ if (index <= 0) {
137
+ return [input, ""];
138
+ }
139
+ return [input.substr(0, index), input.substr(index + 1)];
140
+ }
141
+ function first(input, offset = 0) {
142
+ return isArrayLike(input) && input.length > offset ? input[offset] : void 0;
143
+ }
144
+ function last(input, offset = 0) {
145
+ if (isArrayLike(input) && input.length > offset) {
146
+ return input[input.length - 1 - offset];
147
+ }
148
+ }
149
+ function isArrayLike(input) {
150
+ return !!(input && typeof input.length === "number");
151
+ }
152
+ function toLinesWithContent(input = "", trimmed2 = true, separator = "\n") {
153
+ return input.split(separator).reduce((output, line) => {
154
+ const lineContent = trimmed2 ? line.trim() : line;
155
+ if (lineContent) {
156
+ output.push(lineContent);
157
+ }
158
+ return output;
159
+ }, []);
160
+ }
161
+ function forEachLineWithContent(input, callback) {
162
+ return toLinesWithContent(input, true).map((line) => callback(line));
163
+ }
164
+ function folderExists(path) {
165
+ return exists(path, FOLDER);
166
+ }
167
+ function append(target, item) {
168
+ if (Array.isArray(target)) {
169
+ if (!target.includes(item)) {
170
+ target.push(item);
171
+ }
172
+ } else {
173
+ target.add(item);
174
+ }
175
+ return item;
176
+ }
177
+ function including(target, item) {
178
+ if (Array.isArray(target) && !target.includes(item)) {
179
+ target.push(item);
180
+ }
181
+ return target;
182
+ }
183
+ function remove(target, item) {
184
+ if (Array.isArray(target)) {
185
+ const index = target.indexOf(item);
186
+ if (index >= 0) {
187
+ target.splice(index, 1);
188
+ }
189
+ } else {
190
+ target.delete(item);
191
+ }
192
+ return item;
193
+ }
194
+ function asArray(source) {
195
+ return Array.isArray(source) ? source : [source];
196
+ }
197
+ function asCamelCase(str) {
198
+ return str.replace(/[\s-]+(.)/g, (_all, chr) => {
199
+ return chr.toUpperCase();
200
+ });
201
+ }
202
+ function asStringArray(source) {
203
+ return asArray(source).map(String);
204
+ }
205
+ function asNumber(source, onNaN = 0) {
206
+ if (source == null) {
207
+ return onNaN;
208
+ }
209
+ const num = parseInt(source, 10);
210
+ return isNaN(num) ? onNaN : num;
211
+ }
212
+ function prefixedArray(input, prefix) {
213
+ const output = [];
214
+ for (let i = 0, max = input.length; i < max; i++) {
215
+ output.push(prefix, input[i]);
216
+ }
217
+ return output;
218
+ }
219
+ function bufferToString(input) {
220
+ return (Array.isArray(input) ? Buffer.concat(input) : input).toString("utf-8");
221
+ }
222
+ function pick(source, properties) {
223
+ return Object.assign(
224
+ {},
225
+ ...properties.map((property) => property in source ? { [property]: source[property] } : {})
226
+ );
227
+ }
228
+ function delay(duration = 0) {
229
+ return new Promise((done) => setTimeout(done, duration));
230
+ }
231
+ function orVoid(input) {
232
+ if (input === false) {
233
+ return void 0;
234
+ }
235
+ return input;
236
+ }
237
+ var NULL, NOOP, objectToString;
238
+ var init_util = __esm({
239
+ "src/lib/utils/util.ts"() {
240
+ "use strict";
241
+ NULL = "\0";
242
+ NOOP = () => {
243
+ };
244
+ objectToString = Object.prototype.toString.call.bind(Object.prototype.toString);
245
+ }
246
+ });
247
+
248
+ // src/lib/utils/argument-filters.ts
249
+ function filterType(input, filter, def) {
250
+ if (filter(input)) {
251
+ return input;
252
+ }
253
+ return arguments.length > 2 ? def : void 0;
254
+ }
255
+ function filterPrimitives(input, omit) {
256
+ const type = isPathSpec(input) ? "string" : typeof input;
257
+ return /number|string|boolean/.test(type) && (!omit || !omit.includes(type));
258
+ }
259
+ function filterPlainObject(input) {
260
+ return !!input && objectToString(input) === "[object Object]";
261
+ }
262
+ function filterFunction(input) {
263
+ return typeof input === "function";
264
+ }
265
+ var filterArray, filterString, filterStringArray, filterStringOrStringArray, filterHasLength;
266
+ var init_argument_filters = __esm({
267
+ "src/lib/utils/argument-filters.ts"() {
268
+ "use strict";
269
+ init_util();
270
+ init_pathspec();
271
+ filterArray = (input) => {
272
+ return Array.isArray(input);
273
+ };
274
+ filterString = (input) => {
275
+ return typeof input === "string";
276
+ };
277
+ filterStringArray = (input) => {
278
+ return Array.isArray(input) && input.every(filterString);
279
+ };
280
+ filterStringOrStringArray = (input) => {
281
+ return filterString(input) || Array.isArray(input) && input.every(filterString);
282
+ };
283
+ filterHasLength = (input) => {
284
+ if (input == null || "number|boolean|function".includes(typeof input)) {
285
+ return false;
286
+ }
287
+ return Array.isArray(input) || typeof input === "string" || typeof input.length === "number";
288
+ };
289
+ }
290
+ });
291
+
292
+ // src/lib/utils/exit-codes.ts
293
+ var ExitCodes;
294
+ var init_exit_codes = __esm({
295
+ "src/lib/utils/exit-codes.ts"() {
296
+ "use strict";
297
+ ExitCodes = /* @__PURE__ */ ((ExitCodes2) => {
298
+ ExitCodes2[ExitCodes2["SUCCESS"] = 0] = "SUCCESS";
299
+ ExitCodes2[ExitCodes2["ERROR"] = 1] = "ERROR";
300
+ ExitCodes2[ExitCodes2["NOT_FOUND"] = -2] = "NOT_FOUND";
301
+ ExitCodes2[ExitCodes2["UNCLEAN"] = 128] = "UNCLEAN";
302
+ return ExitCodes2;
303
+ })(ExitCodes || {});
304
+ }
305
+ });
306
+
307
+ // src/lib/utils/git-output-streams.ts
308
+ var GitOutputStreams;
309
+ var init_git_output_streams = __esm({
310
+ "src/lib/utils/git-output-streams.ts"() {
311
+ "use strict";
312
+ GitOutputStreams = class {
313
+ constructor(stdOut, stdErr) {
314
+ this.stdOut = stdOut;
315
+ this.stdErr = stdErr;
316
+ }
317
+ asStrings() {
318
+ return new GitOutputStreams(this.stdOut.toString("utf8"), this.stdErr.toString("utf8"));
319
+ }
320
+ };
321
+ }
322
+ });
323
+
324
+ // src/lib/utils/line-parser.ts
325
+ var LineParser, RemoteLineParser;
326
+ var init_line_parser = __esm({
327
+ "src/lib/utils/line-parser.ts"() {
328
+ "use strict";
329
+ LineParser = class {
330
+ constructor(regExp, useMatches) {
331
+ this.matches = [];
332
+ this.parse = (line, target) => {
333
+ this.resetMatches();
334
+ if (!this._regExp.every((reg, index) => this.addMatch(reg, index, line(index)))) {
335
+ return false;
336
+ }
337
+ return this.useMatches(target, this.prepareMatches()) !== false;
338
+ };
339
+ this._regExp = Array.isArray(regExp) ? regExp : [regExp];
340
+ if (useMatches) {
341
+ this.useMatches = useMatches;
342
+ }
343
+ }
344
+ useMatches(target, match) {
345
+ throw new Error(`LineParser:useMatches not implemented`);
346
+ }
347
+ resetMatches() {
348
+ this.matches.length = 0;
349
+ }
350
+ prepareMatches() {
351
+ return this.matches;
352
+ }
353
+ addMatch(reg, index, line) {
354
+ const matched = line && reg.exec(line);
355
+ if (matched) {
356
+ this.pushMatch(index, matched);
357
+ }
358
+ return !!matched;
359
+ }
360
+ pushMatch(_index, matched) {
361
+ this.matches.push(...matched.slice(1));
362
+ }
363
+ };
364
+ RemoteLineParser = class extends LineParser {
365
+ addMatch(reg, index, line) {
366
+ return /^remote:\s/.test(String(line)) && super.addMatch(reg, index, line);
367
+ }
368
+ pushMatch(index, matched) {
369
+ if (index > 0 || matched.length > 1) {
370
+ super.pushMatch(index, matched);
371
+ }
372
+ }
373
+ };
374
+ }
375
+ });
376
+
377
+ // src/lib/utils/simple-git-options.ts
378
+ function createInstanceConfig(...options) {
379
+ const baseDir = process.cwd();
380
+ const config = Object.assign(
381
+ __spreadValues({ baseDir }, defaultOptions),
382
+ ...options.filter((o) => typeof o === "object" && o)
383
+ );
384
+ config.baseDir = config.baseDir || baseDir;
385
+ config.trimmed = config.trimmed === true;
386
+ return config;
387
+ }
388
+ var defaultOptions;
389
+ var init_simple_git_options = __esm({
390
+ "src/lib/utils/simple-git-options.ts"() {
391
+ "use strict";
392
+ defaultOptions = {
393
+ binary: "git",
394
+ maxConcurrentProcesses: 5,
395
+ config: [],
396
+ trimmed: false
397
+ };
398
+ }
399
+ });
400
+
401
+ // src/lib/utils/task-options.ts
402
+ function appendTaskOptions(options, commands = []) {
403
+ if (!filterPlainObject(options)) {
404
+ return commands;
405
+ }
406
+ return Object.keys(options).reduce((commands2, key) => {
407
+ const value = options[key];
408
+ if (isPathSpec(value)) {
409
+ commands2.push(value);
410
+ } else if (filterPrimitives(value, ["boolean"])) {
411
+ commands2.push(key + "=" + value);
412
+ } else {
413
+ commands2.push(key);
414
+ }
415
+ return commands2;
416
+ }, commands);
417
+ }
418
+ function getTrailingOptions(args, initialPrimitive = 0, objectOnly = false) {
419
+ const command = [];
420
+ for (let i = 0, max = initialPrimitive < 0 ? args.length : initialPrimitive; i < max; i++) {
421
+ if ("string|number".includes(typeof args[i])) {
422
+ command.push(String(args[i]));
423
+ }
424
+ }
425
+ appendTaskOptions(trailingOptionsArgument(args), command);
426
+ if (!objectOnly) {
427
+ command.push(...trailingArrayArgument(args));
428
+ }
429
+ return command;
430
+ }
431
+ function trailingArrayArgument(args) {
432
+ const hasTrailingCallback = typeof last(args) === "function";
433
+ return filterType(last(args, hasTrailingCallback ? 1 : 0), filterArray, []);
434
+ }
435
+ function trailingOptionsArgument(args) {
436
+ const hasTrailingCallback = filterFunction(last(args));
437
+ return filterType(last(args, hasTrailingCallback ? 1 : 0), filterPlainObject);
438
+ }
439
+ function trailingFunctionArgument(args, includeNoop = true) {
440
+ const callback = asFunction(last(args));
441
+ return includeNoop || isUserFunction(callback) ? callback : void 0;
442
+ }
443
+ var init_task_options = __esm({
444
+ "src/lib/utils/task-options.ts"() {
445
+ "use strict";
446
+ init_argument_filters();
447
+ init_util();
448
+ init_pathspec();
449
+ }
450
+ });
451
+
452
+ // src/lib/utils/task-parser.ts
453
+ function callTaskParser(parser4, streams) {
454
+ return parser4(streams.stdOut, streams.stdErr);
455
+ }
456
+ function parseStringResponse(result, parsers12, texts, trim = true) {
457
+ asArray(texts).forEach((text) => {
458
+ for (let lines = toLinesWithContent(text, trim), i = 0, max = lines.length; i < max; i++) {
459
+ const line = (offset = 0) => {
460
+ if (i + offset >= max) {
461
+ return;
462
+ }
463
+ return lines[i + offset];
464
+ };
465
+ parsers12.some(({ parse }) => parse(line, result));
466
+ }
467
+ });
468
+ return result;
469
+ }
470
+ var init_task_parser = __esm({
471
+ "src/lib/utils/task-parser.ts"() {
472
+ "use strict";
473
+ init_util();
474
+ }
475
+ });
476
+
477
+ // src/lib/utils/index.ts
478
+ var utils_exports = {};
479
+ __export(utils_exports, {
480
+ ExitCodes: () => ExitCodes,
481
+ GitOutputStreams: () => GitOutputStreams,
482
+ LineParser: () => LineParser,
483
+ NOOP: () => NOOP,
484
+ NULL: () => NULL,
485
+ RemoteLineParser: () => RemoteLineParser,
486
+ append: () => append,
487
+ appendTaskOptions: () => appendTaskOptions,
488
+ asArray: () => asArray,
489
+ asCamelCase: () => asCamelCase,
490
+ asFunction: () => asFunction,
491
+ asNumber: () => asNumber,
492
+ asStringArray: () => asStringArray,
493
+ bufferToString: () => bufferToString,
494
+ callTaskParser: () => callTaskParser,
495
+ createInstanceConfig: () => createInstanceConfig,
496
+ delay: () => delay,
497
+ filterArray: () => filterArray,
498
+ filterFunction: () => filterFunction,
499
+ filterHasLength: () => filterHasLength,
500
+ filterPlainObject: () => filterPlainObject,
501
+ filterPrimitives: () => filterPrimitives,
502
+ filterString: () => filterString,
503
+ filterStringArray: () => filterStringArray,
504
+ filterStringOrStringArray: () => filterStringOrStringArray,
505
+ filterType: () => filterType,
506
+ first: () => first,
507
+ folderExists: () => folderExists,
508
+ forEachLineWithContent: () => forEachLineWithContent,
509
+ getTrailingOptions: () => getTrailingOptions,
510
+ including: () => including,
511
+ isUserFunction: () => isUserFunction,
512
+ last: () => last,
513
+ objectToString: () => objectToString,
514
+ orVoid: () => orVoid,
515
+ parseStringResponse: () => parseStringResponse,
516
+ pick: () => pick,
517
+ prefixedArray: () => prefixedArray,
518
+ remove: () => remove,
519
+ splitOn: () => splitOn,
520
+ toLinesWithContent: () => toLinesWithContent,
521
+ trailingFunctionArgument: () => trailingFunctionArgument,
522
+ trailingOptionsArgument: () => trailingOptionsArgument
523
+ });
524
+ var init_utils = __esm({
525
+ "src/lib/utils/index.ts"() {
526
+ "use strict";
527
+ init_argument_filters();
528
+ init_exit_codes();
529
+ init_git_output_streams();
530
+ init_line_parser();
531
+ init_simple_git_options();
532
+ init_task_options();
533
+ init_task_parser();
534
+ init_util();
535
+ }
536
+ });
537
+
538
+ // src/lib/tasks/check-is-repo.ts
539
+ var check_is_repo_exports = {};
540
+ __export(check_is_repo_exports, {
541
+ CheckRepoActions: () => CheckRepoActions,
542
+ checkIsBareRepoTask: () => checkIsBareRepoTask,
543
+ checkIsRepoRootTask: () => checkIsRepoRootTask,
544
+ checkIsRepoTask: () => checkIsRepoTask
545
+ });
546
+ function checkIsRepoTask(action) {
547
+ switch (action) {
548
+ case "bare" /* BARE */:
549
+ return checkIsBareRepoTask();
550
+ case "root" /* IS_REPO_ROOT */:
551
+ return checkIsRepoRootTask();
552
+ }
553
+ const commands = ["rev-parse", "--is-inside-work-tree"];
554
+ return {
555
+ commands,
556
+ format: "utf-8",
557
+ onError,
558
+ parser
559
+ };
560
+ }
561
+ function checkIsRepoRootTask() {
562
+ const commands = ["rev-parse", "--git-dir"];
563
+ return {
564
+ commands,
565
+ format: "utf-8",
566
+ onError,
567
+ parser(path) {
568
+ return /^\.(git)?$/.test(path.trim());
569
+ }
570
+ };
571
+ }
572
+ function checkIsBareRepoTask() {
573
+ const commands = ["rev-parse", "--is-bare-repository"];
574
+ return {
575
+ commands,
576
+ format: "utf-8",
577
+ onError,
578
+ parser
579
+ };
580
+ }
581
+ function isNotRepoMessage(error) {
582
+ return /(Not a git repository|Kein Git-Repository)/i.test(String(error));
583
+ }
584
+ var CheckRepoActions, onError, parser;
585
+ var init_check_is_repo = __esm({
586
+ "src/lib/tasks/check-is-repo.ts"() {
587
+ "use strict";
588
+ init_utils();
589
+ CheckRepoActions = /* @__PURE__ */ ((CheckRepoActions2) => {
590
+ CheckRepoActions2["BARE"] = "bare";
591
+ CheckRepoActions2["IN_TREE"] = "tree";
592
+ CheckRepoActions2["IS_REPO_ROOT"] = "root";
593
+ return CheckRepoActions2;
594
+ })(CheckRepoActions || {});
595
+ onError = ({ exitCode }, error, done, fail) => {
596
+ if (exitCode === 128 /* UNCLEAN */ && isNotRepoMessage(error)) {
597
+ return done(Buffer.from("false"));
598
+ }
599
+ fail(error);
600
+ };
601
+ parser = (text) => {
602
+ return text.trim() === "true";
603
+ };
604
+ }
605
+ });
606
+
607
+ // src/lib/responses/CleanSummary.ts
608
+ function cleanSummaryParser(dryRun, text) {
609
+ const summary = new CleanResponse(dryRun);
610
+ const regexp = dryRun ? dryRunRemovalRegexp : removalRegexp;
611
+ toLinesWithContent(text).forEach((line) => {
612
+ const removed = line.replace(regexp, "");
613
+ summary.paths.push(removed);
614
+ (isFolderRegexp.test(removed) ? summary.folders : summary.files).push(removed);
615
+ });
616
+ return summary;
617
+ }
618
+ var CleanResponse, removalRegexp, dryRunRemovalRegexp, isFolderRegexp;
619
+ var init_CleanSummary = __esm({
620
+ "src/lib/responses/CleanSummary.ts"() {
621
+ "use strict";
622
+ init_utils();
623
+ CleanResponse = class {
624
+ constructor(dryRun) {
625
+ this.dryRun = dryRun;
626
+ this.paths = [];
627
+ this.files = [];
628
+ this.folders = [];
629
+ }
630
+ };
631
+ removalRegexp = /^[a-z]+\s*/i;
632
+ dryRunRemovalRegexp = /^[a-z]+\s+[a-z]+\s*/i;
633
+ isFolderRegexp = /\/$/;
634
+ }
635
+ });
636
+
637
+ // src/lib/tasks/task.ts
638
+ var task_exports = {};
639
+ __export(task_exports, {
640
+ EMPTY_COMMANDS: () => EMPTY_COMMANDS,
641
+ adhocExecTask: () => adhocExecTask,
642
+ configurationErrorTask: () => configurationErrorTask,
643
+ isBufferTask: () => isBufferTask,
644
+ isEmptyTask: () => isEmptyTask,
645
+ straightThroughBufferTask: () => straightThroughBufferTask,
646
+ straightThroughStringTask: () => straightThroughStringTask
647
+ });
648
+ function adhocExecTask(parser4) {
649
+ return {
650
+ commands: EMPTY_COMMANDS,
651
+ format: "empty",
652
+ parser: parser4
653
+ };
654
+ }
655
+ function configurationErrorTask(error) {
656
+ return {
657
+ commands: EMPTY_COMMANDS,
658
+ format: "empty",
659
+ parser() {
660
+ throw typeof error === "string" ? new TaskConfigurationError(error) : error;
661
+ }
662
+ };
663
+ }
664
+ function straightThroughStringTask(commands, trimmed2 = false) {
665
+ return {
666
+ commands,
667
+ format: "utf-8",
668
+ parser(text) {
669
+ return trimmed2 ? String(text).trim() : text;
670
+ }
671
+ };
672
+ }
673
+ function straightThroughBufferTask(commands) {
674
+ return {
675
+ commands,
676
+ format: "buffer",
677
+ parser(buffer) {
678
+ return buffer;
679
+ }
680
+ };
681
+ }
682
+ function isBufferTask(task) {
683
+ return task.format === "buffer";
684
+ }
685
+ function isEmptyTask(task) {
686
+ return task.format === "empty" || !task.commands.length;
687
+ }
688
+ var EMPTY_COMMANDS;
689
+ var init_task = __esm({
690
+ "src/lib/tasks/task.ts"() {
691
+ "use strict";
692
+ init_task_configuration_error();
693
+ EMPTY_COMMANDS = [];
694
+ }
695
+ });
696
+
697
+ // src/lib/tasks/clean.ts
698
+ var clean_exports = {};
699
+ __export(clean_exports, {
700
+ CONFIG_ERROR_INTERACTIVE_MODE: () => CONFIG_ERROR_INTERACTIVE_MODE,
701
+ CONFIG_ERROR_MODE_REQUIRED: () => CONFIG_ERROR_MODE_REQUIRED,
702
+ CONFIG_ERROR_UNKNOWN_OPTION: () => CONFIG_ERROR_UNKNOWN_OPTION,
703
+ CleanOptions: () => CleanOptions,
704
+ cleanTask: () => cleanTask,
705
+ cleanWithOptionsTask: () => cleanWithOptionsTask,
706
+ isCleanOptionsArray: () => isCleanOptionsArray
707
+ });
708
+ function cleanWithOptionsTask(mode, customArgs) {
709
+ const { cleanMode, options, valid } = getCleanOptions(mode);
710
+ if (!cleanMode) {
711
+ return configurationErrorTask(CONFIG_ERROR_MODE_REQUIRED);
712
+ }
713
+ if (!valid.options) {
714
+ return configurationErrorTask(CONFIG_ERROR_UNKNOWN_OPTION + JSON.stringify(mode));
715
+ }
716
+ options.push(...customArgs);
717
+ if (options.some(isInteractiveMode)) {
718
+ return configurationErrorTask(CONFIG_ERROR_INTERACTIVE_MODE);
719
+ }
720
+ return cleanTask(cleanMode, options);
721
+ }
722
+ function cleanTask(mode, customArgs) {
723
+ const commands = ["clean", `-${mode}`, ...customArgs];
724
+ return {
725
+ commands,
726
+ format: "utf-8",
727
+ parser(text) {
728
+ return cleanSummaryParser(mode === "n" /* DRY_RUN */, text);
729
+ }
730
+ };
731
+ }
732
+ function isCleanOptionsArray(input) {
733
+ return Array.isArray(input) && input.every((test) => CleanOptionValues.has(test));
734
+ }
735
+ function getCleanOptions(input) {
736
+ let cleanMode;
737
+ let options = [];
738
+ let valid = { cleanMode: false, options: true };
739
+ input.replace(/[^a-z]i/g, "").split("").forEach((char) => {
740
+ if (isCleanMode(char)) {
741
+ cleanMode = char;
742
+ valid.cleanMode = true;
743
+ } else {
744
+ valid.options = valid.options && isKnownOption(options[options.length] = `-${char}`);
745
+ }
746
+ });
747
+ return {
748
+ cleanMode,
749
+ options,
750
+ valid
751
+ };
752
+ }
753
+ function isCleanMode(cleanMode) {
754
+ return cleanMode === "f" /* FORCE */ || cleanMode === "n" /* DRY_RUN */;
755
+ }
756
+ function isKnownOption(option) {
757
+ return /^-[a-z]$/i.test(option) && CleanOptionValues.has(option.charAt(1));
758
+ }
759
+ function isInteractiveMode(option) {
760
+ if (/^-[^\-]/.test(option)) {
761
+ return option.indexOf("i") > 0;
762
+ }
763
+ return option === "--interactive";
764
+ }
765
+ var CONFIG_ERROR_INTERACTIVE_MODE, CONFIG_ERROR_MODE_REQUIRED, CONFIG_ERROR_UNKNOWN_OPTION, CleanOptions, CleanOptionValues;
766
+ var init_clean = __esm({
767
+ "src/lib/tasks/clean.ts"() {
768
+ "use strict";
769
+ init_CleanSummary();
770
+ init_utils();
771
+ init_task();
772
+ CONFIG_ERROR_INTERACTIVE_MODE = "Git clean interactive mode is not supported";
773
+ CONFIG_ERROR_MODE_REQUIRED = 'Git clean mode parameter ("n" or "f") is required';
774
+ CONFIG_ERROR_UNKNOWN_OPTION = "Git clean unknown option found in: ";
775
+ CleanOptions = /* @__PURE__ */ ((CleanOptions2) => {
776
+ CleanOptions2["DRY_RUN"] = "n";
777
+ CleanOptions2["FORCE"] = "f";
778
+ CleanOptions2["IGNORED_INCLUDED"] = "x";
779
+ CleanOptions2["IGNORED_ONLY"] = "X";
780
+ CleanOptions2["EXCLUDING"] = "e";
781
+ CleanOptions2["QUIET"] = "q";
782
+ CleanOptions2["RECURSIVE"] = "d";
783
+ return CleanOptions2;
784
+ })(CleanOptions || {});
785
+ CleanOptionValues = /* @__PURE__ */ new Set([
786
+ "i",
787
+ ...asStringArray(Object.values(CleanOptions))
788
+ ]);
789
+ }
790
+ });
791
+
792
+ // src/lib/responses/ConfigList.ts
793
+ function configListParser(text) {
794
+ const config = new ConfigList();
795
+ for (const item of configParser(text)) {
796
+ config.addValue(item.file, String(item.key), item.value);
797
+ }
798
+ return config;
799
+ }
800
+ function configGetParser(text, key) {
801
+ let value = null;
802
+ const values = [];
803
+ const scopes = /* @__PURE__ */ new Map();
804
+ for (const item of configParser(text, key)) {
805
+ if (item.key !== key) {
806
+ continue;
807
+ }
808
+ values.push(value = item.value);
809
+ if (!scopes.has(item.file)) {
810
+ scopes.set(item.file, []);
811
+ }
812
+ scopes.get(item.file).push(value);
813
+ }
814
+ return {
815
+ key,
816
+ paths: Array.from(scopes.keys()),
817
+ scopes,
818
+ value,
819
+ values
820
+ };
821
+ }
822
+ function configFilePath(filePath) {
823
+ return filePath.replace(/^(file):/, "");
824
+ }
825
+ function* configParser(text, requestedKey = null) {
826
+ const lines = text.split("\0");
827
+ for (let i = 0, max = lines.length - 1; i < max; ) {
828
+ const file = configFilePath(lines[i++]);
829
+ let value = lines[i++];
830
+ let key = requestedKey;
831
+ if (value.includes("\n")) {
832
+ const line = splitOn(value, "\n");
833
+ key = line[0];
834
+ value = line[1];
835
+ }
836
+ yield { file, key, value };
837
+ }
838
+ }
839
+ var ConfigList;
840
+ var init_ConfigList = __esm({
841
+ "src/lib/responses/ConfigList.ts"() {
842
+ "use strict";
843
+ init_utils();
844
+ ConfigList = class {
845
+ constructor() {
846
+ this.files = [];
847
+ this.values = /* @__PURE__ */ Object.create(null);
848
+ }
849
+ get all() {
850
+ if (!this._all) {
851
+ this._all = this.files.reduce((all, file) => {
852
+ return Object.assign(all, this.values[file]);
853
+ }, {});
854
+ }
855
+ return this._all;
856
+ }
857
+ addFile(file) {
858
+ if (!(file in this.values)) {
859
+ const latest = last(this.files);
860
+ this.values[file] = latest ? Object.create(this.values[latest]) : {};
861
+ this.files.push(file);
862
+ }
863
+ return this.values[file];
864
+ }
865
+ addValue(file, key, value) {
866
+ const values = this.addFile(file);
867
+ if (!values.hasOwnProperty(key)) {
868
+ values[key] = value;
869
+ } else if (Array.isArray(values[key])) {
870
+ values[key].push(value);
871
+ } else {
872
+ values[key] = [values[key], value];
873
+ }
874
+ this._all = void 0;
875
+ }
876
+ };
877
+ }
878
+ });
879
+
880
+ // src/lib/tasks/config.ts
881
+ function asConfigScope(scope, fallback) {
882
+ if (typeof scope === "string" && GitConfigScope.hasOwnProperty(scope)) {
883
+ return scope;
884
+ }
885
+ return fallback;
886
+ }
887
+ function addConfigTask(key, value, append2, scope) {
888
+ const commands = ["config", `--${scope}`];
889
+ if (append2) {
890
+ commands.push("--add");
891
+ }
892
+ commands.push(key, value);
893
+ return {
894
+ commands,
895
+ format: "utf-8",
896
+ parser(text) {
897
+ return text;
898
+ }
899
+ };
900
+ }
901
+ function getConfigTask(key, scope) {
902
+ const commands = ["config", "--null", "--show-origin", "--get-all", key];
903
+ if (scope) {
904
+ commands.splice(1, 0, `--${scope}`);
905
+ }
906
+ return {
907
+ commands,
908
+ format: "utf-8",
909
+ parser(text) {
910
+ return configGetParser(text, key);
911
+ }
912
+ };
913
+ }
914
+ function listConfigTask(scope) {
915
+ const commands = ["config", "--list", "--show-origin", "--null"];
916
+ if (scope) {
917
+ commands.push(`--${scope}`);
918
+ }
919
+ return {
920
+ commands,
921
+ format: "utf-8",
922
+ parser(text) {
923
+ return configListParser(text);
924
+ }
925
+ };
926
+ }
927
+ function config_default() {
928
+ return {
929
+ addConfig(key, value, ...rest) {
930
+ return this._runTask(
931
+ addConfigTask(
932
+ key,
933
+ value,
934
+ rest[0] === true,
935
+ asConfigScope(rest[1], "local" /* local */)
936
+ ),
937
+ trailingFunctionArgument(arguments)
938
+ );
939
+ },
940
+ getConfig(key, scope) {
941
+ return this._runTask(
942
+ getConfigTask(key, asConfigScope(scope, void 0)),
943
+ trailingFunctionArgument(arguments)
944
+ );
945
+ },
946
+ listConfig(...rest) {
947
+ return this._runTask(
948
+ listConfigTask(asConfigScope(rest[0], void 0)),
949
+ trailingFunctionArgument(arguments)
950
+ );
951
+ }
952
+ };
953
+ }
954
+ var GitConfigScope;
955
+ var init_config = __esm({
956
+ "src/lib/tasks/config.ts"() {
957
+ "use strict";
958
+ init_ConfigList();
959
+ init_utils();
960
+ GitConfigScope = /* @__PURE__ */ ((GitConfigScope2) => {
961
+ GitConfigScope2["system"] = "system";
962
+ GitConfigScope2["global"] = "global";
963
+ GitConfigScope2["local"] = "local";
964
+ GitConfigScope2["worktree"] = "worktree";
965
+ return GitConfigScope2;
966
+ })(GitConfigScope || {});
967
+ }
968
+ });
969
+
970
+ // src/lib/tasks/diff-name-status.ts
971
+ function isDiffNameStatus(input) {
972
+ return diffNameStatus.has(input);
973
+ }
974
+ var DiffNameStatus, diffNameStatus;
975
+ var init_diff_name_status = __esm({
976
+ "src/lib/tasks/diff-name-status.ts"() {
977
+ "use strict";
978
+ DiffNameStatus = /* @__PURE__ */ ((DiffNameStatus2) => {
979
+ DiffNameStatus2["ADDED"] = "A";
980
+ DiffNameStatus2["COPIED"] = "C";
981
+ DiffNameStatus2["DELETED"] = "D";
982
+ DiffNameStatus2["MODIFIED"] = "M";
983
+ DiffNameStatus2["RENAMED"] = "R";
984
+ DiffNameStatus2["CHANGED"] = "T";
985
+ DiffNameStatus2["UNMERGED"] = "U";
986
+ DiffNameStatus2["UNKNOWN"] = "X";
987
+ DiffNameStatus2["BROKEN"] = "B";
988
+ return DiffNameStatus2;
989
+ })(DiffNameStatus || {});
990
+ diffNameStatus = new Set(Object.values(DiffNameStatus));
991
+ }
992
+ });
993
+
994
+ // src/lib/tasks/grep.ts
995
+ function grepQueryBuilder(...params) {
996
+ return new GrepQuery().param(...params);
997
+ }
998
+ function parseGrep(grep) {
999
+ const paths = /* @__PURE__ */ new Set();
1000
+ const results = {};
1001
+ forEachLineWithContent(grep, (input) => {
1002
+ const [path, line, preview] = input.split(NULL);
1003
+ paths.add(path);
1004
+ (results[path] = results[path] || []).push({
1005
+ line: asNumber(line),
1006
+ path,
1007
+ preview
1008
+ });
1009
+ });
1010
+ return {
1011
+ paths,
1012
+ results
1013
+ };
1014
+ }
1015
+ function grep_default() {
1016
+ return {
1017
+ grep(searchTerm) {
1018
+ const then = trailingFunctionArgument(arguments);
1019
+ const options = getTrailingOptions(arguments);
1020
+ for (const option of disallowedOptions) {
1021
+ if (options.includes(option)) {
1022
+ return this._runTask(
1023
+ configurationErrorTask(`git.grep: use of "${option}" is not supported.`),
1024
+ then
1025
+ );
1026
+ }
1027
+ }
1028
+ if (typeof searchTerm === "string") {
1029
+ searchTerm = grepQueryBuilder().param(searchTerm);
1030
+ }
1031
+ const commands = ["grep", "--null", "-n", "--full-name", ...options, ...searchTerm];
1032
+ return this._runTask(
1033
+ {
1034
+ commands,
1035
+ format: "utf-8",
1036
+ parser(stdOut) {
1037
+ return parseGrep(stdOut);
1038
+ }
1039
+ },
1040
+ then
1041
+ );
1042
+ }
1043
+ };
1044
+ }
1045
+ var disallowedOptions, Query, _a, GrepQuery;
1046
+ var init_grep = __esm({
1047
+ "src/lib/tasks/grep.ts"() {
1048
+ "use strict";
1049
+ init_utils();
1050
+ init_task();
1051
+ disallowedOptions = ["-h"];
1052
+ Query = Symbol("grepQuery");
1053
+ GrepQuery = class {
1054
+ constructor() {
1055
+ this[_a] = [];
1056
+ }
1057
+ *[(_a = Query, Symbol.iterator)]() {
1058
+ for (const query of this[Query]) {
1059
+ yield query;
1060
+ }
1061
+ }
1062
+ and(...and) {
1063
+ and.length && this[Query].push("--and", "(", ...prefixedArray(and, "-e"), ")");
1064
+ return this;
1065
+ }
1066
+ param(...param) {
1067
+ this[Query].push(...prefixedArray(param, "-e"));
1068
+ return this;
1069
+ }
1070
+ };
1071
+ }
1072
+ });
1073
+
1074
+ // src/lib/tasks/reset.ts
1075
+ var reset_exports = {};
1076
+ __export(reset_exports, {
1077
+ ResetMode: () => ResetMode,
1078
+ getResetMode: () => getResetMode,
1079
+ resetTask: () => resetTask
1080
+ });
1081
+ function resetTask(mode, customArgs) {
1082
+ const commands = ["reset"];
1083
+ if (isValidResetMode(mode)) {
1084
+ commands.push(`--${mode}`);
1085
+ }
1086
+ commands.push(...customArgs);
1087
+ return straightThroughStringTask(commands);
1088
+ }
1089
+ function getResetMode(mode) {
1090
+ if (isValidResetMode(mode)) {
1091
+ return mode;
1092
+ }
1093
+ switch (typeof mode) {
1094
+ case "string":
1095
+ case "undefined":
1096
+ return "soft" /* SOFT */;
1097
+ }
1098
+ return;
1099
+ }
1100
+ function isValidResetMode(mode) {
1101
+ return ResetModes.includes(mode);
1102
+ }
1103
+ var ResetMode, ResetModes;
1104
+ var init_reset = __esm({
1105
+ "src/lib/tasks/reset.ts"() {
1106
+ "use strict";
1107
+ init_task();
1108
+ ResetMode = /* @__PURE__ */ ((ResetMode2) => {
1109
+ ResetMode2["MIXED"] = "mixed";
1110
+ ResetMode2["SOFT"] = "soft";
1111
+ ResetMode2["HARD"] = "hard";
1112
+ ResetMode2["MERGE"] = "merge";
1113
+ ResetMode2["KEEP"] = "keep";
1114
+ return ResetMode2;
1115
+ })(ResetMode || {});
1116
+ ResetModes = Array.from(Object.values(ResetMode));
1117
+ }
1118
+ });
1119
+
1120
+ // src/lib/git-logger.ts
1121
+ import debug from "debug";
1122
+ function createLog() {
1123
+ return debug("simple-git");
1124
+ }
1125
+ function prefixedLogger(to, prefix, forward) {
1126
+ if (!prefix || !String(prefix).replace(/\s*/, "")) {
1127
+ return !forward ? to : (message, ...args) => {
1128
+ to(message, ...args);
1129
+ forward(message, ...args);
1130
+ };
1131
+ }
1132
+ return (message, ...args) => {
1133
+ to(`%s ${message}`, prefix, ...args);
1134
+ if (forward) {
1135
+ forward(message, ...args);
1136
+ }
1137
+ };
1138
+ }
1139
+ function childLoggerName(name, childDebugger, { namespace: parentNamespace }) {
1140
+ if (typeof name === "string") {
1141
+ return name;
1142
+ }
1143
+ const childNamespace = childDebugger && childDebugger.namespace || "";
1144
+ if (childNamespace.startsWith(parentNamespace)) {
1145
+ return childNamespace.substr(parentNamespace.length + 1);
1146
+ }
1147
+ return childNamespace || parentNamespace;
1148
+ }
1149
+ function createLogger(label, verbose, initialStep, infoDebugger = createLog()) {
1150
+ const labelPrefix = label && `[${label}]` || "";
1151
+ const spawned = [];
1152
+ const debugDebugger = typeof verbose === "string" ? infoDebugger.extend(verbose) : verbose;
1153
+ const key = childLoggerName(filterType(verbose, filterString), debugDebugger, infoDebugger);
1154
+ return step(initialStep);
1155
+ function sibling(name, initial) {
1156
+ return append(
1157
+ spawned,
1158
+ createLogger(label, key.replace(/^[^:]+/, name), initial, infoDebugger)
1159
+ );
1160
+ }
1161
+ function step(phase) {
1162
+ const stepPrefix = phase && `[${phase}]` || "";
1163
+ const debug2 = debugDebugger && prefixedLogger(debugDebugger, stepPrefix) || NOOP;
1164
+ const info = prefixedLogger(infoDebugger, `${labelPrefix} ${stepPrefix}`, debug2);
1165
+ return Object.assign(debugDebugger ? debug2 : info, {
1166
+ label,
1167
+ sibling,
1168
+ info,
1169
+ step
1170
+ });
1171
+ }
1172
+ }
1173
+ var init_git_logger = __esm({
1174
+ "src/lib/git-logger.ts"() {
1175
+ "use strict";
1176
+ init_utils();
1177
+ debug.formatters.L = (value) => String(filterHasLength(value) ? value.length : "-");
1178
+ debug.formatters.B = (value) => {
1179
+ if (Buffer.isBuffer(value)) {
1180
+ return value.toString("utf8");
1181
+ }
1182
+ return objectToString(value);
1183
+ };
1184
+ }
1185
+ });
1186
+
1187
+ // src/lib/runners/tasks-pending-queue.ts
1188
+ var _TasksPendingQueue, TasksPendingQueue;
1189
+ var init_tasks_pending_queue = __esm({
1190
+ "src/lib/runners/tasks-pending-queue.ts"() {
1191
+ "use strict";
1192
+ init_git_error();
1193
+ init_git_logger();
1194
+ _TasksPendingQueue = class {
1195
+ constructor(logLabel = "GitExecutor") {
1196
+ this.logLabel = logLabel;
1197
+ this._queue = /* @__PURE__ */ new Map();
1198
+ }
1199
+ withProgress(task) {
1200
+ return this._queue.get(task);
1201
+ }
1202
+ createProgress(task) {
1203
+ const name = _TasksPendingQueue.getName(task.commands[0]);
1204
+ const logger = createLogger(this.logLabel, name);
1205
+ return {
1206
+ task,
1207
+ logger,
1208
+ name
1209
+ };
1210
+ }
1211
+ push(task) {
1212
+ const progress = this.createProgress(task);
1213
+ progress.logger("Adding task to the queue, commands = %o", task.commands);
1214
+ this._queue.set(task, progress);
1215
+ return progress;
1216
+ }
1217
+ fatal(err) {
1218
+ for (const [task, { logger }] of Array.from(this._queue.entries())) {
1219
+ if (task === err.task) {
1220
+ logger.info(`Failed %o`, err);
1221
+ logger(
1222
+ `Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`
1223
+ );
1224
+ } else {
1225
+ logger.info(
1226
+ `A fatal exception occurred in a previous task, the queue has been purged: %o`,
1227
+ err.message
1228
+ );
1229
+ }
1230
+ this.complete(task);
1231
+ }
1232
+ if (this._queue.size !== 0) {
1233
+ throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`);
1234
+ }
1235
+ }
1236
+ complete(task) {
1237
+ const progress = this.withProgress(task);
1238
+ if (progress) {
1239
+ this._queue.delete(task);
1240
+ }
1241
+ }
1242
+ attempt(task) {
1243
+ const progress = this.withProgress(task);
1244
+ if (!progress) {
1245
+ throw new GitError(void 0, "TasksPendingQueue: attempt called for an unknown task");
1246
+ }
1247
+ progress.logger("Starting task");
1248
+ return progress;
1249
+ }
1250
+ static getName(name = "empty") {
1251
+ return `task:${name}:${++_TasksPendingQueue.counter}`;
1252
+ }
1253
+ };
1254
+ TasksPendingQueue = _TasksPendingQueue;
1255
+ TasksPendingQueue.counter = 0;
1256
+ }
1257
+ });
1258
+
1259
+ // src/lib/runners/git-executor-chain.ts
1260
+ import { spawn } from "child_process";
1261
+ function pluginContext(task, commands) {
1262
+ return {
1263
+ method: first(task.commands) || "",
1264
+ commands
1265
+ };
1266
+ }
1267
+ function onErrorReceived(target, logger) {
1268
+ return (err) => {
1269
+ logger(`[ERROR] child process exception %o`, err);
1270
+ target.push(Buffer.from(String(err.stack), "ascii"));
1271
+ };
1272
+ }
1273
+ function onDataReceived(target, name, logger, output) {
1274
+ return (buffer) => {
1275
+ logger(`%s received %L bytes`, name, buffer);
1276
+ output(`%B`, buffer);
1277
+ target.push(buffer);
1278
+ };
1279
+ }
1280
+ var GitExecutorChain;
1281
+ var init_git_executor_chain = __esm({
1282
+ "src/lib/runners/git-executor-chain.ts"() {
1283
+ "use strict";
1284
+ init_git_error();
1285
+ init_task();
1286
+ init_utils();
1287
+ init_tasks_pending_queue();
1288
+ GitExecutorChain = class {
1289
+ constructor(_executor, _scheduler, _plugins) {
1290
+ this._executor = _executor;
1291
+ this._scheduler = _scheduler;
1292
+ this._plugins = _plugins;
1293
+ this._chain = Promise.resolve();
1294
+ this._queue = new TasksPendingQueue();
1295
+ }
1296
+ get cwd() {
1297
+ return this._cwd || this._executor.cwd;
1298
+ }
1299
+ set cwd(cwd) {
1300
+ this._cwd = cwd;
1301
+ }
1302
+ get env() {
1303
+ return this._executor.env;
1304
+ }
1305
+ get outputHandler() {
1306
+ return this._executor.outputHandler;
1307
+ }
1308
+ chain() {
1309
+ return this;
1310
+ }
1311
+ push(task) {
1312
+ this._queue.push(task);
1313
+ return this._chain = this._chain.then(() => this.attemptTask(task));
1314
+ }
1315
+ attemptTask(task) {
1316
+ return __async(this, null, function* () {
1317
+ const onScheduleComplete = yield this._scheduler.next();
1318
+ const onQueueComplete = () => this._queue.complete(task);
1319
+ try {
1320
+ const { logger } = this._queue.attempt(task);
1321
+ return yield isEmptyTask(task) ? this.attemptEmptyTask(task, logger) : this.attemptRemoteTask(task, logger);
1322
+ } catch (e) {
1323
+ throw this.onFatalException(task, e);
1324
+ } finally {
1325
+ onQueueComplete();
1326
+ onScheduleComplete();
1327
+ }
1328
+ });
1329
+ }
1330
+ onFatalException(task, e) {
1331
+ const gitError = e instanceof GitError ? Object.assign(e, { task }) : new GitError(task, e && String(e));
1332
+ this._chain = Promise.resolve();
1333
+ this._queue.fatal(gitError);
1334
+ return gitError;
1335
+ }
1336
+ attemptRemoteTask(task, logger) {
1337
+ return __async(this, null, function* () {
1338
+ const binary = this._plugins.exec("spawn.binary", "", pluginContext(task, task.commands));
1339
+ const args = this._plugins.exec(
1340
+ "spawn.args",
1341
+ [...task.commands],
1342
+ pluginContext(task, task.commands)
1343
+ );
1344
+ const raw = yield this.gitResponse(
1345
+ task,
1346
+ binary,
1347
+ args,
1348
+ this.outputHandler,
1349
+ logger.step("SPAWN")
1350
+ );
1351
+ const outputStreams = yield this.handleTaskData(task, args, raw, logger.step("HANDLE"));
1352
+ logger(`passing response to task's parser as a %s`, task.format);
1353
+ if (isBufferTask(task)) {
1354
+ return callTaskParser(task.parser, outputStreams);
1355
+ }
1356
+ return callTaskParser(task.parser, outputStreams.asStrings());
1357
+ });
1358
+ }
1359
+ attemptEmptyTask(task, logger) {
1360
+ return __async(this, null, function* () {
1361
+ logger(`empty task bypassing child process to call to task's parser`);
1362
+ return task.parser(this);
1363
+ });
1364
+ }
1365
+ handleTaskData(task, args, result, logger) {
1366
+ const { exitCode, rejection, stdOut, stdErr } = result;
1367
+ return new Promise((done, fail) => {
1368
+ logger(`Preparing to handle process response exitCode=%d stdOut=`, exitCode);
1369
+ const { error } = this._plugins.exec(
1370
+ "task.error",
1371
+ { error: rejection },
1372
+ __spreadValues(__spreadValues({}, pluginContext(task, args)), result)
1373
+ );
1374
+ if (error && task.onError) {
1375
+ logger.info(`exitCode=%s handling with custom error handler`);
1376
+ return task.onError(
1377
+ result,
1378
+ error,
1379
+ (newStdOut) => {
1380
+ logger.info(`custom error handler treated as success`);
1381
+ logger(`custom error returned a %s`, objectToString(newStdOut));
1382
+ done(
1383
+ new GitOutputStreams(
1384
+ Array.isArray(newStdOut) ? Buffer.concat(newStdOut) : newStdOut,
1385
+ Buffer.concat(stdErr)
1386
+ )
1387
+ );
1388
+ },
1389
+ fail
1390
+ );
1391
+ }
1392
+ if (error) {
1393
+ logger.info(
1394
+ `handling as error: exitCode=%s stdErr=%s rejection=%o`,
1395
+ exitCode,
1396
+ stdErr.length,
1397
+ rejection
1398
+ );
1399
+ return fail(error);
1400
+ }
1401
+ logger.info(`retrieving task output complete`);
1402
+ done(new GitOutputStreams(Buffer.concat(stdOut), Buffer.concat(stdErr)));
1403
+ });
1404
+ }
1405
+ gitResponse(task, command, args, outputHandler, logger) {
1406
+ return __async(this, null, function* () {
1407
+ const outputLogger = logger.sibling("output");
1408
+ const spawnOptions = this._plugins.exec(
1409
+ "spawn.options",
1410
+ {
1411
+ cwd: this.cwd,
1412
+ env: this.env,
1413
+ windowsHide: true
1414
+ },
1415
+ pluginContext(task, task.commands)
1416
+ );
1417
+ return new Promise((done) => {
1418
+ const stdOut = [];
1419
+ const stdErr = [];
1420
+ logger.info(`%s %o`, command, args);
1421
+ logger("%O", spawnOptions);
1422
+ let rejection = this._beforeSpawn(task, args);
1423
+ if (rejection) {
1424
+ return done({
1425
+ stdOut,
1426
+ stdErr,
1427
+ exitCode: 9901,
1428
+ rejection
1429
+ });
1430
+ }
1431
+ this._plugins.exec("spawn.before", void 0, __spreadProps(__spreadValues({}, pluginContext(task, args)), {
1432
+ kill(reason) {
1433
+ rejection = reason || rejection;
1434
+ }
1435
+ }));
1436
+ const spawned = spawn(command, args, spawnOptions);
1437
+ spawned.stdout.on(
1438
+ "data",
1439
+ onDataReceived(stdOut, "stdOut", logger, outputLogger.step("stdOut"))
1440
+ );
1441
+ spawned.stderr.on(
1442
+ "data",
1443
+ onDataReceived(stdErr, "stdErr", logger, outputLogger.step("stdErr"))
1444
+ );
1445
+ spawned.on("error", onErrorReceived(stdErr, logger));
1446
+ if (outputHandler) {
1447
+ logger(`Passing child process stdOut/stdErr to custom outputHandler`);
1448
+ outputHandler(command, spawned.stdout, spawned.stderr, [...args]);
1449
+ }
1450
+ this._plugins.exec("spawn.after", void 0, __spreadProps(__spreadValues({}, pluginContext(task, args)), {
1451
+ spawned,
1452
+ close(exitCode, reason) {
1453
+ done({
1454
+ stdOut,
1455
+ stdErr,
1456
+ exitCode,
1457
+ rejection: rejection || reason
1458
+ });
1459
+ },
1460
+ kill(reason) {
1461
+ if (spawned.killed) {
1462
+ return;
1463
+ }
1464
+ rejection = reason;
1465
+ spawned.kill("SIGINT");
1466
+ }
1467
+ }));
1468
+ });
1469
+ });
1470
+ }
1471
+ _beforeSpawn(task, args) {
1472
+ let rejection;
1473
+ this._plugins.exec("spawn.before", void 0, __spreadProps(__spreadValues({}, pluginContext(task, args)), {
1474
+ kill(reason) {
1475
+ rejection = reason || rejection;
1476
+ }
1477
+ }));
1478
+ return rejection;
1479
+ }
1480
+ };
1481
+ }
1482
+ });
1483
+
1484
+ // src/lib/runners/git-executor.ts
1485
+ var git_executor_exports = {};
1486
+ __export(git_executor_exports, {
1487
+ GitExecutor: () => GitExecutor
1488
+ });
1489
+ var GitExecutor;
1490
+ var init_git_executor = __esm({
1491
+ "src/lib/runners/git-executor.ts"() {
1492
+ "use strict";
1493
+ init_git_executor_chain();
1494
+ GitExecutor = class {
1495
+ constructor(cwd, _scheduler, _plugins) {
1496
+ this.cwd = cwd;
1497
+ this._scheduler = _scheduler;
1498
+ this._plugins = _plugins;
1499
+ this._chain = new GitExecutorChain(this, this._scheduler, this._plugins);
1500
+ }
1501
+ chain() {
1502
+ return new GitExecutorChain(this, this._scheduler, this._plugins);
1503
+ }
1504
+ push(task) {
1505
+ return this._chain.push(task);
1506
+ }
1507
+ };
1508
+ }
1509
+ });
1510
+
1511
+ // src/lib/task-callback.ts
1512
+ function taskCallback(task, response, callback = NOOP) {
1513
+ const onSuccess = (data) => {
1514
+ callback(null, data);
1515
+ };
1516
+ const onError2 = (err) => {
1517
+ if ((err == null ? void 0 : err.task) === task) {
1518
+ callback(
1519
+ err instanceof GitResponseError ? addDeprecationNoticeToError(err) : err,
1520
+ void 0
1521
+ );
1522
+ }
1523
+ };
1524
+ response.then(onSuccess, onError2);
1525
+ }
1526
+ function addDeprecationNoticeToError(err) {
1527
+ let log = (name) => {
1528
+ console.warn(
1529
+ `simple-git deprecation notice: accessing GitResponseError.${name} should be GitResponseError.git.${name}, this will no longer be available in version 3`
1530
+ );
1531
+ log = NOOP;
1532
+ };
1533
+ return Object.create(err, Object.getOwnPropertyNames(err.git).reduce(descriptorReducer, {}));
1534
+ function descriptorReducer(all, name) {
1535
+ if (name in err) {
1536
+ return all;
1537
+ }
1538
+ all[name] = {
1539
+ enumerable: false,
1540
+ configurable: false,
1541
+ get() {
1542
+ log(name);
1543
+ return err.git[name];
1544
+ }
1545
+ };
1546
+ return all;
1547
+ }
1548
+ }
1549
+ var init_task_callback = __esm({
1550
+ "src/lib/task-callback.ts"() {
1551
+ "use strict";
1552
+ init_git_response_error();
1553
+ init_utils();
1554
+ }
1555
+ });
1556
+
1557
+ // src/lib/tasks/change-working-directory.ts
1558
+ function changeWorkingDirectoryTask(directory, root) {
1559
+ return adhocExecTask((instance) => {
1560
+ if (!folderExists(directory)) {
1561
+ throw new Error(`Git.cwd: cannot change to non-directory "${directory}"`);
1562
+ }
1563
+ return (root || instance).cwd = directory;
1564
+ });
1565
+ }
1566
+ var init_change_working_directory = __esm({
1567
+ "src/lib/tasks/change-working-directory.ts"() {
1568
+ "use strict";
1569
+ init_utils();
1570
+ init_task();
1571
+ }
1572
+ });
1573
+
1574
+ // src/lib/tasks/checkout.ts
1575
+ function checkoutTask(args) {
1576
+ const commands = ["checkout", ...args];
1577
+ if (commands[1] === "-b" && commands.includes("-B")) {
1578
+ commands[1] = remove(commands, "-B");
1579
+ }
1580
+ return straightThroughStringTask(commands);
1581
+ }
1582
+ function checkout_default() {
1583
+ return {
1584
+ checkout() {
1585
+ return this._runTask(
1586
+ checkoutTask(getTrailingOptions(arguments, 1)),
1587
+ trailingFunctionArgument(arguments)
1588
+ );
1589
+ },
1590
+ checkoutBranch(branchName, startPoint) {
1591
+ return this._runTask(
1592
+ checkoutTask(["-b", branchName, startPoint, ...getTrailingOptions(arguments)]),
1593
+ trailingFunctionArgument(arguments)
1594
+ );
1595
+ },
1596
+ checkoutLocalBranch(branchName) {
1597
+ return this._runTask(
1598
+ checkoutTask(["-b", branchName, ...getTrailingOptions(arguments)]),
1599
+ trailingFunctionArgument(arguments)
1600
+ );
1601
+ }
1602
+ };
1603
+ }
1604
+ var init_checkout = __esm({
1605
+ "src/lib/tasks/checkout.ts"() {
1606
+ "use strict";
1607
+ init_utils();
1608
+ init_task();
1609
+ }
1610
+ });
1611
+
1612
+ // src/lib/tasks/count-objects.ts
1613
+ function countObjectsResponse() {
1614
+ return {
1615
+ count: 0,
1616
+ garbage: 0,
1617
+ inPack: 0,
1618
+ packs: 0,
1619
+ prunePackable: 0,
1620
+ size: 0,
1621
+ sizeGarbage: 0,
1622
+ sizePack: 0
1623
+ };
1624
+ }
1625
+ function count_objects_default() {
1626
+ return {
1627
+ countObjects() {
1628
+ return this._runTask({
1629
+ commands: ["count-objects", "--verbose"],
1630
+ format: "utf-8",
1631
+ parser(stdOut) {
1632
+ return parseStringResponse(countObjectsResponse(), [parser2], stdOut);
1633
+ }
1634
+ });
1635
+ }
1636
+ };
1637
+ }
1638
+ var parser2;
1639
+ var init_count_objects = __esm({
1640
+ "src/lib/tasks/count-objects.ts"() {
1641
+ "use strict";
1642
+ init_utils();
1643
+ parser2 = new LineParser(
1644
+ /([a-z-]+): (\d+)$/,
1645
+ (result, [key, value]) => {
1646
+ const property = asCamelCase(key);
1647
+ if (result.hasOwnProperty(property)) {
1648
+ result[property] = asNumber(value);
1649
+ }
1650
+ }
1651
+ );
1652
+ }
1653
+ });
1654
+
1655
+ // src/lib/parsers/parse-commit.ts
1656
+ function parseCommitResult(stdOut) {
1657
+ const result = {
1658
+ author: null,
1659
+ branch: "",
1660
+ commit: "",
1661
+ root: false,
1662
+ summary: {
1663
+ changes: 0,
1664
+ insertions: 0,
1665
+ deletions: 0
1666
+ }
1667
+ };
1668
+ return parseStringResponse(result, parsers, stdOut);
1669
+ }
1670
+ var parsers;
1671
+ var init_parse_commit = __esm({
1672
+ "src/lib/parsers/parse-commit.ts"() {
1673
+ "use strict";
1674
+ init_utils();
1675
+ parsers = [
1676
+ new LineParser(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/, (result, [branch, root, commit]) => {
1677
+ result.branch = branch;
1678
+ result.commit = commit;
1679
+ result.root = !!root;
1680
+ }),
1681
+ new LineParser(/\s*Author:\s(.+)/i, (result, [author]) => {
1682
+ const parts = author.split("<");
1683
+ const email = parts.pop();
1684
+ if (!email || !email.includes("@")) {
1685
+ return;
1686
+ }
1687
+ result.author = {
1688
+ email: email.substr(0, email.length - 1),
1689
+ name: parts.join("<").trim()
1690
+ };
1691
+ }),
1692
+ new LineParser(
1693
+ /(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,
1694
+ (result, [changes, insertions, deletions]) => {
1695
+ result.summary.changes = parseInt(changes, 10) || 0;
1696
+ result.summary.insertions = parseInt(insertions, 10) || 0;
1697
+ result.summary.deletions = parseInt(deletions, 10) || 0;
1698
+ }
1699
+ ),
1700
+ new LineParser(
1701
+ /^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,
1702
+ (result, [changes, lines, direction]) => {
1703
+ result.summary.changes = parseInt(changes, 10) || 0;
1704
+ const count = parseInt(lines, 10) || 0;
1705
+ if (direction === "-") {
1706
+ result.summary.deletions = count;
1707
+ } else if (direction === "+") {
1708
+ result.summary.insertions = count;
1709
+ }
1710
+ }
1711
+ )
1712
+ ];
1713
+ }
1714
+ });
1715
+
1716
+ // src/lib/tasks/commit.ts
1717
+ function commitTask(message, files, customArgs) {
1718
+ const commands = [
1719
+ "-c",
1720
+ "core.abbrev=40",
1721
+ "commit",
1722
+ ...prefixedArray(message, "-m"),
1723
+ ...files,
1724
+ ...customArgs
1725
+ ];
1726
+ return {
1727
+ commands,
1728
+ format: "utf-8",
1729
+ parser: parseCommitResult
1730
+ };
1731
+ }
1732
+ function commit_default() {
1733
+ return {
1734
+ commit(message, ...rest) {
1735
+ const next = trailingFunctionArgument(arguments);
1736
+ const task = rejectDeprecatedSignatures(message) || commitTask(
1737
+ asArray(message),
1738
+ asArray(filterType(rest[0], filterStringOrStringArray, [])),
1739
+ [...filterType(rest[1], filterArray, []), ...getTrailingOptions(arguments, 0, true)]
1740
+ );
1741
+ return this._runTask(task, next);
1742
+ }
1743
+ };
1744
+ function rejectDeprecatedSignatures(message) {
1745
+ return !filterStringOrStringArray(message) && configurationErrorTask(
1746
+ `git.commit: requires the commit message to be supplied as a string/string[]`
1747
+ );
1748
+ }
1749
+ }
1750
+ var init_commit = __esm({
1751
+ "src/lib/tasks/commit.ts"() {
1752
+ "use strict";
1753
+ init_parse_commit();
1754
+ init_utils();
1755
+ init_task();
1756
+ }
1757
+ });
1758
+
1759
+ // src/lib/tasks/first-commit.ts
1760
+ function first_commit_default() {
1761
+ return {
1762
+ firstCommit() {
1763
+ return this._runTask(
1764
+ straightThroughStringTask(["rev-list", "--max-parents=0", "HEAD"], true),
1765
+ trailingFunctionArgument(arguments)
1766
+ );
1767
+ }
1768
+ };
1769
+ }
1770
+ var init_first_commit = __esm({
1771
+ "src/lib/tasks/first-commit.ts"() {
1772
+ "use strict";
1773
+ init_utils();
1774
+ init_task();
1775
+ }
1776
+ });
1777
+
1778
+ // src/lib/tasks/hash-object.ts
1779
+ function hashObjectTask(filePath, write) {
1780
+ const commands = ["hash-object", filePath];
1781
+ if (write) {
1782
+ commands.push("-w");
1783
+ }
1784
+ return straightThroughStringTask(commands, true);
1785
+ }
1786
+ var init_hash_object = __esm({
1787
+ "src/lib/tasks/hash-object.ts"() {
1788
+ "use strict";
1789
+ init_task();
1790
+ }
1791
+ });
1792
+
1793
+ // src/lib/responses/InitSummary.ts
1794
+ function parseInit(bare, path, text) {
1795
+ const response = String(text).trim();
1796
+ let result;
1797
+ if (result = initResponseRegex.exec(response)) {
1798
+ return new InitSummary(bare, path, false, result[1]);
1799
+ }
1800
+ if (result = reInitResponseRegex.exec(response)) {
1801
+ return new InitSummary(bare, path, true, result[1]);
1802
+ }
1803
+ let gitDir = "";
1804
+ const tokens = response.split(" ");
1805
+ while (tokens.length) {
1806
+ const token = tokens.shift();
1807
+ if (token === "in") {
1808
+ gitDir = tokens.join(" ");
1809
+ break;
1810
+ }
1811
+ }
1812
+ return new InitSummary(bare, path, /^re/i.test(response), gitDir);
1813
+ }
1814
+ var InitSummary, initResponseRegex, reInitResponseRegex;
1815
+ var init_InitSummary = __esm({
1816
+ "src/lib/responses/InitSummary.ts"() {
1817
+ "use strict";
1818
+ InitSummary = class {
1819
+ constructor(bare, path, existing, gitDir) {
1820
+ this.bare = bare;
1821
+ this.path = path;
1822
+ this.existing = existing;
1823
+ this.gitDir = gitDir;
1824
+ }
1825
+ };
1826
+ initResponseRegex = /^Init.+ repository in (.+)$/;
1827
+ reInitResponseRegex = /^Rein.+ in (.+)$/;
1828
+ }
1829
+ });
1830
+
1831
+ // src/lib/tasks/init.ts
1832
+ function hasBareCommand(command) {
1833
+ return command.includes(bareCommand);
1834
+ }
1835
+ function initTask(bare = false, path, customArgs) {
1836
+ const commands = ["init", ...customArgs];
1837
+ if (bare && !hasBareCommand(commands)) {
1838
+ commands.splice(1, 0, bareCommand);
1839
+ }
1840
+ return {
1841
+ commands,
1842
+ format: "utf-8",
1843
+ parser(text) {
1844
+ return parseInit(commands.includes("--bare"), path, text);
1845
+ }
1846
+ };
1847
+ }
1848
+ var bareCommand;
1849
+ var init_init = __esm({
1850
+ "src/lib/tasks/init.ts"() {
1851
+ "use strict";
1852
+ init_InitSummary();
1853
+ bareCommand = "--bare";
1854
+ }
1855
+ });
1856
+
1857
+ // src/lib/args/log-format.ts
1858
+ function logFormatFromCommand(customArgs) {
1859
+ for (let i = 0; i < customArgs.length; i++) {
1860
+ const format = logFormatRegex.exec(customArgs[i]);
1861
+ if (format) {
1862
+ return `--${format[1]}`;
1863
+ }
1864
+ }
1865
+ return "" /* NONE */;
1866
+ }
1867
+ function isLogFormat(customArg) {
1868
+ return logFormatRegex.test(customArg);
1869
+ }
1870
+ var logFormatRegex;
1871
+ var init_log_format = __esm({
1872
+ "src/lib/args/log-format.ts"() {
1873
+ "use strict";
1874
+ logFormatRegex = /^--(stat|numstat|name-only|name-status)(=|$)/;
1875
+ }
1876
+ });
1877
+
1878
+ // src/lib/responses/DiffSummary.ts
1879
+ var DiffSummary;
1880
+ var init_DiffSummary = __esm({
1881
+ "src/lib/responses/DiffSummary.ts"() {
1882
+ "use strict";
1883
+ DiffSummary = class {
1884
+ constructor() {
1885
+ this.changed = 0;
1886
+ this.deletions = 0;
1887
+ this.insertions = 0;
1888
+ this.files = [];
1889
+ }
1890
+ };
1891
+ }
1892
+ });
1893
+
1894
+ // src/lib/parsers/parse-diff-summary.ts
1895
+ function getDiffParser(format = "" /* NONE */) {
1896
+ const parser4 = diffSummaryParsers[format];
1897
+ return (stdOut) => parseStringResponse(new DiffSummary(), parser4, stdOut, false);
1898
+ }
1899
+ var statParser, numStatParser, nameOnlyParser, nameStatusParser, diffSummaryParsers;
1900
+ var init_parse_diff_summary = __esm({
1901
+ "src/lib/parsers/parse-diff-summary.ts"() {
1902
+ "use strict";
1903
+ init_log_format();
1904
+ init_DiffSummary();
1905
+ init_diff_name_status();
1906
+ init_utils();
1907
+ statParser = [
1908
+ new LineParser(
1909
+ /^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,
1910
+ (result, [file, changes, alterations = ""]) => {
1911
+ result.files.push({
1912
+ file: file.trim(),
1913
+ changes: asNumber(changes),
1914
+ insertions: alterations.replace(/[^+]/g, "").length,
1915
+ deletions: alterations.replace(/[^-]/g, "").length,
1916
+ binary: false
1917
+ });
1918
+ }
1919
+ ),
1920
+ new LineParser(
1921
+ /^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,
1922
+ (result, [file, before, after]) => {
1923
+ result.files.push({
1924
+ file: file.trim(),
1925
+ before: asNumber(before),
1926
+ after: asNumber(after),
1927
+ binary: true
1928
+ });
1929
+ }
1930
+ ),
1931
+ new LineParser(
1932
+ /(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,
1933
+ (result, [changed, summary]) => {
1934
+ const inserted = /(\d+) i/.exec(summary);
1935
+ const deleted = /(\d+) d/.exec(summary);
1936
+ result.changed = asNumber(changed);
1937
+ result.insertions = asNumber(inserted == null ? void 0 : inserted[1]);
1938
+ result.deletions = asNumber(deleted == null ? void 0 : deleted[1]);
1939
+ }
1940
+ )
1941
+ ];
1942
+ numStatParser = [
1943
+ new LineParser(
1944
+ /(\d+)\t(\d+)\t(.+)$/,
1945
+ (result, [changesInsert, changesDelete, file]) => {
1946
+ const insertions = asNumber(changesInsert);
1947
+ const deletions = asNumber(changesDelete);
1948
+ result.changed++;
1949
+ result.insertions += insertions;
1950
+ result.deletions += deletions;
1951
+ result.files.push({
1952
+ file,
1953
+ changes: insertions + deletions,
1954
+ insertions,
1955
+ deletions,
1956
+ binary: false
1957
+ });
1958
+ }
1959
+ ),
1960
+ new LineParser(/-\t-\t(.+)$/, (result, [file]) => {
1961
+ result.changed++;
1962
+ result.files.push({
1963
+ file,
1964
+ after: 0,
1965
+ before: 0,
1966
+ binary: true
1967
+ });
1968
+ })
1969
+ ];
1970
+ nameOnlyParser = [
1971
+ new LineParser(/(.+)$/, (result, [file]) => {
1972
+ result.changed++;
1973
+ result.files.push({
1974
+ file,
1975
+ changes: 0,
1976
+ insertions: 0,
1977
+ deletions: 0,
1978
+ binary: false
1979
+ });
1980
+ })
1981
+ ];
1982
+ nameStatusParser = [
1983
+ new LineParser(
1984
+ /([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,
1985
+ (result, [status, _similarity, from, _to, to]) => {
1986
+ result.changed++;
1987
+ result.files.push({
1988
+ file: to != null ? to : from,
1989
+ changes: 0,
1990
+ status: orVoid(isDiffNameStatus(status) && status),
1991
+ insertions: 0,
1992
+ deletions: 0,
1993
+ binary: false
1994
+ });
1995
+ }
1996
+ )
1997
+ ];
1998
+ diffSummaryParsers = {
1999
+ ["" /* NONE */]: statParser,
2000
+ ["--stat" /* STAT */]: statParser,
2001
+ ["--numstat" /* NUM_STAT */]: numStatParser,
2002
+ ["--name-status" /* NAME_STATUS */]: nameStatusParser,
2003
+ ["--name-only" /* NAME_ONLY */]: nameOnlyParser
2004
+ };
2005
+ }
2006
+ });
2007
+
2008
+ // src/lib/parsers/parse-list-log-summary.ts
2009
+ function lineBuilder(tokens, fields) {
2010
+ return fields.reduce(
2011
+ (line, field, index) => {
2012
+ line[field] = tokens[index] || "";
2013
+ return line;
2014
+ },
2015
+ /* @__PURE__ */ Object.create({ diff: null })
2016
+ );
2017
+ }
2018
+ function createListLogSummaryParser(splitter = SPLITTER, fields = defaultFieldNames, logFormat = "" /* NONE */) {
2019
+ const parseDiffResult = getDiffParser(logFormat);
2020
+ return function(stdOut) {
2021
+ const all = toLinesWithContent(
2022
+ stdOut,
2023
+ true,
2024
+ START_BOUNDARY
2025
+ ).map(function(item) {
2026
+ const lineDetail = item.trim().split(COMMIT_BOUNDARY);
2027
+ const listLogLine = lineBuilder(
2028
+ lineDetail[0].trim().split(splitter),
2029
+ fields
2030
+ );
2031
+ if (lineDetail.length > 1 && !!lineDetail[1].trim()) {
2032
+ listLogLine.diff = parseDiffResult(lineDetail[1]);
2033
+ }
2034
+ return listLogLine;
2035
+ });
2036
+ return {
2037
+ all,
2038
+ latest: all.length && all[0] || null,
2039
+ total: all.length
2040
+ };
2041
+ };
2042
+ }
2043
+ var START_BOUNDARY, COMMIT_BOUNDARY, SPLITTER, defaultFieldNames;
2044
+ var init_parse_list_log_summary = __esm({
2045
+ "src/lib/parsers/parse-list-log-summary.ts"() {
2046
+ "use strict";
2047
+ init_utils();
2048
+ init_parse_diff_summary();
2049
+ init_log_format();
2050
+ START_BOUNDARY = "\xF2\xF2\xF2\xF2\xF2\xF2 ";
2051
+ COMMIT_BOUNDARY = " \xF2\xF2";
2052
+ SPLITTER = " \xF2 ";
2053
+ defaultFieldNames = ["hash", "date", "message", "refs", "author_name", "author_email"];
2054
+ }
2055
+ });
2056
+
2057
+ // src/lib/tasks/diff.ts
2058
+ var diff_exports = {};
2059
+ __export(diff_exports, {
2060
+ diffSummaryTask: () => diffSummaryTask,
2061
+ validateLogFormatConfig: () => validateLogFormatConfig
2062
+ });
2063
+ function diffSummaryTask(customArgs) {
2064
+ let logFormat = logFormatFromCommand(customArgs);
2065
+ const commands = ["diff"];
2066
+ if (logFormat === "" /* NONE */) {
2067
+ logFormat = "--stat" /* STAT */;
2068
+ commands.push("--stat=4096");
2069
+ }
2070
+ commands.push(...customArgs);
2071
+ return validateLogFormatConfig(commands) || {
2072
+ commands,
2073
+ format: "utf-8",
2074
+ parser: getDiffParser(logFormat)
2075
+ };
2076
+ }
2077
+ function validateLogFormatConfig(customArgs) {
2078
+ const flags = customArgs.filter(isLogFormat);
2079
+ if (flags.length > 1) {
2080
+ return configurationErrorTask(
2081
+ `Summary flags are mutually exclusive - pick one of ${flags.join(",")}`
2082
+ );
2083
+ }
2084
+ if (flags.length && customArgs.includes("-z")) {
2085
+ return configurationErrorTask(
2086
+ `Summary flag ${flags} parsing is not compatible with null termination option '-z'`
2087
+ );
2088
+ }
2089
+ }
2090
+ var init_diff = __esm({
2091
+ "src/lib/tasks/diff.ts"() {
2092
+ "use strict";
2093
+ init_log_format();
2094
+ init_parse_diff_summary();
2095
+ init_task();
2096
+ }
2097
+ });
2098
+
2099
+ // src/lib/tasks/log.ts
2100
+ function prettyFormat(format, splitter) {
2101
+ const fields = [];
2102
+ const formatStr = [];
2103
+ Object.keys(format).forEach((field) => {
2104
+ fields.push(field);
2105
+ formatStr.push(String(format[field]));
2106
+ });
2107
+ return [fields, formatStr.join(splitter)];
2108
+ }
2109
+ function userOptions(input) {
2110
+ return Object.keys(input).reduce((out, key) => {
2111
+ if (!(key in excludeOptions)) {
2112
+ out[key] = input[key];
2113
+ }
2114
+ return out;
2115
+ }, {});
2116
+ }
2117
+ function parseLogOptions(opt = {}, customArgs = []) {
2118
+ const splitter = filterType(opt.splitter, filterString, SPLITTER);
2119
+ const format = !filterPrimitives(opt.format) && opt.format ? opt.format : {
2120
+ hash: "%H",
2121
+ date: opt.strictDate === false ? "%ai" : "%aI",
2122
+ message: "%s",
2123
+ refs: "%D",
2124
+ body: opt.multiLine ? "%B" : "%b",
2125
+ author_name: opt.mailMap !== false ? "%aN" : "%an",
2126
+ author_email: opt.mailMap !== false ? "%aE" : "%ae"
2127
+ };
2128
+ const [fields, formatStr] = prettyFormat(format, splitter);
2129
+ const suffix = [];
2130
+ const command = [
2131
+ `--pretty=format:${START_BOUNDARY}${formatStr}${COMMIT_BOUNDARY}`,
2132
+ ...customArgs
2133
+ ];
2134
+ const maxCount = opt.n || opt["max-count"] || opt.maxCount;
2135
+ if (maxCount) {
2136
+ command.push(`--max-count=${maxCount}`);
2137
+ }
2138
+ if (opt.from || opt.to) {
2139
+ const rangeOperator = opt.symmetric !== false ? "..." : "..";
2140
+ suffix.push(`${opt.from || ""}${rangeOperator}${opt.to || ""}`);
2141
+ }
2142
+ if (filterString(opt.file)) {
2143
+ command.push("--follow", pathspec(opt.file));
2144
+ }
2145
+ appendTaskOptions(userOptions(opt), command);
2146
+ return {
2147
+ fields,
2148
+ splitter,
2149
+ commands: [...command, ...suffix]
2150
+ };
2151
+ }
2152
+ function logTask(splitter, fields, customArgs) {
2153
+ const parser4 = createListLogSummaryParser(splitter, fields, logFormatFromCommand(customArgs));
2154
+ return {
2155
+ commands: ["log", ...customArgs],
2156
+ format: "utf-8",
2157
+ parser: parser4
2158
+ };
2159
+ }
2160
+ function log_default() {
2161
+ return {
2162
+ log(...rest) {
2163
+ const next = trailingFunctionArgument(arguments);
2164
+ const options = parseLogOptions(
2165
+ trailingOptionsArgument(arguments),
2166
+ filterType(arguments[0], filterArray)
2167
+ );
2168
+ const task = rejectDeprecatedSignatures(...rest) || validateLogFormatConfig(options.commands) || createLogTask(options);
2169
+ return this._runTask(task, next);
2170
+ }
2171
+ };
2172
+ function createLogTask(options) {
2173
+ return logTask(options.splitter, options.fields, options.commands);
2174
+ }
2175
+ function rejectDeprecatedSignatures(from, to) {
2176
+ return filterString(from) && filterString(to) && configurationErrorTask(
2177
+ `git.log(string, string) should be replaced with git.log({ from: string, to: string })`
2178
+ );
2179
+ }
2180
+ }
2181
+ var excludeOptions;
2182
+ var init_log = __esm({
2183
+ "src/lib/tasks/log.ts"() {
2184
+ "use strict";
2185
+ init_log_format();
2186
+ init_pathspec();
2187
+ init_parse_list_log_summary();
2188
+ init_utils();
2189
+ init_task();
2190
+ init_diff();
2191
+ excludeOptions = /* @__PURE__ */ ((excludeOptions2) => {
2192
+ excludeOptions2[excludeOptions2["--pretty"] = 0] = "--pretty";
2193
+ excludeOptions2[excludeOptions2["max-count"] = 1] = "max-count";
2194
+ excludeOptions2[excludeOptions2["maxCount"] = 2] = "maxCount";
2195
+ excludeOptions2[excludeOptions2["n"] = 3] = "n";
2196
+ excludeOptions2[excludeOptions2["file"] = 4] = "file";
2197
+ excludeOptions2[excludeOptions2["format"] = 5] = "format";
2198
+ excludeOptions2[excludeOptions2["from"] = 6] = "from";
2199
+ excludeOptions2[excludeOptions2["to"] = 7] = "to";
2200
+ excludeOptions2[excludeOptions2["splitter"] = 8] = "splitter";
2201
+ excludeOptions2[excludeOptions2["symmetric"] = 9] = "symmetric";
2202
+ excludeOptions2[excludeOptions2["mailMap"] = 10] = "mailMap";
2203
+ excludeOptions2[excludeOptions2["multiLine"] = 11] = "multiLine";
2204
+ excludeOptions2[excludeOptions2["strictDate"] = 12] = "strictDate";
2205
+ return excludeOptions2;
2206
+ })(excludeOptions || {});
2207
+ }
2208
+ });
2209
+
2210
+ // src/lib/responses/MergeSummary.ts
2211
+ var MergeSummaryConflict, MergeSummaryDetail;
2212
+ var init_MergeSummary = __esm({
2213
+ "src/lib/responses/MergeSummary.ts"() {
2214
+ "use strict";
2215
+ MergeSummaryConflict = class {
2216
+ constructor(reason, file = null, meta) {
2217
+ this.reason = reason;
2218
+ this.file = file;
2219
+ this.meta = meta;
2220
+ }
2221
+ toString() {
2222
+ return `${this.file}:${this.reason}`;
2223
+ }
2224
+ };
2225
+ MergeSummaryDetail = class {
2226
+ constructor() {
2227
+ this.conflicts = [];
2228
+ this.merges = [];
2229
+ this.result = "success";
2230
+ }
2231
+ get failed() {
2232
+ return this.conflicts.length > 0;
2233
+ }
2234
+ get reason() {
2235
+ return this.result;
2236
+ }
2237
+ toString() {
2238
+ if (this.conflicts.length) {
2239
+ return `CONFLICTS: ${this.conflicts.join(", ")}`;
2240
+ }
2241
+ return "OK";
2242
+ }
2243
+ };
2244
+ }
2245
+ });
2246
+
2247
+ // src/lib/responses/PullSummary.ts
2248
+ var PullSummary, PullFailedSummary;
2249
+ var init_PullSummary = __esm({
2250
+ "src/lib/responses/PullSummary.ts"() {
2251
+ "use strict";
2252
+ PullSummary = class {
2253
+ constructor() {
2254
+ this.remoteMessages = {
2255
+ all: []
2256
+ };
2257
+ this.created = [];
2258
+ this.deleted = [];
2259
+ this.files = [];
2260
+ this.deletions = {};
2261
+ this.insertions = {};
2262
+ this.summary = {
2263
+ changes: 0,
2264
+ deletions: 0,
2265
+ insertions: 0
2266
+ };
2267
+ }
2268
+ };
2269
+ PullFailedSummary = class {
2270
+ constructor() {
2271
+ this.remote = "";
2272
+ this.hash = {
2273
+ local: "",
2274
+ remote: ""
2275
+ };
2276
+ this.branch = {
2277
+ local: "",
2278
+ remote: ""
2279
+ };
2280
+ this.message = "";
2281
+ }
2282
+ toString() {
2283
+ return this.message;
2284
+ }
2285
+ };
2286
+ }
2287
+ });
2288
+
2289
+ // src/lib/parsers/parse-remote-objects.ts
2290
+ function objectEnumerationResult(remoteMessages) {
2291
+ return remoteMessages.objects = remoteMessages.objects || {
2292
+ compressing: 0,
2293
+ counting: 0,
2294
+ enumerating: 0,
2295
+ packReused: 0,
2296
+ reused: { count: 0, delta: 0 },
2297
+ total: { count: 0, delta: 0 }
2298
+ };
2299
+ }
2300
+ function asObjectCount(source) {
2301
+ const count = /^\s*(\d+)/.exec(source);
2302
+ const delta = /delta (\d+)/i.exec(source);
2303
+ return {
2304
+ count: asNumber(count && count[1] || "0"),
2305
+ delta: asNumber(delta && delta[1] || "0")
2306
+ };
2307
+ }
2308
+ var remoteMessagesObjectParsers;
2309
+ var init_parse_remote_objects = __esm({
2310
+ "src/lib/parsers/parse-remote-objects.ts"() {
2311
+ "use strict";
2312
+ init_utils();
2313
+ remoteMessagesObjectParsers = [
2314
+ new RemoteLineParser(
2315
+ /^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,
2316
+ (result, [action, count]) => {
2317
+ const key = action.toLowerCase();
2318
+ const enumeration = objectEnumerationResult(result.remoteMessages);
2319
+ Object.assign(enumeration, { [key]: asNumber(count) });
2320
+ }
2321
+ ),
2322
+ new RemoteLineParser(
2323
+ /^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,
2324
+ (result, [action, count]) => {
2325
+ const key = action.toLowerCase();
2326
+ const enumeration = objectEnumerationResult(result.remoteMessages);
2327
+ Object.assign(enumeration, { [key]: asNumber(count) });
2328
+ }
2329
+ ),
2330
+ new RemoteLineParser(
2331
+ /total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,
2332
+ (result, [total, reused, packReused]) => {
2333
+ const objects = objectEnumerationResult(result.remoteMessages);
2334
+ objects.total = asObjectCount(total);
2335
+ objects.reused = asObjectCount(reused);
2336
+ objects.packReused = asNumber(packReused);
2337
+ }
2338
+ )
2339
+ ];
2340
+ }
2341
+ });
2342
+
2343
+ // src/lib/parsers/parse-remote-messages.ts
2344
+ function parseRemoteMessages(_stdOut, stdErr) {
2345
+ return parseStringResponse({ remoteMessages: new RemoteMessageSummary() }, parsers2, stdErr);
2346
+ }
2347
+ var parsers2, RemoteMessageSummary;
2348
+ var init_parse_remote_messages = __esm({
2349
+ "src/lib/parsers/parse-remote-messages.ts"() {
2350
+ "use strict";
2351
+ init_utils();
2352
+ init_parse_remote_objects();
2353
+ parsers2 = [
2354
+ new RemoteLineParser(/^remote:\s*(.+)$/, (result, [text]) => {
2355
+ result.remoteMessages.all.push(text.trim());
2356
+ return false;
2357
+ }),
2358
+ ...remoteMessagesObjectParsers,
2359
+ new RemoteLineParser(
2360
+ [/create a (?:pull|merge) request/i, /\s(https?:\/\/\S+)$/],
2361
+ (result, [pullRequestUrl]) => {
2362
+ result.remoteMessages.pullRequestUrl = pullRequestUrl;
2363
+ }
2364
+ ),
2365
+ new RemoteLineParser(
2366
+ [/found (\d+) vulnerabilities.+\(([^)]+)\)/i, /\s(https?:\/\/\S+)$/],
2367
+ (result, [count, summary, url]) => {
2368
+ result.remoteMessages.vulnerabilities = {
2369
+ count: asNumber(count),
2370
+ summary,
2371
+ url
2372
+ };
2373
+ }
2374
+ )
2375
+ ];
2376
+ RemoteMessageSummary = class {
2377
+ constructor() {
2378
+ this.all = [];
2379
+ }
2380
+ };
2381
+ }
2382
+ });
2383
+
2384
+ // src/lib/parsers/parse-pull.ts
2385
+ function parsePullErrorResult(stdOut, stdErr) {
2386
+ const pullError = parseStringResponse(new PullFailedSummary(), errorParsers, [stdOut, stdErr]);
2387
+ return pullError.message && pullError;
2388
+ }
2389
+ var FILE_UPDATE_REGEX, SUMMARY_REGEX, ACTION_REGEX, parsers3, errorParsers, parsePullDetail, parsePullResult;
2390
+ var init_parse_pull = __esm({
2391
+ "src/lib/parsers/parse-pull.ts"() {
2392
+ "use strict";
2393
+ init_PullSummary();
2394
+ init_utils();
2395
+ init_parse_remote_messages();
2396
+ FILE_UPDATE_REGEX = /^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;
2397
+ SUMMARY_REGEX = /(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;
2398
+ ACTION_REGEX = /^(create|delete) mode \d+ (.+)/;
2399
+ parsers3 = [
2400
+ new LineParser(FILE_UPDATE_REGEX, (result, [file, insertions, deletions]) => {
2401
+ result.files.push(file);
2402
+ if (insertions) {
2403
+ result.insertions[file] = insertions.length;
2404
+ }
2405
+ if (deletions) {
2406
+ result.deletions[file] = deletions.length;
2407
+ }
2408
+ }),
2409
+ new LineParser(SUMMARY_REGEX, (result, [changes, , insertions, , deletions]) => {
2410
+ if (insertions !== void 0 || deletions !== void 0) {
2411
+ result.summary.changes = +changes || 0;
2412
+ result.summary.insertions = +insertions || 0;
2413
+ result.summary.deletions = +deletions || 0;
2414
+ return true;
2415
+ }
2416
+ return false;
2417
+ }),
2418
+ new LineParser(ACTION_REGEX, (result, [action, file]) => {
2419
+ append(result.files, file);
2420
+ append(action === "create" ? result.created : result.deleted, file);
2421
+ })
2422
+ ];
2423
+ errorParsers = [
2424
+ new LineParser(/^from\s(.+)$/i, (result, [remote]) => void (result.remote = remote)),
2425
+ new LineParser(/^fatal:\s(.+)$/, (result, [message]) => void (result.message = message)),
2426
+ new LineParser(
2427
+ /([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,
2428
+ (result, [hashLocal, hashRemote, branchLocal, branchRemote]) => {
2429
+ result.branch.local = branchLocal;
2430
+ result.hash.local = hashLocal;
2431
+ result.branch.remote = branchRemote;
2432
+ result.hash.remote = hashRemote;
2433
+ }
2434
+ )
2435
+ ];
2436
+ parsePullDetail = (stdOut, stdErr) => {
2437
+ return parseStringResponse(new PullSummary(), parsers3, [stdOut, stdErr]);
2438
+ };
2439
+ parsePullResult = (stdOut, stdErr) => {
2440
+ return Object.assign(
2441
+ new PullSummary(),
2442
+ parsePullDetail(stdOut, stdErr),
2443
+ parseRemoteMessages(stdOut, stdErr)
2444
+ );
2445
+ };
2446
+ }
2447
+ });
2448
+
2449
+ // src/lib/parsers/parse-merge.ts
2450
+ var parsers4, parseMergeResult, parseMergeDetail;
2451
+ var init_parse_merge = __esm({
2452
+ "src/lib/parsers/parse-merge.ts"() {
2453
+ "use strict";
2454
+ init_MergeSummary();
2455
+ init_utils();
2456
+ init_parse_pull();
2457
+ parsers4 = [
2458
+ new LineParser(/^Auto-merging\s+(.+)$/, (summary, [autoMerge]) => {
2459
+ summary.merges.push(autoMerge);
2460
+ }),
2461
+ new LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/, (summary, [reason, file]) => {
2462
+ summary.conflicts.push(new MergeSummaryConflict(reason, file));
2463
+ }),
2464
+ new LineParser(
2465
+ /^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,
2466
+ (summary, [reason, file, deleteRef]) => {
2467
+ summary.conflicts.push(new MergeSummaryConflict(reason, file, { deleteRef }));
2468
+ }
2469
+ ),
2470
+ new LineParser(/^CONFLICT\s+\((.+)\):/, (summary, [reason]) => {
2471
+ summary.conflicts.push(new MergeSummaryConflict(reason, null));
2472
+ }),
2473
+ new LineParser(/^Automatic merge failed;\s+(.+)$/, (summary, [result]) => {
2474
+ summary.result = result;
2475
+ })
2476
+ ];
2477
+ parseMergeResult = (stdOut, stdErr) => {
2478
+ return Object.assign(parseMergeDetail(stdOut, stdErr), parsePullResult(stdOut, stdErr));
2479
+ };
2480
+ parseMergeDetail = (stdOut) => {
2481
+ return parseStringResponse(new MergeSummaryDetail(), parsers4, stdOut);
2482
+ };
2483
+ }
2484
+ });
2485
+
2486
+ // src/lib/tasks/merge.ts
2487
+ function mergeTask(customArgs) {
2488
+ if (!customArgs.length) {
2489
+ return configurationErrorTask("Git.merge requires at least one option");
2490
+ }
2491
+ return {
2492
+ commands: ["merge", ...customArgs],
2493
+ format: "utf-8",
2494
+ parser(stdOut, stdErr) {
2495
+ const merge = parseMergeResult(stdOut, stdErr);
2496
+ if (merge.failed) {
2497
+ throw new GitResponseError(merge);
2498
+ }
2499
+ return merge;
2500
+ }
2501
+ };
2502
+ }
2503
+ var init_merge = __esm({
2504
+ "src/lib/tasks/merge.ts"() {
2505
+ "use strict";
2506
+ init_git_response_error();
2507
+ init_parse_merge();
2508
+ init_task();
2509
+ }
2510
+ });
2511
+
2512
+ // src/lib/parsers/parse-push.ts
2513
+ function pushResultPushedItem(local, remote, status) {
2514
+ const deleted = status.includes("deleted");
2515
+ const tag = status.includes("tag") || /^refs\/tags/.test(local);
2516
+ const alreadyUpdated = !status.includes("new");
2517
+ return {
2518
+ deleted,
2519
+ tag,
2520
+ branch: !tag,
2521
+ new: !alreadyUpdated,
2522
+ alreadyUpdated,
2523
+ local,
2524
+ remote
2525
+ };
2526
+ }
2527
+ var parsers5, parsePushResult, parsePushDetail;
2528
+ var init_parse_push = __esm({
2529
+ "src/lib/parsers/parse-push.ts"() {
2530
+ "use strict";
2531
+ init_utils();
2532
+ init_parse_remote_messages();
2533
+ parsers5 = [
2534
+ new LineParser(/^Pushing to (.+)$/, (result, [repo]) => {
2535
+ result.repo = repo;
2536
+ }),
2537
+ new LineParser(/^updating local tracking ref '(.+)'/, (result, [local]) => {
2538
+ result.ref = __spreadProps(__spreadValues({}, result.ref || {}), {
2539
+ local
2540
+ });
2541
+ }),
2542
+ new LineParser(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/, (result, [local, remote, type]) => {
2543
+ result.pushed.push(pushResultPushedItem(local, remote, type));
2544
+ }),
2545
+ new LineParser(
2546
+ /^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,
2547
+ (result, [local, remote, remoteName]) => {
2548
+ result.branch = __spreadProps(__spreadValues({}, result.branch || {}), {
2549
+ local,
2550
+ remote,
2551
+ remoteName
2552
+ });
2553
+ }
2554
+ ),
2555
+ new LineParser(
2556
+ /^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,
2557
+ (result, [local, remote, from, to]) => {
2558
+ result.update = {
2559
+ head: {
2560
+ local,
2561
+ remote
2562
+ },
2563
+ hash: {
2564
+ from,
2565
+ to
2566
+ }
2567
+ };
2568
+ }
2569
+ )
2570
+ ];
2571
+ parsePushResult = (stdOut, stdErr) => {
2572
+ const pushDetail = parsePushDetail(stdOut, stdErr);
2573
+ const responseDetail = parseRemoteMessages(stdOut, stdErr);
2574
+ return __spreadValues(__spreadValues({}, pushDetail), responseDetail);
2575
+ };
2576
+ parsePushDetail = (stdOut, stdErr) => {
2577
+ return parseStringResponse({ pushed: [] }, parsers5, [stdOut, stdErr]);
2578
+ };
2579
+ }
2580
+ });
2581
+
2582
+ // src/lib/tasks/push.ts
2583
+ var push_exports = {};
2584
+ __export(push_exports, {
2585
+ pushTagsTask: () => pushTagsTask,
2586
+ pushTask: () => pushTask
2587
+ });
2588
+ function pushTagsTask(ref = {}, customArgs) {
2589
+ append(customArgs, "--tags");
2590
+ return pushTask(ref, customArgs);
2591
+ }
2592
+ function pushTask(ref = {}, customArgs) {
2593
+ const commands = ["push", ...customArgs];
2594
+ if (ref.branch) {
2595
+ commands.splice(1, 0, ref.branch);
2596
+ }
2597
+ if (ref.remote) {
2598
+ commands.splice(1, 0, ref.remote);
2599
+ }
2600
+ remove(commands, "-v");
2601
+ append(commands, "--verbose");
2602
+ append(commands, "--porcelain");
2603
+ return {
2604
+ commands,
2605
+ format: "utf-8",
2606
+ parser: parsePushResult
2607
+ };
2608
+ }
2609
+ var init_push = __esm({
2610
+ "src/lib/tasks/push.ts"() {
2611
+ "use strict";
2612
+ init_parse_push();
2613
+ init_utils();
2614
+ }
2615
+ });
2616
+
2617
+ // src/lib/tasks/show.ts
2618
+ function show_default() {
2619
+ return {
2620
+ showBuffer() {
2621
+ const commands = ["show", ...getTrailingOptions(arguments, 1)];
2622
+ if (!commands.includes("--binary")) {
2623
+ commands.splice(1, 0, "--binary");
2624
+ }
2625
+ return this._runTask(
2626
+ straightThroughBufferTask(commands),
2627
+ trailingFunctionArgument(arguments)
2628
+ );
2629
+ },
2630
+ show() {
2631
+ const commands = ["show", ...getTrailingOptions(arguments, 1)];
2632
+ return this._runTask(
2633
+ straightThroughStringTask(commands),
2634
+ trailingFunctionArgument(arguments)
2635
+ );
2636
+ }
2637
+ };
2638
+ }
2639
+ var init_show = __esm({
2640
+ "src/lib/tasks/show.ts"() {
2641
+ "use strict";
2642
+ init_utils();
2643
+ init_task();
2644
+ }
2645
+ });
2646
+
2647
+ // src/lib/responses/FileStatusSummary.ts
2648
+ var fromPathRegex, FileStatusSummary;
2649
+ var init_FileStatusSummary = __esm({
2650
+ "src/lib/responses/FileStatusSummary.ts"() {
2651
+ "use strict";
2652
+ fromPathRegex = /^(.+) -> (.+)$/;
2653
+ FileStatusSummary = class {
2654
+ constructor(path, index, working_dir) {
2655
+ this.path = path;
2656
+ this.index = index;
2657
+ this.working_dir = working_dir;
2658
+ if ("R" === index + working_dir) {
2659
+ const detail = fromPathRegex.exec(path) || [null, path, path];
2660
+ this.from = detail[1] || "";
2661
+ this.path = detail[2] || "";
2662
+ }
2663
+ }
2664
+ };
2665
+ }
2666
+ });
2667
+
2668
+ // src/lib/responses/StatusSummary.ts
2669
+ function renamedFile(line) {
2670
+ const [to, from] = line.split(NULL);
2671
+ return {
2672
+ from: from || to,
2673
+ to
2674
+ };
2675
+ }
2676
+ function parser3(indexX, indexY, handler) {
2677
+ return [`${indexX}${indexY}`, handler];
2678
+ }
2679
+ function conflicts(indexX, ...indexY) {
2680
+ return indexY.map((y) => parser3(indexX, y, (result, file) => append(result.conflicted, file)));
2681
+ }
2682
+ function splitLine(result, lineStr) {
2683
+ const trimmed2 = lineStr.trim();
2684
+ switch (" ") {
2685
+ case trimmed2.charAt(2):
2686
+ return data(trimmed2.charAt(0), trimmed2.charAt(1), trimmed2.substr(3));
2687
+ case trimmed2.charAt(1):
2688
+ return data(" " /* NONE */, trimmed2.charAt(0), trimmed2.substr(2));
2689
+ default:
2690
+ return;
2691
+ }
2692
+ function data(index, workingDir, path) {
2693
+ const raw = `${index}${workingDir}`;
2694
+ const handler = parsers6.get(raw);
2695
+ if (handler) {
2696
+ handler(result, path);
2697
+ }
2698
+ if (raw !== "##" && raw !== "!!") {
2699
+ result.files.push(new FileStatusSummary(path.replace(/\0.+$/, ""), index, workingDir));
2700
+ }
2701
+ }
2702
+ }
2703
+ var StatusSummary, parsers6, parseStatusSummary;
2704
+ var init_StatusSummary = __esm({
2705
+ "src/lib/responses/StatusSummary.ts"() {
2706
+ "use strict";
2707
+ init_utils();
2708
+ init_FileStatusSummary();
2709
+ StatusSummary = class {
2710
+ constructor() {
2711
+ this.not_added = [];
2712
+ this.conflicted = [];
2713
+ this.created = [];
2714
+ this.deleted = [];
2715
+ this.ignored = void 0;
2716
+ this.modified = [];
2717
+ this.renamed = [];
2718
+ this.files = [];
2719
+ this.staged = [];
2720
+ this.ahead = 0;
2721
+ this.behind = 0;
2722
+ this.current = null;
2723
+ this.tracking = null;
2724
+ this.detached = false;
2725
+ this.isClean = () => {
2726
+ return !this.files.length;
2727
+ };
2728
+ }
2729
+ };
2730
+ parsers6 = new Map([
2731
+ parser3(
2732
+ " " /* NONE */,
2733
+ "A" /* ADDED */,
2734
+ (result, file) => append(result.created, file)
2735
+ ),
2736
+ parser3(
2737
+ " " /* NONE */,
2738
+ "D" /* DELETED */,
2739
+ (result, file) => append(result.deleted, file)
2740
+ ),
2741
+ parser3(
2742
+ " " /* NONE */,
2743
+ "M" /* MODIFIED */,
2744
+ (result, file) => append(result.modified, file)
2745
+ ),
2746
+ parser3(
2747
+ "A" /* ADDED */,
2748
+ " " /* NONE */,
2749
+ (result, file) => append(result.created, file) && append(result.staged, file)
2750
+ ),
2751
+ parser3(
2752
+ "A" /* ADDED */,
2753
+ "M" /* MODIFIED */,
2754
+ (result, file) => append(result.created, file) && append(result.staged, file) && append(result.modified, file)
2755
+ ),
2756
+ parser3(
2757
+ "D" /* DELETED */,
2758
+ " " /* NONE */,
2759
+ (result, file) => append(result.deleted, file) && append(result.staged, file)
2760
+ ),
2761
+ parser3(
2762
+ "M" /* MODIFIED */,
2763
+ " " /* NONE */,
2764
+ (result, file) => append(result.modified, file) && append(result.staged, file)
2765
+ ),
2766
+ parser3(
2767
+ "M" /* MODIFIED */,
2768
+ "M" /* MODIFIED */,
2769
+ (result, file) => append(result.modified, file) && append(result.staged, file)
2770
+ ),
2771
+ parser3("R" /* RENAMED */, " " /* NONE */, (result, file) => {
2772
+ append(result.renamed, renamedFile(file));
2773
+ }),
2774
+ parser3("R" /* RENAMED */, "M" /* MODIFIED */, (result, file) => {
2775
+ const renamed = renamedFile(file);
2776
+ append(result.renamed, renamed);
2777
+ append(result.modified, renamed.to);
2778
+ }),
2779
+ parser3("!" /* IGNORED */, "!" /* IGNORED */, (_result, _file) => {
2780
+ append(_result.ignored = _result.ignored || [], _file);
2781
+ }),
2782
+ parser3(
2783
+ "?" /* UNTRACKED */,
2784
+ "?" /* UNTRACKED */,
2785
+ (result, file) => append(result.not_added, file)
2786
+ ),
2787
+ ...conflicts("A" /* ADDED */, "A" /* ADDED */, "U" /* UNMERGED */),
2788
+ ...conflicts(
2789
+ "D" /* DELETED */,
2790
+ "D" /* DELETED */,
2791
+ "U" /* UNMERGED */
2792
+ ),
2793
+ ...conflicts(
2794
+ "U" /* UNMERGED */,
2795
+ "A" /* ADDED */,
2796
+ "D" /* DELETED */,
2797
+ "U" /* UNMERGED */
2798
+ ),
2799
+ [
2800
+ "##",
2801
+ (result, line) => {
2802
+ const aheadReg = /ahead (\d+)/;
2803
+ const behindReg = /behind (\d+)/;
2804
+ const currentReg = /^(.+?(?=(?:\.{3}|\s|$)))/;
2805
+ const trackingReg = /\.{3}(\S*)/;
2806
+ const onEmptyBranchReg = /\son\s([\S]+)$/;
2807
+ let regexResult;
2808
+ regexResult = aheadReg.exec(line);
2809
+ result.ahead = regexResult && +regexResult[1] || 0;
2810
+ regexResult = behindReg.exec(line);
2811
+ result.behind = regexResult && +regexResult[1] || 0;
2812
+ regexResult = currentReg.exec(line);
2813
+ result.current = regexResult && regexResult[1];
2814
+ regexResult = trackingReg.exec(line);
2815
+ result.tracking = regexResult && regexResult[1];
2816
+ regexResult = onEmptyBranchReg.exec(line);
2817
+ result.current = regexResult && regexResult[1] || result.current;
2818
+ result.detached = /\(no branch\)/.test(line);
2819
+ }
2820
+ ]
2821
+ ]);
2822
+ parseStatusSummary = function(text) {
2823
+ const lines = text.split(NULL);
2824
+ const status = new StatusSummary();
2825
+ for (let i = 0, l = lines.length; i < l; ) {
2826
+ let line = lines[i++].trim();
2827
+ if (!line) {
2828
+ continue;
2829
+ }
2830
+ if (line.charAt(0) === "R" /* RENAMED */) {
2831
+ line += NULL + (lines[i++] || "");
2832
+ }
2833
+ splitLine(status, line);
2834
+ }
2835
+ return status;
2836
+ };
2837
+ }
2838
+ });
2839
+
2840
+ // src/lib/tasks/status.ts
2841
+ function statusTask(customArgs) {
2842
+ const commands = [
2843
+ "status",
2844
+ "--porcelain",
2845
+ "-b",
2846
+ "-u",
2847
+ "--null",
2848
+ ...customArgs.filter((arg) => !ignoredOptions.includes(arg))
2849
+ ];
2850
+ return {
2851
+ format: "utf-8",
2852
+ commands,
2853
+ parser(text) {
2854
+ return parseStatusSummary(text);
2855
+ }
2856
+ };
2857
+ }
2858
+ var ignoredOptions;
2859
+ var init_status = __esm({
2860
+ "src/lib/tasks/status.ts"() {
2861
+ "use strict";
2862
+ init_StatusSummary();
2863
+ ignoredOptions = ["--null", "-z"];
2864
+ }
2865
+ });
2866
+
2867
+ // src/lib/tasks/version.ts
2868
+ function versionResponse(major = 0, minor = 0, patch = 0, agent = "", installed = true) {
2869
+ return Object.defineProperty(
2870
+ {
2871
+ major,
2872
+ minor,
2873
+ patch,
2874
+ agent,
2875
+ installed
2876
+ },
2877
+ "toString",
2878
+ {
2879
+ value() {
2880
+ return `${this.major}.${this.minor}.${this.patch}`;
2881
+ },
2882
+ configurable: false,
2883
+ enumerable: false
2884
+ }
2885
+ );
2886
+ }
2887
+ function notInstalledResponse() {
2888
+ return versionResponse(0, 0, 0, "", false);
2889
+ }
2890
+ function version_default() {
2891
+ return {
2892
+ version() {
2893
+ return this._runTask({
2894
+ commands: ["--version"],
2895
+ format: "utf-8",
2896
+ parser: versionParser,
2897
+ onError(result, error, done, fail) {
2898
+ if (result.exitCode === -2 /* NOT_FOUND */) {
2899
+ return done(Buffer.from(NOT_INSTALLED));
2900
+ }
2901
+ fail(error);
2902
+ }
2903
+ });
2904
+ }
2905
+ };
2906
+ }
2907
+ function versionParser(stdOut) {
2908
+ if (stdOut === NOT_INSTALLED) {
2909
+ return notInstalledResponse();
2910
+ }
2911
+ return parseStringResponse(versionResponse(0, 0, 0, stdOut), parsers7, stdOut);
2912
+ }
2913
+ var NOT_INSTALLED, parsers7;
2914
+ var init_version = __esm({
2915
+ "src/lib/tasks/version.ts"() {
2916
+ "use strict";
2917
+ init_utils();
2918
+ NOT_INSTALLED = "installed=false";
2919
+ parsers7 = [
2920
+ new LineParser(
2921
+ /version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,
2922
+ (result, [major, minor, patch, agent = ""]) => {
2923
+ Object.assign(
2924
+ result,
2925
+ versionResponse(asNumber(major), asNumber(minor), asNumber(patch), agent)
2926
+ );
2927
+ }
2928
+ ),
2929
+ new LineParser(
2930
+ /version (\d+)\.(\d+)\.(\D+)(.+)?$/,
2931
+ (result, [major, minor, patch, agent = ""]) => {
2932
+ Object.assign(result, versionResponse(asNumber(major), asNumber(minor), patch, agent));
2933
+ }
2934
+ )
2935
+ ];
2936
+ }
2937
+ });
2938
+
2939
+ // src/lib/simple-git-api.ts
2940
+ var simple_git_api_exports = {};
2941
+ __export(simple_git_api_exports, {
2942
+ SimpleGitApi: () => SimpleGitApi
2943
+ });
2944
+ var SimpleGitApi;
2945
+ var init_simple_git_api = __esm({
2946
+ "src/lib/simple-git-api.ts"() {
2947
+ "use strict";
2948
+ init_task_callback();
2949
+ init_change_working_directory();
2950
+ init_checkout();
2951
+ init_count_objects();
2952
+ init_commit();
2953
+ init_config();
2954
+ init_first_commit();
2955
+ init_grep();
2956
+ init_hash_object();
2957
+ init_init();
2958
+ init_log();
2959
+ init_merge();
2960
+ init_push();
2961
+ init_show();
2962
+ init_status();
2963
+ init_task();
2964
+ init_version();
2965
+ init_utils();
2966
+ SimpleGitApi = class {
2967
+ constructor(_executor) {
2968
+ this._executor = _executor;
2969
+ }
2970
+ _runTask(task, then) {
2971
+ const chain = this._executor.chain();
2972
+ const promise = chain.push(task);
2973
+ if (then) {
2974
+ taskCallback(task, promise, then);
2975
+ }
2976
+ return Object.create(this, {
2977
+ then: { value: promise.then.bind(promise) },
2978
+ catch: { value: promise.catch.bind(promise) },
2979
+ _executor: { value: chain }
2980
+ });
2981
+ }
2982
+ add(files) {
2983
+ return this._runTask(
2984
+ straightThroughStringTask(["add", ...asArray(files)]),
2985
+ trailingFunctionArgument(arguments)
2986
+ );
2987
+ }
2988
+ cwd(directory) {
2989
+ const next = trailingFunctionArgument(arguments);
2990
+ if (typeof directory === "string") {
2991
+ return this._runTask(changeWorkingDirectoryTask(directory, this._executor), next);
2992
+ }
2993
+ if (typeof (directory == null ? void 0 : directory.path) === "string") {
2994
+ return this._runTask(
2995
+ changeWorkingDirectoryTask(
2996
+ directory.path,
2997
+ directory.root && this._executor || void 0
2998
+ ),
2999
+ next
3000
+ );
3001
+ }
3002
+ return this._runTask(
3003
+ configurationErrorTask("Git.cwd: workingDirectory must be supplied as a string"),
3004
+ next
3005
+ );
3006
+ }
3007
+ hashObject(path, write) {
3008
+ return this._runTask(
3009
+ hashObjectTask(path, write === true),
3010
+ trailingFunctionArgument(arguments)
3011
+ );
3012
+ }
3013
+ init(bare) {
3014
+ return this._runTask(
3015
+ initTask(bare === true, this._executor.cwd, getTrailingOptions(arguments)),
3016
+ trailingFunctionArgument(arguments)
3017
+ );
3018
+ }
3019
+ merge() {
3020
+ return this._runTask(
3021
+ mergeTask(getTrailingOptions(arguments)),
3022
+ trailingFunctionArgument(arguments)
3023
+ );
3024
+ }
3025
+ mergeFromTo(remote, branch) {
3026
+ if (!(filterString(remote) && filterString(branch))) {
3027
+ return this._runTask(
3028
+ configurationErrorTask(
3029
+ `Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings`
3030
+ )
3031
+ );
3032
+ }
3033
+ return this._runTask(
3034
+ mergeTask([remote, branch, ...getTrailingOptions(arguments)]),
3035
+ trailingFunctionArgument(arguments, false)
3036
+ );
3037
+ }
3038
+ outputHandler(handler) {
3039
+ this._executor.outputHandler = handler;
3040
+ return this;
3041
+ }
3042
+ push() {
3043
+ const task = pushTask(
3044
+ {
3045
+ remote: filterType(arguments[0], filterString),
3046
+ branch: filterType(arguments[1], filterString)
3047
+ },
3048
+ getTrailingOptions(arguments)
3049
+ );
3050
+ return this._runTask(task, trailingFunctionArgument(arguments));
3051
+ }
3052
+ stash() {
3053
+ return this._runTask(
3054
+ straightThroughStringTask(["stash", ...getTrailingOptions(arguments)]),
3055
+ trailingFunctionArgument(arguments)
3056
+ );
3057
+ }
3058
+ status() {
3059
+ return this._runTask(
3060
+ statusTask(getTrailingOptions(arguments)),
3061
+ trailingFunctionArgument(arguments)
3062
+ );
3063
+ }
3064
+ };
3065
+ Object.assign(
3066
+ SimpleGitApi.prototype,
3067
+ checkout_default(),
3068
+ commit_default(),
3069
+ config_default(),
3070
+ count_objects_default(),
3071
+ first_commit_default(),
3072
+ grep_default(),
3073
+ log_default(),
3074
+ show_default(),
3075
+ version_default()
3076
+ );
3077
+ }
3078
+ });
3079
+
3080
+ // src/lib/runners/scheduler.ts
3081
+ var scheduler_exports = {};
3082
+ __export(scheduler_exports, {
3083
+ Scheduler: () => Scheduler
3084
+ });
3085
+ import { createDeferred } from "@kwsites/promise-deferred";
3086
+ var createScheduledTask, Scheduler;
3087
+ var init_scheduler = __esm({
3088
+ "src/lib/runners/scheduler.ts"() {
3089
+ "use strict";
3090
+ init_utils();
3091
+ init_git_logger();
3092
+ createScheduledTask = (() => {
3093
+ let id = 0;
3094
+ return () => {
3095
+ id++;
3096
+ const { promise, done } = createDeferred();
3097
+ return {
3098
+ promise,
3099
+ done,
3100
+ id
3101
+ };
3102
+ };
3103
+ })();
3104
+ Scheduler = class {
3105
+ constructor(concurrency = 2) {
3106
+ this.concurrency = concurrency;
3107
+ this.logger = createLogger("", "scheduler");
3108
+ this.pending = [];
3109
+ this.running = [];
3110
+ this.logger(`Constructed, concurrency=%s`, concurrency);
3111
+ }
3112
+ schedule() {
3113
+ if (!this.pending.length || this.running.length >= this.concurrency) {
3114
+ this.logger(
3115
+ `Schedule attempt ignored, pending=%s running=%s concurrency=%s`,
3116
+ this.pending.length,
3117
+ this.running.length,
3118
+ this.concurrency
3119
+ );
3120
+ return;
3121
+ }
3122
+ const task = append(this.running, this.pending.shift());
3123
+ this.logger(`Attempting id=%s`, task.id);
3124
+ task.done(() => {
3125
+ this.logger(`Completing id=`, task.id);
3126
+ remove(this.running, task);
3127
+ this.schedule();
3128
+ });
3129
+ }
3130
+ next() {
3131
+ const { promise, id } = append(this.pending, createScheduledTask());
3132
+ this.logger(`Scheduling id=%s`, id);
3133
+ this.schedule();
3134
+ return promise;
3135
+ }
3136
+ };
3137
+ }
3138
+ });
3139
+
3140
+ // src/lib/tasks/apply-patch.ts
3141
+ var apply_patch_exports = {};
3142
+ __export(apply_patch_exports, {
3143
+ applyPatchTask: () => applyPatchTask
3144
+ });
3145
+ function applyPatchTask(patches, customArgs) {
3146
+ return straightThroughStringTask(["apply", ...customArgs, ...patches]);
3147
+ }
3148
+ var init_apply_patch = __esm({
3149
+ "src/lib/tasks/apply-patch.ts"() {
3150
+ "use strict";
3151
+ init_task();
3152
+ }
3153
+ });
3154
+
3155
+ // src/lib/responses/BranchDeleteSummary.ts
3156
+ function branchDeletionSuccess(branch, hash) {
3157
+ return {
3158
+ branch,
3159
+ hash,
3160
+ success: true
3161
+ };
3162
+ }
3163
+ function branchDeletionFailure(branch) {
3164
+ return {
3165
+ branch,
3166
+ hash: null,
3167
+ success: false
3168
+ };
3169
+ }
3170
+ var BranchDeletionBatch;
3171
+ var init_BranchDeleteSummary = __esm({
3172
+ "src/lib/responses/BranchDeleteSummary.ts"() {
3173
+ "use strict";
3174
+ BranchDeletionBatch = class {
3175
+ constructor() {
3176
+ this.all = [];
3177
+ this.branches = {};
3178
+ this.errors = [];
3179
+ }
3180
+ get success() {
3181
+ return !this.errors.length;
3182
+ }
3183
+ };
3184
+ }
3185
+ });
3186
+
3187
+ // src/lib/parsers/parse-branch-delete.ts
3188
+ function hasBranchDeletionError(data, processExitCode) {
3189
+ return processExitCode === 1 /* ERROR */ && deleteErrorRegex.test(data);
3190
+ }
3191
+ var deleteSuccessRegex, deleteErrorRegex, parsers8, parseBranchDeletions;
3192
+ var init_parse_branch_delete = __esm({
3193
+ "src/lib/parsers/parse-branch-delete.ts"() {
3194
+ "use strict";
3195
+ init_BranchDeleteSummary();
3196
+ init_utils();
3197
+ deleteSuccessRegex = /(\S+)\s+\(\S+\s([^)]+)\)/;
3198
+ deleteErrorRegex = /^error[^']+'([^']+)'/m;
3199
+ parsers8 = [
3200
+ new LineParser(deleteSuccessRegex, (result, [branch, hash]) => {
3201
+ const deletion = branchDeletionSuccess(branch, hash);
3202
+ result.all.push(deletion);
3203
+ result.branches[branch] = deletion;
3204
+ }),
3205
+ new LineParser(deleteErrorRegex, (result, [branch]) => {
3206
+ const deletion = branchDeletionFailure(branch);
3207
+ result.errors.push(deletion);
3208
+ result.all.push(deletion);
3209
+ result.branches[branch] = deletion;
3210
+ })
3211
+ ];
3212
+ parseBranchDeletions = (stdOut, stdErr) => {
3213
+ return parseStringResponse(new BranchDeletionBatch(), parsers8, [stdOut, stdErr]);
3214
+ };
3215
+ }
3216
+ });
3217
+
3218
+ // src/lib/responses/BranchSummary.ts
3219
+ var BranchSummaryResult;
3220
+ var init_BranchSummary = __esm({
3221
+ "src/lib/responses/BranchSummary.ts"() {
3222
+ "use strict";
3223
+ BranchSummaryResult = class {
3224
+ constructor() {
3225
+ this.all = [];
3226
+ this.branches = {};
3227
+ this.current = "";
3228
+ this.detached = false;
3229
+ }
3230
+ push(status, detached, name, commit, label) {
3231
+ if (status === "*" /* CURRENT */) {
3232
+ this.detached = detached;
3233
+ this.current = name;
3234
+ }
3235
+ this.all.push(name);
3236
+ this.branches[name] = {
3237
+ current: status === "*" /* CURRENT */,
3238
+ linkedWorkTree: status === "+" /* LINKED */,
3239
+ name,
3240
+ commit,
3241
+ label
3242
+ };
3243
+ }
3244
+ };
3245
+ }
3246
+ });
3247
+
3248
+ // src/lib/parsers/parse-branch.ts
3249
+ function branchStatus(input) {
3250
+ return input ? input.charAt(0) : "";
3251
+ }
3252
+ function parseBranchSummary(stdOut) {
3253
+ return parseStringResponse(new BranchSummaryResult(), parsers9, stdOut);
3254
+ }
3255
+ var parsers9;
3256
+ var init_parse_branch = __esm({
3257
+ "src/lib/parsers/parse-branch.ts"() {
3258
+ "use strict";
3259
+ init_BranchSummary();
3260
+ init_utils();
3261
+ parsers9 = [
3262
+ new LineParser(
3263
+ /^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,
3264
+ (result, [current, name, commit, label]) => {
3265
+ result.push(branchStatus(current), true, name, commit, label);
3266
+ }
3267
+ ),
3268
+ new LineParser(
3269
+ new RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$", "s"),
3270
+ (result, [current, name, commit, label]) => {
3271
+ result.push(branchStatus(current), false, name, commit, label);
3272
+ }
3273
+ )
3274
+ ];
3275
+ }
3276
+ });
3277
+
3278
+ // src/lib/tasks/branch.ts
3279
+ var branch_exports = {};
3280
+ __export(branch_exports, {
3281
+ branchLocalTask: () => branchLocalTask,
3282
+ branchTask: () => branchTask,
3283
+ containsDeleteBranchCommand: () => containsDeleteBranchCommand,
3284
+ deleteBranchTask: () => deleteBranchTask,
3285
+ deleteBranchesTask: () => deleteBranchesTask
3286
+ });
3287
+ function containsDeleteBranchCommand(commands) {
3288
+ const deleteCommands = ["-d", "-D", "--delete"];
3289
+ return commands.some((command) => deleteCommands.includes(command));
3290
+ }
3291
+ function branchTask(customArgs) {
3292
+ const isDelete = containsDeleteBranchCommand(customArgs);
3293
+ const commands = ["branch", ...customArgs];
3294
+ if (commands.length === 1) {
3295
+ commands.push("-a");
3296
+ }
3297
+ if (!commands.includes("-v")) {
3298
+ commands.splice(1, 0, "-v");
3299
+ }
3300
+ return {
3301
+ format: "utf-8",
3302
+ commands,
3303
+ parser(stdOut, stdErr) {
3304
+ if (isDelete) {
3305
+ return parseBranchDeletions(stdOut, stdErr).all[0];
3306
+ }
3307
+ return parseBranchSummary(stdOut);
3308
+ }
3309
+ };
3310
+ }
3311
+ function branchLocalTask() {
3312
+ const parser4 = parseBranchSummary;
3313
+ return {
3314
+ format: "utf-8",
3315
+ commands: ["branch", "-v"],
3316
+ parser: parser4
3317
+ };
3318
+ }
3319
+ function deleteBranchesTask(branches, forceDelete = false) {
3320
+ return {
3321
+ format: "utf-8",
3322
+ commands: ["branch", "-v", forceDelete ? "-D" : "-d", ...branches],
3323
+ parser(stdOut, stdErr) {
3324
+ return parseBranchDeletions(stdOut, stdErr);
3325
+ },
3326
+ onError({ exitCode, stdOut }, error, done, fail) {
3327
+ if (!hasBranchDeletionError(String(error), exitCode)) {
3328
+ return fail(error);
3329
+ }
3330
+ done(stdOut);
3331
+ }
3332
+ };
3333
+ }
3334
+ function deleteBranchTask(branch, forceDelete = false) {
3335
+ const task = {
3336
+ format: "utf-8",
3337
+ commands: ["branch", "-v", forceDelete ? "-D" : "-d", branch],
3338
+ parser(stdOut, stdErr) {
3339
+ return parseBranchDeletions(stdOut, stdErr).branches[branch];
3340
+ },
3341
+ onError({ exitCode, stdErr, stdOut }, error, _, fail) {
3342
+ if (!hasBranchDeletionError(String(error), exitCode)) {
3343
+ return fail(error);
3344
+ }
3345
+ throw new GitResponseError(
3346
+ task.parser(bufferToString(stdOut), bufferToString(stdErr)),
3347
+ String(error)
3348
+ );
3349
+ }
3350
+ };
3351
+ return task;
3352
+ }
3353
+ var init_branch = __esm({
3354
+ "src/lib/tasks/branch.ts"() {
3355
+ "use strict";
3356
+ init_git_response_error();
3357
+ init_parse_branch_delete();
3358
+ init_parse_branch();
3359
+ init_utils();
3360
+ }
3361
+ });
3362
+
3363
+ // src/lib/responses/CheckIgnore.ts
3364
+ var parseCheckIgnore;
3365
+ var init_CheckIgnore = __esm({
3366
+ "src/lib/responses/CheckIgnore.ts"() {
3367
+ "use strict";
3368
+ parseCheckIgnore = (text) => {
3369
+ return text.split(/\n/g).map((line) => line.trim()).filter((file) => !!file);
3370
+ };
3371
+ }
3372
+ });
3373
+
3374
+ // src/lib/tasks/check-ignore.ts
3375
+ var check_ignore_exports = {};
3376
+ __export(check_ignore_exports, {
3377
+ checkIgnoreTask: () => checkIgnoreTask
3378
+ });
3379
+ function checkIgnoreTask(paths) {
3380
+ return {
3381
+ commands: ["check-ignore", ...paths],
3382
+ format: "utf-8",
3383
+ parser: parseCheckIgnore
3384
+ };
3385
+ }
3386
+ var init_check_ignore = __esm({
3387
+ "src/lib/tasks/check-ignore.ts"() {
3388
+ "use strict";
3389
+ init_CheckIgnore();
3390
+ }
3391
+ });
3392
+
3393
+ // src/lib/tasks/clone.ts
3394
+ var clone_exports = {};
3395
+ __export(clone_exports, {
3396
+ cloneMirrorTask: () => cloneMirrorTask,
3397
+ cloneTask: () => cloneTask
3398
+ });
3399
+ function disallowedCommand(command) {
3400
+ return /^--upload-pack(=|$)/.test(command);
3401
+ }
3402
+ function cloneTask(repo, directory, customArgs) {
3403
+ const commands = ["clone", ...customArgs];
3404
+ filterString(repo) && commands.push(repo);
3405
+ filterString(directory) && commands.push(directory);
3406
+ const banned = commands.find(disallowedCommand);
3407
+ if (banned) {
3408
+ return configurationErrorTask(`git.fetch: potential exploit argument blocked.`);
3409
+ }
3410
+ return straightThroughStringTask(commands);
3411
+ }
3412
+ function cloneMirrorTask(repo, directory, customArgs) {
3413
+ append(customArgs, "--mirror");
3414
+ return cloneTask(repo, directory, customArgs);
3415
+ }
3416
+ var init_clone = __esm({
3417
+ "src/lib/tasks/clone.ts"() {
3418
+ "use strict";
3419
+ init_task();
3420
+ init_utils();
3421
+ }
3422
+ });
3423
+
3424
+ // src/lib/parsers/parse-fetch.ts
3425
+ function parseFetchResult(stdOut, stdErr) {
3426
+ const result = {
3427
+ raw: stdOut,
3428
+ remote: null,
3429
+ branches: [],
3430
+ tags: [],
3431
+ updated: [],
3432
+ deleted: []
3433
+ };
3434
+ return parseStringResponse(result, parsers10, [stdOut, stdErr]);
3435
+ }
3436
+ var parsers10;
3437
+ var init_parse_fetch = __esm({
3438
+ "src/lib/parsers/parse-fetch.ts"() {
3439
+ "use strict";
3440
+ init_utils();
3441
+ parsers10 = [
3442
+ new LineParser(/From (.+)$/, (result, [remote]) => {
3443
+ result.remote = remote;
3444
+ }),
3445
+ new LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/, (result, [name, tracking]) => {
3446
+ result.branches.push({
3447
+ name,
3448
+ tracking
3449
+ });
3450
+ }),
3451
+ new LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/, (result, [name, tracking]) => {
3452
+ result.tags.push({
3453
+ name,
3454
+ tracking
3455
+ });
3456
+ }),
3457
+ new LineParser(/- \[deleted]\s+\S+\s*-> (.+)$/, (result, [tracking]) => {
3458
+ result.deleted.push({
3459
+ tracking
3460
+ });
3461
+ }),
3462
+ new LineParser(
3463
+ /\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,
3464
+ (result, [from, to, name, tracking]) => {
3465
+ result.updated.push({
3466
+ name,
3467
+ tracking,
3468
+ to,
3469
+ from
3470
+ });
3471
+ }
3472
+ )
3473
+ ];
3474
+ }
3475
+ });
3476
+
3477
+ // src/lib/tasks/fetch.ts
3478
+ var fetch_exports = {};
3479
+ __export(fetch_exports, {
3480
+ fetchTask: () => fetchTask
3481
+ });
3482
+ function disallowedCommand2(command) {
3483
+ return /^--upload-pack(=|$)/.test(command);
3484
+ }
3485
+ function fetchTask(remote, branch, customArgs) {
3486
+ const commands = ["fetch", ...customArgs];
3487
+ if (remote && branch) {
3488
+ commands.push(remote, branch);
3489
+ }
3490
+ const banned = commands.find(disallowedCommand2);
3491
+ if (banned) {
3492
+ return configurationErrorTask(`git.fetch: potential exploit argument blocked.`);
3493
+ }
3494
+ return {
3495
+ commands,
3496
+ format: "utf-8",
3497
+ parser: parseFetchResult
3498
+ };
3499
+ }
3500
+ var init_fetch = __esm({
3501
+ "src/lib/tasks/fetch.ts"() {
3502
+ "use strict";
3503
+ init_parse_fetch();
3504
+ init_task();
3505
+ }
3506
+ });
3507
+
3508
+ // src/lib/parsers/parse-move.ts
3509
+ function parseMoveResult(stdOut) {
3510
+ return parseStringResponse({ moves: [] }, parsers11, stdOut);
3511
+ }
3512
+ var parsers11;
3513
+ var init_parse_move = __esm({
3514
+ "src/lib/parsers/parse-move.ts"() {
3515
+ "use strict";
3516
+ init_utils();
3517
+ parsers11 = [
3518
+ new LineParser(/^Renaming (.+) to (.+)$/, (result, [from, to]) => {
3519
+ result.moves.push({ from, to });
3520
+ })
3521
+ ];
3522
+ }
3523
+ });
3524
+
3525
+ // src/lib/tasks/move.ts
3526
+ var move_exports = {};
3527
+ __export(move_exports, {
3528
+ moveTask: () => moveTask
3529
+ });
3530
+ function moveTask(from, to) {
3531
+ return {
3532
+ commands: ["mv", "-v", ...asArray(from), to],
3533
+ format: "utf-8",
3534
+ parser: parseMoveResult
3535
+ };
3536
+ }
3537
+ var init_move = __esm({
3538
+ "src/lib/tasks/move.ts"() {
3539
+ "use strict";
3540
+ init_parse_move();
3541
+ init_utils();
3542
+ }
3543
+ });
3544
+
3545
+ // src/lib/tasks/pull.ts
3546
+ var pull_exports = {};
3547
+ __export(pull_exports, {
3548
+ pullTask: () => pullTask
3549
+ });
3550
+ function pullTask(remote, branch, customArgs) {
3551
+ const commands = ["pull", ...customArgs];
3552
+ if (remote && branch) {
3553
+ commands.splice(1, 0, remote, branch);
3554
+ }
3555
+ return {
3556
+ commands,
3557
+ format: "utf-8",
3558
+ parser(stdOut, stdErr) {
3559
+ return parsePullResult(stdOut, stdErr);
3560
+ },
3561
+ onError(result, _error, _done, fail) {
3562
+ const pullError = parsePullErrorResult(
3563
+ bufferToString(result.stdOut),
3564
+ bufferToString(result.stdErr)
3565
+ );
3566
+ if (pullError) {
3567
+ return fail(new GitResponseError(pullError));
3568
+ }
3569
+ fail(_error);
3570
+ }
3571
+ };
3572
+ }
3573
+ var init_pull = __esm({
3574
+ "src/lib/tasks/pull.ts"() {
3575
+ "use strict";
3576
+ init_git_response_error();
3577
+ init_parse_pull();
3578
+ init_utils();
3579
+ }
3580
+ });
3581
+
3582
+ // src/lib/responses/GetRemoteSummary.ts
3583
+ function parseGetRemotes(text) {
3584
+ const remotes = {};
3585
+ forEach(text, ([name]) => remotes[name] = { name });
3586
+ return Object.values(remotes);
3587
+ }
3588
+ function parseGetRemotesVerbose(text) {
3589
+ const remotes = {};
3590
+ forEach(text, ([name, url, purpose]) => {
3591
+ if (!remotes.hasOwnProperty(name)) {
3592
+ remotes[name] = {
3593
+ name,
3594
+ refs: { fetch: "", push: "" }
3595
+ };
3596
+ }
3597
+ if (purpose && url) {
3598
+ remotes[name].refs[purpose.replace(/[^a-z]/g, "")] = url;
3599
+ }
3600
+ });
3601
+ return Object.values(remotes);
3602
+ }
3603
+ function forEach(text, handler) {
3604
+ forEachLineWithContent(text, (line) => handler(line.split(/\s+/)));
3605
+ }
3606
+ var init_GetRemoteSummary = __esm({
3607
+ "src/lib/responses/GetRemoteSummary.ts"() {
3608
+ "use strict";
3609
+ init_utils();
3610
+ }
3611
+ });
3612
+
3613
+ // src/lib/tasks/remote.ts
3614
+ var remote_exports = {};
3615
+ __export(remote_exports, {
3616
+ addRemoteTask: () => addRemoteTask,
3617
+ getRemotesTask: () => getRemotesTask,
3618
+ listRemotesTask: () => listRemotesTask,
3619
+ remoteTask: () => remoteTask,
3620
+ removeRemoteTask: () => removeRemoteTask
3621
+ });
3622
+ function addRemoteTask(remoteName, remoteRepo, customArgs) {
3623
+ return straightThroughStringTask(["remote", "add", ...customArgs, remoteName, remoteRepo]);
3624
+ }
3625
+ function getRemotesTask(verbose) {
3626
+ const commands = ["remote"];
3627
+ if (verbose) {
3628
+ commands.push("-v");
3629
+ }
3630
+ return {
3631
+ commands,
3632
+ format: "utf-8",
3633
+ parser: verbose ? parseGetRemotesVerbose : parseGetRemotes
3634
+ };
3635
+ }
3636
+ function listRemotesTask(customArgs) {
3637
+ const commands = [...customArgs];
3638
+ if (commands[0] !== "ls-remote") {
3639
+ commands.unshift("ls-remote");
3640
+ }
3641
+ return straightThroughStringTask(commands);
3642
+ }
3643
+ function remoteTask(customArgs) {
3644
+ const commands = [...customArgs];
3645
+ if (commands[0] !== "remote") {
3646
+ commands.unshift("remote");
3647
+ }
3648
+ return straightThroughStringTask(commands);
3649
+ }
3650
+ function removeRemoteTask(remoteName) {
3651
+ return straightThroughStringTask(["remote", "remove", remoteName]);
3652
+ }
3653
+ var init_remote = __esm({
3654
+ "src/lib/tasks/remote.ts"() {
3655
+ "use strict";
3656
+ init_GetRemoteSummary();
3657
+ init_task();
3658
+ }
3659
+ });
3660
+
3661
+ // src/lib/tasks/stash-list.ts
3662
+ var stash_list_exports = {};
3663
+ __export(stash_list_exports, {
3664
+ stashListTask: () => stashListTask
3665
+ });
3666
+ function stashListTask(opt = {}, customArgs) {
3667
+ const options = parseLogOptions(opt);
3668
+ const commands = ["stash", "list", ...options.commands, ...customArgs];
3669
+ const parser4 = createListLogSummaryParser(
3670
+ options.splitter,
3671
+ options.fields,
3672
+ logFormatFromCommand(commands)
3673
+ );
3674
+ return validateLogFormatConfig(commands) || {
3675
+ commands,
3676
+ format: "utf-8",
3677
+ parser: parser4
3678
+ };
3679
+ }
3680
+ var init_stash_list = __esm({
3681
+ "src/lib/tasks/stash-list.ts"() {
3682
+ "use strict";
3683
+ init_log_format();
3684
+ init_parse_list_log_summary();
3685
+ init_diff();
3686
+ init_log();
3687
+ }
3688
+ });
3689
+
3690
+ // src/lib/tasks/sub-module.ts
3691
+ var sub_module_exports = {};
3692
+ __export(sub_module_exports, {
3693
+ addSubModuleTask: () => addSubModuleTask,
3694
+ initSubModuleTask: () => initSubModuleTask,
3695
+ subModuleTask: () => subModuleTask,
3696
+ updateSubModuleTask: () => updateSubModuleTask
3697
+ });
3698
+ function addSubModuleTask(repo, path) {
3699
+ return subModuleTask(["add", repo, path]);
3700
+ }
3701
+ function initSubModuleTask(customArgs) {
3702
+ return subModuleTask(["init", ...customArgs]);
3703
+ }
3704
+ function subModuleTask(customArgs) {
3705
+ const commands = [...customArgs];
3706
+ if (commands[0] !== "submodule") {
3707
+ commands.unshift("submodule");
3708
+ }
3709
+ return straightThroughStringTask(commands);
3710
+ }
3711
+ function updateSubModuleTask(customArgs) {
3712
+ return subModuleTask(["update", ...customArgs]);
3713
+ }
3714
+ var init_sub_module = __esm({
3715
+ "src/lib/tasks/sub-module.ts"() {
3716
+ "use strict";
3717
+ init_task();
3718
+ }
3719
+ });
3720
+
3721
+ // src/lib/responses/TagList.ts
3722
+ function singleSorted(a, b) {
3723
+ const aIsNum = isNaN(a);
3724
+ const bIsNum = isNaN(b);
3725
+ if (aIsNum !== bIsNum) {
3726
+ return aIsNum ? 1 : -1;
3727
+ }
3728
+ return aIsNum ? sorted(a, b) : 0;
3729
+ }
3730
+ function sorted(a, b) {
3731
+ return a === b ? 0 : a > b ? 1 : -1;
3732
+ }
3733
+ function trimmed(input) {
3734
+ return input.trim();
3735
+ }
3736
+ function toNumber(input) {
3737
+ if (typeof input === "string") {
3738
+ return parseInt(input.replace(/^\D+/g, ""), 10) || 0;
3739
+ }
3740
+ return 0;
3741
+ }
3742
+ var TagList, parseTagList;
3743
+ var init_TagList = __esm({
3744
+ "src/lib/responses/TagList.ts"() {
3745
+ "use strict";
3746
+ TagList = class {
3747
+ constructor(all, latest) {
3748
+ this.all = all;
3749
+ this.latest = latest;
3750
+ }
3751
+ };
3752
+ parseTagList = function(data, customSort = false) {
3753
+ const tags = data.split("\n").map(trimmed).filter(Boolean);
3754
+ if (!customSort) {
3755
+ tags.sort(function(tagA, tagB) {
3756
+ const partsA = tagA.split(".");
3757
+ const partsB = tagB.split(".");
3758
+ if (partsA.length === 1 || partsB.length === 1) {
3759
+ return singleSorted(toNumber(partsA[0]), toNumber(partsB[0]));
3760
+ }
3761
+ for (let i = 0, l = Math.max(partsA.length, partsB.length); i < l; i++) {
3762
+ const diff = sorted(toNumber(partsA[i]), toNumber(partsB[i]));
3763
+ if (diff) {
3764
+ return diff;
3765
+ }
3766
+ }
3767
+ return 0;
3768
+ });
3769
+ }
3770
+ const latest = customSort ? tags[0] : [...tags].reverse().find((tag) => tag.indexOf(".") >= 0);
3771
+ return new TagList(tags, latest);
3772
+ };
3773
+ }
3774
+ });
3775
+
3776
+ // src/lib/tasks/tag.ts
3777
+ var tag_exports = {};
3778
+ __export(tag_exports, {
3779
+ addAnnotatedTagTask: () => addAnnotatedTagTask,
3780
+ addTagTask: () => addTagTask,
3781
+ tagListTask: () => tagListTask
3782
+ });
3783
+ function tagListTask(customArgs = []) {
3784
+ const hasCustomSort = customArgs.some((option) => /^--sort=/.test(option));
3785
+ return {
3786
+ format: "utf-8",
3787
+ commands: ["tag", "-l", ...customArgs],
3788
+ parser(text) {
3789
+ return parseTagList(text, hasCustomSort);
3790
+ }
3791
+ };
3792
+ }
3793
+ function addTagTask(name) {
3794
+ return {
3795
+ format: "utf-8",
3796
+ commands: ["tag", name],
3797
+ parser() {
3798
+ return { name };
3799
+ }
3800
+ };
3801
+ }
3802
+ function addAnnotatedTagTask(name, tagMessage) {
3803
+ return {
3804
+ format: "utf-8",
3805
+ commands: ["tag", "-a", "-m", tagMessage, name],
3806
+ parser() {
3807
+ return { name };
3808
+ }
3809
+ };
3810
+ }
3811
+ var init_tag = __esm({
3812
+ "src/lib/tasks/tag.ts"() {
3813
+ "use strict";
3814
+ init_TagList();
3815
+ }
3816
+ });
3817
+
3818
+ // src/git.js
3819
+ var require_git = __commonJS({
3820
+ "src/git.js"(exports, module) {
3821
+ "use strict";
3822
+ var { GitExecutor: GitExecutor2 } = (init_git_executor(), __toCommonJS(git_executor_exports));
3823
+ var { SimpleGitApi: SimpleGitApi2 } = (init_simple_git_api(), __toCommonJS(simple_git_api_exports));
3824
+ var { Scheduler: Scheduler2 } = (init_scheduler(), __toCommonJS(scheduler_exports));
3825
+ var { configurationErrorTask: configurationErrorTask2 } = (init_task(), __toCommonJS(task_exports));
3826
+ var {
3827
+ asArray: asArray2,
3828
+ filterArray: filterArray2,
3829
+ filterPrimitives: filterPrimitives2,
3830
+ filterString: filterString2,
3831
+ filterStringOrStringArray: filterStringOrStringArray2,
3832
+ filterType: filterType2,
3833
+ getTrailingOptions: getTrailingOptions2,
3834
+ trailingFunctionArgument: trailingFunctionArgument2,
3835
+ trailingOptionsArgument: trailingOptionsArgument2
3836
+ } = (init_utils(), __toCommonJS(utils_exports));
3837
+ var { applyPatchTask: applyPatchTask2 } = (init_apply_patch(), __toCommonJS(apply_patch_exports));
3838
+ var {
3839
+ branchTask: branchTask2,
3840
+ branchLocalTask: branchLocalTask2,
3841
+ deleteBranchesTask: deleteBranchesTask2,
3842
+ deleteBranchTask: deleteBranchTask2
3843
+ } = (init_branch(), __toCommonJS(branch_exports));
3844
+ var { checkIgnoreTask: checkIgnoreTask2 } = (init_check_ignore(), __toCommonJS(check_ignore_exports));
3845
+ var { checkIsRepoTask: checkIsRepoTask2 } = (init_check_is_repo(), __toCommonJS(check_is_repo_exports));
3846
+ var { cloneTask: cloneTask2, cloneMirrorTask: cloneMirrorTask2 } = (init_clone(), __toCommonJS(clone_exports));
3847
+ var { cleanWithOptionsTask: cleanWithOptionsTask2, isCleanOptionsArray: isCleanOptionsArray2 } = (init_clean(), __toCommonJS(clean_exports));
3848
+ var { diffSummaryTask: diffSummaryTask2 } = (init_diff(), __toCommonJS(diff_exports));
3849
+ var { fetchTask: fetchTask2 } = (init_fetch(), __toCommonJS(fetch_exports));
3850
+ var { moveTask: moveTask2 } = (init_move(), __toCommonJS(move_exports));
3851
+ var { pullTask: pullTask2 } = (init_pull(), __toCommonJS(pull_exports));
3852
+ var { pushTagsTask: pushTagsTask2 } = (init_push(), __toCommonJS(push_exports));
3853
+ var {
3854
+ addRemoteTask: addRemoteTask2,
3855
+ getRemotesTask: getRemotesTask2,
3856
+ listRemotesTask: listRemotesTask2,
3857
+ remoteTask: remoteTask2,
3858
+ removeRemoteTask: removeRemoteTask2
3859
+ } = (init_remote(), __toCommonJS(remote_exports));
3860
+ var { getResetMode: getResetMode2, resetTask: resetTask2 } = (init_reset(), __toCommonJS(reset_exports));
3861
+ var { stashListTask: stashListTask2 } = (init_stash_list(), __toCommonJS(stash_list_exports));
3862
+ var {
3863
+ addSubModuleTask: addSubModuleTask2,
3864
+ initSubModuleTask: initSubModuleTask2,
3865
+ subModuleTask: subModuleTask2,
3866
+ updateSubModuleTask: updateSubModuleTask2
3867
+ } = (init_sub_module(), __toCommonJS(sub_module_exports));
3868
+ var { addAnnotatedTagTask: addAnnotatedTagTask2, addTagTask: addTagTask2, tagListTask: tagListTask2 } = (init_tag(), __toCommonJS(tag_exports));
3869
+ var { straightThroughBufferTask: straightThroughBufferTask2, straightThroughStringTask: straightThroughStringTask2 } = (init_task(), __toCommonJS(task_exports));
3870
+ function Git2(options, plugins) {
3871
+ this._plugins = plugins;
3872
+ this._executor = new GitExecutor2(
3873
+ options.baseDir,
3874
+ new Scheduler2(options.maxConcurrentProcesses),
3875
+ plugins
3876
+ );
3877
+ this._trimmed = options.trimmed;
3878
+ }
3879
+ (Git2.prototype = Object.create(SimpleGitApi2.prototype)).constructor = Git2;
3880
+ Git2.prototype.customBinary = function(command) {
3881
+ this._plugins.reconfigure("binary", command);
3882
+ return this;
3883
+ };
3884
+ Git2.prototype.env = function(name, value) {
3885
+ if (arguments.length === 1 && typeof name === "object") {
3886
+ this._executor.env = name;
3887
+ } else {
3888
+ (this._executor.env = this._executor.env || {})[name] = value;
3889
+ }
3890
+ return this;
3891
+ };
3892
+ Git2.prototype.stashList = function(options) {
3893
+ return this._runTask(
3894
+ stashListTask2(
3895
+ trailingOptionsArgument2(arguments) || {},
3896
+ filterArray2(options) && options || []
3897
+ ),
3898
+ trailingFunctionArgument2(arguments)
3899
+ );
3900
+ };
3901
+ function createCloneTask(api, task, repoPath, localPath) {
3902
+ if (typeof repoPath !== "string") {
3903
+ return configurationErrorTask2(`git.${api}() requires a string 'repoPath'`);
3904
+ }
3905
+ return task(repoPath, filterType2(localPath, filterString2), getTrailingOptions2(arguments));
3906
+ }
3907
+ Git2.prototype.clone = function() {
3908
+ return this._runTask(
3909
+ createCloneTask("clone", cloneTask2, ...arguments),
3910
+ trailingFunctionArgument2(arguments)
3911
+ );
3912
+ };
3913
+ Git2.prototype.mirror = function() {
3914
+ return this._runTask(
3915
+ createCloneTask("mirror", cloneMirrorTask2, ...arguments),
3916
+ trailingFunctionArgument2(arguments)
3917
+ );
3918
+ };
3919
+ Git2.prototype.mv = function(from, to) {
3920
+ return this._runTask(moveTask2(from, to), trailingFunctionArgument2(arguments));
3921
+ };
3922
+ Git2.prototype.checkoutLatestTag = function(then) {
3923
+ var git = this;
3924
+ return this.pull(function() {
3925
+ git.tags(function(err, tags) {
3926
+ git.checkout(tags.latest, then);
3927
+ });
3928
+ });
3929
+ };
3930
+ Git2.prototype.pull = function(remote, branch, options, then) {
3931
+ return this._runTask(
3932
+ pullTask2(
3933
+ filterType2(remote, filterString2),
3934
+ filterType2(branch, filterString2),
3935
+ getTrailingOptions2(arguments)
3936
+ ),
3937
+ trailingFunctionArgument2(arguments)
3938
+ );
3939
+ };
3940
+ Git2.prototype.fetch = function(remote, branch) {
3941
+ return this._runTask(
3942
+ fetchTask2(
3943
+ filterType2(remote, filterString2),
3944
+ filterType2(branch, filterString2),
3945
+ getTrailingOptions2(arguments)
3946
+ ),
3947
+ trailingFunctionArgument2(arguments)
3948
+ );
3949
+ };
3950
+ Git2.prototype.silent = function(silence) {
3951
+ console.warn(
3952
+ "simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"
3953
+ );
3954
+ return this;
3955
+ };
3956
+ Git2.prototype.tags = function(options, then) {
3957
+ return this._runTask(
3958
+ tagListTask2(getTrailingOptions2(arguments)),
3959
+ trailingFunctionArgument2(arguments)
3960
+ );
3961
+ };
3962
+ Git2.prototype.rebase = function() {
3963
+ return this._runTask(
3964
+ straightThroughStringTask2(["rebase", ...getTrailingOptions2(arguments)]),
3965
+ trailingFunctionArgument2(arguments)
3966
+ );
3967
+ };
3968
+ Git2.prototype.reset = function(mode) {
3969
+ return this._runTask(
3970
+ resetTask2(getResetMode2(mode), getTrailingOptions2(arguments)),
3971
+ trailingFunctionArgument2(arguments)
3972
+ );
3973
+ };
3974
+ Git2.prototype.revert = function(commit) {
3975
+ const next = trailingFunctionArgument2(arguments);
3976
+ if (typeof commit !== "string") {
3977
+ return this._runTask(configurationErrorTask2("Commit must be a string"), next);
3978
+ }
3979
+ return this._runTask(
3980
+ straightThroughStringTask2(["revert", ...getTrailingOptions2(arguments, 0, true), commit]),
3981
+ next
3982
+ );
3983
+ };
3984
+ Git2.prototype.addTag = function(name) {
3985
+ const task = typeof name === "string" ? addTagTask2(name) : configurationErrorTask2("Git.addTag requires a tag name");
3986
+ return this._runTask(task, trailingFunctionArgument2(arguments));
3987
+ };
3988
+ Git2.prototype.addAnnotatedTag = function(tagName, tagMessage) {
3989
+ return this._runTask(
3990
+ addAnnotatedTagTask2(tagName, tagMessage),
3991
+ trailingFunctionArgument2(arguments)
3992
+ );
3993
+ };
3994
+ Git2.prototype.deleteLocalBranch = function(branchName, forceDelete, then) {
3995
+ return this._runTask(
3996
+ deleteBranchTask2(branchName, typeof forceDelete === "boolean" ? forceDelete : false),
3997
+ trailingFunctionArgument2(arguments)
3998
+ );
3999
+ };
4000
+ Git2.prototype.deleteLocalBranches = function(branchNames, forceDelete, then) {
4001
+ return this._runTask(
4002
+ deleteBranchesTask2(branchNames, typeof forceDelete === "boolean" ? forceDelete : false),
4003
+ trailingFunctionArgument2(arguments)
4004
+ );
4005
+ };
4006
+ Git2.prototype.branch = function(options, then) {
4007
+ return this._runTask(
4008
+ branchTask2(getTrailingOptions2(arguments)),
4009
+ trailingFunctionArgument2(arguments)
4010
+ );
4011
+ };
4012
+ Git2.prototype.branchLocal = function(then) {
4013
+ return this._runTask(branchLocalTask2(), trailingFunctionArgument2(arguments));
4014
+ };
4015
+ Git2.prototype.raw = function(commands) {
4016
+ const createRestCommands = !Array.isArray(commands);
4017
+ const command = [].slice.call(createRestCommands ? arguments : commands, 0);
4018
+ for (let i = 0; i < command.length && createRestCommands; i++) {
4019
+ if (!filterPrimitives2(command[i])) {
4020
+ command.splice(i, command.length - i);
4021
+ break;
4022
+ }
4023
+ }
4024
+ command.push(...getTrailingOptions2(arguments, 0, true));
4025
+ var next = trailingFunctionArgument2(arguments);
4026
+ if (!command.length) {
4027
+ return this._runTask(
4028
+ configurationErrorTask2("Raw: must supply one or more command to execute"),
4029
+ next
4030
+ );
4031
+ }
4032
+ return this._runTask(straightThroughStringTask2(command, this._trimmed), next);
4033
+ };
4034
+ Git2.prototype.submoduleAdd = function(repo, path, then) {
4035
+ return this._runTask(addSubModuleTask2(repo, path), trailingFunctionArgument2(arguments));
4036
+ };
4037
+ Git2.prototype.submoduleUpdate = function(args, then) {
4038
+ return this._runTask(
4039
+ updateSubModuleTask2(getTrailingOptions2(arguments, true)),
4040
+ trailingFunctionArgument2(arguments)
4041
+ );
4042
+ };
4043
+ Git2.prototype.submoduleInit = function(args, then) {
4044
+ return this._runTask(
4045
+ initSubModuleTask2(getTrailingOptions2(arguments, true)),
4046
+ trailingFunctionArgument2(arguments)
4047
+ );
4048
+ };
4049
+ Git2.prototype.subModule = function(options, then) {
4050
+ return this._runTask(
4051
+ subModuleTask2(getTrailingOptions2(arguments)),
4052
+ trailingFunctionArgument2(arguments)
4053
+ );
4054
+ };
4055
+ Git2.prototype.listRemote = function() {
4056
+ return this._runTask(
4057
+ listRemotesTask2(getTrailingOptions2(arguments)),
4058
+ trailingFunctionArgument2(arguments)
4059
+ );
4060
+ };
4061
+ Git2.prototype.addRemote = function(remoteName, remoteRepo, then) {
4062
+ return this._runTask(
4063
+ addRemoteTask2(remoteName, remoteRepo, getTrailingOptions2(arguments)),
4064
+ trailingFunctionArgument2(arguments)
4065
+ );
4066
+ };
4067
+ Git2.prototype.removeRemote = function(remoteName, then) {
4068
+ return this._runTask(removeRemoteTask2(remoteName), trailingFunctionArgument2(arguments));
4069
+ };
4070
+ Git2.prototype.getRemotes = function(verbose, then) {
4071
+ return this._runTask(getRemotesTask2(verbose === true), trailingFunctionArgument2(arguments));
4072
+ };
4073
+ Git2.prototype.remote = function(options, then) {
4074
+ return this._runTask(
4075
+ remoteTask2(getTrailingOptions2(arguments)),
4076
+ trailingFunctionArgument2(arguments)
4077
+ );
4078
+ };
4079
+ Git2.prototype.tag = function(options, then) {
4080
+ const command = getTrailingOptions2(arguments);
4081
+ if (command[0] !== "tag") {
4082
+ command.unshift("tag");
4083
+ }
4084
+ return this._runTask(straightThroughStringTask2(command), trailingFunctionArgument2(arguments));
4085
+ };
4086
+ Git2.prototype.updateServerInfo = function(then) {
4087
+ return this._runTask(
4088
+ straightThroughStringTask2(["update-server-info"]),
4089
+ trailingFunctionArgument2(arguments)
4090
+ );
4091
+ };
4092
+ Git2.prototype.pushTags = function(remote, then) {
4093
+ const task = pushTagsTask2(
4094
+ { remote: filterType2(remote, filterString2) },
4095
+ getTrailingOptions2(arguments)
4096
+ );
4097
+ return this._runTask(task, trailingFunctionArgument2(arguments));
4098
+ };
4099
+ Git2.prototype.rm = function(files) {
4100
+ return this._runTask(
4101
+ straightThroughStringTask2(["rm", "-f", ...asArray2(files)]),
4102
+ trailingFunctionArgument2(arguments)
4103
+ );
4104
+ };
4105
+ Git2.prototype.rmKeepLocal = function(files) {
4106
+ return this._runTask(
4107
+ straightThroughStringTask2(["rm", "--cached", ...asArray2(files)]),
4108
+ trailingFunctionArgument2(arguments)
4109
+ );
4110
+ };
4111
+ Git2.prototype.catFile = function(options, then) {
4112
+ return this._catFile("utf-8", arguments);
4113
+ };
4114
+ Git2.prototype.binaryCatFile = function() {
4115
+ return this._catFile("buffer", arguments);
4116
+ };
4117
+ Git2.prototype._catFile = function(format, args) {
4118
+ var handler = trailingFunctionArgument2(args);
4119
+ var command = ["cat-file"];
4120
+ var options = args[0];
4121
+ if (typeof options === "string") {
4122
+ return this._runTask(
4123
+ configurationErrorTask2("Git.catFile: options must be supplied as an array of strings"),
4124
+ handler
4125
+ );
4126
+ }
4127
+ if (Array.isArray(options)) {
4128
+ command.push.apply(command, options);
4129
+ }
4130
+ const task = format === "buffer" ? straightThroughBufferTask2(command) : straightThroughStringTask2(command);
4131
+ return this._runTask(task, handler);
4132
+ };
4133
+ Git2.prototype.diff = function(options, then) {
4134
+ const task = filterString2(options) ? configurationErrorTask2(
4135
+ "git.diff: supplying options as a single string is no longer supported, switch to an array of strings"
4136
+ ) : straightThroughStringTask2(["diff", ...getTrailingOptions2(arguments)]);
4137
+ return this._runTask(task, trailingFunctionArgument2(arguments));
4138
+ };
4139
+ Git2.prototype.diffSummary = function() {
4140
+ return this._runTask(
4141
+ diffSummaryTask2(getTrailingOptions2(arguments, 1)),
4142
+ trailingFunctionArgument2(arguments)
4143
+ );
4144
+ };
4145
+ Git2.prototype.applyPatch = function(patches) {
4146
+ const task = !filterStringOrStringArray2(patches) ? configurationErrorTask2(
4147
+ `git.applyPatch requires one or more string patches as the first argument`
4148
+ ) : applyPatchTask2(asArray2(patches), getTrailingOptions2([].slice.call(arguments, 1)));
4149
+ return this._runTask(task, trailingFunctionArgument2(arguments));
4150
+ };
4151
+ Git2.prototype.revparse = function() {
4152
+ const commands = ["rev-parse", ...getTrailingOptions2(arguments, true)];
4153
+ return this._runTask(
4154
+ straightThroughStringTask2(commands, true),
4155
+ trailingFunctionArgument2(arguments)
4156
+ );
4157
+ };
4158
+ Git2.prototype.clean = function(mode, options, then) {
4159
+ const usingCleanOptionsArray = isCleanOptionsArray2(mode);
4160
+ const cleanMode = usingCleanOptionsArray && mode.join("") || filterType2(mode, filterString2) || "";
4161
+ const customArgs = getTrailingOptions2([].slice.call(arguments, usingCleanOptionsArray ? 1 : 0));
4162
+ return this._runTask(
4163
+ cleanWithOptionsTask2(cleanMode, customArgs),
4164
+ trailingFunctionArgument2(arguments)
4165
+ );
4166
+ };
4167
+ Git2.prototype.exec = function(then) {
4168
+ const task = {
4169
+ commands: [],
4170
+ format: "utf-8",
4171
+ parser() {
4172
+ if (typeof then === "function") {
4173
+ then();
4174
+ }
4175
+ }
4176
+ };
4177
+ return this._runTask(task);
4178
+ };
4179
+ Git2.prototype.clearQueue = function() {
4180
+ return this;
4181
+ };
4182
+ Git2.prototype.checkIgnore = function(pathnames, then) {
4183
+ return this._runTask(
4184
+ checkIgnoreTask2(asArray2(filterType2(pathnames, filterStringOrStringArray2, []))),
4185
+ trailingFunctionArgument2(arguments)
4186
+ );
4187
+ };
4188
+ Git2.prototype.checkIsRepo = function(checkType, then) {
4189
+ return this._runTask(
4190
+ checkIsRepoTask2(filterType2(checkType, filterString2)),
4191
+ trailingFunctionArgument2(arguments)
4192
+ );
4193
+ };
4194
+ module.exports = Git2;
4195
+ }
4196
+ });
4197
+
4198
+ // src/lib/api.ts
4199
+ init_pathspec();
4200
+
4201
+ // src/lib/errors/git-construct-error.ts
4202
+ init_git_error();
4203
+ var GitConstructError = class extends GitError {
4204
+ constructor(config, message) {
4205
+ super(void 0, message);
4206
+ this.config = config;
4207
+ }
4208
+ };
4209
+
4210
+ // src/lib/api.ts
4211
+ init_git_error();
4212
+
4213
+ // src/lib/errors/git-plugin-error.ts
4214
+ init_git_error();
4215
+ var GitPluginError = class extends GitError {
4216
+ constructor(task, plugin, message) {
4217
+ super(task, message);
4218
+ this.task = task;
4219
+ this.plugin = plugin;
4220
+ Object.setPrototypeOf(this, new.target.prototype);
4221
+ }
4222
+ };
4223
+
4224
+ // src/lib/api.ts
4225
+ init_git_response_error();
4226
+ init_task_configuration_error();
4227
+ init_check_is_repo();
4228
+ init_clean();
4229
+ init_config();
4230
+ init_diff_name_status();
4231
+ init_grep();
4232
+ init_reset();
4233
+
4234
+ // src/lib/plugins/abort-plugin.ts
4235
+ function abortPlugin(signal) {
4236
+ if (!signal) {
4237
+ return;
4238
+ }
4239
+ const onSpawnAfter = {
4240
+ type: "spawn.after",
4241
+ action(_data, context) {
4242
+ function kill() {
4243
+ context.kill(new GitPluginError(void 0, "abort", "Abort signal received"));
4244
+ }
4245
+ signal.addEventListener("abort", kill);
4246
+ context.spawned.on("close", () => signal.removeEventListener("abort", kill));
4247
+ }
4248
+ };
4249
+ const onSpawnBefore = {
4250
+ type: "spawn.before",
4251
+ action(_data, context) {
4252
+ if (signal.aborted) {
4253
+ context.kill(new GitPluginError(void 0, "abort", "Abort already signaled"));
4254
+ }
4255
+ }
4256
+ };
4257
+ return [onSpawnBefore, onSpawnAfter];
4258
+ }
4259
+
4260
+ // src/lib/plugins/block-unsafe-operations-plugin.ts
4261
+ function isConfigSwitch(arg) {
4262
+ return typeof arg === "string" && arg.trim().toLowerCase() === "-c";
4263
+ }
4264
+ function preventProtocolOverride(arg, next) {
4265
+ if (!isConfigSwitch(arg)) {
4266
+ return;
4267
+ }
4268
+ if (!/^\s*protocol(.[a-z]+)?.allow/.test(next)) {
4269
+ return;
4270
+ }
4271
+ throw new GitPluginError(
4272
+ void 0,
4273
+ "unsafe",
4274
+ "Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol"
4275
+ );
4276
+ }
4277
+ function preventUploadPack(arg, method) {
4278
+ if (/^\s*--(upload|receive)-pack/.test(arg)) {
4279
+ throw new GitPluginError(
4280
+ void 0,
4281
+ "unsafe",
4282
+ `Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack`
4283
+ );
4284
+ }
4285
+ if (method === "clone" && /^\s*-u\b/.test(arg)) {
4286
+ throw new GitPluginError(
4287
+ void 0,
4288
+ "unsafe",
4289
+ `Use of clone with option -u is not permitted without enabling allowUnsafePack`
4290
+ );
4291
+ }
4292
+ if (method === "push" && /^\s*--exec\b/.test(arg)) {
4293
+ throw new GitPluginError(
4294
+ void 0,
4295
+ "unsafe",
4296
+ `Use of push with option --exec is not permitted without enabling allowUnsafePack`
4297
+ );
4298
+ }
4299
+ }
4300
+ function blockUnsafeOperationsPlugin({
4301
+ allowUnsafeProtocolOverride = false,
4302
+ allowUnsafePack = false
4303
+ } = {}) {
4304
+ return {
4305
+ type: "spawn.args",
4306
+ action(args, context) {
4307
+ args.forEach((current, index) => {
4308
+ const next = index < args.length ? args[index + 1] : "";
4309
+ allowUnsafeProtocolOverride || preventProtocolOverride(current, next);
4310
+ allowUnsafePack || preventUploadPack(current, context.method);
4311
+ });
4312
+ return args;
4313
+ }
4314
+ };
4315
+ }
4316
+
4317
+ // src/lib/plugins/command-config-prefixing-plugin.ts
4318
+ init_utils();
4319
+ function commandConfigPrefixingPlugin(configuration) {
4320
+ const prefix = prefixedArray(configuration, "-c");
4321
+ return {
4322
+ type: "spawn.args",
4323
+ action(data) {
4324
+ return [...prefix, ...data];
4325
+ }
4326
+ };
4327
+ }
4328
+
4329
+ // src/lib/plugins/completion-detection.plugin.ts
4330
+ init_utils();
4331
+ import { deferred } from "@kwsites/promise-deferred";
4332
+ var never = deferred().promise;
4333
+ function completionDetectionPlugin({
4334
+ onClose = true,
4335
+ onExit = 50
4336
+ } = {}) {
4337
+ function createEvents() {
4338
+ let exitCode = -1;
4339
+ const events = {
4340
+ close: deferred(),
4341
+ closeTimeout: deferred(),
4342
+ exit: deferred(),
4343
+ exitTimeout: deferred()
4344
+ };
4345
+ const result = Promise.race([
4346
+ onClose === false ? never : events.closeTimeout.promise,
4347
+ onExit === false ? never : events.exitTimeout.promise
4348
+ ]);
4349
+ configureTimeout(onClose, events.close, events.closeTimeout);
4350
+ configureTimeout(onExit, events.exit, events.exitTimeout);
4351
+ return {
4352
+ close(code) {
4353
+ exitCode = code;
4354
+ events.close.done();
4355
+ },
4356
+ exit(code) {
4357
+ exitCode = code;
4358
+ events.exit.done();
4359
+ },
4360
+ get exitCode() {
4361
+ return exitCode;
4362
+ },
4363
+ result
4364
+ };
4365
+ }
4366
+ function configureTimeout(flag, event, timeout) {
4367
+ if (flag === false) {
4368
+ return;
4369
+ }
4370
+ (flag === true ? event.promise : event.promise.then(() => delay(flag))).then(timeout.done);
4371
+ }
4372
+ return {
4373
+ type: "spawn.after",
4374
+ action(_0, _1) {
4375
+ return __async(this, arguments, function* (_data, { spawned, close }) {
4376
+ var _a3, _b;
4377
+ const events = createEvents();
4378
+ let deferClose = true;
4379
+ let quickClose = () => void (deferClose = false);
4380
+ (_a3 = spawned.stdout) == null ? void 0 : _a3.on("data", quickClose);
4381
+ (_b = spawned.stderr) == null ? void 0 : _b.on("data", quickClose);
4382
+ spawned.on("error", quickClose);
4383
+ spawned.on("close", (code) => events.close(code));
4384
+ spawned.on("exit", (code) => events.exit(code));
4385
+ try {
4386
+ yield events.result;
4387
+ if (deferClose) {
4388
+ yield delay(50);
4389
+ }
4390
+ close(events.exitCode);
4391
+ } catch (err) {
4392
+ close(events.exitCode, err);
4393
+ }
4394
+ });
4395
+ }
4396
+ };
4397
+ }
4398
+
4399
+ // src/lib/plugins/custom-binary.plugin.ts
4400
+ init_utils();
4401
+ var WRONG_NUMBER_ERR = `Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings`;
4402
+ var WRONG_CHARS_ERR = `Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option`;
4403
+ function isBadArgument(arg) {
4404
+ return !arg || !/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(arg);
4405
+ }
4406
+ function toBinaryConfig(input, allowUnsafe) {
4407
+ if (input.length < 1 || input.length > 2) {
4408
+ throw new GitPluginError(void 0, "binary", WRONG_NUMBER_ERR);
4409
+ }
4410
+ const isBad = input.some(isBadArgument);
4411
+ if (isBad) {
4412
+ if (allowUnsafe) {
4413
+ console.warn(WRONG_CHARS_ERR);
4414
+ } else {
4415
+ throw new GitPluginError(void 0, "binary", WRONG_CHARS_ERR);
4416
+ }
4417
+ }
4418
+ const [binary, prefix] = input;
4419
+ return {
4420
+ binary,
4421
+ prefix
4422
+ };
4423
+ }
4424
+ function customBinaryPlugin(plugins, input = ["git"], allowUnsafe = false) {
4425
+ let config = toBinaryConfig(asArray(input), allowUnsafe);
4426
+ plugins.on("binary", (input2) => {
4427
+ config = toBinaryConfig(asArray(input2), allowUnsafe);
4428
+ });
4429
+ plugins.append("spawn.binary", () => {
4430
+ return config.binary;
4431
+ });
4432
+ plugins.append("spawn.args", (data) => {
4433
+ return config.prefix ? [config.prefix, ...data] : data;
4434
+ });
4435
+ }
4436
+
4437
+ // src/lib/plugins/error-detection.plugin.ts
4438
+ init_git_error();
4439
+ function isTaskError(result) {
4440
+ return !!(result.exitCode && result.stdErr.length);
4441
+ }
4442
+ function getErrorMessage(result) {
4443
+ return Buffer.concat([...result.stdOut, ...result.stdErr]);
4444
+ }
4445
+ function errorDetectionHandler(overwrite = false, isError = isTaskError, errorMessage = getErrorMessage) {
4446
+ return (error, result) => {
4447
+ if (!overwrite && error || !isError(result)) {
4448
+ return error;
4449
+ }
4450
+ return errorMessage(result);
4451
+ };
4452
+ }
4453
+ function errorDetectionPlugin(config) {
4454
+ return {
4455
+ type: "task.error",
4456
+ action(data, context) {
4457
+ const error = config(data.error, {
4458
+ stdErr: context.stdErr,
4459
+ stdOut: context.stdOut,
4460
+ exitCode: context.exitCode
4461
+ });
4462
+ if (Buffer.isBuffer(error)) {
4463
+ return { error: new GitError(void 0, error.toString("utf-8")) };
4464
+ }
4465
+ return {
4466
+ error
4467
+ };
4468
+ }
4469
+ };
4470
+ }
4471
+
4472
+ // src/lib/plugins/plugin-store.ts
4473
+ init_utils();
4474
+ import { EventEmitter } from "node:events";
4475
+ var PluginStore = class {
4476
+ constructor() {
4477
+ this.plugins = /* @__PURE__ */ new Set();
4478
+ this.events = new EventEmitter();
4479
+ }
4480
+ on(type, listener) {
4481
+ this.events.on(type, listener);
4482
+ }
4483
+ reconfigure(type, data) {
4484
+ this.events.emit(type, data);
4485
+ }
4486
+ append(type, action) {
4487
+ const plugin = append(this.plugins, { type, action });
4488
+ return () => this.plugins.delete(plugin);
4489
+ }
4490
+ add(plugin) {
4491
+ const plugins = [];
4492
+ asArray(plugin).forEach((plugin2) => plugin2 && this.plugins.add(append(plugins, plugin2)));
4493
+ return () => {
4494
+ plugins.forEach((plugin2) => this.plugins.delete(plugin2));
4495
+ };
4496
+ }
4497
+ exec(type, data, context) {
4498
+ let output = data;
4499
+ const contextual = Object.freeze(Object.create(context));
4500
+ for (const plugin of this.plugins) {
4501
+ if (plugin.type === type) {
4502
+ output = plugin.action(output, contextual);
4503
+ }
4504
+ }
4505
+ return output;
4506
+ }
4507
+ };
4508
+
4509
+ // src/lib/plugins/progress-monitor-plugin.ts
4510
+ init_utils();
4511
+ function progressMonitorPlugin(progress) {
4512
+ const progressCommand = "--progress";
4513
+ const progressMethods = ["checkout", "clone", "fetch", "pull", "push"];
4514
+ const onProgress = {
4515
+ type: "spawn.after",
4516
+ action(_data, context) {
4517
+ var _a2;
4518
+ if (!context.commands.includes(progressCommand)) {
4519
+ return;
4520
+ }
4521
+ (_a2 = context.spawned.stderr) == null ? void 0 : _a2.on("data", (chunk) => {
4522
+ const message = /^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(chunk.toString("utf8"));
4523
+ if (!message) {
4524
+ return;
4525
+ }
4526
+ progress({
4527
+ method: context.method,
4528
+ stage: progressEventStage(message[1]),
4529
+ progress: asNumber(message[2]),
4530
+ processed: asNumber(message[3]),
4531
+ total: asNumber(message[4])
4532
+ });
4533
+ });
4534
+ }
4535
+ };
4536
+ const onArgs = {
4537
+ type: "spawn.args",
4538
+ action(args, context) {
4539
+ if (!progressMethods.includes(context.method)) {
4540
+ return args;
4541
+ }
4542
+ return including(args, progressCommand);
4543
+ }
4544
+ };
4545
+ return [onArgs, onProgress];
4546
+ }
4547
+ function progressEventStage(input) {
4548
+ return String(input.toLowerCase().split(" ", 1)) || "unknown";
4549
+ }
4550
+
4551
+ // src/lib/plugins/spawn-options-plugin.ts
4552
+ init_utils();
4553
+ function spawnOptionsPlugin(spawnOptions) {
4554
+ const options = pick(spawnOptions, ["uid", "gid"]);
4555
+ return {
4556
+ type: "spawn.options",
4557
+ action(data) {
4558
+ return __spreadValues(__spreadValues({}, options), data);
4559
+ }
4560
+ };
4561
+ }
4562
+
4563
+ // src/lib/plugins/timout-plugin.ts
4564
+ function timeoutPlugin({
4565
+ block,
4566
+ stdErr = true,
4567
+ stdOut = true
4568
+ }) {
4569
+ if (block > 0) {
4570
+ return {
4571
+ type: "spawn.after",
4572
+ action(_data, context) {
4573
+ var _a2, _b;
4574
+ let timeout;
4575
+ function wait() {
4576
+ timeout && clearTimeout(timeout);
4577
+ timeout = setTimeout(kill, block);
4578
+ }
4579
+ function stop() {
4580
+ var _a3, _b2;
4581
+ (_a3 = context.spawned.stdout) == null ? void 0 : _a3.off("data", wait);
4582
+ (_b2 = context.spawned.stderr) == null ? void 0 : _b2.off("data", wait);
4583
+ context.spawned.off("exit", stop);
4584
+ context.spawned.off("close", stop);
4585
+ timeout && clearTimeout(timeout);
4586
+ }
4587
+ function kill() {
4588
+ stop();
4589
+ context.kill(new GitPluginError(void 0, "timeout", `block timeout reached`));
4590
+ }
4591
+ stdOut && ((_a2 = context.spawned.stdout) == null ? void 0 : _a2.on("data", wait));
4592
+ stdErr && ((_b = context.spawned.stderr) == null ? void 0 : _b.on("data", wait));
4593
+ context.spawned.on("exit", stop);
4594
+ context.spawned.on("close", stop);
4595
+ wait();
4596
+ }
4597
+ };
4598
+ }
4599
+ }
4600
+
4601
+ // src/lib/plugins/suffix-paths.plugin.ts
4602
+ init_pathspec();
4603
+ function suffixPathsPlugin() {
4604
+ return {
4605
+ type: "spawn.args",
4606
+ action(data) {
4607
+ const prefix = [];
4608
+ let suffix;
4609
+ function append2(args) {
4610
+ (suffix = suffix || []).push(...args);
4611
+ }
4612
+ for (let i = 0; i < data.length; i++) {
4613
+ const param = data[i];
4614
+ if (isPathSpec(param)) {
4615
+ append2(toPaths(param));
4616
+ continue;
4617
+ }
4618
+ if (param === "--") {
4619
+ append2(
4620
+ data.slice(i + 1).flatMap((item) => isPathSpec(item) && toPaths(item) || item)
4621
+ );
4622
+ break;
4623
+ }
4624
+ prefix.push(param);
4625
+ }
4626
+ return !suffix ? prefix : [...prefix, "--", ...suffix.map(String)];
4627
+ }
4628
+ };
4629
+ }
4630
+
4631
+ // src/lib/git-factory.ts
4632
+ init_utils();
4633
+ var Git = require_git();
4634
+ function gitInstanceFactory(baseDir, options) {
4635
+ var _a2;
4636
+ const plugins = new PluginStore();
4637
+ const config = createInstanceConfig(
4638
+ baseDir && (typeof baseDir === "string" ? { baseDir } : baseDir) || {},
4639
+ options
4640
+ );
4641
+ if (!folderExists(config.baseDir)) {
4642
+ throw new GitConstructError(
4643
+ config,
4644
+ `Cannot use simple-git on a directory that does not exist`
4645
+ );
4646
+ }
4647
+ if (Array.isArray(config.config)) {
4648
+ plugins.add(commandConfigPrefixingPlugin(config.config));
4649
+ }
4650
+ plugins.add(blockUnsafeOperationsPlugin(config.unsafe));
4651
+ plugins.add(suffixPathsPlugin());
4652
+ plugins.add(completionDetectionPlugin(config.completion));
4653
+ config.abort && plugins.add(abortPlugin(config.abort));
4654
+ config.progress && plugins.add(progressMonitorPlugin(config.progress));
4655
+ config.timeout && plugins.add(timeoutPlugin(config.timeout));
4656
+ config.spawnOptions && plugins.add(spawnOptionsPlugin(config.spawnOptions));
4657
+ plugins.add(errorDetectionPlugin(errorDetectionHandler(true)));
4658
+ config.errors && plugins.add(errorDetectionPlugin(config.errors));
4659
+ customBinaryPlugin(plugins, config.binary, (_a2 = config.unsafe) == null ? void 0 : _a2.allowUnsafeCustomBinary);
4660
+ return new Git(config, plugins);
4661
+ }
4662
+
4663
+ // src/lib/runners/promise-wrapped.ts
4664
+ init_git_response_error();
4665
+ var functionNamesBuilderApi = ["customBinary", "env", "outputHandler", "silent"];
4666
+ var functionNamesPromiseApi = [
4667
+ "add",
4668
+ "addAnnotatedTag",
4669
+ "addConfig",
4670
+ "addRemote",
4671
+ "addTag",
4672
+ "applyPatch",
4673
+ "binaryCatFile",
4674
+ "branch",
4675
+ "branchLocal",
4676
+ "catFile",
4677
+ "checkIgnore",
4678
+ "checkIsRepo",
4679
+ "checkout",
4680
+ "checkoutBranch",
4681
+ "checkoutLatestTag",
4682
+ "checkoutLocalBranch",
4683
+ "clean",
4684
+ "clone",
4685
+ "commit",
4686
+ "cwd",
4687
+ "deleteLocalBranch",
4688
+ "deleteLocalBranches",
4689
+ "diff",
4690
+ "diffSummary",
4691
+ "exec",
4692
+ "fetch",
4693
+ "getRemotes",
4694
+ "init",
4695
+ "listConfig",
4696
+ "listRemote",
4697
+ "log",
4698
+ "merge",
4699
+ "mergeFromTo",
4700
+ "mirror",
4701
+ "mv",
4702
+ "pull",
4703
+ "push",
4704
+ "pushTags",
4705
+ "raw",
4706
+ "rebase",
4707
+ "remote",
4708
+ "removeRemote",
4709
+ "reset",
4710
+ "revert",
4711
+ "revparse",
4712
+ "rm",
4713
+ "rmKeepLocal",
4714
+ "show",
4715
+ "stash",
4716
+ "stashList",
4717
+ "status",
4718
+ "subModule",
4719
+ "submoduleAdd",
4720
+ "submoduleInit",
4721
+ "submoduleUpdate",
4722
+ "tag",
4723
+ "tags",
4724
+ "updateServerInfo"
4725
+ ];
4726
+ function gitP(...args) {
4727
+ let git;
4728
+ let chain = Promise.resolve();
4729
+ try {
4730
+ git = gitInstanceFactory(...args);
4731
+ } catch (e) {
4732
+ chain = Promise.reject(e);
4733
+ }
4734
+ function builderReturn() {
4735
+ return promiseApi;
4736
+ }
4737
+ function chainReturn() {
4738
+ return chain;
4739
+ }
4740
+ const promiseApi = [...functionNamesBuilderApi, ...functionNamesPromiseApi].reduce(
4741
+ (api, name) => {
4742
+ const isAsync = functionNamesPromiseApi.includes(name);
4743
+ const valid = isAsync ? asyncWrapper(name, git) : syncWrapper(name, git, api);
4744
+ const alternative = isAsync ? chainReturn : builderReturn;
4745
+ Object.defineProperty(api, name, {
4746
+ enumerable: false,
4747
+ configurable: false,
4748
+ value: git ? valid : alternative
4749
+ });
4750
+ return api;
4751
+ },
4752
+ {}
4753
+ );
4754
+ return promiseApi;
4755
+ function asyncWrapper(fn, git2) {
4756
+ return function(...args2) {
4757
+ if (typeof args2[args2.length] === "function") {
4758
+ throw new TypeError(
4759
+ "Promise interface requires that handlers are not supplied inline, trailing function not allowed in call to " + fn
4760
+ );
4761
+ }
4762
+ return chain.then(function() {
4763
+ return new Promise(function(resolve, reject) {
4764
+ const callback = (err, result) => {
4765
+ if (err) {
4766
+ return reject(toError(err));
4767
+ }
4768
+ resolve(result);
4769
+ };
4770
+ args2.push(callback);
4771
+ git2[fn].apply(git2, args2);
4772
+ });
4773
+ });
4774
+ };
4775
+ }
4776
+ function syncWrapper(fn, git2, api) {
4777
+ return (...args2) => {
4778
+ git2[fn](...args2);
4779
+ return api;
4780
+ };
4781
+ }
4782
+ }
4783
+ function toError(error) {
4784
+ if (error instanceof Error) {
4785
+ return error;
4786
+ }
4787
+ if (typeof error === "string") {
4788
+ return new Error(error);
4789
+ }
4790
+ return new GitResponseError(error);
4791
+ }
4792
+
4793
+ // src/esm.mjs
4794
+ var simpleGit = gitInstanceFactory;
4795
+ var esm_default = gitInstanceFactory;
4796
+ export {
4797
+ CheckRepoActions,
4798
+ CleanOptions,
4799
+ DiffNameStatus,
4800
+ GitConfigScope,
4801
+ GitConstructError,
4802
+ GitError,
4803
+ GitPluginError,
4804
+ GitResponseError,
4805
+ ResetMode,
4806
+ TaskConfigurationError,
4807
+ esm_default as default,
4808
+ gitP,
4809
+ grepQueryBuilder,
4810
+ pathspec,
4811
+ simpleGit
4812
+ };
4813
+ //# sourceMappingURL=index.js.map