@xframework-ca-test/cli 1.0.30 → 1.0.32

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 (308) hide show
  1. package/dist/customer-portal/android-chrome-192x192.png +0 -0
  2. package/dist/customer-portal/android-chrome-512x512.png +0 -0
  3. package/dist/customer-portal/apple-touch-icon.png +0 -0
  4. package/dist/customer-portal/assets/ActionLink-feb719a3.js +1 -0
  5. package/dist/customer-portal/assets/AdaptableCard-5bdf55ff.js +1 -0
  6. package/dist/customer-portal/assets/Alert-e6518529.js +1 -0
  7. package/dist/customer-portal/assets/Auth0Callback-a32aa0ee.js +1 -0
  8. package/dist/customer-portal/assets/BlankLayout-7d425a4f.js +1 -0
  9. package/dist/customer-portal/assets/Button-312a6bfe.js +1 -0
  10. package/dist/customer-portal/assets/Card-8badb238.js +1 -0
  11. package/dist/customer-portal/assets/Checkout-735fa664.js +1 -0
  12. package/dist/customer-portal/assets/ClassicLayout-43547087.js +1 -0
  13. package/dist/customer-portal/assets/Container-0271dbaa.js +1 -0
  14. package/dist/customer-portal/assets/CourseDetails-aa3fc18f.js +1 -0
  15. package/dist/customer-portal/assets/CourseService-150b9c3b.js +1 -0
  16. package/dist/customer-portal/assets/DeckedLayout-50b0b841.js +1 -0
  17. package/dist/customer-portal/assets/DocumentList-f286e322.js +367 -0
  18. package/dist/customer-portal/assets/FaqItems-f0ea3578.js +1 -0
  19. package/dist/customer-portal/assets/FormContainer-e0ad1074.js +1 -0
  20. package/dist/customer-portal/assets/HorizontalMenuContent-c2ce9ba4.js +1 -0
  21. package/dist/customer-portal/assets/Input-f9dc9df7.js +1 -0
  22. package/dist/customer-portal/assets/LogInAsUser-5301a711.js +1 -0
  23. package/dist/customer-portal/assets/LogInAsUserSuccess-c53d408d.js +1 -0
  24. package/dist/customer-portal/assets/Logo-aa883174.js +1 -0
  25. package/dist/customer-portal/assets/ModernLayout-fd6ab4e1.js +1 -0
  26. package/dist/customer-portal/assets/Password-6017abd1.js +1 -0
  27. package/dist/customer-portal/assets/PasswordInput-f6e74528.js +1 -0
  28. package/dist/customer-portal/assets/Preview-bcdcb9ef.js +1 -0
  29. package/dist/customer-portal/assets/Product-ed043f08.js +1 -0
  30. package/dist/customer-portal/assets/ProductsLayout-c61b7a8e.js +1 -0
  31. package/dist/customer-portal/assets/Profile-d747fa18.js +1 -0
  32. package/dist/customer-portal/assets/Roboto-300-18827349.woff +0 -0
  33. package/dist/customer-portal/assets/Roboto-300-1d8f5280.woff2 +0 -0
  34. package/dist/customer-portal/assets/Roboto-300-a6d343d4.ttf +0 -0
  35. package/dist/customer-portal/assets/Roboto-400-47107401.woff2 +0 -0
  36. package/dist/customer-portal/assets/Roboto-400-79e85140.ttf +0 -0
  37. package/dist/customer-portal/assets/Roboto-400-9ae9d654.woff +0 -0
  38. package/dist/customer-portal/assets/Roboto-500-4112fbc9.woff +0 -0
  39. package/dist/customer-portal/assets/Roboto-500-96025fe9.woff2 +0 -0
  40. package/dist/customer-portal/assets/Roboto-500-f205cc51.ttf +0 -0
  41. package/dist/customer-portal/assets/Roboto-700-7d0b991e.ttf +0 -0
  42. package/dist/customer-portal/assets/Roboto-700-8e44376b.woff2 +0 -0
  43. package/dist/customer-portal/assets/Roboto-700-b1767a0c.woff +0 -0
  44. package/dist/customer-portal/assets/SegmentItemOption-1228dbe0.js +1 -0
  45. package/dist/customer-portal/assets/Select-19bd23ac.js +27 -0
  46. package/dist/customer-portal/assets/SidePanelContent-0d8d0ddd.js +1 -0
  47. package/dist/customer-portal/assets/SimpleLayout-a34ce3d6.js +2 -0
  48. package/dist/customer-portal/assets/StackedSideLayout-d20fda92.js +1 -0
  49. package/dist/customer-portal/assets/SubscriptionService-ff0a4fe5.js +1 -0
  50. package/dist/customer-portal/assets/SvgIcon-8e59e50e.css +6 -0
  51. package/dist/customer-portal/assets/SvgIcon-e50d8824.js +1008 -0
  52. package/dist/customer-portal/assets/Switcher-4b56d286.js +1 -0
  53. package/dist/customer-portal/assets/Tag-0a3ddbe2.js +1 -0
  54. package/dist/customer-portal/assets/TicketService-0b9fd2cc.js +1 -0
  55. package/dist/customer-portal/assets/Upload-f16cbbc9.js +127 -0
  56. package/dist/customer-portal/assets/UserService-379fdae4.js +1 -0
  57. package/dist/customer-portal/assets/Views-7025458f.js +1 -0
  58. package/dist/customer-portal/assets/ar-bb9d99db.js +1 -0
  59. package/dist/customer-portal/assets/cloneDeep-958c9090.js +1 -0
  60. package/dist/customer-portal/assets/dash.all.min-5cea336e.js +21 -0
  61. package/dist/customer-portal/assets/dxicons-695e35c5.woff +0 -0
  62. package/dist/customer-portal/assets/dxicons-a7f2b877.woff2 +0 -0
  63. package/dist/customer-portal/assets/dxicons-ce18ad67.ttf +0 -0
  64. package/dist/customer-portal/assets/dxiconsmaterial-042942d9.woff2 +0 -0
  65. package/dist/customer-portal/assets/dxiconsmaterial-2ca243c8.woff +0 -0
  66. package/dist/customer-portal/assets/dxiconsmaterial-d53bccef.ttf +0 -0
  67. package/dist/customer-portal/assets/en-e8193568.js +1 -0
  68. package/dist/customer-portal/assets/es-74fe811a.js +1 -0
  69. package/dist/customer-portal/assets/get-e6d75ebc.js +1 -0
  70. package/dist/customer-portal/assets/hls-78bd63bc.js +40 -0
  71. package/dist/customer-portal/assets/index-108e74a4.js +1 -0
  72. package/dist/customer-portal/assets/index-21f8ea30.js +3146 -0
  73. package/dist/customer-portal/assets/index-39f1f77e.js +1 -0
  74. package/dist/customer-portal/assets/index-50d9ba0e.js +1 -0
  75. package/dist/customer-portal/assets/index-51020fda.js +1 -0
  76. package/dist/customer-portal/assets/index-59b78927.js +1 -0
  77. package/dist/customer-portal/assets/index-5ee26094.js +1 -0
  78. package/dist/customer-portal/assets/index-6300b1cb.js +1 -0
  79. package/dist/customer-portal/assets/index-64f43f5c.js +1 -0
  80. package/dist/customer-portal/assets/index-737fd7d3.js +173 -0
  81. package/dist/customer-portal/assets/index-7b067308.js +1 -0
  82. package/dist/customer-portal/assets/index-7fb11654.css +1 -0
  83. package/dist/customer-portal/assets/index-8017aaa8.js +1 -0
  84. package/dist/customer-portal/assets/index-91a81028.js +1 -0
  85. package/dist/customer-portal/assets/index-99f3e22d.js +1 -0
  86. package/dist/customer-portal/assets/index-a05b664a.js +9 -0
  87. package/dist/customer-portal/assets/index-b2e5d3b2.js +1 -0
  88. package/dist/customer-portal/assets/index-bba6cb11.js +1 -0
  89. package/dist/customer-portal/assets/index-cdf4c2fe.js +1 -0
  90. package/dist/customer-portal/assets/index-ce7c8371.js +9 -0
  91. package/dist/customer-portal/assets/index-d7b1d047.js +1 -0
  92. package/dist/customer-portal/assets/index-f3b18a56.js +1 -0
  93. package/dist/customer-portal/assets/index.esm-2becf208.js +4 -0
  94. package/dist/customer-portal/assets/index.esm-7fca4988.js +1 -0
  95. package/dist/customer-portal/assets/index.esm-d90c2f28.js +1 -0
  96. package/dist/customer-portal/assets/isEmpty-d6a6848e.js +1 -0
  97. package/dist/customer-portal/assets/mixin-cf90cd8a.js +43 -0
  98. package/dist/customer-portal/assets/moment-a9aaa855.js +10 -0
  99. package/dist/customer-portal/assets/myCourse-1e27ebf2.js +1 -0
  100. package/dist/customer-portal/assets/react-22b3ad73.js +32 -0
  101. package/dist/customer-portal/assets/react-27635538.js +27 -0
  102. package/dist/customer-portal/assets/react-35db633d.js +31 -0
  103. package/dist/customer-portal/assets/react-55737d69.js +44 -0
  104. package/dist/customer-portal/assets/react-5e997bd3.js +37 -0
  105. package/dist/customer-portal/assets/react-72b07884.js +16 -0
  106. package/dist/customer-portal/assets/react-a5b37028.js +29 -0
  107. package/dist/customer-portal/assets/react-cbdc2827.js +11 -0
  108. package/dist/customer-portal/assets/strongPassword-dc805a65.js +1 -0
  109. package/dist/customer-portal/assets/supportTicketLists-64ba33fc.js +1 -0
  110. package/dist/customer-portal/assets/ticketDetails-25fa14db.js +1 -0
  111. package/dist/customer-portal/assets/useControllableState-ed446800.js +1 -0
  112. package/dist/customer-portal/assets/useThemeClass-61b1bbbf.js +1 -0
  113. package/dist/customer-portal/assets/useTimeOutMessage-04464c25.js +1 -0
  114. package/dist/customer-portal/assets/warning-eb037686.js +1 -0
  115. package/dist/customer-portal/assets/zh-cn-9d3866aa.js +1 -0
  116. package/dist/customer-portal/browserconfig.xml +9 -0
  117. package/dist/customer-portal/config.js +12 -0
  118. package/dist/customer-portal/data/features.json +11423 -0
  119. package/dist/customer-portal/data/order-list.csv +15 -0
  120. package/dist/customer-portal/data/product-list.csv +13 -0
  121. package/dist/customer-portal/data/unemployment-by-county-2017.csv +3220 -0
  122. package/dist/customer-portal/favicon-16x16.png +0 -0
  123. package/dist/customer-portal/favicon-32x32.png +0 -0
  124. package/dist/customer-portal/favicon.ico +0 -0
  125. package/dist/customer-portal/img/avatars/thumb-1.jpg +0 -0
  126. package/dist/customer-portal/img/avatars/thumb-10.jpg +0 -0
  127. package/dist/customer-portal/img/avatars/thumb-11.jpg +0 -0
  128. package/dist/customer-portal/img/avatars/thumb-12.jpg +0 -0
  129. package/dist/customer-portal/img/avatars/thumb-13.jpg +0 -0
  130. package/dist/customer-portal/img/avatars/thumb-14.jpg +0 -0
  131. package/dist/customer-portal/img/avatars/thumb-15.jpg +0 -0
  132. package/dist/customer-portal/img/avatars/thumb-16.jpg +0 -0
  133. package/dist/customer-portal/img/avatars/thumb-2.jpg +0 -0
  134. package/dist/customer-portal/img/avatars/thumb-3.jpg +0 -0
  135. package/dist/customer-portal/img/avatars/thumb-4.jpg +0 -0
  136. package/dist/customer-portal/img/avatars/thumb-5.jpg +0 -0
  137. package/dist/customer-portal/img/avatars/thumb-6.jpg +0 -0
  138. package/dist/customer-portal/img/avatars/thumb-7.jpg +0 -0
  139. package/dist/customer-portal/img/avatars/thumb-8.jpg +0 -0
  140. package/dist/customer-portal/img/avatars/thumb-9.jpg +0 -0
  141. package/dist/customer-portal/img/countries/ar.png +0 -0
  142. package/dist/customer-portal/img/countries/cn.png +0 -0
  143. package/dist/customer-portal/img/countries/fr.png +0 -0
  144. package/dist/customer-portal/img/countries/jp.png +0 -0
  145. package/dist/customer-portal/img/countries/sp.png +0 -0
  146. package/dist/customer-portal/img/countries/us.png +0 -0
  147. package/dist/customer-portal/img/email/email-logo.png +0 -0
  148. package/dist/customer-portal/img/icons/caCharts.svg +5396 -0
  149. package/dist/customer-portal/img/icons/caCounts.svg +10950 -0
  150. package/dist/customer-portal/img/icons/caGrids.svg +11059 -0
  151. package/dist/customer-portal/img/icons/caMaps.svg +10944 -0
  152. package/dist/customer-portal/img/icons/caPipelines.svg +11008 -0
  153. package/dist/customer-portal/img/icons/caStatus.svg +16718 -0
  154. package/dist/customer-portal/img/icons/caTargets.svg +10977 -0
  155. package/dist/customer-portal/img/icons/caTasks.svg +10995 -0
  156. package/dist/customer-portal/img/logo/Group.png +0 -0
  157. package/dist/customer-portal/img/logo/aica.svg +16 -0
  158. package/dist/customer-portal/img/logo/logo-dark-full.png +0 -0
  159. package/dist/customer-portal/img/logo/logo-dark-streamline.png +0 -0
  160. package/dist/customer-portal/img/logo/logo-grey.png +0 -0
  161. package/dist/customer-portal/img/logo/logo-light-full.png +0 -0
  162. package/dist/customer-portal/img/logo/logo-light-streamline.png +0 -0
  163. package/dist/customer-portal/img/logo/logo.svg +1 -0
  164. package/dist/customer-portal/img/map/pin-dark.png +0 -0
  165. package/dist/customer-portal/img/map/pin-orange.png +0 -0
  166. package/dist/customer-portal/img/map/pin-red.png +0 -0
  167. package/dist/customer-portal/img/others/auth-cover-bg.jpg +0 -0
  168. package/dist/customer-portal/img/others/auth-side-bg.jpg +0 -0
  169. package/dist/customer-portal/img/others/docs/blank-dark.jpg +0 -0
  170. package/dist/customer-portal/img/others/docs/blank.jpg +0 -0
  171. package/dist/customer-portal/img/others/docs/classic-dark.jpg +0 -0
  172. package/dist/customer-portal/img/others/docs/classic.jpg +0 -0
  173. package/dist/customer-portal/img/others/docs/decked-dark.jpg +0 -0
  174. package/dist/customer-portal/img/others/docs/decked.jpg +0 -0
  175. package/dist/customer-portal/img/others/docs/modern-dark.jpg +0 -0
  176. package/dist/customer-portal/img/others/docs/modern.jpg +0 -0
  177. package/dist/customer-portal/img/others/docs/simple-dark.jpg +0 -0
  178. package/dist/customer-portal/img/others/docs/simple.jpg +0 -0
  179. package/dist/customer-portal/img/others/docs/stackedSide-dark.jpg +0 -0
  180. package/dist/customer-portal/img/others/docs/stackedSide.jpg +0 -0
  181. package/dist/customer-portal/img/others/img-1.jpg +0 -0
  182. package/dist/customer-portal/img/others/img-10.png +0 -0
  183. package/dist/customer-portal/img/others/img-11.jpg +0 -0
  184. package/dist/customer-portal/img/others/img-13.jpg +0 -0
  185. package/dist/customer-portal/img/others/img-14.jpg +0 -0
  186. package/dist/customer-portal/img/others/img-15.jpg +0 -0
  187. package/dist/customer-portal/img/others/img-16.jpg +0 -0
  188. package/dist/customer-portal/img/others/img-17.png +0 -0
  189. package/dist/customer-portal/img/others/img-2-dark.png +0 -0
  190. package/dist/customer-portal/img/others/img-2.png +0 -0
  191. package/dist/customer-portal/img/others/img-8.png +0 -0
  192. package/dist/customer-portal/img/others/img-9.png +0 -0
  193. package/dist/customer-portal/img/others/no-mail-selected-dark.png +0 -0
  194. package/dist/customer-portal/img/others/no-mail-selected.png +0 -0
  195. package/dist/customer-portal/img/others/no-notification.png +0 -0
  196. package/dist/customer-portal/img/others/pending-approval-dark.png +0 -0
  197. package/dist/customer-portal/img/others/pending-approval.png +0 -0
  198. package/dist/customer-portal/img/others/upload-dark.png +0 -0
  199. package/dist/customer-portal/img/others/upload.png +0 -0
  200. package/dist/customer-portal/img/others/welcome-dark.png +0 -0
  201. package/dist/customer-portal/img/others/welcome.png +0 -0
  202. package/dist/customer-portal/img/products/product-1-2.jpg +0 -0
  203. package/dist/customer-portal/img/products/product-1-3.jpg +0 -0
  204. package/dist/customer-portal/img/products/product-1-4.jpg +0 -0
  205. package/dist/customer-portal/img/products/product-1.jpg +0 -0
  206. package/dist/customer-portal/img/products/product-10.jpg +0 -0
  207. package/dist/customer-portal/img/products/product-11.jpg +0 -0
  208. package/dist/customer-portal/img/products/product-12.jpg +0 -0
  209. package/dist/customer-portal/img/products/product-2-2.jpg +0 -0
  210. package/dist/customer-portal/img/products/product-2.jpg +0 -0
  211. package/dist/customer-portal/img/products/product-3.jpg +0 -0
  212. package/dist/customer-portal/img/products/product-4.jpg +0 -0
  213. package/dist/customer-portal/img/products/product-5.jpg +0 -0
  214. package/dist/customer-portal/img/products/product-6.jpg +0 -0
  215. package/dist/customer-portal/img/products/product-7.jpg +0 -0
  216. package/dist/customer-portal/img/products/product-8.jpg +0 -0
  217. package/dist/customer-portal/img/products/product-9.jpg +0 -0
  218. package/dist/customer-portal/img/theme/bg_center_image.jpg +0 -0
  219. package/dist/customer-portal/img/theme/login_center.jpg +0 -0
  220. package/dist/customer-portal/img/theme/login_side.jpg +0 -0
  221. package/dist/customer-portal/img/theme/login_side_wide.jpg +0 -0
  222. package/dist/customer-portal/img/thumbs/adobe-xd.png +0 -0
  223. package/dist/customer-portal/img/thumbs/avalanche.png +0 -0
  224. package/dist/customer-portal/img/thumbs/bitcoin-cash.png +0 -0
  225. package/dist/customer-portal/img/thumbs/bitcoin-sv.png +0 -0
  226. package/dist/customer-portal/img/thumbs/bitcoin.png +0 -0
  227. package/dist/customer-portal/img/thumbs/cardano.png +0 -0
  228. package/dist/customer-portal/img/thumbs/chainlink.png +0 -0
  229. package/dist/customer-portal/img/thumbs/doge.png +0 -0
  230. package/dist/customer-portal/img/thumbs/drivers-license-back-dark.png +0 -0
  231. package/dist/customer-portal/img/thumbs/drivers-license-back.png +0 -0
  232. package/dist/customer-portal/img/thumbs/drivers-license-front-dark.png +0 -0
  233. package/dist/customer-portal/img/thumbs/drivers-license-front.png +0 -0
  234. package/dist/customer-portal/img/thumbs/dropbox.png +0 -0
  235. package/dist/customer-portal/img/thumbs/eos.png +0 -0
  236. package/dist/customer-portal/img/thumbs/ethereum.png +0 -0
  237. package/dist/customer-portal/img/thumbs/figma.png +0 -0
  238. package/dist/customer-portal/img/thumbs/github.png +0 -0
  239. package/dist/customer-portal/img/thumbs/gitlab.png +0 -0
  240. package/dist/customer-portal/img/thumbs/google-drive.png +0 -0
  241. package/dist/customer-portal/img/thumbs/help-center-category-0-dark.png +0 -0
  242. package/dist/customer-portal/img/thumbs/help-center-category-0.png +0 -0
  243. package/dist/customer-portal/img/thumbs/help-center-category-1-dark.png +0 -0
  244. package/dist/customer-portal/img/thumbs/help-center-category-1.png +0 -0
  245. package/dist/customer-portal/img/thumbs/help-center-category-2-dark.png +0 -0
  246. package/dist/customer-portal/img/thumbs/help-center-category-2.png +0 -0
  247. package/dist/customer-portal/img/thumbs/help-center-category-3-dark.png +0 -0
  248. package/dist/customer-portal/img/thumbs/help-center-category-3.png +0 -0
  249. package/dist/customer-portal/img/thumbs/help-center-category-4-dark.png +0 -0
  250. package/dist/customer-portal/img/thumbs/help-center-category-4.png +0 -0
  251. package/dist/customer-portal/img/thumbs/help-center-category-5-dark.png +0 -0
  252. package/dist/customer-portal/img/thumbs/help-center-category-5.png +0 -0
  253. package/dist/customer-portal/img/thumbs/help-center-category-6-dark.png +0 -0
  254. package/dist/customer-portal/img/thumbs/help-center-category-6.png +0 -0
  255. package/dist/customer-portal/img/thumbs/help-center-category-7-dark.png +0 -0
  256. package/dist/customer-portal/img/thumbs/help-center-category-7.png +0 -0
  257. package/dist/customer-portal/img/thumbs/hubspot.png +0 -0
  258. package/dist/customer-portal/img/thumbs/id-card-back-dark.png +0 -0
  259. package/dist/customer-portal/img/thumbs/id-card-back.png +0 -0
  260. package/dist/customer-portal/img/thumbs/id-card-front-dark.png +0 -0
  261. package/dist/customer-portal/img/thumbs/id-card-front.png +0 -0
  262. package/dist/customer-portal/img/thumbs/jira.png +0 -0
  263. package/dist/customer-portal/img/thumbs/layouts/blank-dark.jpg +0 -0
  264. package/dist/customer-portal/img/thumbs/layouts/blank.jpg +0 -0
  265. package/dist/customer-portal/img/thumbs/layouts/classic-dark.jpg +0 -0
  266. package/dist/customer-portal/img/thumbs/layouts/classic.jpg +0 -0
  267. package/dist/customer-portal/img/thumbs/layouts/decked-dark.jpg +0 -0
  268. package/dist/customer-portal/img/thumbs/layouts/decked.jpg +0 -0
  269. package/dist/customer-portal/img/thumbs/layouts/modern-dark.jpg +0 -0
  270. package/dist/customer-portal/img/thumbs/layouts/modern.jpg +0 -0
  271. package/dist/customer-portal/img/thumbs/layouts/simple-dark.jpg +0 -0
  272. package/dist/customer-portal/img/thumbs/layouts/simple.jpg +0 -0
  273. package/dist/customer-portal/img/thumbs/layouts/stackedSide-dark.jpg +0 -0
  274. package/dist/customer-portal/img/thumbs/layouts/stackedSide.jpg +0 -0
  275. package/dist/customer-portal/img/thumbs/litecoin.png +0 -0
  276. package/dist/customer-portal/img/thumbs/miota.png +0 -0
  277. package/dist/customer-portal/img/thumbs/monero.png +0 -0
  278. package/dist/customer-portal/img/thumbs/notion.png +0 -0
  279. package/dist/customer-portal/img/thumbs/passport-dark.png +0 -0
  280. package/dist/customer-portal/img/thumbs/passport-data-dark.png +0 -0
  281. package/dist/customer-portal/img/thumbs/passport-data.png +0 -0
  282. package/dist/customer-portal/img/thumbs/passport.png +0 -0
  283. package/dist/customer-portal/img/thumbs/polkadot.png +0 -0
  284. package/dist/customer-portal/img/thumbs/polygon.png +0 -0
  285. package/dist/customer-portal/img/thumbs/ripple.png +0 -0
  286. package/dist/customer-portal/img/thumbs/saleforce-crm.png +0 -0
  287. package/dist/customer-portal/img/thumbs/shiba-inu.png +0 -0
  288. package/dist/customer-portal/img/thumbs/sketch.png +0 -0
  289. package/dist/customer-portal/img/thumbs/slack.png +0 -0
  290. package/dist/customer-portal/img/thumbs/solana.png +0 -0
  291. package/dist/customer-portal/img/thumbs/stellar-lumens.png +0 -0
  292. package/dist/customer-portal/img/thumbs/tether-us.png +0 -0
  293. package/dist/customer-portal/img/thumbs/tron.png +0 -0
  294. package/dist/customer-portal/img/thumbs/zapier.png +0 -0
  295. package/dist/customer-portal/img/thumbs/zendesk.png +0 -0
  296. package/dist/customer-portal/img/video/bg-login.mp4 +0 -0
  297. package/dist/customer-portal/index.html +31 -0
  298. package/dist/customer-portal/logo192.png +0 -0
  299. package/dist/customer-portal/logo512.png +0 -0
  300. package/dist/customer-portal/manifest.json +20 -0
  301. package/dist/customer-portal/mstile-150x150.png +0 -0
  302. package/dist/customer-portal/robots.txt +3 -0
  303. package/dist/customer-portal/safari-pinned-tab.svg +70 -0
  304. package/dist/customer-portal/web.config +27 -0
  305. package/dist/ui/config.js +20 -16
  306. package/dist/ui/menudata/menus.json +606 -0
  307. package/index.bundle.js +72 -37
  308. package/package.json +1 -1
package/index.bundle.js CHANGED
@@ -1,33 +1,33 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var gc=Object.create;var Ui=Object.defineProperty;var mc=Object.getOwnPropertyDescriptor;var yc=Object.getOwnPropertyNames;var _c=Object.getPrototypeOf,bc=Object.prototype.hasOwnProperty;var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var xc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of yc(e))!bc.call(t,i)&&i!==r&&Ui(t,i,{get:()=>e[i],enumerable:!(n=mc(e,i))||n.enumerable});return t};var wc=(t,e,r)=>(r=t!=null?gc(_c(t)):{},xc(e||!t||!t.__esModule?Ui(r,"default",{value:t,enumerable:!0}):r,t));var nt=p(Gr=>{var Ot=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},Hr=class extends Ot{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Gr.CommanderError=Ot;Gr.InvalidArgumentError=Hr});var It=p(Kr=>{var{InvalidArgumentError:vc}=nt(),zr=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new vc(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Ec(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}Kr.Argument=zr;Kr.humanReadableArgName=Ec});var Jr=p(Vi=>{var{humanReadableArgName:Sc}=It(),Yr=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),o=e.createCommand(n).helpOption(!1);o.description(e._helpCommandDescription),i&&o.arguments(i),r.push(o)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(o=>!o.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let o;n?i?o=e.createOption(e._helpFlags,e._helpDescription):o=e.createOption(e._helpShortFlag,e._helpDescription):o=e.createOption(e._helpLongFlag,e._helpDescription),r.push(o)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(o=>!o.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(n=>Sc(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,o=2,s=2;function a(y,d){if(d){let m=`${y.padEnd(n+s)}${d}`;return r.wrap(m,i-o,n+s)}return y}function l(y){return y.join(`
3
- `).replace(/^/gm," ".repeat(o))}let c=[`Usage: ${r.commandUsage(e)}`,""],u=r.commandDescription(e);u.length>0&&(c=c.concat([r.wrap(u,i,0),""]));let f=r.visibleArguments(e).map(y=>a(r.argumentTerm(y),r.argumentDescription(y)));f.length>0&&(c=c.concat(["Arguments:",l(f),""]));let h=r.visibleOptions(e).map(y=>a(r.optionTerm(y),r.optionDescription(y)));if(h.length>0&&(c=c.concat(["Options:",l(h),""])),this.showGlobalOptions){let y=r.visibleGlobalOptions(e).map(d=>a(r.optionTerm(d),r.optionDescription(d)));y.length>0&&(c=c.concat(["Global Options:",l(y),""]))}let g=r.visibleCommands(e).map(y=>a(r.subcommandTerm(y),r.subcommandDescription(y)));return g.length>0&&(c=c.concat(["Commands:",l(g),""])),c.join(`
2
+ "use strict";var Ac=Object.create;var Qi=Object.defineProperty;var Ic=Object.getOwnPropertyDescriptor;var Oc=Object.getOwnPropertyNames;var Tc=Object.getPrototypeOf,Rc=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Pc=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oc(e))!Rc.call(t,i)&&i!==r&&Qi(t,i,{get:()=>e[i],enumerable:!(n=Ic(e,i))||n.enumerable});return t};var Fc=(t,e,r)=>(r=t!=null?Ac(Tc(t)):{},Pc(e||!t||!t.__esModule?Qi(r,"default",{value:t,enumerable:!0}):r,t));var st=m(tn=>{var Pt=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},en=class extends Pt{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};tn.CommanderError=Pt;tn.InvalidArgumentError=en});var Ft=m(nn=>{var{InvalidArgumentError:Lc}=st(),rn=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new Lc(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Dc(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}nn.Argument=rn;nn.humanReadableArgName=Dc});var sn=m(eo=>{var{humanReadableArgName:kc}=Ft(),on=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),o=e.createCommand(n).helpOption(!1);o.description(e._helpCommandDescription),i&&o.arguments(i),r.push(o)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(o=>!o.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let o;n?i?o=e.createOption(e._helpFlags,e._helpDescription):o=e.createOption(e._helpShortFlag,e._helpDescription):o=e.createOption(e._helpLongFlag,e._helpDescription),r.push(o)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(o=>!o.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e.registeredArguments.find(r=>r.description)?e.registeredArguments:[]}subcommandTerm(e){let r=e.registeredArguments.map(n=>kc(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,o=2,s=2;function a(_,g){if(g){let h=`${_.padEnd(n+s)}${g}`;return r.wrap(h,i-o,n+s)}return _}function l(_){return _.join(`
3
+ `).replace(/^/gm," ".repeat(o))}let c=[`Usage: ${r.commandUsage(e)}`,""],u=r.commandDescription(e);u.length>0&&(c=c.concat([r.wrap(u,i,0),""]));let f=r.visibleArguments(e).map(_=>a(r.argumentTerm(_),r.argumentDescription(_)));f.length>0&&(c=c.concat(["Arguments:",l(f),""]));let p=r.visibleOptions(e).map(_=>a(r.optionTerm(_),r.optionDescription(_)));if(p.length>0&&(c=c.concat(["Options:",l(p),""])),this.showGlobalOptions){let _=r.visibleGlobalOptions(e).map(g=>a(r.optionTerm(g),r.optionDescription(g)));_.length>0&&(c=c.concat(["Global Options:",l(_),""]))}let d=r.visibleCommands(e).map(_=>a(r.subcommandTerm(_),r.subcommandDescription(_)));return d.length>0&&(c=c.concat(["Commands:",l(d),""])),c.join(`
4
4
  `)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){let o=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",s=new RegExp(`[\\n][${o}]+`);if(e.match(s))return e;let a=r-n;if(a<i)return e;let l=e.slice(0,n),c=e.slice(n).replace(`\r
5
5
  `,`
6
- `),u=" ".repeat(n),h="\\s\u200B",g=new RegExp(`
7
- |.{1,${a-1}}([${h}]|$)|[^${h}]+?([${h}]|$)`,"g"),y=c.match(g)||[];return l+y.map((d,m)=>d===`
8
- `?"":(m>0?u:"")+d.trimEnd()).join(`
9
- `)}};Vi.Help=Yr});var Qr=p(Rt=>{var{InvalidArgumentError:Cc}=nt(),Xr=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=Wi(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new Cc(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return Ac(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Zr=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,o=i!==void 0?i:!1;return r.negate===(o===e)}};function Ac(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function Wi(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}Rt.Option=Xr;Rt.splitOptionFlags=Wi;Rt.DualOptions=Zr});var Gi=p(Hi=>{function Oc(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let o=1;t[i-1]===e[n-1]?o=0:o=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+o),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function Ic(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(s=>s.slice(2)));let n=[],i=3,o=.4;return e.forEach(s=>{if(s.length<=1)return;let a=Oc(t,s),l=Math.max(t.length,s.length);(l-a)/l>o&&(a<i?(i=a,n=[s]):a===i&&n.push(s))}),n.sort((s,a)=>s.localeCompare(a)),r&&(n=n.map(s=>`--${s}`)),n.length>1?`
6
+ `),u=" ".repeat(n),p="\\s\u200B",d=new RegExp(`
7
+ |.{1,${a-1}}([${p}]|$)|[^${p}]+?([${p}]|$)`,"g"),_=c.match(d)||[];return l+_.map((g,h)=>g===`
8
+ `?"":(h>0?u:"")+g.trimEnd()).join(`
9
+ `)}};eo.Help=on});var cn=m(Lt=>{var{InvalidArgumentError:Nc}=st(),an=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=to(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new Nc(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return Mc(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},ln=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,o=i!==void 0?i:!1;return r.negate===(o===e)}};function Mc(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function to(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}Lt.Option=an;Lt.splitOptionFlags=to;Lt.DualOptions=ln});var no=m(ro=>{function qc(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let o=1;t[i-1]===e[n-1]?o=0:o=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+o),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function Bc(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(s=>s.slice(2)));let n=[],i=3,o=.4;return e.forEach(s=>{if(s.length<=1)return;let a=qc(t,s),l=Math.max(t.length,s.length);(l-a)/l>o&&(a<i?(i=a,n=[s]):a===i&&n.push(s))}),n.sort((s,a)=>s.localeCompare(a)),r&&(n=n.map(s=>`--${s}`)),n.length>1?`
10
10
  (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
11
- (Did you mean ${n[0]}?)`:""}Hi.suggestSimilar=Ic});var Zi=p(Xi=>{var Rc=require("events").EventEmitter,en=require("child_process"),le=require("path"),tn=require("fs"),P=require("process"),{Argument:Tc,humanReadableArgName:Fc}=It(),{CommanderError:rn}=nt(),{Help:Pc}=Jr(),{Option:zi,splitOptionFlags:Lc,DualOptions:kc}=Qr(),{suggestSimilar:Ki}=Gi(),nn=class t extends Rc{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>P.stdout.write(r),writeErr:r=>P.stderr.write(r),getOutHelpWidth:()=>P.stdout.isTTY?P.stdout.columns:void 0,getErrHelpWidth:()=>P.stderr.isTTY?P.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let r=this;r;r=r.parent)e.push(r);return e}command(e,r,n){let i=r,o=n;typeof i=="object"&&i!==null&&(o=i,i=null),o=o||{};let[,s,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(s);return i&&(l.description(i),l._executableHandler=!0),o.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(o.noHelp||o.hidden),l._executableFile=o.executableFile||null,a&&l.arguments(a),this.commands.push(l),l.parent=this,l.copyInheritedSettings(this),i?this:l}createCommand(e){return new t(e)}createHelp(){return Object.assign(new Pc,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
- - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new Tc(e,r)}argument(e,r,n,i){let o=this.createArgument(e,r);return typeof n=="function"?o.default(i).argParser(n):o.default(n),this.addArgument(o),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
- Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new rn(e,r,n)),P.exit(e)}action(e){let r=n=>{let i=this.registeredArguments.length,o=n.slice(0,i);return this._storeOptionsAsProperties?o[i]=this:o[i]=this.opts(),o.push(this),e.apply(this,o)};return this._actionHandler=r,this}createOption(e,r){return new zi(e,r)}_callParseArg(e,r,n,i){try{return e.parseArg(r,n)}catch(o){if(o.code==="commander.invalidArgument"){let s=`${i} ${o.message}`;this.error(s,{exitCode:o.exitCode,code:o.code})}throw o}}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let o=e.long.replace(/^--no-/,"--");this._findOption(o)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(o,s,a)=>{o==null&&e.presetArg!==void 0&&(o=e.presetArg);let l=this.getOptionValue(n);o!==null&&e.parseArg?o=this._callParseArg(e,o,l,s):o!==null&&e.variadic&&(o=e._concatValue(o,l)),o==null&&(e.negate?o=!1:e.isBoolean()||e.optional?o=!0:o=""),this.setOptionValueWithSource(n,o,a)};return this.on("option:"+r,o=>{let s=`error: option '${e.flags}' argument '${o}' is invalid.`;i(o,s,"cli")}),e.envVar&&this.on("optionEnv:"+r,o=>{let s=`error: option '${e.flags}' value '${o}' from env '${e.envVar}' is invalid.`;i(o,s,"env")}),this}_optionEx(e,r,n,i,o){if(typeof r=="object"&&r instanceof zi)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(r,n);if(s.makeOptionMandatory(!!e.mandatory),typeof i=="function")s.default(o).argParser(i);else if(i instanceof RegExp){let a=i;i=(l,c)=>{let u=a.exec(l);return u?u[0]:c},s.default(o).argParser(i)}else s.default(i);return this.addOption(s)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=P.argv,P.versions&&P.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":P.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function o(u,f){let h=le.resolve(u,f);if(tn.existsSync(h))return h;if(i.includes(le.extname(f)))return;let g=i.find(y=>tn.existsSync(`${h}${y}`));if(g)return`${h}${g}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let u;try{u=tn.realpathSync(this._scriptPath)}catch{u=this._scriptPath}a=le.resolve(le.dirname(u),a)}if(a){let u=o(a,s);if(!u&&!e._executableFile&&this._scriptPath){let f=le.basename(this._scriptPath,le.extname(this._scriptPath));f!==this._name&&(u=o(a,`${f}-${e._name}`))}s=u||s}n=i.includes(le.extname(s));let l;P.platform!=="win32"?n?(r.unshift(s),r=Ji(P.execArgv).concat(r),l=en.spawn(P.argv[0],r,{stdio:"inherit"})):l=en.spawn(s,r,{stdio:"inherit"}):(r.unshift(s),r=Ji(P.execArgv).concat(r),l=en.spawn(P.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{P.on(f,()=>{l.killed===!1&&l.exitCode===null&&l.kill(f)})});let c=this._exitCallback;c?l.on("close",()=>{c(new rn(P.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):l.on("close",P.exit.bind(P)),l.on("error",u=>{if(u.code==="ENOENT"){let f=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",h=`'${s}' does not exist
11
+ (Did you mean ${n[0]}?)`:""}ro.suggestSimilar=Bc});var co=m(lo=>{var jc=require("events").EventEmitter,un=require("child_process"),ue=require("path"),fn=require("fs"),D=require("process"),{Argument:$c,humanReadableArgName:Uc}=Ft(),{CommanderError:dn}=st(),{Help:Vc}=sn(),{Option:io,splitOptionFlags:Wc,DualOptions:Hc}=cn(),{suggestSimilar:oo}=no(),hn=class t extends jc{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>D.stdout.write(r),writeErr:r=>D.stderr.write(r),getOutHelpWidth:()=>D.stdout.isTTY?D.stdout.columns:void 0,getErrHelpWidth:()=>D.stderr.isTTY?D.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let r=this;r;r=r.parent)e.push(r);return e}command(e,r,n){let i=r,o=n;typeof i=="object"&&i!==null&&(o=i,i=null),o=o||{};let[,s,a]=e.match(/([^ ]+) *(.*)/),l=this.createCommand(s);return i&&(l.description(i),l._executableHandler=!0),o.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(o.noHelp||o.hidden),l._executableFile=o.executableFile||null,a&&l.arguments(a),this.commands.push(l),l.parent=this,l.copyInheritedSettings(this),i?this:l}createCommand(e){return new t(e)}createHelp(){return Object.assign(new Vc,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
12
+ - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new $c(e,r)}argument(e,r,n,i){let o=this.createArgument(e,r);return typeof n=="function"?o.default(i).argParser(n):o.default(n),this.addArgument(o),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
13
+ Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new dn(e,r,n)),D.exit(e)}action(e){let r=n=>{let i=this.registeredArguments.length,o=n.slice(0,i);return this._storeOptionsAsProperties?o[i]=this:o[i]=this.opts(),o.push(this),e.apply(this,o)};return this._actionHandler=r,this}createOption(e,r){return new io(e,r)}_callParseArg(e,r,n,i){try{return e.parseArg(r,n)}catch(o){if(o.code==="commander.invalidArgument"){let s=`${i} ${o.message}`;this.error(s,{exitCode:o.exitCode,code:o.code})}throw o}}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let o=e.long.replace(/^--no-/,"--");this._findOption(o)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(o,s,a)=>{o==null&&e.presetArg!==void 0&&(o=e.presetArg);let l=this.getOptionValue(n);o!==null&&e.parseArg?o=this._callParseArg(e,o,l,s):o!==null&&e.variadic&&(o=e._concatValue(o,l)),o==null&&(e.negate?o=!1:e.isBoolean()||e.optional?o=!0:o=""),this.setOptionValueWithSource(n,o,a)};return this.on("option:"+r,o=>{let s=`error: option '${e.flags}' argument '${o}' is invalid.`;i(o,s,"cli")}),e.envVar&&this.on("optionEnv:"+r,o=>{let s=`error: option '${e.flags}' value '${o}' from env '${e.envVar}' is invalid.`;i(o,s,"env")}),this}_optionEx(e,r,n,i,o){if(typeof r=="object"&&r instanceof io)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(r,n);if(s.makeOptionMandatory(!!e.mandatory),typeof i=="function")s.default(o).argParser(i);else if(i instanceof RegExp){let a=i;i=(l,c)=>{let u=a.exec(l);return u?u[0]:c},s.default(o).argParser(i)}else s.default(i);return this.addOption(s)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=D.argv,D.versions&&D.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":D.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function o(u,f){let p=ue.resolve(u,f);if(fn.existsSync(p))return p;if(i.includes(ue.extname(f)))return;let d=i.find(_=>fn.existsSync(`${p}${_}`));if(d)return`${p}${d}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let u;try{u=fn.realpathSync(this._scriptPath)}catch{u=this._scriptPath}a=ue.resolve(ue.dirname(u),a)}if(a){let u=o(a,s);if(!u&&!e._executableFile&&this._scriptPath){let f=ue.basename(this._scriptPath,ue.extname(this._scriptPath));f!==this._name&&(u=o(a,`${f}-${e._name}`))}s=u||s}n=i.includes(ue.extname(s));let l;D.platform!=="win32"?n?(r.unshift(s),r=ao(D.execArgv).concat(r),l=un.spawn(D.argv[0],r,{stdio:"inherit"})):l=un.spawn(s,r,{stdio:"inherit"}):(r.unshift(s),r=ao(D.execArgv).concat(r),l=un.spawn(D.execPath,r,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{D.on(f,()=>{l.killed===!1&&l.exitCode===null&&l.kill(f)})});let c=this._exitCallback;c?l.on("close",()=>{c(new dn(D.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):l.on("close",D.exit.bind(D)),l.on("error",u=>{if(u.code==="ENOENT"){let f=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",p=`'${s}' does not exist
14
14
  - if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
15
15
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16
- - ${f}`;throw new Error(h)}else if(u.code==="EACCES")throw new Error(`'${s}' not executable`);if(!c)P.exit(1);else{let f=new rn(1,"commander.executeSubCommandAsync","(error)");f.nestedError=u,c(f)}}),this.runningCommand=l}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let o;return o=this._chainOrCallSubCommandHook(o,i,"preSubcommand"),o=this._chainOrCall(o,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),o}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,i,o)=>{let s=i;if(i!==null&&n.parseArg){let a=`error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;s=this._callParseArg(n,i,o,a)}return s};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((n,i)=>{let o=n.defaultValue;n.variadic?i<this.args.length?(o=this.args.slice(i),n.parseArg&&(o=o.reduce((s,a)=>e(n,a,s),n.defaultValue))):o===void 0&&(o=[]):i<this.args.length&&(o=this.args[i],n.parseArg&&(o=e(n,o,n.defaultValue))),r[i]=o}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return this._getCommandAndAncestors().reverse().filter(o=>o._lifeCycleHooks[r]!==void 0).forEach(o=>{o._lifeCycleHooks[r].forEach(s=>{i.push({hookedCommand:o,callback:s})})}),r==="postAction"&&i.reverse(),i.forEach(o=>{n=this._chainOrCall(n,()=>o.callback(o.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(o=>{i=this._chainOrCall(i,()=>o(this,r))}),i}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return Yi(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),Yi(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let s;return s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,()=>this._actionHandler(this.processedArgs)),this.parent&&(s=this._chainOrCall(s,()=>{this.parent.emit(o,e,r)})),s=this._chainOrCallHooks(s,"postAction"),s}if(this.parent&&this.parent.listenerCount(o))i(),this._processArguments(),this.parent.emit(o,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(o=>n.conflictsWith.includes(o.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],n=[],i=r,o=e.slice();function s(l){return l.length>1&&l[0]==="-"}let a=null;for(;o.length;){let l=o.shift();if(l==="--"){i===n&&i.push(l),i.push(...o);break}if(a&&!s(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,s(l)){let c=this._findOption(l);if(c){if(c.required){let u=o.shift();u===void 0&&this.optionMissingArgument(c),this.emit(`option:${c.name()}`,u)}else if(c.optional){let u=null;o.length>0&&!s(o[0])&&(u=o.shift()),this.emit(`option:${c.name()}`,u)}else this.emit(`option:${c.name()}`);a=c.variadic?c:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let c=this._findOption(`-${l[1]}`);if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${c.name()}`,l.slice(2)):(this.emit(`option:${c.name()}`),o.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let c=l.indexOf("="),u=this._findOption(l.slice(0,c));if(u&&(u.required||u.optional)){this.emit(`option:${u.name()}`,l.slice(c+1));continue}}if(s(l)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(l)){r.push(l),o.length>0&&n.push(...o);break}else if(l===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(l),o.length>0&&r.push(...o);break}else if(this._defaultCommandName){n.push(l),o.length>0&&n.push(...o);break}}if(this._passThroughOptions){i.push(l),o.length>0&&i.push(...o);break}i.push(l)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
16
+ - ${f}`;throw new Error(p)}else if(u.code==="EACCES")throw new Error(`'${s}' not executable`);if(!c)D.exit(1);else{let f=new dn(1,"commander.executeSubCommandAsync","(error)");f.nestedError=u,c(f)}}),this.runningCommand=l}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let o;return o=this._chainOrCallSubCommandHook(o,i,"preSubcommand"),o=this._chainOrCall(o,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),o}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,i,o)=>{let s=i;if(i!==null&&n.parseArg){let a=`error: command-argument value '${i}' is invalid for argument '${n.name()}'.`;s=this._callParseArg(n,i,o,a)}return s};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((n,i)=>{let o=n.defaultValue;n.variadic?i<this.args.length?(o=this.args.slice(i),n.parseArg&&(o=o.reduce((s,a)=>e(n,a,s),n.defaultValue))):o===void 0&&(o=[]):i<this.args.length&&(o=this.args[i],n.parseArg&&(o=e(n,o,n.defaultValue))),r[i]=o}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return this._getCommandAndAncestors().reverse().filter(o=>o._lifeCycleHooks[r]!==void 0).forEach(o=>{o._lifeCycleHooks[r].forEach(s=>{i.push({hookedCommand:o,callback:s})})}),r==="postAction"&&i.reverse(),i.forEach(o=>{n=this._chainOrCall(n,()=>o.callback(o.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(o=>{i=this._chainOrCall(i,()=>o(this,r))}),i}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return so(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),so(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let s;return s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,()=>this._actionHandler(this.processedArgs)),this.parent&&(s=this._chainOrCall(s,()=>{this.parent.emit(o,e,r)})),s=this._chainOrCallHooks(s,"postAction"),s}if(this.parent&&this.parent.listenerCount(o))i(),this._processArguments(),this.parent.emit(o,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(o=>n.conflictsWith.includes(o.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],n=[],i=r,o=e.slice();function s(l){return l.length>1&&l[0]==="-"}let a=null;for(;o.length;){let l=o.shift();if(l==="--"){i===n&&i.push(l),i.push(...o);break}if(a&&!s(l)){this.emit(`option:${a.name()}`,l);continue}if(a=null,s(l)){let c=this._findOption(l);if(c){if(c.required){let u=o.shift();u===void 0&&this.optionMissingArgument(c),this.emit(`option:${c.name()}`,u)}else if(c.optional){let u=null;o.length>0&&!s(o[0])&&(u=o.shift()),this.emit(`option:${c.name()}`,u)}else this.emit(`option:${c.name()}`);a=c.variadic?c:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let c=this._findOption(`-${l[1]}`);if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${c.name()}`,l.slice(2)):(this.emit(`option:${c.name()}`),o.unshift(`-${l.slice(2)}`));continue}}if(/^--[^=]+=/.test(l)){let c=l.indexOf("="),u=this._findOption(l.slice(0,c));if(u&&(u.required||u.optional)){this.emit(`option:${u.name()}`,l.slice(c+1));continue}}if(s(l)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(l)){r.push(l),o.length>0&&n.push(...o);break}else if(l===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(l),o.length>0&&r.push(...o);break}else if(this._defaultCommandName){n.push(l),o.length>0&&n.push(...o);break}}if(this._passThroughOptions){i.push(l),o.length>0&&i.push(...o);break}i.push(l)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
17
17
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18
18
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
19
- `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,o=n.code||"commander.error";this._exit(i,o,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in P.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,P.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new kc(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=s=>{let a=s.attributeName(),l=this.getOptionValue(a),c=this.options.find(f=>f.negate&&a===f.attributeName()),u=this.options.find(f=>!f.negate&&a===f.attributeName());return c&&(c.presetArg===void 0&&l===!1||c.presetArg!==void 0&&l===c.presetArg)?c:u||s},i=s=>{let a=n(s),l=a.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},o=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],o=this;do{let s=o.createHelp().visibleOptions(o).filter(a=>a.long).map(a=>a.long);i=i.concat(s),o=o.parent}while(o&&!o._enablePositionalOptions);r=Ki(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,n=r===1?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(o=>{i.push(o.name()),o.alias()&&i.push(o.alias())}),r=Ki(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
- `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(n=>Fc(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=le.basename(e,le.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(o=>o.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this._helpLongFlag&&this.emit(this._helpLongFlag),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(o=>o.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=Lc(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=P.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
19
+ `),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,o=n.code||"commander.error";this._exit(i,o,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in D.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,D.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new Hc(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=s=>{let a=s.attributeName(),l=this.getOptionValue(a),c=this.options.find(f=>f.negate&&a===f.attributeName()),u=this.options.find(f=>!f.negate&&a===f.attributeName());return c&&(c.presetArg===void 0&&l===!1||c.presetArg!==void 0&&l===c.presetArg)?c:u||s},i=s=>{let a=n(s),l=a.attributeName();return this.getOptionValueSource(l)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},o=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],o=this;do{let s=o.createHelp().visibleOptions(o).filter(a=>a.long).map(a=>a.long);i=i.concat(s),o=o.parent}while(o&&!o._enablePositionalOptions);r=oo(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,n=r===1?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(o=>{i.push(o.name()),o.alias()&&i.push(o.alias())}),r=oo(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
20
+ `),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(n=>Uc(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=ue.basename(e,ue.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(o=>o.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this._helpLongFlag&&this.emit(this._helpLongFlag),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(o=>o.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=Wc(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=D.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
21
21
  Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,o=>{let s;typeof r=="function"?s=r({error:o.error,command:o.command}):s=r,s&&o.write(`${s}
22
- `)}),this}};function Yi(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Ji(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",o;return(o=e.match(/^(--inspect(-brk)?)$/))!==null?r=o[1]:(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=o[1],/^\d+$/.test(o[3])?i=o[3]:n=o[3]):(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=o[1],n=o[3],i=o[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}Xi.Command=nn});var ro=p((J,to)=>{var{Argument:Dc}=It(),{Command:Qi}=Zi(),{CommanderError:Nc,InvalidArgumentError:eo}=nt(),{Help:Mc}=Jr(),{Option:qc}=Qr();J=to.exports=new Qi;J.program=J;J.Command=Qi;J.Option=qc;J.Argument=Dc;J.Help=Mc;J.CommanderError=Nc;J.InvalidArgumentError=eo;J.InvalidOptionArgumentError=eo});var on=p((v0,Bc)=>{Bc.exports={name:"@xframework-ca-test/cli",version:"1.0.30",description:"xFramework \u2014 one command to run your portal locally",main:"index.bundle.js",bin:{"xframework-cli":"./index.bundle.js"},scripts:{start:"node index.js start",build:"npx esbuild index.js --bundle --platform=node --minify --external:embedded-postgres --external:*.node --outfile=index.bundle.js",prepack:"node scripts/prepack.js",prepublishOnly:"npm run build","build:aws":"node scripts/build-aws.js"},dependencies:{"adm-zip":"^0.5.17",chalk:"^4.1.2",commander:"^11.0.0",dotenv:"^16.4.5","embedded-postgres":"^18.3.0-beta.16","extract-zip":"^2.0.1",open:"^8.4.2",ora:"^5.4.1"},devDependencies:{esbuild:"^0.20.0"},engines:{node:">=18.0.0"},optionalDependencies:{"@embedded-postgres/win32-x64":"*"}}});var io=p((E0,no)=>{"use strict";no.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var sn=p((S0,so)=>{var it=io(),oo={};for(let t of Object.keys(it))oo[it[t]]=t;var x={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};so.exports=x;for(let t of Object.keys(x)){if(!("channels"in x[t]))throw new Error("missing channels property: "+t);if(!("labels"in x[t]))throw new Error("missing channel labels property: "+t);if(x[t].labels.length!==x[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=x[t];delete x[t].channels,delete x[t].labels,Object.defineProperty(x[t],"channels",{value:e}),Object.defineProperty(x[t],"labels",{value:r})}x.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),o=Math.max(e,r,n),s=o-i,a,l;o===i?a=0:e===o?a=(r-n)/s:r===o?a=2+(n-e)/s:n===o&&(a=4+(e-r)/s),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+o)/2;return o===i?l=0:c<=.5?l=s/(o+i):l=s/(2-o-i),[a,l*100,c*100]};x.rgb.hsv=function(t){let e,r,n,i,o,s=t[0]/255,a=t[1]/255,l=t[2]/255,c=Math.max(s,a,l),u=c-Math.min(s,a,l),f=function(h){return(c-h)/6/u+1/2};return u===0?(i=0,o=0):(o=u/c,e=f(s),r=f(a),n=f(l),s===c?i=n-r:a===c?i=1/3+e-n:l===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,c*100]};x.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=x.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,o*100,n*100]};x.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),o=(1-e-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function jc(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}x.rgb.keyword=function(t){let e=oo[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(it)){let o=it[i],s=jc(t,o);s<r&&(r=s,n=i)}return n};x.keyword.rgb=function(t){return it[t]};x.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,o=e*.2126+r*.7152+n*.0722,s=e*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};x.rgb.lab=function(t){let e=x.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,s=500*(r-n),a=200*(n-i);return[o,s,a]};x.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,o,s;if(r===0)return s=n*255,[s,s,s];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,l=[0,0,0];for(let c=0;c<3;c++)o=e+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,l[c]=s*255;return l};x.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r);return[e,a*100,s*100]};x.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),l=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,l,s];case 1:return[a,n,s];case 2:return[s,n,l];case 3:return[s,a,n];case 4:return[l,s,n];case 5:return[n,s,a]}};x.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),o,s;s=(2-r)*n;let a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,o*100,s*100]};x.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*e),a=1-n;o=6*e-s,s&1&&(o=1-o);let l=r+o*(a-r),c,u,f;switch(s){default:case 6:case 0:c=a,u=l,f=r;break;case 1:c=l,u=a,f=r;break;case 2:c=r,u=a,f=l;break;case 3:c=r,u=l,f=a;break;case 4:c=l,u=r,f=a;break;case 5:c=a,u=r,f=l;break}return[c*255,u*255,f*255]};x.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,o=1-Math.min(1,e*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};x.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,o,s;return i=e*3.2406+r*-1.5372+n*-.4986,o=e*-.9689+r*1.8758+n*.0415,s=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};x.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,o=500*(e-r),s=200*(r-n);return[i,o,s]};x.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,o,s;o=(e+16)/116,i=r/500+o,s=o-n/200;let a=o**3,l=i**3,c=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};x.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(r*r+n*n);return[e,s,i]};x.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,o=r*Math.cos(i),s=r*Math.sin(i);return[e,o,s]};x.rgb.ansi16=function(t,e=null){let[r,n,i]=t,o=e===null?x.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(s+=60),s};x.hsv.ansi16=function(t){return x.rgb.ansi16(x.hsv.rgb(t),t[2])};x.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};x.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,o=(e>>2&1)*r*255;return[n,i,o]};x.ansi256.rgb=function(t){if(t>=232){let o=(t-232)*10+8;return[o,o,o]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};x.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};x.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),o=Math.min(Math.min(e,r),n),s=i-o,a,l;return s<1?a=o/(1-s):a=0,s<=0?l=0:i===e?l=(r-n)/s%6:i===r?l=2+(n-e)/s:l=4+(e-r)/s,l/=6,l%=1,[l*360,s*100,a*100]};x.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};x.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};x.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],o=e%1*6,s=o%1,a=1-s,l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};x.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};x.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};x.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};x.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,o=0;return i<1&&(o=(n-i)/(1-i)),[t[0],i*100,o*100]};x.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};x.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};x.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};x.gray.hsl=function(t){return[0,0,t[0]]};x.gray.hsv=x.gray.hsl;x.gray.hwb=function(t){return[0,100,t[0]]};x.gray.cmyk=function(t){return[0,0,0,t[0]]};x.gray.lab=function(t){return[t[0],0,0]};x.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};x.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var lo=p((C0,ao)=>{var Tt=sn();function $c(){let t={},e=Object.keys(Tt);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Uc(t){let e=$c(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Tt[n]);for(let o=i.length,s=0;s<o;s++){let a=i[s],l=e[a];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,r.unshift(a))}}return e}function Vc(t,e){return function(r){return e(t(r))}}function Wc(t,e){let r=[e[t].parent,t],n=Tt[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Vc(Tt[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}ao.exports=function(t){let e=Uc(t),r={},n=Object.keys(e);for(let i=n.length,o=0;o<i;o++){let s=n[o];e[s].parent!==null&&(r[s]=Wc(s,e))}return r}});var uo=p((A0,co)=>{var an=sn(),Hc=lo(),ke={},Gc=Object.keys(an);function zc(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Kc(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let o=i.length,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}Gc.forEach(t=>{ke[t]={},Object.defineProperty(ke[t],"channels",{value:an[t].channels}),Object.defineProperty(ke[t],"labels",{value:an[t].labels});let e=Hc(t);Object.keys(e).forEach(n=>{let i=e[n];ke[t][n]=Kc(i),ke[t][n].raw=zc(i)})});co.exports=ke});var yo=p((O0,mo)=>{"use strict";var fo=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,ho=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},po=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},Ft=t=>t,go=(t,e,r)=>[t,e,r],De=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},ln,Ne=(t,e,r,n)=>{ln===void 0&&(ln=uo());let i=n?10:0,o={};for(let[s,a]of Object.entries(ln)){let l=s==="ansi16"?"ansi":s;s===e?o[l]=t(r,i):typeof a=="object"&&(o[l]=t(a[e],i))}return o};function Yc(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,o]of Object.entries(n))e[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=e[i],t.set(o[0],o[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",De(e.color,"ansi",()=>Ne(fo,"ansi16",Ft,!1)),De(e.color,"ansi256",()=>Ne(ho,"ansi256",Ft,!1)),De(e.color,"ansi16m",()=>Ne(po,"rgb",go,!1)),De(e.bgColor,"ansi",()=>Ne(fo,"ansi16",Ft,!0)),De(e.bgColor,"ansi256",()=>Ne(ho,"ansi256",Ft,!0)),De(e.bgColor,"ansi16m",()=>Ne(po,"rgb",go,!0)),e}Object.defineProperty(mo,"exports",{enumerable:!0,get:Yc})});var bo=p((I0,_o)=>{"use strict";_o.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var fn=p((R0,wo)=>{"use strict";var Jc=require("os"),xo=require("tty"),z=bo(),{env:q}=process,he;z("no-color")||z("no-colors")||z("color=false")||z("color=never")?he=0:(z("color")||z("colors")||z("color=true")||z("color=always"))&&(he=1);"FORCE_COLOR"in q&&(q.FORCE_COLOR==="true"?he=1:q.FORCE_COLOR==="false"?he=0:he=q.FORCE_COLOR.length===0?1:Math.min(parseInt(q.FORCE_COLOR,10),3));function cn(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function un(t,e){if(he===0)return 0;if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2;if(t&&!e&&he===void 0)return 0;let r=he||0;if(q.TERM==="dumb")return r;if(process.platform==="win32"){let n=Jc.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in q)||q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(q.TEAMCITY_VERSION)?1:0;if(q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in q){let n=parseInt((q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(q.TERM)||"COLORTERM"in q?1:r}function Xc(t){let e=un(t,t&&t.isTTY);return cn(e)}wo.exports={supportsColor:Xc,stdout:cn(un(!0,xo.isatty(1))),stderr:cn(un(!0,xo.isatty(2)))}});var Eo=p((T0,vo)=>{"use strict";var Zc=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,o=0,s="";do s+=t.substr(o,n-o)+e+r,o=n+i,n=t.indexOf(e,o);while(n!==-1);return s+=t.substr(o),s},Qc=(t,e,r,n)=>{let i=0,o="";do{let s=t[n-1]==="\r";o+=t.substr(i,(s?n-1:n)-i)+e+(s?`\r
22
+ `)}),this}};function so(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function ao(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",o;return(o=e.match(/^(--inspect(-brk)?)$/))!==null?r=o[1]:(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=o[1],/^\d+$/.test(o[3])?i=o[3]:n=o[3]):(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=o[1],n=o[3],i=o[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}lo.Command=hn});var po=m((Z,ho)=>{var{Argument:Gc}=Ft(),{Command:uo}=co(),{CommanderError:zc,InvalidArgumentError:fo}=st(),{Help:Kc}=sn(),{Option:Yc}=cn();Z=ho.exports=new uo;Z.program=Z;Z.Command=uo;Z.Option=Yc;Z.Argument=Gc;Z.Help=Kc;Z.CommanderError=zc;Z.InvalidArgumentError=fo;Z.InvalidOptionArgumentError=fo});var pn=m((M0,Jc)=>{Jc.exports={name:"@xframework-ca-test/cli",version:"1.0.32",description:"xFramework \u2014 one command to run your portal locally",main:"index.bundle.js",bin:{"xframework-cli":"./index.bundle.js"},scripts:{start:"node index.js start",build:"npx esbuild index.js --bundle --platform=node --minify --external:embedded-postgres --external:*.node --outfile=index.bundle.js",prepack:"node scripts/prepack.js",prepublishOnly:"npm run build","build:aws":"node scripts/build-aws.js"},dependencies:{"adm-zip":"^0.5.17",chalk:"^4.1.2",commander:"^11.0.0",dotenv:"^16.4.5","embedded-postgres":"^18.3.0-beta.16","extract-zip":"^2.0.1",open:"^8.4.2",ora:"^5.4.1"},devDependencies:{esbuild:"^0.20.0"},engines:{node:">=18.0.0"},optionalDependencies:{"@embedded-postgres/win32-x64":"*"}}});var mo=m((q0,go)=>{"use strict";go.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var gn=m((B0,_o)=>{var at=mo(),yo={};for(let t of Object.keys(at))yo[at[t]]=t;var b={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};_o.exports=b;for(let t of Object.keys(b)){if(!("channels"in b[t]))throw new Error("missing channels property: "+t);if(!("labels"in b[t]))throw new Error("missing channel labels property: "+t);if(b[t].labels.length!==b[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=b[t];delete b[t].channels,delete b[t].labels,Object.defineProperty(b[t],"channels",{value:e}),Object.defineProperty(b[t],"labels",{value:r})}b.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),o=Math.max(e,r,n),s=o-i,a,l;o===i?a=0:e===o?a=(r-n)/s:r===o?a=2+(n-e)/s:n===o&&(a=4+(e-r)/s),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+o)/2;return o===i?l=0:c<=.5?l=s/(o+i):l=s/(2-o-i),[a,l*100,c*100]};b.rgb.hsv=function(t){let e,r,n,i,o,s=t[0]/255,a=t[1]/255,l=t[2]/255,c=Math.max(s,a,l),u=c-Math.min(s,a,l),f=function(p){return(c-p)/6/u+1/2};return u===0?(i=0,o=0):(o=u/c,e=f(s),r=f(a),n=f(l),s===c?i=n-r:a===c?i=1/3+e-n:l===c&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,c*100]};b.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=b.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,o*100,n*100]};b.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),o=(1-e-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function Xc(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}b.rgb.keyword=function(t){let e=yo[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(at)){let o=at[i],s=Xc(t,o);s<r&&(r=s,n=i)}return n};b.keyword.rgb=function(t){return at[t]};b.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,o=e*.2126+r*.7152+n*.0722,s=e*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};b.rgb.lab=function(t){let e=b.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,s=500*(r-n),a=200*(n-i);return[o,s,a]};b.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,o,s;if(r===0)return s=n*255,[s,s,s];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,l=[0,0,0];for(let c=0;c<3;c++)o=e+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,l[c]=s*255;return l};b.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r);return[e,a*100,s*100]};b.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-r),a=255*n*(1-r*o),l=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,l,s];case 1:return[a,n,s];case 2:return[s,n,l];case 3:return[s,a,n];case 4:return[l,s,n];case 5:return[n,s,a]}};b.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),o,s;s=(2-r)*n;let a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,o*100,s*100]};b.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*e),a=1-n;o=6*e-s,s&1&&(o=1-o);let l=r+o*(a-r),c,u,f;switch(s){default:case 6:case 0:c=a,u=l,f=r;break;case 1:c=l,u=a,f=r;break;case 2:c=r,u=a,f=l;break;case 3:c=r,u=l,f=a;break;case 4:c=l,u=r,f=a;break;case 5:c=a,u=r,f=l;break}return[c*255,u*255,f*255]};b.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,o=1-Math.min(1,e*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};b.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,o,s;return i=e*3.2406+r*-1.5372+n*-.4986,o=e*-.9689+r*1.8758+n*.0415,s=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};b.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,o=500*(e-r),s=200*(r-n);return[i,o,s]};b.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,o,s;o=(e+16)/116,i=r/500+o,s=o-n/200;let a=o**3,l=i**3,c=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};b.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(r*r+n*n);return[e,s,i]};b.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,o=r*Math.cos(i),s=r*Math.sin(i);return[e,o,s]};b.rgb.ansi16=function(t,e=null){let[r,n,i]=t,o=e===null?b.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(s+=60),s};b.hsv.ansi16=function(t){return b.rgb.ansi16(b.hsv.rgb(t),t[2])};b.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};b.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,o=(e>>2&1)*r*255;return[n,i,o]};b.ansi256.rgb=function(t){if(t>=232){let o=(t-232)*10+8;return[o,o,o]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};b.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};b.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};b.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),o=Math.min(Math.min(e,r),n),s=i-o,a,l;return s<1?a=o/(1-s):a=0,s<=0?l=0:i===e?l=(r-n)/s%6:i===r?l=2+(n-e)/s:l=4+(e-r)/s,l/=6,l%=1,[l*360,s*100,a*100]};b.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};b.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};b.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],o=e%1*6,s=o%1,a=1-s,l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*n,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};b.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};b.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};b.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};b.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,o=0;return i<1&&(o=(n-i)/(1-i)),[t[0],i*100,o*100]};b.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};b.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};b.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};b.gray.hsl=function(t){return[0,0,t[0]]};b.gray.hsv=b.gray.hsl;b.gray.hwb=function(t){return[0,100,t[0]]};b.gray.cmyk=function(t){return[0,0,0,t[0]]};b.gray.lab=function(t){return[t[0],0,0]};b.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};b.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var bo=m((j0,xo)=>{var Dt=gn();function Zc(){let t={},e=Object.keys(Dt);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Qc(t){let e=Zc(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(Dt[n]);for(let o=i.length,s=0;s<o;s++){let a=i[s],l=e[a];l.distance===-1&&(l.distance=e[n].distance+1,l.parent=n,r.unshift(a))}}return e}function eu(t,e){return function(r){return e(t(r))}}function tu(t,e){let r=[e[t].parent,t],n=Dt[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=eu(Dt[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}xo.exports=function(t){let e=Qc(t),r={},n=Object.keys(e);for(let i=n.length,o=0;o<i;o++){let s=n[o];e[s].parent!==null&&(r[s]=tu(s,e))}return r}});var vo=m(($0,wo)=>{var mn=gn(),ru=bo(),Me={},nu=Object.keys(mn);function iu(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function ou(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let o=i.length,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}nu.forEach(t=>{Me[t]={},Object.defineProperty(Me[t],"channels",{value:mn[t].channels}),Object.defineProperty(Me[t],"labels",{value:mn[t].labels});let e=ru(t);Object.keys(e).forEach(n=>{let i=e[n];Me[t][n]=ou(i),Me[t][n].raw=iu(i)})});wo.exports=Me});var Oo=m((U0,Io)=>{"use strict";var Eo=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,So=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},Co=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},kt=t=>t,Ao=(t,e,r)=>[t,e,r],qe=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},yn,Be=(t,e,r,n)=>{yn===void 0&&(yn=vo());let i=n?10:0,o={};for(let[s,a]of Object.entries(yn)){let l=s==="ansi16"?"ansi":s;s===e?o[l]=t(r,i):typeof a=="object"&&(o[l]=t(a[e],i))}return o};function su(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,o]of Object.entries(n))e[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=e[i],t.set(o[0],o[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",qe(e.color,"ansi",()=>Be(Eo,"ansi16",kt,!1)),qe(e.color,"ansi256",()=>Be(So,"ansi256",kt,!1)),qe(e.color,"ansi16m",()=>Be(Co,"rgb",Ao,!1)),qe(e.bgColor,"ansi",()=>Be(Eo,"ansi16",kt,!0)),qe(e.bgColor,"ansi256",()=>Be(So,"ansi256",kt,!0)),qe(e.bgColor,"ansi16m",()=>Be(Co,"rgb",Ao,!0)),e}Object.defineProperty(Io,"exports",{enumerable:!0,get:su})});var Ro=m((V0,To)=>{"use strict";To.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var bn=m((W0,Fo)=>{"use strict";var au=require("os"),Po=require("tty"),Y=Ro(),{env:U}=process,pe;Y("no-color")||Y("no-colors")||Y("color=false")||Y("color=never")?pe=0:(Y("color")||Y("colors")||Y("color=true")||Y("color=always"))&&(pe=1);"FORCE_COLOR"in U&&(U.FORCE_COLOR==="true"?pe=1:U.FORCE_COLOR==="false"?pe=0:pe=U.FORCE_COLOR.length===0?1:Math.min(parseInt(U.FORCE_COLOR,10),3));function _n(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function xn(t,e){if(pe===0)return 0;if(Y("color=16m")||Y("color=full")||Y("color=truecolor"))return 3;if(Y("color=256"))return 2;if(t&&!e&&pe===void 0)return 0;let r=pe||0;if(U.TERM==="dumb")return r;if(process.platform==="win32"){let n=au.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in U)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in U)||U.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in U)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in U){let n=parseInt((U.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(U.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM)||"COLORTERM"in U?1:r}function lu(t){let e=xn(t,t&&t.isTTY);return _n(e)}Fo.exports={supportsColor:lu,stdout:_n(xn(!0,Po.isatty(1))),stderr:_n(xn(!0,Po.isatty(2)))}});var Do=m((H0,Lo)=>{"use strict";var cu=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,o=0,s="";do s+=t.substr(o,n-o)+e+r,o=n+i,n=t.indexOf(e,o);while(n!==-1);return s+=t.substr(o),s},uu=(t,e,r,n)=>{let i=0,o="";do{let s=t[n-1]==="\r";o+=t.substr(i,(s?n-1:n)-i)+e+(s?`\r
23
23
  `:`
24
24
  `)+r,i=n+1,n=t.indexOf(`
25
- `,i)}while(n!==-1);return o+=t.substr(i),o};vo.exports={stringReplaceAll:Zc,stringEncaseCRLFWithFirstIndex:Qc}});var Io=p((F0,Oo)=>{"use strict";var eu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,So=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,tu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ru=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,nu=new Map([["n",`
26
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Ao(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):nu.get(t)||t}function iu(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let o of n){let s=Number(o);if(!Number.isNaN(s))r.push(s);else if(i=o.match(tu))r.push(i[2].replace(ru,(a,l,c)=>l?Ao(l):c));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${t}')`)}return r}function ou(t){So.lastIndex=0;let e=[],r;for(;(r=So.exec(t))!==null;){let n=r[1];if(r[2]){let i=iu(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Co(t,e){let r={};for(let i of e)for(let o of i.styles)r[o[0]]=i.inverse?null:o.slice(1);let n=t;for(let[i,o]of Object.entries(r))if(Array.isArray(o)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=o.length>0?n[i](...o):n[i]}return n}Oo.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(eu,(o,s,a,l,c,u)=>{if(s)i.push(Ao(s));else if(l){let f=i.join("");i=[],n.push(r.length===0?f:Co(t,r)(f)),r.push({inverse:a,styles:ou(l)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Co(t,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),n.push(i.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var X=p((P0,ko)=>{"use strict";var ot=yo(),{stdout:hn,stderr:pn}=fn(),{stringReplaceAll:su,stringEncaseCRLFWithFirstIndex:au}=Eo(),{isArray:Pt}=Array,To=["ansi","ansi","ansi256","ansi16m"],Me=Object.create(null),lu=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=hn?hn.level:0;t.level=e.level===void 0?r:e.level},gn=class{constructor(e){return Fo(e)}},Fo=t=>{let e={};return lu(e,t),e.template=(...r)=>Lo(e.template,...r),Object.setPrototypeOf(e,Lt.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=gn,e.template};function Lt(t){return Fo(t)}for(let[t,e]of Object.entries(ot))Me[t]={get(){let r=kt(this,mn(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Me.visible={get(){let t=kt(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Po=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of Po)Me[t]={get(){let{level:e}=this;return function(...r){let n=mn(ot.color[To[e]][t](...r),ot.color.close,this._styler);return kt(this,n,this._isEmpty)}}};for(let t of Po){let e="bg"+t[0].toUpperCase()+t.slice(1);Me[e]={get(){let{level:r}=this;return function(...n){let i=mn(ot.bgColor[To[r]][t](...n),ot.bgColor.close,this._styler);return kt(this,i,this._isEmpty)}}}}var cu=Object.defineProperties(()=>{},{...Me,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),mn=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},kt=(t,e,r)=>{let n=(...i)=>Pt(i[0])&&Pt(i[0].raw)?Ro(n,Lo(n,...i)):Ro(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,cu),n._generator=t,n._styler=e,n._isEmpty=r,n},Ro=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=su(e,r.close,r.open),r=r.parent;let o=e.indexOf(`
27
- `);return o!==-1&&(e=au(e,i,n,o)),n+e+i},dn,Lo=(t,...e)=>{let[r]=e;if(!Pt(r)||!Pt(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let o=1;o<r.length;o++)i.push(String(n[o-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[o]));return dn===void 0&&(dn=Io()),dn(t,i.join(""))};Object.defineProperties(Lt.prototype,Me);var Dt=Lt();Dt.supportsColor=hn;Dt.stderr=Lt({level:pn?pn.level:0});Dt.stderr.supportsColor=pn;ko.exports=Dt});var No=p((L0,yn)=>{"use strict";var Do=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};yn.exports=Do;yn.exports.default=Do});var qo=p((k0,Mt)=>{"use strict";var uu=No(),Nt=new WeakMap,Mo=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",o=function(...s){if(Nt.set(o,++n),n===1)r=t.apply(this,s),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return uu(o,t),Nt.set(o,n),o};Mt.exports=Mo;Mt.exports.default=Mo;Mt.exports.callCount=t=>{if(!Nt.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Nt.get(t)}});var Bo=p((D0,qt)=>{qt.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&qt.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&qt.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Wo=p((N0,je)=>{var L=global.process,Ee=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Ee(L)?(jo=require("assert"),qe=Bo(),$o=/^win/i.test(L.platform),st=require("events"),typeof st!="function"&&(st=st.EventEmitter),L.__signal_exit_emitter__?B=L.__signal_exit_emitter__:(B=L.__signal_exit_emitter__=new st,B.count=0,B.emitted={}),B.infinite||(B.setMaxListeners(1/0),B.infinite=!0),je.exports=function(t,e){if(!Ee(global.process))return function(){};jo.equal(typeof t,"function","a callback must be provided for exit handler"),Be===!1&&_n();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){B.removeListener(r,t),B.listeners("exit").length===0&&B.listeners("afterexit").length===0&&Bt()};return B.on(r,t),n},Bt=function(){!Be||!Ee(global.process)||(Be=!1,qe.forEach(function(e){try{L.removeListener(e,jt[e])}catch{}}),L.emit=$t,L.reallyExit=bn,B.count-=1)},je.exports.unload=Bt,Se=function(e,r,n){B.emitted[e]||(B.emitted[e]=!0,B.emit(e,r,n))},jt={},qe.forEach(function(t){jt[t]=function(){if(Ee(global.process)){var r=L.listeners(t);r.length===B.count&&(Bt(),Se("exit",null,t),Se("afterexit",null,t),$o&&t==="SIGHUP"&&(t="SIGINT"),L.kill(L.pid,t))}}}),je.exports.signals=function(){return qe},Be=!1,_n=function(){Be||!Ee(global.process)||(Be=!0,B.count+=1,qe=qe.filter(function(e){try{return L.on(e,jt[e]),!0}catch{return!1}}),L.emit=Vo,L.reallyExit=Uo)},je.exports.load=_n,bn=L.reallyExit,Uo=function(e){Ee(global.process)&&(L.exitCode=e||0,Se("exit",L.exitCode,null),Se("afterexit",L.exitCode,null),bn.call(L,L.exitCode))},$t=L.emit,Vo=function(e,r){if(e==="exit"&&Ee(global.process)){r!==void 0&&(L.exitCode=r);var n=$t.apply(this,arguments);return Se("exit",L.exitCode,null),Se("afterexit",L.exitCode,null),n}else return $t.apply(this,arguments)}):je.exports=function(){return function(){}};var jo,qe,$o,st,B,Bt,Se,jt,Be,_n,bn,Uo,$t,Vo});var Go=p((M0,Ho)=>{"use strict";var fu=qo(),du=Wo();Ho.exports=fu(()=>{du(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var zo=p($e=>{"use strict";var hu=Go(),Ut=!1;$e.show=(t=process.stderr)=>{t.isTTY&&(Ut=!1,t.write("\x1B[?25h"))};$e.hide=(t=process.stderr)=>{t.isTTY&&(hu(),Ut=!0,t.write("\x1B[?25l"))};$e.toggle=(t,e)=>{t!==void 0&&(Ut=t),Ut?$e.show(e):$e.hide(e)}});var Ko=p((B0,pu)=>{pu.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Xo=p((j0,Jo)=>{"use strict";var Vt=Object.assign({},Ko()),Yo=Object.keys(Vt);Object.defineProperty(Vt,"random",{get(){let t=Math.floor(Math.random()*Yo.length),e=Yo[t];return Vt[e]}});Jo.exports=Vt});var xn=p(($0,Zo)=>{"use strict";Zo.exports=()=>process.platform!=="win32"?!0:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"});var es=p((U0,Qo)=>{"use strict";var pe=X(),gu=xn(),mu={info:pe.blue("\u2139"),success:pe.green("\u2714"),warning:pe.yellow("\u26A0"),error:pe.red("\u2716")},yu={info:pe.blue("i"),success:pe.green("\u221A"),warning:pe.yellow("\u203C"),error:pe.red("\xD7")};Qo.exports=gu()?mu:yu});var rs=p((V0,ts)=>{"use strict";ts.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var is=p((W0,ns)=>{"use strict";var _u=rs();ns.exports=t=>typeof t=="string"?t.replace(_u(),""):t});var os=p((H0,Wt)=>{var bu=function(){"use strict";function t(s,a,l,c){var u;typeof a=="object"&&(l=a.depth,c=a.prototype,u=a.filter,a=a.circular);var f=[],h=[],g=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function y(d,m){if(d===null)return null;if(m==0)return d;var _,v;if(typeof d!="object")return d;if(t.__isArray(d))_=[];else if(t.__isRegExp(d))_=new RegExp(d.source,o(d)),d.lastIndex&&(_.lastIndex=d.lastIndex);else if(t.__isDate(d))_=new Date(d.getTime());else{if(g&&Buffer.isBuffer(d))return Buffer.allocUnsafe?_=Buffer.allocUnsafe(d.length):_=new Buffer(d.length),d.copy(_),_;typeof c>"u"?(v=Object.getPrototypeOf(d),_=Object.create(v)):(_=Object.create(c),v=c)}if(a){var T=f.indexOf(d);if(T!=-1)return h[T];f.push(d),h.push(_)}for(var U in d){var G;v&&(G=Object.getOwnPropertyDescriptor(v,U)),!(G&&G.set==null)&&(_[U]=y(d[U],m-1))}return _}return y(s,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(s){return Object.prototype.toString.call(s)}t.__objToStr=e;function r(s){return typeof s=="object"&&e(s)==="[object Date]"}t.__isDate=r;function n(s){return typeof s=="object"&&e(s)==="[object Array]"}t.__isArray=n;function i(s){return typeof s=="object"&&e(s)==="[object RegExp]"}t.__isRegExp=i;function o(s){var a="";return s.global&&(a+="g"),s.ignoreCase&&(a+="i"),s.multiline&&(a+="m"),a}return t.__getRegExpFlags=o,t}();typeof Wt=="object"&&Wt.exports&&(Wt.exports=bu)});var as=p((G0,ss)=>{var xu=os();ss.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=xu(e[r]))}),t}});var cs=p((z0,ls)=>{ls.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var hs=p((K0,wn)=>{"use strict";var wu=as(),at=cs(),fs={nul:0,control:0};wn.exports=function(e){return ds(e,fs)};wn.exports.config=function(t){return t=wu(t||{},fs),function(r){return ds(r,t)}};function ds(t,e){if(typeof t!="string")return us(t,e);for(var r=0,n=0;n<t.length;n++){var i=us(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function us(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:vu(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function vu(t){var e=0,r=at.length-1,n;if(t<at[0][0]||t>at[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>at[n][1])e=n+1;else if(t<at[n][0])r=n-1;else return!0;return!1}});var gs=p((Y0,ps)=>{"use strict";ps.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var vn=p((J0,ms)=>{ms.exports=require("stream")});var vs=p((X0,ws)=>{"use strict";function ys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function _s(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ys(Object(r),!0).forEach(function(n){Eu(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ys(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Eu(t,e,r){return e=xs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Su(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xs(n.key),n)}}function Cu(t,e,r){return e&&bs(t.prototype,e),r&&bs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function xs(t){var e=Au(t,"string");return typeof e=="symbol"?e:String(e)}function Au(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ou=require("buffer"),Ht=Ou.Buffer,Iu=require("util"),En=Iu.inspect,Ru=En&&En.custom||"inspect";function Tu(t,e,r){Ht.prototype.copy.call(t,e,r)}ws.exports=function(){function t(){Su(this,t),this.head=null,this.tail=null,this.length=0}return Cu(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Ht.alloc(0);for(var n=Ht.allocUnsafe(r>>>0),i=this.head,o=0;i;)Tu(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=Ht.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,a),r-=a,r===0){a===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++o}return this.length-=o,n}},{key:Ru,value:function(r,n){return En(this,_s(_s({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var Cn=p((Z0,Ss)=>{"use strict";function Fu(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Sn,this,t)):process.nextTick(Sn,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(Gt,r):(r._writableState.errorEmitted=!0,process.nextTick(Es,r,o)):process.nextTick(Es,r,o):e?(process.nextTick(Gt,r),e(o)):process.nextTick(Gt,r)}),this)}function Es(t,e){Sn(t,e),Gt(t)}function Gt(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Pu(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Sn(t,e){t.emit("error",e)}function Lu(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}Ss.exports={destroy:Fu,undestroy:Pu,errorOrDestroy:Lu}});var ge=p((Q0,Os)=>{"use strict";var As={};function K(t,e,r){r||(r=Error);function n(o,s,a){return typeof e=="string"?e:e(o,s,a)}class i extends r{constructor(s,a,l){super(n(s,a,l))}}i.prototype.name=r.name,i.prototype.code=t,As[t]=i}function Cs(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function ku(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Du(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function Nu(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}K("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);K("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&ku(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Du(t," argument"))i=`The ${t} ${n} ${Cs(e,"type")}`;else{let o=Nu(t,".")?"property":"argument";i=`The "${t}" ${o} ${n} ${Cs(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);K("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");K("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});K("ERR_STREAM_PREMATURE_CLOSE","Premature close");K("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});K("ERR_MULTIPLE_CALLBACK","Callback called multiple times");K("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");K("ERR_STREAM_WRITE_AFTER_END","write after end");K("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);K("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);K("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Os.exports.codes=As});var An=p((eg,Is)=>{"use strict";var Mu=ge().codes.ERR_INVALID_OPT_VALUE;function qu(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Bu(t,e,r,n){var i=qu(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new Mu(o,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Is.exports={getHighWaterMark:Bu}});var Rs=p((tg,On)=>{typeof Object.create=="function"?On.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:On.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Ce=p((rg,Rn)=>{try{if(In=require("util"),typeof In.inherits!="function")throw"";Rn.exports=In.inherits}catch{Rn.exports=Rs()}var In});var Fs=p((ng,Ts)=>{Ts.exports=require("util").deprecate});var Pn=p((ig,Ms)=>{"use strict";Ms.exports=N;function Ls(t){var e=this;this.next=null,this.entry=null,this.finish=function(){hf(e,t)}}var Ue;N.WritableState=ct;var ju={deprecate:Fs()},ks=vn(),Kt=require("buffer").Buffer,$u=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Uu(t){return Kt.from(t)}function Vu(t){return Kt.isBuffer(t)||t instanceof $u}var Fn=Cn(),Wu=An(),Hu=Wu.getHighWaterMark,me=ge().codes,Gu=me.ERR_INVALID_ARG_TYPE,zu=me.ERR_METHOD_NOT_IMPLEMENTED,Ku=me.ERR_MULTIPLE_CALLBACK,Yu=me.ERR_STREAM_CANNOT_PIPE,Ju=me.ERR_STREAM_DESTROYED,Xu=me.ERR_STREAM_NULL_VALUES,Zu=me.ERR_STREAM_WRITE_AFTER_END,Qu=me.ERR_UNKNOWN_ENCODING,Ve=Fn.errorOrDestroy;Ce()(N,ks);function ef(){}function ct(t,e,r){Ue=Ue||Ae(),t=t||{},typeof r!="boolean"&&(r=e instanceof Ue),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Hu(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){lf(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ls(this)}ct.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(ct.prototype,"buffer",{get:ju.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var zt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(zt=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(e){return zt.call(this,e)?!0:this!==N?!1:e&&e._writableState instanceof ct}})):zt=function(e){return e instanceof this};function N(t){Ue=Ue||Ae();var e=this instanceof Ue;if(!e&&!zt.call(N,this))return new N(t);this._writableState=new ct(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),ks.call(this)}N.prototype.pipe=function(){Ve(this,new Yu)};function tf(t,e){var r=new Zu;Ve(t,r),process.nextTick(e,r)}function rf(t,e,r,n){var i;return r===null?i=new Xu:typeof r!="string"&&!e.objectMode&&(i=new Gu("chunk",["string","Buffer"],r)),i?(Ve(t,i),process.nextTick(n,i),!1):!0}N.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&Vu(t);return o&&!Kt.isBuffer(t)&&(t=Uu(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=ef),n.ending?tf(this,r):(o||rf(this,n,t,r))&&(n.pendingcb++,i=of(this,n,o,t,e,r)),i};N.prototype.cork=function(){this._writableState.corked++};N.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Ds(this,t))};N.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Qu(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function nf(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Kt.from(e,r)),e}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function of(t,e,r,n,i,o){if(!r){var s=nf(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Tn(t,e,!1,a,n,i,o);return l}function Tn(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Ju("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function sf(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(lt,t,e),t._writableState.errorEmitted=!0,Ve(t,n)):(i(n),t._writableState.errorEmitted=!0,Ve(t,n),lt(t,e))}function af(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function lf(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Ku;if(af(r),e)sf(t,r,n,e,i);else{var o=Ns(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ds(t,r),n?process.nextTick(Ps,t,r,o,i):Ps(t,r,o,i)}}function Ps(t,e,r,n){r||cf(t,e),e.pendingcb--,n(),lt(t,e)}function cf(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Ds(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,a=!0;r;)i[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;i.allBuffers=a,Tn(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new Ls(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,f=e.objectMode?1:l.length;if(Tn(t,e,!1,f,l,c,u),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}N.prototype._write=function(t,e,r){r(new zu("_write()"))};N.prototype._writev=null;N.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||df(this,n,r),this};Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ns(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function uf(t,e){t._final(function(r){e.pendingcb--,r&&Ve(t,r),e.prefinished=!0,t.emit("prefinish"),lt(t,e)})}function ff(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(uf,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function lt(t,e){var r=Ns(e);if(r&&(ff(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function df(t,e,r){e.ending=!0,lt(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function hf(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});N.prototype.destroy=Fn.destroy;N.prototype._undestroy=Fn.undestroy;N.prototype._destroy=function(t,e){e(t)}});var Ae=p((og,Bs)=>{"use strict";var pf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Bs.exports=ne;var qs=Dn(),kn=Pn();Ce()(ne,qs);for(Ln=pf(kn.prototype),Yt=0;Yt<Ln.length;Yt++)Jt=Ln[Yt],ne.prototype[Jt]||(ne.prototype[Jt]=kn.prototype[Jt]);var Ln,Jt,Yt;function ne(t){if(!(this instanceof ne))return new ne(t);qs.call(this,t),kn.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",gf)))}Object.defineProperty(ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function gf(){this._writableState.ended||process.nextTick(mf,this)}function mf(t){t.end()}Object.defineProperty(ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Us=p((Nn,$s)=>{var Xt=require("buffer"),ie=Xt.Buffer;function js(t,e){for(var r in t)e[r]=t[r]}ie.from&&ie.alloc&&ie.allocUnsafe&&ie.allocUnsafeSlow?$s.exports=Xt:(js(Xt,Nn),Nn.Buffer=Oe);function Oe(t,e,r){return ie(t,e,r)}Oe.prototype=Object.create(ie.prototype);js(ie,Oe);Oe.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ie(t,e,r)};Oe.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=ie(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};Oe.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ie(t)};Oe.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Xt.SlowBuffer(t)}});var Bn=p(Ws=>{"use strict";var qn=Us().Buffer,Vs=qn.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function yf(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function _f(t){var e=yf(t);if(typeof e!="string"&&(qn.isEncoding===Vs||!Vs(t)))throw new Error("Unknown encoding: "+t);return e||t}Ws.StringDecoder=ut;function ut(t){this.encoding=_f(t);var e;switch(this.encoding){case"utf16le":this.text=Sf,this.end=Cf,e=4;break;case"utf8":this.fillLast=wf,e=4;break;case"base64":this.text=Af,this.end=Of,e=3;break;default:this.write=If,this.end=Rf;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=qn.allocUnsafe(e)}ut.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};ut.prototype.end=Ef;ut.prototype.text=vf;ut.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Mn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function bf(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Mn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Mn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Mn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function xf(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function wf(t){var e=this.lastTotal-this.lastNeed,r=xf(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function vf(t,e){var r=bf(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function Ef(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Sf(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Cf(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function Af(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Of(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function If(t){return t.toString(this.encoding)}function Rf(t){return t&&t.length?this.write(t):""}});var Zt=p((ag,zs)=>{"use strict";var Hs=ge().codes.ERR_STREAM_PREMATURE_CLOSE;function Tf(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function Ff(){}function Pf(t){return t.setHeader&&typeof t.abort=="function"}function Gs(t,e,r){if(typeof e=="function")return Gs(t,null,e);e||(e={}),r=Tf(r||Ff);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,o=function(){t.writable||a()},s=t._writableState&&t._writableState.finished,a=function(){i=!1,s=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,c=function(){n=!1,l=!0,i||r.call(t)},u=function(y){r.call(t,y)},f=function(){var y;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(y=new Hs),r.call(t,y);if(i&&!s)return(!t._writableState||!t._writableState.ended)&&(y=new Hs),r.call(t,y)},h=function(){t.req.on("finish",a)};return Pf(t)?(t.on("complete",a),t.on("abort",f),t.req?h():t.on("request",h)):i&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",c),t.on("finish",a),e.error!==!1&&t.on("error",u),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",h),t.req&&t.req.removeListener("finish",a),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",a),t.removeListener("end",c),t.removeListener("error",u),t.removeListener("close",f)}}zs.exports=Gs});var Ys=p((lg,Ks)=>{"use strict";var Qt;function ye(t,e,r){return e=Lf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lf(t){var e=kf(t,"string");return typeof e=="symbol"?e:String(e)}function kf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Df=Zt(),_e=Symbol("lastResolve"),Ie=Symbol("lastReject"),ft=Symbol("error"),er=Symbol("ended"),Re=Symbol("lastPromise"),jn=Symbol("handlePromise"),Te=Symbol("stream");function be(t,e){return{value:t,done:e}}function Nf(t){var e=t[_e];if(e!==null){var r=t[Te].read();r!==null&&(t[Re]=null,t[_e]=null,t[Ie]=null,e(be(r,!1)))}}function Mf(t){process.nextTick(Nf,t)}function qf(t,e){return function(r,n){t.then(function(){if(e[er]){r(be(void 0,!0));return}e[jn](r,n)},n)}}var Bf=Object.getPrototypeOf(function(){}),jf=Object.setPrototypeOf((Qt={get stream(){return this[Te]},next:function(){var e=this,r=this[ft];if(r!==null)return Promise.reject(r);if(this[er])return Promise.resolve(be(void 0,!0));if(this[Te].destroyed)return new Promise(function(s,a){process.nextTick(function(){e[ft]?a(e[ft]):s(be(void 0,!0))})});var n=this[Re],i;if(n)i=new Promise(qf(n,this));else{var o=this[Te].read();if(o!==null)return Promise.resolve(be(o,!1));i=new Promise(this[jn])}return this[Re]=i,i}},ye(Qt,Symbol.asyncIterator,function(){return this}),ye(Qt,"return",function(){var e=this;return new Promise(function(r,n){e[Te].destroy(null,function(i){if(i){n(i);return}r(be(void 0,!0))})})}),Qt),Bf),$f=function(e){var r,n=Object.create(jf,(r={},ye(r,Te,{value:e,writable:!0}),ye(r,_e,{value:null,writable:!0}),ye(r,Ie,{value:null,writable:!0}),ye(r,ft,{value:null,writable:!0}),ye(r,er,{value:e._readableState.endEmitted,writable:!0}),ye(r,jn,{value:function(o,s){var a=n[Te].read();a?(n[Re]=null,n[_e]=null,n[Ie]=null,o(be(a,!1))):(n[_e]=o,n[Ie]=s)},writable:!0}),r));return n[Re]=null,Df(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Ie];o!==null&&(n[Re]=null,n[_e]=null,n[Ie]=null,o(i)),n[ft]=i;return}var s=n[_e];s!==null&&(n[Re]=null,n[_e]=null,n[Ie]=null,s(be(void 0,!0))),n[er]=!0}),e.on("readable",Mf.bind(null,n)),n};Ks.exports=$f});var Qs=p((cg,Zs)=>{"use strict";function Js(t,e,r,n,i,o,s){try{var a=t[o](s),l=a.value}catch(c){r(c);return}a.done?e(l):Promise.resolve(l).then(n,i)}function Uf(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function s(l){Js(o,n,i,s,a,"next",l)}function a(l){Js(o,n,i,s,a,"throw",l)}s(void 0)})}}function Xs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Vf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xs(Object(r),!0).forEach(function(n){Wf(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xs(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Wf(t,e,r){return e=Hf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hf(t){var e=Gf(t,"string");return typeof e=="symbol"?e:String(e)}function Gf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zf=ge().codes.ERR_INVALID_ARG_TYPE;function Kf(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new zf("iterable",["Iterable"],e);var i=new t(Vf({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=Uf(function*(){try{var l=yield n.next(),c=l.value,u=l.done;u?i.push(null):i.push(yield c)?s():o=!1}catch(f){i.destroy(f)}}),a.apply(this,arguments)}return i}Zs.exports=Kf});var Dn=p((fg,ca)=>{"use strict";ca.exports=O;var We;O.ReadableState=na;var ug=require("events").EventEmitter,ra=function(e,r){return e.listeners(r).length},ht=vn(),tr=require("buffer").Buffer,Yf=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Jf(t){return tr.from(t)}function Xf(t){return tr.isBuffer(t)||t instanceof Yf}var $n=require("util"),C;$n&&$n.debuglog?C=$n.debuglog("stream"):C=function(){};var Zf=vs(),Kn=Cn(),Qf=An(),ed=Qf.getHighWaterMark,rr=ge().codes,td=rr.ERR_INVALID_ARG_TYPE,rd=rr.ERR_STREAM_PUSH_AFTER_EOF,nd=rr.ERR_METHOD_NOT_IMPLEMENTED,id=rr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,He,Un,Vn;Ce()(O,ht);var dt=Kn.errorOrDestroy,Wn=["error","close","destroy","pause","resume"];function od(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function na(t,e,r){We=We||Ae(),t=t||{},typeof r!="boolean"&&(r=e instanceof We),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=ed(this,t,"readableHighWaterMark",r),this.buffer=new Zf,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(He||(He=Bn().StringDecoder),this.decoder=new He(t.encoding),this.encoding=t.encoding)}function O(t){if(We=We||Ae(),!(this instanceof O))return new O(t);var e=this instanceof We;this._readableState=new na(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ht.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});O.prototype.destroy=Kn.destroy;O.prototype._undestroy=Kn.undestroy;O.prototype._destroy=function(t,e){e(t)};O.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=tr.from(t,e),e=""),n=!0),ia(this,t,e,!1,n)};O.prototype.unshift=function(t){return ia(this,t,null,!0,!1)};function ia(t,e,r,n,i){C("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=!1,ld(t,o);else{var s;if(i||(s=sd(o,e)),s)dt(t,s);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==tr.prototype&&(e=Jf(e)),n)o.endEmitted?dt(t,new id):Hn(t,o,e,!0);else if(o.ended)dt(t,new rd);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?Hn(t,o,e,!1):zn(t,o)):Hn(t,o,e,!1)}else n||(o.reading=!1,zn(t,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function Hn(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&nr(t)),zn(t,e)}function sd(t,e){var r;return!Xf(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new td("chunk",["string","Buffer","Uint8Array"],e)),r}O.prototype.isPaused=function(){return this._readableState.flowing===!1};O.prototype.setEncoding=function(t){He||(He=Bn().StringDecoder);var e=new He(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var ea=1073741824;function ad(t){return t>=ea?t=ea:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function ta(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=ad(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}O.prototype.read=function(t){C("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return C("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Gn(this):nr(this),null;if(t=ta(t,e),t===0&&e.ended)return e.length===0&&Gn(this),null;var n=e.needReadable;C("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,C("length less than watermark",n)),e.ended||e.reading?(n=!1,C("reading or ended",n)):n&&(C("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=ta(r,e)));var i;return t>0?i=aa(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Gn(this)),i!==null&&this.emit("data",i),i};function ld(t,e){if(C("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?nr(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,oa(t)))}}function nr(t){var e=t._readableState;C("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(C("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(oa,t))}function oa(t){var e=t._readableState;C("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Yn(t)}function zn(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(cd,t,e))}function cd(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(C("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}O.prototype._read=function(t){dt(this,new nd("_read()"))};O.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,C("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,o=i?a:d;n.endEmitted?process.nextTick(o):r.once("end",o),t.on("unpipe",s);function s(m,_){C("onunpipe"),m===r&&_&&_.hasUnpiped===!1&&(_.hasUnpiped=!0,u())}function a(){C("onend"),t.end()}var l=ud(r);t.on("drain",l);var c=!1;function u(){C("cleanup"),t.removeListener("close",g),t.removeListener("finish",y),t.removeListener("drain",l),t.removeListener("error",h),t.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",d),r.removeListener("data",f),c=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(m){C("ondata");var _=t.write(m);C("dest.write",_),_===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&la(n.pipes,t)!==-1)&&!c&&(C("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(m){C("onerror",m),d(),t.removeListener("error",h),ra(t,"error")===0&&dt(t,m)}od(t,"error",h);function g(){t.removeListener("finish",y),d()}t.once("close",g);function y(){C("onfinish"),t.removeListener("close",g),d()}t.once("finish",y);function d(){C("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(C("pipe resume"),r.resume()),t};function ud(t){return function(){var r=t._readableState;C("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ra(t,"data")&&(r.flowing=!0,Yn(t))}}O.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=la(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};O.prototype.on=function(t,e){var r=ht.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,C("on readable",n.length,n.reading),n.length?nr(this):n.reading||process.nextTick(fd,this)),r};O.prototype.addListener=O.prototype.on;O.prototype.removeListener=function(t,e){var r=ht.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(sa,this),r};O.prototype.removeAllListeners=function(t){var e=ht.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(sa,this),e};function sa(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function fd(t){C("readable nexttick read 0"),t.read(0)}O.prototype.resume=function(){var t=this._readableState;return t.flowing||(C("resume"),t.flowing=!t.readableListening,dd(this,t)),t.paused=!1,this};function dd(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(hd,t,e))}function hd(t,e){C("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Yn(t),e.flowing&&!e.reading&&t.read(0)}O.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Yn(t){var e=t._readableState;for(C("flow",e.flowing);e.flowing&&t.read()!==null;);}O.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(C("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(C("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=e.push(s);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(a){return function(){return t[a].apply(t,arguments)}}(i));for(var o=0;o<Wn.length;o++)t.on(Wn[o],this.emit.bind(this,Wn[o]));return this._read=function(s){C("wrapped _read",s),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return Un===void 0&&(Un=Ys()),Un(this)});Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});O._fromList=aa;Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function aa(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function Gn(t){var e=t._readableState;C("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(pd,e,t))}function pd(t,e){if(C("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(O.from=function(t,e){return Vn===void 0&&(Vn=Qs()),Vn(O,t,e)});function la(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var Jn=p((dg,fa)=>{"use strict";fa.exports=ce;var ir=ge().codes,gd=ir.ERR_METHOD_NOT_IMPLEMENTED,md=ir.ERR_MULTIPLE_CALLBACK,yd=ir.ERR_TRANSFORM_ALREADY_TRANSFORMING,_d=ir.ERR_TRANSFORM_WITH_LENGTH_0,or=Ae();Ce()(ce,or);function bd(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new md);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ce(t){if(!(this instanceof ce))return new ce(t);or.call(this,t),this._transformState={afterTransform:bd.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",xd)}function xd(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){ua(t,e,r)}):ua(this,null,null)}ce.prototype.push=function(t,e){return this._transformState.needTransform=!1,or.prototype.push.call(this,t,e)};ce.prototype._transform=function(t,e,r){r(new gd("_transform()"))};ce.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ce.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};ce.prototype._destroy=function(t,e){or.prototype._destroy.call(this,t,function(r){e(r)})};function ua(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new _d;if(t._transformState.transforming)throw new yd;return t.push(null)}});var pa=p((hg,ha)=>{"use strict";ha.exports=pt;var da=Jn();Ce()(pt,da);function pt(t){if(!(this instanceof pt))return new pt(t);da.call(this,t)}pt.prototype._transform=function(t,e,r){r(null,t)}});var ba=p((pg,_a)=>{"use strict";var Xn;function wd(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var ya=ge().codes,vd=ya.ERR_MISSING_ARGS,Ed=ya.ERR_STREAM_DESTROYED;function ga(t){if(t)throw t}function Sd(t){return t.setHeader&&typeof t.abort=="function"}function Cd(t,e,r,n){n=wd(n);var i=!1;t.on("close",function(){i=!0}),Xn===void 0&&(Xn=Zt()),Xn(t,{readable:e,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,Sd(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new Ed("pipe"))}}}function ma(t){t()}function Ad(t,e){return t.pipe(e)}function Od(t){return!t.length||typeof t[t.length-1]!="function"?ga:t.pop()}function Id(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Od(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new vd("streams");var i,o=e.map(function(s,a){var l=a<e.length-1,c=a>0;return Cd(s,l,c,function(u){i||(i=u),u&&o.forEach(ma),!l&&(o.forEach(ma),n(i))})});return e.reduce(Ad)}_a.exports=Id});var xa=p((Y,mt)=>{var gt=require("stream");process.env.READABLE_STREAM==="disable"&&gt?(mt.exports=gt.Readable,Object.assign(mt.exports,gt),mt.exports.Stream=gt):(Y=mt.exports=Dn(),Y.Stream=gt||Y,Y.Readable=Y,Y.Writable=Pn(),Y.Duplex=Ae(),Y.Transform=Jn(),Y.PassThrough=pa(),Y.finished=Zt(),Y.pipeline=ba())});var Ea=p((gg,va)=>{"use strict";var{Buffer:Z}=require("buffer"),wa=Symbol.for("BufferList");function R(t){if(!(this instanceof R))return new R(t);R._init.call(this,t)}R._init=function(e){Object.defineProperty(this,wa,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};R.prototype._new=function(e){return new R(e)};R.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(e<i||n===this._bufs.length-1)return[n,e-r];r=i}};R.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let n=0;n<e;n++)r+=this._bufs[n].length;return r};R.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};R.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};R.prototype.copy=function(e,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return e||Z.alloc(0);let o=!!e,s=this._offset(n),a=i-n,l=a,c=o&&r||0,u=s[1];if(n===0&&i===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:Z.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,c),c+=this._bufs[f].length;return e}if(l<=this._bufs[s[0]].length-u)return o?this._bufs[s[0]].copy(e,r,u,u+l):this._bufs[s[0]].slice(u,u+l);o||(e=Z.allocUnsafe(a));for(let f=s[0];f<this._bufs.length;f++){let h=this._bufs[f].length-u;if(l>h)this._bufs[f].copy(e,c,u),c+=h;else{this._bufs[f].copy(e,c,u,u+l),c+=h;break}l-=h,u&&(u=0)}return e.length>c?e.slice(0,c):e};R.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let n=this._offset(e),i=this._offset(r),o=this._bufs.slice(n[0],i[0]+1);return i[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,i[1]),n[1]!==0&&(o[0]=o[0].slice(n[1])),this._new(o)};R.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};R.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};R.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};R.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(Z.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(Z.from(e));return this};R.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};R.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=Z.from([t]):typeof t=="string"?t=Z.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=Z.from(t.buffer,t.byteOffset,t.byteLength):Z.isBuffer(t)||(t=Z.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let n=this._offset(e),i=n[0],o=n[1];for(;i<this._bufs.length;i++){let s=this._bufs[i];for(;o<s.length;)if(s.length-o>=t.length){let l=s.indexOf(t,o);if(l!==-1)return this._reverseOffset([i,l]);o=s.length-t.length+1}else{let l=this._reverseOffset([i,o]);if(this._match(l,t))return l;o++}o=0}return-1};R.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?R.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:R.prototype[r]=function(n=0){return this.slice(n,n+t[r])[r](0)}})(e)})();R.prototype._isBufferList=function(e){return e instanceof R||R.isBufferList(e)};R.isBufferList=function(e){return e!=null&&e[wa]};va.exports=R});var Sa=p((mg,sr)=>{"use strict";var Zn=xa().Duplex,Rd=Ce(),yt=Ea();function V(t){if(!(this instanceof V))return new V(t);if(typeof t=="function"){this._callback=t;let e=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",e)}),this.on("unpipe",function(n){n.removeListener("error",e)}),t=null}yt._init.call(this,t),Zn.call(this)}Rd(V,Zn);Object.assign(V.prototype,yt.prototype);V.prototype._new=function(e){return new V(e)};V.prototype._write=function(e,r,n){this._appendBuffer(e),typeof n=="function"&&n()};V.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};V.prototype.end=function(e){Zn.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};V.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};V.prototype._isBufferList=function(e){return e instanceof V||e instanceof yt||V.isBufferList(e)};V.isBufferList=yt.isBufferList;sr.exports=V;sr.exports.BufferListStream=V;sr.exports.BufferList=yt});var fr=p((yg,ri)=>{"use strict";var Td=require("readline"),Fd=X(),Ca=zo(),ar=Xo(),lr=es(),Pd=is(),Ld=hs(),kd=gs(),Dd=xn(),{BufferListStream:Nd}=Sa(),Qn=Symbol("text"),ei=Symbol("prefixText"),Md=3,ti=class{constructor(){this.requests=0,this.mutedStream=new Nd,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(r,n,...i){let{stdin:o}=process;if(e.requests>0||o.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(Md)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=Td.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},cr,ur=class{constructor(e){cr||(cr=new ti),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:kd({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:!1,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(!Dd())this._spinner=ar.line;else if(e===void 0)this._spinner=ar.dots;else if(e!=="default"&&ar[e])this._spinner=ar[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Qn]}set text(e){this[Qn]=e,this.updateLineCount()}get prefixText(){return this[ei]}set prefixText(e){this[ei]=e,this.updateLineCount()}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[ei],r=" "){return typeof e=="string"?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.stream.columns||80,r=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let n of Pd(r+"--"+this[Qn]).split(`
28
- `))this.lineCount+=Math.max(1,Math.ceil(Ld(n)/e))}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this._isEnabled=e}get isSilent(){return this._isSilent}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this._isSilent=e}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=Fd[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.isSilent?this:(this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this)}start(e){return e&&(this.text=e),this.isSilent?this:this.isEnabled?this.isSpinning?this:(this.hideCursor&&Ca.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,cr.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
29
- `),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&Ca.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(cr.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:lr.success,text:e})}fail(e){return this.stopAndPersist({symbol:lr.error,text:e})}warn(e){return this.stopAndPersist({symbol:lr.warning,text:e})}info(e){return this.stopAndPersist({symbol:lr.info,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;let r=e.prefixText||this.prefixText,n=e.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${i}
30
- `),this}},qd=function(t){return new ur(t)};ri.exports=qd;ri.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new ur(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var ii=p((_g,Oa)=>{"use strict";var Aa=require("fs"),ni;function Bd(){try{return Aa.statSync("/.dockerenv"),!0}catch{return!1}}function jd(){try{return Aa.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}Oa.exports=()=>(ni===void 0&&(ni=Bd()||jd()),ni)});var Ta=p((bg,oi)=>{"use strict";var $d=require("os"),Ud=require("fs"),Ia=ii(),Ra=()=>{if(process.platform!=="linux")return!1;if($d.release().toLowerCase().includes("microsoft"))return!Ia();try{return Ud.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Ia():!1}catch{return!1}};process.env.__IS_WSL_TEST__?oi.exports=Ra:oi.exports=Ra()});var Pa=p((xg,Fa)=>{"use strict";Fa.exports=(t,e,r)=>{let n=i=>Object.defineProperty(t,e,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),t}});var ui=p((wg,qa)=>{var Vd=require("path"),Wd=require("child_process"),{promises:hr,constants:Ma}=require("fs"),dr=Ta(),Hd=ii(),ai=Pa(),La=Vd.join(__dirname,"xdg-open"),{platform:Ge,arch:ka}=process,Gd=()=>{try{return hr.statSync("/run/.containerenv"),!0}catch{return!1}},si;function zd(){return si===void 0&&(si=Gd()||Hd()),si}var Kd=(()=>{let t="/mnt/",e;return async function(){if(e)return e;let r="/etc/wsl.conf",n=!1;try{await hr.access(r,Ma.F_OK),n=!0}catch{}if(!n)return t;let i=await hr.readFile(r,{encoding:"utf8"}),o=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return o?(e=o.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):t}})(),Da=async(t,e)=>{let r;for(let n of t)try{return await e(n)}catch(i){r=i}throw r},pr=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return Da(t.app,a=>pr({...t,app:a}));let{name:e,arguments:r=[]}=t.app||{};if(r=[...r],Array.isArray(e))return Da(e,a=>pr({...t,app:{name:a,arguments:r}}));let n,i=[],o={};if(Ge==="darwin")n="open",t.wait&&i.push("--wait-apps"),t.background&&i.push("--background"),t.newInstance&&i.push("--new"),e&&i.push("-a",e);else if(Ge==="win32"||dr&&!zd()&&!e){let a=await Kd();n=dr?`${a}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),dr||(o.windowsVerbatimArguments=!0);let l=["Start"];t.wait&&l.push("-Wait"),e?(l.push(`"\`"${e}\`""`,"-ArgumentList"),t.target&&r.unshift(t.target)):t.target&&l.push(`"${t.target}"`),r.length>0&&(r=r.map(c=>`"\`"${c}\`""`),l.push(r.join(","))),t.target=Buffer.from(l.join(" "),"utf16le").toString("base64")}else{if(e)n=e;else{let a=!__dirname||__dirname==="/",l=!1;try{await hr.access(La,Ma.X_OK),l=!0}catch{}n=process.versions.electron||Ge==="android"||a||!l?"xdg-open":La}r.length>0&&i.push(...r),t.wait||(o.stdio="ignore",o.detached=!0)}t.target&&i.push(t.target),Ge==="darwin"&&r.length>0&&i.push("--args",...r);let s=Wd.spawn(n,i,o);return t.wait?new Promise((a,l)=>{s.once("error",l),s.once("close",c=>{if(!t.allowNonzeroExitCode&&c>0){l(new Error(`Exited with code ${c}`));return}a(s)})}):(s.unref(),s)},li=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `target`");return pr({...e,target:t})},Yd=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `name`");let{arguments:r=[]}=e||{};if(r!=null&&!Array.isArray(r))throw new TypeError("Expected `appArguments` as Array type");return pr({...e,app:{name:t,arguments:r}})};function Na(t){if(typeof t=="string"||Array.isArray(t))return t;let{[ka]:e}=t;if(!e)throw new Error(`${ka} is not supported`);return e}function ci({[Ge]:t},{wsl:e}){if(e&&dr)return Na(e);if(!t)throw new Error(`${Ge} is not supported`);return Na(t)}var gr={};ai(gr,"chrome",()=>ci({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));ai(gr,"firefox",()=>ci({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));ai(gr,"edge",()=>ci({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));li.apps=gr;li.openApp=Yd;qa.exports=li});var bt=p((vg,Ua)=>{"use strict";var _t=require("fs"),ja=require("path"),Jd=require("crypto"),Xd=require("os"),Zd=ja.join(Xd.homedir(),".xFramework","instances","default"),ze=ja.join(Zd,"license.key"),Qd=`-----BEGIN PUBLIC KEY-----
25
+ `,i)}while(n!==-1);return o+=t.substr(i),o};Lo.exports={stringReplaceAll:cu,stringEncaseCRLFWithFirstIndex:uu}});var Bo=m((G0,qo)=>{"use strict";var fu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ko=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,du=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,hu=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,pu=new Map([["n",`
26
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Mo(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):pu.get(t)||t}function gu(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let o of n){let s=Number(o);if(!Number.isNaN(s))r.push(s);else if(i=o.match(du))r.push(i[2].replace(hu,(a,l,c)=>l?Mo(l):c));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${t}')`)}return r}function mu(t){ko.lastIndex=0;let e=[],r;for(;(r=ko.exec(t))!==null;){let n=r[1];if(r[2]){let i=gu(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function No(t,e){let r={};for(let i of e)for(let o of i.styles)r[o[0]]=i.inverse?null:o.slice(1);let n=t;for(let[i,o]of Object.entries(r))if(Array.isArray(o)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=o.length>0?n[i](...o):n[i]}return n}qo.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(fu,(o,s,a,l,c,u)=>{if(s)i.push(Mo(s));else if(l){let f=i.join("");i=[],n.push(r.length===0?f:No(t,r)(f)),r.push({inverse:a,styles:mu(l)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(No(t,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),n.push(i.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var Q=m((z0,Ho)=>{"use strict";var lt=Oo(),{stdout:vn,stderr:En}=bn(),{stringReplaceAll:yu,stringEncaseCRLFWithFirstIndex:_u}=Do(),{isArray:Nt}=Array,$o=["ansi","ansi","ansi256","ansi16m"],je=Object.create(null),xu=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=vn?vn.level:0;t.level=e.level===void 0?r:e.level},Sn=class{constructor(e){return Uo(e)}},Uo=t=>{let e={};return xu(e,t),e.template=(...r)=>Wo(e.template,...r),Object.setPrototypeOf(e,Mt.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Sn,e.template};function Mt(t){return Uo(t)}for(let[t,e]of Object.entries(lt))je[t]={get(){let r=qt(this,Cn(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};je.visible={get(){let t=qt(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Vo=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of Vo)je[t]={get(){let{level:e}=this;return function(...r){let n=Cn(lt.color[$o[e]][t](...r),lt.color.close,this._styler);return qt(this,n,this._isEmpty)}}};for(let t of Vo){let e="bg"+t[0].toUpperCase()+t.slice(1);je[e]={get(){let{level:r}=this;return function(...n){let i=Cn(lt.bgColor[$o[r]][t](...n),lt.bgColor.close,this._styler);return qt(this,i,this._isEmpty)}}}}var bu=Object.defineProperties(()=>{},{...je,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Cn=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},qt=(t,e,r)=>{let n=(...i)=>Nt(i[0])&&Nt(i[0].raw)?jo(n,Wo(n,...i)):jo(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,bu),n._generator=t,n._styler=e,n._isEmpty=r,n},jo=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=yu(e,r.close,r.open),r=r.parent;let o=e.indexOf(`
27
+ `);return o!==-1&&(e=_u(e,i,n,o)),n+e+i},wn,Wo=(t,...e)=>{let[r]=e;if(!Nt(r)||!Nt(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let o=1;o<r.length;o++)i.push(String(n[o-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[o]));return wn===void 0&&(wn=Bo()),wn(t,i.join(""))};Object.defineProperties(Mt.prototype,je);var Bt=Mt();Bt.supportsColor=vn;Bt.stderr=Mt({level:En?En.level:0});Bt.stderr.supportsColor=En;Ho.exports=Bt});var zo=m((K0,An)=>{"use strict";var Go=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};An.exports=Go;An.exports.default=Go});var Yo=m((Y0,$t)=>{"use strict";var wu=zo(),jt=new WeakMap,Ko=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",o=function(...s){if(jt.set(o,++n),n===1)r=t.apply(this,s),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return wu(o,t),jt.set(o,n),o};$t.exports=Ko;$t.exports.default=Ko;$t.exports.callCount=t=>{if(!jt.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return jt.get(t)}});var Jo=m((J0,Ut)=>{Ut.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ut.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ut.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ts=m((X0,Ve)=>{var k=global.process,Ce=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Ce(k)?(Xo=require("assert"),$e=Jo(),Zo=/^win/i.test(k.platform),ct=require("events"),typeof ct!="function"&&(ct=ct.EventEmitter),k.__signal_exit_emitter__?V=k.__signal_exit_emitter__:(V=k.__signal_exit_emitter__=new ct,V.count=0,V.emitted={}),V.infinite||(V.setMaxListeners(1/0),V.infinite=!0),Ve.exports=function(t,e){if(!Ce(global.process))return function(){};Xo.equal(typeof t,"function","a callback must be provided for exit handler"),Ue===!1&&In();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){V.removeListener(r,t),V.listeners("exit").length===0&&V.listeners("afterexit").length===0&&Vt()};return V.on(r,t),n},Vt=function(){!Ue||!Ce(global.process)||(Ue=!1,$e.forEach(function(e){try{k.removeListener(e,Wt[e])}catch{}}),k.emit=Ht,k.reallyExit=On,V.count-=1)},Ve.exports.unload=Vt,Ae=function(e,r,n){V.emitted[e]||(V.emitted[e]=!0,V.emit(e,r,n))},Wt={},$e.forEach(function(t){Wt[t]=function(){if(Ce(global.process)){var r=k.listeners(t);r.length===V.count&&(Vt(),Ae("exit",null,t),Ae("afterexit",null,t),Zo&&t==="SIGHUP"&&(t="SIGINT"),k.kill(k.pid,t))}}}),Ve.exports.signals=function(){return $e},Ue=!1,In=function(){Ue||!Ce(global.process)||(Ue=!0,V.count+=1,$e=$e.filter(function(e){try{return k.on(e,Wt[e]),!0}catch{return!1}}),k.emit=es,k.reallyExit=Qo)},Ve.exports.load=In,On=k.reallyExit,Qo=function(e){Ce(global.process)&&(k.exitCode=e||0,Ae("exit",k.exitCode,null),Ae("afterexit",k.exitCode,null),On.call(k,k.exitCode))},Ht=k.emit,es=function(e,r){if(e==="exit"&&Ce(global.process)){r!==void 0&&(k.exitCode=r);var n=Ht.apply(this,arguments);return Ae("exit",k.exitCode,null),Ae("afterexit",k.exitCode,null),n}else return Ht.apply(this,arguments)}):Ve.exports=function(){return function(){}};var Xo,$e,Zo,ct,V,Vt,Ae,Wt,Ue,In,On,Qo,Ht,es});var ns=m((Z0,rs)=>{"use strict";var vu=Yo(),Eu=ts();rs.exports=vu(()=>{Eu(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var is=m(We=>{"use strict";var Su=ns(),Gt=!1;We.show=(t=process.stderr)=>{t.isTTY&&(Gt=!1,t.write("\x1B[?25h"))};We.hide=(t=process.stderr)=>{t.isTTY&&(Su(),Gt=!0,t.write("\x1B[?25l"))};We.toggle=(t,e)=>{t!==void 0&&(Gt=t),Gt?We.show(e):We.hide(e)}});var os=m((eg,Cu)=>{Cu.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var ls=m((tg,as)=>{"use strict";var zt=Object.assign({},os()),ss=Object.keys(zt);Object.defineProperty(zt,"random",{get(){let t=Math.floor(Math.random()*ss.length),e=ss[t];return zt[e]}});as.exports=zt});var Tn=m((rg,cs)=>{"use strict";cs.exports=()=>process.platform!=="win32"?!0:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"});var fs=m((ng,us)=>{"use strict";var ge=Q(),Au=Tn(),Iu={info:ge.blue("\u2139"),success:ge.green("\u2714"),warning:ge.yellow("\u26A0"),error:ge.red("\u2716")},Ou={info:ge.blue("i"),success:ge.green("\u221A"),warning:ge.yellow("\u203C"),error:ge.red("\xD7")};us.exports=Au()?Iu:Ou});var hs=m((ig,ds)=>{"use strict";ds.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var gs=m((og,ps)=>{"use strict";var Tu=hs();ps.exports=t=>typeof t=="string"?t.replace(Tu(),""):t});var ms=m((sg,Kt)=>{var Ru=function(){"use strict";function t(s,a,l,c){var u;typeof a=="object"&&(l=a.depth,c=a.prototype,u=a.filter,a=a.circular);var f=[],p=[],d=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function _(g,h){if(g===null)return null;if(h==0)return g;var y,C;if(typeof g!="object")return g;if(t.__isArray(g))y=[];else if(t.__isRegExp(g))y=new RegExp(g.source,o(g)),g.lastIndex&&(y.lastIndex=g.lastIndex);else if(t.__isDate(g))y=new Date(g.getTime());else{if(d&&Buffer.isBuffer(g))return Buffer.allocUnsafe?y=Buffer.allocUnsafe(g.length):y=new Buffer(g.length),g.copy(y),y;typeof c>"u"?(C=Object.getPrototypeOf(g),y=Object.create(C)):(y=Object.create(c),C=c)}if(a){var I=f.indexOf(g);if(I!=-1)return p[I];f.push(g),p.push(y)}for(var M in g){var L;C&&(L=Object.getOwnPropertyDescriptor(C,M)),!(L&&L.set==null)&&(y[M]=_(g[M],h-1))}return y}return _(s,l)}t.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function e(s){return Object.prototype.toString.call(s)}t.__objToStr=e;function r(s){return typeof s=="object"&&e(s)==="[object Date]"}t.__isDate=r;function n(s){return typeof s=="object"&&e(s)==="[object Array]"}t.__isArray=n;function i(s){return typeof s=="object"&&e(s)==="[object RegExp]"}t.__isRegExp=i;function o(s){var a="";return s.global&&(a+="g"),s.ignoreCase&&(a+="i"),s.multiline&&(a+="m"),a}return t.__getRegExpFlags=o,t}();typeof Kt=="object"&&Kt.exports&&(Kt.exports=Ru)});var _s=m((ag,ys)=>{var Pu=ms();ys.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=Pu(e[r]))}),t}});var bs=m((lg,xs)=>{xs.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Ss=m((cg,Rn)=>{"use strict";var Fu=_s(),ut=bs(),vs={nul:0,control:0};Rn.exports=function(e){return Es(e,vs)};Rn.exports.config=function(t){return t=Fu(t||{},vs),function(r){return Es(r,t)}};function Es(t,e){if(typeof t!="string")return ws(t,e);for(var r=0,n=0;n<t.length;n++){var i=ws(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function ws(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:Lu(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function Lu(t){var e=0,r=ut.length-1,n;if(t<ut[0][0]||t>ut[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>ut[n][1])e=n+1;else if(t<ut[n][0])r=n-1;else return!0;return!1}});var As=m((ug,Cs)=>{"use strict";Cs.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var Pn=m((fg,Is)=>{Is.exports=require("stream")});var Ls=m((dg,Fs)=>{"use strict";function Os(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ts(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Os(Object(r),!0).forEach(function(n){Du(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Os(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Du(t,e,r){return e=Ps(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ku(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ps(n.key),n)}}function Nu(t,e,r){return e&&Rs(t.prototype,e),r&&Rs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ps(t){var e=Mu(t,"string");return typeof e=="symbol"?e:String(e)}function Mu(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qu=require("buffer"),Yt=qu.Buffer,Bu=require("util"),Fn=Bu.inspect,ju=Fn&&Fn.custom||"inspect";function $u(t,e,r){Yt.prototype.copy.call(t,e,r)}Fs.exports=function(){function t(){ku(this,t),this.head=null,this.tail=null,this.length=0}return Nu(t,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Yt.alloc(0);for(var n=Yt.allocUnsafe(r>>>0),i=this.head,o=0;i;)$u(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=Yt.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,a),r-=a,r===0){a===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++o}return this.length-=o,n}},{key:ju,value:function(r,n){return Fn(this,Ts(Ts({},n),{},{depth:0,customInspect:!1}))}}]),t}()});var Dn=m((hg,ks)=>{"use strict";function Uu(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ln,this,t)):process.nextTick(Ln,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(Jt,r):(r._writableState.errorEmitted=!0,process.nextTick(Ds,r,o)):process.nextTick(Ds,r,o):e?(process.nextTick(Jt,r),e(o)):process.nextTick(Jt,r)}),this)}function Ds(t,e){Ln(t,e),Jt(t)}function Jt(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Vu(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ln(t,e){t.emit("error",e)}function Wu(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}ks.exports={destroy:Uu,undestroy:Vu,errorOrDestroy:Wu}});var me=m((pg,qs)=>{"use strict";var Ms={};function J(t,e,r){r||(r=Error);function n(o,s,a){return typeof e=="string"?e:e(o,s,a)}class i extends r{constructor(s,a,l){super(n(s,a,l))}}i.prototype.name=r.name,i.prototype.code=t,Ms[t]=i}function Ns(t,e){if(Array.isArray(t)){let r=t.length;return t=t.map(n=>String(n)),r>2?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:r===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Hu(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function Gu(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function zu(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}J("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);J("ERR_INVALID_ARG_TYPE",function(t,e,r){let n;typeof e=="string"&&Hu(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let i;if(Gu(t," argument"))i=`The ${t} ${n} ${Ns(e,"type")}`;else{let o=zu(t,".")?"property":"argument";i=`The "${t}" ${o} ${n} ${Ns(e,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);J("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");J("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});J("ERR_STREAM_PREMATURE_CLOSE","Premature close");J("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});J("ERR_MULTIPLE_CALLBACK","Callback called multiple times");J("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");J("ERR_STREAM_WRITE_AFTER_END","write after end");J("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);J("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);J("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");qs.exports.codes=Ms});var kn=m((gg,Bs)=>{"use strict";var Ku=me().codes.ERR_INVALID_OPT_VALUE;function Yu(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Ju(t,e,r,n){var i=Yu(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new Ku(o,i)}return Math.floor(i)}return t.objectMode?16:16*1024}Bs.exports={getHighWaterMark:Ju}});var js=m((mg,Nn)=>{typeof Object.create=="function"?Nn.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Nn.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Ie=m((yg,qn)=>{try{if(Mn=require("util"),typeof Mn.inherits!="function")throw"";qn.exports=Mn.inherits}catch{qn.exports=js()}var Mn});var Us=m((_g,$s)=>{$s.exports=require("util").deprecate});var $n=m((xg,Ks)=>{"use strict";Ks.exports=N;function Ws(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Sf(e,t)}}var He;N.WritableState=dt;var Xu={deprecate:Us()},Hs=Pn(),Zt=require("buffer").Buffer,Zu=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Qu(t){return Zt.from(t)}function ef(t){return Zt.isBuffer(t)||t instanceof Zu}var jn=Dn(),tf=kn(),rf=tf.getHighWaterMark,ye=me().codes,nf=ye.ERR_INVALID_ARG_TYPE,of=ye.ERR_METHOD_NOT_IMPLEMENTED,sf=ye.ERR_MULTIPLE_CALLBACK,af=ye.ERR_STREAM_CANNOT_PIPE,lf=ye.ERR_STREAM_DESTROYED,cf=ye.ERR_STREAM_NULL_VALUES,uf=ye.ERR_STREAM_WRITE_AFTER_END,ff=ye.ERR_UNKNOWN_ENCODING,Ge=jn.errorOrDestroy;Ie()(N,Hs);function df(){}function dt(t,e,r){He=He||Oe(),t=t||{},typeof r!="boolean"&&(r=e instanceof He),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=rf(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){xf(e,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ws(this)}dt.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(dt.prototype,"buffer",{get:Xu.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Xt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Xt=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(e){return Xt.call(this,e)?!0:this!==N?!1:e&&e._writableState instanceof dt}})):Xt=function(e){return e instanceof this};function N(t){He=He||Oe();var e=this instanceof He;if(!e&&!Xt.call(N,this))return new N(t);this._writableState=new dt(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Hs.call(this)}N.prototype.pipe=function(){Ge(this,new af)};function hf(t,e){var r=new uf;Ge(t,r),process.nextTick(e,r)}function pf(t,e,r,n){var i;return r===null?i=new cf:typeof r!="string"&&!e.objectMode&&(i=new nf("chunk",["string","Buffer"],r)),i?(Ge(t,i),process.nextTick(n,i),!1):!0}N.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&ef(t);return o&&!Zt.isBuffer(t)&&(t=Qu(t)),typeof e=="function"&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),typeof r!="function"&&(r=df),n.ending?hf(this,r):(o||pf(this,n,t,r))&&(n.pendingcb++,i=mf(this,n,o,t,e,r)),i};N.prototype.cork=function(){this._writableState.corked++};N.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Gs(this,t))};N.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new ff(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function gf(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Zt.from(e,r)),e}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function mf(t,e,r,n,i,o){if(!r){var s=gf(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Bn(t,e,!1,a,n,i,o);return l}function Bn(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new lf("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function yf(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(ft,t,e),t._writableState.errorEmitted=!0,Ge(t,n)):(i(n),t._writableState.errorEmitted=!0,Ge(t,n),ft(t,e))}function _f(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function xf(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new sf;if(_f(r),e)yf(t,r,n,e,i);else{var o=zs(r)||t.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Gs(t,r),n?process.nextTick(Vs,t,r,o,i):Vs(t,r,o,i)}}function Vs(t,e,r,n){r||bf(t,e),e.pendingcb--,n(),ft(t,e)}function bf(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Gs(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,a=!0;r;)i[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;i.allBuffers=a,Bn(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new Ws(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,f=e.objectMode?1:l.length;if(Bn(t,e,!1,f,l,c,u),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}N.prototype._write=function(t,e,r){r(new of("_write()"))};N.prototype._writev=null;N.prototype.end=function(t,e,r){var n=this._writableState;return typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||Ef(this,n,r),this};Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function zs(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function wf(t,e){t._final(function(r){e.pendingcb--,r&&Ge(t,r),e.prefinished=!0,t.emit("prefinish"),ft(t,e)})}function vf(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(wf,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function ft(t,e){var r=zs(e);if(r&&(vf(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}function Ef(t,e,r){e.ending=!0,ft(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Sf(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});N.prototype.destroy=jn.destroy;N.prototype._undestroy=jn.undestroy;N.prototype._destroy=function(t,e){e(t)}});var Oe=m((bg,Js)=>{"use strict";var Cf=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Js.exports=oe;var Ys=Wn(),Vn=$n();Ie()(oe,Ys);for(Un=Cf(Vn.prototype),Qt=0;Qt<Un.length;Qt++)er=Un[Qt],oe.prototype[er]||(oe.prototype[er]=Vn.prototype[er]);var Un,er,Qt;function oe(t){if(!(this instanceof oe))return new oe(t);Ys.call(this,t),Vn.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Af)))}Object.defineProperty(oe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(oe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(oe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Af(){this._writableState.ended||process.nextTick(If,this)}function If(t){t.end()}Object.defineProperty(oe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var Qs=m((Hn,Zs)=>{var tr=require("buffer"),se=tr.Buffer;function Xs(t,e){for(var r in t)e[r]=t[r]}se.from&&se.alloc&&se.allocUnsafe&&se.allocUnsafeSlow?Zs.exports=tr:(Xs(tr,Hn),Hn.Buffer=Te);function Te(t,e,r){return se(t,e,r)}Te.prototype=Object.create(se.prototype);Xs(se,Te);Te.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return se(t,e,r)};Te.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=se(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};Te.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return se(t)};Te.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return tr.SlowBuffer(t)}});var Kn=m(ta=>{"use strict";var zn=Qs().Buffer,ea=zn.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Of(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Tf(t){var e=Of(t);if(typeof e!="string"&&(zn.isEncoding===ea||!ea(t)))throw new Error("Unknown encoding: "+t);return e||t}ta.StringDecoder=ht;function ht(t){this.encoding=Tf(t);var e;switch(this.encoding){case"utf16le":this.text=kf,this.end=Nf,e=4;break;case"utf8":this.fillLast=Ff,e=4;break;case"base64":this.text=Mf,this.end=qf,e=3;break;default:this.write=Bf,this.end=jf;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=zn.allocUnsafe(e)}ht.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};ht.prototype.end=Df;ht.prototype.text=Lf;ht.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Gn(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Rf(t,e,r){var n=e.length-1;if(n<r)return 0;var i=Gn(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||i===-2?0:(i=Gn(e[n]),i>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||i===-2?0:(i=Gn(e[n]),i>=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function Pf(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Ff(t){var e=this.lastTotal-this.lastNeed,r=Pf(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Lf(t,e){var r=Rf(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function Df(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function kf(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Nf(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function Mf(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function qf(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Bf(t){return t.toString(this.encoding)}function jf(t){return t&&t.length?this.write(t):""}});var rr=m((vg,ia)=>{"use strict";var ra=me().codes.ERR_STREAM_PREMATURE_CLOSE;function $f(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}function Uf(){}function Vf(t){return t.setHeader&&typeof t.abort=="function"}function na(t,e,r){if(typeof e=="function")return na(t,null,e);e||(e={}),r=$f(r||Uf);var n=e.readable||e.readable!==!1&&t.readable,i=e.writable||e.writable!==!1&&t.writable,o=function(){t.writable||a()},s=t._writableState&&t._writableState.finished,a=function(){i=!1,s=!0,n||r.call(t)},l=t._readableState&&t._readableState.endEmitted,c=function(){n=!1,l=!0,i||r.call(t)},u=function(_){r.call(t,_)},f=function(){var _;if(n&&!l)return(!t._readableState||!t._readableState.ended)&&(_=new ra),r.call(t,_);if(i&&!s)return(!t._writableState||!t._writableState.ended)&&(_=new ra),r.call(t,_)},p=function(){t.req.on("finish",a)};return Vf(t)?(t.on("complete",a),t.on("abort",f),t.req?p():t.on("request",p)):i&&!t._writableState&&(t.on("end",o),t.on("close",o)),t.on("end",c),t.on("finish",a),e.error!==!1&&t.on("error",u),t.on("close",f),function(){t.removeListener("complete",a),t.removeListener("abort",f),t.removeListener("request",p),t.req&&t.req.removeListener("finish",a),t.removeListener("end",o),t.removeListener("close",o),t.removeListener("finish",a),t.removeListener("end",c),t.removeListener("error",u),t.removeListener("close",f)}}ia.exports=na});var sa=m((Eg,oa)=>{"use strict";var nr;function _e(t,e,r){return e=Wf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wf(t){var e=Hf(t,"string");return typeof e=="symbol"?e:String(e)}function Hf(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Gf=rr(),xe=Symbol("lastResolve"),Re=Symbol("lastReject"),pt=Symbol("error"),ir=Symbol("ended"),Pe=Symbol("lastPromise"),Yn=Symbol("handlePromise"),Fe=Symbol("stream");function be(t,e){return{value:t,done:e}}function zf(t){var e=t[xe];if(e!==null){var r=t[Fe].read();r!==null&&(t[Pe]=null,t[xe]=null,t[Re]=null,e(be(r,!1)))}}function Kf(t){process.nextTick(zf,t)}function Yf(t,e){return function(r,n){t.then(function(){if(e[ir]){r(be(void 0,!0));return}e[Yn](r,n)},n)}}var Jf=Object.getPrototypeOf(function(){}),Xf=Object.setPrototypeOf((nr={get stream(){return this[Fe]},next:function(){var e=this,r=this[pt];if(r!==null)return Promise.reject(r);if(this[ir])return Promise.resolve(be(void 0,!0));if(this[Fe].destroyed)return new Promise(function(s,a){process.nextTick(function(){e[pt]?a(e[pt]):s(be(void 0,!0))})});var n=this[Pe],i;if(n)i=new Promise(Yf(n,this));else{var o=this[Fe].read();if(o!==null)return Promise.resolve(be(o,!1));i=new Promise(this[Yn])}return this[Pe]=i,i}},_e(nr,Symbol.asyncIterator,function(){return this}),_e(nr,"return",function(){var e=this;return new Promise(function(r,n){e[Fe].destroy(null,function(i){if(i){n(i);return}r(be(void 0,!0))})})}),nr),Jf),Zf=function(e){var r,n=Object.create(Xf,(r={},_e(r,Fe,{value:e,writable:!0}),_e(r,xe,{value:null,writable:!0}),_e(r,Re,{value:null,writable:!0}),_e(r,pt,{value:null,writable:!0}),_e(r,ir,{value:e._readableState.endEmitted,writable:!0}),_e(r,Yn,{value:function(o,s){var a=n[Fe].read();a?(n[Pe]=null,n[xe]=null,n[Re]=null,o(be(a,!1))):(n[xe]=o,n[Re]=s)},writable:!0}),r));return n[Pe]=null,Gf(e,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Re];o!==null&&(n[Pe]=null,n[xe]=null,n[Re]=null,o(i)),n[pt]=i;return}var s=n[xe];s!==null&&(n[Pe]=null,n[xe]=null,n[Re]=null,s(be(void 0,!0))),n[ir]=!0}),e.on("readable",Kf.bind(null,n)),n};oa.exports=Zf});var ua=m((Sg,ca)=>{"use strict";function aa(t,e,r,n,i,o,s){try{var a=t[o](s),l=a.value}catch(c){r(c);return}a.done?e(l):Promise.resolve(l).then(n,i)}function Qf(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function s(l){aa(o,n,i,s,a,"next",l)}function a(l){aa(o,n,i,s,a,"throw",l)}s(void 0)})}}function la(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ed(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?la(Object(r),!0).forEach(function(n){td(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):la(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function td(t,e,r){return e=rd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rd(t){var e=nd(t,"string");return typeof e=="symbol"?e:String(e)}function nd(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var id=me().codes.ERR_INVALID_ARG_TYPE;function od(t,e,r){var n;if(e&&typeof e.next=="function")n=e;else if(e&&e[Symbol.asyncIterator])n=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])n=e[Symbol.iterator]();else throw new id("iterable",["Iterable"],e);var i=new t(ed({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=Qf(function*(){try{var l=yield n.next(),c=l.value,u=l.done;u?i.push(null):i.push(yield c)?s():o=!1}catch(f){i.destroy(f)}}),a.apply(this,arguments)}return i}ca.exports=od});var Wn=m((Ag,ba)=>{"use strict";ba.exports=T;var ze;T.ReadableState=pa;var Cg=require("events").EventEmitter,ha=function(e,r){return e.listeners(r).length},mt=Pn(),or=require("buffer").Buffer,sd=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ad(t){return or.from(t)}function ld(t){return or.isBuffer(t)||t instanceof sd}var Jn=require("util"),O;Jn&&Jn.debuglog?O=Jn.debuglog("stream"):O=function(){};var cd=Ls(),ni=Dn(),ud=kn(),fd=ud.getHighWaterMark,sr=me().codes,dd=sr.ERR_INVALID_ARG_TYPE,hd=sr.ERR_STREAM_PUSH_AFTER_EOF,pd=sr.ERR_METHOD_NOT_IMPLEMENTED,gd=sr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ke,Xn,Zn;Ie()(T,mt);var gt=ni.errorOrDestroy,Qn=["error","close","destroy","pause","resume"];function md(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function pa(t,e,r){ze=ze||Oe(),t=t||{},typeof r!="boolean"&&(r=e instanceof ze),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=fd(this,t,"readableHighWaterMark",r),this.buffer=new cd,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ke||(Ke=Kn().StringDecoder),this.decoder=new Ke(t.encoding),this.encoding=t.encoding)}function T(t){if(ze=ze||Oe(),!(this instanceof T))return new T(t);var e=this instanceof ze;this._readableState=new pa(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),mt.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});T.prototype.destroy=ni.destroy;T.prototype._undestroy=ni.undestroy;T.prototype._destroy=function(t,e){e(t)};T.prototype.push=function(t,e){var r=this._readableState,n;return r.objectMode?n=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=or.from(t,e),e=""),n=!0),ga(this,t,e,!1,n)};T.prototype.unshift=function(t){return ga(this,t,null,!0,!1)};function ga(t,e,r,n,i){O("readableAddChunk",e);var o=t._readableState;if(e===null)o.reading=!1,xd(t,o);else{var s;if(i||(s=yd(o,e)),s)gt(t,s);else if(o.objectMode||e&&e.length>0)if(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==or.prototype&&(e=ad(e)),n)o.endEmitted?gt(t,new gd):ei(t,o,e,!0);else if(o.ended)gt(t,new hd);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||e.length!==0?ei(t,o,e,!1):ri(t,o)):ei(t,o,e,!1)}else n||(o.reading=!1,ri(t,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function ei(t,e,r,n){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&ar(t)),ri(t,e)}function yd(t,e){var r;return!ld(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new dd("chunk",["string","Buffer","Uint8Array"],e)),r}T.prototype.isPaused=function(){return this._readableState.flowing===!1};T.prototype.setEncoding=function(t){Ke||(Ke=Kn().StringDecoder);var e=new Ke(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var fa=1073741824;function _d(t){return t>=fa?t=fa:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function da(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=_d(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}T.prototype.read=function(t){O("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return O("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ti(this):ar(this),null;if(t=da(t,e),t===0&&e.ended)return e.length===0&&ti(this),null;var n=e.needReadable;O("need readable",n),(e.length===0||e.length-t<e.highWaterMark)&&(n=!0,O("length less than watermark",n)),e.ended||e.reading?(n=!1,O("reading or ended",n)):n&&(O("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=da(r,e)));var i;return t>0?i=_a(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&ti(this)),i!==null&&this.emit("data",i),i};function xd(t,e){if(O("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?ar(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,ma(t)))}}function ar(t){var e=t._readableState;O("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(O("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(ma,t))}function ma(t){var e=t._readableState;O("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,ii(t)}function ri(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(bd,t,e))}function bd(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var r=e.length;if(O("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}T.prototype._read=function(t){gt(this,new pd("_read()"))};T.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t);break}n.pipesCount+=1,O("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,o=i?a:g;n.endEmitted?process.nextTick(o):r.once("end",o),t.on("unpipe",s);function s(h,y){O("onunpipe"),h===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,u())}function a(){O("onend"),t.end()}var l=wd(r);t.on("drain",l);var c=!1;function u(){O("cleanup"),t.removeListener("close",d),t.removeListener("finish",_),t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",f),c=!0,n.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}r.on("data",f);function f(h){O("ondata");var y=t.write(h);O("dest.write",y),y===!1&&((n.pipesCount===1&&n.pipes===t||n.pipesCount>1&&xa(n.pipes,t)!==-1)&&!c&&(O("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(h){O("onerror",h),g(),t.removeListener("error",p),ha(t,"error")===0&&gt(t,h)}md(t,"error",p);function d(){t.removeListener("finish",_),g()}t.once("close",d);function _(){O("onfinish"),t.removeListener("close",d),g()}t.once("finish",_);function g(){O("unpipe"),r.unpipe(t)}return t.emit("pipe",r),n.flowing||(O("pipe resume"),r.resume()),t};function wd(t){return function(){var r=t._readableState;O("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ha(t,"data")&&(r.flowing=!0,ii(t))}}T.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=xa(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};T.prototype.on=function(t,e){var r=mt.prototype.on.call(this,t,e),n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,O("on readable",n.length,n.reading),n.length?ar(this):n.reading||process.nextTick(vd,this)),r};T.prototype.addListener=T.prototype.on;T.prototype.removeListener=function(t,e){var r=mt.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(ya,this),r};T.prototype.removeAllListeners=function(t){var e=mt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(ya,this),e};function ya(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function vd(t){O("readable nexttick read 0"),t.read(0)}T.prototype.resume=function(){var t=this._readableState;return t.flowing||(O("resume"),t.flowing=!t.readableListening,Ed(this,t)),t.paused=!1,this};function Ed(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Sd,t,e))}function Sd(t,e){O("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),ii(t),e.flowing&&!e.reading&&t.read(0)}T.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ii(t){var e=t._readableState;for(O("flow",e.flowing);e.flowing&&t.read()!==null;);}T.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;t.on("end",function(){if(O("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(O("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=e.push(s);a||(n=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=function(a){return function(){return t[a].apply(t,arguments)}}(i));for(var o=0;o<Qn.length;o++)t.on(Qn[o],this.emit.bind(this,Qn[o]));return this._read=function(s){O("wrapped _read",s),n&&(n=!1,t.resume())},this};typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return Xn===void 0&&(Xn=sa()),Xn(this)});Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});T._fromList=_a;Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function _a(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function ti(t){var e=t._readableState;O("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Cd,e,t))}function Cd(t,e){if(O("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}typeof Symbol=="function"&&(T.from=function(t,e){return Zn===void 0&&(Zn=ua()),Zn(T,t,e)});function xa(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}});var oi=m((Ig,va)=>{"use strict";va.exports=fe;var lr=me().codes,Ad=lr.ERR_METHOD_NOT_IMPLEMENTED,Id=lr.ERR_MULTIPLE_CALLBACK,Od=lr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Td=lr.ERR_TRANSFORM_WITH_LENGTH_0,cr=Oe();Ie()(fe,cr);function Rd(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Id);r.writechunk=null,r.writecb=null,e!=null&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function fe(t){if(!(this instanceof fe))return new fe(t);cr.call(this,t),this._transformState={afterTransform:Rd.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Pd)}function Pd(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,r){wa(t,e,r)}):wa(this,null,null)}fe.prototype.push=function(t,e){return this._transformState.needTransform=!1,cr.prototype.push.call(this,t,e)};fe.prototype._transform=function(t,e,r){r(new Ad("_transform()"))};fe.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};fe.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};fe.prototype._destroy=function(t,e){cr.prototype._destroy.call(this,t,function(r){e(r)})};function wa(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Td;if(t._transformState.transforming)throw new Od;return t.push(null)}});var Ca=m((Og,Sa)=>{"use strict";Sa.exports=yt;var Ea=oi();Ie()(yt,Ea);function yt(t){if(!(this instanceof yt))return new yt(t);Ea.call(this,t)}yt.prototype._transform=function(t,e,r){r(null,t)}});var Ra=m((Tg,Ta)=>{"use strict";var si;function Fd(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var Oa=me().codes,Ld=Oa.ERR_MISSING_ARGS,Dd=Oa.ERR_STREAM_DESTROYED;function Aa(t){if(t)throw t}function kd(t){return t.setHeader&&typeof t.abort=="function"}function Nd(t,e,r,n){n=Fd(n);var i=!1;t.on("close",function(){i=!0}),si===void 0&&(si=rr()),si(t,{readable:e,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,kd(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new Dd("pipe"))}}}function Ia(t){t()}function Md(t,e){return t.pipe(e)}function qd(t){return!t.length||typeof t[t.length-1]!="function"?Aa:t.pop()}function Bd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=qd(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Ld("streams");var i,o=e.map(function(s,a){var l=a<e.length-1,c=a>0;return Nd(s,l,c,function(u){i||(i=u),u&&o.forEach(Ia),!l&&(o.forEach(Ia),n(i))})});return e.reduce(Md)}Ta.exports=Bd});var Pa=m((X,xt)=>{var _t=require("stream");process.env.READABLE_STREAM==="disable"&&_t?(xt.exports=_t.Readable,Object.assign(xt.exports,_t),xt.exports.Stream=_t):(X=xt.exports=Wn(),X.Stream=_t||X,X.Readable=X,X.Writable=$n(),X.Duplex=Oe(),X.Transform=oi(),X.PassThrough=Ca(),X.finished=rr(),X.pipeline=Ra())});var Da=m((Rg,La)=>{"use strict";var{Buffer:ee}=require("buffer"),Fa=Symbol.for("BufferList");function F(t){if(!(this instanceof F))return new F(t);F._init.call(this,t)}F._init=function(e){Object.defineProperty(this,Fa,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};F.prototype._new=function(e){return new F(e)};F.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(e<i||n===this._bufs.length-1)return[n,e-r];r=i}};F.prototype._reverseOffset=function(t){let e=t[0],r=t[1];for(let n=0;n<e;n++)r+=this._bufs[n].length;return r};F.prototype.get=function(e){if(e>this.length||e<0)return;let r=this._offset(e);return this._bufs[r[0]][r[1]]};F.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};F.prototype.copy=function(e,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return e||ee.alloc(0);let o=!!e,s=this._offset(n),a=i-n,l=a,c=o&&r||0,u=s[1];if(n===0&&i===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:ee.concat(this._bufs,this.length);for(let f=0;f<this._bufs.length;f++)this._bufs[f].copy(e,c),c+=this._bufs[f].length;return e}if(l<=this._bufs[s[0]].length-u)return o?this._bufs[s[0]].copy(e,r,u,u+l):this._bufs[s[0]].slice(u,u+l);o||(e=ee.allocUnsafe(a));for(let f=s[0];f<this._bufs.length;f++){let p=this._bufs[f].length-u;if(l>p)this._bufs[f].copy(e,c,u),c+=p;else{this._bufs[f].copy(e,c,u,u+l),c+=p;break}l-=p,u&&(u=0)}return e.length>c?e.slice(0,c):e};F.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();let n=this._offset(e),i=this._offset(r),o=this._bufs.slice(n[0],i[0]+1);return i[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,i[1]),n[1]!==0&&(o[0]=o[0].slice(n[1])),this._new(o)};F.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};F.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};F.prototype.duplicate=function(){let e=this._new();for(let r=0;r<this._bufs.length;r++)e.append(this._bufs[r]);return e};F.prototype.append=function(e){if(e==null)return this;if(e.buffer)this._appendBuffer(ee.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let r=0;r<e.length;r++)this.append(e[r]);else if(this._isBufferList(e))for(let r=0;r<e._bufs.length;r++)this.append(e._bufs[r]);else typeof e=="number"&&(e=e.toString()),this._appendBuffer(ee.from(e));return this};F.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length};F.prototype.indexOf=function(t,e,r){if(r===void 0&&typeof e=="string"&&(r=e,e=void 0),typeof t=="function"||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof t=="number"?t=ee.from([t]):typeof t=="string"?t=ee.from(t,r):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=ee.from(t.buffer,t.byteOffset,t.byteLength):ee.isBuffer(t)||(t=ee.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),t.length===0)return e>this.length?this.length:e;let n=this._offset(e),i=n[0],o=n[1];for(;i<this._bufs.length;i++){let s=this._bufs[i];for(;o<s.length;)if(s.length-o>=t.length){let l=s.indexOf(t,o);if(l!==-1)return this._reverseOffset([i,l]);o=s.length-t.length+1}else{let l=this._reverseOffset([i,o]);if(this._match(l,t))return l;o++}o=0}return-1};F.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let r=0;r<e.length;r++)if(this.get(t+r)!==e[r])return!1;return!0};(function(){let t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let e in t)(function(r){t[r]===null?F.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:F.prototype[r]=function(n=0){return this.slice(n,n+t[r])[r](0)}})(e)})();F.prototype._isBufferList=function(e){return e instanceof F||F.isBufferList(e)};F.isBufferList=function(e){return e!=null&&e[Fa]};La.exports=F});var ka=m((Pg,ur)=>{"use strict";var ai=Pa().Duplex,jd=Ie(),bt=Da();function H(t){if(!(this instanceof H))return new H(t);if(typeof t=="function"){this._callback=t;let e=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",e)}),this.on("unpipe",function(n){n.removeListener("error",e)}),t=null}bt._init.call(this,t),ai.call(this)}jd(H,ai);Object.assign(H.prototype,bt.prototype);H.prototype._new=function(e){return new H(e)};H.prototype._write=function(e,r,n){this._appendBuffer(e),typeof n=="function"&&n()};H.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)};H.prototype.end=function(e){ai.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)};H.prototype._destroy=function(e,r){this._bufs.length=0,this.length=0,r(e)};H.prototype._isBufferList=function(e){return e instanceof H||e instanceof bt||H.isBufferList(e)};H.isBufferList=bt.isBufferList;ur.exports=H;ur.exports.BufferListStream=H;ur.exports.BufferList=bt});var gr=m((Fg,fi)=>{"use strict";var $d=require("readline"),Ud=Q(),Na=is(),fr=ls(),dr=fs(),Vd=gs(),Wd=Ss(),Hd=As(),Gd=Tn(),{BufferListStream:zd}=ka(),li=Symbol("text"),ci=Symbol("prefixText"),Kd=3,ui=class{constructor(){this.requests=0,this.mutedStream=new zd,this.mutedStream.pipe(process.stdout);let e=this;this.ourEmit=function(r,n,...i){let{stdin:o}=process;if(e.requests>0||o.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(Kd)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=$d.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},hr,pr=class{constructor(e){hr||(hr=new ui),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Hd({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:!1,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(!Gd())this._spinner=fr.line;else if(e===void 0)this._spinner=fr.dots;else if(e!=="default"&&fr[e])this._spinner=fr[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[li]}set text(e){this[li]=e,this.updateLineCount()}get prefixText(){return this[ci]}set prefixText(e){this[ci]=e,this.updateLineCount()}get isSpinning(){return this.id!==void 0}getFullPrefixText(e=this[ci],r=" "){return typeof e=="string"?e+r:typeof e=="function"?e()+r:""}updateLineCount(){let e=this.stream.columns||80,r=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let n of Vd(r+"--"+this[li]).split(`
28
+ `))this.lineCount+=Math.max(1,Math.ceil(Wd(n)/e))}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(e){if(typeof e!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this._isEnabled=e}get isSilent(){return this._isSilent}set isSilent(e){if(typeof e!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this._isSilent=e}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=Ud[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.isSilent?this:(this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this)}start(e){return e&&(this.text=e),this.isSilent?this:this.isEnabled?this.isSpinning?this:(this.hideCursor&&Na.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,hr.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
29
+ `),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&Na.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(hr.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:dr.success,text:e})}fail(e){return this.stopAndPersist({symbol:dr.error,text:e})}warn(e){return this.stopAndPersist({symbol:dr.warning,text:e})}info(e){return this.stopAndPersist({symbol:dr.info,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;let r=e.prefixText||this.prefixText,n=e.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(r," ")}${e.symbol||" "}${i}
30
+ `),this}},Yd=function(t){return new pr(t)};fi.exports=Yd;fi.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new pr(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var hi=m((Lg,qa)=>{"use strict";var Ma=require("fs"),di;function Jd(){try{return Ma.statSync("/.dockerenv"),!0}catch{return!1}}function Xd(){try{return Ma.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}qa.exports=()=>(di===void 0&&(di=Jd()||Xd()),di)});var $a=m((Dg,pi)=>{"use strict";var Zd=require("os"),Qd=require("fs"),Ba=hi(),ja=()=>{if(process.platform!=="linux")return!1;if(Zd.release().toLowerCase().includes("microsoft"))return!Ba();try{return Qd.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Ba():!1}catch{return!1}};process.env.__IS_WSL_TEST__?pi.exports=ja:pi.exports=ja()});var Va=m((kg,Ua)=>{"use strict";Ua.exports=(t,e,r)=>{let n=i=>Object.defineProperty(t,e,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),t}});var xi=m((Ng,Ya)=>{var eh=require("path"),th=require("child_process"),{promises:yr,constants:Ka}=require("fs"),mr=$a(),rh=hi(),mi=Va(),Wa=eh.join(__dirname,"xdg-open"),{platform:Ye,arch:Ha}=process,nh=()=>{try{return yr.statSync("/run/.containerenv"),!0}catch{return!1}},gi;function ih(){return gi===void 0&&(gi=nh()||rh()),gi}var oh=(()=>{let t="/mnt/",e;return async function(){if(e)return e;let r="/etc/wsl.conf",n=!1;try{await yr.access(r,Ka.F_OK),n=!0}catch{}if(!n)return t;let i=await yr.readFile(r,{encoding:"utf8"}),o=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return o?(e=o.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):t}})(),Ga=async(t,e)=>{let r;for(let n of t)try{return await e(n)}catch(i){r=i}throw r},_r=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return Ga(t.app,a=>_r({...t,app:a}));let{name:e,arguments:r=[]}=t.app||{};if(r=[...r],Array.isArray(e))return Ga(e,a=>_r({...t,app:{name:a,arguments:r}}));let n,i=[],o={};if(Ye==="darwin")n="open",t.wait&&i.push("--wait-apps"),t.background&&i.push("--background"),t.newInstance&&i.push("--new"),e&&i.push("-a",e);else if(Ye==="win32"||mr&&!ih()&&!e){let a=await oh();n=mr?`${a}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),mr||(o.windowsVerbatimArguments=!0);let l=["Start"];t.wait&&l.push("-Wait"),e?(l.push(`"\`"${e}\`""`,"-ArgumentList"),t.target&&r.unshift(t.target)):t.target&&l.push(`"${t.target}"`),r.length>0&&(r=r.map(c=>`"\`"${c}\`""`),l.push(r.join(","))),t.target=Buffer.from(l.join(" "),"utf16le").toString("base64")}else{if(e)n=e;else{let a=!__dirname||__dirname==="/",l=!1;try{await yr.access(Wa,Ka.X_OK),l=!0}catch{}n=process.versions.electron||Ye==="android"||a||!l?"xdg-open":Wa}r.length>0&&i.push(...r),t.wait||(o.stdio="ignore",o.detached=!0)}t.target&&i.push(t.target),Ye==="darwin"&&r.length>0&&i.push("--args",...r);let s=th.spawn(n,i,o);return t.wait?new Promise((a,l)=>{s.once("error",l),s.once("close",c=>{if(!t.allowNonzeroExitCode&&c>0){l(new Error(`Exited with code ${c}`));return}a(s)})}):(s.unref(),s)},yi=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `target`");return _r({...e,target:t})},sh=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `name`");let{arguments:r=[]}=e||{};if(r!=null&&!Array.isArray(r))throw new TypeError("Expected `appArguments` as Array type");return _r({...e,app:{name:t,arguments:r}})};function za(t){if(typeof t=="string"||Array.isArray(t))return t;let{[Ha]:e}=t;if(!e)throw new Error(`${Ha} is not supported`);return e}function _i({[Ye]:t},{wsl:e}){if(e&&mr)return za(e);if(!t)throw new Error(`${Ye} is not supported`);return za(t)}var xr={};mi(xr,"chrome",()=>_i({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));mi(xr,"firefox",()=>_i({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));mi(xr,"edge",()=>_i({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));yi.apps=xr;yi.openApp=sh;Ya.exports=yi});var vt=m((Mg,Qa)=>{"use strict";var wt=require("fs"),Xa=require("path"),ah=require("crypto"),lh=require("os"),ch=Xa.join(lh.homedir(),".xFramework","instances","default"),Je=Xa.join(ch,"license.key"),uh=`-----BEGIN PUBLIC KEY-----
31
31
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA50dyGcO0PnH7gsE5U7jd
32
32
  gfYyPF0iC1bPtQF4Kitagv0dWNrsD+APPBzCOCTE/2gZ3e3es7YthRt/rvd5/40R
33
33
  I5l206XU8DlX3CKgKPEydNUhgPUWHZOVjl+BjYP0p77E/MRucTl3qHjyZd+1nlVj
@@ -35,13 +35,13 @@ BC8n5TsJENetqqmUORIWbyYkJ7wy0mtzXxe/yX3b9exUeZWt9PqrwIvax19WjyhR
35
35
  Hw6HyxZRvQ4TFWGRaEHh/GuLDQ+yNVBhhsphIqJAoMPZ4bSewyxlzM6qULuG35NY
36
36
  QKmi3vKOGAxG733mOS4aarZdL288bcOAV0QWjdQnRUxZNo7+t8+lS1Wo1LwZRsK2
37
37
  vwIDAQAB
38
- -----END PUBLIC KEY-----`;function Ba(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r=e+"==".slice(0,(4-e.length%4)%4);return Buffer.from(r,"base64")}function $a(t){let e=t.trim().split(".");if(e.length!==3)throw new Error("Invalid license key format");let[r,n,i]=e,o=`${r}.${n}`,s=Ba(i),a=Jd.createVerify("SHA256");if(a.update(o),!a.verify(Qd,s))throw new Error("License key signature is invalid");return JSON.parse(Ba(n).toString("utf8"))}function eh(){if(!_t.existsSync(ze))return{valid:!0,type:"community",company:null,email:null,domains:[],expiresAt:null,daysRemaining:null,features:[],isLicensed:!1};try{let t=_t.readFileSync(ze,"utf8").trim(),e=$a(t),r=Math.floor(Date.now()/1e3);if(e.exp&&e.exp<r)return{valid:!1,type:"expired",company:e.company||null,email:e.sub||null,domains:Array.isArray(e.domains)?e.domains.filter(Boolean):[],expiresAt:new Date(e.exp*1e3),daysRemaining:0,features:[],isLicensed:!1};let n=e.exp?new Date(e.exp*1e3):null,i=n?Math.ceil((n-new Date)/(1e3*60*60*24)):null;return{valid:!0,type:e.type||"professional",company:e.company||null,email:e.sub||null,domains:Array.isArray(e.domains)?e.domains.filter(Boolean):[],expiresAt:n,daysRemaining:i,features:e.features||["*"],isLicensed:!0}}catch(t){return{valid:!1,type:"invalid",company:null,email:null,expiresAt:null,daysRemaining:null,features:[],isLicensed:!1,error:t.message}}}function th(t){if(!t||typeof t!="string")throw new Error("No license key provided");let e=$a(t.trim()),r=Math.floor(Date.now()/1e3);if(e.exp&&e.exp<r)throw new Error("This license key has already expired");return _t.writeFileSync(ze,t.trim(),"utf8"),e}function rh(){return _t.existsSync(ze)?(_t.unlinkSync(ze),!0):!1}Ua.exports={readLicense:eh,saveLicense:th,removeLicense:rh,LICENSE_FILE:ze}});var Wa=p((Eg,Va)=>{var Ke=1e3,Ye=Ke*60,Je=Ye*60,Fe=Je*24,nh=Fe*7,ih=Fe*365.25;Va.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return oh(t);if(r==="number"&&isFinite(t))return e.long?ah(t):sh(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function oh(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*ih;case"weeks":case"week":case"w":return r*nh;case"days":case"day":case"d":return r*Fe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Je;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ye;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ke;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function sh(t){var e=Math.abs(t);return e>=Fe?Math.round(t/Fe)+"d":e>=Je?Math.round(t/Je)+"h":e>=Ye?Math.round(t/Ye)+"m":e>=Ke?Math.round(t/Ke)+"s":t+"ms"}function ah(t){var e=Math.abs(t);return e>=Fe?mr(t,e,Fe,"day"):e>=Je?mr(t,e,Je,"hour"):e>=Ye?mr(t,e,Ye,"minute"):e>=Ke?mr(t,e,Ke,"second"):t+" ms"}function mr(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var fi=p((Sg,Ha)=>{function lh(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=i,r.enabled=a,r.humanize=Wa(),r.destroy=c,Object.keys(t).forEach(u=>{r[u]=t[u]}),r.names=[],r.skips=[],r.formatters={};function e(u){let f=0;for(let h=0;h<u.length;h++)f=(f<<5)-f+u.charCodeAt(h),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(u){let f,h=null,g,y;function d(...m){if(!d.enabled)return;let _=d,v=Number(new Date),T=v-(f||v);_.diff=T,_.prev=f,_.curr=v,f=v,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let U=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(de,F)=>{if(de==="%%")return"%";U++;let D=r.formatters[F];if(typeof D=="function"){let ae=m[U];de=D.call(_,ae),m.splice(U,1),U--}return de}),r.formatArgs.call(_,m),(_.log||r.log).apply(_,m)}return d.namespace=u,d.useColors=r.useColors(),d.color=r.selectColor(u),d.extend=n,d.destroy=r.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(g!==r.namespaces&&(g=r.namespaces,y=r.enabled(u)),y),set:m=>{h=m}}),typeof r.init=="function"&&r.init(d),d}function n(u,f){let h=r(this.namespace+(typeof f>"u"?":":f)+u);return h.log=this.log,h}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let f=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of f)h[0]==="-"?r.skips.push(h.slice(1)):r.names.push(h)}function o(u,f){let h=0,g=0,y=-1,d=0;for(;h<u.length;)if(g<f.length&&(f[g]===u[h]||f[g]==="*"))f[g]==="*"?(y=g,d=h,g++):(h++,g++);else if(y!==-1)g=y+1,d++,h=d;else return!1;for(;g<f.length&&f[g]==="*";)g++;return g===f.length}function s(){let u=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),u}function a(u){for(let f of r.skips)if(o(u,f))return!1;for(let f of r.names)if(o(u,f))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Ha.exports=lh});var Ga=p((H,yr)=>{H.formatArgs=uh;H.save=fh;H.load=dh;H.useColors=ch;H.storage=hh();H.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();H.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ch(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function uh(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+yr.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}H.log=console.debug||console.log||(()=>{});function fh(t){try{t?H.storage.setItem("debug",t):H.storage.removeItem("debug")}catch{}}function dh(){let t;try{t=H.storage.getItem("debug")||H.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function hh(){try{return localStorage}catch{}}yr.exports=fi()(H);var{formatters:ph}=yr.exports;ph.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Ka=p((j,br)=>{var gh=require("tty"),_r=require("util");j.init=vh;j.log=bh;j.formatArgs=yh;j.save=xh;j.load=wh;j.useColors=mh;j.destroy=_r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");j.colors=[6,2,3,4,5,1];try{let t=fn();t&&(t.stderr||t).level>=2&&(j.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}j.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function mh(){return"colors"in j.inspectOpts?!!j.inspectOpts.colors:gh.isatty(process.stderr.fd)}function yh(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
38
+ -----END PUBLIC KEY-----`;function Ja(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r=e+"==".slice(0,(4-e.length%4)%4);return Buffer.from(r,"base64")}function Za(t){let e=t.trim().split(".");if(e.length!==3)throw new Error("Invalid license key format");let[r,n,i]=e,o=`${r}.${n}`,s=Ja(i),a=ah.createVerify("SHA256");if(a.update(o),!a.verify(uh,s))throw new Error("License key signature is invalid");return JSON.parse(Ja(n).toString("utf8"))}function fh(){if(!wt.existsSync(Je))return{valid:!0,type:"community",company:null,email:null,domains:[],expiresAt:null,daysRemaining:null,features:[],isLicensed:!1};try{let t=wt.readFileSync(Je,"utf8").trim(),e=Za(t),r=Math.floor(Date.now()/1e3);if(e.exp&&e.exp<r)return{valid:!1,type:"expired",company:e.company||null,email:e.sub||null,domains:Array.isArray(e.domains)?e.domains.filter(Boolean):[],expiresAt:new Date(e.exp*1e3),daysRemaining:0,features:[],isLicensed:!1};let n=e.exp?new Date(e.exp*1e3):null,i=n?Math.ceil((n-new Date)/(1e3*60*60*24)):null;return{valid:!0,type:e.type||"professional",company:e.company||null,email:e.sub||null,domains:Array.isArray(e.domains)?e.domains.filter(Boolean):[],expiresAt:n,daysRemaining:i,features:e.features||["*"],isLicensed:!0}}catch(t){return{valid:!1,type:"invalid",company:null,email:null,expiresAt:null,daysRemaining:null,features:[],isLicensed:!1,error:t.message}}}function dh(t){if(!t||typeof t!="string")throw new Error("No license key provided");let e=Za(t.trim()),r=Math.floor(Date.now()/1e3);if(e.exp&&e.exp<r)throw new Error("This license key has already expired");return wt.writeFileSync(Je,t.trim(),"utf8"),e}function hh(){return wt.existsSync(Je)?(wt.unlinkSync(Je),!0):!1}Qa.exports={readLicense:fh,saveLicense:dh,removeLicense:hh,LICENSE_FILE:Je}});var tl=m((qg,el)=>{var Xe=1e3,Ze=Xe*60,Qe=Ze*60,Le=Qe*24,ph=Le*7,gh=Le*365.25;el.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return mh(t);if(r==="number"&&isFinite(t))return e.long?_h(t):yh(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function mh(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*gh;case"weeks":case"week":case"w":return r*ph;case"days":case"day":case"d":return r*Le;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Qe;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ze;case"seconds":case"second":case"secs":case"sec":case"s":return r*Xe;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function yh(t){var e=Math.abs(t);return e>=Le?Math.round(t/Le)+"d":e>=Qe?Math.round(t/Qe)+"h":e>=Ze?Math.round(t/Ze)+"m":e>=Xe?Math.round(t/Xe)+"s":t+"ms"}function _h(t){var e=Math.abs(t);return e>=Le?br(t,e,Le,"day"):e>=Qe?br(t,e,Qe,"hour"):e>=Ze?br(t,e,Ze,"minute"):e>=Xe?br(t,e,Xe,"second"):t+" ms"}function br(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var bi=m((Bg,rl)=>{function xh(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=i,r.enabled=a,r.humanize=tl(),r.destroy=c,Object.keys(t).forEach(u=>{r[u]=t[u]}),r.names=[],r.skips=[],r.formatters={};function e(u){let f=0;for(let p=0;p<u.length;p++)f=(f<<5)-f+u.charCodeAt(p),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(u){let f,p=null,d,_;function g(...h){if(!g.enabled)return;let y=g,C=Number(new Date),I=C-(f||C);y.diff=I,y.prev=f,y.curr=C,f=C,h[0]=r.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let M=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,($,ce)=>{if($==="%%")return"%";M++;let Se=r.formatters[ce];if(typeof Se=="function"){let Rt=h[M];$=Se.call(y,Rt),h.splice(M,1),M--}return $}),r.formatArgs.call(y,h),(y.log||r.log).apply(y,h)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==r.namespaces&&(d=r.namespaces,_=r.enabled(u)),_),set:h=>{p=h}}),typeof r.init=="function"&&r.init(g),g}function n(u,f){let p=r(this.namespace+(typeof f>"u"?":":f)+u);return p.log=this.log,p}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let f=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let p of f)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function o(u,f){let p=0,d=0,_=-1,g=0;for(;p<u.length;)if(d<f.length&&(f[d]===u[p]||f[d]==="*"))f[d]==="*"?(_=d,g=p,d++):(p++,d++);else if(_!==-1)d=_+1,g++,p=g;else return!1;for(;d<f.length&&f[d]==="*";)d++;return d===f.length}function s(){let u=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),u}function a(u){for(let f of r.skips)if(o(u,f))return!1;for(let f of r.names)if(o(u,f))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}rl.exports=xh});var nl=m((z,wr)=>{z.formatArgs=wh;z.save=vh;z.load=Eh;z.useColors=bh;z.storage=Sh();z.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();z.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function bh(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function wh(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+wr.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}z.log=console.debug||console.log||(()=>{});function vh(t){try{t?z.storage.setItem("debug",t):z.storage.removeItem("debug")}catch{}}function Eh(){let t;try{t=z.storage.getItem("debug")||z.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Sh(){try{return localStorage}catch{}}wr.exports=bi()(z);var{formatters:Ch}=wr.exports;Ch.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ol=m((W,Er)=>{var Ah=require("tty"),vr=require("util");W.init=Lh;W.log=Rh;W.formatArgs=Oh;W.save=Ph;W.load=Fh;W.useColors=Ih;W.destroy=vr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");W.colors=[6,2,3,4,5,1];try{let t=bn();t&&(t.stderr||t).level>=2&&(W.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}W.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Ih(){return"colors"in W.inspectOpts?!!W.inspectOpts.colors:Ah.isatty(process.stderr.fd)}function Oh(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
39
39
  `).join(`
40
- `+o),t.push(i+"m+"+br.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=_h()+e+" "+t[0]}function _h(){return j.inspectOpts.hideDate?"":new Date().toISOString()+" "}function bh(...t){return process.stderr.write(_r.formatWithOptions(j.inspectOpts,...t)+`
41
- `)}function xh(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function wh(){return process.env.DEBUG}function vh(t){t.inspectOpts={};let e=Object.keys(j.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=j.inspectOpts[e[r]]}br.exports=fi()(j);var{formatters:za}=br.exports;za.o=function(t){return this.inspectOpts.colors=this.useColors,_r.inspect(t,this.inspectOpts).split(`
42
- `).map(e=>e.trim()).join(" ")};za.O=function(t){return this.inspectOpts.colors=this.useColors,_r.inspect(t,this.inspectOpts)}});var Ya=p((Cg,di)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?di.exports=Ga():di.exports=Ka()});var Za=p((Ag,Xa)=>{Xa.exports=Ja;function Ja(t,e){if(t&&e)return Ja(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var o=t.apply(this,n),s=n[n.length-1];return typeof o=="function"&&o!==s&&Object.keys(s).forEach(function(a){o[a]=s[a]}),o}}});var pi=p((Og,hi)=>{var Qa=Za();hi.exports=Qa(xr);hi.exports.strict=Qa(el);xr.proto=xr(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return xr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return el(this)},configurable:!0})});function xr(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function el(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var nl=p((Ig,rl)=>{var Eh=pi(),Sh=function(){},Ch=global.Bare?queueMicrotask:process.nextTick.bind(process),Ah=function(t){return t.setHeader&&typeof t.abort=="function"},Oh=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},tl=function(t,e,r){if(typeof e=="function")return tl(t,null,e);e||(e={}),r=Eh(r||Sh);var n=t._writableState,i=t._readableState,o=e.readable||e.readable!==!1&&t.readable,s=e.writable||e.writable!==!1&&t.writable,a=!1,l=function(){t.writable||c()},c=function(){s=!1,o||r.call(t)},u=function(){o=!1,s||r.call(t)},f=function(m){r.call(t,m?new Error("exited with error code: "+m):null)},h=function(m){r.call(t,m)},g=function(){Ch(y)},y=function(){if(!a){if(o&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(s&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},d=function(){t.req.on("finish",c)};return Ah(t)?(t.on("complete",c),t.on("abort",g),t.req?d():t.on("request",d)):s&&!n&&(t.on("end",l),t.on("close",l)),Oh(t)&&t.on("exit",f),t.on("end",u),t.on("finish",c),e.error!==!1&&t.on("error",h),t.on("close",g),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",g),t.removeListener("request",d),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("exit",f),t.removeListener("end",u),t.removeListener("error",h),t.removeListener("close",g)}};rl.exports=tl});var sl=p((Rg,ol)=>{var Ih=pi(),Rh=nl(),wr;try{wr=require("fs")}catch{}var xt=function(){},Th=typeof process>"u"?!1:/^v?\.0/.test(process.version),vr=function(t){return typeof t=="function"},Fh=function(t){return!Th||!wr?!1:(t instanceof(wr.ReadStream||xt)||t instanceof(wr.WriteStream||xt))&&vr(t.close)},Ph=function(t){return t.setHeader&&vr(t.abort)},Lh=function(t,e,r,n){n=Ih(n);var i=!1;t.on("close",function(){i=!0}),Rh(t,{readable:e,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,Fh(t))return t.close(xt);if(Ph(t))return t.abort();if(vr(t.destroy))return t.destroy();n(s||new Error("stream was destroyed"))}}},il=function(t){t()},kh=function(t,e){return t.pipe(e)},Dh=function(){var t=Array.prototype.slice.call(arguments),e=vr(t[t.length-1]||xt)&&t.pop()||xt;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,o){var s=o<t.length-1,a=o>0;return Lh(i,s,a,function(l){r||(r=l),l&&n.forEach(il),!s&&(n.forEach(il),e(r))})});return t.reduce(kh)};ol.exports=Dh});var ll=p((Tg,al)=>{"use strict";var{PassThrough:Nh}=require("stream");al.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new Nh({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",l=>{a.push(l),i?s=a.length:s+=l.length}),o.getBufferedValue=()=>e?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o}});var cl=p((Fg,Xe)=>{"use strict";var{constants:Mh}=require("buffer"),qh=sl(),Bh=ll(),Er=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Sr(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,o)=>{let s=a=>{a&&n.getBufferedLength()<=Mh.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),o(a)};n=qh(t,Bh(e),a=>{if(a){s(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&s(new Er)})}),n.getBufferedValue()}Xe.exports=Sr;Xe.exports.default=Sr;Xe.exports.buffer=(t,e)=>Sr(t,{...e,encoding:"buffer"});Xe.exports.array=(t,e)=>Sr(t,{...e,array:!0});Xe.exports.MaxBufferError=Er});var hl=p((Pg,dl)=>{dl.exports=Cr;function Cr(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}Cr.prototype.go=function(t){this.pending<this.max?fl(this,t):this.waiting.push(t)};Cr.prototype.wait=function(t){this.pending===0?t(this.error):this.listeners.push(t)};Cr.prototype.hold=function(){return ul(this)};function ul(t){t.pending+=1;var e=!1;return r;function r(i){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||i,t.pending-=1,t.waiting.length>0&&t.pending<t.max)fl(t,t.waiting.shift());else if(t.pending===0){var o=t.listeners;t.listeners=[],o.forEach(n)}}function n(i){i(t.error)}}function fl(t,e){e(ul(t))}});var gl=p(vt=>{var wt=require("fs"),Ar=require("util"),gi=require("stream"),pl=gi.Readable,mi=gi.Writable,jh=gi.PassThrough,$h=hl(),Or=require("events").EventEmitter;vt.createFromBuffer=Uh;vt.createFromFd=Vh;vt.BufferSlicer=fe;vt.FdSlicer=ue;Ar.inherits(ue,Or);function ue(t,e){e=e||{},Or.call(this),this.fd=t,this.pend=new $h,this.pend.max=1,this.refCount=0,this.autoClose=!!e.autoClose}ue.prototype.read=function(t,e,r,n,i){var o=this;o.pend.go(function(s){wt.read(o.fd,t,e,r,n,function(a,l,c){s(),i(a,l,c)})})};ue.prototype.write=function(t,e,r,n,i){var o=this;o.pend.go(function(s){wt.write(o.fd,t,e,r,n,function(a,l,c){s(),i(a,l,c)})})};ue.prototype.createReadStream=function(t){return new Ir(this,t)};ue.prototype.createWriteStream=function(t){return new Rr(this,t)};ue.prototype.ref=function(){this.refCount+=1};ue.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&wt.close(t.fd,e);function e(r){r?t.emit("error",r):t.emit("close")}};Ar.inherits(Ir,pl);function Ir(t,e){e=e||{},pl.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end,this.pos=this.start,this.destroyed=!1}Ir.prototype._read=function(t){var e=this;if(!e.destroyed){var r=Math.min(e._readableState.highWaterMark,t);if(e.endOffset!=null&&(r=Math.min(r,e.endOffset-e.pos)),r<=0){e.destroyed=!0,e.push(null),e.context.unref();return}e.context.pend.go(function(n){if(e.destroyed)return n();var i=new Buffer(r);wt.read(e.context.fd,i,0,r,e.pos,function(o,s){o?e.destroy(o):s===0?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=s,e.push(i.slice(0,s))),n()})})}};Ir.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())};Ar.inherits(Rr,mi);function Rr(t,e){e=e||{},mi.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end==null?1/0:+e.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}Rr.prototype._write=function(t,e,r){var n=this;if(!n.destroyed){if(n.pos+t.length>n.endOffset){var i=new Error("maximum file length exceeded");i.code="ETOOBIG",n.destroy(),r(i);return}n.context.pend.go(function(o){if(n.destroyed)return o();wt.write(n.context.fd,t,0,t.length,n.pos,function(s,a){s?(n.destroy(),o(),r(s)):(n.bytesWritten+=a,n.pos+=a,n.emit("progress"),o(),r())})})}};Rr.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())};Ar.inherits(fe,Or);function fe(t,e){Or.call(this),e=e||{},this.refCount=0,this.buffer=t,this.maxChunkSize=e.maxChunkSize||Number.MAX_SAFE_INTEGER}fe.prototype.read=function(t,e,r,n,i){var o=n+r,s=o-this.buffer.length,a=s>0?s:r;this.buffer.copy(t,e,n,o),setImmediate(function(){i(null,a)})};fe.prototype.write=function(t,e,r,n,i){t.copy(this.buffer,n,e,e+r),setImmediate(function(){i(null,r,t)})};fe.prototype.createReadStream=function(t){t=t||{};var e=new jh(t);e.destroyed=!1,e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length;for(var r=this.buffer.slice(e.start,e.pos),n=0;;){var i=n+this.maxChunkSize;if(i>=r.length){n<r.length&&e.write(r.slice(n,r.length));break}e.write(r.slice(n,i)),n=i}return e.end(),e.destroy=function(){e.destroyed=!0},e};fe.prototype.createWriteStream=function(t){var e=this;t=t||{};var r=new mi(t);return r.start=t.start||0,r.endOffset=t.end==null?this.buffer.length:+t.end,r.bytesWritten=0,r.pos=r.start,r.destroyed=!1,r._write=function(n,i,o){if(!r.destroyed){var s=r.pos+n.length;if(s>r.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG",r.destroyed=!0,o(a);return}n.copy(e.buffer,r.pos,0,n.length),r.bytesWritten+=n.length,r.pos=s,r.emit("progress"),o()}},r.destroy=function(){r.destroyed=!0},r};fe.prototype.ref=function(){this.refCount+=1};fe.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")};function Uh(t,e){return new fe(t,e)}function Vh(t,e){return new ue(t,e)}});var _l=p((kg,yl)=>{var xe=require("buffer").Buffer,yi=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(yi=new Int32Array(yi));function ml(t){if(xe.isBuffer(t))return t;var e=typeof xe.alloc=="function"&&typeof xe.from=="function";if(typeof t=="number")return e?xe.alloc(t):new xe(t);if(typeof t=="string")return e?xe.from(t):new xe(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function Wh(t){var e=ml(4);return e.writeInt32BE(t,0),e}function _i(t,e){t=ml(t),xe.isBuffer(e)&&(e=e.readUInt32BE(0));for(var r=~~e^-1,n=0;n<t.length;n++)r=yi[(r^t[n])&255]^r>>>8;return r^-1}function bi(){return Wh(_i.apply(null,arguments))}bi.signed=function(){return _i.apply(null,arguments)};bi.unsigned=function(){return _i.apply(null,arguments)>>>0};yl.exports=bi});var Cl=p(se=>{var xi=require("fs"),Hh=require("zlib"),bl=gl(),Gh=_l(),Pr=require("util"),Lr=require("events").EventEmitter,xl=require("stream").Transform,wi=require("stream").PassThrough,zh=require("stream").Writable;se.open=Kh;se.fromFd=wl;se.fromBuffer=Yh;se.fromRandomAccessReader=vi;se.dosDateTimeToDate=El;se.validateFileName=Sl;se.ZipFile=we;se.Entry=Et;se.RandomAccessReader=ve;function Kh(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!0),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=Fr),xi.open(t,"r",function(n,i){if(n)return r(n);wl(i,e,function(o,s){o&&xi.close(i,Fr),r(o,s)})})}function wl(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!1),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=Fr),xi.fstat(t,function(n,i){if(n)return r(n);var o=bl.createFromFd(t,{autoClose:!0});vi(o,i.size,e,r)})}function Yh(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose=!1,e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1);var n=bl.createFromBuffer(t,{maxChunkSize:65536});vi(n,t.length,e,r)}function vi(t,e,r,n){typeof r=="function"&&(n=r,r=null),r==null&&(r={}),r.autoClose==null&&(r.autoClose=!0),r.lazyEntries==null&&(r.lazyEntries=!1),r.decodeStrings==null&&(r.decodeStrings=!0);var i=!!r.decodeStrings;if(r.validateEntrySizes==null&&(r.validateEntrySizes=!0),r.strictFileNames==null&&(r.strictFileNames=!1),n==null&&(n=Fr),typeof e!="number")throw new Error("expected totalSize parameter to be a number");if(e>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var o=22,s=65535,a=Math.min(o+s,e),l=oe(a),c=e-l.length;Ze(t,l,0,a,c,function(u){if(u)return n(u);for(var f=a-o;f>=0;f-=1)if(l.readUInt32LE(f)===101010256){var h=l.slice(f),g=h.readUInt16LE(4);if(g!==0)return n(new Error("multi-disk zip files are not supported: found disk number: "+g));var y=h.readUInt16LE(10),d=h.readUInt32LE(16),m=h.readUInt16LE(20),_=h.length-o;if(m!==_)return n(new Error("invalid comment length. expected: "+_+". found: "+m));var v=i?Tr(h,22,h.length,!1):h.slice(22);if(!(y===65535||d===4294967295))return n(null,new we(t,d,e,y,v,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames));var T=oe(20),U=c+f-T.length;Ze(t,T,0,T.length,U,function(G){if(G)return n(G);if(T.readUInt32LE(0)!==117853008)return n(new Error("invalid zip64 end of central directory locator signature"));var de=Qe(T,8),F=oe(56);Ze(t,F,0,F.length,de,function(D){return D?n(D):F.readUInt32LE(0)!==101075792?n(new Error("invalid zip64 end of central directory record signature")):(y=Qe(F,32),d=Qe(F,48),n(null,new we(t,d,e,y,v,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames)))})});return}n(new Error("end of central directory record signature not found"))})}Pr.inherits(we,Lr);function we(t,e,r,n,i,o,s,a,l,c){var u=this;Lr.call(u),u.reader=t,u.reader.on("error",function(f){vl(u,f)}),u.reader.once("close",function(){u.emit("close")}),u.readEntryCursor=e,u.fileSize=r,u.entryCount=n,u.comment=i,u.entriesRead=0,u.autoClose=!!o,u.lazyEntries=!!s,u.decodeStrings=!!a,u.validateEntrySizes=!!l,u.strictFileNames=!!c,u.isOpen=!0,u.emittedError=!1,u.lazyEntries||u._readEntry()}we.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())};function Q(t,e){t.autoClose&&t.close(),vl(t,e)}function vl(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}we.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};we.prototype._readEntry=function(){var t=this;if(t.entryCount===t.entriesRead){setImmediate(function(){t.autoClose&&t.close(),!t.emittedError&&t.emit("end")});return}if(!t.emittedError){var e=oe(46);Ze(t.reader,e,0,e.length,t.readEntryCursor,function(r){if(r)return Q(t,r);if(!t.emittedError){var n=new Et,i=e.readUInt32LE(0);if(i!==33639248)return Q(t,new Error("invalid central directory file header signature: 0x"+i.toString(16)));if(n.versionMadeBy=e.readUInt16LE(4),n.versionNeededToExtract=e.readUInt16LE(6),n.generalPurposeBitFlag=e.readUInt16LE(8),n.compressionMethod=e.readUInt16LE(10),n.lastModFileTime=e.readUInt16LE(12),n.lastModFileDate=e.readUInt16LE(14),n.crc32=e.readUInt32LE(16),n.compressedSize=e.readUInt32LE(20),n.uncompressedSize=e.readUInt32LE(24),n.fileNameLength=e.readUInt16LE(28),n.extraFieldLength=e.readUInt16LE(30),n.fileCommentLength=e.readUInt16LE(32),n.internalFileAttributes=e.readUInt16LE(36),n.externalFileAttributes=e.readUInt32LE(38),n.relativeOffsetOfLocalHeader=e.readUInt32LE(42),n.generalPurposeBitFlag&64)return Q(t,new Error("strong encryption is not supported"));t.readEntryCursor+=46,e=oe(n.fileNameLength+n.extraFieldLength+n.fileCommentLength),Ze(t.reader,e,0,e.length,t.readEntryCursor,function(o){if(o)return Q(t,o);if(!t.emittedError){var s=(n.generalPurposeBitFlag&2048)!==0;n.fileName=t.decodeStrings?Tr(e,0,n.fileNameLength,s):e.slice(0,n.fileNameLength);var a=n.fileNameLength+n.extraFieldLength,l=e.slice(n.fileNameLength,a);n.extraFields=[];for(var c=0;c<l.length-3;){var u=l.readUInt16LE(c+0),f=l.readUInt16LE(c+2),h=c+4,g=h+f;if(g>l.length)return Q(t,new Error("extra field length exceeds extra field buffer size"));var y=oe(f);l.copy(y,0,h,g),n.extraFields.push({id:u,data:y}),c=g}if(n.fileComment=t.decodeStrings?Tr(e,a,a+n.fileCommentLength,s):e.slice(a,a+n.fileCommentLength),n.comment=n.fileComment,t.readEntryCursor+=e.length,t.entriesRead+=1,n.uncompressedSize===4294967295||n.compressedSize===4294967295||n.relativeOffsetOfLocalHeader===4294967295){for(var d=null,c=0;c<n.extraFields.length;c++){var m=n.extraFields[c];if(m.id===1){d=m.data;break}}if(d==null)return Q(t,new Error("expected zip64 extended information extra field"));var _=0;if(n.uncompressedSize===4294967295){if(_+8>d.length)return Q(t,new Error("zip64 extended information extra field does not include uncompressed size"));n.uncompressedSize=Qe(d,_),_+=8}if(n.compressedSize===4294967295){if(_+8>d.length)return Q(t,new Error("zip64 extended information extra field does not include compressed size"));n.compressedSize=Qe(d,_),_+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(_+8>d.length)return Q(t,new Error("zip64 extended information extra field does not include relative header offset"));n.relativeOffsetOfLocalHeader=Qe(d,_),_+=8}}if(t.decodeStrings)for(var c=0;c<n.extraFields.length;c++){var m=n.extraFields[c];if(m.id===28789){if(m.data.length<6||m.data.readUInt8(0)!==1)continue;var v=m.data.readUInt32LE(1);if(Gh.unsigned(e.slice(0,n.fileNameLength))!==v)continue;n.fileName=Tr(m.data,5,m.data.length,!0);break}}if(t.validateEntrySizes&&n.compressionMethod===0){var T=n.uncompressedSize;if(n.isEncrypted()&&(T+=12),n.compressedSize!==T){var U="compressed/uncompressed size mismatch for stored file: "+n.compressedSize+" != "+n.uncompressedSize;return Q(t,new Error(U))}}if(t.decodeStrings){t.strictFileNames||(n.fileName=n.fileName.replace(/\\/g,"/"));var G=Sl(n.fileName,t.validateFileNameOptions);if(G!=null)return Q(t,new Error(G))}t.emit("entry",n),t.lazyEntries||t._readEntry()}})}})}};we.prototype.openReadStream=function(t,e,r){var n=this,i=0,o=t.compressedSize;if(r==null)r=e,e={};else{if(e.decrypt!=null){if(!t.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(e.decrypt!==!1)throw new Error("invalid options.decrypt value: "+e.decrypt);if(t.isCompressed()&&e.decompress!==!1)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(e.decompress!=null){if(!t.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!(e.decompress===!1||e.decompress===!0))throw new Error("invalid options.decompress value: "+e.decompress)}if(e.start!=null||e.end!=null){if(t.isCompressed()&&e.decompress!==!1)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(t.isEncrypted()&&e.decrypt!==!1)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(e.start!=null){if(i=e.start,i<0)throw new Error("options.start < 0");if(i>t.compressedSize)throw new Error("options.start > entry.compressedSize")}if(e.end!=null){if(o=e.end,o<0)throw new Error("options.end < 0");if(o>t.compressedSize)throw new Error("options.end > entry.compressedSize");if(o<i)throw new Error("options.end < options.start")}}if(!n.isOpen)return r(new Error("closed"));if(t.isEncrypted()&&e.decrypt!==!1)return r(new Error("entry is encrypted, and options.decrypt !== false"));n.reader.ref();var s=oe(30);Ze(n.reader,s,0,s.length,t.relativeOffsetOfLocalHeader,function(a){try{if(a)return r(a);var l=s.readUInt32LE(0);if(l!==67324752)return r(new Error("invalid local file header signature: 0x"+l.toString(16)));var c=s.readUInt16LE(26),u=s.readUInt16LE(28),f=t.relativeOffsetOfLocalHeader+s.length+c+u,h;if(t.compressionMethod===0)h=!1;else if(t.compressionMethod===8)h=e.decompress!=null?e.decompress:!0;else return r(new Error("unsupported compression method: "+t.compressionMethod));var g=f,y=g+t.compressedSize;if(t.compressedSize!==0&&y>n.fileSize)return r(new Error("file data overflows file bounds: "+g+" + "+t.compressedSize+" > "+n.fileSize));var d=n.reader.createReadStream({start:g+i,end:g+o}),m=d;if(h){var _=!1,v=Hh.createInflateRaw();d.on("error",function(T){setImmediate(function(){_||v.emit("error",T)})}),d.pipe(v),n.validateEntrySizes?(m=new St(t.uncompressedSize),v.on("error",function(T){setImmediate(function(){_||m.emit("error",T)})}),v.pipe(m)):m=v,m.destroy=function(){_=!0,v!==m&&v.unpipe(m),d.unpipe(v),d.destroy()}}r(null,m)}finally{n.reader.unref()}})};function Et(){}Et.prototype.getLastModDate=function(){return El(this.lastModFileDate,this.lastModFileTime)};Et.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};Et.prototype.isCompressed=function(){return this.compressionMethod===8};function El(t,e){var r=t&31,n=(t>>5&15)-1,i=(t>>9&127)+1980,o=0,s=(e&31)*2,a=e>>5&63,l=e>>11&31;return new Date(i,n,r,l,a,s,o)}function Sl(t){return t.indexOf("\\")!==-1?"invalid characters in fileName: "+t:/^[a-zA-Z]:/.test(t)||/^\//.test(t)?"absolute path: "+t:t.split("/").indexOf("..")!==-1?"invalid relative path: "+t:null}function Ze(t,e,r,n,i,o){if(n===0)return setImmediate(function(){o(null,oe(0))});t.read(e,r,n,i,function(s,a){if(s)return o(s);if(a<n)return o(new Error("unexpected EOF"));o()})}Pr.inherits(St,xl);function St(t){xl.call(this),this.actualByteCount=0,this.expectedByteCount=t}St.prototype._transform=function(t,e,r){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return r(new Error(n))}r(null,t)};St.prototype._flush=function(t){if(this.actualByteCount<this.expectedByteCount){var e="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return t(new Error(e))}t()};Pr.inherits(ve,Lr);function ve(){Lr.call(this),this.refCount=0}ve.prototype.ref=function(){this.refCount+=1};ve.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.close(e);function e(r){if(r)return t.emit("error",r);t.emit("close")}};ve.prototype.createReadStream=function(t){var e=t.start,r=t.end;if(e===r){var n=new wi;return setImmediate(function(){n.end()}),n}var i=this._readStreamForRange(e,r),o=!1,s=new kr(this);i.on("error",function(l){setImmediate(function(){o||s.emit("error",l)})}),s.destroy=function(){i.unpipe(s),s.unref(),i.destroy()};var a=new St(r-e);return s.on("error",function(l){setImmediate(function(){o||a.emit("error",l)})}),a.destroy=function(){o=!0,s.unpipe(a),s.destroy()},i.pipe(s).pipe(a)};ve.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")};ve.prototype.read=function(t,e,r,n,i){var o=this.createReadStream({start:n,end:n+r}),s=new zh,a=0;s._write=function(l,c,u){l.copy(t,e+a,0,l.length),a+=l.length,u()},s.on("finish",i),o.on("error",function(l){i(l)}),o.pipe(s)};ve.prototype.close=function(t){setImmediate(t)};Pr.inherits(kr,wi);function kr(t){wi.call(this),this.context=t,this.context.ref(),this.unreffedYet=!1}kr.prototype._flush=function(t){this.unref(),t()};kr.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var Jh="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";function Tr(t,e,r,n){if(n)return t.toString("utf8",e,r);for(var i="",o=e;o<r;o++)i+=Jh[t[o]];return i}function Qe(t,e){var r=t.readUInt32LE(e),n=t.readUInt32LE(e+4);return n*4294967296+r}var oe;typeof Buffer.allocUnsafe=="function"?oe=function(t){return Buffer.allocUnsafe(t)}:oe=function(t){return new Buffer(t)};function Fr(t){if(t)throw t}});var Ci=p((Ng,Al)=>{var ee=Ya()("extract-zip"),{createWriteStream:Xh,promises:et}=require("fs"),Zh=cl(),Pe=require("path"),{promisify:Si}=require("util"),Qh=require("stream"),ep=Cl(),tp=Si(ep.open),rp=Si(Qh.pipeline),Ei=class{constructor(e,r){this.zipPath=e,this.opts=r}async extract(){return ee("opening",this.zipPath,"with opts",this.opts),this.zipfile=await tp(this.zipPath,{lazyEntries:!0}),this.canceled=!1,new Promise((e,r)=>{this.zipfile.on("error",n=>{this.canceled=!0,r(n)}),this.zipfile.readEntry(),this.zipfile.on("close",()=>{this.canceled||(ee("zip extraction complete"),e())}),this.zipfile.on("entry",async n=>{if(this.canceled){ee("skipping entry",n.fileName,{cancelled:this.canceled});return}if(ee("zipfile entry",n.fileName),n.fileName.startsWith("__MACOSX/")){this.zipfile.readEntry();return}let i=Pe.dirname(Pe.join(this.opts.dir,n.fileName));try{await et.mkdir(i,{recursive:!0});let o=await et.realpath(i);if(Pe.relative(this.opts.dir,o).split(Pe.sep).includes(".."))throw new Error(`Out of bound path "${o}" found while processing file ${n.fileName}`);await this.extractEntry(n),ee("finished processing",n.fileName),this.zipfile.readEntry()}catch(o){this.canceled=!0,this.zipfile.close(),r(o)}})})}async extractEntry(e){if(this.canceled){ee("skipping entry extraction",e.fileName,{cancelled:this.canceled});return}this.opts.onEntry&&this.opts.onEntry(e,this.zipfile);let r=Pe.join(this.opts.dir,e.fileName),n=e.externalFileAttributes>>16&65535,i=61440,o=16384,a=(n&i)===40960,l=(n&i)===o;!l&&e.fileName.endsWith("/")&&(l=!0);let c=e.versionMadeBy>>8;l||(l=c===0&&e.externalFileAttributes===16),ee("extracting entry",{filename:e.fileName,isDir:l,isSymlink:a});let u=this.getExtractedMode(n,l)&511,f=l?r:Pe.dirname(r),h={recursive:!0};if(l&&(h.mode=u),ee("mkdir",{dir:f,...h}),await et.mkdir(f,h),l)return;ee("opening read stream",r);let g=await Si(this.zipfile.openReadStream.bind(this.zipfile))(e);if(a){let y=await Zh(g);ee("creating symlink",y,r),await et.symlink(y,r)}else await rp(g,Xh(r,{mode:u}))}getExtractedMode(e,r){let n=e;return n===0&&(r?(this.opts.defaultDirMode&&(n=parseInt(this.opts.defaultDirMode,10)),n||(n=493)):(this.opts.defaultFileMode&&(n=parseInt(this.opts.defaultFileMode,10)),n||(n=420))),n}};Al.exports=async function(t,e){if(ee("creating target directory",e.dir),!Pe.isAbsolute(e.dir))throw new Error("Target directory is expected to be absolute");return await et.mkdir(e.dir,{recursive:!0}),e.dir=await et.realpath(e.dir),new Ei(t,e).extract()}});var Ai=p((Mg,Ol)=>{"use strict";var np=require("path"),Dr=require("fs"),ip=JSON.stringify({AppSetup:{AppInstallRequired:!0,AutoMigrate:!1},ConnectionStrings:{DefaultConnection:"Server=localhost;Database=xframework_setup_placeholder;User Id=setup;Password=placeholder;TrustServerCertificate=True;MultipleActiveResultSets=True;",ReportingConnection:"",ReadOnlyConnection:""},Logging:{LogLevel:{Default:"Information","Microsoft.AspNetCore":"Warning"}},AllowedHosts:"*",Jwt:{Key:"xframework-developer-placeholder-key-minimum-32-chars!!",Issuer:"XFrameworkApi",ExpireDays:"1",RefreshDays:"7"},LoginToken:{SecretKey:"xframework-developer-login-token-secret-minimum-32-chars!!"},Cors:{AllowedOrigins:["http://localhost:5173","http://localhost:3000"],AllowedMethods:["GET","POST","PUT","DELETE","PATCH","OPTIONS"],AllowedHeaders:["Content-Type","Authorization","X-Requested-With","Accept"],AllowCredentials:!0,PreflightMaxAge:600,ExposedHeaders:["Content-Disposition"]},AWSVideoSettings:{S3Settings:{VideoBucketName:"",ProcessedVideoBucketName:"",Region:"us-east-1",AccessKey:"",SecretKey:""},LambdaSettings:{BackendApiKey:""}},Aws:{AccessKeyId:"placeholder",SecretAccessKey:"placeholder",Bucket:"placeholder",Region:"us-east-1",IsAwsEnabled:"False",PreviewUrlExpiryMinutes:15},AzureBlobStorage:{ConnectionString:"",ContainerName:""},AzureStorage:{ConnectionString:"",MemberPhotosContainer:"",BaseUrl:""},AzureDocumentIntelligence:{Endpoint:"",Key:""},CVSettings:{AzureVisionEndpoint:"",AzureVisionKey:"",StorageLocation:"",ChunkSize:1e3,ChunkOverlap:200,VectorDimensions:1536},AISettings:{MaxRetries:3,VerificationPromptTemplate:""},Firebase:{CredentialsFile:""},Stripe:{SecretKey:"",PublishableKey:"",WebhookSecret:""},Email:{From:"noreply@localhost",SmtpServer:"localhost",Port:587,Username:"placeholder",Password:"placeholder"},Twilio:{AccountSid:"placeholder",AuthToken:"placeholder",VerifySID:"placeholder"},TwilioConfiguration:{AccountSid:"placeholder",AuthToken:"placeholder",PhoneNumber:"placeholder"},TwoFactorAuthentication:{DefaultMethod:"Email"},RateLimiting:{Enabled:!1,DefaultPolicy:"General",Policies:{General:{Name:"General",PermitLimit:100,Window:"00:01:00",QueueLimit:2}},Redis:{ConnectionString:"",InstanceName:"RateLimit_"}},IdentityOptions:{Password:{RequiredLength:6,RequireLowercase:!1,RequireUppercase:!1,RequireNonAlphanumeric:!1,RequireDigit:!1},User:{RequireUniqueEmail:!0},SignIn:{RequireConfirmedEmail:!1},Register:{RequireRegisterConfirmedEmail:!1},AWSSettings:{IsAwsEnabled:!1,AccessKeyId:"",SecretAccessKey:"",Bucket:""}},SecurityHeaders:{AddXFrameOptions:!1,HstsEnabled:!1,CspMode:"frame-ancestors-only"},BaseConfiguration:{AppName:"xFramework",BaseUrl:"http://localhost:5000"},DataRetention:{DefaultUserRetentionDays:2555,BackgroundProcessingEnabled:!1,DefaultToDryRun:!0},Features:{SupportTickets:!1},OpenAIKey:"",BrianOpenAIKey:"",EncryptKey:"xframework-default-encrypt-key",SuperAdmin:"Operation - Admin",DefaultRole:"",DefaultRoleType:"Operation",DefaultTenant:"",TempToken:{ExpireMinutes:"10"},TempTokenMinutes:10,Roles:{DefaultId:"797b6cf7-1a2f-4933-addb-33b4c51a87aa",DefaultType:"Operation",CustomerRoleId:"3DD64000-A0CF-494B-B41E-5113CB92D22A"},SiteUrl:"",ApplicationUrl:"http://localhost:5000",AvatarUploadFolder:"profileImages",AwsConfiguration:{AccessKeyId:"placeholder",SecretAccessKey:"placeholder",Bucket:"placeholder",Region:"us-east-1",IsAwsEnabled:!1}},null,2),op=new Set(["appsettings.Local.json","appsettings.Development.json","appsettings.Production.json","appsettings.HierarchyDefaults.json","appsettings.PIIRedaction.json"]);function sp(t){let e=t.toLowerCase();return e.includes("firebase")||e.includes("adminsdk")||e==="google-services.json"||e.includes("googlecredential")}function ap(t){let e=0,r=0;function n(i){let o;try{o=Dr.readdirSync(i)}catch{return}for(let s of o){let a=np.join(i,s),l;try{l=Dr.statSync(a)}catch{continue}if(l.isDirectory()){n(a);continue}if(s.endsWith(".json")){if(s==="appsettings.json")try{Dr.writeFileSync(a,ip,"utf8"),e++}catch{}else if(op.has(s)||sp(s))try{Dr.unlinkSync(a),r++}catch{}}}}return n(t),{replaced:e,deleted:r}}Ol.exports=ap});var Pi=p((Bg,Ml)=>{"use strict";var I=require("path"),S=require("fs"),Oi=require("os"),lp=require("readline"),{spawn:Fl}=require("child_process"),E=X(),cp=fr(),up=ui(),Ii=require("crypto"),Fi=require("http"),Ri=require("https"),{readLicense:fp}=bt();function dp(t){return new Promise(e=>{let r=lp.createInterface({input:process.stdin,output:process.stdout});r.question(t,n=>{r.close(),e(n.trim().toLowerCase())})})}var Ct="http://localhost:5271";function Pl(t){try{let e=JSON.parse(Buffer.from(t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),"base64").toString("utf8"));return Array.isArray(e.domains)&&e.domains.length>0?e.domains.filter(Boolean):e.domain?[e.domain]:[]}catch{return[]}}function Il(t){let r=Pl(t)[0]||null;return new Promise(n=>{try{let i=new URL("/api/licenses/verify",Ct),o=JSON.stringify({token:t,domain:r}),a=(i.protocol==="https:"?Ri:Fi).request({hostname:i.hostname,port:i.port||(i.protocol==="https:"?443:80),path:i.pathname,method:"POST",headers:{"Content-Type":"application/json","Content-Length":Buffer.byteLength(o)}},l=>{let c="";l.on("data",u=>{c+=u}),l.on("end",()=>{try{n(JSON.parse(c))}catch{n(null)}})});a.setTimeout(5e3,()=>{a.destroy(),n(null)}),a.on("error",()=>n(null)),a.write(o),a.end()}catch{n(null)}})}function hp(t){return new Promise(e=>{Fi.get(`http://127.0.0.1:${t}/api/v1.0/setup/status`,r=>{let n="";r.on("data",i=>{n+=i}),r.on("end",()=>{try{e(JSON.parse(n))}catch{e({isInstalled:!0})}})}).on("error",()=>e({isInstalled:!0}))})}function pp(t,e){let r=t.database||{};return r.provider==="sqlserver"?`Server=${r.host},${r.port||1433};Database=${r.database};User Id=${r.username};Password=${r.password};TrustServerCertificate=True;MultipleActiveResultSets=True;`:r.provider==="postgresql"&&!r.embedded?`Host=${r.host};Port=${r.port||5432};Database=${r.database};Username=${r.username};Password=${r.password};SSL Mode=Prefer;`:`Host=127.0.0.1;Port=${qr};Database=${kl};Username=${Ll};Password=${e.pgPassword};SSL Mode=Disable;Persist Security Info=true;`}var W=I.join(Oi.homedir(),".xFramework","instances","default"),Le=I.join(W,"db"),Nr=I.join(W,"logs"),Rl=I.join(W,"data"),Mr=I.join(W,"secrets"),Ti=I.join(W,".env"),tt=I.join(W,"config.json"),gp=I.join(W,".pid"),qr=54329,Ll="contentactive",kl="contentactive",Dl=I.resolve(__dirname,S.existsSync(I.join(__dirname,"dist"))?".":".."),qg=I.join(Dl,"dist","api"),Nl=I.join(Dl,"dist","ui");function mp(){[W,Le,Nr,Rl,I.join(Rl,"backups"),Mr].forEach(t=>{S.existsSync(t)||S.mkdirSync(t,{recursive:!0})})}function yp(){if(S.existsSync(I.join(Mr,"master.key"))||S.writeFileSync(I.join(Mr,"master.key"),Ii.randomBytes(32).toString("hex"),"utf8"),!S.existsSync(Ti)){let t=Ii.randomBytes(32).toString("hex");S.writeFileSync(Ti,`# xFramework environment
40
+ `+o),t.push(i+"m+"+Er.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Th()+e+" "+t[0]}function Th(){return W.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Rh(...t){return process.stderr.write(vr.formatWithOptions(W.inspectOpts,...t)+`
41
+ `)}function Ph(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Fh(){return process.env.DEBUG}function Lh(t){t.inspectOpts={};let e=Object.keys(W.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=W.inspectOpts[e[r]]}Er.exports=bi()(W);var{formatters:il}=Er.exports;il.o=function(t){return this.inspectOpts.colors=this.useColors,vr.inspect(t,this.inspectOpts).split(`
42
+ `).map(e=>e.trim()).join(" ")};il.O=function(t){return this.inspectOpts.colors=this.useColors,vr.inspect(t,this.inspectOpts)}});var sl=m((jg,wi)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?wi.exports=nl():wi.exports=ol()});var cl=m(($g,ll)=>{ll.exports=al;function al(t,e){if(t&&e)return al(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var o=t.apply(this,n),s=n[n.length-1];return typeof o=="function"&&o!==s&&Object.keys(s).forEach(function(a){o[a]=s[a]}),o}}});var Ei=m((Ug,vi)=>{var ul=cl();vi.exports=ul(Sr);vi.exports.strict=ul(fl);Sr.proto=Sr(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Sr(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return fl(this)},configurable:!0})});function Sr(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function fl(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var pl=m((Vg,hl)=>{var Dh=Ei(),kh=function(){},Nh=global.Bare?queueMicrotask:process.nextTick.bind(process),Mh=function(t){return t.setHeader&&typeof t.abort=="function"},qh=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},dl=function(t,e,r){if(typeof e=="function")return dl(t,null,e);e||(e={}),r=Dh(r||kh);var n=t._writableState,i=t._readableState,o=e.readable||e.readable!==!1&&t.readable,s=e.writable||e.writable!==!1&&t.writable,a=!1,l=function(){t.writable||c()},c=function(){s=!1,o||r.call(t)},u=function(){o=!1,s||r.call(t)},f=function(h){r.call(t,h?new Error("exited with error code: "+h):null)},p=function(h){r.call(t,h)},d=function(){Nh(_)},_=function(){if(!a){if(o&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(s&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},g=function(){t.req.on("finish",c)};return Mh(t)?(t.on("complete",c),t.on("abort",d),t.req?g():t.on("request",g)):s&&!n&&(t.on("end",l),t.on("close",l)),qh(t)&&t.on("exit",f),t.on("end",u),t.on("finish",c),e.error!==!1&&t.on("error",p),t.on("close",d),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("exit",f),t.removeListener("end",u),t.removeListener("error",p),t.removeListener("close",d)}};hl.exports=dl});var yl=m((Wg,ml)=>{var Bh=Ei(),jh=pl(),Cr;try{Cr=require("fs")}catch{}var Et=function(){},$h=typeof process>"u"?!1:/^v?\.0/.test(process.version),Ar=function(t){return typeof t=="function"},Uh=function(t){return!$h||!Cr?!1:(t instanceof(Cr.ReadStream||Et)||t instanceof(Cr.WriteStream||Et))&&Ar(t.close)},Vh=function(t){return t.setHeader&&Ar(t.abort)},Wh=function(t,e,r,n){n=Bh(n);var i=!1;t.on("close",function(){i=!0}),jh(t,{readable:e,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,Uh(t))return t.close(Et);if(Vh(t))return t.abort();if(Ar(t.destroy))return t.destroy();n(s||new Error("stream was destroyed"))}}},gl=function(t){t()},Hh=function(t,e){return t.pipe(e)},Gh=function(){var t=Array.prototype.slice.call(arguments),e=Ar(t[t.length-1]||Et)&&t.pop()||Et;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,o){var s=o<t.length-1,a=o>0;return Wh(i,s,a,function(l){r||(r=l),l&&n.forEach(gl),!s&&(n.forEach(gl),e(r))})});return t.reduce(Hh)};ml.exports=Gh});var xl=m((Hg,_l)=>{"use strict";var{PassThrough:zh}=require("stream");_l.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new zh({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",l=>{a.push(l),i?s=a.length:s+=l.length}),o.getBufferedValue=()=>e?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o}});var bl=m((Gg,et)=>{"use strict";var{constants:Kh}=require("buffer"),Yh=yl(),Jh=xl(),Ir=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Or(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,o)=>{let s=a=>{a&&n.getBufferedLength()<=Kh.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),o(a)};n=Yh(t,Jh(e),a=>{if(a){s(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&s(new Ir)})}),n.getBufferedValue()}et.exports=Or;et.exports.default=Or;et.exports.buffer=(t,e)=>Or(t,{...e,encoding:"buffer"});et.exports.array=(t,e)=>Or(t,{...e,array:!0});et.exports.MaxBufferError=Ir});var Sl=m((zg,El)=>{El.exports=Tr;function Tr(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}Tr.prototype.go=function(t){this.pending<this.max?vl(this,t):this.waiting.push(t)};Tr.prototype.wait=function(t){this.pending===0?t(this.error):this.listeners.push(t)};Tr.prototype.hold=function(){return wl(this)};function wl(t){t.pending+=1;var e=!1;return r;function r(i){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||i,t.pending-=1,t.waiting.length>0&&t.pending<t.max)vl(t,t.waiting.shift());else if(t.pending===0){var o=t.listeners;t.listeners=[],o.forEach(n)}}function n(i){i(t.error)}}function vl(t,e){e(wl(t))}});var Al=m(Ct=>{var St=require("fs"),Rr=require("util"),Si=require("stream"),Cl=Si.Readable,Ci=Si.Writable,Xh=Si.PassThrough,Zh=Sl(),Pr=require("events").EventEmitter;Ct.createFromBuffer=Qh;Ct.createFromFd=ep;Ct.BufferSlicer=he;Ct.FdSlicer=de;Rr.inherits(de,Pr);function de(t,e){e=e||{},Pr.call(this),this.fd=t,this.pend=new Zh,this.pend.max=1,this.refCount=0,this.autoClose=!!e.autoClose}de.prototype.read=function(t,e,r,n,i){var o=this;o.pend.go(function(s){St.read(o.fd,t,e,r,n,function(a,l,c){s(),i(a,l,c)})})};de.prototype.write=function(t,e,r,n,i){var o=this;o.pend.go(function(s){St.write(o.fd,t,e,r,n,function(a,l,c){s(),i(a,l,c)})})};de.prototype.createReadStream=function(t){return new Fr(this,t)};de.prototype.createWriteStream=function(t){return new Lr(this,t)};de.prototype.ref=function(){this.refCount+=1};de.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&St.close(t.fd,e);function e(r){r?t.emit("error",r):t.emit("close")}};Rr.inherits(Fr,Cl);function Fr(t,e){e=e||{},Cl.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end,this.pos=this.start,this.destroyed=!1}Fr.prototype._read=function(t){var e=this;if(!e.destroyed){var r=Math.min(e._readableState.highWaterMark,t);if(e.endOffset!=null&&(r=Math.min(r,e.endOffset-e.pos)),r<=0){e.destroyed=!0,e.push(null),e.context.unref();return}e.context.pend.go(function(n){if(e.destroyed)return n();var i=new Buffer(r);St.read(e.context.fd,i,0,r,e.pos,function(o,s){o?e.destroy(o):s===0?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=s,e.push(i.slice(0,s))),n()})})}};Fr.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())};Rr.inherits(Lr,Ci);function Lr(t,e){e=e||{},Ci.call(this,e),this.context=t,this.context.ref(),this.start=e.start||0,this.endOffset=e.end==null?1/0:+e.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}Lr.prototype._write=function(t,e,r){var n=this;if(!n.destroyed){if(n.pos+t.length>n.endOffset){var i=new Error("maximum file length exceeded");i.code="ETOOBIG",n.destroy(),r(i);return}n.context.pend.go(function(o){if(n.destroyed)return o();St.write(n.context.fd,t,0,t.length,n.pos,function(s,a){s?(n.destroy(),o(),r(s)):(n.bytesWritten+=a,n.pos+=a,n.emit("progress"),o(),r())})})}};Lr.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())};Rr.inherits(he,Pr);function he(t,e){Pr.call(this),e=e||{},this.refCount=0,this.buffer=t,this.maxChunkSize=e.maxChunkSize||Number.MAX_SAFE_INTEGER}he.prototype.read=function(t,e,r,n,i){var o=n+r,s=o-this.buffer.length,a=s>0?s:r;this.buffer.copy(t,e,n,o),setImmediate(function(){i(null,a)})};he.prototype.write=function(t,e,r,n,i){t.copy(this.buffer,n,e,e+r),setImmediate(function(){i(null,r,t)})};he.prototype.createReadStream=function(t){t=t||{};var e=new Xh(t);e.destroyed=!1,e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length;for(var r=this.buffer.slice(e.start,e.pos),n=0;;){var i=n+this.maxChunkSize;if(i>=r.length){n<r.length&&e.write(r.slice(n,r.length));break}e.write(r.slice(n,i)),n=i}return e.end(),e.destroy=function(){e.destroyed=!0},e};he.prototype.createWriteStream=function(t){var e=this;t=t||{};var r=new Ci(t);return r.start=t.start||0,r.endOffset=t.end==null?this.buffer.length:+t.end,r.bytesWritten=0,r.pos=r.start,r.destroyed=!1,r._write=function(n,i,o){if(!r.destroyed){var s=r.pos+n.length;if(s>r.endOffset){var a=new Error("maximum file length exceeded");a.code="ETOOBIG",r.destroyed=!0,o(a);return}n.copy(e.buffer,r.pos,0,n.length),r.bytesWritten+=n.length,r.pos=s,r.emit("progress"),o()}},r.destroy=function(){r.destroyed=!0},r};he.prototype.ref=function(){this.refCount+=1};he.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")};function Qh(t,e){return new he(t,e)}function ep(t,e){return new de(t,e)}});var Tl=m((Yg,Ol)=>{var we=require("buffer").Buffer,Ai=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(Ai=new Int32Array(Ai));function Il(t){if(we.isBuffer(t))return t;var e=typeof we.alloc=="function"&&typeof we.from=="function";if(typeof t=="number")return e?we.alloc(t):new we(t);if(typeof t=="string")return e?we.from(t):new we(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function tp(t){var e=Il(4);return e.writeInt32BE(t,0),e}function Ii(t,e){t=Il(t),we.isBuffer(e)&&(e=e.readUInt32BE(0));for(var r=~~e^-1,n=0;n<t.length;n++)r=Ai[(r^t[n])&255]^r>>>8;return r^-1}function Oi(){return tp(Ii.apply(null,arguments))}Oi.signed=function(){return Ii.apply(null,arguments)};Oi.unsigned=function(){return Ii.apply(null,arguments)>>>0};Ol.exports=Oi});var Nl=m(le=>{var Ti=require("fs"),rp=require("zlib"),Rl=Al(),np=Tl(),Nr=require("util"),Mr=require("events").EventEmitter,Pl=require("stream").Transform,Ri=require("stream").PassThrough,ip=require("stream").Writable;le.open=op;le.fromFd=Fl;le.fromBuffer=sp;le.fromRandomAccessReader=Pi;le.dosDateTimeToDate=Dl;le.validateFileName=kl;le.ZipFile=ve;le.Entry=At;le.RandomAccessReader=Ee;function op(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!0),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=kr),Ti.open(t,"r",function(n,i){if(n)return r(n);Fl(i,e,function(o,s){o&&Ti.close(i,kr),r(o,s)})})}function Fl(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose==null&&(e.autoClose=!1),e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1),r==null&&(r=kr),Ti.fstat(t,function(n,i){if(n)return r(n);var o=Rl.createFromFd(t,{autoClose:!0});Pi(o,i.size,e,r)})}function sp(t,e,r){typeof e=="function"&&(r=e,e=null),e==null&&(e={}),e.autoClose=!1,e.lazyEntries==null&&(e.lazyEntries=!1),e.decodeStrings==null&&(e.decodeStrings=!0),e.validateEntrySizes==null&&(e.validateEntrySizes=!0),e.strictFileNames==null&&(e.strictFileNames=!1);var n=Rl.createFromBuffer(t,{maxChunkSize:65536});Pi(n,t.length,e,r)}function Pi(t,e,r,n){typeof r=="function"&&(n=r,r=null),r==null&&(r={}),r.autoClose==null&&(r.autoClose=!0),r.lazyEntries==null&&(r.lazyEntries=!1),r.decodeStrings==null&&(r.decodeStrings=!0);var i=!!r.decodeStrings;if(r.validateEntrySizes==null&&(r.validateEntrySizes=!0),r.strictFileNames==null&&(r.strictFileNames=!1),n==null&&(n=kr),typeof e!="number")throw new Error("expected totalSize parameter to be a number");if(e>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var o=22,s=65535,a=Math.min(o+s,e),l=ae(a),c=e-l.length;tt(t,l,0,a,c,function(u){if(u)return n(u);for(var f=a-o;f>=0;f-=1)if(l.readUInt32LE(f)===101010256){var p=l.slice(f),d=p.readUInt16LE(4);if(d!==0)return n(new Error("multi-disk zip files are not supported: found disk number: "+d));var _=p.readUInt16LE(10),g=p.readUInt32LE(16),h=p.readUInt16LE(20),y=p.length-o;if(h!==y)return n(new Error("invalid comment length. expected: "+y+". found: "+h));var C=i?Dr(p,22,p.length,!1):p.slice(22);if(!(_===65535||g===4294967295))return n(null,new ve(t,g,e,_,C,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames));var I=ae(20),M=c+f-I.length;tt(t,I,0,I.length,M,function(L){if(L)return n(L);if(I.readUInt32LE(0)!==117853008)return n(new Error("invalid zip64 end of central directory locator signature"));var $=rt(I,8),ce=ae(56);tt(t,ce,0,ce.length,$,function(Se){return Se?n(Se):ce.readUInt32LE(0)!==101075792?n(new Error("invalid zip64 end of central directory record signature")):(_=rt(ce,32),g=rt(ce,48),n(null,new ve(t,g,e,_,C,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames)))})});return}n(new Error("end of central directory record signature not found"))})}Nr.inherits(ve,Mr);function ve(t,e,r,n,i,o,s,a,l,c){var u=this;Mr.call(u),u.reader=t,u.reader.on("error",function(f){Ll(u,f)}),u.reader.once("close",function(){u.emit("close")}),u.readEntryCursor=e,u.fileSize=r,u.entryCount=n,u.comment=i,u.entriesRead=0,u.autoClose=!!o,u.lazyEntries=!!s,u.decodeStrings=!!a,u.validateEntrySizes=!!l,u.strictFileNames=!!c,u.isOpen=!0,u.emittedError=!1,u.lazyEntries||u._readEntry()}ve.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())};function te(t,e){t.autoClose&&t.close(),Ll(t,e)}function Ll(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}ve.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};ve.prototype._readEntry=function(){var t=this;if(t.entryCount===t.entriesRead){setImmediate(function(){t.autoClose&&t.close(),!t.emittedError&&t.emit("end")});return}if(!t.emittedError){var e=ae(46);tt(t.reader,e,0,e.length,t.readEntryCursor,function(r){if(r)return te(t,r);if(!t.emittedError){var n=new At,i=e.readUInt32LE(0);if(i!==33639248)return te(t,new Error("invalid central directory file header signature: 0x"+i.toString(16)));if(n.versionMadeBy=e.readUInt16LE(4),n.versionNeededToExtract=e.readUInt16LE(6),n.generalPurposeBitFlag=e.readUInt16LE(8),n.compressionMethod=e.readUInt16LE(10),n.lastModFileTime=e.readUInt16LE(12),n.lastModFileDate=e.readUInt16LE(14),n.crc32=e.readUInt32LE(16),n.compressedSize=e.readUInt32LE(20),n.uncompressedSize=e.readUInt32LE(24),n.fileNameLength=e.readUInt16LE(28),n.extraFieldLength=e.readUInt16LE(30),n.fileCommentLength=e.readUInt16LE(32),n.internalFileAttributes=e.readUInt16LE(36),n.externalFileAttributes=e.readUInt32LE(38),n.relativeOffsetOfLocalHeader=e.readUInt32LE(42),n.generalPurposeBitFlag&64)return te(t,new Error("strong encryption is not supported"));t.readEntryCursor+=46,e=ae(n.fileNameLength+n.extraFieldLength+n.fileCommentLength),tt(t.reader,e,0,e.length,t.readEntryCursor,function(o){if(o)return te(t,o);if(!t.emittedError){var s=(n.generalPurposeBitFlag&2048)!==0;n.fileName=t.decodeStrings?Dr(e,0,n.fileNameLength,s):e.slice(0,n.fileNameLength);var a=n.fileNameLength+n.extraFieldLength,l=e.slice(n.fileNameLength,a);n.extraFields=[];for(var c=0;c<l.length-3;){var u=l.readUInt16LE(c+0),f=l.readUInt16LE(c+2),p=c+4,d=p+f;if(d>l.length)return te(t,new Error("extra field length exceeds extra field buffer size"));var _=ae(f);l.copy(_,0,p,d),n.extraFields.push({id:u,data:_}),c=d}if(n.fileComment=t.decodeStrings?Dr(e,a,a+n.fileCommentLength,s):e.slice(a,a+n.fileCommentLength),n.comment=n.fileComment,t.readEntryCursor+=e.length,t.entriesRead+=1,n.uncompressedSize===4294967295||n.compressedSize===4294967295||n.relativeOffsetOfLocalHeader===4294967295){for(var g=null,c=0;c<n.extraFields.length;c++){var h=n.extraFields[c];if(h.id===1){g=h.data;break}}if(g==null)return te(t,new Error("expected zip64 extended information extra field"));var y=0;if(n.uncompressedSize===4294967295){if(y+8>g.length)return te(t,new Error("zip64 extended information extra field does not include uncompressed size"));n.uncompressedSize=rt(g,y),y+=8}if(n.compressedSize===4294967295){if(y+8>g.length)return te(t,new Error("zip64 extended information extra field does not include compressed size"));n.compressedSize=rt(g,y),y+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(y+8>g.length)return te(t,new Error("zip64 extended information extra field does not include relative header offset"));n.relativeOffsetOfLocalHeader=rt(g,y),y+=8}}if(t.decodeStrings)for(var c=0;c<n.extraFields.length;c++){var h=n.extraFields[c];if(h.id===28789){if(h.data.length<6||h.data.readUInt8(0)!==1)continue;var C=h.data.readUInt32LE(1);if(np.unsigned(e.slice(0,n.fileNameLength))!==C)continue;n.fileName=Dr(h.data,5,h.data.length,!0);break}}if(t.validateEntrySizes&&n.compressionMethod===0){var I=n.uncompressedSize;if(n.isEncrypted()&&(I+=12),n.compressedSize!==I){var M="compressed/uncompressed size mismatch for stored file: "+n.compressedSize+" != "+n.uncompressedSize;return te(t,new Error(M))}}if(t.decodeStrings){t.strictFileNames||(n.fileName=n.fileName.replace(/\\/g,"/"));var L=kl(n.fileName,t.validateFileNameOptions);if(L!=null)return te(t,new Error(L))}t.emit("entry",n),t.lazyEntries||t._readEntry()}})}})}};ve.prototype.openReadStream=function(t,e,r){var n=this,i=0,o=t.compressedSize;if(r==null)r=e,e={};else{if(e.decrypt!=null){if(!t.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(e.decrypt!==!1)throw new Error("invalid options.decrypt value: "+e.decrypt);if(t.isCompressed()&&e.decompress!==!1)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(e.decompress!=null){if(!t.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!(e.decompress===!1||e.decompress===!0))throw new Error("invalid options.decompress value: "+e.decompress)}if(e.start!=null||e.end!=null){if(t.isCompressed()&&e.decompress!==!1)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(t.isEncrypted()&&e.decrypt!==!1)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(e.start!=null){if(i=e.start,i<0)throw new Error("options.start < 0");if(i>t.compressedSize)throw new Error("options.start > entry.compressedSize")}if(e.end!=null){if(o=e.end,o<0)throw new Error("options.end < 0");if(o>t.compressedSize)throw new Error("options.end > entry.compressedSize");if(o<i)throw new Error("options.end < options.start")}}if(!n.isOpen)return r(new Error("closed"));if(t.isEncrypted()&&e.decrypt!==!1)return r(new Error("entry is encrypted, and options.decrypt !== false"));n.reader.ref();var s=ae(30);tt(n.reader,s,0,s.length,t.relativeOffsetOfLocalHeader,function(a){try{if(a)return r(a);var l=s.readUInt32LE(0);if(l!==67324752)return r(new Error("invalid local file header signature: 0x"+l.toString(16)));var c=s.readUInt16LE(26),u=s.readUInt16LE(28),f=t.relativeOffsetOfLocalHeader+s.length+c+u,p;if(t.compressionMethod===0)p=!1;else if(t.compressionMethod===8)p=e.decompress!=null?e.decompress:!0;else return r(new Error("unsupported compression method: "+t.compressionMethod));var d=f,_=d+t.compressedSize;if(t.compressedSize!==0&&_>n.fileSize)return r(new Error("file data overflows file bounds: "+d+" + "+t.compressedSize+" > "+n.fileSize));var g=n.reader.createReadStream({start:d+i,end:d+o}),h=g;if(p){var y=!1,C=rp.createInflateRaw();g.on("error",function(I){setImmediate(function(){y||C.emit("error",I)})}),g.pipe(C),n.validateEntrySizes?(h=new It(t.uncompressedSize),C.on("error",function(I){setImmediate(function(){y||h.emit("error",I)})}),C.pipe(h)):h=C,h.destroy=function(){y=!0,C!==h&&C.unpipe(h),g.unpipe(C),g.destroy()}}r(null,h)}finally{n.reader.unref()}})};function At(){}At.prototype.getLastModDate=function(){return Dl(this.lastModFileDate,this.lastModFileTime)};At.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};At.prototype.isCompressed=function(){return this.compressionMethod===8};function Dl(t,e){var r=t&31,n=(t>>5&15)-1,i=(t>>9&127)+1980,o=0,s=(e&31)*2,a=e>>5&63,l=e>>11&31;return new Date(i,n,r,l,a,s,o)}function kl(t){return t.indexOf("\\")!==-1?"invalid characters in fileName: "+t:/^[a-zA-Z]:/.test(t)||/^\//.test(t)?"absolute path: "+t:t.split("/").indexOf("..")!==-1?"invalid relative path: "+t:null}function tt(t,e,r,n,i,o){if(n===0)return setImmediate(function(){o(null,ae(0))});t.read(e,r,n,i,function(s,a){if(s)return o(s);if(a<n)return o(new Error("unexpected EOF"));o()})}Nr.inherits(It,Pl);function It(t){Pl.call(this),this.actualByteCount=0,this.expectedByteCount=t}It.prototype._transform=function(t,e,r){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return r(new Error(n))}r(null,t)};It.prototype._flush=function(t){if(this.actualByteCount<this.expectedByteCount){var e="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return t(new Error(e))}t()};Nr.inherits(Ee,Mr);function Ee(){Mr.call(this),this.refCount=0}Ee.prototype.ref=function(){this.refCount+=1};Ee.prototype.unref=function(){var t=this;if(t.refCount-=1,t.refCount>0)return;if(t.refCount<0)throw new Error("invalid unref");t.close(e);function e(r){if(r)return t.emit("error",r);t.emit("close")}};Ee.prototype.createReadStream=function(t){var e=t.start,r=t.end;if(e===r){var n=new Ri;return setImmediate(function(){n.end()}),n}var i=this._readStreamForRange(e,r),o=!1,s=new qr(this);i.on("error",function(l){setImmediate(function(){o||s.emit("error",l)})}),s.destroy=function(){i.unpipe(s),s.unref(),i.destroy()};var a=new It(r-e);return s.on("error",function(l){setImmediate(function(){o||a.emit("error",l)})}),a.destroy=function(){o=!0,s.unpipe(a),s.destroy()},i.pipe(s).pipe(a)};Ee.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")};Ee.prototype.read=function(t,e,r,n,i){var o=this.createReadStream({start:n,end:n+r}),s=new ip,a=0;s._write=function(l,c,u){l.copy(t,e+a,0,l.length),a+=l.length,u()},s.on("finish",i),o.on("error",function(l){i(l)}),o.pipe(s)};Ee.prototype.close=function(t){setImmediate(t)};Nr.inherits(qr,Ri);function qr(t){Ri.call(this),this.context=t,this.context.ref(),this.unreffedYet=!1}qr.prototype._flush=function(t){this.unref(),t()};qr.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var ap="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";function Dr(t,e,r,n){if(n)return t.toString("utf8",e,r);for(var i="",o=e;o<r;o++)i+=ap[t[o]];return i}function rt(t,e){var r=t.readUInt32LE(e),n=t.readUInt32LE(e+4);return n*4294967296+r}var ae;typeof Buffer.allocUnsafe=="function"?ae=function(t){return Buffer.allocUnsafe(t)}:ae=function(t){return new Buffer(t)};function kr(t){if(t)throw t}});var Di=m((Xg,Ml)=>{var re=sl()("extract-zip"),{createWriteStream:lp,promises:nt}=require("fs"),cp=bl(),De=require("path"),{promisify:Li}=require("util"),up=require("stream"),fp=Nl(),dp=Li(fp.open),hp=Li(up.pipeline),Fi=class{constructor(e,r){this.zipPath=e,this.opts=r}async extract(){return re("opening",this.zipPath,"with opts",this.opts),this.zipfile=await dp(this.zipPath,{lazyEntries:!0}),this.canceled=!1,new Promise((e,r)=>{this.zipfile.on("error",n=>{this.canceled=!0,r(n)}),this.zipfile.readEntry(),this.zipfile.on("close",()=>{this.canceled||(re("zip extraction complete"),e())}),this.zipfile.on("entry",async n=>{if(this.canceled){re("skipping entry",n.fileName,{cancelled:this.canceled});return}if(re("zipfile entry",n.fileName),n.fileName.startsWith("__MACOSX/")){this.zipfile.readEntry();return}let i=De.dirname(De.join(this.opts.dir,n.fileName));try{await nt.mkdir(i,{recursive:!0});let o=await nt.realpath(i);if(De.relative(this.opts.dir,o).split(De.sep).includes(".."))throw new Error(`Out of bound path "${o}" found while processing file ${n.fileName}`);await this.extractEntry(n),re("finished processing",n.fileName),this.zipfile.readEntry()}catch(o){this.canceled=!0,this.zipfile.close(),r(o)}})})}async extractEntry(e){if(this.canceled){re("skipping entry extraction",e.fileName,{cancelled:this.canceled});return}this.opts.onEntry&&this.opts.onEntry(e,this.zipfile);let r=De.join(this.opts.dir,e.fileName),n=e.externalFileAttributes>>16&65535,i=61440,o=16384,a=(n&i)===40960,l=(n&i)===o;!l&&e.fileName.endsWith("/")&&(l=!0);let c=e.versionMadeBy>>8;l||(l=c===0&&e.externalFileAttributes===16),re("extracting entry",{filename:e.fileName,isDir:l,isSymlink:a});let u=this.getExtractedMode(n,l)&511,f=l?r:De.dirname(r),p={recursive:!0};if(l&&(p.mode=u),re("mkdir",{dir:f,...p}),await nt.mkdir(f,p),l)return;re("opening read stream",r);let d=await Li(this.zipfile.openReadStream.bind(this.zipfile))(e);if(a){let _=await cp(d);re("creating symlink",_,r),await nt.symlink(_,r)}else await hp(d,lp(r,{mode:u}))}getExtractedMode(e,r){let n=e;return n===0&&(r?(this.opts.defaultDirMode&&(n=parseInt(this.opts.defaultDirMode,10)),n||(n=493)):(this.opts.defaultFileMode&&(n=parseInt(this.opts.defaultFileMode,10)),n||(n=420))),n}};Ml.exports=async function(t,e){if(re("creating target directory",e.dir),!De.isAbsolute(e.dir))throw new Error("Target directory is expected to be absolute");return await nt.mkdir(e.dir,{recursive:!0}),e.dir=await nt.realpath(e.dir),new Fi(t,e).extract()}});var ki=m((Zg,ql)=>{"use strict";var pp=require("path"),Br=require("fs"),gp=JSON.stringify({AppSetup:{AppInstallRequired:!0,AutoMigrate:!1},ConnectionStrings:{DefaultConnection:"Server=localhost;Database=xframework_setup_placeholder;User Id=setup;Password=placeholder;TrustServerCertificate=True;MultipleActiveResultSets=True;",ReportingConnection:"",ReadOnlyConnection:""},Logging:{LogLevel:{Default:"Information","Microsoft.AspNetCore":"Warning"}},AllowedHosts:"*",Jwt:{Key:"xframework-developer-placeholder-key-minimum-32-chars!!",Issuer:"XFrameworkApi",ExpireDays:"1",RefreshDays:"7"},LoginToken:{SecretKey:"xframework-developer-login-token-secret-minimum-32-chars!!"},Cors:{AllowedOrigins:["http://localhost:5173","http://localhost:3000"],AllowedMethods:["GET","POST","PUT","DELETE","PATCH","OPTIONS"],AllowedHeaders:["Content-Type","Authorization","X-Requested-With","Accept"],AllowCredentials:!0,PreflightMaxAge:600,ExposedHeaders:["Content-Disposition"]},AWSVideoSettings:{S3Settings:{VideoBucketName:"",ProcessedVideoBucketName:"",Region:"us-east-1",AccessKey:"",SecretKey:""},LambdaSettings:{BackendApiKey:""}},Aws:{AccessKeyId:"placeholder",SecretAccessKey:"placeholder",Bucket:"placeholder",Region:"us-east-1",IsAwsEnabled:"False",PreviewUrlExpiryMinutes:15},AzureBlobStorage:{ConnectionString:"",ContainerName:""},AzureStorage:{ConnectionString:"",MemberPhotosContainer:"",BaseUrl:""},AzureDocumentIntelligence:{Endpoint:"",Key:""},CVSettings:{AzureVisionEndpoint:"",AzureVisionKey:"",StorageLocation:"",ChunkSize:1e3,ChunkOverlap:200,VectorDimensions:1536},AISettings:{MaxRetries:3,VerificationPromptTemplate:""},Firebase:{CredentialsFile:""},Stripe:{SecretKey:"",PublishableKey:"",WebhookSecret:""},Email:{From:"noreply@localhost",SmtpServer:"localhost",Port:587,Username:"placeholder",Password:"placeholder"},Twilio:{AccountSid:"placeholder",AuthToken:"placeholder",VerifySID:"placeholder"},TwilioConfiguration:{AccountSid:"placeholder",AuthToken:"placeholder",PhoneNumber:"placeholder"},TwoFactorAuthentication:{DefaultMethod:"Email"},RateLimiting:{Enabled:!1,DefaultPolicy:"General",Policies:{General:{Name:"General",PermitLimit:100,Window:"00:01:00",QueueLimit:2}},Redis:{ConnectionString:"",InstanceName:"RateLimit_"}},IdentityOptions:{Password:{RequiredLength:6,RequireLowercase:!1,RequireUppercase:!1,RequireNonAlphanumeric:!1,RequireDigit:!1},User:{RequireUniqueEmail:!0},SignIn:{RequireConfirmedEmail:!1},Register:{RequireRegisterConfirmedEmail:!1},AWSSettings:{IsAwsEnabled:!1,AccessKeyId:"",SecretAccessKey:"",Bucket:""}},SecurityHeaders:{AddXFrameOptions:!1,HstsEnabled:!1,CspMode:"frame-ancestors-only"},BaseConfiguration:{AppName:"xFramework",BaseUrl:"http://localhost:5000"},DataRetention:{DefaultUserRetentionDays:2555,BackgroundProcessingEnabled:!1,DefaultToDryRun:!0},Features:{SupportTickets:!1},OpenAIKey:"",BrianOpenAIKey:"",EncryptKey:"xframework-default-encrypt-key",SuperAdmin:"Operation - Admin",DefaultRole:"",DefaultRoleType:"Operation",DefaultTenant:"",TempToken:{ExpireMinutes:"10"},TempTokenMinutes:10,Roles:{DefaultId:"797b6cf7-1a2f-4933-addb-33b4c51a87aa",DefaultType:"Operation",CustomerRoleId:"3DD64000-A0CF-494B-B41E-5113CB92D22A"},SiteUrl:"",ApplicationUrl:"http://localhost:5000",AvatarUploadFolder:"profileImages",AwsConfiguration:{AccessKeyId:"placeholder",SecretAccessKey:"placeholder",Bucket:"placeholder",Region:"us-east-1",IsAwsEnabled:!1}},null,2),mp=new Set(["appsettings.Local.json","appsettings.Development.json","appsettings.Production.json","appsettings.HierarchyDefaults.json","appsettings.PIIRedaction.json"]);function yp(t){let e=t.toLowerCase();return e.includes("firebase")||e.includes("adminsdk")||e==="google-services.json"||e.includes("googlecredential")}function _p(t){let e=0,r=0;function n(i){let o;try{o=Br.readdirSync(i)}catch{return}for(let s of o){let a=pp.join(i,s),l;try{l=Br.statSync(a)}catch{continue}if(l.isDirectory()){n(a);continue}if(s.endsWith(".json")){if(s==="appsettings.json")try{Br.writeFileSync(a,gp,"utf8"),e++}catch{}else if(mp.has(s)||yp(s))try{Br.unlinkSync(a),r++}catch{}}}}return n(t),{replaced:e,deleted:r}}ql.exports=_p});var Ui=m((em,zl)=>{"use strict";var A=require("path"),v=require("fs"),Ni=require("os"),xp=require("readline"),{spawn:Vl}=require("child_process"),w=Q(),bp=gr(),wp=xi(),Mi=require("crypto"),Vr=require("http"),qi=require("https"),{readLicense:vp}=vt();function Bl(t){return new Promise(e=>{let r=xp.createInterface({input:process.stdin,output:process.stdout});r.question(t,n=>{r.close(),e(n.trim().toLowerCase())})})}var Ot="http://localhost:5271";function ji(t){try{let e=JSON.parse(Buffer.from(t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),"base64").toString("utf8"));return Array.isArray(e.domains)&&e.domains.length>0?e.domains.filter(Boolean):e.domain?[e.domain]:[]}catch{return[]}}function jl(t){let r=ji(t)[0]||null;return new Promise(n=>{try{let i=new URL("/api/licenses/verify",Ot),o=JSON.stringify({token:t,domain:r}),a=(i.protocol==="https:"?qi:Vr).request({hostname:i.hostname,port:i.port||(i.protocol==="https:"?443:80),path:i.pathname,method:"POST",headers:{"Content-Type":"application/json","Content-Length":Buffer.byteLength(o)}},l=>{let c="";l.on("data",u=>{c+=u}),l.on("end",()=>{try{n(JSON.parse(c))}catch{n(null)}})});a.setTimeout(5e3,()=>{a.destroy(),n(null)}),a.on("error",()=>n(null)),a.write(o),a.end()}catch{n(null)}})}function Ep(t){return new Promise(e=>{Vr.get(`http://127.0.0.1:${t}/api/v1.0/setup/status`,r=>{let n="";r.on("data",i=>{n+=i}),r.on("end",()=>{try{e(JSON.parse(n))}catch{e({isInstalled:!0})}})}).on("error",()=>e({isInstalled:!0}))})}function Sp(t,e){let r=t.database||{};return r.provider==="sqlserver"?`Server=${r.host},${r.port||1433};Database=${r.database};User Id=${r.username};Password=${r.password};TrustServerCertificate=True;MultipleActiveResultSets=True;`:r.provider==="postgresql"&&!r.embedded?`Host=${r.host};Port=${r.port||5432};Database=${r.database};Username=${r.username};Password=${r.password};SSL Mode=Prefer;`:`Host=127.0.0.1;Port=${Ur};Database=${Hl};Username=${Wl};Password=${e.pgPassword};SSL Mode=Disable;Persist Security Info=true;`}var G=A.join(Ni.homedir(),".xFramework","instances","default"),ke=A.join(G,"db"),jr=A.join(G,"logs"),$l=A.join(G,"data"),$r=A.join(G,"secrets"),Bi=A.join(G,".env"),Ne=A.join(G,"config.json"),Cp=A.join(G,".pid"),Ur=54329,Wl="contentactive",Hl="contentactive",$i=A.resolve(__dirname,v.existsSync(A.join(__dirname,"dist"))?".":".."),Qg=A.join($i,"dist","api"),Gl=A.join($i,"dist","ui"),it=A.join($i,"dist","customer-portal");function Ap(){[G,ke,jr,$l,A.join($l,"backups"),$r].forEach(t=>{v.existsSync(t)||v.mkdirSync(t,{recursive:!0})})}function Ip(){if(v.existsSync(A.join($r,"master.key"))||v.writeFileSync(A.join($r,"master.key"),Mi.randomBytes(32).toString("hex"),"utf8"),!v.existsSync(Bi)){let t=Mi.randomBytes(32).toString("hex");v.writeFileSync(Bi,`# xFramework environment
43
43
  CA_JWT_SECRET=${t}
44
- `,"utf8")}}function _p(){let t=S.readFileSync(I.join(Mr,"master.key"),"utf8").trim(),r=S.readFileSync(Ti,"utf8").match(/CA_JWT_SECRET=(.+)/);return{masterKey:t,pgPassword:t.slice(0,32),jwtSecret:r?r[1].trim():Ii.randomBytes(32).toString("hex")}}function bp(t){if(!S.existsSync(tt)){let e={app:{companyName:"My Company",primaryColor:"#FF5733",timezone:"America/New_York"},server:{port:parseInt(t),host:"127.0.0.1"},database:{provider:"postgresql",embedded:!0},integrations:{googleClientId:"",microsoftClientId:"",microsoftLogin:"",googleMapsApiKey:"",auth0Domain:"",auth0ClientId:"",aiVisionBaseUrl:"",brainServiceKey:"",cmsPageId:"",cmsSiteId:""},features:{crm:!0,cms:!0,events:!0,training:!0,timesheets:!0,reports:!0,supportTickets:!0},backup:{enabled:!0,intervalMinutes:60,retentionDays:30}};S.writeFileSync(tt,JSON.stringify(e,null,2),"utf8")}return JSON.parse(S.readFileSync(tt,"utf8"))}function Tl(t,e){let r=I.join(Nl,"config.js");if(!S.existsSync(r))return;let n=t||{type:"community",company:"",isLicensed:!1},i=n.expiresAt?n.expiresAt.toISOString():"",o=e?.integrations||{},s=[];if(n.isLicensed)try{let l=S.readFileSync(I.join(W,"license.key"),"utf8").trim();s=Pl(l)}catch{}let a=`window.RUNTIME_CONFIG = {
44
+ `,"utf8")}}function Op(){let t=v.readFileSync(A.join($r,"master.key"),"utf8").trim(),r=v.readFileSync(Bi,"utf8").match(/CA_JWT_SECRET=(.+)/);return{masterKey:t,pgPassword:t.slice(0,32),jwtSecret:r?r[1].trim():Mi.randomBytes(32).toString("hex")}}function Tp(t){if(!v.existsSync(Ne)){let e={app:{companyName:"My Company",primaryColor:"#FF5733",timezone:"America/New_York"},server:{port:parseInt(t),host:"127.0.0.1"},database:{provider:"postgresql",embedded:!0},integrations:{googleClientId:"",microsoftClientId:"",microsoftLogin:"",googleMapsApiKey:"",auth0Domain:"",auth0ClientId:"",aiVisionBaseUrl:"",brainServiceKey:"",cmsPageId:"",cmsSiteId:""},customerPortal:{enabled:null,port:7126,integrations:{googleClientId:"",microsoftClientId:"",microsoftLogin:"",googleMapsApiKey:"",auth0Domain:"",auth0ClientId:"",cmsUrl:""}},features:{crm:!0,cms:!0,events:!0,training:!0,timesheets:!0,reports:!0,supportTickets:!0},backup:{enabled:!0,intervalMinutes:60,retentionDays:30}};v.writeFileSync(Ne,JSON.stringify(e,null,2),"utf8")}return JSON.parse(v.readFileSync(Ne,"utf8"))}function Ul(t,e){let r=A.join(Gl,"config.js");if(!v.existsSync(r))return;let n=t||{type:"community",company:"",isLicensed:!1},i=n.expiresAt?n.expiresAt.toISOString():"",o=e?.integrations||{},s=[];if(n.isLicensed)try{let l=v.readFileSync(A.join(G,"license.key"),"utf8").trim();s=ji(l)}catch{}let a=`window.RUNTIME_CONFIG = {
45
45
  VITE_APP_BASE: "Embedded",
46
46
  VITE_API_BASE_URL: "",
47
47
  VITE_SETUP_MODE: "manager",
@@ -61,13 +61,31 @@ CA_JWT_SECRET=${t}
61
61
  VITE_LICENSE_DAYS_REMAINING: "${n.daysRemaining!=null?n.daysRemaining:""}",
62
62
  VITE_LICENSE_DOMAINS: ${JSON.stringify(s)},
63
63
  };
64
- `;S.writeFileSync(r,a,"utf8")}async function xp(t,e){t.text="Starting database...";let r=await import("embedded-postgres"),n=r.default||r,i=new n({databaseDir:Le,user:Ll,password:e,port:qr,persistent:!0});if(S.existsSync(I.join(Le,"PG_VERSION"))||(S.existsSync(Le)&&(S.rmSync(Le,{recursive:!0,force:!0}),S.mkdirSync(Le,{recursive:!0})),await i.initialise()),!await new Promise(a=>{let c=require("net").createConnection({host:"127.0.0.1",port:qr});c.setTimeout(3e3),c.once("connect",()=>{c.destroy(),a(!0)}),c.once("error",()=>{c.destroy(),a(!1)}),c.once("timeout",()=>{c.destroy(),a(!1)})})){let a=I.join(Le,"postmaster.pid");S.existsSync(a)&&S.unlinkSync(a),await Promise.race([i.start(),new Promise((l,c)=>setTimeout(()=>c(new Error("PostgreSQL did not start within 60 seconds")),6e4))])}try{await i.createDatabase(kl)}catch{}return i}function wp(t,e,r){return r!=="win32"?new Promise((i,o)=>{let s=Fl("unzip",["-o",t,"-d",e],{stdio:["ignore","pipe","pipe"]});s.on("close",a=>{a===0||a===1?i():o(new Error(`unzip exited with code ${a}`))}),s.on("error",()=>{Ci()(t,{dir:e}).then(i,o)})}):Ci()(t,{dir:e})}async function vp(t){let e=I.join(W,"bin");S.existsSync(e)||S.mkdirSync(e,{recursive:!0});let r=Oi.platform(),n=Oi.arch();r==="darwin"&&(n="x64");let i="";r==="win32"?i="win":r==="darwin"?i="mac":i="linux";let o=`api-${i}-${n}.zip`,s=r==="win32"?".exe":"",a=I.join(e,`XFramework.Api${s}`);if(S.existsSync(a))return a;t.start(`Downloading xFramework Core for ${i} ${n}...`);let l="latest";try{let f=I.join(__dirname,"package.json"),h=I.join(__dirname,"..","package.json");S.existsSync(f)?l="v"+JSON.parse(S.readFileSync(f,"utf8")).version:S.existsSync(h)&&(l="v"+JSON.parse(S.readFileSync(h,"utf8")).version)}catch{}let c=`https://xframework-builds.s3.us-west-2.amazonaws.com/releases/${l}/${o}`,u=I.join(e,o);await new Promise((f,h)=>{Ri.get(c,g=>{g.statusCode>=300&&g.statusCode<400&&g.headers.location?Ri.get(g.headers.location,y).on("error",d=>{S.unlink(u,()=>{}),h(d)}):g.statusCode!==200?h(new Error(`HTTP ${g.statusCode} - ${g.statusMessage}
65
- URL: ${c}
66
- Ensure you have uploaded the build for this version.`)):y(g);function y(d){let m=S.createWriteStream(u),_=0,v=parseInt(d.headers["content-length"],10)||0;d.on("data",T=>{if(_+=T.length,v>0){let U=Math.round(_/v*100);t.text=`Downloading xFramework Core... ${U}%`}}),d.pipe(m),m.on("finish",()=>{m.close(()=>{v>0&&_<v?(S.unlink(u,()=>{}),h(new Error(`Download incomplete: received ${_} of ${v} bytes. Check your connection and try again.`))):f()})}),m.on("error",T=>{S.unlink(u,()=>{}),h(T)})}}).on("error",g=>{S.unlink(u,()=>{}),h(g)})}),t.text="Extracting core files...",await wp(u,e,r),S.unlinkSync(u);try{Ai()(e)}catch{}return r!=="win32"&&S.chmodSync(a,493),a}function Ep(t,e,r,n,i){n.text="Starting portal...";let o=pp(t,e),s=t.database?.provider||"postgresql",a=t.server?.port||7125,l=S.createWriteStream(I.join(Nr,"api.log"),{flags:"a"}),c=I.dirname(i),u=Fl(i,[],{env:Object.assign(Object.fromEntries(Object.entries(process.env).filter(([f])=>!f.toUpperCase().startsWith("APPSETUP__"))),{DOTNET_ROLL_FORWARD:"Major",ASPNETCORE_ENVIRONMENT:"Production",ASPNETCORE_URLS:`http://127.0.0.1:${a}`,ConnectionStrings__DefaultConnection:o,ConnectionStrings__ReportingConnection:o,ConnectionStrings__ReadOnlyConnection:o,CA_AUTO_MIGRATE:"true",AppSetup__AutoMigrate:"true",AppSetup__AppInstallRequired:"false",AppSetup__SeedDemoData:t.seedDemoData===!0?"true":"false",AppSetup__Username:"support@contentactive.com",AppSetup__Password:"Sa1234TT!",AppSetup__Role:"System Admin",CA_JWT_SECRET:e.jwtSecret,CA_COMPANY_NAME:t.app?.companyName||"xFramework",CA_PRIMARY_COLOR:t.app?.primaryColor||"#FF5733",CA_UI_PATH:Nl,CA_LICENSE_TYPE:r.type,CA_LICENSE_COMPANY:r.company||"",CA_LICENSE_EMAIL:r.email||"",CA_LICENSE_EXPIRES:r.expiresAt?r.expiresAt.toISOString():"",CA_LICENSE_VALID:r.isLicensed?"true":"false",CA_LICENSE_DOMAINS:Array.isArray(r.domains)?r.domains.join(","):"",License__Enabled:"true",CA_DB_PROVIDER:s,CA_LICENSE_TOKEN:r.isLicensed?(()=>{try{return S.readFileSync(I.join(W,"license.key"),"utf8").trim()}catch{return""}})():"",CA_LICENSE_SERVER:Ct}),cwd:c});return u.stdout.pipe(l),u.stderr.pipe(l),u.on("error",f=>{n.fail(E.red("Failed to start portal: "+f.message)),process.exit(1)}),S.writeFileSync(gp,String(u.pid),"utf8"),u}function Sp(t,e=3e4){return new Promise((r,n)=>{let i=require("http"),o=Date.now(),s=()=>{i.get(`http://127.0.0.1:${t}/health`,a=>{a.statusCode<500?r():setTimeout(s,500)}).on("error",()=>{Date.now()-o>e?n(new Error("Portal did not start in time")):setTimeout(s,500)})};s()})}Ml.exports=async function(e){let r=e.port||"7125";console.log(""),console.log(E.bold.white(" xFramework")),console.log(E.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));let n=cp({text:"Initializing...",color:"cyan"}).start();try{mp(),yp();let i=!S.existsSync(tt),o=bp(r),s=_p();o.database||(o.database={provider:"postgresql",embedded:!0},S.writeFileSync(tt,JSON.stringify(o,null,2),"utf8"));let a=fp();if(n.succeed(E.green("Ready")+E.gray(" \u2014 data directory initialized")),a.isLicensed){n.start("Verifying license...");let d=S.readFileSync(I.join(W,"license.key"),"utf8").trim(),m=await Il(d);m===null?n.warn(E.yellow("License server unreachable \u2014 running offline")):m.valid?n.succeed(E.green("License")+E.gray(` \u2014 ${a.type} \xB7 ${a.company}`)):(n.fail(E.red(`License ${m.reason||"invalid"} \u2014 contact support@contentactive.com`)),a={valid:!1,type:m.reason==="revoked"?"revoked":m.reason==="domain_mismatch"?"domain_mismatch":"expired",company:a.company,email:a.email,expiresAt:a.expiresAt,daysRemaining:0,features:[],isLicensed:!1})}if(Tl(a,o),o.database?.embedded!==!1&&o.database?.provider!=="sqlserver")n.start("Starting database..."),await xp(n,s.pgPassword),n.succeed(E.green("Database")+E.gray(` \u2014 PostgreSQL running on port ${qr}`));else{let d=o.database?.provider==="sqlserver"?"SQL Server":"PostgreSQL";n.succeed(E.green("Database")+E.gray(` \u2014 using external ${d} at ${o.database?.host}`))}let c;try{c=await vp(n)}catch(d){n.fail(E.red("Failed to get core binaries: ")+d.message),process.exit(1)}if(o.seedDemoData===void 0||o.seedDemoData===null){n.stop(),console.log("");let d=await dp(E.cyan(" ? ")+E.bold("Seed demo data?")+E.gray(" Loads sample users, CRM records & opportunities. ")+E.white("[y/N] "));o.seedDemoData=d==="y"||d==="yes",S.writeFileSync(tt,JSON.stringify(o,null,2),"utf8"),console.log(""),n.start("Starting portal...")}n.start("Starting portal...");let u=Ep(o,s,a,n,c);if(await Sp(o.server?.port||7125,3e5),n.succeed(E.green("Portal")+E.gray(` \u2014 running on http://localhost:${o.server?.port||7125}`)),Ct){let d=a.isLicensed?(()=>{try{return S.readFileSync(I.join(W,"license.key"),"utf8").trim()}catch{return""}})():"",m=Array.isArray(a.domains)&&a.domains.length>0?a.domains[0]:null;Fi.request({hostname:new URL(Ct).hostname,port:new URL(Ct).port||80,path:"/api/licenses/events",method:"POST",headers:{"Content-Type":"application/json"}},()=>{}).on("error",()=>{}).end(JSON.stringify({token:d||null,domain:m,eventType:"app_started",reason:a.isLicensed?null:a.type}))}let f=await hp(o.server?.port||7125),h=f.isInstalled?`http://localhost:${o.server?.port||7125}`:`http://localhost:${o.server?.port||7125}/setup`;console.log(""),console.log(E.bold.green(" \u2713 xFramework is running!")),console.log(""),console.log(E.white(" URL: ")+E.cyan(`http://localhost:${o.server?.port||7125}`)),f&&!f.isInstalled&&(console.log(E.white(" Setup: ")+E.cyan(`http://localhost:${o.server?.port||7125}/setup`)),console.log(E.gray(" Complete the setup wizard to create your admin account."))),console.log(E.white(" Data: ")+E.gray(W));let g=o.database?.provider==="sqlserver"?"SQL Server":o.database?.embedded!==!1?"PostgreSQL (embedded)":`PostgreSQL (${o.database?.host})`;if(console.log(E.white(" Database: ")+E.gray(g)),a.isLicensed){let d=a.expiresAt?E.gray(` \u2014 expires ${a.expiresAt.toDateString()} (${a.daysRemaining}d)`):"";console.log(E.white(" License: ")+E.green(`${a.type} \u2014 ${a.company}`)+d)}else a.type==="revoked"?console.log(E.white(" License: ")+E.red("Revoked \u2014 contact support@contentactive.com")):a.type==="domain_mismatch"?console.log(E.white(" License: ")+E.red("Domain mismatch \u2014 this key is not licensed for this domain")):a.type==="expired"?console.log(E.white(" License: ")+E.red("Expired \u2014 run: xFramework-cli license <key>")):console.log(E.white(" License: ")+E.yellow("Community Edition \u2014 run: xFramework-cli license <key>"));console.log(""),console.log(E.gray(" Press Ctrl+C to stop")),console.log(""),await up(h);let y=30*60*1e3;if(a.isLicensed){let d=setInterval(async()=>{try{let m=S.readFileSync(I.join(W,"license.key"),"utf8").trim(),_=await Il(m);if(_===null)return;if(!_.valid){clearInterval(d);let v={...a,isLicensed:!1,type:_.reason==="revoked"?"revoked":"expired"};Tl(v,o),console.log(""),console.log(E.bold.red(` \u26A0 License ${_.reason||"invalid"}.`)),console.log(E.gray(" Banner updated in the portal. Contact support@contentactive.com.")),console.log("")}}catch{}},y);process.on("exit",()=>clearInterval(d))}process.on("SIGINT",async()=>{console.log(""),n.start("Stopping portal..."),u.kill(),n.succeed("Portal stopped"),process.exit(0)}),u.on("exit",d=>{d!==0&&d!==null&&console.log(E.red(`
67
- Portal exited with code ${d}. Check logs: ${I.join(Nr,"api.log")}`)),process.exit(d||0)})}catch(i){n.fail(E.red("Startup failed: ")+(i?.message||String(i))),console.log(E.gray(`
68
- Check logs: ${I.join(Nr,"api.log")}`)),process.exit(1)}}});var jl=p((jg,Bl)=>{"use strict";var Br=require("fs"),ql=require("path"),Cp=require("os"),Li=X(),Ap=ql.join(Cp.homedir(),".xFramework","instances","default"),jr=ql.join(Ap,".pid");Bl.exports=function(){if(!Br.existsSync(jr)){console.log(Li.yellow(" Portal is not running."));return}let e=parseInt(Br.readFileSync(jr,"utf8").trim());try{process.kill(e,"SIGTERM"),Br.unlinkSync(jr),console.log(Li.green(" \u2713 Portal stopped."))}catch{Br.unlinkSync(jr),console.log(Li.yellow(" Portal was not running."))}}});var Hl=p(($g,Wl)=>{"use strict";var $r=require("fs"),ki=require("path"),Op=require("os"),Ip=require("http"),rt=X(),Vl=ki.join(Op.homedir(),".xFramework","instances","default"),$l=ki.join(Vl,".pid"),Ul=ki.join(Vl,"config.json");Wl.exports=function(){let e=$r.existsSync($l),n=($r.existsSync(Ul)?JSON.parse($r.readFileSync(Ul,"utf8")):{}).server?.port||7125;if(!e){console.log(rt.yellow(" \u25CF Portal is stopped"));return}let i=parseInt($r.readFileSync($l,"utf8").trim());Ip.get(`http://localhost:${n}/health`,o=>{o.statusCode<500?(console.log(rt.green(" \u25CF Portal is running")),console.log(rt.gray(` URL: http://localhost:${n}`)),console.log(rt.gray(` PID: ${i}`))):console.log(rt.yellow(" \u25CF Portal is starting..."))}).on("error",()=>{console.log(rt.yellow(" \u25CF Portal process exists but not responding yet"))})}});var Kl=p((Ug,zl)=>{"use strict";var Gl=require("fs"),Ni=require("path"),Rp=require("os"),{execSync:Tp}=require("child_process"),Ur=X(),Fp=Ni.join(Rp.homedir(),".xFramework","instances","default"),Di=Ni.join(Fp,"data","backups"),Pp=54329,Lp="contentactive",kp="contentactive";zl.exports=function(){Gl.existsSync(Di)||Gl.mkdirSync(Di,{recursive:!0});let e=new Date().toISOString().replace(/[:.]/g,"-"),r=Ni.join(Di,`backup-${e}.sql`);console.log(Ur.cyan(" Creating backup..."));try{Tp(`pg_dump -h localhost -p ${Pp} -U ${Lp} -d ${kp} -f "${r}"`,{env:{...process.env,PGPASSWORD:"contentactive_local"}}),console.log(Ur.green(` \u2713 Backup saved: ${r}`))}catch(n){console.log(Ur.red(" Backup failed: ")+n.message),console.log(Ur.gray(" Make sure the portal is running first."))}}});var Xl=p((Vg,Jl)=>{"use strict";var Yl=require("fs"),qi=require("path"),Dp=require("os"),{execSync:Np}=require("child_process"),At=X(),Mp=qi.join(Dp.homedir(),".xFramework","instances","default"),Mi=qi.join(Mp,"data","backups"),qp=54329,Bp="contentactive",jp="contentactive";Jl.exports=function(){if(!Yl.existsSync(Mi)){console.log(At.yellow(" No backups found."));return}let e=Yl.readdirSync(Mi).filter(n=>n.endsWith(".sql")).sort().reverse();if(e.length===0){console.log(At.yellow(" No backups found."));return}let r=qi.join(Mi,e[0]);console.log(At.cyan(` Restoring from: ${e[0]}`));try{Np(`psql -h localhost -p ${qp} -U ${Bp} -d ${jp} -f "${r}"`,{env:{...process.env,PGPASSWORD:"contentactive_local"}}),console.log(At.green(" \u2713 Restore complete."))}catch(n){console.log(At.red(" Restore failed: ")+n.message)}}});var tc=p((Wg,ec)=>{"use strict";var w=X(),{readLicense:$p,saveLicense:Up,removeLicense:Vp}=bt();function Ql(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}function Zl(){let t=$p();if(console.log(""),console.log(w.bold.white(" xFramework \u2014 License Status")),console.log(w.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log(""),t.type==="community")console.log(w.white(" Status: ")+w.yellow("Community Edition (Unlicensed)")),console.log(""),console.log(w.gray(" To activate a license:")),console.log(w.gray(" xFramework-cli license <your-key>"));else if(t.type==="expired")console.log(w.white(" Status: ")+w.red("Expired")),console.log(w.white(" Company: ")+w.cyan(t.company||"\u2014")),console.log(w.white(" Email: ")+w.cyan(t.email||"\u2014")),console.log(w.white(" Expired: ")+w.red(t.expiresAt.toDateString())),console.log(""),console.log(w.gray(" Renew at contentactive.com/renew"));else if(t.type==="invalid")console.log(w.white(" Status: ")+w.red("Invalid License Key")),console.log(w.red(" Error: ")+w.white(t.error||"Unknown error")),console.log(""),console.log(w.gray(" The license file may be corrupted. Re-activate with your key:")),console.log(w.gray(" xFramework-cli license <your-key>"));else if(console.log(w.white(" Status: ")+w.green("Licensed \u2713")),console.log(w.white(" Type: ")+w.cyan(Ql(t.type))),console.log(w.white(" Company: ")+w.cyan(t.company||"\u2014")),console.log(w.white(" Email: ")+w.cyan(t.email||"\u2014")),t.expiresAt){let e=t.expiresAt.toDateString(),r=t.daysRemaining<30?w.yellow:w.cyan;console.log(w.white(" Expires: ")+r(`${e} (${t.daysRemaining} days remaining)`))}else console.log(w.white(" Expires: ")+w.cyan("Never"));console.log("")}function Wp(t){console.log(""),console.log(w.bold.white(" xFramework \u2014 License Activation")),console.log(w.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");try{let e=Up(t),r=e.exp?new Date(e.exp*1e3):null,n=r?Math.ceil((r-new Date)/(1e3*60*60*24)):null;console.log(w.bold.green(" \u2713 License activated successfully!")),console.log(""),console.log(w.white(" Company: ")+w.cyan(e.company||"\u2014")),console.log(w.white(" Email: ")+w.cyan(e.sub||"\u2014")),console.log(w.white(" Type: ")+w.cyan(Ql(e.type||"professional"))),console.log(r?w.white(" Expires: ")+w.cyan(`${r.toDateString()} (${n} days)`):w.white(" Expires: ")+w.cyan("Never")),console.log(""),console.log(w.gray(" Restart the portal to apply: xFramework-cli start"))}catch(e){console.log(w.bold.red(" \u2717 Activation failed")),console.log(w.white(" Reason: ")+w.red(e.message)),console.log(""),console.log(w.gray(" Please check your license key and try again.")),console.log(w.gray(" Contact support@contentactive.com if the issue persists."))}console.log("")}function Hp(){console.log("");let t=Vp();console.log(t?w.green(" \u2713 License removed. Running in Community Edition."):w.gray(" No active license found.")),console.log("")}ec.exports=function(e,r){if(r&&r.status){Zl();return}if(r&&r.remove){Hp();return}if(e){Wp(e);return}Zl()}});var ji=p((Gg,sc)=>{"use strict";var te=require("path"),$=require("fs"),Hg=require("os"),{spawn:oc}=require("child_process"),Gp=require("readline"),A=X(),zp=fr(),Kp=Ai(),Yp="contentactivedev",Jp="xframework-api",Xp="xframework",rc=process.env.XFRAMEWORK_BB_TOKEN_API||"ATCTT3xFfGN02smBNDdN8Z2c8JRMm0ubFdojS81iBP16bNzcuVkShFVaWOSPZIbq7nSZMIg1HgDhx1R_JHHsjnei5VqhUbJ2wH5ZqMUUWpWAhfzjDXG9ozUJiprMTYkHGG4qRXab_qvvuTB_U7SPlFZ2UhPcW8aA_GiGKNwa7sr-f1gKsTREXzw=A8A98735",nc=process.env.XFRAMEWORK_BB_TOKEN_UI||"ATCTT3xFfGN0EyhqJiYrlXpqtWMKWLAE27DqqmlyyfzOE6mne2s2tMmrNfa3kz-mh69o_cuVzx6mbjR8fFv5dO0xl_ml_snlhXJTNx_icCCdZWcwCmuuSVPam6VOsMilZgVaiG4WeYhKiv_ZrcbBolB2GXeLKWMHMZ6QyzlJz7v9PmJoUkgrO6w=4A159CCB";function Zp(t,e){return new Promise(r=>t.question(e,n=>r(n.trim())))}function Bi(t,e){$.mkdirSync(te.dirname(t),{recursive:!0}),$.writeFileSync(t,e,"utf8")}function Qp(t,e,r){return new Promise((n,i)=>{let o=oc(t,e,{...r,stdio:["ignore","pipe","pipe"]});o.on("close",n),o.on("error",i)})}async function ic(t,e,r,n,i,o,s=[]){let a=`https://x-token-auth:${encodeURIComponent(r)}@bitbucket.org/${Yp}/${t}.git`,l=s.length>0,c=async g=>(o.text=`Downloading ${i} (${g})...`,$.existsSync(n)&&$.rmSync(n,{recursive:!0,force:!0}),new Promise((y,d)=>{let m=oc("git",["clone","--depth","1","--branch",g,"--single-branch",a,n],{stdio:["ignore","pipe","pipe"]}),_="";m.stderr.on("data",v=>{_+=v.toString()}),m.on("close",v=>{if(v!==0)return _.includes("couldn't find remote ref")||_.includes("Remote branch")||_.includes("not found in upstream")?d(new Error(`TAG_NOT_FOUND:${g}`)):_.includes("Authentication failed")||_.includes("could not read Username")?d(new Error("AUTH_FAILED: Git authentication failed \u2014 check the Bitbucket token.")):d(new Error(`git clone failed: ${_.trim().split(`
69
- `).pop()}`));for(let T of s)try{$.unlinkSync(te.join(n,T))}catch{}y()}),m.on("error",v=>d(new Error(v.code==="ENOENT"?"git not found \u2014 install Git and try again.":v.message)))})),u=[e];e.startsWith("v")?u.push(e.slice(1)):e!=="develop"&&u.push(`v${e}`),u.push("develop");let f=!1;for(let g of u)try{await c(g),f=!0;break}catch(y){if(!y.message.startsWith("TAG_NOT_FOUND"))throw y}if(!f)throw new Error(`Could not find a valid tag or branch for ${i}.`);let h=te.join(n,".git");$.existsSync(h)&&$.rmSync(h,{recursive:!0,force:!0})}function e0(t){try{let e=$.readdirSync(t);if(e.some(r=>r.endsWith(".csproj")))return t;for(let r of e){let n=te.join(t,r);try{if($.statSync(n).isDirectory()&&$.readdirSync(n).some(i=>i.endsWith(".csproj")))return n}catch{}}}catch{}return t}function t0(){try{return on().version}catch{return null}}function r0(t,e){return JSON.stringify({name:t,version:"1.0.0",xframeworkVersion:e||"latest",createdAt:new Date().toISOString().split("T")[0]},null,2)}function n0(){return JSON.stringify({AppSetup:{AppInstallRequired:!0,AutoMigrate:!1},ConnectionStrings:{DefaultConnection:""}},null,2)}sc.exports=async function(e,r){console.log(""),console.log(A.bold.white(" xFramework")+A.gray(" \u2014 Developer Setup")),console.log(A.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");let n=Gp.createInterface({input:process.stdin,output:process.stdout});e||(e=await Zp(n,A.white(" Project name: "))),e=(e||"").replace(/[^a-zA-Z0-9._-]/g,"-").replace(/^-+|-+$/g,""),e||(n.close(),console.log(A.red(" Invalid project name.")),process.exit(1)),n.close();let i=te.resolve(process.cwd(),e);$.existsSync(i)&&(console.log(A.red(`
70
- Directory "${e}" already exists.`)),process.exit(1)),$.mkdirSync(i,{recursive:!0});let o=t0(),s=r.version||(o?`v${o}`:"latest"),a=zp({text:"Preparing...",color:"cyan"}).start(),l=te.join(i,"api"),c=te.join(i,"ui");(rc==="PASTE_API_REPO_TOKEN"||nc==="PASTE_UI_REPO_TOKEN")&&(a.fail(A.red("Bitbucket API tokens not configured.")),console.log(""),console.log(A.yellow(" Set tokens via environment variables:")),console.log(A.cyan(" set XFRAMEWORK_BB_TOKEN_API=<xframework-api repo token>")),console.log(A.cyan(" set XFRAMEWORK_BB_TOKEN_UI=<xframework repo token>")),console.log(A.gray(" Contact support@contentactive.com to get access.")),$.rmdirSync(i),process.exit(1));let u=["appsettings.Local.json","appsettings.Development.json","appsettings.Production.json","google-services.json"],f=[".env",".env.local",".env.development",".env.development.local",".env.production",".env.production.local",".env.stage",".env.staging",".env.test",".env.test.local"];try{await ic(Jp,s,rc,l,"API source",a,u),a.succeed(A.green("API")+A.gray(` \u2014 downloaded (${s})`))}catch(d){a.fail(A.red("Failed to download API source: ")+d.message),$.rmSync(i,{recursive:!0,force:!0}),process.exit(1)}try{a.start(`Downloading UI source (${s})...`),await ic(Xp,s,nc,c,"UI source",a,f),a.succeed(A.green("UI")+A.gray(` \u2014 downloaded (${s})`))}catch(d){a.fail(A.red("Failed to download UI source: ")+d.message),$.rmSync(i,{recursive:!0,force:!0}),process.exit(1)}let h=te.join(c,".env.embedded");if($.existsSync(h)){let d=$.readFileSync(h,"utf8").replace(/^VITE_APP_BASE=.*$/m,'VITE_APP_BASE=""');Bi(te.join(c,".env"),d)}a.start("Writing API configuration template...");let{replaced:g}=Kp(l);a.succeed(A.green("Configuration")+A.gray(" \u2014 template written"));let y=e0(l);if(Bi(te.join(i,"xframework.json"),r0(e,s)),Bi(te.join(y,"appsettings.Local.json.example"),n0()),!r.noInstall&&$.existsSync(y)){a.start("Restoring .NET packages...");try{await Qp("dotnet",["restore",y],{cwd:y})===0?a.succeed(A.green(".NET packages")+A.gray(" \u2014 restored")):a.stop()}catch{a.stop()}}console.log(""),console.log(A.bold.green(" \u2713 Project created!")),console.log(""),console.log(A.white(" Project: ")+A.cyan(e+"/")),console.log(A.white(" Version: ")+A.gray(s)),console.log(""),console.log(A.bold.white(" Next steps:")),console.log(""),console.log(A.white(" 1.")+A.gray(" Start the portal:")),console.log(A.cyan(` cd ${e}`)),console.log(A.cyan(" xFramework-cli run")),console.log(""),console.log(A.white(" 2.")+A.gray(" Complete setup at:")),console.log(A.cyan(" http://localhost:5000/setup")),console.log(A.gray(" \u2014 configure your database and create your admin account")),console.log(""),console.log(A.white(" Optional \u2014 activate a developer license:")),console.log(A.cyan(" xFramework-cli license <your-key>")),console.log("")}});var pc=p((zg,hc)=>{"use strict";var k=require("path"),M=require("fs"),fc=require("os"),{spawn:$i}=require("child_process"),b=X(),i0=fr(),o0=ui(),dc=require("http"),{readLicense:s0}=bt(),a0=5e3,Vr=5173;function l0(){return new Promise(t=>{let e=$i("dotnet",["--version"],{stdio:"pipe",shell:fc.platform()==="win32"});e.on("error",()=>t(!1)),e.on("close",r=>t(r===0))})}function ac(t,e=12e4){return new Promise((r,n)=>{let i=Date.now(),o=()=>{dc.get(`http://127.0.0.1:${t}/health`,a=>{a.statusCode<500?r():s()}).on("error",()=>{Date.now()-i>e?n(new Error(`API did not start within ${e/1e3}s`)):s()})},s=()=>setTimeout(o,500);o()})}function c0(t){return new Promise(e=>{dc.get(`http://127.0.0.1:${t}/api/v1.0/setup/status`,r=>{let n="";r.on("data",i=>{n+=i}),r.on("end",()=>{try{e(JSON.parse(n))}catch{e({isInstalled:!0})}})}).on("error",()=>e({isInstalled:!0}))})}function u0(t){let e=t;for(let r=0;r<4;r++){if(M.existsSync(k.join(e,"xframework.json")))return e;let n=k.dirname(e);if(n===e)break;e=n}return null}function f0(t){let e=k.join(t,"license.key");if(M.existsSync(e))try{let{verifyLicenseFile:n}=bt();if(typeof n=="function")return n(e)}catch{}let r=s0();return{...r,type:r.isLicensed?r.type:"developer",isLicensed:!0}}function Wr(t,e,r,n=!1){let i=k.join(t,"ui","public");if(!M.existsSync(i))return;let o=e.expiresAt?e.expiresAt.toISOString():"",s=`// Auto-generated by xFramework-cli run \u2014 do not edit manually
64
+ `;v.writeFileSync(r,a,"utf8")}function Rp(t,e){if(!v.existsSync(it))return;let r=A.join(it,"config.js"),n=e?.customerPortal?.integrations||{},i=e.server?.port||7125,o=t||{type:"community",company:"",isLicensed:!1},s=o.expiresAt?o.expiresAt.toISOString():"",a=[];if(o.isLicensed)try{let c=v.readFileSync(A.join(G,"license.key"),"utf8").trim();a=ji(c)}catch{}let l=`window.RUNTIME_CONFIG = {
65
+ VITE_APP_BASE: "Embedded",
66
+ VITE_API_BASE_URL: "http://localhost:${i}",
67
+ VITE_SETUP_MODE: "manager",
68
+ VITE_GOOGLE_CLIENTID: "${n.googleClientId||""}",
69
+ VITE_MICROSOFT_CLIENTID: "${n.microsoftClientId||""}",
70
+ VITE_MICROSOFT_LOGIN: "${n.microsoftLogin||""}",
71
+ VITE_GOOGLE_MAPS_API_KEY: "${n.googleMapsApiKey||""}",
72
+ VITE_APP_AUTH0_DOMAIN: "${n.auth0Domain||""}",
73
+ VITE_APP_AUTH0_CLIENT_ID: "${n.auth0ClientId||""}",
74
+ VITE_APP_CMS_URL: "${n.cmsUrl||""}",
75
+ VITE_LICENSE_TYPE: "${o.type}",
76
+ VITE_LICENSE_COMPANY: "${o.company||""}",
77
+ VITE_LICENSE_EXPIRES: "${s}",
78
+ VITE_LICENSE_DAYS_REMAINING: "${o.daysRemaining!=null?o.daysRemaining:""}",
79
+ VITE_LICENSE_DOMAINS: ${JSON.stringify(a)},
80
+ };
81
+ `;v.writeFileSync(r,l,"utf8")}function Pp(t){let e={".html":"text/html",".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".svg":"image/svg+xml",".ico":"image/x-icon",".json":"application/json",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".webp":"image/webp",".txt":"text/plain",".xml":"text/xml"},r=Vr.createServer((n,i)=>{let o=n.url.split("?")[0];o==="/"&&(o="/index.html");let s=A.join(it,o),a=A.extname(s).toLowerCase();if(v.existsSync(s)&&v.statSync(s).isFile())i.writeHead(200,{"Content-Type":e[a]||"application/octet-stream"}),v.createReadStream(s).pipe(i);else{let l=A.join(it,"index.html");i.writeHead(200,{"Content-Type":"text/html"}),v.createReadStream(l).pipe(i)}});return r.listen(t,"127.0.0.1"),r}async function Fp(t,e){t.text="Starting database...";let r=await import("embedded-postgres"),n=r.default||r,i=new n({databaseDir:ke,user:Wl,password:e,port:Ur,persistent:!0});if(v.existsSync(A.join(ke,"PG_VERSION"))||(v.existsSync(ke)&&(v.rmSync(ke,{recursive:!0,force:!0}),v.mkdirSync(ke,{recursive:!0})),await i.initialise()),!await new Promise(a=>{let c=require("net").createConnection({host:"127.0.0.1",port:Ur});c.setTimeout(3e3),c.once("connect",()=>{c.destroy(),a(!0)}),c.once("error",()=>{c.destroy(),a(!1)}),c.once("timeout",()=>{c.destroy(),a(!1)})})){let a=A.join(ke,"postmaster.pid");v.existsSync(a)&&v.unlinkSync(a),await Promise.race([i.start(),new Promise((l,c)=>setTimeout(()=>c(new Error("PostgreSQL did not start within 60 seconds")),6e4))])}try{await i.createDatabase(Hl)}catch{}return i}function Lp(t,e,r){return r!=="win32"?new Promise((i,o)=>{let s=Vl("unzip",["-o",t,"-d",e],{stdio:["ignore","pipe","pipe"]});s.on("close",a=>{a===0||a===1?i():o(new Error(`unzip exited with code ${a}`))}),s.on("error",()=>{Di()(t,{dir:e}).then(i,o)})}):Di()(t,{dir:e})}async function Dp(t,e){if(e){let p=A.resolve(e);if(!v.existsSync(p))throw new Error(`Local API binary not found at: ${p}
82
+ Run: dotnet publish -c Release -o <path>`);return t.succeed(w.green("API binary")+w.gray(` \u2014 using local build at ${p}`)),p}let r=A.join(G,"bin");v.existsSync(r)||v.mkdirSync(r,{recursive:!0});let n=Ni.platform(),i=Ni.arch();n==="darwin"&&(i="x64");let o="";n==="win32"?o="win":n==="darwin"?o="mac":o="linux";let s=`api-${o}-${i}.zip`,a=n==="win32"?".exe":"",l=A.join(r,`XFramework.Api${a}`);if(v.existsSync(l))return l;t.start(`Downloading xFramework Core for ${o} ${i}...`);let c="latest";try{let p=A.join(__dirname,"package.json"),d=A.join(__dirname,"..","package.json");v.existsSync(p)?c="v"+JSON.parse(v.readFileSync(p,"utf8")).version:v.existsSync(d)&&(c="v"+JSON.parse(v.readFileSync(d,"utf8")).version)}catch{}let u=`https://xframework-builds.s3.us-west-2.amazonaws.com/releases/${c}/${s}`,f=A.join(r,s);await new Promise((p,d)=>{qi.get(u,_=>{_.statusCode>=300&&_.statusCode<400&&_.headers.location?qi.get(_.headers.location,g).on("error",h=>{v.unlink(f,()=>{}),d(h)}):_.statusCode!==200?d(new Error(`HTTP ${_.statusCode} - ${_.statusMessage}
83
+ URL: ${u}
84
+ Ensure you have uploaded the build for this version.`)):g(_);function g(h){let y=v.createWriteStream(f),C=0,I=parseInt(h.headers["content-length"],10)||0;h.on("data",M=>{if(C+=M.length,I>0){let L=Math.round(C/I*100);t.text=`Downloading xFramework Core... ${L}%`}}),h.pipe(y),y.on("finish",()=>{y.close(()=>{I>0&&C<I?(v.unlink(f,()=>{}),d(new Error(`Download incomplete: received ${C} of ${I} bytes. Check your connection and try again.`))):p()})}),y.on("error",M=>{v.unlink(f,()=>{}),d(M)})}}).on("error",_=>{v.unlink(f,()=>{}),d(_)})}),t.text="Extracting core files...",await Lp(f,r,n),v.unlinkSync(f);try{ki()(r)}catch{}return n!=="win32"&&v.chmodSync(l,493),l}function kp(t,e,r,n,i){n.text="Starting portal...";let o=Sp(t,e),s=t.database?.provider||"postgresql",a=t.server?.port||7125,l=v.createWriteStream(A.join(jr,"api.log"),{flags:"a"}),c=A.dirname(i),u=Vl(i,[],{env:Object.assign(Object.fromEntries(Object.entries(process.env).filter(([f])=>!f.toUpperCase().startsWith("APPSETUP__"))),{DOTNET_ROLL_FORWARD:"Major",ASPNETCORE_ENVIRONMENT:"Production",ASPNETCORE_URLS:`http://127.0.0.1:${a}`,ConnectionStrings__DefaultConnection:o,ConnectionStrings__ReportingConnection:o,ConnectionStrings__ReadOnlyConnection:o,CA_AUTO_MIGRATE:"true",AppSetup__AutoMigrate:"true",AppSetup__AppInstallRequired:"false",AppSetup__SeedDemoData:t.seedDemoData===!0?"true":"false",AppSetup__Username:"support@contentactive.com",AppSetup__Password:"Sa1234TT!",AppSetup__Role:"System Admin",CA_JWT_SECRET:e.jwtSecret,CA_COMPANY_NAME:t.app?.companyName||"xFramework",CA_PRIMARY_COLOR:t.app?.primaryColor||"#FF5733",CA_UI_PATH:Gl,CA_LICENSE_TYPE:r.type,CA_LICENSE_COMPANY:r.company||"",CA_LICENSE_EMAIL:r.email||"",CA_LICENSE_EXPIRES:r.expiresAt?r.expiresAt.toISOString():"",CA_LICENSE_VALID:r.isLicensed?"true":"false",CA_LICENSE_DOMAINS:Array.isArray(r.domains)?r.domains.join(","):"",License__Enabled:"true",CA_DB_PROVIDER:s,CA_LICENSE_TOKEN:r.isLicensed?(()=>{try{return v.readFileSync(A.join(G,"license.key"),"utf8").trim()}catch{return""}})():"",CA_LICENSE_SERVER:Ot}),cwd:c});return u.stdout.pipe(l),u.stderr.pipe(l),u.on("error",f=>{n.fail(w.red("Failed to start portal: "+f.message)),process.exit(1)}),v.writeFileSync(Cp,String(u.pid),"utf8"),u}function Np(t,e=3e4){return new Promise((r,n)=>{let i=require("http"),o=Date.now(),s=()=>{i.get(`http://127.0.0.1:${t}/health`,a=>{a.statusCode<500?r():setTimeout(s,500)}).on("error",()=>{Date.now()-o>e?n(new Error("Portal did not start in time")):setTimeout(s,500)})};s()})}zl.exports=async function(e){let r=e.port||"7125";console.log(""),console.log(w.bold.white(" xFramework")),console.log(w.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));let n=bp({text:"Initializing...",color:"cyan"}).start();try{Ap(),Ip();let i=!v.existsSync(Ne),o=Tp(r),s=Op();o.database||(o.database={provider:"postgresql",embedded:!0},v.writeFileSync(Ne,JSON.stringify(o,null,2),"utf8"));let a=vp();if(n.succeed(w.green("Ready")+w.gray(" \u2014 data directory initialized")),a.isLicensed){n.start("Verifying license...");let h=v.readFileSync(A.join(G,"license.key"),"utf8").trim(),y=await jl(h);y===null?n.warn(w.yellow("License server unreachable \u2014 running offline")):y.valid?n.succeed(w.green("License")+w.gray(` \u2014 ${a.type} \xB7 ${a.company}`)):(n.fail(w.red(`License ${y.reason||"invalid"} \u2014 contact support@contentactive.com`)),a={valid:!1,type:y.reason==="revoked"?"revoked":y.reason==="domain_mismatch"?"domain_mismatch":"expired",company:a.company,email:a.email,expiresAt:a.expiresAt,daysRemaining:0,features:[],isLicensed:!1})}if(Ul(a,o),o.database?.embedded!==!1&&o.database?.provider!=="sqlserver")n.start("Starting database..."),await Fp(n,s.pgPassword),n.succeed(w.green("Database")+w.gray(` \u2014 PostgreSQL running on port ${Ur}`));else{let h=o.database?.provider==="sqlserver"?"SQL Server":"PostgreSQL";n.succeed(w.green("Database")+w.gray(` \u2014 using external ${h} at ${o.database?.host}`))}let c;try{c=await Dp(n,e.localApi)}catch(h){n.fail(w.red("Failed to get core binaries: ")+h.message),process.exit(1)}if(o.seedDemoData===void 0||o.seedDemoData===null){n.stop(),console.log("");let h=await Bl(w.cyan(" ? ")+w.bold("Seed demo data?")+w.gray(" Loads sample users, CRM records & opportunities. ")+w.white("[y/N] "));o.seedDemoData=h==="y"||h==="yes",v.writeFileSync(Ne,JSON.stringify(o,null,2),"utf8"),console.log(""),n.start("Starting portal...")}if(v.existsSync(it)&&(o.customerPortal?.enabled===null||o.customerPortal?.enabled===void 0)){n.stop(),console.log("");let h=await Bl(w.cyan(" ? ")+w.bold("Set up Customer Portal?")+w.gray(" Serves a separate customer-facing portal on a different port. ")+w.white("[y/N] "));o.customerPortal||(o.customerPortal={}),o.customerPortal.enabled=h==="y"||h==="yes",o.customerPortal.port=o.customerPortal.port||7126,o.customerPortal.integrations=o.customerPortal.integrations||{googleClientId:"",microsoftClientId:"",microsoftLogin:"",googleMapsApiKey:"",auth0Domain:"",auth0ClientId:"",cmsUrl:""},v.writeFileSync(Ne,JSON.stringify(o,null,2),"utf8"),console.log(""),n.start("Starting portal...")}n.start("Starting portal...");let u=kp(o,s,a,n,c);await Np(o.server?.port||7125,3e5),n.succeed(w.green("Portal")+w.gray(` \u2014 running on http://localhost:${o.server?.port||7125}`));let f=null;if(o.customerPortal?.enabled&&v.existsSync(it)){let h=o.customerPortal.port||7126;Rp(a,o),f=Pp(h),n.succeed(w.green("Customer Portal")+w.gray(` \u2014 running on http://localhost:${h}`))}if(Ot){let h=a.isLicensed?(()=>{try{return v.readFileSync(A.join(G,"license.key"),"utf8").trim()}catch{return""}})():"",y=Array.isArray(a.domains)&&a.domains.length>0?a.domains[0]:null;Vr.request({hostname:new URL(Ot).hostname,port:new URL(Ot).port||80,path:"/api/licenses/events",method:"POST",headers:{"Content-Type":"application/json"}},()=>{}).on("error",()=>{}).end(JSON.stringify({token:h||null,domain:y,eventType:"app_started",reason:a.isLicensed?null:a.type}))}let p=await Ep(o.server?.port||7125),d=p.isInstalled?`http://localhost:${o.server?.port||7125}`:`http://localhost:${o.server?.port||7125}/setup`;console.log(""),console.log(w.bold.green(" \u2713 xFramework is running!")),console.log(""),console.log(w.white(" Portal: ")+w.cyan(`http://localhost:${o.server?.port||7125}`)),f&&console.log(w.white(" Customer: ")+w.cyan(`http://localhost:${o.customerPortal.port||7126}`)),p&&!p.isInstalled&&(console.log(w.white(" Setup: ")+w.cyan(`http://localhost:${o.server?.port||7125}/setup`)),console.log(w.gray(" Complete the setup wizard to create your admin account."))),console.log(w.white(" Data: ")+w.gray(G));let _=o.database?.provider==="sqlserver"?"SQL Server":o.database?.embedded!==!1?"PostgreSQL (embedded)":`PostgreSQL (${o.database?.host})`;if(console.log(w.white(" Database: ")+w.gray(_)),a.isLicensed){let h=a.expiresAt?w.gray(` \u2014 expires ${a.expiresAt.toDateString()} (${a.daysRemaining}d)`):"";console.log(w.white(" License: ")+w.green(`${a.type} \u2014 ${a.company}`)+h)}else a.type==="revoked"?console.log(w.white(" License: ")+w.red("Revoked \u2014 contact support@contentactive.com")):a.type==="domain_mismatch"?console.log(w.white(" License: ")+w.red("Domain mismatch \u2014 this key is not licensed for this domain")):a.type==="expired"?console.log(w.white(" License: ")+w.red("Expired \u2014 run: xFramework-cli license <key>")):console.log(w.white(" License: ")+w.yellow("Community Edition \u2014 run: xFramework-cli license <key>"));console.log(""),console.log(w.gray(" Press Ctrl+C to stop")),console.log(""),await wp(d);let g=30*60*1e3;if(a.isLicensed){let h=setInterval(async()=>{try{let y=v.readFileSync(A.join(G,"license.key"),"utf8").trim(),C=await jl(y);if(C===null)return;if(!C.valid){clearInterval(h);let I={...a,isLicensed:!1,type:C.reason==="revoked"?"revoked":"expired"};Ul(I,o),console.log(""),console.log(w.bold.red(` \u26A0 License ${C.reason||"invalid"}.`)),console.log(w.gray(" Banner updated in the portal. Contact support@contentactive.com.")),console.log("")}}catch{}},g);process.on("exit",()=>clearInterval(h))}process.on("SIGINT",async()=>{if(console.log(""),n.start("Stopping portal..."),f)try{f.close()}catch{}u.kill(),n.succeed("Portal stopped"),process.exit(0)}),u.on("exit",h=>{if(f)try{f.close()}catch{}h!==0&&h!==null&&console.log(w.red(`
85
+ Portal exited with code ${h}. Check logs: ${A.join(jr,"api.log")}`)),process.exit(h||0)})}catch(i){n.fail(w.red("Startup failed: ")+(i?.message||String(i))),console.log(w.gray(`
86
+ Check logs: ${A.join(jr,"api.log")}`)),process.exit(1)}}});var Jl=m((tm,Yl)=>{"use strict";var Wr=require("fs"),Kl=require("path"),Mp=require("os"),Vi=Q(),qp=Kl.join(Mp.homedir(),".xFramework","instances","default"),Hr=Kl.join(qp,".pid");Yl.exports=function(){if(!Wr.existsSync(Hr)){console.log(Vi.yellow(" Portal is not running."));return}let e=parseInt(Wr.readFileSync(Hr,"utf8").trim());try{process.kill(e,"SIGTERM"),Wr.unlinkSync(Hr),console.log(Vi.green(" \u2713 Portal stopped."))}catch{Wr.unlinkSync(Hr),console.log(Vi.yellow(" Portal was not running."))}}});var tc=m((rm,ec)=>{"use strict";var Gr=require("fs"),Wi=require("path"),Bp=require("os"),jp=require("http"),ot=Q(),Ql=Wi.join(Bp.homedir(),".xFramework","instances","default"),Xl=Wi.join(Ql,".pid"),Zl=Wi.join(Ql,"config.json");ec.exports=function(){let e=Gr.existsSync(Xl),n=(Gr.existsSync(Zl)?JSON.parse(Gr.readFileSync(Zl,"utf8")):{}).server?.port||7125;if(!e){console.log(ot.yellow(" \u25CF Portal is stopped"));return}let i=parseInt(Gr.readFileSync(Xl,"utf8").trim());jp.get(`http://localhost:${n}/health`,o=>{o.statusCode<500?(console.log(ot.green(" \u25CF Portal is running")),console.log(ot.gray(` URL: http://localhost:${n}`)),console.log(ot.gray(` PID: ${i}`))):console.log(ot.yellow(" \u25CF Portal is starting..."))}).on("error",()=>{console.log(ot.yellow(" \u25CF Portal process exists but not responding yet"))})}});var ic=m((nm,nc)=>{"use strict";var rc=require("fs"),Gi=require("path"),$p=require("os"),{execSync:Up}=require("child_process"),zr=Q(),Vp=Gi.join($p.homedir(),".xFramework","instances","default"),Hi=Gi.join(Vp,"data","backups"),Wp=54329,Hp="contentactive",Gp="contentactive";nc.exports=function(){rc.existsSync(Hi)||rc.mkdirSync(Hi,{recursive:!0});let e=new Date().toISOString().replace(/[:.]/g,"-"),r=Gi.join(Hi,`backup-${e}.sql`);console.log(zr.cyan(" Creating backup..."));try{Up(`pg_dump -h localhost -p ${Wp} -U ${Hp} -d ${Gp} -f "${r}"`,{env:{...process.env,PGPASSWORD:"contentactive_local"}}),console.log(zr.green(` \u2713 Backup saved: ${r}`))}catch(n){console.log(zr.red(" Backup failed: ")+n.message),console.log(zr.gray(" Make sure the portal is running first."))}}});var ac=m((im,sc)=>{"use strict";var oc=require("fs"),Ki=require("path"),zp=require("os"),{execSync:Kp}=require("child_process"),Tt=Q(),Yp=Ki.join(zp.homedir(),".xFramework","instances","default"),zi=Ki.join(Yp,"data","backups"),Jp=54329,Xp="contentactive",Zp="contentactive";sc.exports=function(){if(!oc.existsSync(zi)){console.log(Tt.yellow(" No backups found."));return}let e=oc.readdirSync(zi).filter(n=>n.endsWith(".sql")).sort().reverse();if(e.length===0){console.log(Tt.yellow(" No backups found."));return}let r=Ki.join(zi,e[0]);console.log(Tt.cyan(` Restoring from: ${e[0]}`));try{Kp(`psql -h localhost -p ${Jp} -U ${Xp} -d ${Zp} -f "${r}"`,{env:{...process.env,PGPASSWORD:"contentactive_local"}}),console.log(Tt.green(" \u2713 Restore complete."))}catch(n){console.log(Tt.red(" Restore failed: ")+n.message)}}});var fc=m((om,uc)=>{"use strict";var E=Q(),{readLicense:Qp,saveLicense:e0,removeLicense:t0}=vt();function cc(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}function lc(){let t=Qp();if(console.log(""),console.log(E.bold.white(" xFramework \u2014 License Status")),console.log(E.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log(""),t.type==="community")console.log(E.white(" Status: ")+E.yellow("Community Edition (Unlicensed)")),console.log(""),console.log(E.gray(" To activate a license:")),console.log(E.gray(" xFramework-cli license <your-key>"));else if(t.type==="expired")console.log(E.white(" Status: ")+E.red("Expired")),console.log(E.white(" Company: ")+E.cyan(t.company||"\u2014")),console.log(E.white(" Email: ")+E.cyan(t.email||"\u2014")),console.log(E.white(" Expired: ")+E.red(t.expiresAt.toDateString())),console.log(""),console.log(E.gray(" Renew at contentactive.com/renew"));else if(t.type==="invalid")console.log(E.white(" Status: ")+E.red("Invalid License Key")),console.log(E.red(" Error: ")+E.white(t.error||"Unknown error")),console.log(""),console.log(E.gray(" The license file may be corrupted. Re-activate with your key:")),console.log(E.gray(" xFramework-cli license <your-key>"));else if(console.log(E.white(" Status: ")+E.green("Licensed \u2713")),console.log(E.white(" Type: ")+E.cyan(cc(t.type))),console.log(E.white(" Company: ")+E.cyan(t.company||"\u2014")),console.log(E.white(" Email: ")+E.cyan(t.email||"\u2014")),t.expiresAt){let e=t.expiresAt.toDateString(),r=t.daysRemaining<30?E.yellow:E.cyan;console.log(E.white(" Expires: ")+r(`${e} (${t.daysRemaining} days remaining)`))}else console.log(E.white(" Expires: ")+E.cyan("Never"));console.log("")}function r0(t){console.log(""),console.log(E.bold.white(" xFramework \u2014 License Activation")),console.log(E.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");try{let e=e0(t),r=e.exp?new Date(e.exp*1e3):null,n=r?Math.ceil((r-new Date)/(1e3*60*60*24)):null;console.log(E.bold.green(" \u2713 License activated successfully!")),console.log(""),console.log(E.white(" Company: ")+E.cyan(e.company||"\u2014")),console.log(E.white(" Email: ")+E.cyan(e.sub||"\u2014")),console.log(E.white(" Type: ")+E.cyan(cc(e.type||"professional"))),console.log(r?E.white(" Expires: ")+E.cyan(`${r.toDateString()} (${n} days)`):E.white(" Expires: ")+E.cyan("Never")),console.log(""),console.log(E.gray(" Restart the portal to apply: xFramework-cli start"))}catch(e){console.log(E.bold.red(" \u2717 Activation failed")),console.log(E.white(" Reason: ")+E.red(e.message)),console.log(""),console.log(E.gray(" Please check your license key and try again.")),console.log(E.gray(" Contact support@contentactive.com if the issue persists."))}console.log("")}function n0(){console.log("");let t=t0();console.log(t?E.green(" \u2713 License removed. Running in Community Edition."):E.gray(" No active license found.")),console.log("")}uc.exports=function(e,r){if(r&&r.status){lc();return}if(r&&r.remove){n0();return}if(e){r0(e);return}lc()}});var Ji=m((am,yc)=>{"use strict";var K=require("path"),B=require("fs"),sm=require("os"),{spawn:gc}=require("child_process"),mc=require("readline"),S=Q(),i0=gr(),o0=ki(),s0="contentactivedev",a0="xframework-api",l0="xframework",c0="xframework-customer",dc=process.env.XFRAMEWORK_BB_TOKEN_API||"ATCTT3xFfGN02smBNDdN8Z2c8JRMm0ubFdojS81iBP16bNzcuVkShFVaWOSPZIbq7nSZMIg1HgDhx1R_JHHsjnei5VqhUbJ2wH5ZqMUUWpWAhfzjDXG9ozUJiprMTYkHGG4qRXab_qvvuTB_U7SPlFZ2UhPcW8aA_GiGKNwa7sr-f1gKsTREXzw=A8A98735",hc=process.env.XFRAMEWORK_BB_TOKEN_UI||"ATCTT3xFfGN0EyhqJiYrlXpqtWMKWLAE27DqqmlyyfzOE6mne2s2tMmrNfa3kz-mh69o_cuVzx6mbjR8fFv5dO0xl_ml_snlhXJTNx_icCCdZWcwCmuuSVPam6VOsMilZgVaiG4WeYhKiv_ZrcbBolB2GXeLKWMHMZ6QyzlJz7v9PmJoUkgrO6w=4A159CCB",pc=process.env.XFRAMEWORK_BB_TOKEN_CP||"ATCTT3xFfGN0_1wcSaMQd96uCXWUQqJZoz_fUdzmMc5GKllSi4hXmEq2rPz7XIj8cEI1Ke5AtEmkUNKZqFBVMvneqFwpsPazacqHJtPX8BVOnnO7HHDPpVCFVsMgbr7htSVA2dy73NPQ6e2ztOqVLTiF1fSgAl4G_aNICzQSrhDdZkSDI2WkuTI=E7201F78";function u0(t,e){return new Promise(r=>t.question(e,n=>r(n.trim())))}function f0(t){return new Promise(e=>{let r=mc.createInterface({input:process.stdin,output:process.stdout});r.question(t,n=>{r.close(),e(n.trim().toLowerCase())})})}function Kr(t,e){B.mkdirSync(K.dirname(t),{recursive:!0}),B.writeFileSync(t,e,"utf8")}function d0(t,e,r){return new Promise((n,i)=>{let o=gc(t,e,{...r,stdio:["ignore","pipe","pipe"]});o.on("close",n),o.on("error",i)})}async function Yi(t,e,r,n,i,o,s=[]){let a=`https://x-token-auth:${encodeURIComponent(r)}@bitbucket.org/${s0}/${t}.git`,l=s.length>0,c=async d=>(o.text=`Downloading ${i} (${d})...`,B.existsSync(n)&&B.rmSync(n,{recursive:!0,force:!0}),new Promise((_,g)=>{let h=gc("git",["clone","--depth","1","--branch",d,"--single-branch",a,n],{stdio:["ignore","pipe","pipe"]}),y="";h.stderr.on("data",C=>{y+=C.toString()}),h.on("close",C=>{if(C!==0)return y.includes("couldn't find remote ref")||y.includes("Remote branch")||y.includes("not found in upstream")?g(new Error(`TAG_NOT_FOUND:${d}`)):y.includes("Authentication failed")||y.includes("could not read Username")?g(new Error("AUTH_FAILED: Git authentication failed \u2014 check the Bitbucket token.")):g(new Error(`git clone failed: ${y.trim().split(`
87
+ `).pop()}`));for(let I of s)try{B.unlinkSync(K.join(n,I))}catch{}_()}),h.on("error",C=>g(new Error(C.code==="ENOENT"?"git not found \u2014 install Git and try again.":C.message)))})),u=[e];e.startsWith("v")?u.push(e.slice(1)):e!=="develop"&&u.push(`v${e}`),u.push("develop");let f=!1;for(let d of u)try{await c(d),f=!0;break}catch(_){if(!_.message.startsWith("TAG_NOT_FOUND"))throw _}if(!f)throw new Error(`Could not find a valid tag or branch for ${i}.`);let p=K.join(n,".git");B.existsSync(p)&&B.rmSync(p,{recursive:!0,force:!0})}function h0(t){try{let e=B.readdirSync(t);if(e.some(r=>r.endsWith(".csproj")))return t;for(let r of e){let n=K.join(t,r);try{if(B.statSync(n).isDirectory()&&B.readdirSync(n).some(i=>i.endsWith(".csproj")))return n}catch{}}}catch{}return t}function p0(){try{return pn().version}catch{return null}}function g0(t,e){return JSON.stringify({name:t,version:"1.0.0",xframeworkVersion:e||"latest",createdAt:new Date().toISOString().split("T")[0]},null,2)}function m0(){return JSON.stringify({AppSetup:{AppInstallRequired:!0,AutoMigrate:!1},ConnectionStrings:{DefaultConnection:""}},null,2)}yc.exports=async function(e,r){console.log(""),console.log(S.bold.white(" xFramework")+S.gray(" \u2014 Developer Setup")),console.log(S.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500")),console.log("");let n=mc.createInterface({input:process.stdin,output:process.stdout});e||(e=await u0(n,S.white(" Project name: "))),e=(e||"").replace(/[^a-zA-Z0-9._-]/g,"-").replace(/^-+|-+$/g,""),e||(n.close(),console.log(S.red(" Invalid project name.")),process.exit(1)),n.close();let i=K.resolve(process.cwd(),e);B.existsSync(i)&&(console.log(S.red(`
88
+ Directory "${e}" already exists.`)),process.exit(1)),B.mkdirSync(i,{recursive:!0});let o=p0(),s=r.version||(o?`v${o}`:"latest"),a=i0({text:"Preparing...",color:"cyan"}).start(),l=K.join(i,"api"),c=K.join(i,"ui"),u=K.join(i,"customer-portal");(dc==="PASTE_API_REPO_TOKEN"||hc==="PASTE_UI_REPO_TOKEN")&&(a.fail(S.red("Bitbucket API tokens not configured.")),console.log(""),console.log(S.yellow(" Set tokens via environment variables:")),console.log(S.cyan(" set XFRAMEWORK_BB_TOKEN_API=<xframework-api repo token>")),console.log(S.cyan(" set XFRAMEWORK_BB_TOKEN_UI=<xframework repo token>")),console.log(S.gray(" Contact support@contentactive.com to get access.")),B.rmdirSync(i),process.exit(1));let f=pc!=="PASTE_CP_REPO_TOKEN",p=["appsettings.Local.json","appsettings.Development.json","appsettings.Production.json","google-services.json"],d=[".env",".env.local",".env.development",".env.development.local",".env.production",".env.production.local",".env.stage",".env.staging",".env.test",".env.test.local"];try{await Yi(a0,s,dc,l,"API source",a,p),a.succeed(S.green("API")+S.gray(` \u2014 downloaded (${s})`))}catch(y){a.fail(S.red("Failed to download API source: ")+y.message),B.rmSync(i,{recursive:!0,force:!0}),process.exit(1)}try{a.start(`Downloading UI source (${s})...`),await Yi(l0,s,hc,c,"UI source",a,d),a.succeed(S.green("UI")+S.gray(` \u2014 downloaded (${s})`))}catch(y){a.fail(S.red("Failed to download UI source: ")+y.message),B.rmSync(i,{recursive:!0,force:!0}),process.exit(1)}if(f){a.stop(),console.log("");let y=await f0(S.cyan(" ? ")+S.bold("Include Customer Portal?")+S.gray(" Clones the customer-facing portal into customer-portal/. ")+S.white("[y/N] ")),C=y==="y"||y==="yes";if(console.log(""),a.start("Continuing..."),C)try{a.start(`Downloading Customer Portal source (${s})...`),await Yi(c0,s,pc,u,"Customer Portal source",a,d),a.succeed(S.green("Customer Portal")+S.gray(` \u2014 downloaded (${s})`));let I=K.join(u,".env.embedded");if(B.existsSync(I)){let M=B.readFileSync(I,"utf8").replace(/^VITE_APP_BASE=.*$/m,'VITE_APP_BASE=""');Kr(K.join(u,".env"),M)}}catch(I){a.warn(S.yellow("Customer Portal")+S.gray(` \u2014 skipped (${I.message})`))}}let _=K.join(c,".env.embedded");if(B.existsSync(_)){let y=B.readFileSync(_,"utf8").replace(/^VITE_APP_BASE=.*$/m,'VITE_APP_BASE=""');Kr(K.join(c,".env"),y)}a.start("Writing API configuration template...");let{replaced:g}=o0(l);a.succeed(S.green("Configuration")+S.gray(" \u2014 template written"));let h=h0(l);if(Kr(K.join(i,"xframework.json"),g0(e,s)),Kr(K.join(h,"appsettings.Local.json.example"),m0()),!r.noInstall&&B.existsSync(h)){a.start("Restoring .NET packages...");try{await d0("dotnet",["restore",h],{cwd:h})===0?a.succeed(S.green(".NET packages")+S.gray(" \u2014 restored")):a.stop()}catch{a.stop()}}console.log(""),console.log(S.bold.green(" \u2713 Project created!")),console.log(""),console.log(S.white(" Project: ")+S.cyan(e+"/")),console.log(S.white(" Version: ")+S.gray(s)),B.existsSync(u)&&console.log(S.white(" Customer: ")+S.gray("customer-portal/ included")),console.log(""),console.log(S.bold.white(" Next steps:")),console.log(""),console.log(S.white(" 1.")+S.gray(" Start the portal:")),console.log(S.cyan(` cd ${e}`)),console.log(S.cyan(" xFramework-cli run")),console.log(""),console.log(S.white(" 2.")+S.gray(" Complete setup at:")),console.log(S.cyan(" http://localhost:5000/setup")),console.log(S.gray(" \u2014 configure your database and create your admin account")),console.log(""),console.log(S.white(" Optional \u2014 activate a developer license:")),console.log(S.cyan(" xFramework-cli license <your-key>")),console.log("")}});var Cc=m((lm,Sc)=>{"use strict";var R=require("path"),P=require("fs"),vc=require("os"),y0=require("readline"),{spawn:Zr}=require("child_process"),x=Q(),_0=gr(),x0=xi(),Ec=require("http"),{readLicense:b0}=vt();function w0(t){return new Promise(e=>{let r=y0.createInterface({input:process.stdin,output:process.stdout});r.question(t,n=>{r.close(),e(n.trim().toLowerCase())})})}var v0=5e3,Yr=5173,Jr=3e3;function E0(){return new Promise(t=>{let e=Zr("dotnet",["--version"],{stdio:"pipe",shell:vc.platform()==="win32"});e.on("error",()=>t(!1)),e.on("close",r=>t(r===0))})}function _c(t,e=12e4){return new Promise((r,n)=>{let i=Date.now(),o=()=>{Ec.get(`http://127.0.0.1:${t}/health`,a=>{a.statusCode<500?r():s()}).on("error",()=>{Date.now()-i>e?n(new Error(`API did not start within ${e/1e3}s`)):s()})},s=()=>setTimeout(o,500);o()})}function S0(t){return new Promise(e=>{Ec.get(`http://127.0.0.1:${t}/api/v1.0/setup/status`,r=>{let n="";r.on("data",i=>{n+=i}),r.on("end",()=>{try{e(JSON.parse(n))}catch{e({isInstalled:!0})}})}).on("error",()=>e({isInstalled:!0}))})}function C0(t){let e=t;for(let r=0;r<4;r++){if(P.existsSync(R.join(e,"xframework.json")))return e;let n=R.dirname(e);if(n===e)break;e=n}return null}function A0(t){let e=R.join(t,"license.key");if(P.existsSync(e))try{let{verifyLicenseFile:n}=vt();if(typeof n=="function")return n(e)}catch{}let r=b0();return{...r,type:r.isLicensed?r.type:"developer",isLicensed:!0}}function Xr(t,e,r,n=!1){let i=R.join(t,"ui","public");if(!P.existsSync(i))return;let o=e.expiresAt?e.expiresAt.toISOString():"",s=`// Auto-generated by xFramework-cli run \u2014 do not edit manually
71
89
  window.RUNTIME_CONFIG = {
72
90
  VITE_APP_BASE: "Developer",
73
91
  VITE_API_BASE_URL: "http://localhost:${r}",
@@ -85,7 +103,24 @@ window.RUNTIME_CONFIG = {
85
103
  VITE_APP_AUTH0_CLIENT_ID: "",
86
104
  VITE_API_RESTARTING: "${n?"true":"false"}",
87
105
  };
88
- `;M.writeFileSync(k.join(i,"config.js"),s,"utf8")}function lc(t,e){let r=k.join(t,"ui","public");if(!M.existsSync(r))return;let n=`<!DOCTYPE html>
106
+ `;P.writeFileSync(R.join(i,"config.js"),s,"utf8")}function I0(t,e,r){let n=R.join(t,"customer-portal","public");if(!P.existsSync(n))return;let i=e.expiresAt?e.expiresAt.toISOString():"",o=`// Auto-generated by xFramework-cli run \u2014 do not edit manually
107
+ window.RUNTIME_CONFIG = {
108
+ VITE_APP_BASE: "Developer",
109
+ VITE_API_BASE_URL: "http://localhost:${r}",
110
+ VITE_SETUP_MODE: "developer",
111
+ VITE_LICENSE_TYPE: "${e.type}",
112
+ VITE_LICENSE_COMPANY: "${e.company||""}",
113
+ VITE_LICENSE_EMAIL: "${e.email||""}",
114
+ VITE_LICENSE_EXPIRES: "${i}",
115
+ VITE_LICENSE_DAYS_REMAINING: "${e.daysRemaining!=null?e.daysRemaining:""}",
116
+ VITE_LICENSE_DOMAINS: ${JSON.stringify(e.domains||[])},
117
+ VITE_GOOGLE_CLIENTID: "",
118
+ VITE_MICROSOFT_CLIENTID: "",
119
+ VITE_MICROSOFT_LOGIN: "",
120
+ VITE_GOOGLE_MAPS_API_KEY: "",
121
+ VITE_APP_AUTH0_CLIENT_ID: "",
122
+ };
123
+ `;P.writeFileSync(R.join(n,"config.js"),o,"utf8")}function xc(t,e){let r=R.join(t,"ui","public");if(!P.existsSync(r))return;let n=`<!DOCTYPE html>
89
124
  <html lang="en">
90
125
  <head>
91
126
  <meta charset="UTF-8" />
@@ -146,11 +181,11 @@ window.RUNTIME_CONFIG = {
146
181
  }, 5000);
147
182
  </script>
148
183
  </body>
149
- </html>`;M.writeFileSync(k.join(r,"_restarting.html"),n,"utf8")}function cc(t){try{let e=k.join(t,"ui","public","_restarting.html");M.existsSync(e)&&M.unlinkSync(e)}catch{}}function uc(t){let e=Object.fromEntries(Object.entries(process.env).filter(([r,n])=>typeof n=="string"&&!r.includes("\0")&&!n.includes("\0")));return Object.assign(e,t)}function d0(t){try{let e=M.readdirSync(t);if(e.some(r=>r.endsWith(".csproj")))return t;for(let r of e){let n=k.join(t,r);try{if(M.statSync(n).isDirectory()&&M.readdirSync(n).some(i=>i.endsWith(".csproj")))return n}catch{}}}catch{}return t}function h0(t){try{let r=JSON.parse(M.readFileSync(k.join(t,"package.json"),"utf8")).scripts||{};for(let n of["dev","start","serve"])if(r[n])return n}catch{}return"dev"}hc.exports=async function(e){let r=parseInt(e.port||String(a0),10),n=fc.platform()==="win32";console.log(""),console.log(b.bold.white(" xFramework")+b.gray(" \u2014 Developer Mode")),console.log(b.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));let i=i0({text:"Checking environment...",color:"cyan"}).start(),o=u0(process.cwd());o||(i.fail(b.red("Not in an xFramework project directory.")),console.log(b.gray(`
150
- Run from a directory created with:`)),console.log(b.cyan(" xFramework-cli init <project-name>")),process.exit(1));let s=k.join(o,"api"),a=k.join(o,"ui"),l=M.existsSync(k.join(a,"package.json")),c=JSON.parse(M.readFileSync(k.join(o,"xframework.json"),"utf8"));M.existsSync(s)||(i.fail(b.red("api/ directory not found.")),process.exit(1)),await l0()||(i.fail(b.red(".NET 8 SDK not found.")),console.log(""),console.log(b.yellow(" Install the .NET 8 SDK:")),console.log(b.cyan(" https://dotnet.microsoft.com/download/dotnet/8.0")),process.exit(1)),i.succeed(b.green("Environment")+b.gray(" \u2014 .NET SDK ready"));let f=f0(o);f.isLicensed&&f.type!=="developer"?i.succeed(b.green("License")+b.gray(` \u2014 ${f.type} \xB7 ${f.company||""}`)):i.succeed(b.green("License")+b.gray(" \u2014 developer (localhost)")),Wr(o,f,r);let h=d0(s),g=k.join(h,"appsettings.Local.json");if(!M.existsSync(g)){let F=!1;try{F=JSON.parse(M.readFileSync(k.join(h,"appsettings.json"),"utf8"))?.AppSetup?.AppInstallRequired===!1}catch{}if(F){console.log(""),console.log(b.yellow(" \u26A0 appsettings.Local.json not found"));let D=[k.join(h,"appsettings.Local.json.example"),k.join(s,"appsettings.Local.json.example")].find(M.existsSync);D?(console.log(b.gray(" Copy it from the example and add your DB credentials:")),console.log(b.cyan(` copy "${k.relative(process.cwd(),D)}" "${k.relative(process.cwd(),g)}"`))):console.log(b.gray(` Create ${k.relative(o,g)} with your connection string.`)),console.log("")}}i.start("Starting API (dotnet run)...");let y=k.join(o,"api.log"),d=M.createWriteStream(y,{flags:"a"}),m=null,_=()=>{let F=null;try{let D=JSON.parse(M.readFileSync(g,"utf8"));D.CA_DB_PROVIDER&&(F=String(D.CA_DB_PROVIDER))}catch{}m=$i("dotnet",["run","--project",h,"--no-launch-profile","--urls",`http://localhost:${r}`],{cwd:h,stdio:["ignore","pipe","pipe"],shell:n,env:uc({ASPNETCORE_ENVIRONMENT:"Development",ASPNETCORE_URLS:`http://localhost:${r}`,CA_SETUP_MODE:"developer",CA_LICENSE_TYPE:f.type||"developer",CA_LICENSE_COMPANY:f.company||"",CA_LICENSE_EMAIL:f.email||"",CA_LICENSE_EXPIRES:f.expiresAt?f.expiresAt.toISOString():"",CA_LICENSE_VALID:f.isLicensed?"true":"false",CA_LICENSE_DOMAINS:Array.isArray(f.domains)?f.domains.join(","):"",...F?{CA_DB_PROVIDER:F}:{}})}),m.stdout.on("data",D=>{d.write(D);let ae=D.toString();ae.includes("Restoring packages")||ae.includes("Restored ")?i.text=b.gray("API \u2014 restoring NuGet packages..."):ae.includes("Build succeeded")?i.text=b.gray("API \u2014 build succeeded, launching..."):ae.includes("Now listening")&&(i.text=b.gray("API \u2014 online"))}),m.stderr.on("data",D=>{d.write(D)}),m.on("error",D=>{D.code==="ENOENT"?(i.fail(b.red(".NET runtime not found")),console.log(b.yellow(`
151
- Install the .NET 8 SDK:`)),console.log(b.cyan(" https://dotnet.microsoft.com/download/dotnet/8.0"))):i.fail(b.red("API failed to start: "+D.message)),process.exit(1)})};lc(o,r),_();let v=null;if(l&&!e.apiOnly){i.stop(),console.log(""),console.log(b.bold.white(" Installing UI packages..."));let F=require("child_process").spawnSync("npm",["install","--include=optional"],{cwd:a,shell:!0,stdio:"inherit"});console.log(""),F.status===0?console.log(b.green(" \u2714 UI packages")+b.gray(" \u2014 ready")):console.log(b.yellow(" \u26A0 npm install failed")+b.gray(" \u2014 UI may not start")),i.start(b.gray("API building in background..."));let D=h0(a);i.text=`Starting UI dev server (npm run ${D})...`;let ae=M.createWriteStream(k.join(o,"ui.log"),{flags:"a"});v=$i("npm",["run",D],{cwd:a,stdio:["ignore","pipe","pipe"],shell:!0,env:uc({VITE_API_BASE_URL:`http://localhost:${r}`,VITE_LICENSE_TYPE:f.type,VITE_LICENSE_COMPANY:f.company||""})}),v.stdout.pipe(ae),v.stderr.pipe(ae),v.on("error",()=>{})}i.text="Waiting for API to start (first run may take ~30s for dotnet build)...";try{await ac(r,18e4)}catch{if(i.fail(b.red("API did not start.")),console.log(b.gray(`
152
- Check logs: `+y)),v)try{v.kill()}catch{}process.exit(1)}i.succeed(b.green("API")+b.gray(` \u2014 http://localhost:${r}`));let T=await c0(r),U=l&&!e.apiOnly?`http://localhost:${Vr}`:`http://localhost:${r}`;if(console.log(""),console.log(b.bold.green(" \u2713 xFramework running in Developer Mode!")),console.log(""),console.log(b.white(" Project: ")+b.gray(c.name||k.basename(o))),console.log(b.white(" API: ")+b.cyan(`http://localhost:${r}`)),l&&!e.apiOnly&&console.log(b.white(" UI: ")+b.cyan(`http://localhost:${Vr}`)),T.isInstalled||console.log(b.gray(" First run \u2014 complete setup at: ")+b.cyan(`http://localhost:${l&&!e.apiOnly?Vr:r}`)),f.type==="developer")console.log(b.white(" License: ")+b.green("Developer")+b.gray(" (localhost \u2014 no activation needed)"));else if(f.isLicensed){let F=f.expiresAt?b.gray(` \u2014 expires ${f.expiresAt.toDateString()} (${f.daysRemaining}d)`):"";console.log(b.white(" License: ")+b.green(`${f.type} \u2014 ${f.company}`)+F)}else console.log(b.white(" License: ")+b.yellow("Community \u2014 run: xFramework-cli license <key>"));console.log(b.white(" Log: ")+b.gray(y)),console.log(""),console.log(b.gray(" Press Ctrl+C to stop")),console.log(""),await o0(U);let G=()=>{if(console.log(""),i.start("Stopping..."),v)try{v.kill()}catch{}m.kill(),i.succeed("Stopped"),process.exit(0)};process.on("SIGINT",G),process.on("SIGTERM",G);let de=()=>{m.once("exit",async F=>{if(F===42){console.log(""),console.log(b.cyan(" Setup complete \u2014 restarting API...")),Wr(o,f,r,!0),lc(o,r),l&&!e.apiOnly&&console.log(b.gray(` UI showing restart screen \u2014 navigate to http://localhost:${Vr}/_restarting.html if still on the old page`)),i.start(b.gray("API restarting...")),_();try{await ac(r,18e4),Wr(o,f,r,!1),cc(o),i.succeed(b.green("API")+b.gray(` \u2014 http://localhost:${r} (restarted)`)),de()}catch{if(Wr(o,f,r,!1),cc(o),i.fail(b.red("API failed to restart after setup.")),console.log(b.gray(" Check logs: "+y)),v)try{v.kill()}catch{}process.exit(1)}return}if(F!==0&&F!==null&&console.log(b.red(`
153
- API exited (code ${F}). Check: ${y}`)),v)try{v.kill()}catch{}process.exit(F||0)})};de()}});var{program:re}=ro(),p0=on();re.name("xFramework-cli").description("xFramework \u2014 run your portal locally with one command").version(p0.version);re.command("start").description("Start the xFramework").option("--port <port>","Port to run on","7125").action(t=>{Pi()(t)});re.command("stop").description("Stop the xFramework").action(()=>{jl()()});re.command("status").description("Check if the portal is running").action(()=>{Hl()()});re.command("backup").description("Create a manual database backup").action(()=>{Kl()()});re.command("restore").description("Restore database from a backup").action(()=>{Xl()()});re.command("license [key]").description("Activate or check your xFramework license").option("--status","Show current license status").option("--remove","Remove the current license (revert to Community Edition)").action((t,e)=>{tc()(t,e)});re.command("init [name]").description("Create a new developer project with full API + UI source code").option("--db <provider>","Database provider: sqlserver | postgresql","").option("--no-install","Skip dotnet restore and npm install after scaffolding").option("--from <zipPath>","Use a local template zip instead of downloading from S3").action((t,e)=>{ji()(t,e)});re.command("create [name]",{hidden:!0}).option("--db <provider>","","").option("--no-install").option("--from <zipPath>").action((t,e)=>{ji()(t,e)});re.command("run").description("Start a developer project (API + UI) \u2014 run from project directory").option("--port <port>","API port (default: 5000)",String(5e3)).option("--api-only","Start API only, skip UI dev server").action(t=>{pc()(t)});re.parse(process.argv);process.argv.slice(2).length||Pi()({port:"7125"});
184
+ </html>`;P.writeFileSync(R.join(r,"_restarting.html"),n,"utf8")}function bc(t){try{let e=R.join(t,"ui","public","_restarting.html");P.existsSync(e)&&P.unlinkSync(e)}catch{}}function Xi(t){let e=Object.fromEntries(Object.entries(process.env).filter(([r,n])=>typeof n=="string"&&!r.includes("\0")&&!n.includes("\0")));return Object.assign(e,t)}function O0(t){try{let e=P.readdirSync(t);if(e.some(r=>r.endsWith(".csproj")))return t;for(let r of e){let n=R.join(t,r);try{if(P.statSync(n).isDirectory()&&P.readdirSync(n).some(i=>i.endsWith(".csproj")))return n}catch{}}}catch{}return t}function wc(t){try{let r=JSON.parse(P.readFileSync(R.join(t,"package.json"),"utf8")).scripts||{};for(let n of["dev","start","serve"])if(r[n])return n}catch{}return"dev"}Sc.exports=async function(e){let r=parseInt(e.port||String(v0),10),n=vc.platform()==="win32";console.log(""),console.log(x.bold.white(" xFramework")+x.gray(" \u2014 Developer Mode")),console.log(x.gray(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));let i=_0({text:"Checking environment...",color:"cyan"}).start(),o=C0(process.cwd());o||(i.fail(x.red("Not in an xFramework project directory.")),console.log(x.gray(`
185
+ Run from a directory created with:`)),console.log(x.cyan(" xFramework-cli init <project-name>")),process.exit(1));let s=R.join(o,"api"),a=R.join(o,"ui"),l=R.join(o,"customer-portal"),c=P.existsSync(R.join(a,"package.json")),u=P.existsSync(R.join(l,"package.json")),f=JSON.parse(P.readFileSync(R.join(o,"xframework.json"),"utf8"));P.existsSync(s)||(i.fail(x.red("api/ directory not found.")),process.exit(1)),await E0()||(i.fail(x.red(".NET 8 SDK not found.")),console.log(""),console.log(x.yellow(" Install the .NET 8 SDK:")),console.log(x.cyan(" https://dotnet.microsoft.com/download/dotnet/8.0")),process.exit(1)),i.succeed(x.green("Environment")+x.gray(" \u2014 .NET SDK ready"));let d=A0(o);d.isLicensed&&d.type!=="developer"?i.succeed(x.green("License")+x.gray(` \u2014 ${d.type} \xB7 ${d.company||""}`)):i.succeed(x.green("License")+x.gray(" \u2014 developer (localhost)"));let _=!1;if(u&&!e.apiOnly){i.stop(),console.log("");let q=await w0(x.cyan(" ? ")+x.bold("Start Customer Portal?")+x.gray(" Runs a separate customer-facing portal on port "+Jr+". ")+x.white("[y/N] "));_=q==="y"||q==="yes",console.log(""),i.start(x.gray("Starting..."))}Xr(o,d,r),_&&I0(o,d,r);let g=O0(s),h=R.join(g,"appsettings.Local.json");if(!P.existsSync(h)){let q=!1;try{q=JSON.parse(P.readFileSync(R.join(g,"appsettings.json"),"utf8"))?.AppSetup?.AppInstallRequired===!1}catch{}if(q){console.log(""),console.log(x.yellow(" \u26A0 appsettings.Local.json not found"));let j=[R.join(g,"appsettings.Local.json.example"),R.join(s,"appsettings.Local.json.example")].find(P.existsSync);j?(console.log(x.gray(" Copy it from the example and add your DB credentials:")),console.log(x.cyan(` copy "${R.relative(process.cwd(),j)}" "${R.relative(process.cwd(),h)}"`))):console.log(x.gray(` Create ${R.relative(o,h)} with your connection string.`)),console.log("")}}i.start("Starting API (dotnet run)...");let y=R.join(o,"api.log"),C=P.createWriteStream(y,{flags:"a"}),I=null,M=()=>{let q=null;try{let j=JSON.parse(P.readFileSync(h,"utf8"));j.CA_DB_PROVIDER&&(q=String(j.CA_DB_PROVIDER))}catch{}I=Zr("dotnet",["run","--project",g,"--no-launch-profile","--urls",`http://localhost:${r}`],{cwd:g,stdio:["ignore","pipe","pipe"],shell:n,env:Xi({ASPNETCORE_ENVIRONMENT:"Development",ASPNETCORE_URLS:`http://localhost:${r}`,CA_SETUP_MODE:"developer",CA_LICENSE_TYPE:d.type||"developer",CA_LICENSE_COMPANY:d.company||"",CA_LICENSE_EMAIL:d.email||"",CA_LICENSE_EXPIRES:d.expiresAt?d.expiresAt.toISOString():"",CA_LICENSE_VALID:d.isLicensed?"true":"false",CA_LICENSE_DOMAINS:Array.isArray(d.domains)?d.domains.join(","):"",...q?{CA_DB_PROVIDER:q}:{}})}),I.stdout.on("data",j=>{C.write(j);let ie=j.toString();ie.includes("Restoring packages")||ie.includes("Restored ")?i.text=x.gray("API \u2014 restoring NuGet packages..."):ie.includes("Build succeeded")?i.text=x.gray("API \u2014 build succeeded, launching..."):ie.includes("Now listening")&&(i.text=x.gray("API \u2014 online"))}),I.stderr.on("data",j=>{C.write(j)}),I.on("error",j=>{j.code==="ENOENT"?(i.fail(x.red(".NET runtime not found")),console.log(x.yellow(`
186
+ Install the .NET 8 SDK:`)),console.log(x.cyan(" https://dotnet.microsoft.com/download/dotnet/8.0"))):i.fail(x.red("API failed to start: "+j.message)),process.exit(1)})};xc(o,r),M();let L=null;if(c&&!e.apiOnly){let q=R.join(a,"node_modules");if(P.existsSync(q))i.succeed(x.green("UI packages")+x.gray(" \u2014 already installed"));else{i.stop(),console.log(""),console.log(x.bold.white(" Installing UI packages..."));let Qr=require("child_process").spawnSync("npm",["install","--include=optional"],{cwd:a,shell:!0,stdio:"inherit"});console.log(""),Qr.status===0?console.log(x.green(" \u2714 UI packages")+x.gray(" \u2014 ready")):console.log(x.yellow(" \u26A0 npm install failed")+x.gray(" \u2014 UI may not start")),i.start(x.gray("API building in background..."))}let j=wc(a);i.text=`Starting UI dev server (npm run ${j})...`;let ie=P.createWriteStream(R.join(o,"ui.log"),{flags:"a"});L=Zr("npm",["run",j],{cwd:a,stdio:["ignore","pipe","pipe"],shell:!0,env:Xi({VITE_API_BASE_URL:`http://localhost:${r}`,VITE_LICENSE_TYPE:d.type,VITE_LICENSE_COMPANY:d.company||""})}),L.stdout.pipe(ie),L.stderr.pipe(ie),L.on("error",()=>{})}let $=null;if(_){let q=R.join(l,"node_modules");if(P.existsSync(q))i.succeed(x.green("Customer Portal packages")+x.gray(" \u2014 already installed"));else{i.stop(),console.log(""),console.log(x.bold.white(" Installing Customer Portal packages..."));let Qr=require("child_process").spawnSync("npm",["install","--include=optional"],{cwd:l,shell:!0,stdio:"inherit"});console.log(""),Qr.status===0?console.log(x.green(" \u2714 Customer Portal packages")+x.gray(" \u2014 ready")):console.log(x.yellow(" \u26A0 npm install failed")+x.gray(" \u2014 Customer Portal may not start")),i.start(x.gray("API building in background..."))}let j=wc(l);i.text=`Starting Customer Portal dev server (npm run ${j} --port ${Jr})...`;let ie=P.createWriteStream(R.join(o,"customer-portal.log"),{flags:"a"});$=Zr("npm",["run",j,"--","--port",String(Jr)],{cwd:l,stdio:["ignore","pipe","pipe"],shell:!0,env:Xi({VITE_API_BASE_URL:`http://localhost:${r}`,VITE_LICENSE_TYPE:d.type,VITE_LICENSE_COMPANY:d.company||""})}),$.stdout.pipe(ie),$.stderr.pipe(ie),$.on("error",()=>{})}i.text="Waiting for API to start (first run may take ~30s for dotnet build)...";try{await _c(r,18e4)}catch{if(i.fail(x.red("API did not start.")),console.log(x.gray(`
187
+ Check logs: `+y)),L)try{L.kill()}catch{}if($)try{$.kill()}catch{}process.exit(1)}i.succeed(x.green("API")+x.gray(` \u2014 http://localhost:${r}`));let ce=await S0(r),Se=c&&!e.apiOnly?`http://localhost:${Yr}`:`http://localhost:${r}`;if(console.log(""),console.log(x.bold.green(" \u2713 xFramework running in Developer Mode!")),console.log(""),console.log(x.white(" Project: ")+x.gray(f.name||R.basename(o))),console.log(x.white(" API: ")+x.cyan(`http://localhost:${r}`)),c&&!e.apiOnly&&console.log(x.white(" UI: ")+x.cyan(`http://localhost:${Yr}`)),_&&console.log(x.white(" Customer: ")+x.cyan(`http://localhost:${Jr}`)),ce.isInstalled||console.log(x.gray(" First run \u2014 complete setup at: ")+x.cyan(`http://localhost:${c&&!e.apiOnly?Yr:r}`)),d.type==="developer")console.log(x.white(" License: ")+x.green("Developer")+x.gray(" (localhost \u2014 no activation needed)"));else if(d.isLicensed){let q=d.expiresAt?x.gray(` \u2014 expires ${d.expiresAt.toDateString()} (${d.daysRemaining}d)`):"";console.log(x.white(" License: ")+x.green(`${d.type} \u2014 ${d.company}`)+q)}else console.log(x.white(" License: ")+x.yellow("Community \u2014 run: xFramework-cli license <key>"));console.log(x.white(" Log: ")+x.gray(y)),console.log(""),console.log(x.gray(" Press Ctrl+C to stop")),console.log(""),await x0(Se);let Rt=()=>{if(console.log(""),i.start("Stopping..."),L)try{L.kill()}catch{}if($)try{$.kill()}catch{}I.kill(),i.succeed("Stopped"),process.exit(0)};process.on("SIGINT",Rt),process.on("SIGTERM",Rt);let Zi=()=>{I.once("exit",async q=>{if(q===42){console.log(""),console.log(x.cyan(" Setup complete \u2014 restarting API...")),Xr(o,d,r,!0),xc(o,r),c&&!e.apiOnly&&console.log(x.gray(` UI showing restart screen \u2014 navigate to http://localhost:${Yr}/_restarting.html if still on the old page`)),i.start(x.gray("API restarting...")),M();try{await _c(r,18e4),Xr(o,d,r,!1),bc(o),i.succeed(x.green("API")+x.gray(` \u2014 http://localhost:${r} (restarted)`)),Zi()}catch{if(Xr(o,d,r,!1),bc(o),i.fail(x.red("API failed to restart after setup.")),console.log(x.gray(" Check logs: "+y)),L)try{L.kill()}catch{}if($)try{$.kill()}catch{}process.exit(1)}return}if(q!==0&&q!==null&&console.log(x.red(`
188
+ API exited (code ${q}). Check: ${y}`)),L)try{L.kill()}catch{}if($)try{$.kill()}catch{}process.exit(q||0)})};Zi()}});var{program:ne}=po(),T0=pn();ne.name("xFramework-cli").description("xFramework \u2014 run your portal locally with one command").version(T0.version);ne.command("start").description("Start the xFramework").option("--port <port>","Port to run on","7125").option("--local-api <path>","Use a locally-published API binary instead of downloading from S3").action(t=>{Ui()(t)});ne.command("stop").description("Stop the xFramework").action(()=>{Jl()()});ne.command("status").description("Check if the portal is running").action(()=>{tc()()});ne.command("backup").description("Create a manual database backup").action(()=>{ic()()});ne.command("restore").description("Restore database from a backup").action(()=>{ac()()});ne.command("license [key]").description("Activate or check your xFramework license").option("--status","Show current license status").option("--remove","Remove the current license (revert to Community Edition)").action((t,e)=>{fc()(t,e)});ne.command("init [name]").description("Create a new developer project with full API + UI source code").option("--db <provider>","Database provider: sqlserver | postgresql","").option("--no-install","Skip dotnet restore and npm install after scaffolding").option("--from <zipPath>","Use a local template zip instead of downloading from S3").action((t,e)=>{Ji()(t,e)});ne.command("create [name]",{hidden:!0}).option("--db <provider>","","").option("--no-install").option("--from <zipPath>").action((t,e)=>{Ji()(t,e)});ne.command("run").description("Start a developer project (API + UI) \u2014 run from project directory").option("--port <port>","API port (default: 5000)",String(5e3)).option("--api-only","Start API only, skip UI dev server").action(t=>{Cc()(t)});ne.parse(process.argv);process.argv.slice(2).length||Ui()({port:"7125"});
154
189
  /*! Bundled license information:
155
190
 
156
191
  safe-buffer/index.js: