@donotdev/cli 0.1.0 → 0.1.42

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 (390) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +0 -0
  3. package/dependencies-matrix.json +175 -72
  4. package/dist/bin/commands/agent-setup.js +936 -428
  5. package/dist/bin/commands/build.js +4363 -883
  6. package/dist/bin/commands/bump.js +1296 -780
  7. package/dist/bin/commands/cacheout.js +494 -363
  8. package/dist/bin/commands/coach.js +632 -431
  9. package/dist/bin/commands/create-app.js +1316 -799
  10. package/dist/bin/commands/create-project.js +1355 -827
  11. package/dist/bin/commands/db.js +26158 -18868
  12. package/dist/bin/commands/deploy.js +5983 -1971
  13. package/dist/bin/commands/dev.js +1223 -657
  14. package/dist/bin/commands/doctor.js +1100 -528
  15. package/dist/bin/commands/emu.js +1380 -757
  16. package/dist/bin/commands/format.js +494 -363
  17. package/dist/bin/commands/get-demo.js +1210 -715
  18. package/dist/bin/commands/make-admin.js +16073 -8700
  19. package/dist/bin/commands/preview.js +1227 -658
  20. package/dist/bin/commands/seed.js +26171 -18881
  21. package/dist/bin/commands/setup-cicd.js +1475 -880
  22. package/dist/bin/commands/setup.js +1574 -956
  23. package/dist/bin/commands/staging.js +5984 -1972
  24. package/dist/bin/commands/sync-secrets.js +1423 -676
  25. package/dist/bin/commands/type-check.js +976 -469
  26. package/dist/bin/commands/wai.js +499 -368
  27. package/dist/bin/dndev.js +43 -19
  28. package/dist/bin/donotdev.js +43 -19
  29. package/dist/index.js +6166 -2133
  30. package/guidelines/DEPENDENCIES.md +155 -0
  31. package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
  32. package/package.json +2 -1
  33. package/templates/app-demo/.env.example +1 -1
  34. package/templates/app-demo/entities/Contact.ts.example +0 -0
  35. package/templates/app-demo/entities/ExampleEntity.ts.example +0 -0
  36. package/templates/app-demo/entities/demo.ts.example +0 -0
  37. package/templates/app-demo/index.html.example +0 -0
  38. package/templates/app-demo/public/apple-touch-icon.png.example +0 -0
  39. package/templates/app-demo/public/fonts/fonts.css.example +0 -0
  40. package/templates/app-demo/public/icon-192x192.png.example +0 -0
  41. package/templates/app-demo/public/icon-512x512.png.example +0 -0
  42. package/templates/app-demo/src/App.tsx.example +0 -0
  43. package/templates/app-demo/src/config/app.ts.example +0 -0
  44. package/templates/app-demo/src/entities/booking.ts.example +0 -0
  45. package/templates/app-demo/src/entities/onboarding.ts.example +0 -0
  46. package/templates/app-demo/src/entities/product.ts.example +0 -0
  47. package/templates/app-demo/src/entities/quote.ts.example +0 -0
  48. package/templates/app-demo/src/globals.css.example +0 -0
  49. package/templates/app-demo/src/main.tsx.example +0 -0
  50. package/templates/app-demo/src/pages/ChangelogPage.tsx.example +0 -0
  51. package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +0 -0
  52. package/templates/app-demo/src/pages/DashboardPage.tsx.example +0 -0
  53. package/templates/app-demo/src/pages/HomePage.tsx.example +0 -0
  54. package/templates/app-demo/src/pages/OnboardingPage.tsx.example +0 -0
  55. package/templates/app-demo/src/pages/PricingPage.tsx.example +0 -0
  56. package/templates/app-demo/src/pages/ProductsPage.tsx.example +0 -0
  57. package/templates/app-demo/src/pages/ProfilePage.tsx.example +0 -0
  58. package/templates/app-demo/src/pages/SettingsPage.tsx.example +0 -0
  59. package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +0 -0
  60. package/templates/app-demo/src/pages/ShowcasePage.tsx.example +0 -0
  61. package/templates/app-demo/src/pages/components/ComponentRenderer.tsx.example +0 -0
  62. package/templates/app-demo/src/pages/components/ComponentsData.tsx.example +0 -0
  63. package/templates/app-demo/src/pages/components/componentConfig.ts.example +0 -0
  64. package/templates/app-demo/src/pages/legal/LegalPage.tsx.example +0 -0
  65. package/templates/app-demo/src/pages/legal/PrivacyPage.tsx.example +0 -0
  66. package/templates/app-demo/src/pages/legal/TermsPage.tsx.example +0 -0
  67. package/templates/app-demo/src/themes.css.example +27 -0
  68. package/templates/app-demo/tsconfig.json.example +0 -0
  69. package/templates/app-demo/vite.config.ts.example +0 -0
  70. package/templates/app-dndev/index.html.example +0 -3
  71. package/templates/app-dndev/src/App.tsx.example +0 -0
  72. package/templates/app-dndev/src/components/CockpitLayout.css.example +0 -0
  73. package/templates/app-dndev/src/components/CockpitLayout.tsx.example +0 -0
  74. package/templates/app-dndev/src/components/Kanban.css.example +0 -0
  75. package/templates/app-dndev/src/components/ModeToggle.tsx.example +0 -0
  76. package/templates/app-dndev/src/components/OverlaySlot.tsx.example +0 -0
  77. package/templates/app-dndev/src/components/TerminalPanel.css.example +0 -0
  78. package/templates/app-dndev/src/components/TerminalPanel.tsx.example +0 -0
  79. package/templates/app-dndev/src/components/markdown-prose.css.example +0 -0
  80. package/templates/app-dndev/src/components/phases/CaptainLog.tsx.example +0 -0
  81. package/templates/app-dndev/src/components/phases/ContextTabs.tsx.example +0 -0
  82. package/templates/app-dndev/src/components/phases/PhaseCard.tsx.example +0 -0
  83. package/templates/app-dndev/src/components/phases/PhaseDetail.tsx.example +0 -0
  84. package/templates/app-dndev/src/components/phases/ReviewPanel.tsx.example +0 -0
  85. package/templates/app-dndev/src/components/phases/phaseData.ts.example +0 -0
  86. package/templates/app-dndev/src/config/app.ts.example +0 -0
  87. package/templates/app-dndev/src/config/commands.ts.example +0 -0
  88. package/templates/app-dndev/src/config/legal.ts.example +0 -0
  89. package/templates/app-dndev/src/config/providers.ts.example +1 -1
  90. package/templates/app-dndev/src/globals.css.example +0 -0
  91. package/templates/app-dndev/src/hooks/useDndevFile.ts.example +0 -0
  92. package/templates/app-dndev/src/main.tsx.example +0 -0
  93. package/templates/app-dndev/src/pages/BoardPage.tsx.example +0 -0
  94. package/templates/app-dndev/src/pages/GrillPage.tsx.example +0 -0
  95. package/templates/app-dndev/src/pages/HomePage.tsx.example +0 -0
  96. package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +0 -0
  97. package/templates/app-dndev/src/pages/PhasesPage.tsx.example +0 -0
  98. package/templates/app-dndev/src/pages/SettingsPage.tsx.example +0 -0
  99. package/templates/app-dndev/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  100. package/templates/app-dndev/src/pages/legal/PrivacyPage.tsx.example +0 -0
  101. package/templates/app-dndev/src/pages/legal/TermsPage.tsx.example +0 -0
  102. package/templates/app-dndev/src/stores/dndevStore.ts.example +0 -0
  103. package/templates/app-dndev/src/themes.css.example +26 -0
  104. package/templates/app-dndev/terminal-sidecar.cjs.example +0 -0
  105. package/templates/app-dndev/vite.config.ts.example +0 -0
  106. package/templates/app-expo/.env.example +0 -32
  107. package/templates/app-expo/.expo/README.md.example +0 -0
  108. package/templates/app-expo/.gitignore.example +0 -0
  109. package/templates/app-expo/README.md.example +1 -1
  110. package/templates/app-expo/app/.gitkeep +0 -0
  111. package/templates/app-expo/app/_layout.tsx.example +0 -0
  112. package/templates/app-expo/app/form.tsx.example +0 -0
  113. package/templates/app-expo/app/index.tsx.example +0 -0
  114. package/templates/app-expo/app/list.tsx.example +0 -0
  115. package/templates/app-expo/app/profile.tsx.example +0 -0
  116. package/templates/app-expo/app/signin.tsx.example +0 -0
  117. package/templates/app-expo/app.json.example +0 -0
  118. package/templates/app-expo/assets/adaptive-icon.png +0 -0
  119. package/templates/app-expo/assets/favicon.png +0 -0
  120. package/templates/app-expo/assets/icon.png +0 -0
  121. package/templates/app-expo/assets/splash.png +0 -0
  122. package/templates/app-expo/babel.config.js.example +0 -0
  123. package/templates/app-expo/eas.json.example +0 -0
  124. package/templates/app-expo/expo-env.d.ts.example +0 -0
  125. package/templates/app-expo/metro.config.js.example +0 -0
  126. package/templates/app-expo/service-account-key.json.example +1 -1
  127. package/templates/app-expo/src/config/app.ts.example +0 -0
  128. package/templates/app-expo/src/config/providers.ts.example +1 -1
  129. package/templates/app-expo/tsconfig.json.example +0 -0
  130. package/templates/app-next/.env.example +0 -33
  131. package/templates/app-next/next.config.ts.example +0 -2
  132. package/templates/app-next/postcss.config.js.example +0 -0
  133. package/templates/app-next/service-account-key.json.example +0 -0
  134. package/templates/app-next/src/app/ClientLayout.tsx.example +0 -0
  135. package/templates/app-next/src/app/layout.tsx.example +13 -4
  136. package/templates/app-next/src/app/not-found.tsx.example +0 -0
  137. package/templates/app-next/src/config/app.ts.example +0 -0
  138. package/templates/app-next/src/config/legal.ts.example +0 -0
  139. package/templates/app-next/src/config/providers.ts.example +1 -1
  140. package/templates/app-next/src/globals.css.example +0 -0
  141. package/templates/app-next/src/locales/dndev_en.json.example +0 -0
  142. package/templates/app-next/src/locales/home_en.json.example +6 -6
  143. package/templates/app-next/src/pages/HomePage.tsx.example +0 -0
  144. package/templates/app-next/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  145. package/templates/app-next/src/pages/legal/PrivacyPage.tsx.example +0 -0
  146. package/templates/app-next/src/pages/legal/TermsPage.tsx.example +0 -0
  147. package/templates/app-next/src/pages/locales/example_en.json.example +0 -0
  148. package/templates/app-next/src/themes.css.example +28 -1
  149. package/templates/app-vite/.env.example +0 -33
  150. package/templates/app-vite/csp.example.json +44 -0
  151. package/templates/app-vite/index.html.example +0 -3
  152. package/templates/app-vite/service-account-key.json.example +0 -0
  153. package/templates/app-vite/src/App.tsx.example +0 -0
  154. package/templates/app-vite/src/config/app.ts.example +0 -0
  155. package/templates/app-vite/src/config/legal.ts.example +0 -0
  156. package/templates/app-vite/src/config/providers.ts.example +1 -1
  157. package/templates/app-vite/src/globals.css.example +0 -0
  158. package/templates/app-vite/src/locales/dndev_en.json.example +0 -0
  159. package/templates/app-vite/src/locales/home_en.json.example +6 -6
  160. package/templates/app-vite/src/main.tsx.example +0 -0
  161. package/templates/app-vite/src/pages/FormPageExample.tsx.example +0 -0
  162. package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
  163. package/templates/app-vite/src/pages/ListPageExample.tsx.example +0 -0
  164. package/templates/app-vite/src/pages/NotFoundPage.tsx.example +0 -0
  165. package/templates/app-vite/src/pages/legal/LegalNoticePage.tsx.example +0 -0
  166. package/templates/app-vite/src/pages/legal/PrivacyPage.tsx.example +0 -0
  167. package/templates/app-vite/src/pages/legal/TermsPage.tsx.example +0 -0
  168. package/templates/app-vite/src/pages/locales/example_en.json.example +0 -0
  169. package/templates/app-vite/src/themes.css.example +26 -0
  170. package/templates/deploy-config/.firebaserc.example +0 -0
  171. package/templates/deploy-config/firestore.indexes.json.example +0 -0
  172. package/templates/deploy-config/firestore.rules.example +0 -0
  173. package/templates/deploy-config/storage.rules.example +0 -0
  174. package/templates/deploy-config/tsconfig.functions.json.example +0 -0
  175. package/templates/deploy-config/vercel.json.example +2 -2
  176. package/templates/functions-firebase/.env.example +2 -2
  177. package/templates/functions-firebase/README.md.example +3 -3
  178. package/templates/functions-firebase/build.mjs.example +0 -0
  179. package/templates/functions-firebase/functions.config.js.example +0 -0
  180. package/templates/functions-firebase/functions.yaml.example +0 -0
  181. package/templates/functions-firebase/src/auth/getCustomClaims.ts.example +0 -0
  182. package/templates/functions-firebase/src/auth/getUserAuthStatus.ts.example +0 -0
  183. package/templates/functions-firebase/src/auth/index.ts.example +0 -0
  184. package/templates/functions-firebase/src/auth/removeCustomClaims.ts.example +0 -0
  185. package/templates/functions-firebase/src/auth/setCustomClaims.ts.example +0 -0
  186. package/templates/functions-firebase/src/billing/handleStripeWebhook.ts.example +0 -0
  187. package/templates/functions-firebase/src/billing/index.ts.example +0 -0
  188. package/templates/functions-firebase/src/billing/processPaymentSuccess.ts.example +0 -0
  189. package/templates/functions-firebase/src/billing/refreshSubscriptionStatus.ts.example +0 -0
  190. package/templates/functions-firebase/src/crud/createEntity.ts.example +0 -0
  191. package/templates/functions-firebase/src/crud/deleteEntity.ts.example +0 -0
  192. package/templates/functions-firebase/src/crud/getEntity.ts.example +0 -0
  193. package/templates/functions-firebase/src/crud/index.ts.example +0 -0
  194. package/templates/functions-firebase/src/crud/listEntities.ts.example +0 -0
  195. package/templates/functions-firebase/src/crud/updateEntity.ts.example +0 -0
  196. package/templates/functions-firebase/src/index.ts.example +0 -0
  197. package/templates/functions-firebase/src/oauth/checkGitHubAccess.ts.example +0 -0
  198. package/templates/functions-firebase/src/oauth/disconnect.ts.example +0 -0
  199. package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +0 -0
  200. package/templates/functions-firebase/src/oauth/getConnections.ts.example +0 -0
  201. package/templates/functions-firebase/src/oauth/grantGitHubAccess.ts.example +0 -0
  202. package/templates/functions-firebase/src/oauth/index.ts.example +0 -0
  203. package/templates/functions-firebase/src/oauth/refreshToken.ts.example +0 -0
  204. package/templates/functions-firebase/src/oauth/revokeGitHubAccess.ts.example +0 -0
  205. package/templates/functions-firebase/tsconfig.json.example +0 -0
  206. package/templates/functions-supabase/supabase/config.toml.example +0 -0
  207. package/templates/functions-supabase/supabase/functions/.env.example +0 -0
  208. package/templates/functions-supabase/supabase/functions/cancel-subscription/index.ts.example +0 -0
  209. package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +0 -0
  210. package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +0 -0
  211. package/templates/functions-supabase/supabase/functions/create-customer-portal/index.ts.example +0 -0
  212. package/templates/functions-supabase/supabase/functions/crud/index.ts.example +0 -0
  213. package/templates/functions-supabase/supabase/functions/delete-account/index.ts.example +0 -0
  214. package/templates/functions-supabase/supabase/functions/deno.json.example +0 -0
  215. package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +0 -0
  216. package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +0 -0
  217. package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +0 -0
  218. package/templates/functions-supabase/supabase/functions/get-custom-claims/index.ts.example +0 -0
  219. package/templates/functions-supabase/supabase/functions/get-user-auth-status/index.ts.example +0 -0
  220. package/templates/functions-supabase/supabase/functions/refresh-subscription-status/index.ts.example +0 -0
  221. package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +0 -0
  222. package/templates/functions-supabase/supabase/functions/remove-custom-claims/index.ts.example +0 -0
  223. package/templates/functions-supabase/supabase/functions/set-custom-claims/index.ts.example +0 -0
  224. package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
  225. package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
  226. package/templates/functions-supabase/supabase/migrations/20250101000002_cleanup_jobs.sql +0 -0
  227. package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
  228. package/templates/functions-supabase/supabase/migrations/20250101000004_crud_bulk.sql +192 -0
  229. package/templates/functions-vercel/.env.example +3 -3
  230. package/templates/functions-vercel/README.md.example +2 -2
  231. package/templates/functions-vercel/build.mjs.example +0 -0
  232. package/templates/functions-vercel/src/api/auth/getCustomClaims.ts.example +0 -0
  233. package/templates/functions-vercel/src/api/auth/getUserAuthStatus.ts.example +0 -0
  234. package/templates/functions-vercel/src/api/auth/removeCustomClaims.ts.example +0 -0
  235. package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +0 -0
  236. package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +0 -0
  237. package/templates/functions-vercel/src/api/billing/processPaymentSuccess.ts.example +0 -0
  238. package/templates/functions-vercel/src/api/billing/refreshSubscriptionStatus.ts.example +0 -0
  239. package/templates/functions-vercel/src/api/crud/createEntity.ts.example +0 -0
  240. package/templates/functions-vercel/src/api/crud/deleteEntity.ts.example +0 -0
  241. package/templates/functions-vercel/src/api/crud/getEntity.ts.example +0 -0
  242. package/templates/functions-vercel/src/api/crud/listEntities.ts.example +0 -0
  243. package/templates/functions-vercel/src/api/crud/updateEntity.ts.example +0 -0
  244. package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +0 -0
  245. package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -0
  246. package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +0 -0
  247. package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -0
  248. package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +0 -0
  249. package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -0
  250. package/templates/functions-vercel/src/api/oauth/revokeGitHubAccess.ts.example +0 -0
  251. package/templates/functions-vercel/tsconfig.json.example +0 -0
  252. package/templates/functions-vercel/vercel.json.example +0 -0
  253. package/templates/github-consumer/.github/workflows/ci.yml.example +0 -0
  254. package/templates/overlay-firebase/env.fragment.example +0 -0
  255. package/templates/overlay-firebase/env.fragment.expo.example +0 -0
  256. package/templates/overlay-firebase/env.fragment.nextjs.example +0 -0
  257. package/templates/overlay-firebase/src/config/providers.expo.ts.example +0 -0
  258. package/templates/overlay-firebase/src/config/providers.ts.example +0 -0
  259. package/templates/overlay-supabase/env.fragment.example +0 -0
  260. package/templates/overlay-supabase/env.fragment.expo.example +0 -0
  261. package/templates/overlay-supabase/env.fragment.nextjs.example +0 -0
  262. package/templates/overlay-supabase/src/config/providers.expo.ts.example +1 -1
  263. package/templates/overlay-supabase/src/config/providers.ts.example +1 -1
  264. package/templates/overlay-vercel/env.fragment.example +0 -0
  265. package/templates/overlay-vercel/env.fragment.nextjs.example +0 -0
  266. package/templates/overlay-vercel/src/config/providers.ts.example +0 -0
  267. package/templates/preset-admin/src/pages/DashboardPage.tsx.example +0 -0
  268. package/templates/preset-admin/src/pages/EntityPage.tsx.example +0 -0
  269. package/templates/preset-admin/src/pages/ReportsPage.tsx.example +0 -0
  270. package/templates/preset-admin/src/pages/SettingsPage.tsx.example +0 -0
  271. package/templates/preset-admin/src/pages/UsersPage.tsx.example +0 -0
  272. package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +0 -0
  273. package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +0 -0
  274. package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +0 -0
  275. package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +0 -0
  276. package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +0 -0
  277. package/templates/preset-landing/src/pages/AboutPage.tsx.example +0 -0
  278. package/templates/preset-landing/src/pages/ContactPage.tsx.example +0 -0
  279. package/templates/preset-landing/src/pages/HomePage.tsx.example +0 -0
  280. package/templates/preset-saas/src/pages/DashboardPage.tsx.example +0 -0
  281. package/templates/preset-saas/src/pages/HomePage.tsx.example +0 -0
  282. package/templates/preset-saas/src/pages/PricingPage.tsx.example +0 -0
  283. package/templates/preset-saas/src/pages/ProfilePage.tsx.example +0 -0
  284. package/templates/preset-saas/src/pages/SettingsPage.tsx.example +0 -0
  285. package/templates/root-consumer/.claude/agents/architect.md.example +0 -0
  286. package/templates/root-consumer/.claude/agents/builder.md.example +0 -0
  287. package/templates/root-consumer/.claude/agents/coder.md.example +0 -0
  288. package/templates/root-consumer/.claude/agents/extractor.md.example +0 -0
  289. package/templates/root-consumer/.claude/agents/polisher.md.example +0 -0
  290. package/templates/root-consumer/.claude/agents/prompt-engineer.md.example +0 -0
  291. package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
  292. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +56 -0
  293. package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
  294. package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
  295. package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
  296. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
  297. package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
  298. package/templates/root-consumer/.claude/rules/git.md.example +14 -0
  299. package/templates/root-consumer/.claude/rules/security.md.example +13 -0
  300. package/templates/root-consumer/.claude/settings.json.example +100 -4
  301. package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +0 -0
  302. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +22 -27
  303. package/templates/root-consumer/.claude/skills/design/SKILL.md.example +0 -0
  304. package/templates/root-consumer/.claude/skills/design/output-template.md +0 -0
  305. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +26 -15
  306. package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
  307. package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +0 -0
  308. package/templates/root-consumer/.cursor/mcp.json.example +0 -0
  309. package/templates/root-consumer/.cursor/rules/no-docs.mdc.example +5 -1
  310. package/templates/root-consumer/.dndev/args.json.example +0 -0
  311. package/templates/root-consumer/.dndev.secrets.example +0 -0
  312. package/templates/root-consumer/.env.example +0 -1
  313. package/templates/root-consumer/.gemini/settings.json.example +0 -0
  314. package/templates/root-consumer/.gitignore.example +1 -0
  315. package/templates/root-consumer/.mcp.json.example +0 -0
  316. package/templates/root-consumer/.prettierrc.cjs.example +0 -0
  317. package/templates/root-consumer/AGENTS.md.example +63 -0
  318. package/templates/root-consumer/CLAUDE.md.example +1 -1
  319. package/templates/root-consumer/README.md.example +11 -33
  320. package/templates/root-consumer/entities/index.ts.example +0 -0
  321. package/templates/root-consumer/eslint.config.js.example +0 -0
  322. package/templates/root-consumer/tsconfig.json.example +0 -0
  323. package/templates/app-demo/public/manifest.json.example +0 -10
  324. package/templates/app-dndev/public/manifest.json.example +0 -10
  325. package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -175
  326. package/templates/root-consumer/.claude/commands/build.md.example +0 -131
  327. package/templates/root-consumer/.claude/commands/design.md.example +0 -184
  328. package/templates/root-consumer/.claude/commands/grill.md.example +0 -135
  329. package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
  330. package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
  331. package/templates/root-consumer/.claude/statusline.py.example +0 -79
  332. package/templates/root-consumer/.clinerules.example +0 -1
  333. package/templates/root-consumer/.cursorrules.example +0 -1
  334. package/templates/root-consumer/.github/copilot-instructions.md.example +0 -1
  335. package/templates/root-consumer/.windsurfrules.example +0 -1
  336. package/templates/root-consumer/AI.md.example +0 -108
  337. package/templates/root-consumer/CONVENTIONS.md.example +0 -1
  338. package/templates/root-consumer/GEMINI.md.example +0 -1
  339. package/templates/root-consumer/guides/dndev/AGENT_START_HERE.md.example +0 -135
  340. package/templates/root-consumer/guides/dndev/COMPONENTS_ADV.md.example +0 -276
  341. package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
  342. package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
  343. package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
  344. package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
  345. package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
  346. package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
  347. package/templates/root-consumer/guides/dndev/INDEX.md.example +0 -60
  348. package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
  349. package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +0 -133
  350. package/templates/root-consumer/guides/dndev/SETUP_BILLING.md.example +0 -114
  351. package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
  352. package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
  353. package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
  354. package/templates/root-consumer/guides/dndev/SETUP_FIREBASE.md.example +0 -231
  355. package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
  356. package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
  357. package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
  358. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +0 -54
  359. package/templates/root-consumer/guides/dndev/SETUP_OAUTH_PROVIDERS.md.example +0 -60
  360. package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
  361. package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
  362. package/templates/root-consumer/guides/dndev/SETUP_SOC2.md.example +0 -234
  363. package/templates/root-consumer/guides/dndev/SETUP_STRIPE.md.example +0 -62
  364. package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +0 -215
  365. package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
  366. package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
  367. package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
  368. package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
  369. package/templates/root-consumer/guides/dndev/advanced/APP_CHECK.md.example +0 -111
  370. package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +0 -252
  371. package/templates/root-consumer/guides/dndev/advanced/EMULATORS.md.example +0 -48
  372. package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
  373. package/templates/root-consumer/guides/wai-way/WAI_WAY_CLI.md.example +0 -402
  374. package/templates/root-consumer/guides/wai-way/agents/architect.md.example +0 -78
  375. package/templates/root-consumer/guides/wai-way/agents/builder.md.example +0 -97
  376. package/templates/root-consumer/guides/wai-way/agents/extractor.md.example +0 -363
  377. package/templates/root-consumer/guides/wai-way/agents/polisher.md.example +0 -133
  378. package/templates/root-consumer/guides/wai-way/blueprints/0_brainstorm.md.example +0 -315
  379. package/templates/root-consumer/guides/wai-way/blueprints/1_scaffold.md.example +0 -133
  380. package/templates/root-consumer/guides/wai-way/blueprints/2_entities.md.example +0 -111
  381. package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +0 -150
  382. package/templates/root-consumer/guides/wai-way/blueprints/4_configure.md.example +0 -238
  383. package/templates/root-consumer/guides/wai-way/context_map.json.example +0 -127
  384. package/templates/root-consumer/guides/wai-way/entity_patterns.md.example +0 -839
  385. package/templates/root-consumer/guides/wai-way/hld_template.md.example +0 -138
  386. package/templates/root-consumer/guides/wai-way/lld_template.md.example +0 -103
  387. package/templates/root-consumer/guides/wai-way/page_patterns.md.example +0 -722
  388. package/templates/root-consumer/guides/wai-way/prd_template.md.example +0 -140
  389. package/templates/root-consumer/guides/wai-way/presets_guide.md.example +0 -217
  390. package/templates/root-consumer/guides/wai-way/spec_template.md.example +0 -313
