@design-edito/tools 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. package/agnostic/arrays/dedupe/index.js +0 -2
  2. package/agnostic/arrays/find-duplicates/index.js +0 -2
  3. package/agnostic/arrays/is-array-of/index.js +2 -4
  4. package/agnostic/arrays/make/index.js +0 -2
  5. package/agnostic/arrays/random-pick/index.js +20 -5
  6. package/agnostic/arrays/shuffle/index.js +0 -2
  7. package/agnostic/booleans/is-falsy/index.js +10 -7
  8. package/agnostic/colors/channels/index.js +194 -12
  9. package/agnostic/colors/contrast/index.js +2 -13
  10. package/agnostic/colors/convert/index.js +553 -25
  11. package/agnostic/colors/distance/index.js +1 -10
  12. package/agnostic/colors/grayscale/index.js +6 -13
  13. package/agnostic/colors/invert/index.js +2 -14
  14. package/agnostic/colors/lerp/index.js +12 -19
  15. package/agnostic/colors/luminance/index.js +16 -10
  16. package/agnostic/colors/palette/index.js +1 -12
  17. package/agnostic/colors/rotate/index.js +36 -11
  18. package/agnostic/colors/tidy/index.js +55 -9
  19. package/agnostic/colors/typechecks/index.js +90 -14
  20. package/agnostic/colors/types.js +151 -4
  21. package/agnostic/css/bem/index.js +2 -9
  22. package/agnostic/css/generate-nice-color/index.js +0 -2
  23. package/agnostic/css/is-valid-css-class-name/index.js +5 -5
  24. package/agnostic/css/scale/index.js +2 -8
  25. package/agnostic/css/styles-set/index.js +1 -6
  26. package/agnostic/errors/register/index.js +0 -2
  27. package/agnostic/errors/unknown-to-string/index.js +7 -4
  28. package/agnostic/html/get-node-ancestors/index.js +18 -5
  29. package/agnostic/html/get-position-inside-parent/index.js +0 -2
  30. package/agnostic/html/hyper-json/cast/index.js +105 -22
  31. package/agnostic/html/hyper-json/index.js +16 -43
  32. package/agnostic/html/hyper-json/method/index.js +11 -4
  33. package/agnostic/html/hyper-json/serialize/index.js +67 -8
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +17 -22
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +31 -22
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +16 -22
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +39 -22
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +41 -22
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +31 -22
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +12 -22
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +42 -22
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +28 -22
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +26 -22
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +21 -22
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +55 -23
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +23 -22
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +68 -24
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +21 -22
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +34 -22
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +18 -22
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +19 -22
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +33 -22
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +12 -22
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +35 -22
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +16 -22
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +19 -22
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +68 -22
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +24 -22
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +12 -22
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +32 -22
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +12 -22
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +48 -22
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +31 -22
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +40 -22
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +48 -23
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +34 -22
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +28 -22
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +48 -22
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +170 -23
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +78 -22
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +20 -22
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +22 -22
  73. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +13 -22
  74. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +13 -22
  75. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +18 -22
  76. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +31 -22
  77. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +13 -22
  78. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +12 -22
  79. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +13 -22
  80. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +13 -22
  81. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +14 -22
  82. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +13 -22
  83. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +13 -22
  84. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +78 -22
  85. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +15 -22
  86. package/agnostic/html/hyper-json/smart-tags/index.js +28 -7
  87. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +14 -8
  88. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +11 -8
  89. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +13 -22
  90. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +24 -22
  91. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +20 -22
  92. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +15 -22
  93. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +47 -22
  94. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +22 -22
  95. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +11 -8
  96. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +19 -22
  97. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +15 -22
  98. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +38 -23
  99. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +19 -22
  100. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +19 -22
  101. package/agnostic/html/hyper-json/transformer/index.js +124 -6
  102. package/agnostic/html/hyper-json/tree/index.js +423 -22
  103. package/agnostic/html/hyper-json/types/index.js +16 -4
  104. package/agnostic/html/hyper-json/utils/index.js +426 -22
  105. package/agnostic/html/insert-node/index.js +14 -4
  106. package/agnostic/html/placeholders/index.js +0 -2
  107. package/agnostic/html/replace-in-element/index.js +1 -6
  108. package/agnostic/html/selector-to-element/index.js +2 -6
  109. package/agnostic/html/string-to-nodes/index.js +2 -6
  110. package/agnostic/misc/assert/index.js +8 -15
  111. package/agnostic/misc/cast/index.js +1 -6
  112. package/agnostic/misc/connection/index.js +2 -6
  113. package/agnostic/misc/crawler/index.js +1 -5
  114. package/agnostic/misc/crossenv/detect-runtime/index.js +8 -10
  115. package/agnostic/misc/crossenv/types.js +11 -4
  116. package/agnostic/misc/crossenv/window/index.js +22 -7
  117. package/agnostic/misc/data-size/index.js +0 -2
  118. package/agnostic/misc/is-constructor-function/index.js +4 -4
  119. package/agnostic/misc/is-nullish/index.js +8 -6
  120. package/agnostic/misc/logs/logger/index.js +0 -2
  121. package/agnostic/misc/logs/make-text-block/index.js +11 -4
  122. package/agnostic/misc/logs/styles/index.js +18 -5
  123. package/agnostic/misc/lorem-ipsum/index.js +2 -8
  124. package/agnostic/misc/normalize-extension/index.js +0 -2
  125. package/agnostic/misc/outcome/index.js +10 -6
  126. package/agnostic/numbers/absolute-modulo/index.js +4 -4
  127. package/agnostic/numbers/approximate-rational/index.js +0 -2
  128. package/agnostic/numbers/clamp/index.js +6 -4
  129. package/agnostic/numbers/geometric-progressions/index.js +14 -4
  130. package/agnostic/numbers/interpolate/index.js +0 -2
  131. package/agnostic/numbers/round/index.js +13 -6
  132. package/agnostic/objects/deep-get-property/index.js +1 -5
  133. package/agnostic/objects/enums/is-in-enum/index.js +9 -4
  134. package/agnostic/objects/flatten-getters/index.js +0 -2
  135. package/agnostic/objects/is-object/index.js +7 -5
  136. package/agnostic/objects/is-record/index.js +5 -4
  137. package/agnostic/objects/record-format/index.js +0 -2
  138. package/agnostic/objects/record-map/index.js +10 -4
  139. package/agnostic/objects/validation/index.js +0 -2
  140. package/agnostic/optim/memoize/index.js +0 -2
  141. package/agnostic/optim/throttle-debounce/index.js +0 -2
  142. package/agnostic/random/hex-char/index.js +7 -5
  143. package/agnostic/random/random/index.js +12 -5
  144. package/agnostic/random/uuid/index.js +11 -7
  145. package/agnostic/regexps/index.js +0 -2
  146. package/agnostic/sanitization/file-name/index.js +6 -4
  147. package/agnostic/sanitization/html/index.js +3 -7
  148. package/agnostic/sanitization/path/index.js +1 -5
  149. package/agnostic/sanitization/user-input/index.js +0 -2
  150. package/agnostic/strings/char-codes/index.js +0 -2
  151. package/agnostic/strings/matches/index.js +14 -6
  152. package/agnostic/strings/normalize-indent/index.js +0 -2
  153. package/agnostic/strings/parse-table/index.js +6 -11
  154. package/agnostic/strings/replace-all/index.js +13 -4
  155. package/agnostic/strings/to-alphanum/index.js +0 -2
  156. package/agnostic/strings/trim/index.js +7 -5
  157. package/agnostic/time/dates/format-date/index.js +0 -2
  158. package/agnostic/time/duration/index.js +0 -2
  159. package/agnostic/time/timeout/index.js +0 -2
  160. package/agnostic/time/transitions/index.js +1 -5
  161. package/agnostic/time/wait/index.js +6 -4
  162. package/components/Comp/index.js +0 -2
  163. package/node/@aws-s3/storage/directory/copy-dir/index.js +53 -5
  164. package/node/@aws-s3/storage/directory/list/index.js +22 -5
  165. package/node/@aws-s3/storage/directory/move-dir/index.js +66 -5
  166. package/node/@aws-s3/storage/directory/remove-dir/index.js +49 -5
  167. package/node/@aws-s3/storage/file/copy/index.js +34 -5
  168. package/node/@aws-s3/storage/file/download/index.js +20 -5
  169. package/node/@aws-s3/storage/file/exists/index.js +25 -5
  170. package/node/@aws-s3/storage/file/move/index.js +45 -5
  171. package/node/@aws-s3/storage/file/remove/index.js +25 -5
  172. package/node/@aws-s3/storage/file/stat/index.js +27 -5
  173. package/node/@aws-s3/storage/file/upload/index.js +45 -5
  174. package/node/@express/@multer/index.js +5 -12
  175. package/node/@google-cloud/storage/bucket/get-metadata/index.js +4 -11
  176. package/node/@google-cloud/storage/directory/copy-dir/index.js +26 -6
  177. package/node/@google-cloud/storage/directory/list/index.js +18 -6
  178. package/node/@google-cloud/storage/directory/move-dir/index.js +26 -6
  179. package/node/@google-cloud/storage/directory/remove-dir/index.js +22 -6
  180. package/node/@google-cloud/storage/file/copy/index.js +24 -6
  181. package/node/@google-cloud/storage/file/download/index.js +17 -6
  182. package/node/@google-cloud/storage/file/exists/index.js +14 -6
  183. package/node/@google-cloud/storage/file/generate-signed-url/index.js +4 -11
  184. package/node/@google-cloud/storage/file/get-metadata/index.js +4 -11
  185. package/node/@google-cloud/storage/file/get-permissions/index.js +4 -11
  186. package/node/@google-cloud/storage/file/move/index.js +26 -6
  187. package/node/@google-cloud/storage/file/remove/index.js +19 -6
  188. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +5 -16
  189. package/node/@google-cloud/storage/file/stat/index.js +21 -6
  190. package/node/@google-cloud/storage/file/update-metadata/index.js +4 -11
  191. package/node/@google-cloud/storage/file/upload/index.js +31 -6
  192. package/node/cloud-storage/clients/index.js +9 -7
  193. package/node/cloud-storage/operations/copy-dir/index.js +21 -26
  194. package/node/cloud-storage/operations/copy-file/index.js +12 -25
  195. package/node/cloud-storage/operations/download-file/index.js +12 -25
  196. package/node/cloud-storage/operations/exists-file/index.js +12 -25
  197. package/node/cloud-storage/operations/list-dir/index.js +12 -25
  198. package/node/cloud-storage/operations/move-dir/index.js +14 -27
  199. package/node/cloud-storage/operations/move-file/index.js +12 -25
  200. package/node/cloud-storage/operations/remove-dir/index.js +14 -27
  201. package/node/cloud-storage/operations/remove-file/index.js +12 -25
  202. package/node/cloud-storage/operations/stat-file/index.js +12 -25
  203. package/node/cloud-storage/operations/upload-file/index.js +12 -25
  204. package/node/encryption/@aes-256-gcm/buffer/index.js +7 -12
  205. package/node/encryption/@aes-256-gcm/uint8-array/index.js +36 -7
  206. package/node/encryption/key/index.js +0 -2
  207. package/node/files/is-in-directory/index.js +0 -2
  208. package/node/files/read-write/index.js +0 -2
  209. package/node/files/subpaths/index.js +3 -7
  210. package/node/ftps/directory/copy-dir/index.js +45 -6
  211. package/node/ftps/directory/list/index.js +12 -6
  212. package/node/ftps/directory/move-dir/index.js +25 -6
  213. package/node/ftps/directory/remove-dir/index.js +27 -6
  214. package/node/ftps/file/copy/index.js +30 -6
  215. package/node/ftps/file/download/index.js +15 -6
  216. package/node/ftps/file/exists/index.js +17 -6
  217. package/node/ftps/file/move/index.js +29 -6
  218. package/node/ftps/file/remove/index.js +25 -6
  219. package/node/ftps/file/stat/index.js +21 -6
  220. package/node/ftps/file/upload/index.js +30 -6
  221. package/node/images/create/index.js +1 -11
  222. package/node/images/format/index.js +87 -104
  223. package/node/images/metadata/index.js +1 -11
  224. package/node/images/transform/index.js +73 -130
  225. package/node/images/transform/operations/blur/index.js +12 -7
  226. package/node/images/transform/operations/brighten/index.js +12 -7
  227. package/node/images/transform/operations/extend/index.js +24 -14
  228. package/node/images/transform/operations/extract/index.js +17 -7
  229. package/node/images/transform/operations/flatten/index.js +19 -14
  230. package/node/images/transform/operations/flip/index.js +4 -4
  231. package/node/images/transform/operations/flop/index.js +4 -4
  232. package/node/images/transform/operations/hue/index.js +14 -7
  233. package/node/images/transform/operations/level/index.js +18 -7
  234. package/node/images/transform/operations/lighten/index.js +14 -7
  235. package/node/images/transform/operations/normalize/index.js +15 -7
  236. package/node/images/transform/operations/overlay/index.js +87 -14
  237. package/node/images/transform/operations/resize/index.js +45 -14
  238. package/node/images/transform/operations/rotate/index.js +19 -14
  239. package/node/images/transform/operations/saturate/index.js +16 -7
  240. package/node/images/types.js +27 -5
  241. package/node/images/utils/index.js +35 -13
  242. package/node/process/on-exit/index.js +0 -2
  243. package/node/process/prompt-continue/index.js +2 -1667
  244. package/node/process/spawner/index.js +8 -20
  245. package/node/sftp/directory/copy-dir/index.js +43 -6
  246. package/node/sftp/directory/list/index.js +12 -6
  247. package/node/sftp/directory/move-dir/index.js +22 -6
  248. package/node/sftp/directory/remove-dir/index.js +27 -6
  249. package/node/sftp/file/copy/index.js +28 -6
  250. package/node/sftp/file/download/index.js +15 -6
  251. package/node/sftp/file/exists/index.js +12 -6
  252. package/node/sftp/file/move/index.js +25 -6
  253. package/node/sftp/file/remove/index.js +18 -6
  254. package/node/sftp/file/stat/index.js +21 -6
  255. package/node/sftp/file/upload/index.js +22 -6
  256. package/package.json +1 -1
  257. package/chunks/chunk-2WSVYQ5Q.js +0 -77
  258. package/chunks/chunk-3MPXVP4L.js +0 -25
  259. package/chunks/chunk-4CIS3R7T.js +0 -10
  260. package/chunks/chunk-4WE2WEXL.js +0 -12
  261. package/chunks/chunk-54KPQCVI.js +0 -25
  262. package/chunks/chunk-5CFQCSKJ.js +0 -23
  263. package/chunks/chunk-5H3IRSOB.js +0 -8
  264. package/chunks/chunk-5NTPCRFH.js +0 -32
  265. package/chunks/chunk-5O52VUI6.js +0 -31
  266. package/chunks/chunk-5X76KDYN.js +0 -60
  267. package/chunks/chunk-65BFQP3T.js +0 -25
  268. package/chunks/chunk-66BURDRK.js +0 -29
  269. package/chunks/chunk-6BGIDRU5.js +0 -36
  270. package/chunks/chunk-6KOJFWH3.js +0 -47
  271. package/chunks/chunk-6XL25OZX.js +0 -12
  272. package/chunks/chunk-6YVXSCRH.js +0 -37
  273. package/chunks/chunk-75BICI4L.js +0 -20
  274. package/chunks/chunk-7B2E2NGH.js +0 -40
  275. package/chunks/chunk-AKNR3U25.js +0 -20
  276. package/chunks/chunk-AOEOW5XW.js +0 -40
  277. package/chunks/chunk-ASWI3EO6.js +0 -25
  278. package/chunks/chunk-ASXK7XCC.js +0 -18
  279. package/chunks/chunk-AV373PHY.js +0 -56
  280. package/chunks/chunk-AXMAF3J2.js +0 -38
  281. package/chunks/chunk-AYGAQQXD.js +0 -27
  282. package/chunks/chunk-BHGRXDTS.js +0 -28
  283. package/chunks/chunk-BQABPH3I.js +0 -31
  284. package/chunks/chunk-BQXTV2GG.js +0 -36
  285. package/chunks/chunk-BXFRBV67.js +0 -28
  286. package/chunks/chunk-D3ERTRDW.js +0 -17
  287. package/chunks/chunk-DBNCEHTT.js +0 -22
  288. package/chunks/chunk-DBZAJJUF.js +0 -39
  289. package/chunks/chunk-DNIOWD7K.js +0 -8
  290. package/chunks/chunk-DUCLFPGE.js +0 -78
  291. package/chunks/chunk-E6MSDKON.js +0 -13
  292. package/chunks/chunk-EBQRPRRC.js +0 -22
  293. package/chunks/chunk-EEPLTO3E.js +0 -31
  294. package/chunks/chunk-EPUHVR7J.js +0 -17
  295. package/chunks/chunk-FENXVJYO.js +0 -11
  296. package/chunks/chunk-FH74QWR6.js +0 -47
  297. package/chunks/chunk-FM3HGCFL.js +0 -56
  298. package/chunks/chunk-FSI422YG.js +0 -31
  299. package/chunks/chunk-FXISVWGE.js +0 -60
  300. package/chunks/chunk-H4PP6AHP.js +0 -15
  301. package/chunks/chunk-HC6ZOHCS.js +0 -14
  302. package/chunks/chunk-HEY7J6GI.js +0 -37
  303. package/chunks/chunk-HMPY32F7.js +0 -34
  304. package/chunks/chunk-HQLRJ7XW.js +0 -12
  305. package/chunks/chunk-HYPEWMYZ.js +0 -10
  306. package/chunks/chunk-IBQQCUYV.js +0 -36
  307. package/chunks/chunk-IK2S6ZYP.js +0 -29
  308. package/chunks/chunk-ISJONMNA.js +0 -16
  309. package/chunks/chunk-J5D4OQ5U.js +0 -27
  310. package/chunks/chunk-JDINERKY.js +0 -107
  311. package/chunks/chunk-JFXEMK66.js +0 -33
  312. package/chunks/chunk-JN2UETL4.js +0 -32
  313. package/chunks/chunk-JU23NBY2.js +0 -22
  314. package/chunks/chunk-JVMFT3IT.js +0 -134
  315. package/chunks/chunk-K5UF634H.js +0 -25
  316. package/chunks/chunk-KRYJVBO5.js +0 -155
  317. package/chunks/chunk-L3OCRR3V.js +0 -25
  318. package/chunks/chunk-LFHDJTZJ.js +0 -12552
  319. package/chunks/chunk-MHNUCHPP.js +0 -26
  320. package/chunks/chunk-MSAAQTCE.js +0 -207
  321. package/chunks/chunk-MZYCKOLN.js +0 -103
  322. package/chunks/chunk-NEMHJSNM.js +0 -24
  323. package/chunks/chunk-NIIAUOBO.js +0 -36
  324. package/chunks/chunk-NR7STUY3.js +0 -28
  325. package/chunks/chunk-O66PEU62.js +0 -27
  326. package/chunks/chunk-O7UCJNVF.js +0 -38
  327. package/chunks/chunk-OF2W4ZRG.js +0 -53
  328. package/chunks/chunk-OGBUSUE6.js +0 -12
  329. package/chunks/chunk-OSAXBA7G.js +0 -10
  330. package/chunks/chunk-PTJO2TGI.js +0 -23
  331. package/chunks/chunk-PTN2V757.js +0 -35
  332. package/chunks/chunk-QEKI6WGQ.js +0 -27
  333. package/chunks/chunk-QFBVETGF.js +0 -34
  334. package/chunks/chunk-QHEWBOQI.js +0 -19
  335. package/chunks/chunk-QXAJXTXV.js +0 -19
  336. package/chunks/chunk-R3AWQXMY.js +0 -20
  337. package/chunks/chunk-RGQNRTBI.js +0 -55
  338. package/chunks/chunk-RNXRHCHQ.js +0 -633
  339. package/chunks/chunk-ROWPCMQY.js +0 -29
  340. package/chunks/chunk-RW7VAKJW.js +0 -15
  341. package/chunks/chunk-S2I77NEE.js +0 -35
  342. package/chunks/chunk-S6ZFFGWH.js +0 -34
  343. package/chunks/chunk-SBBIQ5UH.js +0 -36
  344. package/chunks/chunk-TAURL7GX.js +0 -2684
  345. package/chunks/chunk-TLWVLCIQ.js +0 -39
  346. package/chunks/chunk-TTJXJX4E.js +0 -48
  347. package/chunks/chunk-ULYGDEW2.js +0 -25
  348. package/chunks/chunk-UR5BUIPU.js +0 -26
  349. package/chunks/chunk-USIYKRNX.js +0 -20
  350. package/chunks/chunk-UZ4SWSOZ.js +0 -41
  351. package/chunks/chunk-VU6JYR3W.js +0 -64
  352. package/chunks/chunk-VYDUHDXW.js +0 -35
  353. package/chunks/chunk-W5A2TON3.js +0 -10
  354. package/chunks/chunk-W5VY535B.js +0 -37
  355. package/chunks/chunk-WNDMYNDU.js +0 -8
  356. package/chunks/chunk-XA4HVHJ4.js +0 -18
  357. package/chunks/chunk-XCBH6NLF.js +0 -42
  358. package/chunks/chunk-XEQ2PBT2.js +0 -20
  359. package/chunks/chunk-XIIJYVJZ.js +0 -15
  360. package/chunks/chunk-XNF5MLCQ.js +0 -14
  361. package/chunks/chunk-Y6FD4ASO.js +0 -32
  362. package/chunks/chunk-YA2YCZUF.js +0 -8
  363. package/chunks/chunk-YDIBNEGA.js +0 -9
  364. package/chunks/chunk-YOP6WVCF.js +0 -45
  365. package/chunks/chunk-ZKIQ753F.js +0 -23
  366. package/chunks/chunk-ZTPRFEPV.js +0 -32
@@ -1,1673 +1,8 @@
1
- import {
2
- ansiRegex
3
- } from "../../../chunks/chunk-4WE2WEXL.js";
4
- import {
5
- __commonJS,
6
- __require,
7
- __toESM
8
- } from "../../../chunks/chunk-XCBH6NLF.js";
9
-
10
- // node_modules/cli-width/index.js
11
- var require_cli_width = __commonJS({
12
- "node_modules/cli-width/index.js"(exports, module) {
13
- "use strict";
14
- module.exports = cliWidth2;
15
- function normalizeOpts(options) {
16
- const defaultOpts = {
17
- defaultWidth: 0,
18
- output: process.stdout,
19
- tty: __require("tty")
20
- };
21
- if (!options) {
22
- return defaultOpts;
23
- }
24
- Object.keys(defaultOpts).forEach(function(key) {
25
- if (!options[key]) {
26
- options[key] = defaultOpts[key];
27
- }
28
- });
29
- return options;
30
- }
31
- function cliWidth2(options) {
32
- const opts = normalizeOpts(options);
33
- if (opts.output.getWindowSize) {
34
- return opts.output.getWindowSize()[0] || opts.defaultWidth;
35
- }
36
- if (opts.tty.getWindowSize) {
37
- return opts.tty.getWindowSize()[1] || opts.defaultWidth;
38
- }
39
- if (opts.output.columns) {
40
- return opts.output.columns;
41
- }
42
- if (process.env.CLI_WIDTH) {
43
- const width = parseInt(process.env.CLI_WIDTH, 10);
44
- if (!isNaN(width) && width !== 0) {
45
- return width;
46
- }
47
- }
48
- return opts.defaultWidth;
49
- }
50
- }
51
- });
52
-
53
- // node_modules/@inquirer/core/node_modules/emoji-regex/index.js
54
- var require_emoji_regex = __commonJS({
55
- "node_modules/@inquirer/core/node_modules/emoji-regex/index.js"(exports, module) {
56
- module.exports = () => {
57
- return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
58
- };
59
- }
60
- });
61
-
62
- // node_modules/mute-stream/lib/index.js
63
- var require_lib = __commonJS({
64
- "node_modules/mute-stream/lib/index.js"(exports, module) {
65
- var Stream = __require("stream");
66
- var MuteStream2 = class extends Stream {
67
- #isTTY = null;
68
- constructor(opts = {}) {
69
- super(opts);
70
- this.writable = this.readable = true;
71
- this.muted = false;
72
- this.on("pipe", this._onpipe);
73
- this.replace = opts.replace;
74
- this._prompt = opts.prompt || null;
75
- this._hadControl = false;
76
- }
77
- #destSrc(key, def) {
78
- if (this._dest) {
79
- return this._dest[key];
80
- }
81
- if (this._src) {
82
- return this._src[key];
83
- }
84
- return def;
85
- }
86
- #proxy(method, ...args) {
87
- if (typeof this._dest?.[method] === "function") {
88
- this._dest[method](...args);
89
- }
90
- if (typeof this._src?.[method] === "function") {
91
- this._src[method](...args);
92
- }
93
- }
94
- get isTTY() {
95
- if (this.#isTTY !== null) {
96
- return this.#isTTY;
97
- }
98
- return this.#destSrc("isTTY", false);
99
- }
100
- // basically just get replace the getter/setter with a regular value
101
- set isTTY(val) {
102
- this.#isTTY = val;
103
- }
104
- get rows() {
105
- return this.#destSrc("rows");
106
- }
107
- get columns() {
108
- return this.#destSrc("columns");
109
- }
110
- mute() {
111
- this.muted = true;
112
- }
113
- unmute() {
114
- this.muted = false;
115
- }
116
- _onpipe(src) {
117
- this._src = src;
118
- }
119
- pipe(dest, options) {
120
- this._dest = dest;
121
- return super.pipe(dest, options);
122
- }
123
- pause() {
124
- if (this._src) {
125
- return this._src.pause();
126
- }
127
- }
128
- resume() {
129
- if (this._src) {
130
- return this._src.resume();
131
- }
132
- }
133
- write(c) {
134
- if (this.muted) {
135
- if (!this.replace) {
136
- return true;
137
- }
138
- if (c.match(/^\u001b/)) {
139
- if (c.indexOf(this._prompt) === 0) {
140
- c = c.slice(this._prompt.length);
141
- c = c.replace(/./g, this.replace);
142
- c = this._prompt + c;
143
- }
144
- this._hadControl = true;
145
- return this.emit("data", c);
146
- } else {
147
- if (this._prompt && this._hadControl && c.indexOf(this._prompt) === 0) {
148
- this._hadControl = false;
149
- this.emit("data", this._prompt);
150
- c = c.slice(this._prompt.length);
151
- }
152
- c = c.toString().replace(/./g, this.replace);
153
- }
154
- }
155
- this.emit("data", c);
156
- }
157
- end(c) {
158
- if (this.muted) {
159
- if (c && this.replace) {
160
- c = c.toString().replace(/./g, this.replace);
161
- } else {
162
- c = null;
163
- }
164
- }
165
- if (c) {
166
- this.emit("data", c);
167
- }
168
- this.emit("end");
169
- }
170
- destroy(...args) {
171
- return this.#proxy("destroy", ...args);
172
- }
173
- destroySoon(...args) {
174
- return this.#proxy("destroySoon", ...args);
175
- }
176
- close(...args) {
177
- return this.#proxy("close", ...args);
178
- }
179
- };
180
- module.exports = MuteStream2;
181
- }
182
- });
183
-
184
- // node_modules/@inquirer/core/dist/lib/key.js
185
- var isTabKey = (key) => key.name === "tab";
186
- var isEnterKey = (key) => key.name === "enter" || key.name === "return";
187
-
188
- // node_modules/@inquirer/core/dist/lib/errors.js
189
- var AbortPromptError = class extends Error {
190
- name = "AbortPromptError";
191
- message = "Prompt was aborted";
192
- constructor(options) {
193
- super();
194
- this.cause = options?.cause;
195
- }
196
- };
197
- var CancelPromptError = class extends Error {
198
- name = "CancelPromptError";
199
- message = "Prompt was canceled";
200
- };
201
- var ExitPromptError = class extends Error {
202
- name = "ExitPromptError";
203
- };
204
- var HookError = class extends Error {
205
- name = "HookError";
206
- };
207
- var ValidationError = class extends Error {
208
- name = "ValidationError";
209
- };
210
-
211
- // node_modules/@inquirer/core/dist/lib/use-state.js
212
- import { AsyncResource as AsyncResource2 } from "node:async_hooks";
213
-
214
- // node_modules/@inquirer/core/dist/lib/hook-engine.js
215
- import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
216
- var hookStorage = new AsyncLocalStorage();
217
- function createStore(rl) {
218
- const store = {
219
- rl,
220
- hooks: [],
221
- hooksCleanup: [],
222
- hooksEffect: [],
223
- index: 0,
224
- handleChange() {
225
- }
226
- };
227
- return store;
228
- }
229
- function withHooks(rl, cb) {
230
- const store = createStore(rl);
231
- return hookStorage.run(store, () => {
232
- function cycle(render) {
233
- store.handleChange = () => {
234
- store.index = 0;
235
- render();
236
- };
237
- store.handleChange();
238
- }
239
- return cb(cycle);
240
- });
241
- }
242
- function getStore() {
243
- const store = hookStorage.getStore();
244
- if (!store) {
245
- throw new HookError("[Inquirer] Hook functions can only be called from within a prompt");
246
- }
247
- return store;
248
- }
249
- function readline() {
250
- return getStore().rl;
251
- }
252
- function withUpdates(fn) {
253
- const wrapped = (...args) => {
254
- const store = getStore();
255
- let shouldUpdate = false;
256
- const oldHandleChange = store.handleChange;
257
- store.handleChange = () => {
258
- shouldUpdate = true;
259
- };
260
- const returnValue = fn(...args);
261
- if (shouldUpdate) {
262
- oldHandleChange();
263
- }
264
- store.handleChange = oldHandleChange;
265
- return returnValue;
266
- };
267
- return AsyncResource.bind(wrapped);
268
- }
269
- function withPointer(cb) {
270
- const store = getStore();
271
- const { index } = store;
272
- const pointer = {
273
- get() {
274
- return store.hooks[index];
275
- },
276
- set(value) {
277
- store.hooks[index] = value;
278
- },
279
- initialized: index in store.hooks
280
- };
281
- const returnValue = cb(pointer);
282
- store.index++;
283
- return returnValue;
284
- }
285
- function handleChange() {
286
- getStore().handleChange();
287
- }
288
- var effectScheduler = {
289
- queue(cb) {
290
- const store = getStore();
291
- const { index } = store;
292
- store.hooksEffect.push(() => {
293
- store.hooksCleanup[index]?.();
294
- const cleanFn = cb(readline());
295
- if (cleanFn != null && typeof cleanFn !== "function") {
296
- throw new ValidationError("useEffect return value must be a cleanup function or nothing.");
297
- }
298
- store.hooksCleanup[index] = cleanFn;
299
- });
300
- },
301
- run() {
302
- const store = getStore();
303
- withUpdates(() => {
304
- store.hooksEffect.forEach((effect) => {
305
- effect();
306
- });
307
- store.hooksEffect.length = 0;
308
- })();
309
- },
310
- clearAll() {
311
- const store = getStore();
312
- store.hooksCleanup.forEach((cleanFn) => {
313
- cleanFn?.();
314
- });
315
- store.hooksEffect.length = 0;
316
- store.hooksCleanup.length = 0;
317
- }
318
- };
319
-
320
- // node_modules/@inquirer/core/dist/lib/use-state.js
321
- function useState(defaultValue) {
322
- return withPointer((pointer) => {
323
- const setState = AsyncResource2.bind(function setState2(newValue) {
324
- if (pointer.get() !== newValue) {
325
- pointer.set(newValue);
326
- handleChange();
327
- }
328
- });
329
- if (pointer.initialized) {
330
- return [pointer.get(), setState];
331
- }
332
- const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;
333
- pointer.set(value);
334
- return [value, setState];
335
- });
336
- }
337
-
338
- // node_modules/@inquirer/core/dist/lib/use-effect.js
339
- function useEffect(cb, depArray) {
340
- withPointer((pointer) => {
341
- const oldDeps = pointer.get();
342
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));
343
- if (hasChanged) {
344
- effectScheduler.queue(cb);
345
- }
346
- pointer.set(depArray);
347
- });
348
- }
349
-
350
- // node_modules/@inquirer/core/dist/lib/theme.js
351
- import { styleText } from "node:util";
352
-
353
- // node_modules/@inquirer/figures/dist/index.js
354
- import process2 from "node:process";
355
- function isUnicodeSupported() {
356
- if (process2.platform !== "win32") {
357
- return process2.env["TERM"] !== "linux";
358
- }
359
- return Boolean(process2.env["WT_SESSION"]) || // Windows Terminal
360
- Boolean(process2.env["TERMINUS_SUBLIME"]) || // Terminus (<0.2.27)
361
- process2.env["ConEmuTask"] === "{cmd::Cmder}" || // ConEmu and cmder
362
- process2.env["TERM_PROGRAM"] === "Terminus-Sublime" || process2.env["TERM_PROGRAM"] === "vscode" || process2.env["TERM"] === "xterm-256color" || process2.env["TERM"] === "alacritty" || process2.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
363
- }
364
- var common = {
365
- circleQuestionMark: "(?)",
366
- questionMarkPrefix: "(?)",
367
- square: "\u2588",
368
- squareDarkShade: "\u2593",
369
- squareMediumShade: "\u2592",
370
- squareLightShade: "\u2591",
371
- squareTop: "\u2580",
372
- squareBottom: "\u2584",
373
- squareLeft: "\u258C",
374
- squareRight: "\u2590",
375
- squareCenter: "\u25A0",
376
- bullet: "\u25CF",
377
- dot: "\u2024",
378
- ellipsis: "\u2026",
379
- pointerSmall: "\u203A",
380
- triangleUp: "\u25B2",
381
- triangleUpSmall: "\u25B4",
382
- triangleDown: "\u25BC",
383
- triangleDownSmall: "\u25BE",
384
- triangleLeftSmall: "\u25C2",
385
- triangleRightSmall: "\u25B8",
386
- home: "\u2302",
387
- heart: "\u2665",
388
- musicNote: "\u266A",
389
- musicNoteBeamed: "\u266B",
390
- arrowUp: "\u2191",
391
- arrowDown: "\u2193",
392
- arrowLeft: "\u2190",
393
- arrowRight: "\u2192",
394
- arrowLeftRight: "\u2194",
395
- arrowUpDown: "\u2195",
396
- almostEqual: "\u2248",
397
- notEqual: "\u2260",
398
- lessOrEqual: "\u2264",
399
- greaterOrEqual: "\u2265",
400
- identical: "\u2261",
401
- infinity: "\u221E",
402
- subscriptZero: "\u2080",
403
- subscriptOne: "\u2081",
404
- subscriptTwo: "\u2082",
405
- subscriptThree: "\u2083",
406
- subscriptFour: "\u2084",
407
- subscriptFive: "\u2085",
408
- subscriptSix: "\u2086",
409
- subscriptSeven: "\u2087",
410
- subscriptEight: "\u2088",
411
- subscriptNine: "\u2089",
412
- oneHalf: "\xBD",
413
- oneThird: "\u2153",
414
- oneQuarter: "\xBC",
415
- oneFifth: "\u2155",
416
- oneSixth: "\u2159",
417
- oneEighth: "\u215B",
418
- twoThirds: "\u2154",
419
- twoFifths: "\u2156",
420
- threeQuarters: "\xBE",
421
- threeFifths: "\u2157",
422
- threeEighths: "\u215C",
423
- fourFifths: "\u2158",
424
- fiveSixths: "\u215A",
425
- fiveEighths: "\u215D",
426
- sevenEighths: "\u215E",
427
- line: "\u2500",
428
- lineBold: "\u2501",
429
- lineDouble: "\u2550",
430
- lineDashed0: "\u2504",
431
- lineDashed1: "\u2505",
432
- lineDashed2: "\u2508",
433
- lineDashed3: "\u2509",
434
- lineDashed4: "\u254C",
435
- lineDashed5: "\u254D",
436
- lineDashed6: "\u2574",
437
- lineDashed7: "\u2576",
438
- lineDashed8: "\u2578",
439
- lineDashed9: "\u257A",
440
- lineDashed10: "\u257C",
441
- lineDashed11: "\u257E",
442
- lineDashed12: "\u2212",
443
- lineDashed13: "\u2013",
444
- lineDashed14: "\u2010",
445
- lineDashed15: "\u2043",
446
- lineVertical: "\u2502",
447
- lineVerticalBold: "\u2503",
448
- lineVerticalDouble: "\u2551",
449
- lineVerticalDashed0: "\u2506",
450
- lineVerticalDashed1: "\u2507",
451
- lineVerticalDashed2: "\u250A",
452
- lineVerticalDashed3: "\u250B",
453
- lineVerticalDashed4: "\u254E",
454
- lineVerticalDashed5: "\u254F",
455
- lineVerticalDashed6: "\u2575",
456
- lineVerticalDashed7: "\u2577",
457
- lineVerticalDashed8: "\u2579",
458
- lineVerticalDashed9: "\u257B",
459
- lineVerticalDashed10: "\u257D",
460
- lineVerticalDashed11: "\u257F",
461
- lineDownLeft: "\u2510",
462
- lineDownLeftArc: "\u256E",
463
- lineDownBoldLeftBold: "\u2513",
464
- lineDownBoldLeft: "\u2512",
465
- lineDownLeftBold: "\u2511",
466
- lineDownDoubleLeftDouble: "\u2557",
467
- lineDownDoubleLeft: "\u2556",
468
- lineDownLeftDouble: "\u2555",
469
- lineDownRight: "\u250C",
470
- lineDownRightArc: "\u256D",
471
- lineDownBoldRightBold: "\u250F",
472
- lineDownBoldRight: "\u250E",
473
- lineDownRightBold: "\u250D",
474
- lineDownDoubleRightDouble: "\u2554",
475
- lineDownDoubleRight: "\u2553",
476
- lineDownRightDouble: "\u2552",
477
- lineUpLeft: "\u2518",
478
- lineUpLeftArc: "\u256F",
479
- lineUpBoldLeftBold: "\u251B",
480
- lineUpBoldLeft: "\u251A",
481
- lineUpLeftBold: "\u2519",
482
- lineUpDoubleLeftDouble: "\u255D",
483
- lineUpDoubleLeft: "\u255C",
484
- lineUpLeftDouble: "\u255B",
485
- lineUpRight: "\u2514",
486
- lineUpRightArc: "\u2570",
487
- lineUpBoldRightBold: "\u2517",
488
- lineUpBoldRight: "\u2516",
489
- lineUpRightBold: "\u2515",
490
- lineUpDoubleRightDouble: "\u255A",
491
- lineUpDoubleRight: "\u2559",
492
- lineUpRightDouble: "\u2558",
493
- lineUpDownLeft: "\u2524",
494
- lineUpBoldDownBoldLeftBold: "\u252B",
495
- lineUpBoldDownBoldLeft: "\u2528",
496
- lineUpDownLeftBold: "\u2525",
497
- lineUpBoldDownLeftBold: "\u2529",
498
- lineUpDownBoldLeftBold: "\u252A",
499
- lineUpDownBoldLeft: "\u2527",
500
- lineUpBoldDownLeft: "\u2526",
501
- lineUpDoubleDownDoubleLeftDouble: "\u2563",
502
- lineUpDoubleDownDoubleLeft: "\u2562",
503
- lineUpDownLeftDouble: "\u2561",
504
- lineUpDownRight: "\u251C",
505
- lineUpBoldDownBoldRightBold: "\u2523",
506
- lineUpBoldDownBoldRight: "\u2520",
507
- lineUpDownRightBold: "\u251D",
508
- lineUpBoldDownRightBold: "\u2521",
509
- lineUpDownBoldRightBold: "\u2522",
510
- lineUpDownBoldRight: "\u251F",
511
- lineUpBoldDownRight: "\u251E",
512
- lineUpDoubleDownDoubleRightDouble: "\u2560",
513
- lineUpDoubleDownDoubleRight: "\u255F",
514
- lineUpDownRightDouble: "\u255E",
515
- lineDownLeftRight: "\u252C",
516
- lineDownBoldLeftBoldRightBold: "\u2533",
517
- lineDownLeftBoldRightBold: "\u252F",
518
- lineDownBoldLeftRight: "\u2530",
519
- lineDownBoldLeftBoldRight: "\u2531",
520
- lineDownBoldLeftRightBold: "\u2532",
521
- lineDownLeftRightBold: "\u252E",
522
- lineDownLeftBoldRight: "\u252D",
523
- lineDownDoubleLeftDoubleRightDouble: "\u2566",
524
- lineDownDoubleLeftRight: "\u2565",
525
- lineDownLeftDoubleRightDouble: "\u2564",
526
- lineUpLeftRight: "\u2534",
527
- lineUpBoldLeftBoldRightBold: "\u253B",
528
- lineUpLeftBoldRightBold: "\u2537",
529
- lineUpBoldLeftRight: "\u2538",
530
- lineUpBoldLeftBoldRight: "\u2539",
531
- lineUpBoldLeftRightBold: "\u253A",
532
- lineUpLeftRightBold: "\u2536",
533
- lineUpLeftBoldRight: "\u2535",
534
- lineUpDoubleLeftDoubleRightDouble: "\u2569",
535
- lineUpDoubleLeftRight: "\u2568",
536
- lineUpLeftDoubleRightDouble: "\u2567",
537
- lineUpDownLeftRight: "\u253C",
538
- lineUpBoldDownBoldLeftBoldRightBold: "\u254B",
539
- lineUpDownBoldLeftBoldRightBold: "\u2548",
540
- lineUpBoldDownLeftBoldRightBold: "\u2547",
541
- lineUpBoldDownBoldLeftRightBold: "\u254A",
542
- lineUpBoldDownBoldLeftBoldRight: "\u2549",
543
- lineUpBoldDownLeftRight: "\u2540",
544
- lineUpDownBoldLeftRight: "\u2541",
545
- lineUpDownLeftBoldRight: "\u253D",
546
- lineUpDownLeftRightBold: "\u253E",
547
- lineUpBoldDownBoldLeftRight: "\u2542",
548
- lineUpDownLeftBoldRightBold: "\u253F",
549
- lineUpBoldDownLeftBoldRight: "\u2543",
550
- lineUpBoldDownLeftRightBold: "\u2544",
551
- lineUpDownBoldLeftBoldRight: "\u2545",
552
- lineUpDownBoldLeftRightBold: "\u2546",
553
- lineUpDoubleDownDoubleLeftDoubleRightDouble: "\u256C",
554
- lineUpDoubleDownDoubleLeftRight: "\u256B",
555
- lineUpDownLeftDoubleRightDouble: "\u256A",
556
- lineCross: "\u2573",
557
- lineBackslash: "\u2572",
558
- lineSlash: "\u2571"
559
- };
560
- var specialMainSymbols = {
561
- tick: "\u2714",
562
- info: "\u2139",
563
- warning: "\u26A0",
564
- cross: "\u2718",
565
- squareSmall: "\u25FB",
566
- squareSmallFilled: "\u25FC",
567
- circle: "\u25EF",
568
- circleFilled: "\u25C9",
569
- circleDotted: "\u25CC",
570
- circleDouble: "\u25CE",
571
- circleCircle: "\u24DE",
572
- circleCross: "\u24E7",
573
- circlePipe: "\u24BE",
574
- radioOn: "\u25C9",
575
- radioOff: "\u25EF",
576
- checkboxOn: "\u2612",
577
- checkboxOff: "\u2610",
578
- checkboxCircleOn: "\u24E7",
579
- checkboxCircleOff: "\u24BE",
580
- pointer: "\u276F",
581
- triangleUpOutline: "\u25B3",
582
- triangleLeft: "\u25C0",
583
- triangleRight: "\u25B6",
584
- lozenge: "\u25C6",
585
- lozengeOutline: "\u25C7",
586
- hamburger: "\u2630",
587
- smiley: "\u32E1",
588
- mustache: "\u0DF4",
589
- star: "\u2605",
590
- play: "\u25B6",
591
- nodejs: "\u2B22",
592
- oneSeventh: "\u2150",
593
- oneNinth: "\u2151",
594
- oneTenth: "\u2152"
595
- };
596
- var specialFallbackSymbols = {
597
- tick: "\u221A",
598
- info: "i",
599
- warning: "\u203C",
600
- cross: "\xD7",
601
- squareSmall: "\u25A1",
602
- squareSmallFilled: "\u25A0",
603
- circle: "( )",
604
- circleFilled: "(*)",
605
- circleDotted: "( )",
606
- circleDouble: "( )",
607
- circleCircle: "(\u25CB)",
608
- circleCross: "(\xD7)",
609
- circlePipe: "(\u2502)",
610
- radioOn: "(*)",
611
- radioOff: "( )",
612
- checkboxOn: "[\xD7]",
613
- checkboxOff: "[ ]",
614
- checkboxCircleOn: "(\xD7)",
615
- checkboxCircleOff: "( )",
616
- pointer: ">",
617
- triangleUpOutline: "\u2206",
618
- triangleLeft: "\u25C4",
619
- triangleRight: "\u25BA",
620
- lozenge: "\u2666",
621
- lozengeOutline: "\u25CA",
622
- hamburger: "\u2261",
623
- smiley: "\u263A",
624
- mustache: "\u250C\u2500\u2510",
625
- star: "\u2736",
626
- play: "\u25BA",
627
- nodejs: "\u2666",
628
- oneSeventh: "1/7",
629
- oneNinth: "1/9",
630
- oneTenth: "1/10"
631
- };
632
- var mainSymbols = {
633
- ...common,
634
- ...specialMainSymbols
635
- };
636
- var fallbackSymbols = {
637
- ...common,
638
- ...specialFallbackSymbols
639
- };
640
- var shouldUseMain = isUnicodeSupported();
641
- var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
642
- var dist_default = figures;
643
- var replacements = Object.entries(specialMainSymbols);
644
-
645
- // node_modules/@inquirer/core/dist/lib/theme.js
646
- var defaultTheme = {
647
- prefix: {
648
- idle: styleText("blue", "?"),
649
- done: styleText("green", dist_default.tick)
650
- },
651
- spinner: {
652
- interval: 80,
653
- frames: ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"].map((frame) => styleText("yellow", frame))
654
- },
655
- style: {
656
- answer: (text) => styleText("cyan", text),
657
- message: (text) => styleText("bold", text),
658
- error: (text) => styleText("red", `> ${text}`),
659
- defaultAnswer: (text) => styleText("dim", `(${text})`),
660
- help: (text) => styleText("dim", text),
661
- highlight: (text) => styleText("cyan", text),
662
- key: (text) => styleText("cyan", styleText("bold", `<${text}>`))
663
- }
664
- };
665
-
666
- // node_modules/@inquirer/core/dist/lib/make-theme.js
667
- function isPlainObject(value) {
668
- if (typeof value !== "object" || value === null)
669
- return false;
670
- let proto = value;
671
- while (Object.getPrototypeOf(proto) !== null) {
672
- proto = Object.getPrototypeOf(proto);
673
- }
674
- return Object.getPrototypeOf(value) === proto;
675
- }
676
- function deepMerge(...objects) {
677
- const output = {};
678
- for (const obj of objects) {
679
- for (const [key, value] of Object.entries(obj)) {
680
- const prevValue = output[key];
681
- output[key] = isPlainObject(prevValue) && isPlainObject(value) ? deepMerge(prevValue, value) : value;
682
- }
683
- }
684
- return output;
685
- }
686
- function makeTheme(...themes) {
687
- const themesToMerge = [
688
- defaultTheme,
689
- ...themes.filter((theme) => theme != null)
690
- ];
691
- return deepMerge(...themesToMerge);
692
- }
693
-
694
- // node_modules/@inquirer/core/dist/lib/use-prefix.js
695
- function usePrefix({ status = "idle", theme }) {
696
- const [showLoader, setShowLoader] = useState(false);
697
- const [tick, setTick] = useState(0);
698
- const { prefix, spinner } = makeTheme(theme);
699
- useEffect(() => {
700
- if (status === "loading") {
701
- let tickInterval;
702
- let inc = -1;
703
- const delayTimeout = setTimeout(() => {
704
- setShowLoader(true);
705
- tickInterval = setInterval(() => {
706
- inc = inc + 1;
707
- setTick(inc % spinner.frames.length);
708
- }, spinner.interval);
709
- }, 300);
710
- return () => {
711
- clearTimeout(delayTimeout);
712
- clearInterval(tickInterval);
713
- };
714
- } else {
715
- setShowLoader(false);
716
- }
717
- }, [status]);
718
- if (showLoader) {
719
- return spinner.frames[tick];
720
- }
721
- const iconName = status === "loading" ? "idle" : status;
722
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
723
- }
724
-
725
- // node_modules/@inquirer/core/dist/lib/use-ref.js
726
- function useRef(val) {
727
- return useState({ current: val })[0];
728
- }
729
-
730
- // node_modules/@inquirer/core/dist/lib/use-keypress.js
731
- function useKeypress(userHandler) {
732
- const signal = useRef(userHandler);
733
- signal.current = userHandler;
734
- useEffect((rl) => {
735
- let ignore = false;
736
- const handler = withUpdates((_input, event) => {
737
- if (ignore)
738
- return;
739
- void signal.current(event, rl);
740
- });
741
- rl.input.on("keypress", handler);
742
- return () => {
743
- ignore = true;
744
- rl.input.removeListener("keypress", handler);
745
- };
746
- }, []);
747
- }
748
-
749
- // node_modules/@inquirer/core/dist/lib/utils.js
750
- var import_cli_width = __toESM(require_cli_width(), 1);
751
-
752
- // node_modules/strip-ansi/index.js
753
- var regex = ansiRegex();
754
- function stripAnsi(string) {
755
- if (typeof string !== "string") {
756
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
757
- }
758
- return string.replace(regex, "");
759
- }
760
-
761
- // node_modules/get-east-asian-width/lookup.js
762
- function isAmbiguous(x) {
763
- return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
764
- }
765
- function isFullWidth(x) {
766
- return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
767
- }
768
- function isWide(x) {
769
- return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x >= 94192 && x <= 94198 || x >= 94208 && x <= 101589 || x >= 101631 && x <= 101662 || x >= 101760 && x <= 101874 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128728 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129674 || x >= 129678 && x <= 129734 || x === 129736 || x >= 129741 && x <= 129756 || x >= 129759 && x <= 129770 || x >= 129775 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
770
- }
771
-
772
- // node_modules/get-east-asian-width/index.js
773
- function validate(codePoint) {
774
- if (!Number.isSafeInteger(codePoint)) {
775
- throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
776
- }
777
- }
778
- function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
779
- validate(codePoint);
780
- if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
781
- return 2;
782
- }
783
- return 1;
784
- }
785
-
786
- // node_modules/@inquirer/core/node_modules/string-width/index.js
787
- var import_emoji_regex = __toESM(require_emoji_regex(), 1);
788
- var segmenter = new Intl.Segmenter();
789
- var defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
790
- function stringWidth(string, options = {}) {
791
- if (typeof string !== "string" || string.length === 0) {
792
- return 0;
793
- }
794
- const {
795
- ambiguousIsNarrow = true,
796
- countAnsiEscapeCodes = false
797
- } = options;
798
- if (!countAnsiEscapeCodes) {
799
- string = stripAnsi(string);
800
- }
801
- if (string.length === 0) {
802
- return 0;
803
- }
804
- let width = 0;
805
- const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
806
- for (const { segment: character } of segmenter.segment(string)) {
807
- const codePoint = character.codePointAt(0);
808
- if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
809
- continue;
810
- }
811
- if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
812
- continue;
813
- }
814
- if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
815
- continue;
816
- }
817
- if (codePoint >= 55296 && codePoint <= 57343) {
818
- continue;
819
- }
820
- if (codePoint >= 65024 && codePoint <= 65039) {
821
- continue;
822
- }
823
- if (defaultIgnorableCodePointRegex.test(character)) {
824
- continue;
825
- }
826
- if ((0, import_emoji_regex.default)().test(character)) {
827
- width += 2;
828
- continue;
829
- }
830
- width += eastAsianWidth(codePoint, eastAsianWidthOptions);
831
- }
832
- return width;
833
- }
834
-
835
- // node_modules/ansi-styles/index.js
836
- var ANSI_BACKGROUND_OFFSET = 10;
837
- var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
838
- var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
839
- var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
840
- var styles = {
841
- modifier: {
842
- reset: [0, 0],
843
- // 21 isn't widely supported and 22 does the same thing
844
- bold: [1, 22],
845
- dim: [2, 22],
846
- italic: [3, 23],
847
- underline: [4, 24],
848
- overline: [53, 55],
849
- inverse: [7, 27],
850
- hidden: [8, 28],
851
- strikethrough: [9, 29]
852
- },
853
- color: {
854
- black: [30, 39],
855
- red: [31, 39],
856
- green: [32, 39],
857
- yellow: [33, 39],
858
- blue: [34, 39],
859
- magenta: [35, 39],
860
- cyan: [36, 39],
861
- white: [37, 39],
862
- // Bright color
863
- blackBright: [90, 39],
864
- gray: [90, 39],
865
- // Alias of `blackBright`
866
- grey: [90, 39],
867
- // Alias of `blackBright`
868
- redBright: [91, 39],
869
- greenBright: [92, 39],
870
- yellowBright: [93, 39],
871
- blueBright: [94, 39],
872
- magentaBright: [95, 39],
873
- cyanBright: [96, 39],
874
- whiteBright: [97, 39]
875
- },
876
- bgColor: {
877
- bgBlack: [40, 49],
878
- bgRed: [41, 49],
879
- bgGreen: [42, 49],
880
- bgYellow: [43, 49],
881
- bgBlue: [44, 49],
882
- bgMagenta: [45, 49],
883
- bgCyan: [46, 49],
884
- bgWhite: [47, 49],
885
- // Bright color
886
- bgBlackBright: [100, 49],
887
- bgGray: [100, 49],
888
- // Alias of `bgBlackBright`
889
- bgGrey: [100, 49],
890
- // Alias of `bgBlackBright`
891
- bgRedBright: [101, 49],
892
- bgGreenBright: [102, 49],
893
- bgYellowBright: [103, 49],
894
- bgBlueBright: [104, 49],
895
- bgMagentaBright: [105, 49],
896
- bgCyanBright: [106, 49],
897
- bgWhiteBright: [107, 49]
898
- }
899
- };
900
- var modifierNames = Object.keys(styles.modifier);
901
- var foregroundColorNames = Object.keys(styles.color);
902
- var backgroundColorNames = Object.keys(styles.bgColor);
903
- var colorNames = [...foregroundColorNames, ...backgroundColorNames];
904
- function assembleStyles() {
905
- const codes = /* @__PURE__ */ new Map();
906
- for (const [groupName, group] of Object.entries(styles)) {
907
- for (const [styleName, style] of Object.entries(group)) {
908
- styles[styleName] = {
909
- open: `\x1B[${style[0]}m`,
910
- close: `\x1B[${style[1]}m`
911
- };
912
- group[styleName] = styles[styleName];
913
- codes.set(style[0], style[1]);
914
- }
915
- Object.defineProperty(styles, groupName, {
916
- value: group,
917
- enumerable: false
918
- });
919
- }
920
- Object.defineProperty(styles, "codes", {
921
- value: codes,
922
- enumerable: false
923
- });
924
- styles.color.close = "\x1B[39m";
925
- styles.bgColor.close = "\x1B[49m";
926
- styles.color.ansi = wrapAnsi16();
927
- styles.color.ansi256 = wrapAnsi256();
928
- styles.color.ansi16m = wrapAnsi16m();
929
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
930
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
931
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
932
- Object.defineProperties(styles, {
933
- rgbToAnsi256: {
934
- value: (red, green, blue) => {
935
- if (red === green && green === blue) {
936
- if (red < 8) {
937
- return 16;
938
- }
939
- if (red > 248) {
940
- return 231;
941
- }
942
- return Math.round((red - 8) / 247 * 24) + 232;
943
- }
944
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
945
- },
946
- enumerable: false
947
- },
948
- hexToRgb: {
949
- value: (hex) => {
950
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
951
- if (!matches) {
952
- return [0, 0, 0];
953
- }
954
- let [colorString] = matches;
955
- if (colorString.length === 3) {
956
- colorString = [...colorString].map((character) => character + character).join("");
957
- }
958
- const integer = Number.parseInt(colorString, 16);
959
- return [
960
- /* eslint-disable no-bitwise */
961
- integer >> 16 & 255,
962
- integer >> 8 & 255,
963
- integer & 255
964
- /* eslint-enable no-bitwise */
965
- ];
966
- },
967
- enumerable: false
968
- },
969
- hexToAnsi256: {
970
- value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
971
- enumerable: false
972
- },
973
- ansi256ToAnsi: {
974
- value: (code) => {
975
- if (code < 8) {
976
- return 30 + code;
977
- }
978
- if (code < 16) {
979
- return 90 + (code - 8);
980
- }
981
- let red;
982
- let green;
983
- let blue;
984
- if (code >= 232) {
985
- red = ((code - 232) * 10 + 8) / 255;
986
- green = red;
987
- blue = red;
988
- } else {
989
- code -= 16;
990
- const remainder = code % 36;
991
- red = Math.floor(code / 36) / 5;
992
- green = Math.floor(remainder / 6) / 5;
993
- blue = remainder % 6 / 5;
994
- }
995
- const value = Math.max(red, green, blue) * 2;
996
- if (value === 0) {
997
- return 30;
998
- }
999
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
1000
- if (value === 2) {
1001
- result += 60;
1002
- }
1003
- return result;
1004
- },
1005
- enumerable: false
1006
- },
1007
- rgbToAnsi: {
1008
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
1009
- enumerable: false
1010
- },
1011
- hexToAnsi: {
1012
- value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
1013
- enumerable: false
1014
- }
1015
- });
1016
- return styles;
1017
- }
1018
- var ansiStyles = assembleStyles();
1019
- var ansi_styles_default = ansiStyles;
1020
-
1021
- // node_modules/@inquirer/core/node_modules/wrap-ansi/index.js
1022
- var ESCAPES = /* @__PURE__ */ new Set([
1023
- "\x1B",
1024
- "\x9B"
1025
- ]);
1026
- var END_CODE = 39;
1027
- var ANSI_ESCAPE_BELL = "\x07";
1028
- var ANSI_CSI = "[";
1029
- var ANSI_OSC = "]";
1030
- var ANSI_SGR_TERMINATOR = "m";
1031
- var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
1032
- var wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
1033
- var wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
1034
- var wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
1035
- var wrapWord = (rows, word, columns) => {
1036
- const characters = [...word];
1037
- let isInsideEscape = false;
1038
- let isInsideLinkEscape = false;
1039
- let visible = stringWidth(stripAnsi(rows.at(-1)));
1040
- for (const [index, character] of characters.entries()) {
1041
- const characterLength = stringWidth(character);
1042
- if (visible + characterLength <= columns) {
1043
- rows[rows.length - 1] += character;
1044
- } else {
1045
- rows.push(character);
1046
- visible = 0;
1047
- }
1048
- if (ESCAPES.has(character)) {
1049
- isInsideEscape = true;
1050
- const ansiEscapeLinkCandidate = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join("");
1051
- isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
1052
- }
1053
- if (isInsideEscape) {
1054
- if (isInsideLinkEscape) {
1055
- if (character === ANSI_ESCAPE_BELL) {
1056
- isInsideEscape = false;
1057
- isInsideLinkEscape = false;
1058
- }
1059
- } else if (character === ANSI_SGR_TERMINATOR) {
1060
- isInsideEscape = false;
1061
- }
1062
- continue;
1063
- }
1064
- visible += characterLength;
1065
- if (visible === columns && index < characters.length - 1) {
1066
- rows.push("");
1067
- visible = 0;
1068
- }
1069
- }
1070
- if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
1071
- rows[rows.length - 2] += rows.pop();
1072
- }
1073
- };
1074
- var stringVisibleTrimSpacesRight = (string) => {
1075
- const words = string.split(" ");
1076
- let last = words.length;
1077
- while (last > 0) {
1078
- if (stringWidth(words[last - 1]) > 0) {
1079
- break;
1080
- }
1081
- last--;
1082
- }
1083
- if (last === words.length) {
1084
- return string;
1085
- }
1086
- return words.slice(0, last).join(" ") + words.slice(last).join("");
1087
- };
1088
- var exec = (string, columns, options = {}) => {
1089
- if (options.trim !== false && string.trim() === "") {
1090
- return "";
1091
- }
1092
- let returnValue = "";
1093
- let escapeCode;
1094
- let escapeUrl;
1095
- const lengths = wordLengths(string);
1096
- let rows = [""];
1097
- for (const [index, word] of string.split(" ").entries()) {
1098
- if (options.trim !== false) {
1099
- rows[rows.length - 1] = rows.at(-1).trimStart();
1100
- }
1101
- let rowLength = stringWidth(rows.at(-1));
1102
- if (index !== 0) {
1103
- if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
1104
- rows.push("");
1105
- rowLength = 0;
1106
- }
1107
- if (rowLength > 0 || options.trim === false) {
1108
- rows[rows.length - 1] += " ";
1109
- rowLength++;
1110
- }
1111
- }
1112
- if (options.hard && lengths[index] > columns) {
1113
- const remainingColumns = columns - rowLength;
1114
- const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
1115
- const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
1116
- if (breaksStartingNextLine < breaksStartingThisLine) {
1117
- rows.push("");
1118
- }
1119
- wrapWord(rows, word, columns);
1120
- continue;
1121
- }
1122
- if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
1123
- if (options.wordWrap === false && rowLength < columns) {
1124
- wrapWord(rows, word, columns);
1125
- continue;
1126
- }
1127
- rows.push("");
1128
- }
1129
- if (rowLength + lengths[index] > columns && options.wordWrap === false) {
1130
- wrapWord(rows, word, columns);
1131
- continue;
1132
- }
1133
- rows[rows.length - 1] += word;
1134
- }
1135
- if (options.trim !== false) {
1136
- rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
1137
- }
1138
- const preString = rows.join("\n");
1139
- const pre = [...preString];
1140
- let preStringIndex = 0;
1141
- for (const [index, character] of pre.entries()) {
1142
- returnValue += character;
1143
- if (ESCAPES.has(character)) {
1144
- const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
1145
- if (groups.code !== void 0) {
1146
- const code2 = Number.parseFloat(groups.code);
1147
- escapeCode = code2 === END_CODE ? void 0 : code2;
1148
- } else if (groups.uri !== void 0) {
1149
- escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
1150
- }
1151
- }
1152
- const code = ansi_styles_default.codes.get(Number(escapeCode));
1153
- if (pre[index + 1] === "\n") {
1154
- if (escapeUrl) {
1155
- returnValue += wrapAnsiHyperlink("");
1156
- }
1157
- if (escapeCode && code) {
1158
- returnValue += wrapAnsiCode(code);
1159
- }
1160
- } else if (character === "\n") {
1161
- if (escapeCode && code) {
1162
- returnValue += wrapAnsiCode(escapeCode);
1163
- }
1164
- if (escapeUrl) {
1165
- returnValue += wrapAnsiHyperlink(escapeUrl);
1166
- }
1167
- }
1168
- preStringIndex += character.length;
1169
- }
1170
- return returnValue;
1171
- };
1172
- function wrapAnsi(string, columns, options) {
1173
- return String(string).normalize().replaceAll("\r\n", "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
1174
- }
1175
-
1176
- // node_modules/@inquirer/core/dist/lib/utils.js
1177
- function breakLines(content, width) {
1178
- return content.split("\n").flatMap((line) => wrapAnsi(line, width, { trim: false, hard: true }).split("\n").map((str) => str.trimEnd())).join("\n");
1179
- }
1180
- function readlineWidth() {
1181
- return (0, import_cli_width.default)({ defaultWidth: 80, output: readline().output });
1182
- }
1183
-
1184
- // node_modules/@inquirer/core/dist/lib/create-prompt.js
1185
- var import_mute_stream = __toESM(require_lib(), 1);
1186
- import * as readline2 from "node:readline";
1187
- import { AsyncResource as AsyncResource3 } from "node:async_hooks";
1188
-
1189
- // node_modules/signal-exit/dist/mjs/signals.js
1190
- var signals = [];
1191
- signals.push("SIGHUP", "SIGINT", "SIGTERM");
1192
- if (process.platform !== "win32") {
1193
- signals.push(
1194
- "SIGALRM",
1195
- "SIGABRT",
1196
- "SIGVTALRM",
1197
- "SIGXCPU",
1198
- "SIGXFSZ",
1199
- "SIGUSR2",
1200
- "SIGTRAP",
1201
- "SIGSYS",
1202
- "SIGQUIT",
1203
- "SIGIOT"
1204
- // should detect profiler and enable/disable accordingly.
1205
- // see #21
1206
- // 'SIGPROF'
1207
- );
1208
- }
1209
- if (process.platform === "linux") {
1210
- signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
1211
- }
1212
-
1213
- // node_modules/signal-exit/dist/mjs/index.js
1214
- var processOk = (process4) => !!process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
1215
- var kExitEmitter = Symbol.for("signal-exit emitter");
1216
- var global = globalThis;
1217
- var ObjectDefineProperty = Object.defineProperty.bind(Object);
1218
- var Emitter = class {
1219
- emitted = {
1220
- afterExit: false,
1221
- exit: false
1222
- };
1223
- listeners = {
1224
- afterExit: [],
1225
- exit: []
1226
- };
1227
- count = 0;
1228
- id = Math.random();
1229
- constructor() {
1230
- if (global[kExitEmitter]) {
1231
- return global[kExitEmitter];
1232
- }
1233
- ObjectDefineProperty(global, kExitEmitter, {
1234
- value: this,
1235
- writable: false,
1236
- enumerable: false,
1237
- configurable: false
1238
- });
1239
- }
1240
- on(ev, fn) {
1241
- this.listeners[ev].push(fn);
1242
- }
1243
- removeListener(ev, fn) {
1244
- const list = this.listeners[ev];
1245
- const i = list.indexOf(fn);
1246
- if (i === -1) {
1247
- return;
1248
- }
1249
- if (i === 0 && list.length === 1) {
1250
- list.length = 0;
1251
- } else {
1252
- list.splice(i, 1);
1253
- }
1254
- }
1255
- emit(ev, code, signal) {
1256
- if (this.emitted[ev]) {
1257
- return false;
1258
- }
1259
- this.emitted[ev] = true;
1260
- let ret = false;
1261
- for (const fn of this.listeners[ev]) {
1262
- ret = fn(code, signal) === true || ret;
1263
- }
1264
- if (ev === "exit") {
1265
- ret = this.emit("afterExit", code, signal) || ret;
1266
- }
1267
- return ret;
1268
- }
1269
- };
1270
- var SignalExitBase = class {
1271
- };
1272
- var signalExitWrap = (handler) => {
1273
- return {
1274
- onExit(cb, opts) {
1275
- return handler.onExit(cb, opts);
1276
- },
1277
- load() {
1278
- return handler.load();
1279
- },
1280
- unload() {
1281
- return handler.unload();
1282
- }
1283
- };
1284
- };
1285
- var SignalExitFallback = class extends SignalExitBase {
1286
- onExit() {
1287
- return () => {
1288
- };
1289
- }
1290
- load() {
1291
- }
1292
- unload() {
1293
- }
1294
- };
1295
- var SignalExit = class extends SignalExitBase {
1296
- // "SIGHUP" throws an `ENOSYS` error on Windows,
1297
- // so use a supported signal instead
1298
- /* c8 ignore start */
1299
- #hupSig = process3.platform === "win32" ? "SIGINT" : "SIGHUP";
1300
- /* c8 ignore stop */
1301
- #emitter = new Emitter();
1302
- #process;
1303
- #originalProcessEmit;
1304
- #originalProcessReallyExit;
1305
- #sigListeners = {};
1306
- #loaded = false;
1307
- constructor(process4) {
1308
- super();
1309
- this.#process = process4;
1310
- this.#sigListeners = {};
1311
- for (const sig of signals) {
1312
- this.#sigListeners[sig] = () => {
1313
- const listeners = this.#process.listeners(sig);
1314
- let { count } = this.#emitter;
1315
- const p = process4;
1316
- if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
1317
- count += p.__signal_exit_emitter__.count;
1318
- }
1319
- if (listeners.length === count) {
1320
- this.unload();
1321
- const ret = this.#emitter.emit("exit", null, sig);
1322
- const s = sig === "SIGHUP" ? this.#hupSig : sig;
1323
- if (!ret)
1324
- process4.kill(process4.pid, s);
1325
- }
1326
- };
1327
- }
1328
- this.#originalProcessReallyExit = process4.reallyExit;
1329
- this.#originalProcessEmit = process4.emit;
1330
- }
1331
- onExit(cb, opts) {
1332
- if (!processOk(this.#process)) {
1333
- return () => {
1334
- };
1335
- }
1336
- if (this.#loaded === false) {
1337
- this.load();
1338
- }
1339
- const ev = opts?.alwaysLast ? "afterExit" : "exit";
1340
- this.#emitter.on(ev, cb);
1341
- return () => {
1342
- this.#emitter.removeListener(ev, cb);
1343
- if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
1344
- this.unload();
1345
- }
1346
- };
1347
- }
1348
- load() {
1349
- if (this.#loaded) {
1350
- return;
1351
- }
1352
- this.#loaded = true;
1353
- this.#emitter.count += 1;
1354
- for (const sig of signals) {
1355
- try {
1356
- const fn = this.#sigListeners[sig];
1357
- if (fn)
1358
- this.#process.on(sig, fn);
1359
- } catch (_) {
1360
- }
1361
- }
1362
- this.#process.emit = (ev, ...a) => {
1363
- return this.#processEmit(ev, ...a);
1364
- };
1365
- this.#process.reallyExit = (code) => {
1366
- return this.#processReallyExit(code);
1367
- };
1368
- }
1369
- unload() {
1370
- if (!this.#loaded) {
1371
- return;
1372
- }
1373
- this.#loaded = false;
1374
- signals.forEach((sig) => {
1375
- const listener = this.#sigListeners[sig];
1376
- if (!listener) {
1377
- throw new Error("Listener not defined for signal: " + sig);
1378
- }
1379
- try {
1380
- this.#process.removeListener(sig, listener);
1381
- } catch (_) {
1382
- }
1383
- });
1384
- this.#process.emit = this.#originalProcessEmit;
1385
- this.#process.reallyExit = this.#originalProcessReallyExit;
1386
- this.#emitter.count -= 1;
1387
- }
1388
- #processReallyExit(code) {
1389
- if (!processOk(this.#process)) {
1390
- return 0;
1391
- }
1392
- this.#process.exitCode = code || 0;
1393
- this.#emitter.emit("exit", this.#process.exitCode, null);
1394
- return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
1395
- }
1396
- #processEmit(ev, ...args) {
1397
- const og = this.#originalProcessEmit;
1398
- if (ev === "exit" && processOk(this.#process)) {
1399
- if (typeof args[0] === "number") {
1400
- this.#process.exitCode = args[0];
1401
- }
1402
- const ret = og.call(this.#process, ev, ...args);
1403
- this.#emitter.emit("exit", this.#process.exitCode, null);
1404
- return ret;
1405
- } else {
1406
- return og.call(this.#process, ev, ...args);
1407
- }
1408
- }
1409
- };
1410
- var process3 = globalThis.process;
1411
- var {
1412
- /**
1413
- * Called when the process is exiting, whether via signal, explicit
1414
- * exit, or running out of stuff to do.
1415
- *
1416
- * If the global process object is not suitable for instrumentation,
1417
- * then this will be a no-op.
1418
- *
1419
- * Returns a function that may be used to unload signal-exit.
1420
- */
1421
- onExit,
1422
- /**
1423
- * Load the listeners. Likely you never need to call this, unless
1424
- * doing a rather deep integration with signal-exit functionality.
1425
- * Mostly exposed for the benefit of testing.
1426
- *
1427
- * @internal
1428
- */
1429
- load,
1430
- /**
1431
- * Unload the listeners. Likely you never need to call this, unless
1432
- * doing a rather deep integration with signal-exit functionality.
1433
- * Mostly exposed for the benefit of testing.
1434
- *
1435
- * @internal
1436
- */
1437
- unload
1438
- } = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback());
1439
-
1440
- // node_modules/@inquirer/core/dist/lib/screen-manager.js
1441
- import { stripVTControlCharacters } from "node:util";
1442
-
1443
- // node_modules/@inquirer/ansi/dist/index.js
1444
- var ESC = "\x1B[";
1445
- var cursorLeft = ESC + "G";
1446
- var cursorHide = ESC + "?25l";
1447
- var cursorShow = ESC + "?25h";
1448
- var cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
1449
- var cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "";
1450
- var cursorTo = (x, y) => {
1451
- if (typeof y === "number" && !Number.isNaN(y)) {
1452
- return `${ESC}${y + 1};${x + 1}H`;
1453
- }
1454
- return `${ESC}${x + 1}G`;
1455
- };
1456
- var eraseLine = ESC + "2K";
1457
- var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
1458
-
1459
- // node_modules/@inquirer/core/dist/lib/screen-manager.js
1460
- var height = (content) => content.split("\n").length;
1461
- var lastLine = (content) => content.split("\n").pop() ?? "";
1462
- var ScreenManager = class {
1463
- // These variables are keeping information to allow correct prompt re-rendering
1464
- height = 0;
1465
- extraLinesUnderPrompt = 0;
1466
- cursorPos;
1467
- rl;
1468
- constructor(rl) {
1469
- this.rl = rl;
1470
- this.cursorPos = rl.getCursorPos();
1471
- }
1472
- write(content) {
1473
- this.rl.output.unmute();
1474
- this.rl.output.write(content);
1475
- this.rl.output.mute();
1476
- }
1477
- render(content, bottomContent = "") {
1478
- const promptLine = lastLine(content);
1479
- const rawPromptLine = stripVTControlCharacters(promptLine);
1480
- let prompt = rawPromptLine;
1481
- if (this.rl.line.length > 0) {
1482
- prompt = prompt.slice(0, -this.rl.line.length);
1483
- }
1484
- this.rl.setPrompt(prompt);
1485
- this.cursorPos = this.rl.getCursorPos();
1486
- const width = readlineWidth();
1487
- content = breakLines(content, width);
1488
- bottomContent = breakLines(bottomContent, width);
1489
- if (rawPromptLine.length % width === 0) {
1490
- content += "\n";
1491
- }
1492
- let output = content + (bottomContent ? "\n" + bottomContent : "");
1493
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
1494
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
1495
- if (bottomContentHeight > 0)
1496
- output += cursorUp(bottomContentHeight);
1497
- output += cursorTo(this.cursorPos.cols);
1498
- this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
1499
- this.extraLinesUnderPrompt = bottomContentHeight;
1500
- this.height = height(output);
1501
- }
1502
- checkCursorPos() {
1503
- const cursorPos = this.rl.getCursorPos();
1504
- if (cursorPos.cols !== this.cursorPos.cols) {
1505
- this.write(cursorTo(cursorPos.cols));
1506
- this.cursorPos = cursorPos;
1507
- }
1508
- }
1509
- done({ clearContent }) {
1510
- this.rl.setPrompt("");
1511
- let output = cursorDown(this.extraLinesUnderPrompt);
1512
- output += clearContent ? eraseLines(this.height) : "\n";
1513
- output += cursorShow;
1514
- this.write(output);
1515
- this.rl.close();
1516
- }
1517
- };
1518
-
1519
- // node_modules/@inquirer/core/dist/lib/promise-polyfill.js
1520
- var PromisePolyfill = class extends Promise {
1521
- // Available starting from Node 22
1522
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
1523
- static withResolver() {
1524
- let resolve;
1525
- let reject;
1526
- const promise = new Promise((res, rej) => {
1527
- resolve = res;
1528
- reject = rej;
1529
- });
1530
- return { promise, resolve, reject };
1531
- }
1532
- };
1533
-
1534
- // node_modules/@inquirer/core/dist/lib/create-prompt.js
1535
- function getCallSites() {
1536
- const _prepareStackTrace = Error.prepareStackTrace;
1537
- let result = [];
1538
- try {
1539
- Error.prepareStackTrace = (_, callSites) => {
1540
- const callSitesWithoutCurrent = callSites.slice(1);
1541
- result = callSitesWithoutCurrent;
1542
- return callSitesWithoutCurrent;
1543
- };
1544
- new Error().stack;
1545
- } catch {
1546
- return result;
1547
- }
1548
- Error.prepareStackTrace = _prepareStackTrace;
1549
- return result;
1550
- }
1551
- function createPrompt(view) {
1552
- const callSites = getCallSites();
1553
- const prompt = (config, context = {}) => {
1554
- const { input = process.stdin, signal } = context;
1555
- const cleanups = /* @__PURE__ */ new Set();
1556
- const output = new import_mute_stream.default();
1557
- output.pipe(context.output ?? process.stdout);
1558
- const rl = readline2.createInterface({
1559
- terminal: true,
1560
- input,
1561
- output
1562
- });
1563
- const screen = new ScreenManager(rl);
1564
- const { promise, resolve, reject } = PromisePolyfill.withResolver();
1565
- const cancel = () => reject(new CancelPromptError());
1566
- if (signal) {
1567
- const abort = () => reject(new AbortPromptError({ cause: signal.reason }));
1568
- if (signal.aborted) {
1569
- abort();
1570
- return Object.assign(promise, { cancel });
1571
- }
1572
- signal.addEventListener("abort", abort);
1573
- cleanups.add(() => signal.removeEventListener("abort", abort));
1574
- }
1575
- cleanups.add(onExit((code, signal2) => {
1576
- reject(new ExitPromptError(`User force closed the prompt with ${code} ${signal2}`));
1577
- }));
1578
- const sigint = () => reject(new ExitPromptError(`User force closed the prompt with SIGINT`));
1579
- rl.on("SIGINT", sigint);
1580
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
1581
- const checkCursorPos = () => screen.checkCursorPos();
1582
- rl.input.on("keypress", checkCursorPos);
1583
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
1584
- return withHooks(rl, (cycle) => {
1585
- const hooksCleanup = AsyncResource3.bind(() => effectScheduler.clearAll());
1586
- rl.on("close", hooksCleanup);
1587
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
1588
- cycle(() => {
1589
- try {
1590
- const nextView = view(config, (value) => {
1591
- setImmediate(() => resolve(value));
1592
- });
1593
- if (nextView === void 0) {
1594
- const callerFilename = callSites[1]?.getFileName();
1595
- throw new Error(`Prompt functions must return a string.
1596
- at ${callerFilename}`);
1597
- }
1598
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
1599
- screen.render(content, bottomContent);
1600
- effectScheduler.run();
1601
- } catch (error) {
1602
- reject(error);
1603
- }
1604
- });
1605
- return Object.assign(promise.then((answer) => {
1606
- effectScheduler.clearAll();
1607
- return answer;
1608
- }, (error) => {
1609
- effectScheduler.clearAll();
1610
- throw error;
1611
- }).finally(() => {
1612
- cleanups.forEach((cleanup) => cleanup());
1613
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
1614
- output.end();
1615
- }).then(() => promise), { cancel });
1616
- });
1617
- };
1618
- return prompt;
1619
- }
1620
-
1621
- // node_modules/@inquirer/confirm/dist/index.js
1622
- function getBooleanValue(value, defaultValue) {
1623
- let answer = defaultValue !== false;
1624
- if (/^(y|yes)/i.test(value))
1625
- answer = true;
1626
- else if (/^(n|no)/i.test(value))
1627
- answer = false;
1628
- return answer;
1629
- }
1630
- function boolToString(value) {
1631
- return value ? "Yes" : "No";
1632
- }
1633
- var dist_default2 = createPrompt((config, done) => {
1634
- const { transformer = boolToString } = config;
1635
- const [status, setStatus] = useState("idle");
1636
- const [value, setValue] = useState("");
1637
- const theme = makeTheme(config.theme);
1638
- const prefix = usePrefix({ status, theme });
1639
- useKeypress((key, rl) => {
1640
- if (status !== "idle")
1641
- return;
1642
- if (isEnterKey(key)) {
1643
- const answer = getBooleanValue(value, config.default);
1644
- setValue(transformer(answer));
1645
- setStatus("done");
1646
- done(answer);
1647
- } else if (isTabKey(key)) {
1648
- const answer = boolToString(!getBooleanValue(value, config.default));
1649
- rl.clearLine(0);
1650
- rl.write(answer);
1651
- setValue(answer);
1652
- } else {
1653
- setValue(rl.line);
1654
- }
1655
- });
1656
- let formattedValue = value;
1657
- let defaultValue = "";
1658
- if (status === "done") {
1659
- formattedValue = theme.style.answer(value);
1660
- } else {
1661
- defaultValue = ` ${theme.style.defaultAnswer(config.default === false ? "y/N" : "Y/n")}`;
1662
- }
1663
- const message = theme.style.message(config.message, status);
1664
- return `${prefix} ${message}${defaultValue} ${formattedValue}`;
1665
- });
1666
-
1667
1
  // src/node/process/prompt-continue/index.ts
2
+ import * as inquirer from "@inquirer/prompts";
1668
3
  async function promptContinue(message, throws = false) {
1669
4
  console.log("");
1670
- const answer = await dist_default2({
5
+ const answer = await inquirer.confirm({
1671
6
  message: message ?? "Continue?",
1672
7
  default: false
1673
8
  });