@@ -4,11 +4,11 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
8
- get: (a, b3) => (typeof require !== "undefined" ? require : a)[b3]
9
- }) : x2)(function(x2) {
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
10
  if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x2 + '" is not supported');
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
12
  });
13
13
  var __esm = (fn, res) => function __init() {
14
14
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
@@ -37,50 +37,456 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
37
37
  mod
38
38
  ));
39
39
 
40
+ // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js
41
+ var isAmbiguous, isFullWidth, isWide;
42
+ var init_utils = __esm({
43
+ "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js"() {
44
+ init_utils2();
45
+ isAmbiguous = (x) => {
46
+ return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
47
+ };
48
+ isFullWidth = (x) => {
49
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
50
+ };
51
+ isWide = (x) => {
52
+ return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9800 && x <= 9811 || x === 9855 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 19968 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101632 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129672 || x >= 129680 && x <= 129725 || x >= 129727 && x <= 129733 || x >= 129742 && x <= 129755 || x >= 129760 && x <= 129768 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
53
+ };
54
+ }
55
+ });
56
+
57
+ // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js
58
+ var ANSI_RE, CONTROL_RE, TAB_RE, EMOJI_RE, LATIN_RE, MODIFIER_RE, NO_TRUNCATION, getStringTruncatedWidth, dist_default;
59
+ var init_dist = __esm({
60
+ "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js"() {
61
+ init_utils2();
62
+ init_utils();
63
+ ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
64
+ CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
65
+ TAB_RE = /\t{1,1000}/y;
66
+ EMOJI_RE = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu");
67
+ LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
68
+ MODIFIER_RE = new RegExp("\\p{M}+", "gu");
69
+ NO_TRUNCATION = { limit: Infinity, ellipsis: "" };
70
+ getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) => {
71
+ const LIMIT = truncationOptions.limit ?? Infinity;
72
+ const ELLIPSIS = truncationOptions.ellipsis ?? "";
73
+ const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION, widthOptions).width : 0);
74
+ const ANSI_WIDTH = widthOptions.ansiWidth ?? 0;
75
+ const CONTROL_WIDTH = widthOptions.controlWidth ?? 0;
76
+ const TAB_WIDTH = widthOptions.tabWidth ?? 8;
77
+ const AMBIGUOUS_WIDTH = widthOptions.ambiguousWidth ?? 1;
78
+ const EMOJI_WIDTH = widthOptions.emojiWidth ?? 2;
79
+ const FULL_WIDTH_WIDTH = widthOptions.fullWidthWidth ?? 2;
80
+ const REGULAR_WIDTH = widthOptions.regularWidth ?? 1;
81
+ const WIDE_WIDTH = widthOptions.wideWidth ?? 2;
82
+ let indexPrev = 0;
83
+ let index = 0;
84
+ let length = input.length;
85
+ let lengthExtra = 0;
86
+ let truncationEnabled = false;
87
+ let truncationIndex = length;
88
+ let truncationLimit = Math.max(0, LIMIT - ELLIPSIS_WIDTH);
89
+ let unmatchedStart = 0;
90
+ let unmatchedEnd = 0;
91
+ let width = 0;
92
+ let widthExtra = 0;
93
+ outer: while (true) {
94
+ if (unmatchedEnd > unmatchedStart || index >= length && index > indexPrev) {
95
+ const unmatched = input.slice(unmatchedStart, unmatchedEnd) || input.slice(indexPrev, index);
96
+ lengthExtra = 0;
97
+ for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
98
+ const codePoint = char.codePointAt(0) || 0;
99
+ if (isFullWidth(codePoint)) {
100
+ widthExtra = FULL_WIDTH_WIDTH;
101
+ } else if (isWide(codePoint)) {
102
+ widthExtra = WIDE_WIDTH;
103
+ } else if (AMBIGUOUS_WIDTH !== REGULAR_WIDTH && isAmbiguous(codePoint)) {
104
+ widthExtra = AMBIGUOUS_WIDTH;
105
+ } else {
106
+ widthExtra = REGULAR_WIDTH;
107
+ }
108
+ if (width + widthExtra > truncationLimit) {
109
+ truncationIndex = Math.min(truncationIndex, Math.max(unmatchedStart, indexPrev) + lengthExtra);
110
+ }
111
+ if (width + widthExtra > LIMIT) {
112
+ truncationEnabled = true;
113
+ break outer;
114
+ }
115
+ lengthExtra += char.length;
116
+ width += widthExtra;
117
+ }
118
+ unmatchedStart = unmatchedEnd = 0;
119
+ }
120
+ if (index >= length)
121
+ break;
122
+ LATIN_RE.lastIndex = index;
123
+ if (LATIN_RE.test(input)) {
124
+ lengthExtra = LATIN_RE.lastIndex - index;
125
+ widthExtra = lengthExtra * REGULAR_WIDTH;
126
+ if (width + widthExtra > truncationLimit) {
127
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / REGULAR_WIDTH));
128
+ }
129
+ if (width + widthExtra > LIMIT) {
130
+ truncationEnabled = true;
131
+ break;
132
+ }
133
+ width += widthExtra;
134
+ unmatchedStart = indexPrev;
135
+ unmatchedEnd = index;
136
+ index = indexPrev = LATIN_RE.lastIndex;
137
+ continue;
138
+ }
139
+ ANSI_RE.lastIndex = index;
140
+ if (ANSI_RE.test(input)) {
141
+ if (width + ANSI_WIDTH > truncationLimit) {
142
+ truncationIndex = Math.min(truncationIndex, index);
143
+ }
144
+ if (width + ANSI_WIDTH > LIMIT) {
145
+ truncationEnabled = true;
146
+ break;
147
+ }
148
+ width += ANSI_WIDTH;
149
+ unmatchedStart = indexPrev;
150
+ unmatchedEnd = index;
151
+ index = indexPrev = ANSI_RE.lastIndex;
152
+ continue;
153
+ }
154
+ CONTROL_RE.lastIndex = index;
155
+ if (CONTROL_RE.test(input)) {
156
+ lengthExtra = CONTROL_RE.lastIndex - index;
157
+ widthExtra = lengthExtra * CONTROL_WIDTH;
158
+ if (width + widthExtra > truncationLimit) {
159
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / CONTROL_WIDTH));
160
+ }
161
+ if (width + widthExtra > LIMIT) {
162
+ truncationEnabled = true;
163
+ break;
164
+ }
165
+ width += widthExtra;
166
+ unmatchedStart = indexPrev;
167
+ unmatchedEnd = index;
168
+ index = indexPrev = CONTROL_RE.lastIndex;
169
+ continue;
170
+ }
171
+ TAB_RE.lastIndex = index;
172
+ if (TAB_RE.test(input)) {
173
+ lengthExtra = TAB_RE.lastIndex - index;
174
+ widthExtra = lengthExtra * TAB_WIDTH;
175
+ if (width + widthExtra > truncationLimit) {
176
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / TAB_WIDTH));
177
+ }
178
+ if (width + widthExtra > LIMIT) {
179
+ truncationEnabled = true;
180
+ break;
181
+ }
182
+ width += widthExtra;
183
+ unmatchedStart = indexPrev;
184
+ unmatchedEnd = index;
185
+ index = indexPrev = TAB_RE.lastIndex;
186
+ continue;
187
+ }
188
+ EMOJI_RE.lastIndex = index;
189
+ if (EMOJI_RE.test(input)) {
190
+ if (width + EMOJI_WIDTH > truncationLimit) {
191
+ truncationIndex = Math.min(truncationIndex, index);
192
+ }
193
+ if (width + EMOJI_WIDTH > LIMIT) {
194
+ truncationEnabled = true;
195
+ break;
196
+ }
197
+ width += EMOJI_WIDTH;
198
+ unmatchedStart = indexPrev;
199
+ unmatchedEnd = index;
200
+ index = indexPrev = EMOJI_RE.lastIndex;
201
+ continue;
202
+ }
203
+ index += 1;
204
+ }
205
+ return {
206
+ width: truncationEnabled ? truncationLimit : width,
207
+ index: truncationEnabled ? truncationIndex : length,
208
+ truncated: truncationEnabled,
209
+ ellipsed: truncationEnabled && LIMIT >= ELLIPSIS_WIDTH
210
+ };
211
+ };
212
+ dist_default = getStringTruncatedWidth;
213
+ }
214
+ });
215
+
216
+ // node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js
217
+ var NO_TRUNCATION2, fastStringWidth, dist_default2;
218
+ var init_dist2 = __esm({
219
+ "node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js"() {
220
+ init_utils2();
221
+ init_dist();
222
+ NO_TRUNCATION2 = {
223
+ limit: Infinity,
224
+ ellipsis: "",
225
+ ellipsisWidth: 0
226
+ };
227
+ fastStringWidth = (input, options = {}) => {
228
+ return dist_default(input, NO_TRUNCATION2, options).width;
229
+ };
230
+ dist_default2 = fastStringWidth;
231
+ }
232
+ });
233
+
234
+ // node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js
235
+ function wrapAnsi(string, columns, options) {
236
+ return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
237
+ }
238
+ var ESC, CSI, END_CODE, ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_SGR_TERMINATOR, ANSI_ESCAPE_LINK, GROUP_REGEX, getClosingCode, wrapAnsiCode, wrapAnsiHyperlink, wrapWord, stringVisibleTrimSpacesRight, exec, CRLF_OR_LF;
239
+ var init_main = __esm({
240
+ "node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js"() {
241
+ init_utils2();
242
+ init_dist2();
243
+ ESC = "\x1B";
244
+ CSI = "\x9B";
245
+ END_CODE = 39;
246
+ ANSI_ESCAPE_BELL = "\x07";
247
+ ANSI_CSI = "[";
248
+ ANSI_OSC = "]";
249
+ ANSI_SGR_TERMINATOR = "m";
250
+ ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
251
+ GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
252
+ getClosingCode = (openingCode) => {
253
+ if (openingCode >= 30 && openingCode <= 37)
254
+ return 39;
255
+ if (openingCode >= 90 && openingCode <= 97)
256
+ return 39;
257
+ if (openingCode >= 40 && openingCode <= 47)
258
+ return 49;
259
+ if (openingCode >= 100 && openingCode <= 107)
260
+ return 49;
261
+ if (openingCode === 1 || openingCode === 2)
262
+ return 22;
263
+ if (openingCode === 3)
264
+ return 23;
265
+ if (openingCode === 4)
266
+ return 24;
267
+ if (openingCode === 7)
268
+ return 27;
269
+ if (openingCode === 8)
270
+ return 28;
271
+ if (openingCode === 9)
272
+ return 29;
273
+ if (openingCode === 0)
274
+ return 0;
275
+ return void 0;
276
+ };
277
+ wrapAnsiCode = (code) => `${ESC}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
278
+ wrapAnsiHyperlink = (url) => `${ESC}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
279
+ wrapWord = (rows, word, columns) => {
280
+ const characters = word[Symbol.iterator]();
281
+ let isInsideEscape = false;
282
+ let isInsideLinkEscape = false;
283
+ let lastRow = rows.at(-1);
284
+ let visible = lastRow === void 0 ? 0 : dist_default2(lastRow);
285
+ let currentCharacter = characters.next();
286
+ let nextCharacter = characters.next();
287
+ let rawCharacterIndex = 0;
288
+ while (!currentCharacter.done) {
289
+ const character = currentCharacter.value;
290
+ const characterLength = dist_default2(character);
291
+ if (visible + characterLength <= columns) {
292
+ rows[rows.length - 1] += character;
293
+ } else {
294
+ rows.push(character);
295
+ visible = 0;
296
+ }
297
+ if (character === ESC || character === CSI) {
298
+ isInsideEscape = true;
299
+ isInsideLinkEscape = word.startsWith(ANSI_ESCAPE_LINK, rawCharacterIndex + 1);
300
+ }
301
+ if (isInsideEscape) {
302
+ if (isInsideLinkEscape) {
303
+ if (character === ANSI_ESCAPE_BELL) {
304
+ isInsideEscape = false;
305
+ isInsideLinkEscape = false;
306
+ }
307
+ } else if (character === ANSI_SGR_TERMINATOR) {
308
+ isInsideEscape = false;
309
+ }
310
+ } else {
311
+ visible += characterLength;
312
+ if (visible === columns && !nextCharacter.done) {
313
+ rows.push("");
314
+ visible = 0;
315
+ }
316
+ }
317
+ currentCharacter = nextCharacter;
318
+ nextCharacter = characters.next();
319
+ rawCharacterIndex += character.length;
320
+ }
321
+ lastRow = rows.at(-1);
322
+ if (!visible && lastRow !== void 0 && lastRow.length && rows.length > 1) {
323
+ rows[rows.length - 2] += rows.pop();
324
+ }
325
+ };
326
+ stringVisibleTrimSpacesRight = (string) => {
327
+ const words = string.split(" ");
328
+ let last = words.length;
329
+ while (last) {
330
+ if (dist_default2(words[last - 1])) {
331
+ break;
332
+ }
333
+ last--;
334
+ }
335
+ if (last === words.length) {
336
+ return string;
337
+ }
338
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
339
+ };
340
+ exec = (string, columns, options = {}) => {
341
+ if (options.trim !== false && string.trim() === "") {
342
+ return "";
343
+ }
344
+ let returnValue = "";
345
+ let escapeCode;
346
+ let escapeUrl;
347
+ const words = string.split(" ");
348
+ let rows = [""];
349
+ let rowLength = 0;
350
+ for (let index = 0; index < words.length; index++) {
351
+ const word = words[index];
352
+ if (options.trim !== false) {
353
+ const row = rows.at(-1) ?? "";
354
+ const trimmed = row.trimStart();
355
+ if (row.length !== trimmed.length) {
356
+ rows[rows.length - 1] = trimmed;
357
+ rowLength = dist_default2(trimmed);
358
+ }
359
+ }
360
+ if (index !== 0) {
361
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
362
+ rows.push("");
363
+ rowLength = 0;
364
+ }
365
+ if (rowLength || options.trim === false) {
366
+ rows[rows.length - 1] += " ";
367
+ rowLength++;
368
+ }
369
+ }
370
+ const wordLength = dist_default2(word);
371
+ if (options.hard && wordLength > columns) {
372
+ const remainingColumns = columns - rowLength;
373
+ const breaksStartingThisLine = 1 + Math.floor((wordLength - remainingColumns - 1) / columns);
374
+ const breaksStartingNextLine = Math.floor((wordLength - 1) / columns);
375
+ if (breaksStartingNextLine < breaksStartingThisLine) {
376
+ rows.push("");
377
+ }
378
+ wrapWord(rows, word, columns);
379
+ rowLength = dist_default2(rows.at(-1) ?? "");
380
+ continue;
381
+ }
382
+ if (rowLength + wordLength > columns && rowLength && wordLength) {
383
+ if (options.wordWrap === false && rowLength < columns) {
384
+ wrapWord(rows, word, columns);
385
+ rowLength = dist_default2(rows.at(-1) ?? "");
386
+ continue;
387
+ }
388
+ rows.push("");
389
+ rowLength = 0;
390
+ }
391
+ if (rowLength + wordLength > columns && options.wordWrap === false) {
392
+ wrapWord(rows, word, columns);
393
+ rowLength = dist_default2(rows.at(-1) ?? "");
394
+ continue;
395
+ }
396
+ rows[rows.length - 1] += word;
397
+ rowLength += wordLength;
398
+ }
399
+ if (options.trim !== false) {
400
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
401
+ }
402
+ const preString = rows.join("\n");
403
+ let inSurrogate = false;
404
+ for (let i = 0; i < preString.length; i++) {
405
+ const character = preString[i];
406
+ returnValue += character;
407
+ if (!inSurrogate) {
408
+ inSurrogate = character >= "\uD800" && character <= "\uDBFF";
409
+ } else {
410
+ continue;
411
+ }
412
+ if (character === ESC || character === CSI) {
413
+ GROUP_REGEX.lastIndex = i + 1;
414
+ const groupsResult = GROUP_REGEX.exec(preString);
415
+ const groups = groupsResult?.groups;
416
+ if (groups?.code !== void 0) {
417
+ const code = Number.parseFloat(groups.code);
418
+ escapeCode = code === END_CODE ? void 0 : code;
419
+ } else if (groups?.uri !== void 0) {
420
+ escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
421
+ }
422
+ }
423
+ if (preString[i + 1] === "\n") {
424
+ if (escapeUrl) {
425
+ returnValue += wrapAnsiHyperlink("");
426
+ }
427
+ const closingCode = escapeCode ? getClosingCode(escapeCode) : void 0;
428
+ if (escapeCode && closingCode) {
429
+ returnValue += wrapAnsiCode(closingCode);
430
+ }
431
+ } else if (character === "\n") {
432
+ if (escapeCode && getClosingCode(escapeCode)) {
433
+ returnValue += wrapAnsiCode(escapeCode);
434
+ }
435
+ if (escapeUrl) {
436
+ returnValue += wrapAnsiHyperlink(escapeUrl);
437
+ }
438
+ }
439
+ }
440
+ return returnValue;
441
+ };
442
+ CRLF_OR_LF = /\r?\n/;
443
+ }
444
+ });
445
+
40
446
  // node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
41
447
  var require_src = __commonJS({
42
448
  "node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
43
449
  "use strict";
44
- init_utils();
45
- var ESC = "\x1B";
46
- var CSI = `${ESC}[`;
450
+ init_utils2();
451
+ var ESC2 = "\x1B";
452
+ var CSI2 = `${ESC2}[`;
47
453
  var beep = "\x07";
48
454
  var cursor = {
49
- to(x2, y3) {
50
- if (!y3) return `${CSI}${x2 + 1}G`;
51
- return `${CSI}${y3 + 1};${x2 + 1}H`;
455
+ to(x, y2) {
456
+ if (!y2) return `${CSI2}${x + 1}G`;
457
+ return `${CSI2}${y2 + 1};${x + 1}H`;
52
458
  },
53
- move(x2, y3) {
459
+ move(x, y2) {
54
460
  let ret = "";
55
- if (x2 < 0) ret += `${CSI}${-x2}D`;
56
- else if (x2 > 0) ret += `${CSI}${x2}C`;
57
- if (y3 < 0) ret += `${CSI}${-y3}A`;
58
- else if (y3 > 0) ret += `${CSI}${y3}B`;
461
+ if (x < 0) ret += `${CSI2}${-x}D`;
462
+ else if (x > 0) ret += `${CSI2}${x}C`;
463
+ if (y2 < 0) ret += `${CSI2}${-y2}A`;
464
+ else if (y2 > 0) ret += `${CSI2}${y2}B`;
59
465
  return ret;
60
466
  },
61
- up: (count = 1) => `${CSI}${count}A`,
62
- down: (count = 1) => `${CSI}${count}B`,
63
- forward: (count = 1) => `${CSI}${count}C`,
64
- backward: (count = 1) => `${CSI}${count}D`,
65
- nextLine: (count = 1) => `${CSI}E`.repeat(count),
66
- prevLine: (count = 1) => `${CSI}F`.repeat(count),
67
- left: `${CSI}G`,
68
- hide: `${CSI}?25l`,
69
- show: `${CSI}?25h`,
70
- save: `${ESC}7`,
71
- restore: `${ESC}8`
467
+ up: (count = 1) => `${CSI2}${count}A`,
468
+ down: (count = 1) => `${CSI2}${count}B`,
469
+ forward: (count = 1) => `${CSI2}${count}C`,
470
+ backward: (count = 1) => `${CSI2}${count}D`,
471
+ nextLine: (count = 1) => `${CSI2}E`.repeat(count),
472
+ prevLine: (count = 1) => `${CSI2}F`.repeat(count),
473
+ left: `${CSI2}G`,
474
+ hide: `${CSI2}?25l`,
475
+ show: `${CSI2}?25h`,
476
+ save: `${ESC2}7`,
477
+ restore: `${ESC2}8`
72
478
  };
73
479
  var scroll = {
74
- up: (count = 1) => `${CSI}S`.repeat(count),
75
- down: (count = 1) => `${CSI}T`.repeat(count)
480
+ up: (count = 1) => `${CSI2}S`.repeat(count),
481
+ down: (count = 1) => `${CSI2}T`.repeat(count)
76
482
  };
77
483
  var erase = {
78
- screen: `${CSI}2J`,
79
- up: (count = 1) => `${CSI}1J`.repeat(count),
80
- down: (count = 1) => `${CSI}J`.repeat(count),
81
- line: `${CSI}2K`,
82
- lineEnd: `${CSI}K`,
83
- lineStart: `${CSI}1K`,
484
+ screen: `${CSI2}2J`,
485
+ up: (count = 1) => `${CSI2}1J`.repeat(count),
486
+ down: (count = 1) => `${CSI2}J`.repeat(count),
487
+ line: `${CSI2}2K`,
488
+ lineEnd: `${CSI2}K`,
489
+ lineStart: `${CSI2}1K`,
84
490
  lines(count) {
85
491
  let clear = "";
86
492
  for (let i = 0; i < count; i++)
@@ -94,709 +500,587 @@ var require_src = __commonJS({
94
500
  }
95
501
  });
96
502
 
97
- // node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
98
- var require_picocolors = __commonJS({
99
- "node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
100
- init_utils();
101
- var p2 = process || {};
102
- var argv = p2.argv || [];
103
- var env = p2.env || {};
104
- var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p2.platform === "win32" || (p2.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
105
- var formatter = (open, close, replace = open) => (input) => {
106
- let string = "" + input, index = string.indexOf(close, open.length);
107
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
108
- };
109
- var replaceClose = (string, close, replace, index) => {
110
- let result = "", cursor = 0;
111
- do {
112
- result += string.substring(cursor, index) + replace;
113
- cursor = index + close.length;
114
- index = string.indexOf(close, cursor);
115
- } while (~index);
116
- return result + string.substring(cursor);
117
- };
118
- var createColors = (enabled = isColorSupported) => {
119
- let f = enabled ? formatter : () => String;
120
- return {
121
- isColorSupported: enabled,
122
- reset: f("\x1B[0m", "\x1B[0m"),
123
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
124
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
125
- italic: f("\x1B[3m", "\x1B[23m"),
126
- underline: f("\x1B[4m", "\x1B[24m"),
127
- inverse: f("\x1B[7m", "\x1B[27m"),
128
- hidden: f("\x1B[8m", "\x1B[28m"),
129
- strikethrough: f("\x1B[9m", "\x1B[29m"),
130
- black: f("\x1B[30m", "\x1B[39m"),
131
- red: f("\x1B[31m", "\x1B[39m"),
132
- green: f("\x1B[32m", "\x1B[39m"),
133
- yellow: f("\x1B[33m", "\x1B[39m"),
134
- blue: f("\x1B[34m", "\x1B[39m"),
135
- magenta: f("\x1B[35m", "\x1B[39m"),
136
- cyan: f("\x1B[36m", "\x1B[39m"),
137
- white: f("\x1B[37m", "\x1B[39m"),
138
- gray: f("\x1B[90m", "\x1B[39m"),
139
- bgBlack: f("\x1B[40m", "\x1B[49m"),
140
- bgRed: f("\x1B[41m", "\x1B[49m"),
141
- bgGreen: f("\x1B[42m", "\x1B[49m"),
142
- bgYellow: f("\x1B[43m", "\x1B[49m"),
143
- bgBlue: f("\x1B[44m", "\x1B[49m"),
144
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
145
- bgCyan: f("\x1B[46m", "\x1B[49m"),
146
- bgWhite: f("\x1B[47m", "\x1B[49m"),
147
- blackBright: f("\x1B[90m", "\x1B[39m"),
148
- redBright: f("\x1B[91m", "\x1B[39m"),
149
- greenBright: f("\x1B[92m", "\x1B[39m"),
150
- yellowBright: f("\x1B[93m", "\x1B[39m"),
151
- blueBright: f("\x1B[94m", "\x1B[39m"),
152
- magentaBright: f("\x1B[95m", "\x1B[39m"),
153
- cyanBright: f("\x1B[96m", "\x1B[39m"),
154
- whiteBright: f("\x1B[97m", "\x1B[39m"),
155
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
156
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
157
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
158
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
159
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
160
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
161
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
162
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
163
- };
164
- };
165
- module.exports = createColors();
166
- module.exports.createColors = createColors;
167
- }
168
- });
169
-
170
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
171
- import { stdin as j, stdout as M } from "node:process";
172
- import * as g from "node:readline";
173
- import O from "node:readline";
174
- import { Writable as X } from "node:stream";
175
- function DD({ onlyFirst: e2 = false } = {}) {
176
- const t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
177
- return new RegExp(t, e2 ? void 0 : "g");
503
+ // node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs
504
+ import { styleText as y } from "node:util";
505
+ import { stdout as S, stdin as $ } from "node:process";
506
+ import * as _ from "node:readline";
507
+ import P from "node:readline";
508
+ import { ReadStream as D } from "node:tty";
509
+ function d(r, t2, e) {
510
+ if (!e.some((o) => !o.disabled)) return r;
511
+ const s = r + t2, i = Math.max(e.length - 1, 0), n = s < 0 ? i : s > i ? 0 : s;
512
+ return e[n].disabled ? d(n, t2 < 0 ? -1 : 1, e) : n;
178
513
  }
179
- function P(e2) {
180
- if (typeof e2 != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof e2}\``);
181
- return e2.replace(uD, "");
182
- }
183
- function L(e2) {
184
- return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
185
- }
186
- function p(e2, u2 = {}) {
187
- if (typeof e2 != "string" || e2.length === 0 || (u2 = { ambiguousIsNarrow: true, ...u2 }, e2 = P(e2), e2.length === 0)) return 0;
188
- e2 = e2.replace(sD(), " ");
189
- const t = u2.ambiguousIsNarrow ? 1 : 2;
190
- let F2 = 0;
191
- for (const s of e2) {
192
- const i = s.codePointAt(0);
193
- if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879) continue;
194
- switch (eD.eastAsianWidth(s)) {
195
- case "F":
196
- case "W":
197
- F2 += 2;
198
- break;
199
- case "A":
200
- F2 += t;
201
- break;
202
- default:
203
- F2 += 1;
204
- }
205
- }
206
- return F2;
207
- }
208
- function rD() {
209
- const e2 = /* @__PURE__ */ new Map();
210
- for (const [u2, t] of Object.entries(r)) {
211
- for (const [F2, s] of Object.entries(t)) r[F2] = { open: `\x1B[${s[0]}m`, close: `\x1B[${s[1]}m` }, t[F2] = r[F2], e2.set(s[0], s[1]);
212
- Object.defineProperty(r, u2, { value: t, enumerable: false });
213
- }
214
- return Object.defineProperty(r, "codes", { value: e2, enumerable: false }), r.color.close = "\x1B[39m", r.bgColor.close = "\x1B[49m", r.color.ansi = N(), r.color.ansi256 = I(), r.color.ansi16m = R(), r.bgColor.ansi = N(w), r.bgColor.ansi256 = I(w), r.bgColor.ansi16m = R(w), Object.defineProperties(r, { rgbToAnsi256: { value: (u2, t, F2) => u2 === t && t === F2 ? u2 < 8 ? 16 : u2 > 248 ? 231 : Math.round((u2 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(u2 / 255 * 5) + 6 * Math.round(t / 255 * 5) + Math.round(F2 / 255 * 5), enumerable: false }, hexToRgb: { value: (u2) => {
215
- const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u2.toString(16));
216
- if (!t) return [0, 0, 0];
217
- let [F2] = t;
218
- F2.length === 3 && (F2 = [...F2].map((i) => i + i).join(""));
219
- const s = Number.parseInt(F2, 16);
220
- return [s >> 16 & 255, s >> 8 & 255, s & 255];
221
- }, enumerable: false }, hexToAnsi256: { value: (u2) => r.rgbToAnsi256(...r.hexToRgb(u2)), enumerable: false }, ansi256ToAnsi: { value: (u2) => {
222
- if (u2 < 8) return 30 + u2;
223
- if (u2 < 16) return 90 + (u2 - 8);
224
- let t, F2, s;
225
- if (u2 >= 232) t = ((u2 - 232) * 10 + 8) / 255, F2 = t, s = t;
226
- else {
227
- u2 -= 16;
228
- const C2 = u2 % 36;
229
- t = Math.floor(u2 / 36) / 5, F2 = Math.floor(C2 / 6) / 5, s = C2 % 6 / 5;
230
- }
231
- const i = Math.max(t, F2, s) * 2;
232
- if (i === 0) return 30;
233
- let D2 = 30 + (Math.round(s) << 2 | Math.round(F2) << 1 | Math.round(t));
234
- return i === 2 && (D2 += 60), D2;
235
- }, enumerable: false }, rgbToAnsi: { value: (u2, t, F2) => r.ansi256ToAnsi(r.rgbToAnsi256(u2, t, F2)), enumerable: false }, hexToAnsi: { value: (u2) => r.ansi256ToAnsi(r.hexToAnsi256(u2)), enumerable: false } }), r;
236
- }
237
- function Y(e2, u2, t) {
238
- return String(e2).normalize().replace(/\r\n/g, `
239
- `).split(`
240
- `).map((F2) => lD(F2, u2, t)).join(`
241
- `);
242
- }
243
- function $(e2, u2) {
244
- if (typeof e2 == "string") return B.aliases.get(e2) === u2;
245
- for (const t of e2) if (t !== void 0 && $(t, u2)) return true;
514
+ function V(r, t2) {
515
+ if (typeof r == "string") return u.aliases.get(r) === t2;
516
+ for (const e of r) if (e !== void 0 && V(e, t2)) return true;
246
517
  return false;
247
518
  }
248
- function BD(e2, u2) {
249
- if (e2 === u2) return;
250
- const t = e2.split(`
251
- `), F2 = u2.split(`
252
- `), s = [];
253
- for (let i = 0; i < Math.max(t.length, F2.length); i++) t[i] !== F2[i] && s.push(i);
254
- return s;
519
+ function j(r, t2) {
520
+ if (r === t2) return;
521
+ const e = r.split(`
522
+ `), s = t2.split(`
523
+ `), i = Math.max(e.length, s.length), n = [];
524
+ for (let o = 0; o < i; o++) e[o] !== s[o] && n.push(o);
525
+ return { lines: n, numLinesBefore: e.length, numLinesAfter: s.length, numLines: i };
255
526
  }
256
- function pD(e2) {
257
- return e2 === S;
527
+ function q(r) {
528
+ return r === C;
258
529
  }
259
- function m(e2, u2) {
260
- const t = e2;
261
- t.isTTY && t.setRawMode(u2);
530
+ function w(r, t2) {
531
+ const e = r;
532
+ e.isTTY && e.setRawMode(t2);
262
533
  }
263
- function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2 = true } = {}) {
264
- const s = g.createInterface({ input: e2, output: u2, prompt: "", tabSize: 1 });
265
- g.emitKeypressEvents(e2, s), e2.isTTY && e2.setRawMode(true);
266
- const i = (D2, { name: C2, sequence: n }) => {
267
- const E = String(D2);
268
- if ($([E, C2, n], "cancel")) {
269
- F2 && u2.write(import_sisteransi.cursor.show), process.exit(0);
534
+ function z({ input: r = $, output: t2 = S, overwrite: e = true, hideCursor: s = true } = {}) {
535
+ const i = _.createInterface({ input: r, output: t2, prompt: "", tabSize: 1 });
536
+ _.emitKeypressEvents(r, i), r instanceof D && r.isTTY && r.setRawMode(true);
537
+ const n = (o, { name: a, sequence: h }) => {
538
+ const l = String(o);
539
+ if (V([l, a, h], "cancel")) {
540
+ s && t2.write(import_sisteransi.cursor.show), process.exit(0);
270
541
  return;
271
542
  }
272
- if (!t) return;
273
- const a = C2 === "return" ? 0 : -1, o2 = C2 === "return" ? -1 : 0;
274
- g.moveCursor(u2, a, o2, () => {
275
- g.clearLine(u2, 1, () => {
276
- e2.once("keypress", i);
543
+ if (!e) return;
544
+ const f = a === "return" ? 0 : -1, v = a === "return" ? -1 : 0;
545
+ _.moveCursor(t2, f, v, () => {
546
+ _.clearLine(t2, 1, () => {
547
+ r.once("keypress", n);
277
548
  });
278
549
  });
279
550
  };
280
- return F2 && u2.write(import_sisteransi.cursor.hide), e2.once("keypress", i), () => {
281
- e2.off("keypress", i), F2 && u2.write(import_sisteransi.cursor.show), e2.isTTY && !AD && e2.setRawMode(false), s.terminal = false, s.close();
551
+ return s && t2.write(import_sisteransi.cursor.hide), r.once("keypress", n), () => {
552
+ r.off("keypress", n), s && t2.write(import_sisteransi.cursor.show), r instanceof D && r.isTTY && !Y && r.setRawMode(false), i.terminal = false, i.close();
282
553
  };
283
554
  }
284
- var import_sisteransi, import_picocolors, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, OD, PD, J, LD, RD;
285
- var init_dist = __esm({
286
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
287
- init_utils();
555
+ function R(r, t2, e, s = e) {
556
+ const i = O(r ?? S);
557
+ return wrapAnsi(t2, i - e.length, { hard: true, trim: false }).split(`
558
+ `).map((n, o) => `${o === 0 ? s : e}${n}`).join(`
559
+ `);
560
+ }
561
+ var import_sisteransi, E, G, u, Y, C, O, A, p, Q, nt, at;
562
+ var init_dist3 = __esm({
563
+ "node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs"() {
564
+ init_utils2();
565
+ init_main();
288
566
  import_sisteransi = __toESM(require_src(), 1);
289
- import_picocolors = __toESM(require_picocolors(), 1);
290
- uD = DD();
291
- W = { exports: {} };
292
- (function(e2) {
293
- var u2 = {};
294
- e2.exports = u2, u2.eastAsianWidth = function(F2) {
295
- var s = F2.charCodeAt(0), i = F2.length == 2 ? F2.charCodeAt(1) : 0, D2 = s;
296
- return 55296 <= s && s <= 56319 && 56320 <= i && i <= 57343 && (s &= 1023, i &= 1023, D2 = s << 10 | i, D2 += 65536), D2 == 12288 || 65281 <= D2 && D2 <= 65376 || 65504 <= D2 && D2 <= 65510 ? "F" : D2 == 8361 || 65377 <= D2 && D2 <= 65470 || 65474 <= D2 && D2 <= 65479 || 65482 <= D2 && D2 <= 65487 || 65490 <= D2 && D2 <= 65495 || 65498 <= D2 && D2 <= 65500 || 65512 <= D2 && D2 <= 65518 ? "H" : 4352 <= D2 && D2 <= 4447 || 4515 <= D2 && D2 <= 4519 || 4602 <= D2 && D2 <= 4607 || 9001 <= D2 && D2 <= 9002 || 11904 <= D2 && D2 <= 11929 || 11931 <= D2 && D2 <= 12019 || 12032 <= D2 && D2 <= 12245 || 12272 <= D2 && D2 <= 12283 || 12289 <= D2 && D2 <= 12350 || 12353 <= D2 && D2 <= 12438 || 12441 <= D2 && D2 <= 12543 || 12549 <= D2 && D2 <= 12589 || 12593 <= D2 && D2 <= 12686 || 12688 <= D2 && D2 <= 12730 || 12736 <= D2 && D2 <= 12771 || 12784 <= D2 && D2 <= 12830 || 12832 <= D2 && D2 <= 12871 || 12880 <= D2 && D2 <= 13054 || 13056 <= D2 && D2 <= 19903 || 19968 <= D2 && D2 <= 42124 || 42128 <= D2 && D2 <= 42182 || 43360 <= D2 && D2 <= 43388 || 44032 <= D2 && D2 <= 55203 || 55216 <= D2 && D2 <= 55238 || 55243 <= D2 && D2 <= 55291 || 63744 <= D2 && D2 <= 64255 || 65040 <= D2 && D2 <= 65049 || 65072 <= D2 && D2 <= 65106 || 65108 <= D2 && D2 <= 65126 || 65128 <= D2 && D2 <= 65131 || 110592 <= D2 && D2 <= 110593 || 127488 <= D2 && D2 <= 127490 || 127504 <= D2 && D2 <= 127546 || 127552 <= D2 && D2 <= 127560 || 127568 <= D2 && D2 <= 127569 || 131072 <= D2 && D2 <= 194367 || 177984 <= D2 && D2 <= 196605 || 196608 <= D2 && D2 <= 262141 ? "W" : 32 <= D2 && D2 <= 126 || 162 <= D2 && D2 <= 163 || 165 <= D2 && D2 <= 166 || D2 == 172 || D2 == 175 || 10214 <= D2 && D2 <= 10221 || 10629 <= D2 && D2 <= 10630 ? "Na" : D2 == 161 || D2 == 164 || 167 <= D2 && D2 <= 168 || D2 == 170 || 173 <= D2 && D2 <= 174 || 176 <= D2 && D2 <= 180 || 182 <= D2 && D2 <= 186 || 188 <= D2 && D2 <= 191 || D2 == 198 || D2 == 208 || 215 <= D2 && D2 <= 216 || 222 <= D2 && D2 <= 225 || D2 == 230 || 232 <= D2 && D2 <= 234 || 236 <= D2 && D2 <= 237 || D2 == 240 || 242 <= D2 && D2 <= 243 || 247 <= D2 && D2 <= 250 || D2 == 252 || D2 == 254 || D2 == 257 || D2 == 273 || D2 == 275 || D2 == 283 || 294 <= D2 && D2 <= 295 || D2 == 299 || 305 <= D2 && D2 <= 307 || D2 == 312 || 319 <= D2 && D2 <= 322 || D2 == 324 || 328 <= D2 && D2 <= 331 || D2 == 333 || 338 <= D2 && D2 <= 339 || 358 <= D2 && D2 <= 359 || D2 == 363 || D2 == 462 || D2 == 464 || D2 == 466 || D2 == 468 || D2 == 470 || D2 == 472 || D2 == 474 || D2 == 476 || D2 == 593 || D2 == 609 || D2 == 708 || D2 == 711 || 713 <= D2 && D2 <= 715 || D2 == 717 || D2 == 720 || 728 <= D2 && D2 <= 731 || D2 == 733 || D2 == 735 || 768 <= D2 && D2 <= 879 || 913 <= D2 && D2 <= 929 || 931 <= D2 && D2 <= 937 || 945 <= D2 && D2 <= 961 || 963 <= D2 && D2 <= 969 || D2 == 1025 || 1040 <= D2 && D2 <= 1103 || D2 == 1105 || D2 == 8208 || 8211 <= D2 && D2 <= 8214 || 8216 <= D2 && D2 <= 8217 || 8220 <= D2 && D2 <= 8221 || 8224 <= D2 && D2 <= 8226 || 8228 <= D2 && D2 <= 8231 || D2 == 8240 || 8242 <= D2 && D2 <= 8243 || D2 == 8245 || D2 == 8251 || D2 == 8254 || D2 == 8308 || D2 == 8319 || 8321 <= D2 && D2 <= 8324 || D2 == 8364 || D2 == 8451 || D2 == 8453 || D2 == 8457 || D2 == 8467 || D2 == 8470 || 8481 <= D2 && D2 <= 8482 || D2 == 8486 || D2 == 8491 || 8531 <= D2 && D2 <= 8532 || 8539 <= D2 && D2 <= 8542 || 8544 <= D2 && D2 <= 8555 || 8560 <= D2 && D2 <= 8569 || D2 == 8585 || 8592 <= D2 && D2 <= 8601 || 8632 <= D2 && D2 <= 8633 || D2 == 8658 || D2 == 8660 || D2 == 8679 || D2 == 8704 || 8706 <= D2 && D2 <= 8707 || 8711 <= D2 && D2 <= 8712 || D2 == 8715 || D2 == 8719 || D2 == 8721 || D2 == 8725 || D2 == 8730 || 8733 <= D2 && D2 <= 8736 || D2 == 8739 || D2 == 8741 || 8743 <= D2 && D2 <= 8748 || D2 == 8750 || 8756 <= D2 && D2 <= 8759 || 8764 <= D2 && D2 <= 8765 || D2 == 8776 || D2 == 8780 || D2 == 8786 || 8800 <= D2 && D2 <= 8801 || 8804 <= D2 && D2 <= 8807 || 8810 <= D2 && D2 <= 8811 || 8814 <= D2 && D2 <= 8815 || 8834 <= D2 && D2 <= 8835 || 8838 <= D2 && D2 <= 8839 || D2 == 8853 || D2 == 8857 || D2 == 8869 || D2 == 8895 || D2 == 8978 || 9312 <= D2 && D2 <= 9449 || 9451 <= D2 && D2 <= 9547 || 9552 <= D2 && D2 <= 9587 || 9600 <= D2 && D2 <= 9615 || 9618 <= D2 && D2 <= 9621 || 9632 <= D2 && D2 <= 9633 || 9635 <= D2 && D2 <= 9641 || 9650 <= D2 && D2 <= 9651 || 9654 <= D2 && D2 <= 9655 || 9660 <= D2 && D2 <= 9661 || 9664 <= D2 && D2 <= 9665 || 9670 <= D2 && D2 <= 9672 || D2 == 9675 || 9678 <= D2 && D2 <= 9681 || 9698 <= D2 && D2 <= 9701 || D2 == 9711 || 9733 <= D2 && D2 <= 9734 || D2 == 9737 || 9742 <= D2 && D2 <= 9743 || 9748 <= D2 && D2 <= 9749 || D2 == 9756 || D2 == 9758 || D2 == 9792 || D2 == 9794 || 9824 <= D2 && D2 <= 9825 || 9827 <= D2 && D2 <= 9829 || 9831 <= D2 && D2 <= 9834 || 9836 <= D2 && D2 <= 9837 || D2 == 9839 || 9886 <= D2 && D2 <= 9887 || 9918 <= D2 && D2 <= 9919 || 9924 <= D2 && D2 <= 9933 || 9935 <= D2 && D2 <= 9953 || D2 == 9955 || 9960 <= D2 && D2 <= 9983 || D2 == 10045 || D2 == 10071 || 10102 <= D2 && D2 <= 10111 || 11093 <= D2 && D2 <= 11097 || 12872 <= D2 && D2 <= 12879 || 57344 <= D2 && D2 <= 63743 || 65024 <= D2 && D2 <= 65039 || D2 == 65533 || 127232 <= D2 && D2 <= 127242 || 127248 <= D2 && D2 <= 127277 || 127280 <= D2 && D2 <= 127337 || 127344 <= D2 && D2 <= 127386 || 917760 <= D2 && D2 <= 917999 || 983040 <= D2 && D2 <= 1048573 || 1048576 <= D2 && D2 <= 1114109 ? "A" : "N";
297
- }, u2.characterLength = function(F2) {
298
- var s = this.eastAsianWidth(F2);
299
- return s == "F" || s == "W" || s == "A" ? 2 : 1;
300
- };
301
- function t(F2) {
302
- return F2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
303
- }
304
- u2.length = function(F2) {
305
- for (var s = t(F2), i = 0, D2 = 0; D2 < s.length; D2++) i = i + this.characterLength(s[D2]);
306
- return i;
307
- }, u2.slice = function(F2, s, i) {
308
- textLen = u2.length(F2), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
309
- for (var D2 = "", C2 = 0, n = t(F2), E = 0; E < n.length; E++) {
310
- var a = n[E], o2 = u2.length(a);
311
- if (C2 >= s - (o2 == 2 ? 1 : 0)) if (C2 + o2 <= i) D2 += a;
312
- else break;
313
- C2 += o2;
314
- }
315
- return D2;
316
- };
317
- })(W);
318
- tD = W.exports;
319
- eD = L(tD);
320
- FD = function() {
321
- return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
322
- };
323
- sD = L(FD);
324
- w = 10;
325
- N = (e2 = 0) => (u2) => `\x1B[${u2 + e2}m`;
326
- I = (e2 = 0) => (u2) => `\x1B[${38 + e2};5;${u2}m`;
327
- R = (e2 = 0) => (u2, t, F2) => `\x1B[${38 + e2};2;${u2};${t};${F2}m`;
328
- r = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], 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], gray: [90, 39], grey: [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], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
329
- Object.keys(r.modifier);
330
- iD = Object.keys(r.color);
331
- CD = Object.keys(r.bgColor);
332
- [...iD, ...CD];
333
- ED = rD();
334
- d = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
335
- oD = 39;
336
- y = "\x07";
337
- V = "[";
338
- nD = "]";
339
- G = "m";
340
- _ = `${nD}8;;`;
341
- z = (e2) => `${d.values().next().value}${V}${e2}${G}`;
342
- K = (e2) => `${d.values().next().value}${_}${e2}${y}`;
343
- aD = (e2) => e2.split(" ").map((u2) => p(u2));
344
- k = (e2, u2, t) => {
345
- const F2 = [...u2];
346
- let s = false, i = false, D2 = p(P(e2[e2.length - 1]));
347
- for (const [C2, n] of F2.entries()) {
348
- const E = p(n);
349
- if (D2 + E <= t ? e2[e2.length - 1] += n : (e2.push(n), D2 = 0), d.has(n) && (s = true, i = F2.slice(C2 + 1).join("").startsWith(_)), s) {
350
- i ? n === y && (s = false, i = false) : n === G && (s = false);
351
- continue;
352
- }
353
- D2 += E, D2 === t && C2 < F2.length - 1 && (e2.push(""), D2 = 0);
354
- }
355
- !D2 && e2[e2.length - 1].length > 0 && e2.length > 1 && (e2[e2.length - 2] += e2.pop());
356
- };
357
- hD = (e2) => {
358
- const u2 = e2.split(" ");
359
- let t = u2.length;
360
- for (; t > 0 && !(p(u2[t - 1]) > 0); ) t--;
361
- return t === u2.length ? e2 : u2.slice(0, t).join(" ") + u2.slice(t).join("");
362
- };
363
- lD = (e2, u2, t = {}) => {
364
- if (t.trim !== false && e2.trim() === "") return "";
365
- let F2 = "", s, i;
366
- const D2 = aD(e2);
367
- let C2 = [""];
368
- for (const [E, a] of e2.split(" ").entries()) {
369
- t.trim !== false && (C2[C2.length - 1] = C2[C2.length - 1].trimStart());
370
- let o2 = p(C2[C2.length - 1]);
371
- if (E !== 0 && (o2 >= u2 && (t.wordWrap === false || t.trim === false) && (C2.push(""), o2 = 0), (o2 > 0 || t.trim === false) && (C2[C2.length - 1] += " ", o2++)), t.hard && D2[E] > u2) {
372
- const c = u2 - o2, f = 1 + Math.floor((D2[E] - c - 1) / u2);
373
- Math.floor((D2[E] - 1) / u2) < f && C2.push(""), k(C2, a, u2);
374
- continue;
375
- }
376
- if (o2 + D2[E] > u2 && o2 > 0 && D2[E] > 0) {
377
- if (t.wordWrap === false && o2 < u2) {
378
- k(C2, a, u2);
379
- continue;
380
- }
381
- C2.push("");
382
- }
383
- if (o2 + D2[E] > u2 && t.wordWrap === false) {
384
- k(C2, a, u2);
385
- continue;
386
- }
387
- C2[C2.length - 1] += a;
388
- }
389
- t.trim !== false && (C2 = C2.map((E) => hD(E)));
390
- const n = [...C2.join(`
391
- `)];
392
- for (const [E, a] of n.entries()) {
393
- if (F2 += a, d.has(a)) {
394
- const { groups: c } = new RegExp(`(?:\\${V}(?<code>\\d+)m|\\${_}(?<uri>.*)${y})`).exec(n.slice(E).join("")) || { groups: {} };
395
- if (c.code !== void 0) {
396
- const f = Number.parseFloat(c.code);
397
- s = f === oD ? void 0 : f;
398
- } else c.uri !== void 0 && (i = c.uri.length === 0 ? void 0 : c.uri);
399
- }
400
- const o2 = ED.codes.get(Number(s));
401
- n[E + 1] === `
402
- ` ? (i && (F2 += K("")), s && o2 && (F2 += z(o2))) : a === `
403
- ` && (s && o2 && (F2 += z(s)), i && (F2 += K(i)));
404
- }
405
- return F2;
406
- };
407
- xD = ["up", "down", "left", "right", "space", "enter", "cancel"];
408
- B = { actions: new Set(xD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
409
- AD = globalThis.process.platform.startsWith("win");
410
- S = /* @__PURE__ */ Symbol("clack:cancel");
411
- gD = Object.defineProperty;
412
- vD = (e2, u2, t) => u2 in e2 ? gD(e2, u2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[u2] = t;
413
- h = (e2, u2, t) => (vD(e2, typeof u2 != "symbol" ? u2 + "" : u2, t), t);
414
- x = class {
415
- constructor(u2, t = true) {
416
- h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
417
- const { input: F2 = j, output: s = M, render: i, signal: D2, ...C2 } = u2;
418
- this.opts = C2, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = i.bind(this), this._track = t, this._abortSignal = D2, this.input = F2, this.output = s;
567
+ E = ["up", "down", "left", "right", "space", "enter", "cancel"];
568
+ G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
569
+ u = { actions: new Set(E), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" }, withGuide: true, date: { monthNames: [...G], messages: { required: "Please enter a valid date", invalidMonth: "There are only 12 months in a year", invalidDay: (r, t2) => `There are only ${r} days in ${t2}`, afterMin: (r) => `Date must be on or after ${r.toISOString().slice(0, 10)}`, beforeMax: (r) => `Date must be on or before ${r.toISOString().slice(0, 10)}` } } };
570
+ Y = globalThis.process.platform.startsWith("win");
571
+ C = /* @__PURE__ */ Symbol("clack:cancel");
572
+ O = (r) => "columns" in r && typeof r.columns == "number" ? r.columns : 80;
573
+ A = (r) => "rows" in r && typeof r.rows == "number" ? r.rows : 20;
574
+ p = class {
575
+ input;
576
+ output;
577
+ _abortSignal;
578
+ rl;
579
+ opts;
580
+ _render;
581
+ _track = false;
582
+ _prevFrame = "";
583
+ _subscribers = /* @__PURE__ */ new Map();
584
+ _cursor = 0;
585
+ state = "initial";
586
+ error = "";
587
+ value;
588
+ userInput = "";
589
+ constructor(t2, e = true) {
590
+ const { input: s = $, output: i = S, render: n, signal: o, ...a } = t2;
591
+ this.opts = a, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = n.bind(this), this._track = e, this._abortSignal = o, this.input = s, this.output = i;
419
592
  }
420
593
  unsubscribe() {
421
594
  this._subscribers.clear();
422
595
  }
423
- setSubscriber(u2, t) {
424
- const F2 = this._subscribers.get(u2) ?? [];
425
- F2.push(t), this._subscribers.set(u2, F2);
596
+ setSubscriber(t2, e) {
597
+ const s = this._subscribers.get(t2) ?? [];
598
+ s.push(e), this._subscribers.set(t2, s);
426
599
  }
427
- on(u2, t) {
428
- this.setSubscriber(u2, { cb: t });
600
+ on(t2, e) {
601
+ this.setSubscriber(t2, { cb: e });
429
602
  }
430
- once(u2, t) {
431
- this.setSubscriber(u2, { cb: t, once: true });
603
+ once(t2, e) {
604
+ this.setSubscriber(t2, { cb: e, once: true });
432
605
  }
433
- emit(u2, ...t) {
434
- const F2 = this._subscribers.get(u2) ?? [], s = [];
435
- for (const i of F2) i.cb(...t), i.once && s.push(() => F2.splice(F2.indexOf(i), 1));
436
- for (const i of s) i();
606
+ emit(t2, ...e) {
607
+ const s = this._subscribers.get(t2) ?? [], i = [];
608
+ for (const n of s) n.cb(...e), n.once && i.push(() => s.splice(s.indexOf(n), 1));
609
+ for (const n of i) n();
437
610
  }
438
611
  prompt() {
439
- return new Promise((u2, t) => {
612
+ return new Promise((t2) => {
440
613
  if (this._abortSignal) {
441
- if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u2(S);
614
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), t2(C);
442
615
  this._abortSignal.addEventListener("abort", () => {
443
616
  this.state = "cancel", this.close();
444
617
  }, { once: true });
445
618
  }
446
- const F2 = new X();
447
- F2._write = (s, i, D2) => {
448
- this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D2();
449
- }, this.input.pipe(F2), this.rl = O.createInterface({ input: this.input, output: F2, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), O.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), m(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
450
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u2(this.value);
619
+ this.rl = P.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, true), this.input.on("keypress", this.onKeypress), w(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
620
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), w(this.input, false), t2(this.value);
451
621
  }), this.once("cancel", () => {
452
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u2(S);
622
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), w(this.input, false), t2(C);
453
623
  });
454
624
  });
455
625
  }
456
- onKeypress(u2, t) {
457
- if (this.state === "error" && (this.state = "active"), t?.name && (!this._track && B.aliases.has(t.name) && this.emit("cursor", B.aliases.get(t.name)), B.actions.has(t.name) && this.emit("cursor", t.name)), u2 && (u2.toLowerCase() === "y" || u2.toLowerCase() === "n") && this.emit("confirm", u2.toLowerCase() === "y"), u2 === " " && this.opts.placeholder && (this.value || (this.rl?.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u2 && this.emit("key", u2.toLowerCase()), t?.name === "return") {
626
+ _isActionKey(t2, e) {
627
+ return t2 === " ";
628
+ }
629
+ _setValue(t2) {
630
+ this.value = t2, this.emit("value", this.value);
631
+ }
632
+ _setUserInput(t2, e) {
633
+ this.userInput = t2 ?? "", this.emit("userInput", this.userInput), e && this._track && this.rl && (this.rl.write(this.userInput), this._cursor = this.rl.cursor);
634
+ }
635
+ _clearUserInput() {
636
+ this.rl?.write(null, { ctrl: true, name: "u" }), this._setUserInput("");
637
+ }
638
+ onKeypress(t2, e) {
639
+ if (this._track && e.name !== "return" && (e.name && this._isActionKey(t2, e) && this.rl?.write(null, { ctrl: true, name: "h" }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), e?.name && (!this._track && u.aliases.has(e.name) && this.emit("cursor", u.aliases.get(e.name)), u.actions.has(e.name) && this.emit("cursor", e.name)), t2 && (t2.toLowerCase() === "y" || t2.toLowerCase() === "n") && this.emit("confirm", t2.toLowerCase() === "y"), this.emit("key", t2?.toLowerCase(), e), e?.name === "return") {
458
640
  if (this.opts.validate) {
459
- const F2 = this.opts.validate(this.value);
460
- F2 && (this.error = F2 instanceof Error ? F2.message : F2, this.state = "error", this.rl?.write(this.value));
641
+ const s = this.opts.validate(this.value);
642
+ s && (this.error = s instanceof Error ? s.message : s, this.state = "error", this.rl?.write(this.userInput));
461
643
  }
462
644
  this.state !== "error" && (this.state = "submit");
463
645
  }
464
- $([u2, t?.name, t?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
646
+ V([t2, e?.name, e?.sequence], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
465
647
  }
466
648
  close() {
467
649
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
468
- `), m(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
650
+ `), w(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
469
651
  }
470
652
  restoreCursor() {
471
- const u2 = Y(this._prevFrame, process.stdout.columns, { hard: true }).split(`
653
+ const t2 = wrapAnsi(this._prevFrame, process.stdout.columns, { hard: true, trim: false }).split(`
472
654
  `).length - 1;
473
- this.output.write(import_sisteransi.cursor.move(-999, u2 * -1));
655
+ this.output.write(import_sisteransi.cursor.move(-999, t2 * -1));
474
656
  }
475
657
  render() {
476
- const u2 = Y(this._render(this) ?? "", process.stdout.columns, { hard: true });
477
- if (u2 !== this._prevFrame) {
658
+ const t2 = wrapAnsi(this._render(this) ?? "", process.stdout.columns, { hard: true, trim: false });
659
+ if (t2 !== this._prevFrame) {
478
660
  if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
479
661
  else {
480
- const t = BD(this._prevFrame, u2);
481
- if (this.restoreCursor(), t && t?.length === 1) {
482
- const F2 = t[0];
483
- this.output.write(import_sisteransi.cursor.move(0, F2)), this.output.write(import_sisteransi.erase.lines(1));
484
- const s = u2.split(`
662
+ const e = j(this._prevFrame, t2), s = A(this.output);
663
+ if (this.restoreCursor(), e) {
664
+ const i = Math.max(0, e.numLinesAfter - s), n = Math.max(0, e.numLinesBefore - s);
665
+ let o = e.lines.find((a) => a >= i);
666
+ if (o === void 0) {
667
+ this._prevFrame = t2;
668
+ return;
669
+ }
670
+ if (e.lines.length === 1) {
671
+ this.output.write(import_sisteransi.cursor.move(0, o - n)), this.output.write(import_sisteransi.erase.lines(1));
672
+ const a = t2.split(`
485
673
  `);
486
- this.output.write(s[F2]), this._prevFrame = u2, this.output.write(import_sisteransi.cursor.move(0, s.length - F2 - 1));
487
- return;
488
- }
489
- if (t && t?.length > 1) {
490
- const F2 = t[0];
491
- this.output.write(import_sisteransi.cursor.move(0, F2)), this.output.write(import_sisteransi.erase.down());
492
- const s = u2.split(`
493
- `).slice(F2);
494
- this.output.write(s.join(`
495
- `)), this._prevFrame = u2;
496
- return;
674
+ this.output.write(a[o]), this._prevFrame = t2, this.output.write(import_sisteransi.cursor.move(0, a.length - o - 1));
675
+ return;
676
+ } else if (e.lines.length > 1) {
677
+ if (i < n) o = i;
678
+ else {
679
+ const h = o - n;
680
+ h > 0 && this.output.write(import_sisteransi.cursor.move(0, h));
681
+ }
682
+ this.output.write(import_sisteransi.erase.down());
683
+ const a = t2.split(`
684
+ `).slice(o);
685
+ this.output.write(a.join(`
686
+ `)), this._prevFrame = t2;
687
+ return;
688
+ }
497
689
  }
498
690
  this.output.write(import_sisteransi.erase.down());
499
691
  }
500
- this.output.write(u2), this.state === "initial" && (this.state = "active"), this._prevFrame = u2;
692
+ this.output.write(t2), this.state === "initial" && (this.state = "active"), this._prevFrame = t2;
501
693
  }
502
694
  }
503
695
  };
504
- dD = class extends x {
696
+ Q = class extends p {
505
697
  get cursor() {
506
698
  return this.value ? 0 : 1;
507
699
  }
508
700
  get _value() {
509
701
  return this.cursor === 0;
510
702
  }
511
- constructor(u2) {
512
- super(u2, false), this.value = !!u2.initialValue, this.on("value", () => {
703
+ constructor(t2) {
704
+ super(t2, false), this.value = !!t2.initialValue, this.on("userInput", () => {
513
705
  this.value = this._value;
514
- }), this.on("confirm", (t) => {
515
- this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = t, this.state = "submit", this.close();
706
+ }), this.on("confirm", (e) => {
707
+ this.output.write(import_sisteransi.cursor.move(0, -1)), this.value = e, this.state = "submit", this.close();
516
708
  }), this.on("cursor", () => {
517
709
  this.value = !this.value;
518
710
  });
519
711
  }
520
712
  };
521
- A = /* @__PURE__ */ new WeakMap();
522
- OD = Object.defineProperty;
523
- PD = (e2, u2, t) => u2 in e2 ? OD(e2, u2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[u2] = t;
524
- J = (e2, u2, t) => (PD(e2, typeof u2 != "symbol" ? u2 + "" : u2, t), t);
525
- LD = class extends x {
526
- constructor(u2) {
527
- super(u2, false), J(this, "options"), J(this, "cursor", 0), this.options = u2.options, this.cursor = this.options.findIndex(({ value: t }) => t === u2.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (t) => {
528
- switch (t) {
713
+ nt = class extends p {
714
+ options;
715
+ cursor = 0;
716
+ get _selectedValue() {
717
+ return this.options[this.cursor];
718
+ }
719
+ changeValue() {
720
+ this.value = this._selectedValue.value;
721
+ }
722
+ constructor(t2) {
723
+ super(t2, false), this.options = t2.options;
724
+ const e = this.options.findIndex(({ value: i }) => i === t2.initialValue), s = e === -1 ? 0 : e;
725
+ this.cursor = this.options[s].disabled ? d(s, 1, this.options) : s, this.changeValue(), this.on("cursor", (i) => {
726
+ switch (i) {
529
727
  case "left":
530
728
  case "up":
531
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
729
+ this.cursor = d(this.cursor, -1, this.options);
532
730
  break;
533
731
  case "down":
534
732
  case "right":
535
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
733
+ this.cursor = d(this.cursor, 1, this.options);
536
734
  break;
537
735
  }
538
736
  this.changeValue();
539
737
  });
540
738
  }
541
- get _value() {
542
- return this.options[this.cursor];
543
- }
544
- changeValue() {
545
- this.value = this._value.value;
546
- }
547
739
  };
548
- RD = class extends x {
549
- get valueWithCursor() {
550
- if (this.state === "submit") return this.value;
551
- if (this.cursor >= this.value.length) return `${this.value}\u2588`;
552
- const u2 = this.value.slice(0, this.cursor), [t, ...F2] = this.value.slice(this.cursor);
553
- return `${u2}${import_picocolors.default.inverse(t)}${F2.join("")}`;
740
+ at = class extends p {
741
+ get userInputWithCursor() {
742
+ if (this.state === "submit") return this.userInput;
743
+ const t2 = this.userInput;
744
+ if (this.cursor >= t2.length) return `${this.userInput}\u2588`;
745
+ const e = t2.slice(0, this.cursor), [s, ...i] = t2.slice(this.cursor);
746
+ return `${e}${y("inverse", s)}${i.join("")}`;
554
747
  }
555
748
  get cursor() {
556
749
  return this._cursor;
557
750
  }
558
- constructor(u2) {
559
- super(u2), this.on("finalize", () => {
560
- this.value || (this.value = u2.defaultValue);
751
+ constructor(t2) {
752
+ super({ ...t2, initialUserInput: t2.initialUserInput ?? t2.initialValue }), this.on("userInput", (e) => {
753
+ this._setValue(e);
754
+ }), this.on("finalize", () => {
755
+ this.value || (this.value = t2.defaultValue), this.value === void 0 && (this.value = "");
561
756
  });
562
757
  }
563
758
  };
564
759
  }
565
760
  });
566
761
 
567
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs
568
- import { stripVTControlCharacters as S2 } from "node:util";
569
- import y2 from "node:process";
570
- function ce() {
571
- return y2.platform !== "win32" ? y2.env.TERM !== "linux" : !!y2.env.CI || !!y2.env.WT_SESSION || !!y2.env.TERMINUS_SUBLIME || y2.env.ConEmuTask === "{cmd::Cmder}" || y2.env.TERM_PROGRAM === "Terminus-Sublime" || y2.env.TERM_PROGRAM === "vscode" || y2.env.TERM === "xterm-256color" || y2.env.TERM === "alacritty" || y2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
762
+ // node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs
763
+ import { styleText as t, stripVTControlCharacters as ne } from "node:util";
764
+ import P2 from "node:process";
765
+ import { existsSync as Xe, lstatSync as we, readdirSync as ze } from "node:fs";
766
+ import { dirname as be, join as Qe } from "node:path";
767
+ function Ze() {
768
+ return P2.platform !== "win32" ? P2.env.TERM !== "linux" : !!P2.env.CI || !!P2.env.WT_SESSION || !!P2.env.TERMINUS_SUBLIME || P2.env.ConEmuTask === "{cmd::Cmder}" || P2.env.TERM_PROGRAM === "Terminus-Sublime" || P2.env.TERM_PROGRAM === "vscode" || P2.env.TERM === "xterm-256color" || P2.env.TERM === "alacritty" || P2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
572
769
  }
573
- var import_picocolors2, import_sisteransi2, V2, u, le, L2, W2, C, ue, o, d2, k2, P2, A2, T, F, $e, _2, me, de, pe, q, D, U, K2, b2, G2, he, ye, ve, Me, xe, Ie, Se, M2, J2, Y2;
574
- var init_dist2 = __esm({
575
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs"() {
576
- init_utils();
577
- init_dist();
578
- init_dist();
579
- import_picocolors2 = __toESM(require_picocolors(), 1);
770
+ var import_sisteransi2, ee, ae, w2, _e, oe, ue, F, le, d2, E2, Ie, Ee, z2, H2, te, U, J, xe, se, ce, Ge, $e, de, Oe, he, pe, me, ge, V2, ye, et2, Y2, ot2, O2, pt, mt, gt, ft, vt, wt, Ct, fe, Ve, re, _t, je, Ot;
771
+ var init_dist4 = __esm({
772
+ "node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs"() {
773
+ init_utils2();
774
+ init_dist3();
775
+ init_dist3();
776
+ init_main();
777
+ init_dist2();
580
778
  import_sisteransi2 = __toESM(require_src(), 1);
581
- V2 = ce();
582
- u = (t, n) => V2 ? t : n;
583
- le = u("\u25C6", "*");
584
- L2 = u("\u25A0", "x");
585
- W2 = u("\u25B2", "x");
586
- C = u("\u25C7", "o");
587
- ue = u("\u250C", "T");
588
- o = u("\u2502", "|");
589
- d2 = u("\u2514", "\u2014");
590
- k2 = u("\u25CF", ">");
591
- P2 = u("\u25CB", " ");
592
- A2 = u("\u25FB", "[\u2022]");
593
- T = u("\u25FC", "[+]");
594
- F = u("\u25FB", "[ ]");
595
- $e = u("\u25AA", "\u2022");
596
- _2 = u("\u2500", "-");
597
- me = u("\u256E", "+");
598
- de = u("\u251C", "+");
599
- pe = u("\u256F", "+");
600
- q = u("\u25CF", "\u2022");
601
- D = u("\u25C6", "*");
602
- U = u("\u25B2", "!");
603
- K2 = u("\u25A0", "x");
604
- b2 = (t) => {
605
- switch (t) {
779
+ ee = Ze();
780
+ ae = () => process.env.CI === "true";
781
+ w2 = (e, i) => ee ? e : i;
782
+ _e = w2("\u25C6", "*");
783
+ oe = w2("\u25A0", "x");
784
+ ue = w2("\u25B2", "x");
785
+ F = w2("\u25C7", "o");
786
+ le = w2("\u250C", "T");
787
+ d2 = w2("\u2502", "|");
788
+ E2 = w2("\u2514", "\u2014");
789
+ Ie = w2("\u2510", "T");
790
+ Ee = w2("\u2518", "\u2014");
791
+ z2 = w2("\u25CF", ">");
792
+ H2 = w2("\u25CB", " ");
793
+ te = w2("\u25FB", "[\u2022]");
794
+ U = w2("\u25FC", "[+]");
795
+ J = w2("\u25FB", "[ ]");
796
+ xe = w2("\u25AA", "\u2022");
797
+ se = w2("\u2500", "-");
798
+ ce = w2("\u256E", "+");
799
+ Ge = w2("\u251C", "+");
800
+ $e = w2("\u256F", "+");
801
+ de = w2("\u2570", "+");
802
+ Oe = w2("\u256D", "+");
803
+ he = w2("\u25CF", "\u2022");
804
+ pe = w2("\u25C6", "*");
805
+ me = w2("\u25B2", "!");
806
+ ge = w2("\u25A0", "x");
807
+ V2 = (e) => {
808
+ switch (e) {
606
809
  case "initial":
607
810
  case "active":
608
- return import_picocolors2.default.cyan(le);
811
+ return t("cyan", _e);
609
812
  case "cancel":
610
- return import_picocolors2.default.red(L2);
813
+ return t("red", oe);
611
814
  case "error":
612
- return import_picocolors2.default.yellow(W2);
815
+ return t("yellow", ue);
613
816
  case "submit":
614
- return import_picocolors2.default.green(C);
817
+ return t("green", F);
615
818
  }
616
819
  };
617
- G2 = (t) => {
618
- const { cursor: n, options: r2, style: i } = t, s = t.maxItems ?? Number.POSITIVE_INFINITY, c = Math.max(process.stdout.rows - 4, 0), a = Math.min(c, Math.max(s, 5));
619
- let l2 = 0;
620
- n >= l2 + a - 3 ? l2 = Math.max(Math.min(n - a + 3, r2.length - a), 0) : n < l2 + 2 && (l2 = Math.max(n - 2, 0));
621
- const $2 = a < r2.length && l2 > 0, g2 = a < r2.length && l2 + a < r2.length;
622
- return r2.slice(l2, l2 + a).map((p2, v2, f) => {
623
- const j2 = v2 === 0 && $2, E = v2 === f.length - 1 && g2;
624
- return j2 || E ? import_picocolors2.default.dim("...") : i(p2, v2 + l2 === n);
625
- });
626
- };
627
- he = (t) => new RD({ validate: t.validate, placeholder: t.placeholder, defaultValue: t.defaultValue, initialValue: t.initialValue, render() {
628
- const n = `${import_picocolors2.default.gray(o)}
629
- ${b2(this.state)} ${t.message}
630
- `, r2 = t.placeholder ? import_picocolors2.default.inverse(t.placeholder[0]) + import_picocolors2.default.dim(t.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), i = this.value ? this.valueWithCursor : r2;
631
- switch (this.state) {
820
+ ye = (e) => {
821
+ switch (e) {
822
+ case "initial":
823
+ case "active":
824
+ return t("cyan", d2);
825
+ case "cancel":
826
+ return t("red", d2);
632
827
  case "error":
633
- return `${n.trim()}
634
- ${import_picocolors2.default.yellow(o)} ${i}
635
- ${import_picocolors2.default.yellow(d2)} ${import_picocolors2.default.yellow(this.error)}
636
- `;
828
+ return t("yellow", d2);
637
829
  case "submit":
638
- return `${n}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(this.value || t.placeholder)}`;
639
- case "cancel":
640
- return `${n}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? `
641
- ${import_picocolors2.default.gray(o)}` : ""}`;
642
- default:
643
- return `${n}${import_picocolors2.default.cyan(o)} ${i}
644
- ${import_picocolors2.default.cyan(d2)}
645
- `;
646
- }
647
- } }).prompt();
648
- ye = (t) => {
649
- const n = t.active ?? "Yes", r2 = t.inactive ?? "No";
650
- return new dD({ active: n, inactive: r2, initialValue: t.initialValue ?? true, render() {
651
- const i = `${import_picocolors2.default.gray(o)}
652
- ${b2(this.state)} ${t.message}
653
- `, s = this.value ? n : r2;
654
- switch (this.state) {
655
- case "submit":
656
- return `${i}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(s)}`;
657
- case "cancel":
658
- return `${i}${import_picocolors2.default.gray(o)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(s))}
659
- ${import_picocolors2.default.gray(o)}`;
660
- default:
661
- return `${i}${import_picocolors2.default.cyan(o)} ${this.value ? `${import_picocolors2.default.green(k2)} ${n}` : `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(n)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(r2)}` : `${import_picocolors2.default.green(k2)} ${r2}`}
662
- ${import_picocolors2.default.cyan(d2)}
663
- `;
664
- }
665
- } }).prompt();
666
- };
667
- ve = (t) => {
668
- const n = (r2, i) => {
669
- const s = r2.label ?? String(r2.value);
670
- switch (i) {
671
- case "selected":
672
- return `${import_picocolors2.default.dim(s)}`;
673
- case "active":
674
- return `${import_picocolors2.default.green(k2)} ${s} ${r2.hint ? import_picocolors2.default.dim(`(${r2.hint})`) : ""}`;
675
- case "cancelled":
676
- return `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(s))}`;
677
- default:
678
- return `${import_picocolors2.default.dim(P2)} ${import_picocolors2.default.dim(s)}`;
679
- }
680
- };
681
- return new LD({ options: t.options, initialValue: t.initialValue, render() {
682
- const r2 = `${import_picocolors2.default.gray(o)}
683
- ${b2(this.state)} ${t.message}
684
- `;
830
+ return t("green", d2);
831
+ }
832
+ };
833
+ et2 = (e, i, s, r, u2) => {
834
+ let n = i, o = 0;
835
+ for (let c2 = s; c2 < r; c2++) {
836
+ const a = e[c2];
837
+ if (n = n - a.length, o++, n <= u2) break;
838
+ }
839
+ return { lineCount: n, removals: o };
840
+ };
841
+ Y2 = ({ cursor: e, options: i, style: s, output: r = process.stdout, maxItems: u2 = Number.POSITIVE_INFINITY, columnPadding: n = 0, rowPadding: o = 4 }) => {
842
+ const c2 = O(r) - n, a = A(r), l = t("dim", "..."), $2 = Math.max(a - o, 0), y2 = Math.max(Math.min(u2, $2), 5);
843
+ let p2 = 0;
844
+ e >= y2 - 3 && (p2 = Math.max(Math.min(e - y2 + 3, i.length - y2), 0));
845
+ let m = y2 < i.length && p2 > 0, g = y2 < i.length && p2 + y2 < i.length;
846
+ const S2 = Math.min(p2 + y2, i.length), h = [];
847
+ let f = 0;
848
+ m && f++, g && f++;
849
+ const v = p2 + (m ? 1 : 0), T = S2 - (g ? 1 : 0);
850
+ for (let b = v; b < T; b++) {
851
+ const x = wrapAnsi(s(i[b], b === e), c2, { hard: true, trim: false }).split(`
852
+ `);
853
+ h.push(x), f += x.length;
854
+ }
855
+ if (f > $2) {
856
+ let b = 0, x = 0, G2 = f;
857
+ const M2 = e - v, R2 = (j2, D2) => et2(h, G2, j2, D2, $2);
858
+ m ? ({ lineCount: G2, removals: b } = R2(0, M2), G2 > $2 && ({ lineCount: G2, removals: x } = R2(M2 + 1, h.length))) : ({ lineCount: G2, removals: x } = R2(M2 + 1, h.length), G2 > $2 && ({ lineCount: G2, removals: b } = R2(0, M2))), b > 0 && (m = true, h.splice(0, b)), x > 0 && (g = true, h.splice(h.length - x, x));
859
+ }
860
+ const C2 = [];
861
+ m && C2.push(l);
862
+ for (const b of h) for (const x of b) C2.push(x);
863
+ return g && C2.push(l), C2;
864
+ };
865
+ ot2 = (e) => {
866
+ const i = e.active ?? "Yes", s = e.inactive ?? "No";
867
+ return new Q({ active: i, inactive: s, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue ?? true, render() {
868
+ const r = e.withGuide ?? u.withGuide, u2 = `${V2(this.state)} `, n = r ? `${t("gray", d2)} ` : "", o = R(e.output, e.message, n, u2), c2 = `${r ? `${t("gray", d2)}
869
+ ` : ""}${o}
870
+ `, a = this.value ? i : s;
685
871
  switch (this.state) {
686
- case "submit":
687
- return `${r2}${import_picocolors2.default.gray(o)} ${n(this.options[this.cursor], "selected")}`;
688
- case "cancel":
689
- return `${r2}${import_picocolors2.default.gray(o)} ${n(this.options[this.cursor], "cancelled")}
690
- ${import_picocolors2.default.gray(o)}`;
691
- default:
692
- return `${r2}${import_picocolors2.default.cyan(o)} ${G2({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (i, s) => n(i, s ? "active" : "inactive") }).join(`
693
- ${import_picocolors2.default.cyan(o)} `)}
694
- ${import_picocolors2.default.cyan(d2)}
872
+ case "submit": {
873
+ const l = r ? `${t("gray", d2)} ` : "";
874
+ return `${c2}${l}${t("dim", a)}`;
875
+ }
876
+ case "cancel": {
877
+ const l = r ? `${t("gray", d2)} ` : "";
878
+ return `${c2}${l}${t(["strikethrough", "dim"], a)}${r ? `
879
+ ${t("gray", d2)}` : ""}`;
880
+ }
881
+ default: {
882
+ const l = r ? `${t("cyan", d2)} ` : "", $2 = r ? t("cyan", E2) : "";
883
+ return `${c2}${l}${this.value ? `${t("green", z2)} ${i}` : `${t("dim", H2)} ${t("dim", i)}`}${e.vertical ? r ? `
884
+ ${t("cyan", d2)} ` : `
885
+ ` : ` ${t("dim", "/")} `}${this.value ? `${t("dim", H2)} ${t("dim", s)}` : `${t("green", z2)} ${s}`}
886
+ ${$2}
695
887
  `;
888
+ }
696
889
  }
697
890
  } }).prompt();
698
891
  };
699
- Me = (t = "", n = "") => {
700
- const r2 = `
701
- ${t}
702
- `.split(`
703
- `), i = S2(n).length, s = Math.max(r2.reduce((a, l2) => {
704
- const $2 = S2(l2);
705
- return $2.length > a ? $2.length : a;
706
- }, 0), i) + 2, c = r2.map((a) => `${import_picocolors2.default.gray(o)} ${import_picocolors2.default.dim(a)}${" ".repeat(s - S2(a).length)}${import_picocolors2.default.gray(o)}`).join(`
892
+ O2 = { message: (e = [], { symbol: i = t("gray", d2), secondarySymbol: s = t("gray", d2), output: r = process.stdout, spacing: u2 = 1, withGuide: n } = {}) => {
893
+ const o = [], c2 = n ?? u.withGuide, a = c2 ? s : "", l = c2 ? `${i} ` : "", $2 = c2 ? `${s} ` : "";
894
+ for (let p2 = 0; p2 < u2; p2++) o.push(a);
895
+ const y2 = Array.isArray(e) ? e : e.split(`
707
896
  `);
708
- process.stdout.write(`${import_picocolors2.default.gray(o)}
709
- ${import_picocolors2.default.green(C)} ${import_picocolors2.default.reset(n)} ${import_picocolors2.default.gray(_2.repeat(Math.max(s - i - 1, 1)) + me)}
710
- ${c}
711
- ${import_picocolors2.default.gray(de + _2.repeat(s + 2) + pe)}
897
+ if (y2.length > 0) {
898
+ const [p2, ...m] = y2;
899
+ p2.length > 0 ? o.push(`${l}${p2}`) : o.push(c2 ? i : "");
900
+ for (const g of m) g.length > 0 ? o.push(`${$2}${g}`) : o.push(c2 ? s : "");
901
+ }
902
+ r.write(`${o.join(`
903
+ `)}
712
904
  `);
713
- };
714
- xe = (t = "") => {
715
- process.stdout.write(`${import_picocolors2.default.gray(d2)} ${import_picocolors2.default.red(t)}
905
+ }, info: (e, i) => {
906
+ O2.message(e, { ...i, symbol: t("blue", he) });
907
+ }, success: (e, i) => {
908
+ O2.message(e, { ...i, symbol: t("green", pe) });
909
+ }, step: (e, i) => {
910
+ O2.message(e, { ...i, symbol: t("green", F) });
911
+ }, warn: (e, i) => {
912
+ O2.message(e, { ...i, symbol: t("yellow", me) });
913
+ }, warning: (e, i) => {
914
+ O2.warn(e, i);
915
+ }, error: (e, i) => {
916
+ O2.message(e, { ...i, symbol: t("red", ge) });
917
+ } };
918
+ pt = (e = "", i) => {
919
+ const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", E2)} ` : "";
920
+ s.write(`${r}${t("red", e)}
716
921
 
717
922
  `);
718
923
  };
719
- Ie = (t = "") => {
720
- process.stdout.write(`${import_picocolors2.default.gray(ue)} ${t}
924
+ mt = (e = "", i) => {
925
+ const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", le)} ` : "";
926
+ s.write(`${r}${e}
721
927
  `);
722
928
  };
723
- Se = (t = "") => {
724
- process.stdout.write(`${import_picocolors2.default.gray(o)}
725
- ${import_picocolors2.default.gray(d2)} ${t}
929
+ gt = (e = "", i) => {
930
+ const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", d2)}
931
+ ${t("gray", E2)} ` : "";
932
+ s.write(`${r}${e}
726
933
 
727
934
  `);
728
935
  };
729
- M2 = { message: (t = "", { symbol: n = import_picocolors2.default.gray(o) } = {}) => {
730
- const r2 = [`${import_picocolors2.default.gray(o)}`];
731
- if (t) {
732
- const [i, ...s] = t.split(`
936
+ ft = (e) => t("dim", e);
937
+ vt = (e, i, s) => {
938
+ const r = { hard: true, trim: false }, u2 = wrapAnsi(e, i, r).split(`
939
+ `), n = u2.reduce((a, l) => Math.max(dist_default2(l), a), 0), o = u2.map(s).reduce((a, l) => Math.max(dist_default2(l), a), 0), c2 = i - (o - n);
940
+ return wrapAnsi(e, c2, r);
941
+ };
942
+ wt = (e = "", i = "", s) => {
943
+ const r = s?.output ?? P2.stdout, u2 = s?.withGuide ?? u.withGuide, n = s?.format ?? ft, o = ["", ...vt(e, O(r) - 6, n).split(`
944
+ `).map(n), ""], c2 = dist_default2(i), a = Math.max(o.reduce((p2, m) => {
945
+ const g = dist_default2(m);
946
+ return g > p2 ? g : p2;
947
+ }, 0), c2) + 2, l = o.map((p2) => `${t("gray", d2)} ${p2}${" ".repeat(a - dist_default2(p2))}${t("gray", d2)}`).join(`
948
+ `), $2 = u2 ? `${t("gray", d2)}
949
+ ` : "", y2 = u2 ? Ge : de;
950
+ r.write(`${$2}${t("green", F)} ${t("reset", i)} ${t("gray", se.repeat(Math.max(a - c2 - 1, 1)) + ce)}
951
+ ${l}
952
+ ${t("gray", y2 + se.repeat(a + 2) + $e)}
733
953
  `);
734
- r2.push(`${n} ${i}`, ...s.map((c) => `${import_picocolors2.default.gray(o)} ${c}`));
735
- }
736
- process.stdout.write(`${r2.join(`
737
- `)}
738
- `);
739
- }, info: (t) => {
740
- M2.message(t, { symbol: import_picocolors2.default.blue(q) });
741
- }, success: (t) => {
742
- M2.message(t, { symbol: import_picocolors2.default.green(D) });
743
- }, step: (t) => {
744
- M2.message(t, { symbol: import_picocolors2.default.green(C) });
745
- }, warn: (t) => {
746
- M2.message(t, { symbol: import_picocolors2.default.yellow(U) });
747
- }, warning: (t) => {
748
- M2.warn(t);
749
- }, error: (t) => {
750
- M2.message(t, { symbol: import_picocolors2.default.red(K2) });
751
- } };
752
- J2 = `${import_picocolors2.default.gray(o)} `;
753
- Y2 = ({ indicator: t = "dots" } = {}) => {
754
- const n = V2 ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], r2 = V2 ? 80 : 120, i = process.env.CI === "true";
755
- let s, c, a = false, l2 = "", $2, g2 = performance.now();
756
- const p2 = (m2) => {
757
- const h2 = m2 > 1 ? "Something went wrong" : "Canceled";
758
- a && N2(h2, m2);
759
- }, v2 = () => p2(2), f = () => p2(1), j2 = () => {
760
- process.on("uncaughtExceptionMonitor", v2), process.on("unhandledRejection", v2), process.on("SIGINT", f), process.on("SIGTERM", f), process.on("exit", p2);
761
- }, E = () => {
762
- process.removeListener("uncaughtExceptionMonitor", v2), process.removeListener("unhandledRejection", v2), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), process.removeListener("exit", p2);
763
- }, B2 = () => {
764
- if ($2 === void 0) return;
765
- i && process.stdout.write(`
954
+ };
955
+ Ct = (e) => t("magenta", e);
956
+ fe = ({ indicator: e = "dots", onCancel: i, output: s = process.stdout, cancelMessage: r, errorMessage: u2, frames: n = ee ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], delay: o = ee ? 80 : 120, signal: c2, ...a } = {}) => {
957
+ const l = ae();
958
+ let $2, y2, p2 = false, m = false, g = "", S2, h = performance.now();
959
+ const f = O(s), v = a?.styleFrame ?? Ct, T = (_2) => {
960
+ const A2 = _2 > 1 ? u2 ?? u.messages.error : r ?? u.messages.cancel;
961
+ m = _2 === 1, p2 && (W(A2, _2), m && typeof i == "function" && i());
962
+ }, C2 = () => T(2), b = () => T(1), x = () => {
963
+ process.on("uncaughtExceptionMonitor", C2), process.on("unhandledRejection", C2), process.on("SIGINT", b), process.on("SIGTERM", b), process.on("exit", T), c2 && c2.addEventListener("abort", b);
964
+ }, G2 = () => {
965
+ process.removeListener("uncaughtExceptionMonitor", C2), process.removeListener("unhandledRejection", C2), process.removeListener("SIGINT", b), process.removeListener("SIGTERM", b), process.removeListener("exit", T), c2 && c2.removeEventListener("abort", b);
966
+ }, M2 = () => {
967
+ if (S2 === void 0) return;
968
+ l && s.write(`
766
969
  `);
767
- const m2 = $2.split(`
970
+ const _2 = wrapAnsi(S2, f, { hard: true, trim: false }).split(`
768
971
  `);
769
- process.stdout.write(import_sisteransi2.cursor.move(-999, m2.length - 1)), process.stdout.write(import_sisteransi2.erase.down(m2.length));
770
- }, R2 = (m2) => m2.replace(/\.+$/, ""), O2 = (m2) => {
771
- const h2 = (performance.now() - m2) / 1e3, w2 = Math.floor(h2 / 60), I2 = Math.floor(h2 % 60);
772
- return w2 > 0 ? `[${w2}m ${I2}s]` : `[${I2}s]`;
773
- }, H = (m2 = "") => {
774
- a = true, s = fD(), l2 = R2(m2), g2 = performance.now(), process.stdout.write(`${import_picocolors2.default.gray(o)}
972
+ _2.length > 1 && s.write(import_sisteransi2.cursor.up(_2.length - 1)), s.write(import_sisteransi2.cursor.to(0)), s.write(import_sisteransi2.erase.down());
973
+ }, R2 = (_2) => _2.replace(/\.+$/, ""), j2 = (_2) => {
974
+ const A2 = (performance.now() - _2) / 1e3, k = Math.floor(A2 / 60), L = Math.floor(A2 % 60);
975
+ return k > 0 ? `[${k}m ${L}s]` : `[${L}s]`;
976
+ }, D2 = a.withGuide ?? u.withGuide, ie = (_2 = "") => {
977
+ p2 = true, $2 = z({ output: s }), g = R2(_2), h = performance.now(), D2 && s.write(`${t("gray", d2)}
775
978
  `);
776
- let h2 = 0, w2 = 0;
777
- j2(), c = setInterval(() => {
778
- if (i && l2 === $2) return;
779
- B2(), $2 = l2;
780
- const I2 = import_picocolors2.default.magenta(n[h2]);
781
- if (i) process.stdout.write(`${I2} ${l2}...`);
782
- else if (t === "timer") process.stdout.write(`${I2} ${l2} ${O2(g2)}`);
979
+ let A2 = 0, k = 0;
980
+ x(), y2 = setInterval(() => {
981
+ if (l && g === S2) return;
982
+ M2(), S2 = g;
983
+ const L = v(n[A2]);
984
+ let Z;
985
+ if (l) Z = `${L} ${g}...`;
986
+ else if (e === "timer") Z = `${L} ${g} ${j2(h)}`;
783
987
  else {
784
- const z2 = ".".repeat(Math.floor(w2)).slice(0, 3);
785
- process.stdout.write(`${I2} ${l2}${z2}`);
786
- }
787
- h2 = h2 + 1 < n.length ? h2 + 1 : 0, w2 = w2 < n.length ? w2 + 0.125 : 0;
788
- }, r2);
789
- }, N2 = (m2 = "", h2 = 0) => {
790
- a = false, clearInterval(c), B2();
791
- const w2 = h2 === 0 ? import_picocolors2.default.green(C) : h2 === 1 ? import_picocolors2.default.red(L2) : import_picocolors2.default.red(W2);
792
- l2 = R2(m2 ?? l2), t === "timer" ? process.stdout.write(`${w2} ${l2} ${O2(g2)}
793
- `) : process.stdout.write(`${w2} ${l2}
794
- `), E(), s();
988
+ const Be = ".".repeat(Math.floor(k)).slice(0, 3);
989
+ Z = `${L} ${g}${Be}`;
990
+ }
991
+ const Ne = wrapAnsi(Z, f, { hard: true, trim: false });
992
+ s.write(Ne), A2 = A2 + 1 < n.length ? A2 + 1 : 0, k = k < 4 ? k + 0.125 : 0;
993
+ }, o);
994
+ }, W = (_2 = "", A2 = 0, k = false) => {
995
+ if (!p2) return;
996
+ p2 = false, clearInterval(y2), M2();
997
+ const L = A2 === 0 ? t("green", F) : A2 === 1 ? t("red", oe) : t("red", ue);
998
+ g = _2 ?? g, k || (e === "timer" ? s.write(`${L} ${g} ${j2(h)}
999
+ `) : s.write(`${L} ${g}
1000
+ `)), G2(), $2();
795
1001
  };
796
- return { start: H, stop: N2, message: (m2 = "") => {
797
- l2 = R2(m2 ?? l2);
1002
+ return { start: ie, stop: (_2 = "") => W(_2, 0), message: (_2 = "") => {
1003
+ g = R2(_2 ?? g);
1004
+ }, cancel: (_2 = "") => W(_2, 1), error: (_2 = "") => W(_2, 2), clear: () => W("", 0, true), get isCancelled() {
1005
+ return m;
798
1006
  } };
799
1007
  };
1008
+ Ve = { light: w2("\u2500", "-"), heavy: w2("\u2501", "="), block: w2("\u2588", "#") };
1009
+ re = (e, i) => e.includes(`
1010
+ `) ? e.split(`
1011
+ `).map((s) => i(s)).join(`
1012
+ `) : i(e);
1013
+ _t = (e) => {
1014
+ const i = (s, r) => {
1015
+ const u2 = s.label ?? String(s.value);
1016
+ switch (r) {
1017
+ case "disabled":
1018
+ return `${t("gray", H2)} ${re(u2, (n) => t("gray", n))}${s.hint ? ` ${t("dim", `(${s.hint ?? "disabled"})`)}` : ""}`;
1019
+ case "selected":
1020
+ return `${re(u2, (n) => t("dim", n))}`;
1021
+ case "active":
1022
+ return `${t("green", z2)} ${u2}${s.hint ? ` ${t("dim", `(${s.hint})`)}` : ""}`;
1023
+ case "cancelled":
1024
+ return `${re(u2, (n) => t(["strikethrough", "dim"], n))}`;
1025
+ default:
1026
+ return `${t("dim", H2)} ${re(u2, (n) => t("dim", n))}`;
1027
+ }
1028
+ };
1029
+ return new nt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
1030
+ const s = e.withGuide ?? u.withGuide, r = `${V2(this.state)} `, u2 = `${ye(this.state)} `, n = R(e.output, e.message, u2, r), o = `${s ? `${t("gray", d2)}
1031
+ ` : ""}${n}
1032
+ `;
1033
+ switch (this.state) {
1034
+ case "submit": {
1035
+ const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "selected"), c2);
1036
+ return `${o}${a}`;
1037
+ }
1038
+ case "cancel": {
1039
+ const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "cancelled"), c2);
1040
+ return `${o}${a}${s ? `
1041
+ ${t("gray", d2)}` : ""}`;
1042
+ }
1043
+ default: {
1044
+ const c2 = s ? `${t("cyan", d2)} ` : "", a = s ? t("cyan", E2) : "", l = o.split(`
1045
+ `).length, $2 = s ? 2 : 1;
1046
+ return `${o}${c2}${Y2({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, columnPadding: c2.length, rowPadding: l + $2, style: (y2, p2) => i(y2, y2.disabled ? "disabled" : p2 ? "active" : "inactive") }).join(`
1047
+ ${c2}`)}
1048
+ ${a}
1049
+ `;
1050
+ }
1051
+ }
1052
+ } }).prompt();
1053
+ };
1054
+ je = `${t("gray", d2)} `;
1055
+ Ot = (e) => new at({ validate: e.validate, placeholder: e.placeholder, defaultValue: e.defaultValue, initialValue: e.initialValue, output: e.output, signal: e.signal, input: e.input, render() {
1056
+ const i = e?.withGuide ?? u.withGuide, s = `${`${i ? `${t("gray", d2)}
1057
+ ` : ""}${V2(this.state)} `}${e.message}
1058
+ `, r = e.placeholder ? t("inverse", e.placeholder[0]) + t("dim", e.placeholder.slice(1)) : t(["inverse", "hidden"], "_"), u2 = this.userInput ? this.userInputWithCursor : r, n = this.value ?? "";
1059
+ switch (this.state) {
1060
+ case "error": {
1061
+ const o = this.error ? ` ${t("yellow", this.error)}` : "", c2 = i ? `${t("yellow", d2)} ` : "", a = i ? t("yellow", E2) : "";
1062
+ return `${s.trim()}
1063
+ ${c2}${u2}
1064
+ ${a}${o}
1065
+ `;
1066
+ }
1067
+ case "submit": {
1068
+ const o = n ? ` ${t("dim", n)}` : "", c2 = i ? t("gray", d2) : "";
1069
+ return `${s}${c2}${o}`;
1070
+ }
1071
+ case "cancel": {
1072
+ const o = n ? ` ${t(["strikethrough", "dim"], n)}` : "", c2 = i ? t("gray", d2) : "";
1073
+ return `${s}${c2}${o}${n.trim() ? `
1074
+ ${c2}` : ""}`;
1075
+ }
1076
+ default: {
1077
+ const o = i ? `${t("cyan", d2)} ` : "", c2 = i ? t("cyan", E2) : "";
1078
+ return `${s}${o}${u2}
1079
+ ${c2}
1080
+ `;
1081
+ }
1082
+ }
1083
+ } }).prompt();
800
1084
  }
801
1085
  });
802
1086
 
@@ -804,21 +1088,21 @@ ${import_picocolors2.default.gray(d2)} ${t}
804
1088
  var cli_output_exports = {};
805
1089
  __export(cli_output_exports, {
806
1090
  LogLevel: () => LogLevel,
807
- cancel: () => xe,
1091
+ cancel: () => pt,
808
1092
  colorUtils: () => colorUtils,
809
1093
  displayDoNotDevError: () => displayDoNotDevError,
810
1094
  error: () => error,
811
1095
  getLogLevel: () => getLogLevel,
812
1096
  info: () => info,
813
- intro: () => Ie,
814
- isCancel: () => pD,
1097
+ intro: () => mt,
1098
+ isCancel: () => q,
815
1099
  isDebug: () => isDebug,
816
1100
  isVerbose: () => isVerbose,
817
1101
  log: () => log,
818
- note: () => Me,
819
- outro: () => Se,
1102
+ note: () => wt,
1103
+ outro: () => gt,
820
1104
  setLogLevel: () => setLogLevel,
821
- spinner: () => Y2,
1105
+ spinner: () => fe,
822
1106
  success: () => success,
823
1107
  warn: () => warn
824
1108
  });
@@ -894,15 +1178,15 @@ ${contextStr}`;
894
1178
 
895
1179
  Original error: ${originalMsg}`;
896
1180
  }
897
- M2.error(message);
1181
+ O2.error(message);
898
1182
  }
899
1183
  var colors, colorUtils, LogLevel, currentLogLevel, log, error, warn, info, success;
900
1184
  var init_cli_output = __esm({
901
1185
  "packages/tooling/src/utils/cli-output.ts"() {
902
1186
  "use strict";
903
- init_utils();
904
- init_dist2();
905
- init_dist2();
1187
+ init_utils2();
1188
+ init_dist4();
1189
+ init_dist4();
906
1190
  colors = {
907
1191
  reset: "\x1B[0m",
908
1192
  // Success (green)
@@ -949,7 +1233,7 @@ var init_cli_output = __esm({
949
1233
  error(...args) {
950
1234
  if (currentLogLevel < 0 /* Quiet */) return;
951
1235
  const message = formatMessage(...args);
952
- M2.error(colorize(message, colors.brightRed));
1236
+ O2.error(colorize(message, colors.brightRed));
953
1237
  },
954
1238
  /**
955
1239
  * Logs a warning message (shows at Normal level and above)
@@ -958,7 +1242,7 @@ var init_cli_output = __esm({
958
1242
  warn(...args) {
959
1243
  if (currentLogLevel < 1 /* Normal */) return;
960
1244
  const message = formatMessage(...args);
961
- M2.warn(colorize(message, colors.brightYellow));
1245
+ O2.warn(colorize(message, colors.brightYellow));
962
1246
  },
963
1247
  /**
964
1248
  * Logs an info message (shows at Normal level and above)
@@ -967,7 +1251,7 @@ var init_cli_output = __esm({
967
1251
  info(...args) {
968
1252
  if (currentLogLevel < 1 /* Normal */) return;
969
1253
  const message = formatMessage(...args);
970
- M2.info(colorize(message, colors.brightCyan));
1254
+ O2.info(colorize(message, colors.brightCyan));
971
1255
  },
972
1256
  /**
973
1257
  * Logs a success message (shows at Normal level and above)
@@ -976,7 +1260,7 @@ var init_cli_output = __esm({
976
1260
  success(...args) {
977
1261
  if (currentLogLevel < 1 /* Normal */) return;
978
1262
  const message = formatMessage(...args);
979
- M2.success(colorize(message, colors.brightGreen));
1263
+ O2.success(colorize(message, colors.brightGreen));
980
1264
  },
981
1265
  /**
982
1266
  * Logs a debug message (only shows at Verbose level and above)
@@ -985,7 +1269,7 @@ var init_cli_output = __esm({
985
1269
  debug(...args) {
986
1270
  if (currentLogLevel < 2 /* Verbose */) return;
987
1271
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
988
- M2.message(
1272
+ O2.message(
989
1273
  colorize(
990
1274
  `[${timeStamp}] \u{1F50D} DEBUG: ${formatMessage(...args)}`,
991
1275
  colors.gray
@@ -999,7 +1283,7 @@ var init_cli_output = __esm({
999
1283
  trace(...args) {
1000
1284
  if (currentLogLevel < 3 /* Debug */) return;
1001
1285
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
1002
- M2.message(
1286
+ O2.message(
1003
1287
  colorize(
1004
1288
  `[${timeStamp}] \u{1F52C} TRACE: ${formatMessage(...args)}`,
1005
1289
  colors.gray
@@ -1018,7 +1302,7 @@ var init_cli_output = __esm({
1018
1302
  var require_array = __commonJS({
1019
1303
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
1020
1304
  "use strict";
1021
- init_utils();
1305
+ init_utils2();
1022
1306
  Object.defineProperty(exports, "__esModule", { value: true });
1023
1307
  exports.splitWhen = exports.flatten = void 0;
1024
1308
  function flatten(items) {
@@ -1046,7 +1330,7 @@ var require_array = __commonJS({
1046
1330
  var require_errno = __commonJS({
1047
1331
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
1048
1332
  "use strict";
1049
- init_utils();
1333
+ init_utils2();
1050
1334
  Object.defineProperty(exports, "__esModule", { value: true });
1051
1335
  exports.isEnoentCodeError = void 0;
1052
1336
  function isEnoentCodeError(error2) {
@@ -1060,7 +1344,7 @@ var require_errno = __commonJS({
1060
1344
  var require_fs = __commonJS({
1061
1345
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
1062
1346
  "use strict";
1063
- init_utils();
1347
+ init_utils2();
1064
1348
  Object.defineProperty(exports, "__esModule", { value: true });
1065
1349
  exports.createDirentFromStats = void 0;
1066
1350
  var DirentFromStats = class {
@@ -1086,7 +1370,7 @@ var require_fs = __commonJS({
1086
1370
  var require_path = __commonJS({
1087
1371
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
1088
1372
  "use strict";
1089
- init_utils();
1373
+ init_utils2();
1090
1374
  Object.defineProperty(exports, "__esModule", { value: true });
1091
1375
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
1092
1376
  var os = __require("os");
@@ -1139,7 +1423,7 @@ var require_path = __commonJS({
1139
1423
  // node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
1140
1424
  var require_is_extglob = __commonJS({
1141
1425
  "node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module) {
1142
- init_utils();
1426
+ init_utils2();
1143
1427
  module.exports = function isExtglob(str) {
1144
1428
  if (typeof str !== "string" || str === "") {
1145
1429
  return false;
@@ -1157,7 +1441,7 @@ var require_is_extglob = __commonJS({
1157
1441
  // node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
1158
1442
  var require_is_glob = __commonJS({
1159
1443
  "node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module) {
1160
- init_utils();
1444
+ init_utils2();
1161
1445
  var isExtglob = require_is_extglob();
1162
1446
  var chars = { "{": "}", "(": ")", "[": "]" };
1163
1447
  var strictCheck = function(str) {
@@ -1290,7 +1574,7 @@ var require_is_glob = __commonJS({
1290
1574
  var require_glob_parent = __commonJS({
1291
1575
  "node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module) {
1292
1576
  "use strict";
1293
- init_utils();
1577
+ init_utils2();
1294
1578
  var isGlob = require_is_glob();
1295
1579
  var pathPosixDirname = __require("path").posix.dirname;
1296
1580
  var isWin32 = __require("os").platform() === "win32";
@@ -1320,7 +1604,7 @@ var require_glob_parent = __commonJS({
1320
1604
  var require_utils = __commonJS({
1321
1605
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
1322
1606
  "use strict";
1323
- init_utils();
1607
+ init_utils2();
1324
1608
  exports.isInteger = (num) => {
1325
1609
  if (typeof num === "number") {
1326
1610
  return Number.isInteger(num);
@@ -1403,7 +1687,7 @@ var require_utils = __commonJS({
1403
1687
  var require_stringify = __commonJS({
1404
1688
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
1405
1689
  "use strict";
1406
- init_utils();
1690
+ init_utils2();
1407
1691
  var utils = require_utils();
1408
1692
  module.exports = (ast, options = {}) => {
1409
1693
  const stringify2 = (node, parent = {}) => {
@@ -1435,7 +1719,7 @@ var require_stringify = __commonJS({
1435
1719
  var require_is_number = __commonJS({
1436
1720
  "node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
1437
1721
  "use strict";
1438
- init_utils();
1722
+ init_utils2();
1439
1723
  module.exports = function(num) {
1440
1724
  if (typeof num === "number") {
1441
1725
  return num - num === 0;
@@ -1452,7 +1736,7 @@ var require_is_number = __commonJS({
1452
1736
  var require_to_regex_range = __commonJS({
1453
1737
  "node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
1454
1738
  "use strict";
1455
- init_utils();
1739
+ init_utils2();
1456
1740
  var isNumber = require_is_number();
1457
1741
  var toRegexRange = (min, max, options) => {
1458
1742
  if (isNumber(min) === false) {
@@ -1477,8 +1761,8 @@ var require_to_regex_range = __commonJS({
1477
1761
  return toRegexRange.cache[cacheKey].result;
1478
1762
  }
1479
1763
  let a = Math.min(min, max);
1480
- let b3 = Math.max(min, max);
1481
- if (Math.abs(a - b3) === 1) {
1764
+ let b = Math.max(min, max);
1765
+ if (Math.abs(a - b) === 1) {
1482
1766
  let result = min + "|" + max;
1483
1767
  if (opts.capture) {
1484
1768
  return `(${result})`;
@@ -1489,7 +1773,7 @@ var require_to_regex_range = __commonJS({
1489
1773
  return `(?:${result})`;
1490
1774
  }
1491
1775
  let isPadded = hasPadding(min) || hasPadding(max);
1492
- let state = { min, max, a, b: b3 };
1776
+ let state = { min, max, a, b };
1493
1777
  let positives = [];
1494
1778
  let negatives = [];
1495
1779
  if (isPadded) {
@@ -1497,12 +1781,12 @@ var require_to_regex_range = __commonJS({
1497
1781
  state.maxLen = String(state.max).length;
1498
1782
  }
1499
1783
  if (a < 0) {
1500
- let newMin = b3 < 0 ? Math.abs(b3) : 1;
1784
+ let newMin = b < 0 ? Math.abs(b) : 1;
1501
1785
  negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
1502
1786
  a = state.a = 0;
1503
1787
  }
1504
- if (b3 >= 0) {
1505
- positives = splitToPatterns(a, b3, state, opts);
1788
+ if (b >= 0) {
1789
+ positives = splitToPatterns(a, b, state, opts);
1506
1790
  }
1507
1791
  state.negatives = negatives;
1508
1792
  state.positives = positives;
@@ -1606,13 +1890,13 @@ var require_to_regex_range = __commonJS({
1606
1890
  }
1607
1891
  return result;
1608
1892
  }
1609
- function zip(a, b3) {
1893
+ function zip(a, b) {
1610
1894
  let arr = [];
1611
- for (let i = 0; i < a.length; i++) arr.push([a[i], b3[i]]);
1895
+ for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
1612
1896
  return arr;
1613
1897
  }
1614
- function compare(a, b3) {
1615
- return a > b3 ? 1 : b3 > a ? -1 : 0;
1898
+ function compare(a, b) {
1899
+ return a > b ? 1 : b > a ? -1 : 0;
1616
1900
  }
1617
1901
  function contains(arr, key, val) {
1618
1902
  return arr.some((ele) => ele[key] === val);
@@ -1630,8 +1914,8 @@ var require_to_regex_range = __commonJS({
1630
1914
  }
1631
1915
  return "";
1632
1916
  }
1633
- function toCharacterClass(a, b3, options) {
1634
- return `[${a}${b3 - a === 1 ? "" : "-"}${b3}]`;
1917
+ function toCharacterClass(a, b, options) {
1918
+ return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
1635
1919
  }
1636
1920
  function hasPadding(str) {
1637
1921
  return /^-?(0+)\d/.test(str);
@@ -1664,7 +1948,7 @@ var require_to_regex_range = __commonJS({
1664
1948
  var require_fill_range = __commonJS({
1665
1949
  "node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
1666
1950
  "use strict";
1667
- init_utils();
1951
+ init_utils2();
1668
1952
  var util = __require("util");
1669
1953
  var toRegexRange = require_to_regex_range();
1670
1954
  var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -1710,17 +1994,17 @@ var require_fill_range = __commonJS({
1710
1994
  return negative ? "-" + input : input;
1711
1995
  };
1712
1996
  var toSequence = (parts, options, maxLen) => {
1713
- parts.negatives.sort((a, b3) => a < b3 ? -1 : a > b3 ? 1 : 0);
1714
- parts.positives.sort((a, b3) => a < b3 ? -1 : a > b3 ? 1 : 0);
1997
+ parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
1998
+ parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
1715
1999
  let prefix = options.capture ? "" : "?:";
1716
2000
  let positives = "";
1717
2001
  let negatives = "";
1718
2002
  let result;
1719
2003
  if (parts.positives.length) {
1720
- positives = parts.positives.map((v2) => toMaxLen(String(v2), maxLen)).join("|");
2004
+ positives = parts.positives.map((v) => toMaxLen(String(v), maxLen)).join("|");
1721
2005
  }
1722
2006
  if (parts.negatives.length) {
1723
- negatives = `-(${prefix}${parts.negatives.map((v2) => toMaxLen(String(v2), maxLen)).join("|")})`;
2007
+ negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`;
1724
2008
  }
1725
2009
  if (positives && negatives) {
1726
2010
  result = `${positives}|${negatives}`;
@@ -1732,13 +2016,13 @@ var require_fill_range = __commonJS({
1732
2016
  }
1733
2017
  return result;
1734
2018
  };
1735
- var toRange = (a, b3, isNumbers, options) => {
2019
+ var toRange = (a, b, isNumbers, options) => {
1736
2020
  if (isNumbers) {
1737
- return toRegexRange(a, b3, { wrap: false, ...options });
2021
+ return toRegexRange(a, b, { wrap: false, ...options });
1738
2022
  }
1739
2023
  let start = String.fromCharCode(a);
1740
- if (a === b3) return start;
1741
- let stop = String.fromCharCode(b3);
2024
+ if (a === b) return start;
2025
+ let stop = String.fromCharCode(b);
1742
2026
  return `[${start}-${stop}]`;
1743
2027
  };
1744
2028
  var toRegex = (start, end, options) => {
@@ -1764,14 +2048,14 @@ var require_fill_range = __commonJS({
1764
2048
  };
1765
2049
  var fillNumbers = (start, end, step = 1, options = {}) => {
1766
2050
  let a = Number(start);
1767
- let b3 = Number(end);
1768
- if (!Number.isInteger(a) || !Number.isInteger(b3)) {
2051
+ let b = Number(end);
2052
+ if (!Number.isInteger(a) || !Number.isInteger(b)) {
1769
2053
  if (options.strictRanges === true) throw rangeError([start, end]);
1770
2054
  return [];
1771
2055
  }
1772
2056
  if (a === 0) a = 0;
1773
- if (b3 === 0) b3 = 0;
1774
- let descending = a > b3;
2057
+ if (b === 0) b = 0;
2058
+ let descending = a > b;
1775
2059
  let startString = String(start);
1776
2060
  let endString = String(end);
1777
2061
  let stepString = String(step);
@@ -1787,7 +2071,7 @@ var require_fill_range = __commonJS({
1787
2071
  let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
1788
2072
  let range = [];
1789
2073
  let index = 0;
1790
- while (descending ? a >= b3 : a <= b3) {
2074
+ while (descending ? a >= b : a <= b) {
1791
2075
  if (options.toRegex === true && step > 1) {
1792
2076
  push(a);
1793
2077
  } else {
@@ -1807,16 +2091,16 @@ var require_fill_range = __commonJS({
1807
2091
  }
1808
2092
  let format = options.transform || ((val) => String.fromCharCode(val));
1809
2093
  let a = `${start}`.charCodeAt(0);
1810
- let b3 = `${end}`.charCodeAt(0);
1811
- let descending = a > b3;
1812
- let min = Math.min(a, b3);
1813
- let max = Math.max(a, b3);
2094
+ let b = `${end}`.charCodeAt(0);
2095
+ let descending = a > b;
2096
+ let min = Math.min(a, b);
2097
+ let max = Math.max(a, b);
1814
2098
  if (options.toRegex && step === 1) {
1815
2099
  return toRange(min, max, false, options);
1816
2100
  }
1817
2101
  let range = [];
1818
2102
  let index = 0;
1819
- while (descending ? a >= b3 : a <= b3) {
2103
+ while (descending ? a >= b : a <= b) {
1820
2104
  range.push(format(a, index));
1821
2105
  a = descending ? a - step : a + step;
1822
2106
  index++;
@@ -1859,7 +2143,7 @@ var require_fill_range = __commonJS({
1859
2143
  var require_compile = __commonJS({
1860
2144
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
1861
2145
  "use strict";
1862
- init_utils();
2146
+ init_utils2();
1863
2147
  var fill = require_fill_range();
1864
2148
  var utils = require_utils();
1865
2149
  var compile = (ast, options = {}) => {
@@ -1911,7 +2195,7 @@ var require_compile = __commonJS({
1911
2195
  var require_expand = __commonJS({
1912
2196
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
1913
2197
  "use strict";
1914
- init_utils();
2198
+ init_utils2();
1915
2199
  var fill = require_fill_range();
1916
2200
  var stringify2 = require_stringify();
1917
2201
  var utils = require_utils();
@@ -2006,7 +2290,7 @@ var require_expand = __commonJS({
2006
2290
  var require_constants = __commonJS({
2007
2291
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
2008
2292
  "use strict";
2009
- init_utils();
2293
+ init_utils2();
2010
2294
  module.exports = {
2011
2295
  MAX_LENGTH: 1e4,
2012
2296
  // Digits
@@ -2108,7 +2392,7 @@ var require_constants = __commonJS({
2108
2392
  var require_parse = __commonJS({
2109
2393
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
2110
2394
  "use strict";
2111
- init_utils();
2395
+ init_utils2();
2112
2396
  var stringify2 = require_stringify();
2113
2397
  var {
2114
2398
  MAX_LENGTH,
@@ -2347,7 +2631,7 @@ var require_parse = __commonJS({
2347
2631
  var require_braces = __commonJS({
2348
2632
  "node_modules/.bun/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
2349
2633
  "use strict";
2350
- init_utils();
2634
+ init_utils2();
2351
2635
  var stringify2 = require_stringify();
2352
2636
  var compile = require_compile();
2353
2637
  var expand = require_expand();
@@ -2407,14 +2691,15 @@ var require_braces = __commonJS({
2407
2691
  }
2408
2692
  });
2409
2693
 
2410
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
2694
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
2411
2695
  var require_constants2 = __commonJS({
2412
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
2696
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
2413
2697
  "use strict";
2414
- init_utils();
2698
+ init_utils2();
2415
2699
  var path = __require("path");
2416
2700
  var WIN_SLASH = "\\\\/";
2417
2701
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
2702
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
2418
2703
  var DOT_LITERAL = "\\.";
2419
2704
  var PLUS_LITERAL = "\\+";
2420
2705
  var QMARK_LITERAL = "\\?";
@@ -2462,6 +2747,7 @@ var require_constants2 = __commonJS({
2462
2747
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
2463
2748
  };
2464
2749
  var POSIX_REGEX_SOURCE = {
2750
+ __proto__: null,
2465
2751
  alnum: "a-zA-Z0-9",
2466
2752
  alpha: "a-zA-Z",
2467
2753
  ascii: "\\x00-\\x7F",
@@ -2478,6 +2764,7 @@ var require_constants2 = __commonJS({
2478
2764
  xdigit: "A-Fa-f0-9"
2479
2765
  };
2480
2766
  module.exports = {
2767
+ DEFAULT_MAX_EXTGLOB_RECURSION,
2481
2768
  MAX_LENGTH: 1024 * 64,
2482
2769
  POSIX_REGEX_SOURCE,
2483
2770
  // regular expressions
@@ -2489,6 +2776,7 @@ var require_constants2 = __commonJS({
2489
2776
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
2490
2777
  // Replace globs with equivalent patterns to reduce parsing time.
2491
2778
  REPLACEMENTS: {
2779
+ __proto__: null,
2492
2780
  "***": "*",
2493
2781
  "**/**": "**",
2494
2782
  "**/**/**": "**"
@@ -2605,11 +2893,11 @@ var require_constants2 = __commonJS({
2605
2893
  }
2606
2894
  });
2607
2895
 
2608
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
2896
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
2609
2897
  var require_utils2 = __commonJS({
2610
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
2898
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
2611
2899
  "use strict";
2612
- init_utils();
2900
+ init_utils2();
2613
2901
  var path = __require("path");
2614
2902
  var win32 = process.platform === "win32";
2615
2903
  var {
@@ -2667,11 +2955,11 @@ var require_utils2 = __commonJS({
2667
2955
  }
2668
2956
  });
2669
2957
 
2670
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
2958
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
2671
2959
  var require_scan = __commonJS({
2672
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
2960
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
2673
2961
  "use strict";
2674
- init_utils();
2962
+ init_utils2();
2675
2963
  var utils = require_utils2();
2676
2964
  var {
2677
2965
  CHAR_ASTERISK,
@@ -2998,11 +3286,11 @@ var require_scan = __commonJS({
2998
3286
  }
2999
3287
  });
3000
3288
 
3001
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
3289
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
3002
3290
  var require_parse2 = __commonJS({
3003
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
3291
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
3004
3292
  "use strict";
3005
- init_utils();
3293
+ init_utils2();
3006
3294
  var constants2 = require_constants2();
3007
3295
  var utils = require_utils2();
3008
3296
  var {
@@ -3021,13 +3309,220 @@ var require_parse2 = __commonJS({
3021
3309
  try {
3022
3310
  new RegExp(value);
3023
3311
  } catch (ex) {
3024
- return args.map((v2) => utils.escapeRegex(v2)).join("..");
3312
+ return args.map((v) => utils.escapeRegex(v)).join("..");
3025
3313
  }
3026
3314
  return value;
3027
3315
  };
3028
3316
  var syntaxError = (type, char) => {
3029
3317
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
3030
3318
  };
3319
+ var splitTopLevel = (input) => {
3320
+ const parts = [];
3321
+ let bracket = 0;
3322
+ let paren = 0;
3323
+ let quote = 0;
3324
+ let value = "";
3325
+ let escaped = false;
3326
+ for (const ch of input) {
3327
+ if (escaped === true) {
3328
+ value += ch;
3329
+ escaped = false;
3330
+ continue;
3331
+ }
3332
+ if (ch === "\\") {
3333
+ value += ch;
3334
+ escaped = true;
3335
+ continue;
3336
+ }
3337
+ if (ch === '"') {
3338
+ quote = quote === 1 ? 0 : 1;
3339
+ value += ch;
3340
+ continue;
3341
+ }
3342
+ if (quote === 0) {
3343
+ if (ch === "[") {
3344
+ bracket++;
3345
+ } else if (ch === "]" && bracket > 0) {
3346
+ bracket--;
3347
+ } else if (bracket === 0) {
3348
+ if (ch === "(") {
3349
+ paren++;
3350
+ } else if (ch === ")" && paren > 0) {
3351
+ paren--;
3352
+ } else if (ch === "|" && paren === 0) {
3353
+ parts.push(value);
3354
+ value = "";
3355
+ continue;
3356
+ }
3357
+ }
3358
+ }
3359
+ value += ch;
3360
+ }
3361
+ parts.push(value);
3362
+ return parts;
3363
+ };
3364
+ var isPlainBranch = (branch) => {
3365
+ let escaped = false;
3366
+ for (const ch of branch) {
3367
+ if (escaped === true) {
3368
+ escaped = false;
3369
+ continue;
3370
+ }
3371
+ if (ch === "\\") {
3372
+ escaped = true;
3373
+ continue;
3374
+ }
3375
+ if (/[?*+@!()[\]{}]/.test(ch)) {
3376
+ return false;
3377
+ }
3378
+ }
3379
+ return true;
3380
+ };
3381
+ var normalizeSimpleBranch = (branch) => {
3382
+ let value = branch.trim();
3383
+ let changed = true;
3384
+ while (changed === true) {
3385
+ changed = false;
3386
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
3387
+ value = value.slice(2, -1);
3388
+ changed = true;
3389
+ }
3390
+ }
3391
+ if (!isPlainBranch(value)) {
3392
+ return;
3393
+ }
3394
+ return value.replace(/\\(.)/g, "$1");
3395
+ };
3396
+ var hasRepeatedCharPrefixOverlap = (branches) => {
3397
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
3398
+ for (let i = 0; i < values.length; i++) {
3399
+ for (let j2 = i + 1; j2 < values.length; j2++) {
3400
+ const a = values[i];
3401
+ const b = values[j2];
3402
+ const char = a[0];
3403
+ if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
3404
+ continue;
3405
+ }
3406
+ if (a === b || a.startsWith(b) || b.startsWith(a)) {
3407
+ return true;
3408
+ }
3409
+ }
3410
+ }
3411
+ return false;
3412
+ };
3413
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
3414
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
3415
+ return;
3416
+ }
3417
+ let bracket = 0;
3418
+ let paren = 0;
3419
+ let quote = 0;
3420
+ let escaped = false;
3421
+ for (let i = 1; i < pattern.length; i++) {
3422
+ const ch = pattern[i];
3423
+ if (escaped === true) {
3424
+ escaped = false;
3425
+ continue;
3426
+ }
3427
+ if (ch === "\\") {
3428
+ escaped = true;
3429
+ continue;
3430
+ }
3431
+ if (ch === '"') {
3432
+ quote = quote === 1 ? 0 : 1;
3433
+ continue;
3434
+ }
3435
+ if (quote === 1) {
3436
+ continue;
3437
+ }
3438
+ if (ch === "[") {
3439
+ bracket++;
3440
+ continue;
3441
+ }
3442
+ if (ch === "]" && bracket > 0) {
3443
+ bracket--;
3444
+ continue;
3445
+ }
3446
+ if (bracket > 0) {
3447
+ continue;
3448
+ }
3449
+ if (ch === "(") {
3450
+ paren++;
3451
+ continue;
3452
+ }
3453
+ if (ch === ")") {
3454
+ paren--;
3455
+ if (paren === 0) {
3456
+ if (requireEnd === true && i !== pattern.length - 1) {
3457
+ return;
3458
+ }
3459
+ return {
3460
+ type: pattern[0],
3461
+ body: pattern.slice(2, i),
3462
+ end: i
3463
+ };
3464
+ }
3465
+ }
3466
+ }
3467
+ };
3468
+ var getStarExtglobSequenceOutput = (pattern) => {
3469
+ let index = 0;
3470
+ const chars = [];
3471
+ while (index < pattern.length) {
3472
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
3473
+ if (!match || match.type !== "*") {
3474
+ return;
3475
+ }
3476
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
3477
+ if (branches.length !== 1) {
3478
+ return;
3479
+ }
3480
+ const branch = normalizeSimpleBranch(branches[0]);
3481
+ if (!branch || branch.length !== 1) {
3482
+ return;
3483
+ }
3484
+ chars.push(branch);
3485
+ index += match.end + 1;
3486
+ }
3487
+ if (chars.length < 1) {
3488
+ return;
3489
+ }
3490
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
3491
+ return `${source}*`;
3492
+ };
3493
+ var repeatedExtglobRecursion = (pattern) => {
3494
+ let depth = 0;
3495
+ let value = pattern.trim();
3496
+ let match = parseRepeatedExtglob(value);
3497
+ while (match) {
3498
+ depth++;
3499
+ value = match.body.trim();
3500
+ match = parseRepeatedExtglob(value);
3501
+ }
3502
+ return depth;
3503
+ };
3504
+ var analyzeRepeatedExtglob = (body, options) => {
3505
+ if (options.maxExtglobRecursion === false) {
3506
+ return { risky: false };
3507
+ }
3508
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
3509
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
3510
+ if (branches.length > 1) {
3511
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
3512
+ return { risky: true };
3513
+ }
3514
+ }
3515
+ for (const branch of branches) {
3516
+ const safeOutput = getStarExtglobSequenceOutput(branch);
3517
+ if (safeOutput) {
3518
+ return { risky: true, safeOutput };
3519
+ }
3520
+ if (repeatedExtglobRecursion(branch) > max) {
3521
+ return { risky: true };
3522
+ }
3523
+ }
3524
+ return { risky: false };
3525
+ };
3031
3526
  var parse2 = (input, options) => {
3032
3527
  if (typeof input !== "string") {
3033
3528
  throw new TypeError("Expected a string");
@@ -3159,6 +3654,8 @@ var require_parse2 = __commonJS({
3159
3654
  token.prev = prev;
3160
3655
  token.parens = state.parens;
3161
3656
  token.output = state.output;
3657
+ token.startIndex = state.index;
3658
+ token.tokensIndex = tokens.length;
3162
3659
  const output = (opts.capture ? "(" : "") + token.open;
3163
3660
  increment("parens");
3164
3661
  push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -3166,6 +3663,26 @@ var require_parse2 = __commonJS({
3166
3663
  extglobs.push(token);
3167
3664
  };
3168
3665
  const extglobClose = (token) => {
3666
+ const literal = input.slice(token.startIndex, state.index + 1);
3667
+ const body = input.slice(token.startIndex + 2, state.index);
3668
+ const analysis = analyzeRepeatedExtglob(body, opts);
3669
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
3670
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
3671
+ const open = tokens[token.tokensIndex];
3672
+ open.type = "text";
3673
+ open.value = literal;
3674
+ open.output = safeOutput || utils.escapeRegex(literal);
3675
+ for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
3676
+ tokens[i].value = "";
3677
+ tokens[i].output = "";
3678
+ delete tokens[i].suffix;
3679
+ }
3680
+ state.output = token.output + open.output;
3681
+ state.backtrack = true;
3682
+ push({ type: "paren", extglob: true, value, output: "" });
3683
+ decrement("parens");
3684
+ return;
3685
+ }
3169
3686
  let output = token.close + (opts.capture ? ")" : "");
3170
3687
  let rest;
3171
3688
  if (token.type === "negate") {
@@ -3189,10 +3706,10 @@ var require_parse2 = __commonJS({
3189
3706
  };
3190
3707
  if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
3191
3708
  let backslashes = false;
3192
- let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m2, esc, chars, first, rest, index) => {
3709
+ let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
3193
3710
  if (first === "\\") {
3194
3711
  backslashes = true;
3195
- return m2;
3712
+ return m;
3196
3713
  }
3197
3714
  if (first === "?") {
3198
3715
  if (esc) {
@@ -3212,14 +3729,14 @@ var require_parse2 = __commonJS({
3212
3729
  }
3213
3730
  return star;
3214
3731
  }
3215
- return esc ? m2 : `\\${m2}`;
3732
+ return esc ? m : `\\${m}`;
3216
3733
  });
3217
3734
  if (backslashes === true) {
3218
3735
  if (opts.unescape === true) {
3219
3736
  output = output.replace(/\\/g, "");
3220
3737
  } else {
3221
- output = output.replace(/\\+/g, (m2) => {
3222
- return m2.length % 2 === 0 ? "\\\\" : m2 ? "\\" : "";
3738
+ output = output.replace(/\\+/g, (m) => {
3739
+ return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
3223
3740
  });
3224
3741
  }
3225
3742
  }
@@ -3419,8 +3936,8 @@ var require_parse2 = __commonJS({
3419
3936
  brace.value = brace.output = "\\{";
3420
3937
  value = output = "\\}";
3421
3938
  state.output = out;
3422
- for (const t of toks) {
3423
- state.output += t.output || t.value;
3939
+ for (const t2 of toks) {
3940
+ state.output += t2.output || t2.value;
3424
3941
  }
3425
3942
  }
3426
3943
  push({ type: "brace", value, output });
@@ -3772,11 +4289,11 @@ var require_parse2 = __commonJS({
3772
4289
  }
3773
4290
  });
3774
4291
 
3775
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
4292
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
3776
4293
  var require_picomatch = __commonJS({
3777
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
4294
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3778
4295
  "use strict";
3779
- init_utils();
4296
+ init_utils2();
3780
4297
  var path = __require("path");
3781
4298
  var scan = require_scan();
3782
4299
  var parse2 = require_parse2();
@@ -3914,11 +4431,11 @@ var require_picomatch = __commonJS({
3914
4431
  }
3915
4432
  });
3916
4433
 
3917
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js
4434
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
3918
4435
  var require_picomatch2 = __commonJS({
3919
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
4436
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
3920
4437
  "use strict";
3921
- init_utils();
4438
+ init_utils2();
3922
4439
  module.exports = require_picomatch();
3923
4440
  }
3924
4441
  });
@@ -3927,15 +4444,15 @@ var require_picomatch2 = __commonJS({
3927
4444
  var require_micromatch = __commonJS({
3928
4445
  "node_modules/.bun/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
3929
4446
  "use strict";
3930
- init_utils();
4447
+ init_utils2();
3931
4448
  var util = __require("util");
3932
4449
  var braces = require_braces();
3933
4450
  var picomatch = require_picomatch2();
3934
4451
  var utils = require_utils2();
3935
- var isEmptyString = (v2) => v2 === "" || v2 === "./";
3936
- var hasBraces = (v2) => {
3937
- const index = v2.indexOf("{");
3938
- return index > -1 && v2.indexOf("}", index) > -1;
4452
+ var isEmptyString = (v) => v === "" || v === "./";
4453
+ var hasBraces = (v) => {
4454
+ const index = v.indexOf("{");
4455
+ return index > -1 && v.indexOf("}", index) > -1;
3939
4456
  };
3940
4457
  var micromatch = (list, patterns, options) => {
3941
4458
  patterns = [].concat(patterns);
@@ -4055,7 +4572,7 @@ var require_micromatch = __commonJS({
4055
4572
  let regex = picomatch.makeRe(String(glob2), { ...options, capture: true });
4056
4573
  let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
4057
4574
  if (match) {
4058
- return match.slice(1).map((v2) => v2 === void 0 ? "" : v2);
4575
+ return match.slice(1).map((v) => v === void 0 ? "" : v);
4059
4576
  }
4060
4577
  };
4061
4578
  micromatch.makeRe = (...args) => picomatch.makeRe(...args);
@@ -4089,7 +4606,7 @@ var require_micromatch = __commonJS({
4089
4606
  var require_pattern = __commonJS({
4090
4607
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
4091
4608
  "use strict";
4092
- init_utils();
4609
+ init_utils2();
4093
4610
  Object.defineProperty(exports, "__esModule", { value: true });
4094
4611
  exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
4095
4612
  var path = __require("path");
@@ -4199,7 +4716,7 @@ var require_pattern = __commonJS({
4199
4716
  exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
4200
4717
  function expandBraceExpansion(pattern) {
4201
4718
  const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
4202
- patterns.sort((a, b3) => a.length - b3.length);
4719
+ patterns.sort((a, b) => a.length - b.length);
4203
4720
  return patterns.filter((pattern2) => pattern2 !== "");
4204
4721
  }
4205
4722
  exports.expandBraceExpansion = expandBraceExpansion;
@@ -4255,7 +4772,7 @@ var require_pattern = __commonJS({
4255
4772
  var require_merge2 = __commonJS({
4256
4773
  "node_modules/.bun/merge2@1.4.1/node_modules/merge2/index.js"(exports, module) {
4257
4774
  "use strict";
4258
- init_utils();
4775
+ init_utils2();
4259
4776
  var Stream = __require("stream");
4260
4777
  var PassThrough = Stream.PassThrough;
4261
4778
  var slice = Array.prototype.slice;
@@ -4375,7 +4892,7 @@ var require_merge2 = __commonJS({
4375
4892
  var require_stream = __commonJS({
4376
4893
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
4377
4894
  "use strict";
4378
- init_utils();
4895
+ init_utils2();
4379
4896
  Object.defineProperty(exports, "__esModule", { value: true });
4380
4897
  exports.merge = void 0;
4381
4898
  var merge2 = require_merge2();
@@ -4399,7 +4916,7 @@ var require_stream = __commonJS({
4399
4916
  var require_string = __commonJS({
4400
4917
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
4401
4918
  "use strict";
4402
- init_utils();
4919
+ init_utils2();
4403
4920
  Object.defineProperty(exports, "__esModule", { value: true });
4404
4921
  exports.isEmpty = exports.isString = void 0;
4405
4922
  function isString(input) {
@@ -4417,7 +4934,7 @@ var require_string = __commonJS({
4417
4934
  var require_utils3 = __commonJS({
4418
4935
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
4419
4936
  "use strict";
4420
- init_utils();
4937
+ init_utils2();
4421
4938
  Object.defineProperty(exports, "__esModule", { value: true });
4422
4939
  exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
4423
4940
  var array = require_array();
@@ -4441,7 +4958,7 @@ var require_utils3 = __commonJS({
4441
4958
  var require_tasks = __commonJS({
4442
4959
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
4443
4960
  "use strict";
4444
- init_utils();
4961
+ init_utils2();
4445
4962
  Object.defineProperty(exports, "__esModule", { value: true });
4446
4963
  exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
4447
4964
  var utils = require_utils3();
@@ -4538,7 +5055,7 @@ var require_tasks = __commonJS({
4538
5055
  var require_async = __commonJS({
4539
5056
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
4540
5057
  "use strict";
4541
- init_utils();
5058
+ init_utils2();
4542
5059
  Object.defineProperty(exports, "__esModule", { value: true });
4543
5060
  exports.read = void 0;
4544
5061
  function read2(path, settings, callback) {
@@ -4581,7 +5098,7 @@ var require_async = __commonJS({
4581
5098
  var require_sync = __commonJS({
4582
5099
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
4583
5100
  "use strict";
4584
- init_utils();
5101
+ init_utils2();
4585
5102
  Object.defineProperty(exports, "__esModule", { value: true });
4586
5103
  exports.read = void 0;
4587
5104
  function read2(path, settings) {
@@ -4610,7 +5127,7 @@ var require_sync = __commonJS({
4610
5127
  var require_fs2 = __commonJS({
4611
5128
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
4612
5129
  "use strict";
4613
- init_utils();
5130
+ init_utils2();
4614
5131
  Object.defineProperty(exports, "__esModule", { value: true });
4615
5132
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4616
5133
  var fs2 = __require("fs");
@@ -4634,7 +5151,7 @@ var require_fs2 = __commonJS({
4634
5151
  var require_settings = __commonJS({
4635
5152
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
4636
5153
  "use strict";
4637
- init_utils();
5154
+ init_utils2();
4638
5155
  Object.defineProperty(exports, "__esModule", { value: true });
4639
5156
  var fs2 = require_fs2();
4640
5157
  var Settings = class {
@@ -4657,7 +5174,7 @@ var require_settings = __commonJS({
4657
5174
  var require_out = __commonJS({
4658
5175
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
4659
5176
  "use strict";
4660
- init_utils();
5177
+ init_utils2();
4661
5178
  Object.defineProperty(exports, "__esModule", { value: true });
4662
5179
  exports.statSync = exports.stat = exports.Settings = void 0;
4663
5180
  var async = require_async();
@@ -4689,7 +5206,7 @@ var require_out = __commonJS({
4689
5206
  // node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
4690
5207
  var require_queue_microtask = __commonJS({
4691
5208
  "node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module) {
4692
- init_utils();
5209
+ init_utils2();
4693
5210
  var promise;
4694
5211
  module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
4695
5212
  throw err;
@@ -4700,7 +5217,7 @@ var require_queue_microtask = __commonJS({
4700
5217
  // node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js
4701
5218
  var require_run_parallel = __commonJS({
4702
5219
  "node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module) {
4703
- init_utils();
5220
+ init_utils2();
4704
5221
  module.exports = runParallel;
4705
5222
  var queueMicrotask2 = require_queue_microtask();
4706
5223
  function runParallel(tasks, cb) {
@@ -4752,7 +5269,7 @@ var require_run_parallel = __commonJS({
4752
5269
  var require_constants3 = __commonJS({
4753
5270
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
4754
5271
  "use strict";
4755
- init_utils();
5272
+ init_utils2();
4756
5273
  Object.defineProperty(exports, "__esModule", { value: true });
4757
5274
  exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
4758
5275
  var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
@@ -4773,7 +5290,7 @@ var require_constants3 = __commonJS({
4773
5290
  var require_fs3 = __commonJS({
4774
5291
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
4775
5292
  "use strict";
4776
- init_utils();
5293
+ init_utils2();
4777
5294
  Object.defineProperty(exports, "__esModule", { value: true });
4778
5295
  exports.createDirentFromStats = void 0;
4779
5296
  var DirentFromStats = class {
@@ -4799,7 +5316,7 @@ var require_fs3 = __commonJS({
4799
5316
  var require_utils4 = __commonJS({
4800
5317
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
4801
5318
  "use strict";
4802
- init_utils();
5319
+ init_utils2();
4803
5320
  Object.defineProperty(exports, "__esModule", { value: true });
4804
5321
  exports.fs = void 0;
4805
5322
  var fs2 = require_fs3();
@@ -4811,14 +5328,14 @@ var require_utils4 = __commonJS({
4811
5328
  var require_common = __commonJS({
4812
5329
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
4813
5330
  "use strict";
4814
- init_utils();
5331
+ init_utils2();
4815
5332
  Object.defineProperty(exports, "__esModule", { value: true });
4816
5333
  exports.joinPathSegments = void 0;
4817
- function joinPathSegments(a, b3, separator) {
5334
+ function joinPathSegments(a, b, separator) {
4818
5335
  if (a.endsWith(separator)) {
4819
- return a + b3;
5336
+ return a + b;
4820
5337
  }
4821
- return a + separator + b3;
5338
+ return a + separator + b;
4822
5339
  }
4823
5340
  exports.joinPathSegments = joinPathSegments;
4824
5341
  }
@@ -4828,7 +5345,7 @@ var require_common = __commonJS({
4828
5345
  var require_async2 = __commonJS({
4829
5346
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
4830
5347
  "use strict";
4831
- init_utils();
5348
+ init_utils2();
4832
5349
  Object.defineProperty(exports, "__esModule", { value: true });
4833
5350
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4834
5351
  var fsStat = require_out();
@@ -4939,7 +5456,7 @@ var require_async2 = __commonJS({
4939
5456
  var require_sync2 = __commonJS({
4940
5457
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
4941
5458
  "use strict";
4942
- init_utils();
5459
+ init_utils2();
4943
5460
  Object.defineProperty(exports, "__esModule", { value: true });
4944
5461
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4945
5462
  var fsStat = require_out();
@@ -4999,7 +5516,7 @@ var require_sync2 = __commonJS({
4999
5516
  var require_fs4 = __commonJS({
5000
5517
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
5001
5518
  "use strict";
5002
- init_utils();
5519
+ init_utils2();
5003
5520
  Object.defineProperty(exports, "__esModule", { value: true });
5004
5521
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
5005
5522
  var fs2 = __require("fs");
@@ -5025,7 +5542,7 @@ var require_fs4 = __commonJS({
5025
5542
  var require_settings2 = __commonJS({
5026
5543
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
5027
5544
  "use strict";
5028
- init_utils();
5545
+ init_utils2();
5029
5546
  Object.defineProperty(exports, "__esModule", { value: true });
5030
5547
  var path = __require("path");
5031
5548
  var fsStat = require_out();
@@ -5056,7 +5573,7 @@ var require_settings2 = __commonJS({
5056
5573
  var require_out2 = __commonJS({
5057
5574
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
5058
5575
  "use strict";
5059
- init_utils();
5576
+ init_utils2();
5060
5577
  Object.defineProperty(exports, "__esModule", { value: true });
5061
5578
  exports.Settings = exports.scandirSync = exports.scandir = void 0;
5062
5579
  var async = require_async2();
@@ -5089,7 +5606,7 @@ var require_out2 = __commonJS({
5089
5606
  var require_reusify = __commonJS({
5090
5607
  "node_modules/.bun/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module) {
5091
5608
  "use strict";
5092
- init_utils();
5609
+ init_utils2();
5093
5610
  function reusify(Constructor) {
5094
5611
  var head = new Constructor();
5095
5612
  var tail = head;
@@ -5121,7 +5638,7 @@ var require_reusify = __commonJS({
5121
5638
  var require_queue = __commonJS({
5122
5639
  "node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
5123
5640
  "use strict";
5124
- init_utils();
5641
+ init_utils2();
5125
5642
  var reusify = require_reusify();
5126
5643
  function fastqueue(context, worker, _concurrency) {
5127
5644
  if (typeof context === "function") {
@@ -5406,7 +5923,7 @@ var require_queue = __commonJS({
5406
5923
  var require_common2 = __commonJS({
5407
5924
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
5408
5925
  "use strict";
5409
- init_utils();
5926
+ init_utils2();
5410
5927
  Object.defineProperty(exports, "__esModule", { value: true });
5411
5928
  exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
5412
5929
  function isFatalError(settings, error2) {
@@ -5424,14 +5941,14 @@ var require_common2 = __commonJS({
5424
5941
  return filepath.split(/[/\\]/).join(separator);
5425
5942
  }
5426
5943
  exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
5427
- function joinPathSegments(a, b3, separator) {
5944
+ function joinPathSegments(a, b, separator) {
5428
5945
  if (a === "") {
5429
- return b3;
5946
+ return b;
5430
5947
  }
5431
5948
  if (a.endsWith(separator)) {
5432
- return a + b3;
5949
+ return a + b;
5433
5950
  }
5434
- return a + separator + b3;
5951
+ return a + separator + b;
5435
5952
  }
5436
5953
  exports.joinPathSegments = joinPathSegments;
5437
5954
  }
@@ -5441,7 +5958,7 @@ var require_common2 = __commonJS({
5441
5958
  var require_reader = __commonJS({
5442
5959
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
5443
5960
  "use strict";
5444
- init_utils();
5961
+ init_utils2();
5445
5962
  Object.defineProperty(exports, "__esModule", { value: true });
5446
5963
  var common = require_common2();
5447
5964
  var Reader = class {
@@ -5459,7 +5976,7 @@ var require_reader = __commonJS({
5459
5976
  var require_async3 = __commonJS({
5460
5977
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
5461
5978
  "use strict";
5462
- init_utils();
5979
+ init_utils2();
5463
5980
  Object.defineProperty(exports, "__esModule", { value: true });
5464
5981
  var events_1 = __require("events");
5465
5982
  var fsScandir = require_out2();
@@ -5563,7 +6080,7 @@ var require_async3 = __commonJS({
5563
6080
  var require_async4 = __commonJS({
5564
6081
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
5565
6082
  "use strict";
5566
- init_utils();
6083
+ init_utils2();
5567
6084
  Object.defineProperty(exports, "__esModule", { value: true });
5568
6085
  var async_1 = require_async3();
5569
6086
  var AsyncProvider = class {
@@ -5600,7 +6117,7 @@ var require_async4 = __commonJS({
5600
6117
  var require_stream2 = __commonJS({
5601
6118
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
5602
6119
  "use strict";
5603
- init_utils();
6120
+ init_utils2();
5604
6121
  Object.defineProperty(exports, "__esModule", { value: true });
5605
6122
  var stream_1 = __require("stream");
5606
6123
  var async_1 = require_async3();
@@ -5642,7 +6159,7 @@ var require_stream2 = __commonJS({
5642
6159
  var require_sync3 = __commonJS({
5643
6160
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
5644
6161
  "use strict";
5645
- init_utils();
6162
+ init_utils2();
5646
6163
  Object.defineProperty(exports, "__esModule", { value: true });
5647
6164
  var fsScandir = require_out2();
5648
6165
  var common = require_common2();
@@ -5707,7 +6224,7 @@ var require_sync3 = __commonJS({
5707
6224
  var require_sync4 = __commonJS({
5708
6225
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
5709
6226
  "use strict";
5710
- init_utils();
6227
+ init_utils2();
5711
6228
  Object.defineProperty(exports, "__esModule", { value: true });
5712
6229
  var sync_1 = require_sync3();
5713
6230
  var SyncProvider = class {
@@ -5728,7 +6245,7 @@ var require_sync4 = __commonJS({
5728
6245
  var require_settings3 = __commonJS({
5729
6246
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
5730
6247
  "use strict";
5731
- init_utils();
6248
+ init_utils2();
5732
6249
  Object.defineProperty(exports, "__esModule", { value: true });
5733
6250
  var path = __require("path");
5734
6251
  var fsScandir = require_out2();
@@ -5761,7 +6278,7 @@ var require_settings3 = __commonJS({
5761
6278
  var require_out3 = __commonJS({
5762
6279
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
5763
6280
  "use strict";
5764
- init_utils();
6281
+ init_utils2();
5765
6282
  Object.defineProperty(exports, "__esModule", { value: true });
5766
6283
  exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
5767
6284
  var async_1 = require_async4();
@@ -5802,7 +6319,7 @@ var require_out3 = __commonJS({
5802
6319
  var require_reader2 = __commonJS({
5803
6320
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
5804
6321
  "use strict";
5805
- init_utils();
6322
+ init_utils2();
5806
6323
  Object.defineProperty(exports, "__esModule", { value: true });
5807
6324
  var path = __require("path");
5808
6325
  var fsStat = require_out();
@@ -5842,7 +6359,7 @@ var require_reader2 = __commonJS({
5842
6359
  var require_stream3 = __commonJS({
5843
6360
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
5844
6361
  "use strict";
5845
- init_utils();
6362
+ init_utils2();
5846
6363
  Object.defineProperty(exports, "__esModule", { value: true });
5847
6364
  var stream_1 = __require("stream");
5848
6365
  var fsStat = require_out();
@@ -5900,7 +6417,7 @@ var require_stream3 = __commonJS({
5900
6417
  var require_async5 = __commonJS({
5901
6418
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
5902
6419
  "use strict";
5903
- init_utils();
6420
+ init_utils2();
5904
6421
  Object.defineProperty(exports, "__esModule", { value: true });
5905
6422
  var fsWalk = require_out3();
5906
6423
  var reader_1 = require_reader2();
@@ -5940,7 +6457,7 @@ var require_async5 = __commonJS({
5940
6457
  var require_matcher = __commonJS({
5941
6458
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
5942
6459
  "use strict";
5943
- init_utils();
6460
+ init_utils2();
5944
6461
  Object.defineProperty(exports, "__esModule", { value: true });
5945
6462
  var utils = require_utils3();
5946
6463
  var Matcher = class {
@@ -5992,7 +6509,7 @@ var require_matcher = __commonJS({
5992
6509
  var require_partial = __commonJS({
5993
6510
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
5994
6511
  "use strict";
5995
- init_utils();
6512
+ init_utils2();
5996
6513
  Object.defineProperty(exports, "__esModule", { value: true });
5997
6514
  var matcher_1 = require_matcher();
5998
6515
  var PartialMatcher = class extends matcher_1.default {
@@ -6030,7 +6547,7 @@ var require_partial = __commonJS({
6030
6547
  var require_deep = __commonJS({
6031
6548
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
6032
6549
  "use strict";
6033
- init_utils();
6550
+ init_utils2();
6034
6551
  Object.defineProperty(exports, "__esModule", { value: true });
6035
6552
  var utils = require_utils3();
6036
6553
  var partial_1 = require_partial();
@@ -6096,7 +6613,7 @@ var require_deep = __commonJS({
6096
6613
  var require_entry = __commonJS({
6097
6614
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
6098
6615
  "use strict";
6099
- init_utils();
6616
+ init_utils2();
6100
6617
  Object.defineProperty(exports, "__esModule", { value: true });
6101
6618
  var utils = require_utils3();
6102
6619
  var EntryFilter = class {
@@ -6185,7 +6702,7 @@ var require_entry = __commonJS({
6185
6702
  var require_error = __commonJS({
6186
6703
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
6187
6704
  "use strict";
6188
- init_utils();
6705
+ init_utils2();
6189
6706
  Object.defineProperty(exports, "__esModule", { value: true });
6190
6707
  var utils = require_utils3();
6191
6708
  var ErrorFilter = class {
@@ -6207,7 +6724,7 @@ var require_error = __commonJS({
6207
6724
  var require_entry2 = __commonJS({
6208
6725
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
6209
6726
  "use strict";
6210
- init_utils();
6727
+ init_utils2();
6211
6728
  Object.defineProperty(exports, "__esModule", { value: true });
6212
6729
  var utils = require_utils3();
6213
6730
  var EntryTransformer = class {
@@ -6240,7 +6757,7 @@ var require_entry2 = __commonJS({
6240
6757
  var require_provider = __commonJS({
6241
6758
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
6242
6759
  "use strict";
6243
- init_utils();
6760
+ init_utils2();
6244
6761
  Object.defineProperty(exports, "__esModule", { value: true });
6245
6762
  var path = __require("path");
6246
6763
  var deep_1 = require_deep();
@@ -6295,7 +6812,7 @@ var require_provider = __commonJS({
6295
6812
  var require_async6 = __commonJS({
6296
6813
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
6297
6814
  "use strict";
6298
- init_utils();
6815
+ init_utils2();
6299
6816
  Object.defineProperty(exports, "__esModule", { value: true });
6300
6817
  var async_1 = require_async5();
6301
6818
  var provider_1 = require_provider();
@@ -6325,7 +6842,7 @@ var require_async6 = __commonJS({
6325
6842
  var require_stream4 = __commonJS({
6326
6843
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
6327
6844
  "use strict";
6328
- init_utils();
6845
+ init_utils2();
6329
6846
  Object.defineProperty(exports, "__esModule", { value: true });
6330
6847
  var stream_1 = __require("stream");
6331
6848
  var stream_2 = require_stream3();
@@ -6360,7 +6877,7 @@ var require_stream4 = __commonJS({
6360
6877
  var require_sync5 = __commonJS({
6361
6878
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
6362
6879
  "use strict";
6363
- init_utils();
6880
+ init_utils2();
6364
6881
  Object.defineProperty(exports, "__esModule", { value: true });
6365
6882
  var fsStat = require_out();
6366
6883
  var fsWalk = require_out3();
@@ -6409,7 +6926,7 @@ var require_sync5 = __commonJS({
6409
6926
  var require_sync6 = __commonJS({
6410
6927
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
6411
6928
  "use strict";
6412
- init_utils();
6929
+ init_utils2();
6413
6930
  Object.defineProperty(exports, "__esModule", { value: true });
6414
6931
  var sync_1 = require_sync5();
6415
6932
  var provider_1 = require_provider();
@@ -6439,7 +6956,7 @@ var require_sync6 = __commonJS({
6439
6956
  var require_settings4 = __commonJS({
6440
6957
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
6441
6958
  "use strict";
6442
- init_utils();
6959
+ init_utils2();
6443
6960
  Object.defineProperty(exports, "__esModule", { value: true });
6444
6961
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
6445
6962
  var fs2 = __require("fs");
@@ -6500,7 +7017,7 @@ var require_settings4 = __commonJS({
6500
7017
  var require_out4 = __commonJS({
6501
7018
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
6502
7019
  "use strict";
6503
- init_utils();
7020
+ init_utils2();
6504
7021
  var taskManager = require_tasks();
6505
7022
  var async_1 = require_async6();
6506
7023
  var stream_1 = require_stream4();
@@ -6619,7 +7136,7 @@ var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
6619
7136
  var init_constants = __esm({
6620
7137
  "packages/core/config/constants.js"() {
6621
7138
  "use strict";
6622
- init_utils();
7139
+ init_utils2();
6623
7140
  I18N_PATHS = {
6624
7141
  // Monorepo source structure (locales at root, not in src/)
6625
7142
  SOURCE_ROOT: "packages/core/i18n",
@@ -6781,7 +7298,7 @@ var import_fast_glob, constants, log2, PACKAGE_PATHS, PathResolver;
6781
7298
  var init_PathResolver = __esm({
6782
7299
  "packages/core/config/utils/PathResolver.ts"() {
6783
7300
  "use strict";
6784
- init_utils();
7301
+ init_utils2();
6785
7302
  import_fast_glob = __toESM(require_out4(), 1);
6786
7303
  init_constants();
6787
7304
  constants = {
@@ -8082,7 +8599,7 @@ var pathResolverInstance, getPathResolver, getRepoRoot, getAppRoot, setAppRoot,
8082
8599
  var init_pathResolver = __esm({
8083
8600
  "packages/tooling/src/utils/pathResolver.ts"() {
8084
8601
  "use strict";
8085
- init_utils();
8602
+ init_utils2();
8086
8603
  init_PathResolver();
8087
8604
  pathResolverInstance = PathResolver.getInstance({ debug: false });
8088
8605
  getPathResolver = (options) => PathResolver.getInstance(options);
@@ -8165,7 +8682,7 @@ import { dirname as dirname3, resolve as resolve3 } from "node:path";
8165
8682
  import process from "node:process";
8166
8683
  import { fileURLToPath as fileURLToPath3 } from "node:url";
8167
8684
  var require2, __filename, __dirname;
8168
- var init_utils = __esm({
8685
+ var init_utils2 = __esm({
8169
8686
  "packages/tooling/src/bundler/utils.ts"() {
8170
8687
  "use strict";
8171
8688
  require2 = createRequire3(import.meta.url);
@@ -8186,24 +8703,24 @@ var init_utils = __esm({
8186
8703
 
8187
8704
  // packages/tooling/src/utils/cli-input.ts
8188
8705
  async function askForInput(message, defaultValue = "") {
8189
- const result = await he({
8706
+ const result = await Ot({
8190
8707
  message,
8191
8708
  placeholder: defaultValue || void 0,
8192
8709
  defaultValue: defaultValue || void 0
8193
8710
  });
8194
- if (pD(result)) {
8195
- xe("Operation cancelled.");
8711
+ if (q(result)) {
8712
+ pt("Operation cancelled.");
8196
8713
  process.exit(0);
8197
8714
  }
8198
8715
  return result;
8199
8716
  }
8200
8717
  async function askForConfirmation(message, defaultValue = false) {
8201
- const result = await ye({
8718
+ const result = await ot2({
8202
8719
  message,
8203
8720
  initialValue: defaultValue
8204
8721
  });
8205
- if (pD(result)) {
8206
- xe("Operation cancelled.");
8722
+ if (q(result)) {
8723
+ pt("Operation cancelled.");
8207
8724
  process.exit(0);
8208
8725
  }
8209
8726
  return result;
@@ -8214,13 +8731,13 @@ async function askForSelection(message, choices, defaultValue = 0) {
8214
8731
  label: choice.title,
8215
8732
  hint: choice.hint
8216
8733
  }));
8217
- const result = await ve({
8734
+ const result = await _t({
8218
8735
  message,
8219
8736
  options,
8220
8737
  initialValue: choices[defaultValue]?.value
8221
8738
  });
8222
- if (pD(result)) {
8223
- xe("Operation cancelled.");
8739
+ if (q(result)) {
8740
+ pt("Operation cancelled.");
8224
8741
  process.exit(0);
8225
8742
  }
8226
8743
  return result;
@@ -8228,22 +8745,22 @@ async function askForSelection(message, choices, defaultValue = 0) {
8228
8745
  var init_cli_input = __esm({
8229
8746
  "packages/tooling/src/utils/cli-input.ts"() {
8230
8747
  "use strict";
8231
- init_utils();
8232
- init_dist2();
8748
+ init_utils2();
8749
+ init_dist4();
8233
8750
  }
8234
8751
  });
8235
8752
 
8236
8753
  // packages/cli/src/bin/commands/create-app.ts
8237
- init_utils();
8754
+ init_utils2();
8238
8755
 
8239
8756
  // packages/tooling/src/index.ts
8240
- init_utils();
8757
+ init_utils2();
8241
8758
 
8242
8759
  // packages/tooling/src/cli/index.ts
8243
- init_utils();
8760
+ init_utils2();
8244
8761
 
8245
8762
  // packages/tooling/src/utils/create-utils.ts
8246
- init_utils();
8763
+ init_utils2();
8247
8764
  init_cli_output();
8248
8765
  init_pathResolver();
8249
8766
  async function isTextFile(filePath) {
@@ -8388,7 +8905,7 @@ async function updateRootPackageJson(rootDir, appNames) {
8388
8905
  }
8389
8906
 
8390
8907
  // packages/tooling/src/utils/matrix.ts
8391
- init_utils();
8908
+ init_utils2();
8392
8909
  init_pathResolver();
8393
8910
  import { createRequire as createRequire4 } from "node:module";
8394
8911
  var cachedMatrix = null;
@@ -8473,7 +8990,7 @@ function resolveGroups(groupNames, matrix) {
8473
8990
  }
8474
8991
 
8475
8992
  // packages/tooling/src/utils/scaffolding-questionnaire.ts
8476
- init_utils();
8993
+ init_utils2();
8477
8994
  var APP_QUESTIONNAIRE = [
8478
8995
  {
8479
8996
  id: "framework",
@@ -8606,7 +9123,7 @@ async function runQuestionnaire(questions, initialAnswers, showWIP, askFor) {
8606
9123
  }
8607
9124
  if (question.choicesFilter) {
8608
9125
  const allowed = question.choicesFilter(answers);
8609
- choices = choices.filter((c) => allowed.includes(c.value));
9126
+ choices = choices.filter((c2) => allowed.includes(c2.value));
8610
9127
  }
8611
9128
  if (choices.length === 0) continue;
8612
9129
  answer = await askFor.selection(question.question, choices);
@@ -8625,10 +9142,10 @@ async function runQuestionnaire(questions, initialAnswers, showWIP, askFor) {
8625
9142
  }
8626
9143
 
8627
9144
  // packages/tooling/src/scaffolding/create-app.ts
8628
- init_utils();
9145
+ init_utils2();
8629
9146
 
8630
9147
  // packages/tooling/src/scaffolding/scaffold-matrix.ts
8631
- init_utils();
9148
+ init_utils2();
8632
9149
  function resolveDeployConfig(host, backend) {
8633
9150
  if (host === "none") return null;
8634
9151
  if (host === "firebase") return "firebase";
@@ -8652,7 +9169,7 @@ init_cli_input();
8652
9169
  init_cli_output();
8653
9170
 
8654
9171
  // packages/tooling/src/utils/dependency-resolver.ts
8655
- init_utils();
9172
+ init_utils2();
8656
9173
  function applyConditionals(template, options) {
8657
9174
  if (!template.conditional) return [];
8658
9175
  const groups = [];
@@ -8845,7 +9362,7 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
8845
9362
  workspaceRoot = workspaceRoot || currentDir;
8846
9363
  }
8847
9364
  templatesRoot = templatesRoot || getTemplatesRoot();
8848
- Ie("\u{1F680} DoNotDev App Creator");
9365
+ mt("\u{1F680} DoNotDev App Creator");
8849
9366
  if (!appName) {
8850
9367
  appName = await askForInput(
8851
9368
  `App name - '${RESERVED_APP_NAMES.join("', '")}' reserved`,
@@ -8918,7 +9435,7 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
8918
9435
  return;
8919
9436
  }
8920
9437
  }
8921
- const s = Y2();
9438
+ const s = fe();
8922
9439
  s.start(`Creating app: ${appName}`);
8923
9440
  await ensureDir(appDir);
8924
9441
  const builder = appTemplate;
@@ -9107,7 +9624,7 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
9107
9624
  });
9108
9625
  if (firebaseJson.hosting?.rewrites && Array.isArray(firebaseJson.hosting.rewrites)) {
9109
9626
  firebaseJson.hosting.rewrites = firebaseJson.hosting.rewrites.filter(
9110
- (r2) => r2.destination !== "/index.html"
9627
+ (r) => r.destination !== "/index.html"
9111
9628
  );
9112
9629
  }
9113
9630
  if (firebaseJson.hosting) {
@@ -9225,12 +9742,12 @@ async function createApp(appName, appConfig, workspaceRoot, templatesRoot) {
9225
9742
  await updateRootPackageJson(workspaceRoot, allDirs);
9226
9743
  }
9227
9744
  if (isInteractive) {
9228
- Se("\u{1F389} App created successfully!");
9745
+ gt("\u{1F389} App created successfully!");
9229
9746
  const firebaseStep = row.functionsTemplate === "functions-firebase" ? `2. Set Firebase project: cd apps/${appName} && firebase use --add (or edit .firebaserc)
9230
9747
  3. bun install
9231
9748
  4. bun run dev` : `2. bun install
9232
9749
  3. bun run dev`;
9233
- Me(
9750
+ wt(
9234
9751
  `Next steps:
9235
9752
 
9236
9753
  1. cd apps/${appName}