@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;
@@ -33,50 +33,456 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  mod
34
34
  ));
35
35
 
36
+ // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js
37
+ var isAmbiguous, isFullWidth, isWide;
38
+ var init_utils = __esm({
39
+ "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js"() {
40
+ init_utils2();
41
+ isAmbiguous = (x) => {
42
+ 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;
43
+ };
44
+ isFullWidth = (x) => {
45
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
46
+ };
47
+ isWide = (x) => {
48
+ 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;
49
+ };
50
+ }
51
+ });
52
+
53
+ // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js
54
+ var ANSI_RE, CONTROL_RE, TAB_RE, EMOJI_RE, LATIN_RE, MODIFIER_RE, NO_TRUNCATION, getStringTruncatedWidth, dist_default;
55
+ var init_dist = __esm({
56
+ "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js"() {
57
+ init_utils2();
58
+ init_utils();
59
+ ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
60
+ CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
61
+ TAB_RE = /\t{1,1000}/y;
62
+ 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");
63
+ LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
64
+ MODIFIER_RE = new RegExp("\\p{M}+", "gu");
65
+ NO_TRUNCATION = { limit: Infinity, ellipsis: "" };
66
+ getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) => {
67
+ const LIMIT = truncationOptions.limit ?? Infinity;
68
+ const ELLIPSIS = truncationOptions.ellipsis ?? "";
69
+ const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION, widthOptions).width : 0);
70
+ const ANSI_WIDTH = widthOptions.ansiWidth ?? 0;
71
+ const CONTROL_WIDTH = widthOptions.controlWidth ?? 0;
72
+ const TAB_WIDTH = widthOptions.tabWidth ?? 8;
73
+ const AMBIGUOUS_WIDTH = widthOptions.ambiguousWidth ?? 1;
74
+ const EMOJI_WIDTH = widthOptions.emojiWidth ?? 2;
75
+ const FULL_WIDTH_WIDTH = widthOptions.fullWidthWidth ?? 2;
76
+ const REGULAR_WIDTH = widthOptions.regularWidth ?? 1;
77
+ const WIDE_WIDTH = widthOptions.wideWidth ?? 2;
78
+ let indexPrev = 0;
79
+ let index = 0;
80
+ let length = input.length;
81
+ let lengthExtra = 0;
82
+ let truncationEnabled = false;
83
+ let truncationIndex = length;
84
+ let truncationLimit = Math.max(0, LIMIT - ELLIPSIS_WIDTH);
85
+ let unmatchedStart = 0;
86
+ let unmatchedEnd = 0;
87
+ let width = 0;
88
+ let widthExtra = 0;
89
+ outer: while (true) {
90
+ if (unmatchedEnd > unmatchedStart || index >= length && index > indexPrev) {
91
+ const unmatched = input.slice(unmatchedStart, unmatchedEnd) || input.slice(indexPrev, index);
92
+ lengthExtra = 0;
93
+ for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
94
+ const codePoint = char.codePointAt(0) || 0;
95
+ if (isFullWidth(codePoint)) {
96
+ widthExtra = FULL_WIDTH_WIDTH;
97
+ } else if (isWide(codePoint)) {
98
+ widthExtra = WIDE_WIDTH;
99
+ } else if (AMBIGUOUS_WIDTH !== REGULAR_WIDTH && isAmbiguous(codePoint)) {
100
+ widthExtra = AMBIGUOUS_WIDTH;
101
+ } else {
102
+ widthExtra = REGULAR_WIDTH;
103
+ }
104
+ if (width + widthExtra > truncationLimit) {
105
+ truncationIndex = Math.min(truncationIndex, Math.max(unmatchedStart, indexPrev) + lengthExtra);
106
+ }
107
+ if (width + widthExtra > LIMIT) {
108
+ truncationEnabled = true;
109
+ break outer;
110
+ }
111
+ lengthExtra += char.length;
112
+ width += widthExtra;
113
+ }
114
+ unmatchedStart = unmatchedEnd = 0;
115
+ }
116
+ if (index >= length)
117
+ break;
118
+ LATIN_RE.lastIndex = index;
119
+ if (LATIN_RE.test(input)) {
120
+ lengthExtra = LATIN_RE.lastIndex - index;
121
+ widthExtra = lengthExtra * REGULAR_WIDTH;
122
+ if (width + widthExtra > truncationLimit) {
123
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / REGULAR_WIDTH));
124
+ }
125
+ if (width + widthExtra > LIMIT) {
126
+ truncationEnabled = true;
127
+ break;
128
+ }
129
+ width += widthExtra;
130
+ unmatchedStart = indexPrev;
131
+ unmatchedEnd = index;
132
+ index = indexPrev = LATIN_RE.lastIndex;
133
+ continue;
134
+ }
135
+ ANSI_RE.lastIndex = index;
136
+ if (ANSI_RE.test(input)) {
137
+ if (width + ANSI_WIDTH > truncationLimit) {
138
+ truncationIndex = Math.min(truncationIndex, index);
139
+ }
140
+ if (width + ANSI_WIDTH > LIMIT) {
141
+ truncationEnabled = true;
142
+ break;
143
+ }
144
+ width += ANSI_WIDTH;
145
+ unmatchedStart = indexPrev;
146
+ unmatchedEnd = index;
147
+ index = indexPrev = ANSI_RE.lastIndex;
148
+ continue;
149
+ }
150
+ CONTROL_RE.lastIndex = index;
151
+ if (CONTROL_RE.test(input)) {
152
+ lengthExtra = CONTROL_RE.lastIndex - index;
153
+ widthExtra = lengthExtra * CONTROL_WIDTH;
154
+ if (width + widthExtra > truncationLimit) {
155
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / CONTROL_WIDTH));
156
+ }
157
+ if (width + widthExtra > LIMIT) {
158
+ truncationEnabled = true;
159
+ break;
160
+ }
161
+ width += widthExtra;
162
+ unmatchedStart = indexPrev;
163
+ unmatchedEnd = index;
164
+ index = indexPrev = CONTROL_RE.lastIndex;
165
+ continue;
166
+ }
167
+ TAB_RE.lastIndex = index;
168
+ if (TAB_RE.test(input)) {
169
+ lengthExtra = TAB_RE.lastIndex - index;
170
+ widthExtra = lengthExtra * TAB_WIDTH;
171
+ if (width + widthExtra > truncationLimit) {
172
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / TAB_WIDTH));
173
+ }
174
+ if (width + widthExtra > LIMIT) {
175
+ truncationEnabled = true;
176
+ break;
177
+ }
178
+ width += widthExtra;
179
+ unmatchedStart = indexPrev;
180
+ unmatchedEnd = index;
181
+ index = indexPrev = TAB_RE.lastIndex;
182
+ continue;
183
+ }
184
+ EMOJI_RE.lastIndex = index;
185
+ if (EMOJI_RE.test(input)) {
186
+ if (width + EMOJI_WIDTH > truncationLimit) {
187
+ truncationIndex = Math.min(truncationIndex, index);
188
+ }
189
+ if (width + EMOJI_WIDTH > LIMIT) {
190
+ truncationEnabled = true;
191
+ break;
192
+ }
193
+ width += EMOJI_WIDTH;
194
+ unmatchedStart = indexPrev;
195
+ unmatchedEnd = index;
196
+ index = indexPrev = EMOJI_RE.lastIndex;
197
+ continue;
198
+ }
199
+ index += 1;
200
+ }
201
+ return {
202
+ width: truncationEnabled ? truncationLimit : width,
203
+ index: truncationEnabled ? truncationIndex : length,
204
+ truncated: truncationEnabled,
205
+ ellipsed: truncationEnabled && LIMIT >= ELLIPSIS_WIDTH
206
+ };
207
+ };
208
+ dist_default = getStringTruncatedWidth;
209
+ }
210
+ });
211
+
212
+ // node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js
213
+ var NO_TRUNCATION2, fastStringWidth, dist_default2;
214
+ var init_dist2 = __esm({
215
+ "node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js"() {
216
+ init_utils2();
217
+ init_dist();
218
+ NO_TRUNCATION2 = {
219
+ limit: Infinity,
220
+ ellipsis: "",
221
+ ellipsisWidth: 0
222
+ };
223
+ fastStringWidth = (input, options = {}) => {
224
+ return dist_default(input, NO_TRUNCATION2, options).width;
225
+ };
226
+ dist_default2 = fastStringWidth;
227
+ }
228
+ });
229
+
230
+ // node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js
231
+ function wrapAnsi(string, columns, options) {
232
+ return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
233
+ }
234
+ 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;
235
+ var init_main = __esm({
236
+ "node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js"() {
237
+ init_utils2();
238
+ init_dist2();
239
+ ESC = "\x1B";
240
+ CSI = "\x9B";
241
+ END_CODE = 39;
242
+ ANSI_ESCAPE_BELL = "\x07";
243
+ ANSI_CSI = "[";
244
+ ANSI_OSC = "]";
245
+ ANSI_SGR_TERMINATOR = "m";
246
+ ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
247
+ GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
248
+ getClosingCode = (openingCode) => {
249
+ if (openingCode >= 30 && openingCode <= 37)
250
+ return 39;
251
+ if (openingCode >= 90 && openingCode <= 97)
252
+ return 39;
253
+ if (openingCode >= 40 && openingCode <= 47)
254
+ return 49;
255
+ if (openingCode >= 100 && openingCode <= 107)
256
+ return 49;
257
+ if (openingCode === 1 || openingCode === 2)
258
+ return 22;
259
+ if (openingCode === 3)
260
+ return 23;
261
+ if (openingCode === 4)
262
+ return 24;
263
+ if (openingCode === 7)
264
+ return 27;
265
+ if (openingCode === 8)
266
+ return 28;
267
+ if (openingCode === 9)
268
+ return 29;
269
+ if (openingCode === 0)
270
+ return 0;
271
+ return void 0;
272
+ };
273
+ wrapAnsiCode = (code) => `${ESC}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
274
+ wrapAnsiHyperlink = (url) => `${ESC}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
275
+ wrapWord = (rows, word, columns) => {
276
+ const characters = word[Symbol.iterator]();
277
+ let isInsideEscape = false;
278
+ let isInsideLinkEscape = false;
279
+ let lastRow = rows.at(-1);
280
+ let visible = lastRow === void 0 ? 0 : dist_default2(lastRow);
281
+ let currentCharacter = characters.next();
282
+ let nextCharacter = characters.next();
283
+ let rawCharacterIndex = 0;
284
+ while (!currentCharacter.done) {
285
+ const character = currentCharacter.value;
286
+ const characterLength = dist_default2(character);
287
+ if (visible + characterLength <= columns) {
288
+ rows[rows.length - 1] += character;
289
+ } else {
290
+ rows.push(character);
291
+ visible = 0;
292
+ }
293
+ if (character === ESC || character === CSI) {
294
+ isInsideEscape = true;
295
+ isInsideLinkEscape = word.startsWith(ANSI_ESCAPE_LINK, rawCharacterIndex + 1);
296
+ }
297
+ if (isInsideEscape) {
298
+ if (isInsideLinkEscape) {
299
+ if (character === ANSI_ESCAPE_BELL) {
300
+ isInsideEscape = false;
301
+ isInsideLinkEscape = false;
302
+ }
303
+ } else if (character === ANSI_SGR_TERMINATOR) {
304
+ isInsideEscape = false;
305
+ }
306
+ } else {
307
+ visible += characterLength;
308
+ if (visible === columns && !nextCharacter.done) {
309
+ rows.push("");
310
+ visible = 0;
311
+ }
312
+ }
313
+ currentCharacter = nextCharacter;
314
+ nextCharacter = characters.next();
315
+ rawCharacterIndex += character.length;
316
+ }
317
+ lastRow = rows.at(-1);
318
+ if (!visible && lastRow !== void 0 && lastRow.length && rows.length > 1) {
319
+ rows[rows.length - 2] += rows.pop();
320
+ }
321
+ };
322
+ stringVisibleTrimSpacesRight = (string) => {
323
+ const words = string.split(" ");
324
+ let last = words.length;
325
+ while (last) {
326
+ if (dist_default2(words[last - 1])) {
327
+ break;
328
+ }
329
+ last--;
330
+ }
331
+ if (last === words.length) {
332
+ return string;
333
+ }
334
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
335
+ };
336
+ exec = (string, columns, options = {}) => {
337
+ if (options.trim !== false && string.trim() === "") {
338
+ return "";
339
+ }
340
+ let returnValue = "";
341
+ let escapeCode;
342
+ let escapeUrl;
343
+ const words = string.split(" ");
344
+ let rows = [""];
345
+ let rowLength = 0;
346
+ for (let index = 0; index < words.length; index++) {
347
+ const word = words[index];
348
+ if (options.trim !== false) {
349
+ const row = rows.at(-1) ?? "";
350
+ const trimmed = row.trimStart();
351
+ if (row.length !== trimmed.length) {
352
+ rows[rows.length - 1] = trimmed;
353
+ rowLength = dist_default2(trimmed);
354
+ }
355
+ }
356
+ if (index !== 0) {
357
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
358
+ rows.push("");
359
+ rowLength = 0;
360
+ }
361
+ if (rowLength || options.trim === false) {
362
+ rows[rows.length - 1] += " ";
363
+ rowLength++;
364
+ }
365
+ }
366
+ const wordLength = dist_default2(word);
367
+ if (options.hard && wordLength > columns) {
368
+ const remainingColumns = columns - rowLength;
369
+ const breaksStartingThisLine = 1 + Math.floor((wordLength - remainingColumns - 1) / columns);
370
+ const breaksStartingNextLine = Math.floor((wordLength - 1) / columns);
371
+ if (breaksStartingNextLine < breaksStartingThisLine) {
372
+ rows.push("");
373
+ }
374
+ wrapWord(rows, word, columns);
375
+ rowLength = dist_default2(rows.at(-1) ?? "");
376
+ continue;
377
+ }
378
+ if (rowLength + wordLength > columns && rowLength && wordLength) {
379
+ if (options.wordWrap === false && rowLength < columns) {
380
+ wrapWord(rows, word, columns);
381
+ rowLength = dist_default2(rows.at(-1) ?? "");
382
+ continue;
383
+ }
384
+ rows.push("");
385
+ rowLength = 0;
386
+ }
387
+ if (rowLength + wordLength > columns && options.wordWrap === false) {
388
+ wrapWord(rows, word, columns);
389
+ rowLength = dist_default2(rows.at(-1) ?? "");
390
+ continue;
391
+ }
392
+ rows[rows.length - 1] += word;
393
+ rowLength += wordLength;
394
+ }
395
+ if (options.trim !== false) {
396
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
397
+ }
398
+ const preString = rows.join("\n");
399
+ let inSurrogate = false;
400
+ for (let i = 0; i < preString.length; i++) {
401
+ const character = preString[i];
402
+ returnValue += character;
403
+ if (!inSurrogate) {
404
+ inSurrogate = character >= "\uD800" && character <= "\uDBFF";
405
+ } else {
406
+ continue;
407
+ }
408
+ if (character === ESC || character === CSI) {
409
+ GROUP_REGEX.lastIndex = i + 1;
410
+ const groupsResult = GROUP_REGEX.exec(preString);
411
+ const groups = groupsResult?.groups;
412
+ if (groups?.code !== void 0) {
413
+ const code = Number.parseFloat(groups.code);
414
+ escapeCode = code === END_CODE ? void 0 : code;
415
+ } else if (groups?.uri !== void 0) {
416
+ escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
417
+ }
418
+ }
419
+ if (preString[i + 1] === "\n") {
420
+ if (escapeUrl) {
421
+ returnValue += wrapAnsiHyperlink("");
422
+ }
423
+ const closingCode = escapeCode ? getClosingCode(escapeCode) : void 0;
424
+ if (escapeCode && closingCode) {
425
+ returnValue += wrapAnsiCode(closingCode);
426
+ }
427
+ } else if (character === "\n") {
428
+ if (escapeCode && getClosingCode(escapeCode)) {
429
+ returnValue += wrapAnsiCode(escapeCode);
430
+ }
431
+ if (escapeUrl) {
432
+ returnValue += wrapAnsiHyperlink(escapeUrl);
433
+ }
434
+ }
435
+ }
436
+ return returnValue;
437
+ };
438
+ CRLF_OR_LF = /\r?\n/;
439
+ }
440
+ });
441
+
36
442
  // node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
37
443
  var require_src = __commonJS({
38
444
  "node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
39
445
  "use strict";
40
- init_utils();
41
- var ESC = "\x1B";
42
- var CSI = `${ESC}[`;
446
+ init_utils2();
447
+ var ESC2 = "\x1B";
448
+ var CSI2 = `${ESC2}[`;
43
449
  var beep = "\x07";
44
450
  var cursor = {
45
- to(x2, y3) {
46
- if (!y3) return `${CSI}${x2 + 1}G`;
47
- return `${CSI}${y3 + 1};${x2 + 1}H`;
451
+ to(x, y2) {
452
+ if (!y2) return `${CSI2}${x + 1}G`;
453
+ return `${CSI2}${y2 + 1};${x + 1}H`;
48
454
  },
49
- move(x2, y3) {
455
+ move(x, y2) {
50
456
  let ret = "";
51
- if (x2 < 0) ret += `${CSI}${-x2}D`;
52
- else if (x2 > 0) ret += `${CSI}${x2}C`;
53
- if (y3 < 0) ret += `${CSI}${-y3}A`;
54
- else if (y3 > 0) ret += `${CSI}${y3}B`;
457
+ if (x < 0) ret += `${CSI2}${-x}D`;
458
+ else if (x > 0) ret += `${CSI2}${x}C`;
459
+ if (y2 < 0) ret += `${CSI2}${-y2}A`;
460
+ else if (y2 > 0) ret += `${CSI2}${y2}B`;
55
461
  return ret;
56
462
  },
57
- up: (count = 1) => `${CSI}${count}A`,
58
- down: (count = 1) => `${CSI}${count}B`,
59
- forward: (count = 1) => `${CSI}${count}C`,
60
- backward: (count = 1) => `${CSI}${count}D`,
61
- nextLine: (count = 1) => `${CSI}E`.repeat(count),
62
- prevLine: (count = 1) => `${CSI}F`.repeat(count),
63
- left: `${CSI}G`,
64
- hide: `${CSI}?25l`,
65
- show: `${CSI}?25h`,
66
- save: `${ESC}7`,
67
- restore: `${ESC}8`
463
+ up: (count = 1) => `${CSI2}${count}A`,
464
+ down: (count = 1) => `${CSI2}${count}B`,
465
+ forward: (count = 1) => `${CSI2}${count}C`,
466
+ backward: (count = 1) => `${CSI2}${count}D`,
467
+ nextLine: (count = 1) => `${CSI2}E`.repeat(count),
468
+ prevLine: (count = 1) => `${CSI2}F`.repeat(count),
469
+ left: `${CSI2}G`,
470
+ hide: `${CSI2}?25l`,
471
+ show: `${CSI2}?25h`,
472
+ save: `${ESC2}7`,
473
+ restore: `${ESC2}8`
68
474
  };
69
475
  var scroll = {
70
- up: (count = 1) => `${CSI}S`.repeat(count),
71
- down: (count = 1) => `${CSI}T`.repeat(count)
476
+ up: (count = 1) => `${CSI2}S`.repeat(count),
477
+ down: (count = 1) => `${CSI2}T`.repeat(count)
72
478
  };
73
479
  var erase = {
74
- screen: `${CSI}2J`,
75
- up: (count = 1) => `${CSI}1J`.repeat(count),
76
- down: (count = 1) => `${CSI}J`.repeat(count),
77
- line: `${CSI}2K`,
78
- lineEnd: `${CSI}K`,
79
- lineStart: `${CSI}1K`,
480
+ screen: `${CSI2}2J`,
481
+ up: (count = 1) => `${CSI2}1J`.repeat(count),
482
+ down: (count = 1) => `${CSI2}J`.repeat(count),
483
+ line: `${CSI2}2K`,
484
+ lineEnd: `${CSI2}K`,
485
+ lineStart: `${CSI2}1K`,
80
486
  lines(count) {
81
487
  let clear = "";
82
488
  for (let i = 0; i < count; i++)
@@ -90,533 +496,379 @@ var require_src = __commonJS({
90
496
  }
91
497
  });
92
498
 
93
- // node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
94
- var require_picocolors = __commonJS({
95
- "node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
96
- init_utils();
97
- var p2 = process || {};
98
- var argv = p2.argv || [];
99
- var env = p2.env || {};
100
- 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);
101
- var formatter = (open, close, replace = open) => (input) => {
102
- let string = "" + input, index = string.indexOf(close, open.length);
103
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
104
- };
105
- var replaceClose = (string, close, replace, index) => {
106
- let result = "", cursor = 0;
107
- do {
108
- result += string.substring(cursor, index) + replace;
109
- cursor = index + close.length;
110
- index = string.indexOf(close, cursor);
111
- } while (~index);
112
- return result + string.substring(cursor);
113
- };
114
- var createColors = (enabled = isColorSupported) => {
115
- let f = enabled ? formatter : () => String;
116
- return {
117
- isColorSupported: enabled,
118
- reset: f("\x1B[0m", "\x1B[0m"),
119
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
120
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
121
- italic: f("\x1B[3m", "\x1B[23m"),
122
- underline: f("\x1B[4m", "\x1B[24m"),
123
- inverse: f("\x1B[7m", "\x1B[27m"),
124
- hidden: f("\x1B[8m", "\x1B[28m"),
125
- strikethrough: f("\x1B[9m", "\x1B[29m"),
126
- black: f("\x1B[30m", "\x1B[39m"),
127
- red: f("\x1B[31m", "\x1B[39m"),
128
- green: f("\x1B[32m", "\x1B[39m"),
129
- yellow: f("\x1B[33m", "\x1B[39m"),
130
- blue: f("\x1B[34m", "\x1B[39m"),
131
- magenta: f("\x1B[35m", "\x1B[39m"),
132
- cyan: f("\x1B[36m", "\x1B[39m"),
133
- white: f("\x1B[37m", "\x1B[39m"),
134
- gray: f("\x1B[90m", "\x1B[39m"),
135
- bgBlack: f("\x1B[40m", "\x1B[49m"),
136
- bgRed: f("\x1B[41m", "\x1B[49m"),
137
- bgGreen: f("\x1B[42m", "\x1B[49m"),
138
- bgYellow: f("\x1B[43m", "\x1B[49m"),
139
- bgBlue: f("\x1B[44m", "\x1B[49m"),
140
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
141
- bgCyan: f("\x1B[46m", "\x1B[49m"),
142
- bgWhite: f("\x1B[47m", "\x1B[49m"),
143
- blackBright: f("\x1B[90m", "\x1B[39m"),
144
- redBright: f("\x1B[91m", "\x1B[39m"),
145
- greenBright: f("\x1B[92m", "\x1B[39m"),
146
- yellowBright: f("\x1B[93m", "\x1B[39m"),
147
- blueBright: f("\x1B[94m", "\x1B[39m"),
148
- magentaBright: f("\x1B[95m", "\x1B[39m"),
149
- cyanBright: f("\x1B[96m", "\x1B[39m"),
150
- whiteBright: f("\x1B[97m", "\x1B[39m"),
151
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
152
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
153
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
154
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
155
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
156
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
157
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
158
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
159
- };
160
- };
161
- module.exports = createColors();
162
- module.exports.createColors = createColors;
163
- }
164
- });
165
-
166
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
167
- import { stdin as j, stdout as M } from "node:process";
168
- import O from "node:readline";
169
- import { Writable as X } from "node:stream";
170
- function DD({ onlyFirst: e2 = false } = {}) {
171
- 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("|");
172
- return new RegExp(t, e2 ? void 0 : "g");
499
+ // node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs
500
+ import { styleText as y } from "node:util";
501
+ import { stdout as S, stdin as $ } from "node:process";
502
+ import P from "node:readline";
503
+ import { ReadStream as D } from "node:tty";
504
+ function d(r, t2, e) {
505
+ if (!e.some((o) => !o.disabled)) return r;
506
+ const s = r + t2, i = Math.max(e.length - 1, 0), n = s < 0 ? i : s > i ? 0 : s;
507
+ return e[n].disabled ? d(n, t2 < 0 ? -1 : 1, e) : n;
173
508
  }
174
- function P(e2) {
175
- if (typeof e2 != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof e2}\``);
176
- return e2.replace(uD, "");
509
+ function V(r, t2) {
510
+ if (typeof r == "string") return u.aliases.get(r) === t2;
511
+ for (const e of r) if (e !== void 0 && V(e, t2)) return true;
512
+ return false;
177
513
  }
178
- function L(e2) {
179
- return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
514
+ function j(r, t2) {
515
+ if (r === t2) return;
516
+ const e = r.split(`
517
+ `), s = t2.split(`
518
+ `), i = Math.max(e.length, s.length), n = [];
519
+ for (let o = 0; o < i; o++) e[o] !== s[o] && n.push(o);
520
+ return { lines: n, numLinesBefore: e.length, numLinesAfter: s.length, numLines: i };
180
521
  }
181
- function p(e2, u2 = {}) {
182
- if (typeof e2 != "string" || e2.length === 0 || (u2 = { ambiguousIsNarrow: true, ...u2 }, e2 = P(e2), e2.length === 0)) return 0;
183
- e2 = e2.replace(sD(), " ");
184
- const t = u2.ambiguousIsNarrow ? 1 : 2;
185
- let F2 = 0;
186
- for (const s of e2) {
187
- const i = s.codePointAt(0);
188
- if (i <= 31 || i >= 127 && i <= 159 || i >= 768 && i <= 879) continue;
189
- switch (eD.eastAsianWidth(s)) {
190
- case "F":
191
- case "W":
192
- F2 += 2;
193
- break;
194
- case "A":
195
- F2 += t;
196
- break;
197
- default:
198
- F2 += 1;
199
- }
200
- }
201
- return F2;
202
- }
203
- function rD() {
204
- const e2 = /* @__PURE__ */ new Map();
205
- for (const [u2, t] of Object.entries(r)) {
206
- 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]);
207
- Object.defineProperty(r, u2, { value: t, enumerable: false });
208
- }
209
- 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) => {
210
- const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u2.toString(16));
211
- if (!t) return [0, 0, 0];
212
- let [F2] = t;
213
- F2.length === 3 && (F2 = [...F2].map((i) => i + i).join(""));
214
- const s = Number.parseInt(F2, 16);
215
- return [s >> 16 & 255, s >> 8 & 255, s & 255];
216
- }, enumerable: false }, hexToAnsi256: { value: (u2) => r.rgbToAnsi256(...r.hexToRgb(u2)), enumerable: false }, ansi256ToAnsi: { value: (u2) => {
217
- if (u2 < 8) return 30 + u2;
218
- if (u2 < 16) return 90 + (u2 - 8);
219
- let t, F2, s;
220
- if (u2 >= 232) t = ((u2 - 232) * 10 + 8) / 255, F2 = t, s = t;
221
- else {
222
- u2 -= 16;
223
- const C2 = u2 % 36;
224
- t = Math.floor(u2 / 36) / 5, F2 = Math.floor(C2 / 6) / 5, s = C2 % 6 / 5;
225
- }
226
- const i = Math.max(t, F2, s) * 2;
227
- if (i === 0) return 30;
228
- let D2 = 30 + (Math.round(s) << 2 | Math.round(F2) << 1 | Math.round(t));
229
- return i === 2 && (D2 += 60), D2;
230
- }, 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;
522
+ function w(r, t2) {
523
+ const e = r;
524
+ e.isTTY && e.setRawMode(t2);
231
525
  }
232
- function Y(e2, u2, t) {
233
- return String(e2).normalize().replace(/\r\n/g, `
234
- `).split(`
235
- `).map((F2) => lD(F2, u2, t)).join(`
526
+ function R(r, t2, e, s = e) {
527
+ const i = O(r ?? S);
528
+ return wrapAnsi(t2, i - e.length, { hard: true, trim: false }).split(`
529
+ `).map((n, o) => `${o === 0 ? s : e}${n}`).join(`
236
530
  `);
237
531
  }
238
- function $(e2, u2) {
239
- if (typeof e2 == "string") return B.aliases.get(e2) === u2;
240
- for (const t of e2) if (t !== void 0 && $(t, u2)) return true;
241
- return false;
242
- }
243
- function BD(e2, u2) {
244
- if (e2 === u2) return;
245
- const t = e2.split(`
246
- `), F2 = u2.split(`
247
- `), s = [];
248
- for (let i = 0; i < Math.max(t.length, F2.length); i++) t[i] !== F2[i] && s.push(i);
249
- return s;
250
- }
251
- function m(e2, u2) {
252
- const t = e2;
253
- t.isTTY && t.setRawMode(u2);
254
- }
255
- var import_sisteransi, 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, A, OD, PD, J, LD;
256
- var init_dist = __esm({
257
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
258
- init_utils();
532
+ var import_sisteransi, E, G, u, Y, C, O, A, p, nt;
533
+ var init_dist3 = __esm({
534
+ "node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs"() {
535
+ init_utils2();
536
+ init_main();
259
537
  import_sisteransi = __toESM(require_src(), 1);
260
- uD = DD();
261
- W = { exports: {} };
262
- (function(e2) {
263
- var u2 = {};
264
- e2.exports = u2, u2.eastAsianWidth = function(F2) {
265
- var s = F2.charCodeAt(0), i = F2.length == 2 ? F2.charCodeAt(1) : 0, D2 = s;
266
- 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";
267
- }, u2.characterLength = function(F2) {
268
- var s = this.eastAsianWidth(F2);
269
- return s == "F" || s == "W" || s == "A" ? 2 : 1;
270
- };
271
- function t(F2) {
272
- return F2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
273
- }
274
- u2.length = function(F2) {
275
- for (var s = t(F2), i = 0, D2 = 0; D2 < s.length; D2++) i = i + this.characterLength(s[D2]);
276
- return i;
277
- }, u2.slice = function(F2, s, i) {
278
- textLen = u2.length(F2), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
279
- for (var D2 = "", C2 = 0, n = t(F2), E = 0; E < n.length; E++) {
280
- var a = n[E], o2 = u2.length(a);
281
- if (C2 >= s - (o2 == 2 ? 1 : 0)) if (C2 + o2 <= i) D2 += a;
282
- else break;
283
- C2 += o2;
284
- }
285
- return D2;
286
- };
287
- })(W);
288
- tD = W.exports;
289
- eD = L(tD);
290
- FD = function() {
291
- 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;
292
- };
293
- sD = L(FD);
294
- w = 10;
295
- N = (e2 = 0) => (u2) => `\x1B[${u2 + e2}m`;
296
- I = (e2 = 0) => (u2) => `\x1B[${38 + e2};5;${u2}m`;
297
- R = (e2 = 0) => (u2, t, F2) => `\x1B[${38 + e2};2;${u2};${t};${F2}m`;
298
- 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] } };
299
- Object.keys(r.modifier);
300
- iD = Object.keys(r.color);
301
- CD = Object.keys(r.bgColor);
302
- [...iD, ...CD];
303
- ED = rD();
304
- d = /* @__PURE__ */ new Set(["\x1B", "\x9B"]);
305
- oD = 39;
306
- y = "\x07";
307
- V = "[";
308
- nD = "]";
309
- G = "m";
310
- _ = `${nD}8;;`;
311
- z = (e2) => `${d.values().next().value}${V}${e2}${G}`;
312
- K = (e2) => `${d.values().next().value}${_}${e2}${y}`;
313
- aD = (e2) => e2.split(" ").map((u2) => p(u2));
314
- k = (e2, u2, t) => {
315
- const F2 = [...u2];
316
- let s = false, i = false, D2 = p(P(e2[e2.length - 1]));
317
- for (const [C2, n] of F2.entries()) {
318
- const E = p(n);
319
- 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) {
320
- i ? n === y && (s = false, i = false) : n === G && (s = false);
321
- continue;
322
- }
323
- D2 += E, D2 === t && C2 < F2.length - 1 && (e2.push(""), D2 = 0);
324
- }
325
- !D2 && e2[e2.length - 1].length > 0 && e2.length > 1 && (e2[e2.length - 2] += e2.pop());
326
- };
327
- hD = (e2) => {
328
- const u2 = e2.split(" ");
329
- let t = u2.length;
330
- for (; t > 0 && !(p(u2[t - 1]) > 0); ) t--;
331
- return t === u2.length ? e2 : u2.slice(0, t).join(" ") + u2.slice(t).join("");
332
- };
333
- lD = (e2, u2, t = {}) => {
334
- if (t.trim !== false && e2.trim() === "") return "";
335
- let F2 = "", s, i;
336
- const D2 = aD(e2);
337
- let C2 = [""];
338
- for (const [E, a] of e2.split(" ").entries()) {
339
- t.trim !== false && (C2[C2.length - 1] = C2[C2.length - 1].trimStart());
340
- let o2 = p(C2[C2.length - 1]);
341
- 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) {
342
- const c = u2 - o2, f = 1 + Math.floor((D2[E] - c - 1) / u2);
343
- Math.floor((D2[E] - 1) / u2) < f && C2.push(""), k(C2, a, u2);
344
- continue;
345
- }
346
- if (o2 + D2[E] > u2 && o2 > 0 && D2[E] > 0) {
347
- if (t.wordWrap === false && o2 < u2) {
348
- k(C2, a, u2);
349
- continue;
350
- }
351
- C2.push("");
352
- }
353
- if (o2 + D2[E] > u2 && t.wordWrap === false) {
354
- k(C2, a, u2);
355
- continue;
356
- }
357
- C2[C2.length - 1] += a;
358
- }
359
- t.trim !== false && (C2 = C2.map((E) => hD(E)));
360
- const n = [...C2.join(`
361
- `)];
362
- for (const [E, a] of n.entries()) {
363
- if (F2 += a, d.has(a)) {
364
- const { groups: c } = new RegExp(`(?:\\${V}(?<code>\\d+)m|\\${_}(?<uri>.*)${y})`).exec(n.slice(E).join("")) || { groups: {} };
365
- if (c.code !== void 0) {
366
- const f = Number.parseFloat(c.code);
367
- s = f === oD ? void 0 : f;
368
- } else c.uri !== void 0 && (i = c.uri.length === 0 ? void 0 : c.uri);
369
- }
370
- const o2 = ED.codes.get(Number(s));
371
- n[E + 1] === `
372
- ` ? (i && (F2 += K("")), s && o2 && (F2 += z(o2))) : a === `
373
- ` && (s && o2 && (F2 += z(s)), i && (F2 += K(i)));
374
- }
375
- return F2;
376
- };
377
- xD = ["up", "down", "left", "right", "space", "enter", "cancel"];
378
- B = { actions: new Set(xD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
379
- AD = globalThis.process.platform.startsWith("win");
380
- S = /* @__PURE__ */ Symbol("clack:cancel");
381
- gD = Object.defineProperty;
382
- vD = (e2, u2, t) => u2 in e2 ? gD(e2, u2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[u2] = t;
383
- h = (e2, u2, t) => (vD(e2, typeof u2 != "symbol" ? u2 + "" : u2, t), t);
384
- x = class {
385
- constructor(u2, t = true) {
386
- 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");
387
- const { input: F2 = j, output: s = M, render: i, signal: D2, ...C2 } = u2;
388
- 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;
538
+ E = ["up", "down", "left", "right", "space", "enter", "cancel"];
539
+ G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
540
+ 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)}` } } };
541
+ Y = globalThis.process.platform.startsWith("win");
542
+ C = /* @__PURE__ */ Symbol("clack:cancel");
543
+ O = (r) => "columns" in r && typeof r.columns == "number" ? r.columns : 80;
544
+ A = (r) => "rows" in r && typeof r.rows == "number" ? r.rows : 20;
545
+ p = class {
546
+ input;
547
+ output;
548
+ _abortSignal;
549
+ rl;
550
+ opts;
551
+ _render;
552
+ _track = false;
553
+ _prevFrame = "";
554
+ _subscribers = /* @__PURE__ */ new Map();
555
+ _cursor = 0;
556
+ state = "initial";
557
+ error = "";
558
+ value;
559
+ userInput = "";
560
+ constructor(t2, e = true) {
561
+ const { input: s = $, output: i = S, render: n, signal: o, ...a } = t2;
562
+ 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;
389
563
  }
390
564
  unsubscribe() {
391
565
  this._subscribers.clear();
392
566
  }
393
- setSubscriber(u2, t) {
394
- const F2 = this._subscribers.get(u2) ?? [];
395
- F2.push(t), this._subscribers.set(u2, F2);
567
+ setSubscriber(t2, e) {
568
+ const s = this._subscribers.get(t2) ?? [];
569
+ s.push(e), this._subscribers.set(t2, s);
396
570
  }
397
- on(u2, t) {
398
- this.setSubscriber(u2, { cb: t });
571
+ on(t2, e) {
572
+ this.setSubscriber(t2, { cb: e });
399
573
  }
400
- once(u2, t) {
401
- this.setSubscriber(u2, { cb: t, once: true });
574
+ once(t2, e) {
575
+ this.setSubscriber(t2, { cb: e, once: true });
402
576
  }
403
- emit(u2, ...t) {
404
- const F2 = this._subscribers.get(u2) ?? [], s = [];
405
- for (const i of F2) i.cb(...t), i.once && s.push(() => F2.splice(F2.indexOf(i), 1));
406
- for (const i of s) i();
577
+ emit(t2, ...e) {
578
+ const s = this._subscribers.get(t2) ?? [], i = [];
579
+ for (const n of s) n.cb(...e), n.once && i.push(() => s.splice(s.indexOf(n), 1));
580
+ for (const n of i) n();
407
581
  }
408
582
  prompt() {
409
- return new Promise((u2, t) => {
583
+ return new Promise((t2) => {
410
584
  if (this._abortSignal) {
411
- if (this._abortSignal.aborted) return this.state = "cancel", this.close(), u2(S);
585
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), t2(C);
412
586
  this._abortSignal.addEventListener("abort", () => {
413
587
  this.state = "cancel", this.close();
414
588
  }, { once: true });
415
589
  }
416
- const F2 = new X();
417
- F2._write = (s, i, D2) => {
418
- this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D2();
419
- }, 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", () => {
420
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u2(this.value);
590
+ 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", () => {
591
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), w(this.input, false), t2(this.value);
421
592
  }), this.once("cancel", () => {
422
- this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), m(this.input, false), u2(S);
593
+ this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), w(this.input, false), t2(C);
423
594
  });
424
595
  });
425
596
  }
426
- onKeypress(u2, t) {
427
- 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") {
597
+ _isActionKey(t2, e) {
598
+ return t2 === " ";
599
+ }
600
+ _setValue(t2) {
601
+ this.value = t2, this.emit("value", this.value);
602
+ }
603
+ _setUserInput(t2, e) {
604
+ this.userInput = t2 ?? "", this.emit("userInput", this.userInput), e && this._track && this.rl && (this.rl.write(this.userInput), this._cursor = this.rl.cursor);
605
+ }
606
+ _clearUserInput() {
607
+ this.rl?.write(null, { ctrl: true, name: "u" }), this._setUserInput("");
608
+ }
609
+ onKeypress(t2, e) {
610
+ 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") {
428
611
  if (this.opts.validate) {
429
- const F2 = this.opts.validate(this.value);
430
- F2 && (this.error = F2 instanceof Error ? F2.message : F2, this.state = "error", this.rl?.write(this.value));
612
+ const s = this.opts.validate(this.value);
613
+ s && (this.error = s instanceof Error ? s.message : s, this.state = "error", this.rl?.write(this.userInput));
431
614
  }
432
615
  this.state !== "error" && (this.state = "submit");
433
616
  }
434
- $([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();
617
+ 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();
435
618
  }
436
619
  close() {
437
620
  this.input.unpipe(), this.input.removeListener("keypress", this.onKeypress), this.output.write(`
438
- `), m(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
621
+ `), w(this.input, false), this.rl?.close(), this.rl = void 0, this.emit(`${this.state}`, this.value), this.unsubscribe();
439
622
  }
440
623
  restoreCursor() {
441
- const u2 = Y(this._prevFrame, process.stdout.columns, { hard: true }).split(`
624
+ const t2 = wrapAnsi(this._prevFrame, process.stdout.columns, { hard: true, trim: false }).split(`
442
625
  `).length - 1;
443
- this.output.write(import_sisteransi.cursor.move(-999, u2 * -1));
626
+ this.output.write(import_sisteransi.cursor.move(-999, t2 * -1));
444
627
  }
445
628
  render() {
446
- const u2 = Y(this._render(this) ?? "", process.stdout.columns, { hard: true });
447
- if (u2 !== this._prevFrame) {
629
+ const t2 = wrapAnsi(this._render(this) ?? "", process.stdout.columns, { hard: true, trim: false });
630
+ if (t2 !== this._prevFrame) {
448
631
  if (this.state === "initial") this.output.write(import_sisteransi.cursor.hide);
449
632
  else {
450
- const t = BD(this._prevFrame, u2);
451
- if (this.restoreCursor(), t && t?.length === 1) {
452
- const F2 = t[0];
453
- this.output.write(import_sisteransi.cursor.move(0, F2)), this.output.write(import_sisteransi.erase.lines(1));
454
- const s = u2.split(`
633
+ const e = j(this._prevFrame, t2), s = A(this.output);
634
+ if (this.restoreCursor(), e) {
635
+ const i = Math.max(0, e.numLinesAfter - s), n = Math.max(0, e.numLinesBefore - s);
636
+ let o = e.lines.find((a) => a >= i);
637
+ if (o === void 0) {
638
+ this._prevFrame = t2;
639
+ return;
640
+ }
641
+ if (e.lines.length === 1) {
642
+ this.output.write(import_sisteransi.cursor.move(0, o - n)), this.output.write(import_sisteransi.erase.lines(1));
643
+ const a = t2.split(`
455
644
  `);
456
- this.output.write(s[F2]), this._prevFrame = u2, this.output.write(import_sisteransi.cursor.move(0, s.length - F2 - 1));
457
- return;
458
- }
459
- if (t && t?.length > 1) {
460
- const F2 = t[0];
461
- this.output.write(import_sisteransi.cursor.move(0, F2)), this.output.write(import_sisteransi.erase.down());
462
- const s = u2.split(`
463
- `).slice(F2);
464
- this.output.write(s.join(`
465
- `)), this._prevFrame = u2;
466
- return;
645
+ this.output.write(a[o]), this._prevFrame = t2, this.output.write(import_sisteransi.cursor.move(0, a.length - o - 1));
646
+ return;
647
+ } else if (e.lines.length > 1) {
648
+ if (i < n) o = i;
649
+ else {
650
+ const h = o - n;
651
+ h > 0 && this.output.write(import_sisteransi.cursor.move(0, h));
652
+ }
653
+ this.output.write(import_sisteransi.erase.down());
654
+ const a = t2.split(`
655
+ `).slice(o);
656
+ this.output.write(a.join(`
657
+ `)), this._prevFrame = t2;
658
+ return;
659
+ }
467
660
  }
468
661
  this.output.write(import_sisteransi.erase.down());
469
662
  }
470
- this.output.write(u2), this.state === "initial" && (this.state = "active"), this._prevFrame = u2;
663
+ this.output.write(t2), this.state === "initial" && (this.state = "active"), this._prevFrame = t2;
471
664
  }
472
665
  }
473
666
  };
474
- A = /* @__PURE__ */ new WeakMap();
475
- OD = Object.defineProperty;
476
- PD = (e2, u2, t) => u2 in e2 ? OD(e2, u2, { enumerable: true, configurable: true, writable: true, value: t }) : e2[u2] = t;
477
- J = (e2, u2, t) => (PD(e2, typeof u2 != "symbol" ? u2 + "" : u2, t), t);
478
- LD = class extends x {
479
- constructor(u2) {
480
- 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) => {
481
- switch (t) {
667
+ nt = class extends p {
668
+ options;
669
+ cursor = 0;
670
+ get _selectedValue() {
671
+ return this.options[this.cursor];
672
+ }
673
+ changeValue() {
674
+ this.value = this._selectedValue.value;
675
+ }
676
+ constructor(t2) {
677
+ super(t2, false), this.options = t2.options;
678
+ const e = this.options.findIndex(({ value: i }) => i === t2.initialValue), s = e === -1 ? 0 : e;
679
+ this.cursor = this.options[s].disabled ? d(s, 1, this.options) : s, this.changeValue(), this.on("cursor", (i) => {
680
+ switch (i) {
482
681
  case "left":
483
682
  case "up":
484
- this.cursor = this.cursor === 0 ? this.options.length - 1 : this.cursor - 1;
683
+ this.cursor = d(this.cursor, -1, this.options);
485
684
  break;
486
685
  case "down":
487
686
  case "right":
488
- this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
687
+ this.cursor = d(this.cursor, 1, this.options);
489
688
  break;
490
689
  }
491
690
  this.changeValue();
492
691
  });
493
692
  }
494
- get _value() {
495
- return this.options[this.cursor];
496
- }
497
- changeValue() {
498
- this.value = this._value.value;
499
- }
500
693
  };
501
694
  }
502
695
  });
503
696
 
504
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs
505
- import { stripVTControlCharacters as S2 } from "node:util";
506
- import y2 from "node:process";
507
- function ce() {
508
- 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";
697
+ // node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs
698
+ import { styleText as t, stripVTControlCharacters as ne } from "node:util";
699
+ import P2 from "node:process";
700
+ import { existsSync as Xe, lstatSync as we, readdirSync as ze } from "node:fs";
701
+ import { dirname as be, join as Qe } from "node:path";
702
+ function Ze() {
703
+ 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";
509
704
  }
510
- var import_picocolors, 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, ve, M2, J2;
511
- var init_dist2 = __esm({
512
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs"() {
513
- init_utils();
514
- init_dist();
515
- init_dist();
516
- import_picocolors = __toESM(require_picocolors(), 1);
705
+ var import_sisteransi2, ee, 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, O2, Ve, re, _t, je;
706
+ var init_dist4 = __esm({
707
+ "node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs"() {
708
+ init_utils2();
709
+ init_dist3();
710
+ init_dist3();
711
+ init_main();
712
+ init_dist2();
517
713
  import_sisteransi2 = __toESM(require_src(), 1);
518
- V2 = ce();
519
- u = (t, n) => V2 ? t : n;
520
- le = u("\u25C6", "*");
521
- L2 = u("\u25A0", "x");
522
- W2 = u("\u25B2", "x");
523
- C = u("\u25C7", "o");
524
- ue = u("\u250C", "T");
525
- o = u("\u2502", "|");
526
- d2 = u("\u2514", "\u2014");
527
- k2 = u("\u25CF", ">");
528
- P2 = u("\u25CB", " ");
529
- A2 = u("\u25FB", "[\u2022]");
530
- T = u("\u25FC", "[+]");
531
- F = u("\u25FB", "[ ]");
532
- $e = u("\u25AA", "\u2022");
533
- _2 = u("\u2500", "-");
534
- me = u("\u256E", "+");
535
- de = u("\u251C", "+");
536
- pe = u("\u256F", "+");
537
- q = u("\u25CF", "\u2022");
538
- D = u("\u25C6", "*");
539
- U = u("\u25B2", "!");
540
- K2 = u("\u25A0", "x");
541
- b2 = (t) => {
542
- switch (t) {
714
+ ee = Ze();
715
+ w2 = (e, i) => ee ? e : i;
716
+ _e = w2("\u25C6", "*");
717
+ oe = w2("\u25A0", "x");
718
+ ue = w2("\u25B2", "x");
719
+ F = w2("\u25C7", "o");
720
+ le = w2("\u250C", "T");
721
+ d2 = w2("\u2502", "|");
722
+ E2 = w2("\u2514", "\u2014");
723
+ Ie = w2("\u2510", "T");
724
+ Ee = w2("\u2518", "\u2014");
725
+ z2 = w2("\u25CF", ">");
726
+ H2 = w2("\u25CB", " ");
727
+ te = w2("\u25FB", "[\u2022]");
728
+ U = w2("\u25FC", "[+]");
729
+ J = w2("\u25FB", "[ ]");
730
+ xe = w2("\u25AA", "\u2022");
731
+ se = w2("\u2500", "-");
732
+ ce = w2("\u256E", "+");
733
+ Ge = w2("\u251C", "+");
734
+ $e = w2("\u256F", "+");
735
+ de = w2("\u2570", "+");
736
+ Oe = w2("\u256D", "+");
737
+ he = w2("\u25CF", "\u2022");
738
+ pe = w2("\u25C6", "*");
739
+ me = w2("\u25B2", "!");
740
+ ge = w2("\u25A0", "x");
741
+ V2 = (e) => {
742
+ switch (e) {
543
743
  case "initial":
544
744
  case "active":
545
- return import_picocolors.default.cyan(le);
745
+ return t("cyan", _e);
546
746
  case "cancel":
547
- return import_picocolors.default.red(L2);
747
+ return t("red", oe);
548
748
  case "error":
549
- return import_picocolors.default.yellow(W2);
749
+ return t("yellow", ue);
550
750
  case "submit":
551
- return import_picocolors.default.green(C);
751
+ return t("green", F);
552
752
  }
553
753
  };
554
- G2 = (t) => {
555
- 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));
556
- let l2 = 0;
557
- 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));
558
- const $2 = a < r2.length && l2 > 0, g = a < r2.length && l2 + a < r2.length;
559
- return r2.slice(l2, l2 + a).map((p2, v, f) => {
560
- const j2 = v === 0 && $2, E = v === f.length - 1 && g;
561
- return j2 || E ? import_picocolors.default.dim("...") : i(p2, v + l2 === n);
562
- });
563
- };
564
- ve = (t) => {
565
- const n = (r2, i) => {
566
- const s = r2.label ?? String(r2.value);
567
- switch (i) {
754
+ ye = (e) => {
755
+ switch (e) {
756
+ case "initial":
757
+ case "active":
758
+ return t("cyan", d2);
759
+ case "cancel":
760
+ return t("red", d2);
761
+ case "error":
762
+ return t("yellow", d2);
763
+ case "submit":
764
+ return t("green", d2);
765
+ }
766
+ };
767
+ et2 = (e, i, s, r, u2) => {
768
+ let n = i, o = 0;
769
+ for (let c2 = s; c2 < r; c2++) {
770
+ const a = e[c2];
771
+ if (n = n - a.length, o++, n <= u2) break;
772
+ }
773
+ return { lineCount: n, removals: o };
774
+ };
775
+ Y2 = ({ cursor: e, options: i, style: s, output: r = process.stdout, maxItems: u2 = Number.POSITIVE_INFINITY, columnPadding: n = 0, rowPadding: o = 4 }) => {
776
+ 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);
777
+ let p2 = 0;
778
+ e >= y2 - 3 && (p2 = Math.max(Math.min(e - y2 + 3, i.length - y2), 0));
779
+ let m = y2 < i.length && p2 > 0, g = y2 < i.length && p2 + y2 < i.length;
780
+ const S2 = Math.min(p2 + y2, i.length), h = [];
781
+ let f = 0;
782
+ m && f++, g && f++;
783
+ const v = p2 + (m ? 1 : 0), T = S2 - (g ? 1 : 0);
784
+ for (let b = v; b < T; b++) {
785
+ const x = wrapAnsi(s(i[b], b === e), c2, { hard: true, trim: false }).split(`
786
+ `);
787
+ h.push(x), f += x.length;
788
+ }
789
+ if (f > $2) {
790
+ let b = 0, x = 0, G2 = f;
791
+ const M2 = e - v, R2 = (j2, D2) => et2(h, G2, j2, D2, $2);
792
+ 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));
793
+ }
794
+ const C2 = [];
795
+ m && C2.push(l);
796
+ for (const b of h) for (const x of b) C2.push(x);
797
+ return g && C2.push(l), C2;
798
+ };
799
+ O2 = { message: (e = [], { symbol: i = t("gray", d2), secondarySymbol: s = t("gray", d2), output: r = process.stdout, spacing: u2 = 1, withGuide: n } = {}) => {
800
+ const o = [], c2 = n ?? u.withGuide, a = c2 ? s : "", l = c2 ? `${i} ` : "", $2 = c2 ? `${s} ` : "";
801
+ for (let p2 = 0; p2 < u2; p2++) o.push(a);
802
+ const y2 = Array.isArray(e) ? e : e.split(`
803
+ `);
804
+ if (y2.length > 0) {
805
+ const [p2, ...m] = y2;
806
+ p2.length > 0 ? o.push(`${l}${p2}`) : o.push(c2 ? i : "");
807
+ for (const g of m) g.length > 0 ? o.push(`${$2}${g}`) : o.push(c2 ? s : "");
808
+ }
809
+ r.write(`${o.join(`
810
+ `)}
811
+ `);
812
+ }, info: (e, i) => {
813
+ O2.message(e, { ...i, symbol: t("blue", he) });
814
+ }, success: (e, i) => {
815
+ O2.message(e, { ...i, symbol: t("green", pe) });
816
+ }, step: (e, i) => {
817
+ O2.message(e, { ...i, symbol: t("green", F) });
818
+ }, warn: (e, i) => {
819
+ O2.message(e, { ...i, symbol: t("yellow", me) });
820
+ }, warning: (e, i) => {
821
+ O2.warn(e, i);
822
+ }, error: (e, i) => {
823
+ O2.message(e, { ...i, symbol: t("red", ge) });
824
+ } };
825
+ Ve = { light: w2("\u2500", "-"), heavy: w2("\u2501", "="), block: w2("\u2588", "#") };
826
+ re = (e, i) => e.includes(`
827
+ `) ? e.split(`
828
+ `).map((s) => i(s)).join(`
829
+ `) : i(e);
830
+ _t = (e) => {
831
+ const i = (s, r) => {
832
+ const u2 = s.label ?? String(s.value);
833
+ switch (r) {
834
+ case "disabled":
835
+ return `${t("gray", H2)} ${re(u2, (n) => t("gray", n))}${s.hint ? ` ${t("dim", `(${s.hint ?? "disabled"})`)}` : ""}`;
568
836
  case "selected":
569
- return `${import_picocolors.default.dim(s)}`;
837
+ return `${re(u2, (n) => t("dim", n))}`;
570
838
  case "active":
571
- return `${import_picocolors.default.green(k2)} ${s} ${r2.hint ? import_picocolors.default.dim(`(${r2.hint})`) : ""}`;
839
+ return `${t("green", z2)} ${u2}${s.hint ? ` ${t("dim", `(${s.hint})`)}` : ""}`;
572
840
  case "cancelled":
573
- return `${import_picocolors.default.strikethrough(import_picocolors.default.dim(s))}`;
841
+ return `${re(u2, (n) => t(["strikethrough", "dim"], n))}`;
574
842
  default:
575
- return `${import_picocolors.default.dim(P2)} ${import_picocolors.default.dim(s)}`;
843
+ return `${t("dim", H2)} ${re(u2, (n) => t("dim", n))}`;
576
844
  }
577
845
  };
578
- return new LD({ options: t.options, initialValue: t.initialValue, render() {
579
- const r2 = `${import_picocolors.default.gray(o)}
580
- ${b2(this.state)} ${t.message}
846
+ return new nt({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
847
+ 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)}
848
+ ` : ""}${n}
581
849
  `;
582
850
  switch (this.state) {
583
- case "submit":
584
- return `${r2}${import_picocolors.default.gray(o)} ${n(this.options[this.cursor], "selected")}`;
585
- case "cancel":
586
- return `${r2}${import_picocolors.default.gray(o)} ${n(this.options[this.cursor], "cancelled")}
587
- ${import_picocolors.default.gray(o)}`;
588
- default:
589
- return `${r2}${import_picocolors.default.cyan(o)} ${G2({ cursor: this.cursor, options: this.options, maxItems: t.maxItems, style: (i, s) => n(i, s ? "active" : "inactive") }).join(`
590
- ${import_picocolors.default.cyan(o)} `)}
591
- ${import_picocolors.default.cyan(d2)}
851
+ case "submit": {
852
+ const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "selected"), c2);
853
+ return `${o}${a}`;
854
+ }
855
+ case "cancel": {
856
+ const c2 = s ? `${t("gray", d2)} ` : "", a = R(e.output, i(this.options[this.cursor], "cancelled"), c2);
857
+ return `${o}${a}${s ? `
858
+ ${t("gray", d2)}` : ""}`;
859
+ }
860
+ default: {
861
+ const c2 = s ? `${t("cyan", d2)} ` : "", a = s ? t("cyan", E2) : "", l = o.split(`
862
+ `).length, $2 = s ? 2 : 1;
863
+ 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(`
864
+ ${c2}`)}
865
+ ${a}
592
866
  `;
867
+ }
593
868
  }
594
869
  } }).prompt();
595
870
  };
596
- M2 = { message: (t = "", { symbol: n = import_picocolors.default.gray(o) } = {}) => {
597
- const r2 = [`${import_picocolors.default.gray(o)}`];
598
- if (t) {
599
- const [i, ...s] = t.split(`
600
- `);
601
- r2.push(`${n} ${i}`, ...s.map((c) => `${import_picocolors.default.gray(o)} ${c}`));
602
- }
603
- process.stdout.write(`${r2.join(`
604
- `)}
605
- `);
606
- }, info: (t) => {
607
- M2.message(t, { symbol: import_picocolors.default.blue(q) });
608
- }, success: (t) => {
609
- M2.message(t, { symbol: import_picocolors.default.green(D) });
610
- }, step: (t) => {
611
- M2.message(t, { symbol: import_picocolors.default.green(C) });
612
- }, warn: (t) => {
613
- M2.message(t, { symbol: import_picocolors.default.yellow(U) });
614
- }, warning: (t) => {
615
- M2.warn(t);
616
- }, error: (t) => {
617
- M2.message(t, { symbol: import_picocolors.default.red(K2) });
618
- } };
619
- J2 = `${import_picocolors.default.gray(o)} `;
871
+ je = `${t("gray", d2)} `;
620
872
  }
621
873
  });
622
874
 
@@ -665,9 +917,9 @@ var colors, currentLogLevel, log, error, warn, info, success;
665
917
  var init_cli_output = __esm({
666
918
  "packages/tooling/src/utils/cli-output.ts"() {
667
919
  "use strict";
668
- init_utils();
669
- init_dist2();
670
- init_dist2();
920
+ init_utils2();
921
+ init_dist4();
922
+ init_dist4();
671
923
  colors = {
672
924
  reset: "\x1B[0m",
673
925
  // Success (green)
@@ -702,7 +954,7 @@ var init_cli_output = __esm({
702
954
  error(...args) {
703
955
  if (currentLogLevel < 0 /* Quiet */) return;
704
956
  const message = formatMessage(...args);
705
- M2.error(colorize(message, colors.brightRed));
957
+ O2.error(colorize(message, colors.brightRed));
706
958
  },
707
959
  /**
708
960
  * Logs a warning message (shows at Normal level and above)
@@ -711,7 +963,7 @@ var init_cli_output = __esm({
711
963
  warn(...args) {
712
964
  if (currentLogLevel < 1 /* Normal */) return;
713
965
  const message = formatMessage(...args);
714
- M2.warn(colorize(message, colors.brightYellow));
966
+ O2.warn(colorize(message, colors.brightYellow));
715
967
  },
716
968
  /**
717
969
  * Logs an info message (shows at Normal level and above)
@@ -720,7 +972,7 @@ var init_cli_output = __esm({
720
972
  info(...args) {
721
973
  if (currentLogLevel < 1 /* Normal */) return;
722
974
  const message = formatMessage(...args);
723
- M2.info(colorize(message, colors.brightCyan));
975
+ O2.info(colorize(message, colors.brightCyan));
724
976
  },
725
977
  /**
726
978
  * Logs a success message (shows at Normal level and above)
@@ -729,7 +981,7 @@ var init_cli_output = __esm({
729
981
  success(...args) {
730
982
  if (currentLogLevel < 1 /* Normal */) return;
731
983
  const message = formatMessage(...args);
732
- M2.success(colorize(message, colors.brightGreen));
984
+ O2.success(colorize(message, colors.brightGreen));
733
985
  },
734
986
  /**
735
987
  * Logs a debug message (only shows at Verbose level and above)
@@ -738,7 +990,7 @@ var init_cli_output = __esm({
738
990
  debug(...args) {
739
991
  if (currentLogLevel < 2 /* Verbose */) return;
740
992
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
741
- M2.message(
993
+ O2.message(
742
994
  colorize(
743
995
  `[${timeStamp}] \u{1F50D} DEBUG: ${formatMessage(...args)}`,
744
996
  colors.gray
@@ -752,7 +1004,7 @@ var init_cli_output = __esm({
752
1004
  trace(...args) {
753
1005
  if (currentLogLevel < 3 /* Debug */) return;
754
1006
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
755
- M2.message(
1007
+ O2.message(
756
1008
  colorize(
757
1009
  `[${timeStamp}] \u{1F52C} TRACE: ${formatMessage(...args)}`,
758
1010
  colors.gray
@@ -772,7 +1024,7 @@ var DO_NOT_DEV_ERROR_CODES, DoNotDevError;
772
1024
  var init_errors = __esm({
773
1025
  "packages/tooling/src/utils/errors.ts"() {
774
1026
  "use strict";
775
- init_utils();
1027
+ init_utils2();
776
1028
  DO_NOT_DEV_ERROR_CODES = {
777
1029
  CONFIGURATION_ERROR: "configuration-error",
778
1030
  CONFIG_NOT_FOUND: "config-not-found",
@@ -913,7 +1165,7 @@ var init_errors = __esm({
913
1165
  var require_array = __commonJS({
914
1166
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
915
1167
  "use strict";
916
- init_utils();
1168
+ init_utils2();
917
1169
  Object.defineProperty(exports, "__esModule", { value: true });
918
1170
  exports.splitWhen = exports.flatten = void 0;
919
1171
  function flatten(items) {
@@ -941,7 +1193,7 @@ var require_array = __commonJS({
941
1193
  var require_errno = __commonJS({
942
1194
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
943
1195
  "use strict";
944
- init_utils();
1196
+ init_utils2();
945
1197
  Object.defineProperty(exports, "__esModule", { value: true });
946
1198
  exports.isEnoentCodeError = void 0;
947
1199
  function isEnoentCodeError(error2) {
@@ -955,7 +1207,7 @@ var require_errno = __commonJS({
955
1207
  var require_fs = __commonJS({
956
1208
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
957
1209
  "use strict";
958
- init_utils();
1210
+ init_utils2();
959
1211
  Object.defineProperty(exports, "__esModule", { value: true });
960
1212
  exports.createDirentFromStats = void 0;
961
1213
  var DirentFromStats = class {
@@ -981,7 +1233,7 @@ var require_fs = __commonJS({
981
1233
  var require_path = __commonJS({
982
1234
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
983
1235
  "use strict";
984
- init_utils();
1236
+ init_utils2();
985
1237
  Object.defineProperty(exports, "__esModule", { value: true });
986
1238
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
987
1239
  var os = __require("os");
@@ -1034,7 +1286,7 @@ var require_path = __commonJS({
1034
1286
  // node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
1035
1287
  var require_is_extglob = __commonJS({
1036
1288
  "node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module) {
1037
- init_utils();
1289
+ init_utils2();
1038
1290
  module.exports = function isExtglob(str) {
1039
1291
  if (typeof str !== "string" || str === "") {
1040
1292
  return false;
@@ -1052,7 +1304,7 @@ var require_is_extglob = __commonJS({
1052
1304
  // node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
1053
1305
  var require_is_glob = __commonJS({
1054
1306
  "node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module) {
1055
- init_utils();
1307
+ init_utils2();
1056
1308
  var isExtglob = require_is_extglob();
1057
1309
  var chars = { "{": "}", "(": ")", "[": "]" };
1058
1310
  var strictCheck = function(str) {
@@ -1185,7 +1437,7 @@ var require_is_glob = __commonJS({
1185
1437
  var require_glob_parent = __commonJS({
1186
1438
  "node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module) {
1187
1439
  "use strict";
1188
- init_utils();
1440
+ init_utils2();
1189
1441
  var isGlob = require_is_glob();
1190
1442
  var pathPosixDirname = __require("path").posix.dirname;
1191
1443
  var isWin32 = __require("os").platform() === "win32";
@@ -1215,7 +1467,7 @@ var require_glob_parent = __commonJS({
1215
1467
  var require_utils = __commonJS({
1216
1468
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
1217
1469
  "use strict";
1218
- init_utils();
1470
+ init_utils2();
1219
1471
  exports.isInteger = (num) => {
1220
1472
  if (typeof num === "number") {
1221
1473
  return Number.isInteger(num);
@@ -1298,7 +1550,7 @@ var require_utils = __commonJS({
1298
1550
  var require_stringify = __commonJS({
1299
1551
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
1300
1552
  "use strict";
1301
- init_utils();
1553
+ init_utils2();
1302
1554
  var utils = require_utils();
1303
1555
  module.exports = (ast, options = {}) => {
1304
1556
  const stringify2 = (node, parent = {}) => {
@@ -1330,7 +1582,7 @@ var require_stringify = __commonJS({
1330
1582
  var require_is_number = __commonJS({
1331
1583
  "node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
1332
1584
  "use strict";
1333
- init_utils();
1585
+ init_utils2();
1334
1586
  module.exports = function(num) {
1335
1587
  if (typeof num === "number") {
1336
1588
  return num - num === 0;
@@ -1347,7 +1599,7 @@ var require_is_number = __commonJS({
1347
1599
  var require_to_regex_range = __commonJS({
1348
1600
  "node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
1349
1601
  "use strict";
1350
- init_utils();
1602
+ init_utils2();
1351
1603
  var isNumber = require_is_number();
1352
1604
  var toRegexRange = (min, max, options) => {
1353
1605
  if (isNumber(min) === false) {
@@ -1372,8 +1624,8 @@ var require_to_regex_range = __commonJS({
1372
1624
  return toRegexRange.cache[cacheKey].result;
1373
1625
  }
1374
1626
  let a = Math.min(min, max);
1375
- let b3 = Math.max(min, max);
1376
- if (Math.abs(a - b3) === 1) {
1627
+ let b = Math.max(min, max);
1628
+ if (Math.abs(a - b) === 1) {
1377
1629
  let result = min + "|" + max;
1378
1630
  if (opts.capture) {
1379
1631
  return `(${result})`;
@@ -1384,7 +1636,7 @@ var require_to_regex_range = __commonJS({
1384
1636
  return `(?:${result})`;
1385
1637
  }
1386
1638
  let isPadded = hasPadding(min) || hasPadding(max);
1387
- let state = { min, max, a, b: b3 };
1639
+ let state = { min, max, a, b };
1388
1640
  let positives = [];
1389
1641
  let negatives = [];
1390
1642
  if (isPadded) {
@@ -1392,12 +1644,12 @@ var require_to_regex_range = __commonJS({
1392
1644
  state.maxLen = String(state.max).length;
1393
1645
  }
1394
1646
  if (a < 0) {
1395
- let newMin = b3 < 0 ? Math.abs(b3) : 1;
1647
+ let newMin = b < 0 ? Math.abs(b) : 1;
1396
1648
  negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
1397
1649
  a = state.a = 0;
1398
1650
  }
1399
- if (b3 >= 0) {
1400
- positives = splitToPatterns(a, b3, state, opts);
1651
+ if (b >= 0) {
1652
+ positives = splitToPatterns(a, b, state, opts);
1401
1653
  }
1402
1654
  state.negatives = negatives;
1403
1655
  state.positives = positives;
@@ -1501,13 +1753,13 @@ var require_to_regex_range = __commonJS({
1501
1753
  }
1502
1754
  return result;
1503
1755
  }
1504
- function zip(a, b3) {
1756
+ function zip(a, b) {
1505
1757
  let arr = [];
1506
- for (let i = 0; i < a.length; i++) arr.push([a[i], b3[i]]);
1758
+ for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
1507
1759
  return arr;
1508
1760
  }
1509
- function compare(a, b3) {
1510
- return a > b3 ? 1 : b3 > a ? -1 : 0;
1761
+ function compare(a, b) {
1762
+ return a > b ? 1 : b > a ? -1 : 0;
1511
1763
  }
1512
1764
  function contains(arr, key, val) {
1513
1765
  return arr.some((ele) => ele[key] === val);
@@ -1525,8 +1777,8 @@ var require_to_regex_range = __commonJS({
1525
1777
  }
1526
1778
  return "";
1527
1779
  }
1528
- function toCharacterClass(a, b3, options) {
1529
- return `[${a}${b3 - a === 1 ? "" : "-"}${b3}]`;
1780
+ function toCharacterClass(a, b, options) {
1781
+ return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
1530
1782
  }
1531
1783
  function hasPadding(str) {
1532
1784
  return /^-?(0+)\d/.test(str);
@@ -1559,7 +1811,7 @@ var require_to_regex_range = __commonJS({
1559
1811
  var require_fill_range = __commonJS({
1560
1812
  "node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
1561
1813
  "use strict";
1562
- init_utils();
1814
+ init_utils2();
1563
1815
  var util = __require("util");
1564
1816
  var toRegexRange = require_to_regex_range();
1565
1817
  var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -1605,8 +1857,8 @@ var require_fill_range = __commonJS({
1605
1857
  return negative ? "-" + input : input;
1606
1858
  };
1607
1859
  var toSequence = (parts, options, maxLen) => {
1608
- parts.negatives.sort((a, b3) => a < b3 ? -1 : a > b3 ? 1 : 0);
1609
- parts.positives.sort((a, b3) => a < b3 ? -1 : a > b3 ? 1 : 0);
1860
+ parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
1861
+ parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
1610
1862
  let prefix = options.capture ? "" : "?:";
1611
1863
  let positives = "";
1612
1864
  let negatives = "";
@@ -1627,13 +1879,13 @@ var require_fill_range = __commonJS({
1627
1879
  }
1628
1880
  return result;
1629
1881
  };
1630
- var toRange = (a, b3, isNumbers, options) => {
1882
+ var toRange = (a, b, isNumbers, options) => {
1631
1883
  if (isNumbers) {
1632
- return toRegexRange(a, b3, { wrap: false, ...options });
1884
+ return toRegexRange(a, b, { wrap: false, ...options });
1633
1885
  }
1634
1886
  let start = String.fromCharCode(a);
1635
- if (a === b3) return start;
1636
- let stop = String.fromCharCode(b3);
1887
+ if (a === b) return start;
1888
+ let stop = String.fromCharCode(b);
1637
1889
  return `[${start}-${stop}]`;
1638
1890
  };
1639
1891
  var toRegex = (start, end, options) => {
@@ -1659,14 +1911,14 @@ var require_fill_range = __commonJS({
1659
1911
  };
1660
1912
  var fillNumbers = (start, end, step = 1, options = {}) => {
1661
1913
  let a = Number(start);
1662
- let b3 = Number(end);
1663
- if (!Number.isInteger(a) || !Number.isInteger(b3)) {
1914
+ let b = Number(end);
1915
+ if (!Number.isInteger(a) || !Number.isInteger(b)) {
1664
1916
  if (options.strictRanges === true) throw rangeError([start, end]);
1665
1917
  return [];
1666
1918
  }
1667
1919
  if (a === 0) a = 0;
1668
- if (b3 === 0) b3 = 0;
1669
- let descending = a > b3;
1920
+ if (b === 0) b = 0;
1921
+ let descending = a > b;
1670
1922
  let startString = String(start);
1671
1923
  let endString = String(end);
1672
1924
  let stepString = String(step);
@@ -1682,7 +1934,7 @@ var require_fill_range = __commonJS({
1682
1934
  let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
1683
1935
  let range = [];
1684
1936
  let index = 0;
1685
- while (descending ? a >= b3 : a <= b3) {
1937
+ while (descending ? a >= b : a <= b) {
1686
1938
  if (options.toRegex === true && step > 1) {
1687
1939
  push(a);
1688
1940
  } else {
@@ -1702,16 +1954,16 @@ var require_fill_range = __commonJS({
1702
1954
  }
1703
1955
  let format = options.transform || ((val) => String.fromCharCode(val));
1704
1956
  let a = `${start}`.charCodeAt(0);
1705
- let b3 = `${end}`.charCodeAt(0);
1706
- let descending = a > b3;
1707
- let min = Math.min(a, b3);
1708
- let max = Math.max(a, b3);
1957
+ let b = `${end}`.charCodeAt(0);
1958
+ let descending = a > b;
1959
+ let min = Math.min(a, b);
1960
+ let max = Math.max(a, b);
1709
1961
  if (options.toRegex && step === 1) {
1710
1962
  return toRange(min, max, false, options);
1711
1963
  }
1712
1964
  let range = [];
1713
1965
  let index = 0;
1714
- while (descending ? a >= b3 : a <= b3) {
1966
+ while (descending ? a >= b : a <= b) {
1715
1967
  range.push(format(a, index));
1716
1968
  a = descending ? a - step : a + step;
1717
1969
  index++;
@@ -1754,7 +2006,7 @@ var require_fill_range = __commonJS({
1754
2006
  var require_compile = __commonJS({
1755
2007
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
1756
2008
  "use strict";
1757
- init_utils();
2009
+ init_utils2();
1758
2010
  var fill = require_fill_range();
1759
2011
  var utils = require_utils();
1760
2012
  var compile = (ast, options = {}) => {
@@ -1806,7 +2058,7 @@ var require_compile = __commonJS({
1806
2058
  var require_expand = __commonJS({
1807
2059
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
1808
2060
  "use strict";
1809
- init_utils();
2061
+ init_utils2();
1810
2062
  var fill = require_fill_range();
1811
2063
  var stringify2 = require_stringify();
1812
2064
  var utils = require_utils();
@@ -1901,7 +2153,7 @@ var require_expand = __commonJS({
1901
2153
  var require_constants = __commonJS({
1902
2154
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
1903
2155
  "use strict";
1904
- init_utils();
2156
+ init_utils2();
1905
2157
  module.exports = {
1906
2158
  MAX_LENGTH: 1e4,
1907
2159
  // Digits
@@ -2003,7 +2255,7 @@ var require_constants = __commonJS({
2003
2255
  var require_parse = __commonJS({
2004
2256
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
2005
2257
  "use strict";
2006
- init_utils();
2258
+ init_utils2();
2007
2259
  var stringify2 = require_stringify();
2008
2260
  var {
2009
2261
  MAX_LENGTH,
@@ -2242,7 +2494,7 @@ var require_parse = __commonJS({
2242
2494
  var require_braces = __commonJS({
2243
2495
  "node_modules/.bun/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
2244
2496
  "use strict";
2245
- init_utils();
2497
+ init_utils2();
2246
2498
  var stringify2 = require_stringify();
2247
2499
  var compile = require_compile();
2248
2500
  var expand = require_expand();
@@ -2302,14 +2554,15 @@ var require_braces = __commonJS({
2302
2554
  }
2303
2555
  });
2304
2556
 
2305
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
2557
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
2306
2558
  var require_constants2 = __commonJS({
2307
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
2559
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
2308
2560
  "use strict";
2309
- init_utils();
2561
+ init_utils2();
2310
2562
  var path = __require("path");
2311
2563
  var WIN_SLASH = "\\\\/";
2312
2564
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
2565
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
2313
2566
  var DOT_LITERAL = "\\.";
2314
2567
  var PLUS_LITERAL = "\\+";
2315
2568
  var QMARK_LITERAL = "\\?";
@@ -2357,6 +2610,7 @@ var require_constants2 = __commonJS({
2357
2610
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
2358
2611
  };
2359
2612
  var POSIX_REGEX_SOURCE = {
2613
+ __proto__: null,
2360
2614
  alnum: "a-zA-Z0-9",
2361
2615
  alpha: "a-zA-Z",
2362
2616
  ascii: "\\x00-\\x7F",
@@ -2373,6 +2627,7 @@ var require_constants2 = __commonJS({
2373
2627
  xdigit: "A-Fa-f0-9"
2374
2628
  };
2375
2629
  module.exports = {
2630
+ DEFAULT_MAX_EXTGLOB_RECURSION,
2376
2631
  MAX_LENGTH: 1024 * 64,
2377
2632
  POSIX_REGEX_SOURCE,
2378
2633
  // regular expressions
@@ -2384,6 +2639,7 @@ var require_constants2 = __commonJS({
2384
2639
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
2385
2640
  // Replace globs with equivalent patterns to reduce parsing time.
2386
2641
  REPLACEMENTS: {
2642
+ __proto__: null,
2387
2643
  "***": "*",
2388
2644
  "**/**": "**",
2389
2645
  "**/**/**": "**"
@@ -2500,11 +2756,11 @@ var require_constants2 = __commonJS({
2500
2756
  }
2501
2757
  });
2502
2758
 
2503
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
2759
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
2504
2760
  var require_utils2 = __commonJS({
2505
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
2761
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
2506
2762
  "use strict";
2507
- init_utils();
2763
+ init_utils2();
2508
2764
  var path = __require("path");
2509
2765
  var win32 = process.platform === "win32";
2510
2766
  var {
@@ -2562,11 +2818,11 @@ var require_utils2 = __commonJS({
2562
2818
  }
2563
2819
  });
2564
2820
 
2565
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
2821
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
2566
2822
  var require_scan = __commonJS({
2567
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
2823
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
2568
2824
  "use strict";
2569
- init_utils();
2825
+ init_utils2();
2570
2826
  var utils = require_utils2();
2571
2827
  var {
2572
2828
  CHAR_ASTERISK,
@@ -2893,11 +3149,11 @@ var require_scan = __commonJS({
2893
3149
  }
2894
3150
  });
2895
3151
 
2896
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
3152
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
2897
3153
  var require_parse2 = __commonJS({
2898
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
3154
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
2899
3155
  "use strict";
2900
- init_utils();
3156
+ init_utils2();
2901
3157
  var constants2 = require_constants2();
2902
3158
  var utils = require_utils2();
2903
3159
  var {
@@ -2923,6 +3179,213 @@ var require_parse2 = __commonJS({
2923
3179
  var syntaxError = (type, char) => {
2924
3180
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
2925
3181
  };
3182
+ var splitTopLevel = (input) => {
3183
+ const parts = [];
3184
+ let bracket = 0;
3185
+ let paren = 0;
3186
+ let quote = 0;
3187
+ let value = "";
3188
+ let escaped = false;
3189
+ for (const ch of input) {
3190
+ if (escaped === true) {
3191
+ value += ch;
3192
+ escaped = false;
3193
+ continue;
3194
+ }
3195
+ if (ch === "\\") {
3196
+ value += ch;
3197
+ escaped = true;
3198
+ continue;
3199
+ }
3200
+ if (ch === '"') {
3201
+ quote = quote === 1 ? 0 : 1;
3202
+ value += ch;
3203
+ continue;
3204
+ }
3205
+ if (quote === 0) {
3206
+ if (ch === "[") {
3207
+ bracket++;
3208
+ } else if (ch === "]" && bracket > 0) {
3209
+ bracket--;
3210
+ } else if (bracket === 0) {
3211
+ if (ch === "(") {
3212
+ paren++;
3213
+ } else if (ch === ")" && paren > 0) {
3214
+ paren--;
3215
+ } else if (ch === "|" && paren === 0) {
3216
+ parts.push(value);
3217
+ value = "";
3218
+ continue;
3219
+ }
3220
+ }
3221
+ }
3222
+ value += ch;
3223
+ }
3224
+ parts.push(value);
3225
+ return parts;
3226
+ };
3227
+ var isPlainBranch = (branch) => {
3228
+ let escaped = false;
3229
+ for (const ch of branch) {
3230
+ if (escaped === true) {
3231
+ escaped = false;
3232
+ continue;
3233
+ }
3234
+ if (ch === "\\") {
3235
+ escaped = true;
3236
+ continue;
3237
+ }
3238
+ if (/[?*+@!()[\]{}]/.test(ch)) {
3239
+ return false;
3240
+ }
3241
+ }
3242
+ return true;
3243
+ };
3244
+ var normalizeSimpleBranch = (branch) => {
3245
+ let value = branch.trim();
3246
+ let changed = true;
3247
+ while (changed === true) {
3248
+ changed = false;
3249
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
3250
+ value = value.slice(2, -1);
3251
+ changed = true;
3252
+ }
3253
+ }
3254
+ if (!isPlainBranch(value)) {
3255
+ return;
3256
+ }
3257
+ return value.replace(/\\(.)/g, "$1");
3258
+ };
3259
+ var hasRepeatedCharPrefixOverlap = (branches) => {
3260
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
3261
+ for (let i = 0; i < values.length; i++) {
3262
+ for (let j2 = i + 1; j2 < values.length; j2++) {
3263
+ const a = values[i];
3264
+ const b = values[j2];
3265
+ const char = a[0];
3266
+ if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
3267
+ continue;
3268
+ }
3269
+ if (a === b || a.startsWith(b) || b.startsWith(a)) {
3270
+ return true;
3271
+ }
3272
+ }
3273
+ }
3274
+ return false;
3275
+ };
3276
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
3277
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
3278
+ return;
3279
+ }
3280
+ let bracket = 0;
3281
+ let paren = 0;
3282
+ let quote = 0;
3283
+ let escaped = false;
3284
+ for (let i = 1; i < pattern.length; i++) {
3285
+ const ch = pattern[i];
3286
+ if (escaped === true) {
3287
+ escaped = false;
3288
+ continue;
3289
+ }
3290
+ if (ch === "\\") {
3291
+ escaped = true;
3292
+ continue;
3293
+ }
3294
+ if (ch === '"') {
3295
+ quote = quote === 1 ? 0 : 1;
3296
+ continue;
3297
+ }
3298
+ if (quote === 1) {
3299
+ continue;
3300
+ }
3301
+ if (ch === "[") {
3302
+ bracket++;
3303
+ continue;
3304
+ }
3305
+ if (ch === "]" && bracket > 0) {
3306
+ bracket--;
3307
+ continue;
3308
+ }
3309
+ if (bracket > 0) {
3310
+ continue;
3311
+ }
3312
+ if (ch === "(") {
3313
+ paren++;
3314
+ continue;
3315
+ }
3316
+ if (ch === ")") {
3317
+ paren--;
3318
+ if (paren === 0) {
3319
+ if (requireEnd === true && i !== pattern.length - 1) {
3320
+ return;
3321
+ }
3322
+ return {
3323
+ type: pattern[0],
3324
+ body: pattern.slice(2, i),
3325
+ end: i
3326
+ };
3327
+ }
3328
+ }
3329
+ }
3330
+ };
3331
+ var getStarExtglobSequenceOutput = (pattern) => {
3332
+ let index = 0;
3333
+ const chars = [];
3334
+ while (index < pattern.length) {
3335
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
3336
+ if (!match || match.type !== "*") {
3337
+ return;
3338
+ }
3339
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
3340
+ if (branches.length !== 1) {
3341
+ return;
3342
+ }
3343
+ const branch = normalizeSimpleBranch(branches[0]);
3344
+ if (!branch || branch.length !== 1) {
3345
+ return;
3346
+ }
3347
+ chars.push(branch);
3348
+ index += match.end + 1;
3349
+ }
3350
+ if (chars.length < 1) {
3351
+ return;
3352
+ }
3353
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
3354
+ return `${source}*`;
3355
+ };
3356
+ var repeatedExtglobRecursion = (pattern) => {
3357
+ let depth = 0;
3358
+ let value = pattern.trim();
3359
+ let match = parseRepeatedExtglob(value);
3360
+ while (match) {
3361
+ depth++;
3362
+ value = match.body.trim();
3363
+ match = parseRepeatedExtglob(value);
3364
+ }
3365
+ return depth;
3366
+ };
3367
+ var analyzeRepeatedExtglob = (body, options) => {
3368
+ if (options.maxExtglobRecursion === false) {
3369
+ return { risky: false };
3370
+ }
3371
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
3372
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
3373
+ if (branches.length > 1) {
3374
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
3375
+ return { risky: true };
3376
+ }
3377
+ }
3378
+ for (const branch of branches) {
3379
+ const safeOutput = getStarExtglobSequenceOutput(branch);
3380
+ if (safeOutput) {
3381
+ return { risky: true, safeOutput };
3382
+ }
3383
+ if (repeatedExtglobRecursion(branch) > max) {
3384
+ return { risky: true };
3385
+ }
3386
+ }
3387
+ return { risky: false };
3388
+ };
2926
3389
  var parse2 = (input, options) => {
2927
3390
  if (typeof input !== "string") {
2928
3391
  throw new TypeError("Expected a string");
@@ -3054,6 +3517,8 @@ var require_parse2 = __commonJS({
3054
3517
  token.prev = prev;
3055
3518
  token.parens = state.parens;
3056
3519
  token.output = state.output;
3520
+ token.startIndex = state.index;
3521
+ token.tokensIndex = tokens.length;
3057
3522
  const output = (opts.capture ? "(" : "") + token.open;
3058
3523
  increment("parens");
3059
3524
  push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -3061,6 +3526,26 @@ var require_parse2 = __commonJS({
3061
3526
  extglobs.push(token);
3062
3527
  };
3063
3528
  const extglobClose = (token) => {
3529
+ const literal = input.slice(token.startIndex, state.index + 1);
3530
+ const body = input.slice(token.startIndex + 2, state.index);
3531
+ const analysis = analyzeRepeatedExtglob(body, opts);
3532
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
3533
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
3534
+ const open = tokens[token.tokensIndex];
3535
+ open.type = "text";
3536
+ open.value = literal;
3537
+ open.output = safeOutput || utils.escapeRegex(literal);
3538
+ for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
3539
+ tokens[i].value = "";
3540
+ tokens[i].output = "";
3541
+ delete tokens[i].suffix;
3542
+ }
3543
+ state.output = token.output + open.output;
3544
+ state.backtrack = true;
3545
+ push({ type: "paren", extglob: true, value, output: "" });
3546
+ decrement("parens");
3547
+ return;
3548
+ }
3064
3549
  let output = token.close + (opts.capture ? ")" : "");
3065
3550
  let rest;
3066
3551
  if (token.type === "negate") {
@@ -3084,10 +3569,10 @@ var require_parse2 = __commonJS({
3084
3569
  };
3085
3570
  if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
3086
3571
  let backslashes = false;
3087
- let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m2, esc, chars, first, rest, index) => {
3572
+ let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
3088
3573
  if (first === "\\") {
3089
3574
  backslashes = true;
3090
- return m2;
3575
+ return m;
3091
3576
  }
3092
3577
  if (first === "?") {
3093
3578
  if (esc) {
@@ -3107,14 +3592,14 @@ var require_parse2 = __commonJS({
3107
3592
  }
3108
3593
  return star;
3109
3594
  }
3110
- return esc ? m2 : `\\${m2}`;
3595
+ return esc ? m : `\\${m}`;
3111
3596
  });
3112
3597
  if (backslashes === true) {
3113
3598
  if (opts.unescape === true) {
3114
3599
  output = output.replace(/\\/g, "");
3115
3600
  } else {
3116
- output = output.replace(/\\+/g, (m2) => {
3117
- return m2.length % 2 === 0 ? "\\\\" : m2 ? "\\" : "";
3601
+ output = output.replace(/\\+/g, (m) => {
3602
+ return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
3118
3603
  });
3119
3604
  }
3120
3605
  }
@@ -3314,8 +3799,8 @@ var require_parse2 = __commonJS({
3314
3799
  brace.value = brace.output = "\\{";
3315
3800
  value = output = "\\}";
3316
3801
  state.output = out;
3317
- for (const t of toks) {
3318
- state.output += t.output || t.value;
3802
+ for (const t2 of toks) {
3803
+ state.output += t2.output || t2.value;
3319
3804
  }
3320
3805
  }
3321
3806
  push({ type: "brace", value, output });
@@ -3667,11 +4152,11 @@ var require_parse2 = __commonJS({
3667
4152
  }
3668
4153
  });
3669
4154
 
3670
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
4155
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
3671
4156
  var require_picomatch = __commonJS({
3672
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
4157
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3673
4158
  "use strict";
3674
- init_utils();
4159
+ init_utils2();
3675
4160
  var path = __require("path");
3676
4161
  var scan = require_scan();
3677
4162
  var parse2 = require_parse2();
@@ -3809,11 +4294,11 @@ var require_picomatch = __commonJS({
3809
4294
  }
3810
4295
  });
3811
4296
 
3812
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js
4297
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
3813
4298
  var require_picomatch2 = __commonJS({
3814
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
4299
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
3815
4300
  "use strict";
3816
- init_utils();
4301
+ init_utils2();
3817
4302
  module.exports = require_picomatch();
3818
4303
  }
3819
4304
  });
@@ -3822,7 +4307,7 @@ var require_picomatch2 = __commonJS({
3822
4307
  var require_micromatch = __commonJS({
3823
4308
  "node_modules/.bun/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
3824
4309
  "use strict";
3825
- init_utils();
4310
+ init_utils2();
3826
4311
  var util = __require("util");
3827
4312
  var braces = require_braces();
3828
4313
  var picomatch = require_picomatch2();
@@ -3984,7 +4469,7 @@ var require_micromatch = __commonJS({
3984
4469
  var require_pattern = __commonJS({
3985
4470
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
3986
4471
  "use strict";
3987
- init_utils();
4472
+ init_utils2();
3988
4473
  Object.defineProperty(exports, "__esModule", { value: true });
3989
4474
  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;
3990
4475
  var path = __require("path");
@@ -4094,7 +4579,7 @@ var require_pattern = __commonJS({
4094
4579
  exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
4095
4580
  function expandBraceExpansion(pattern) {
4096
4581
  const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
4097
- patterns.sort((a, b3) => a.length - b3.length);
4582
+ patterns.sort((a, b) => a.length - b.length);
4098
4583
  return patterns.filter((pattern2) => pattern2 !== "");
4099
4584
  }
4100
4585
  exports.expandBraceExpansion = expandBraceExpansion;
@@ -4150,7 +4635,7 @@ var require_pattern = __commonJS({
4150
4635
  var require_merge2 = __commonJS({
4151
4636
  "node_modules/.bun/merge2@1.4.1/node_modules/merge2/index.js"(exports, module) {
4152
4637
  "use strict";
4153
- init_utils();
4638
+ init_utils2();
4154
4639
  var Stream = __require("stream");
4155
4640
  var PassThrough = Stream.PassThrough;
4156
4641
  var slice = Array.prototype.slice;
@@ -4270,7 +4755,7 @@ var require_merge2 = __commonJS({
4270
4755
  var require_stream = __commonJS({
4271
4756
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
4272
4757
  "use strict";
4273
- init_utils();
4758
+ init_utils2();
4274
4759
  Object.defineProperty(exports, "__esModule", { value: true });
4275
4760
  exports.merge = void 0;
4276
4761
  var merge2 = require_merge2();
@@ -4294,7 +4779,7 @@ var require_stream = __commonJS({
4294
4779
  var require_string = __commonJS({
4295
4780
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
4296
4781
  "use strict";
4297
- init_utils();
4782
+ init_utils2();
4298
4783
  Object.defineProperty(exports, "__esModule", { value: true });
4299
4784
  exports.isEmpty = exports.isString = void 0;
4300
4785
  function isString(input) {
@@ -4312,7 +4797,7 @@ var require_string = __commonJS({
4312
4797
  var require_utils3 = __commonJS({
4313
4798
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
4314
4799
  "use strict";
4315
- init_utils();
4800
+ init_utils2();
4316
4801
  Object.defineProperty(exports, "__esModule", { value: true });
4317
4802
  exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
4318
4803
  var array = require_array();
@@ -4336,7 +4821,7 @@ var require_utils3 = __commonJS({
4336
4821
  var require_tasks = __commonJS({
4337
4822
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
4338
4823
  "use strict";
4339
- init_utils();
4824
+ init_utils2();
4340
4825
  Object.defineProperty(exports, "__esModule", { value: true });
4341
4826
  exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
4342
4827
  var utils = require_utils3();
@@ -4433,7 +4918,7 @@ var require_tasks = __commonJS({
4433
4918
  var require_async = __commonJS({
4434
4919
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
4435
4920
  "use strict";
4436
- init_utils();
4921
+ init_utils2();
4437
4922
  Object.defineProperty(exports, "__esModule", { value: true });
4438
4923
  exports.read = void 0;
4439
4924
  function read(path, settings, callback) {
@@ -4476,7 +4961,7 @@ var require_async = __commonJS({
4476
4961
  var require_sync = __commonJS({
4477
4962
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
4478
4963
  "use strict";
4479
- init_utils();
4964
+ init_utils2();
4480
4965
  Object.defineProperty(exports, "__esModule", { value: true });
4481
4966
  exports.read = void 0;
4482
4967
  function read(path, settings) {
@@ -4505,7 +4990,7 @@ var require_sync = __commonJS({
4505
4990
  var require_fs2 = __commonJS({
4506
4991
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
4507
4992
  "use strict";
4508
- init_utils();
4993
+ init_utils2();
4509
4994
  Object.defineProperty(exports, "__esModule", { value: true });
4510
4995
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4511
4996
  var fs2 = __require("fs");
@@ -4529,7 +5014,7 @@ var require_fs2 = __commonJS({
4529
5014
  var require_settings = __commonJS({
4530
5015
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
4531
5016
  "use strict";
4532
- init_utils();
5017
+ init_utils2();
4533
5018
  Object.defineProperty(exports, "__esModule", { value: true });
4534
5019
  var fs2 = require_fs2();
4535
5020
  var Settings = class {
@@ -4552,7 +5037,7 @@ var require_settings = __commonJS({
4552
5037
  var require_out = __commonJS({
4553
5038
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
4554
5039
  "use strict";
4555
- init_utils();
5040
+ init_utils2();
4556
5041
  Object.defineProperty(exports, "__esModule", { value: true });
4557
5042
  exports.statSync = exports.stat = exports.Settings = void 0;
4558
5043
  var async = require_async();
@@ -4584,7 +5069,7 @@ var require_out = __commonJS({
4584
5069
  // node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
4585
5070
  var require_queue_microtask = __commonJS({
4586
5071
  "node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module) {
4587
- init_utils();
5072
+ init_utils2();
4588
5073
  var promise;
4589
5074
  module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
4590
5075
  throw err;
@@ -4595,7 +5080,7 @@ var require_queue_microtask = __commonJS({
4595
5080
  // node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js
4596
5081
  var require_run_parallel = __commonJS({
4597
5082
  "node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module) {
4598
- init_utils();
5083
+ init_utils2();
4599
5084
  module.exports = runParallel;
4600
5085
  var queueMicrotask2 = require_queue_microtask();
4601
5086
  function runParallel(tasks, cb) {
@@ -4647,7 +5132,7 @@ var require_run_parallel = __commonJS({
4647
5132
  var require_constants3 = __commonJS({
4648
5133
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
4649
5134
  "use strict";
4650
- init_utils();
5135
+ init_utils2();
4651
5136
  Object.defineProperty(exports, "__esModule", { value: true });
4652
5137
  exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
4653
5138
  var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
@@ -4668,7 +5153,7 @@ var require_constants3 = __commonJS({
4668
5153
  var require_fs3 = __commonJS({
4669
5154
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
4670
5155
  "use strict";
4671
- init_utils();
5156
+ init_utils2();
4672
5157
  Object.defineProperty(exports, "__esModule", { value: true });
4673
5158
  exports.createDirentFromStats = void 0;
4674
5159
  var DirentFromStats = class {
@@ -4694,7 +5179,7 @@ var require_fs3 = __commonJS({
4694
5179
  var require_utils4 = __commonJS({
4695
5180
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
4696
5181
  "use strict";
4697
- init_utils();
5182
+ init_utils2();
4698
5183
  Object.defineProperty(exports, "__esModule", { value: true });
4699
5184
  exports.fs = void 0;
4700
5185
  var fs2 = require_fs3();
@@ -4706,14 +5191,14 @@ var require_utils4 = __commonJS({
4706
5191
  var require_common = __commonJS({
4707
5192
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
4708
5193
  "use strict";
4709
- init_utils();
5194
+ init_utils2();
4710
5195
  Object.defineProperty(exports, "__esModule", { value: true });
4711
5196
  exports.joinPathSegments = void 0;
4712
- function joinPathSegments(a, b3, separator) {
5197
+ function joinPathSegments(a, b, separator) {
4713
5198
  if (a.endsWith(separator)) {
4714
- return a + b3;
5199
+ return a + b;
4715
5200
  }
4716
- return a + separator + b3;
5201
+ return a + separator + b;
4717
5202
  }
4718
5203
  exports.joinPathSegments = joinPathSegments;
4719
5204
  }
@@ -4723,7 +5208,7 @@ var require_common = __commonJS({
4723
5208
  var require_async2 = __commonJS({
4724
5209
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
4725
5210
  "use strict";
4726
- init_utils();
5211
+ init_utils2();
4727
5212
  Object.defineProperty(exports, "__esModule", { value: true });
4728
5213
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4729
5214
  var fsStat = require_out();
@@ -4834,7 +5319,7 @@ var require_async2 = __commonJS({
4834
5319
  var require_sync2 = __commonJS({
4835
5320
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
4836
5321
  "use strict";
4837
- init_utils();
5322
+ init_utils2();
4838
5323
  Object.defineProperty(exports, "__esModule", { value: true });
4839
5324
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4840
5325
  var fsStat = require_out();
@@ -4894,7 +5379,7 @@ var require_sync2 = __commonJS({
4894
5379
  var require_fs4 = __commonJS({
4895
5380
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
4896
5381
  "use strict";
4897
- init_utils();
5382
+ init_utils2();
4898
5383
  Object.defineProperty(exports, "__esModule", { value: true });
4899
5384
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4900
5385
  var fs2 = __require("fs");
@@ -4920,7 +5405,7 @@ var require_fs4 = __commonJS({
4920
5405
  var require_settings2 = __commonJS({
4921
5406
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
4922
5407
  "use strict";
4923
- init_utils();
5408
+ init_utils2();
4924
5409
  Object.defineProperty(exports, "__esModule", { value: true });
4925
5410
  var path = __require("path");
4926
5411
  var fsStat = require_out();
@@ -4951,7 +5436,7 @@ var require_settings2 = __commonJS({
4951
5436
  var require_out2 = __commonJS({
4952
5437
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
4953
5438
  "use strict";
4954
- init_utils();
5439
+ init_utils2();
4955
5440
  Object.defineProperty(exports, "__esModule", { value: true });
4956
5441
  exports.Settings = exports.scandirSync = exports.scandir = void 0;
4957
5442
  var async = require_async2();
@@ -4984,7 +5469,7 @@ var require_out2 = __commonJS({
4984
5469
  var require_reusify = __commonJS({
4985
5470
  "node_modules/.bun/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module) {
4986
5471
  "use strict";
4987
- init_utils();
5472
+ init_utils2();
4988
5473
  function reusify(Constructor) {
4989
5474
  var head = new Constructor();
4990
5475
  var tail = head;
@@ -5016,7 +5501,7 @@ var require_reusify = __commonJS({
5016
5501
  var require_queue = __commonJS({
5017
5502
  "node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
5018
5503
  "use strict";
5019
- init_utils();
5504
+ init_utils2();
5020
5505
  var reusify = require_reusify();
5021
5506
  function fastqueue(context, worker, _concurrency) {
5022
5507
  if (typeof context === "function") {
@@ -5301,7 +5786,7 @@ var require_queue = __commonJS({
5301
5786
  var require_common2 = __commonJS({
5302
5787
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
5303
5788
  "use strict";
5304
- init_utils();
5789
+ init_utils2();
5305
5790
  Object.defineProperty(exports, "__esModule", { value: true });
5306
5791
  exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
5307
5792
  function isFatalError(settings, error2) {
@@ -5319,14 +5804,14 @@ var require_common2 = __commonJS({
5319
5804
  return filepath.split(/[/\\]/).join(separator);
5320
5805
  }
5321
5806
  exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
5322
- function joinPathSegments(a, b3, separator) {
5807
+ function joinPathSegments(a, b, separator) {
5323
5808
  if (a === "") {
5324
- return b3;
5809
+ return b;
5325
5810
  }
5326
5811
  if (a.endsWith(separator)) {
5327
- return a + b3;
5812
+ return a + b;
5328
5813
  }
5329
- return a + separator + b3;
5814
+ return a + separator + b;
5330
5815
  }
5331
5816
  exports.joinPathSegments = joinPathSegments;
5332
5817
  }
@@ -5336,7 +5821,7 @@ var require_common2 = __commonJS({
5336
5821
  var require_reader = __commonJS({
5337
5822
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
5338
5823
  "use strict";
5339
- init_utils();
5824
+ init_utils2();
5340
5825
  Object.defineProperty(exports, "__esModule", { value: true });
5341
5826
  var common = require_common2();
5342
5827
  var Reader = class {
@@ -5354,7 +5839,7 @@ var require_reader = __commonJS({
5354
5839
  var require_async3 = __commonJS({
5355
5840
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
5356
5841
  "use strict";
5357
- init_utils();
5842
+ init_utils2();
5358
5843
  Object.defineProperty(exports, "__esModule", { value: true });
5359
5844
  var events_1 = __require("events");
5360
5845
  var fsScandir = require_out2();
@@ -5458,7 +5943,7 @@ var require_async3 = __commonJS({
5458
5943
  var require_async4 = __commonJS({
5459
5944
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
5460
5945
  "use strict";
5461
- init_utils();
5946
+ init_utils2();
5462
5947
  Object.defineProperty(exports, "__esModule", { value: true });
5463
5948
  var async_1 = require_async3();
5464
5949
  var AsyncProvider = class {
@@ -5495,7 +5980,7 @@ var require_async4 = __commonJS({
5495
5980
  var require_stream2 = __commonJS({
5496
5981
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
5497
5982
  "use strict";
5498
- init_utils();
5983
+ init_utils2();
5499
5984
  Object.defineProperty(exports, "__esModule", { value: true });
5500
5985
  var stream_1 = __require("stream");
5501
5986
  var async_1 = require_async3();
@@ -5537,7 +6022,7 @@ var require_stream2 = __commonJS({
5537
6022
  var require_sync3 = __commonJS({
5538
6023
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
5539
6024
  "use strict";
5540
- init_utils();
6025
+ init_utils2();
5541
6026
  Object.defineProperty(exports, "__esModule", { value: true });
5542
6027
  var fsScandir = require_out2();
5543
6028
  var common = require_common2();
@@ -5602,7 +6087,7 @@ var require_sync3 = __commonJS({
5602
6087
  var require_sync4 = __commonJS({
5603
6088
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
5604
6089
  "use strict";
5605
- init_utils();
6090
+ init_utils2();
5606
6091
  Object.defineProperty(exports, "__esModule", { value: true });
5607
6092
  var sync_1 = require_sync3();
5608
6093
  var SyncProvider = class {
@@ -5623,7 +6108,7 @@ var require_sync4 = __commonJS({
5623
6108
  var require_settings3 = __commonJS({
5624
6109
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
5625
6110
  "use strict";
5626
- init_utils();
6111
+ init_utils2();
5627
6112
  Object.defineProperty(exports, "__esModule", { value: true });
5628
6113
  var path = __require("path");
5629
6114
  var fsScandir = require_out2();
@@ -5656,7 +6141,7 @@ var require_settings3 = __commonJS({
5656
6141
  var require_out3 = __commonJS({
5657
6142
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
5658
6143
  "use strict";
5659
- init_utils();
6144
+ init_utils2();
5660
6145
  Object.defineProperty(exports, "__esModule", { value: true });
5661
6146
  exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
5662
6147
  var async_1 = require_async4();
@@ -5697,7 +6182,7 @@ var require_out3 = __commonJS({
5697
6182
  var require_reader2 = __commonJS({
5698
6183
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
5699
6184
  "use strict";
5700
- init_utils();
6185
+ init_utils2();
5701
6186
  Object.defineProperty(exports, "__esModule", { value: true });
5702
6187
  var path = __require("path");
5703
6188
  var fsStat = require_out();
@@ -5737,7 +6222,7 @@ var require_reader2 = __commonJS({
5737
6222
  var require_stream3 = __commonJS({
5738
6223
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
5739
6224
  "use strict";
5740
- init_utils();
6225
+ init_utils2();
5741
6226
  Object.defineProperty(exports, "__esModule", { value: true });
5742
6227
  var stream_1 = __require("stream");
5743
6228
  var fsStat = require_out();
@@ -5795,7 +6280,7 @@ var require_stream3 = __commonJS({
5795
6280
  var require_async5 = __commonJS({
5796
6281
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
5797
6282
  "use strict";
5798
- init_utils();
6283
+ init_utils2();
5799
6284
  Object.defineProperty(exports, "__esModule", { value: true });
5800
6285
  var fsWalk = require_out3();
5801
6286
  var reader_1 = require_reader2();
@@ -5835,7 +6320,7 @@ var require_async5 = __commonJS({
5835
6320
  var require_matcher = __commonJS({
5836
6321
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
5837
6322
  "use strict";
5838
- init_utils();
6323
+ init_utils2();
5839
6324
  Object.defineProperty(exports, "__esModule", { value: true });
5840
6325
  var utils = require_utils3();
5841
6326
  var Matcher = class {
@@ -5887,7 +6372,7 @@ var require_matcher = __commonJS({
5887
6372
  var require_partial = __commonJS({
5888
6373
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
5889
6374
  "use strict";
5890
- init_utils();
6375
+ init_utils2();
5891
6376
  Object.defineProperty(exports, "__esModule", { value: true });
5892
6377
  var matcher_1 = require_matcher();
5893
6378
  var PartialMatcher = class extends matcher_1.default {
@@ -5925,7 +6410,7 @@ var require_partial = __commonJS({
5925
6410
  var require_deep = __commonJS({
5926
6411
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
5927
6412
  "use strict";
5928
- init_utils();
6413
+ init_utils2();
5929
6414
  Object.defineProperty(exports, "__esModule", { value: true });
5930
6415
  var utils = require_utils3();
5931
6416
  var partial_1 = require_partial();
@@ -5991,7 +6476,7 @@ var require_deep = __commonJS({
5991
6476
  var require_entry = __commonJS({
5992
6477
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
5993
6478
  "use strict";
5994
- init_utils();
6479
+ init_utils2();
5995
6480
  Object.defineProperty(exports, "__esModule", { value: true });
5996
6481
  var utils = require_utils3();
5997
6482
  var EntryFilter = class {
@@ -6080,7 +6565,7 @@ var require_entry = __commonJS({
6080
6565
  var require_error = __commonJS({
6081
6566
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
6082
6567
  "use strict";
6083
- init_utils();
6568
+ init_utils2();
6084
6569
  Object.defineProperty(exports, "__esModule", { value: true });
6085
6570
  var utils = require_utils3();
6086
6571
  var ErrorFilter = class {
@@ -6102,7 +6587,7 @@ var require_error = __commonJS({
6102
6587
  var require_entry2 = __commonJS({
6103
6588
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
6104
6589
  "use strict";
6105
- init_utils();
6590
+ init_utils2();
6106
6591
  Object.defineProperty(exports, "__esModule", { value: true });
6107
6592
  var utils = require_utils3();
6108
6593
  var EntryTransformer = class {
@@ -6135,7 +6620,7 @@ var require_entry2 = __commonJS({
6135
6620
  var require_provider = __commonJS({
6136
6621
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
6137
6622
  "use strict";
6138
- init_utils();
6623
+ init_utils2();
6139
6624
  Object.defineProperty(exports, "__esModule", { value: true });
6140
6625
  var path = __require("path");
6141
6626
  var deep_1 = require_deep();
@@ -6190,7 +6675,7 @@ var require_provider = __commonJS({
6190
6675
  var require_async6 = __commonJS({
6191
6676
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
6192
6677
  "use strict";
6193
- init_utils();
6678
+ init_utils2();
6194
6679
  Object.defineProperty(exports, "__esModule", { value: true });
6195
6680
  var async_1 = require_async5();
6196
6681
  var provider_1 = require_provider();
@@ -6220,7 +6705,7 @@ var require_async6 = __commonJS({
6220
6705
  var require_stream4 = __commonJS({
6221
6706
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
6222
6707
  "use strict";
6223
- init_utils();
6708
+ init_utils2();
6224
6709
  Object.defineProperty(exports, "__esModule", { value: true });
6225
6710
  var stream_1 = __require("stream");
6226
6711
  var stream_2 = require_stream3();
@@ -6255,7 +6740,7 @@ var require_stream4 = __commonJS({
6255
6740
  var require_sync5 = __commonJS({
6256
6741
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
6257
6742
  "use strict";
6258
- init_utils();
6743
+ init_utils2();
6259
6744
  Object.defineProperty(exports, "__esModule", { value: true });
6260
6745
  var fsStat = require_out();
6261
6746
  var fsWalk = require_out3();
@@ -6304,7 +6789,7 @@ var require_sync5 = __commonJS({
6304
6789
  var require_sync6 = __commonJS({
6305
6790
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
6306
6791
  "use strict";
6307
- init_utils();
6792
+ init_utils2();
6308
6793
  Object.defineProperty(exports, "__esModule", { value: true });
6309
6794
  var sync_1 = require_sync5();
6310
6795
  var provider_1 = require_provider();
@@ -6334,7 +6819,7 @@ var require_sync6 = __commonJS({
6334
6819
  var require_settings4 = __commonJS({
6335
6820
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
6336
6821
  "use strict";
6337
- init_utils();
6822
+ init_utils2();
6338
6823
  Object.defineProperty(exports, "__esModule", { value: true });
6339
6824
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
6340
6825
  var fs2 = __require("fs");
@@ -6395,7 +6880,7 @@ var require_settings4 = __commonJS({
6395
6880
  var require_out4 = __commonJS({
6396
6881
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
6397
6882
  "use strict";
6398
- init_utils();
6883
+ init_utils2();
6399
6884
  var taskManager = require_tasks();
6400
6885
  var async_1 = require_async6();
6401
6886
  var stream_1 = require_stream4();
@@ -6514,7 +6999,7 @@ var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
6514
6999
  var init_constants = __esm({
6515
7000
  "packages/core/config/constants.js"() {
6516
7001
  "use strict";
6517
- init_utils();
7002
+ init_utils2();
6518
7003
  I18N_PATHS = {
6519
7004
  // Monorepo source structure (locales at root, not in src/)
6520
7005
  SOURCE_ROOT: "packages/core/i18n",
@@ -6676,7 +7161,7 @@ var import_fast_glob, constants, log2, PACKAGE_PATHS, PathResolver;
6676
7161
  var init_PathResolver = __esm({
6677
7162
  "packages/core/config/utils/PathResolver.ts"() {
6678
7163
  "use strict";
6679
- init_utils();
7164
+ init_utils2();
6680
7165
  import_fast_glob = __toESM(require_out4(), 1);
6681
7166
  init_constants();
6682
7167
  constants = {
@@ -7680,7 +8165,7 @@ var pathResolverInstance, getRepoRoot, normalizePath, pathExists, readSync, stat
7680
8165
  var init_pathResolver = __esm({
7681
8166
  "packages/tooling/src/utils/pathResolver.ts"() {
7682
8167
  "use strict";
7683
- init_utils();
8168
+ init_utils2();
7684
8169
  init_PathResolver();
7685
8170
  pathResolverInstance = PathResolver.getInstance({ debug: false });
7686
8171
  getRepoRoot = () => pathResolverInstance.getRepoRoot();
@@ -7718,7 +8203,7 @@ function readPackageJson(filePath) {
7718
8203
  var init_typed_file_operations = __esm({
7719
8204
  "packages/tooling/src/utils/typed-file-operations.ts"() {
7720
8205
  "use strict";
7721
- init_utils();
8206
+ init_utils2();
7722
8207
  init_errors();
7723
8208
  init_pathResolver();
7724
8209
  }
@@ -7732,7 +8217,7 @@ import { dirname as dirname3, resolve as resolve3 } from "node:path";
7732
8217
  import process from "node:process";
7733
8218
  import { fileURLToPath as fileURLToPath3 } from "node:url";
7734
8219
  var require2, __filename, __dirname;
7735
- var init_utils = __esm({
8220
+ var init_utils2 = __esm({
7736
8221
  "packages/tooling/src/bundler/utils.ts"() {
7737
8222
  "use strict";
7738
8223
  require2 = createRequire3(import.meta.url);
@@ -7807,43 +8292,124 @@ function analyzeApp(appPath, appName) {
7807
8292
  } else if (pathExists(joinPath(appPath, "vite.config.ts")) || pathExists(joinPath(appPath, "vite.config.js")) || pathExists(joinPath(appPath, "vite.config.mjs")) || packageJson.dependencies?.vite || packageJson.devDependencies?.vite) {
7808
8293
  framework = "vite";
7809
8294
  }
7810
- const functionsPath = joinPath(appPath, "functions");
7811
- const functionsStat = statSync2(functionsPath);
7812
- const hasFunctions = pathExists(functionsPath) && (functionsStat?.isDirectory() ?? false);
7813
- let platform3;
7814
- const firebaseJsonInFunctions = hasFunctions && pathExists(joinPath(functionsPath, "firebase.json"));
7815
- const firebaseJsonInApp = pathExists(joinPath(appPath, "firebase.json"));
7816
- if (firebaseJsonInFunctions || firebaseJsonInApp) {
7817
- platform3 = "firebase";
8295
+ const firebaseJsonPath = joinPath(appPath, "firebase.json");
8296
+ const hasFirebase = pathExists(firebaseJsonPath);
8297
+ const supabaseDir = joinPath(appPath, "supabase");
8298
+ const supabaseConfigPath = joinPath(supabaseDir, "config.toml");
8299
+ const hasSupabaseDep = !!(packageJson.dependencies?.["@donotdev/supabase"] || packageJson.dependencies?.["@supabase/supabase-js"]);
8300
+ let hasSupabase = pathExists(supabaseDir) || pathExists(supabaseConfigPath) || hasSupabaseDep;
8301
+ if (!hasSupabase) {
8302
+ try {
8303
+ const envPath = joinPath(appPath, ".env");
8304
+ if (pathExists(envPath)) {
8305
+ const envContent = readSync(envPath);
8306
+ if (envContent.match(/VITE_SUPABASE_URL=.+/)) {
8307
+ hasSupabase = true;
8308
+ }
8309
+ }
8310
+ } catch {
8311
+ }
8312
+ }
8313
+ let provider = "unknown";
8314
+ if (hasFirebase && hasSupabase) {
8315
+ provider = "both";
8316
+ } else if (hasFirebase) {
8317
+ provider = "firebase";
8318
+ } else if (hasSupabase) {
8319
+ provider = "supabase";
8320
+ }
8321
+ let firebaseConfig;
8322
+ if (hasFirebase) {
8323
+ try {
8324
+ const config = readSync(firebaseJsonPath, { format: "json" });
8325
+ if (config && typeof config === "object") {
8326
+ const fb = config;
8327
+ firebaseConfig = {
8328
+ projectId: fb.projectId,
8329
+ hasHosting: !!fb.hosting,
8330
+ hasFunctions: !!fb.functions,
8331
+ hasFirestoreRules: !!fb.firestore?.rules,
8332
+ hasStorageRules: !!fb.storage?.rules
8333
+ };
8334
+ }
8335
+ } catch {
8336
+ firebaseConfig = {
8337
+ hasHosting: false,
8338
+ hasFunctions: false,
8339
+ hasFirestoreRules: false,
8340
+ hasStorageRules: false
8341
+ };
8342
+ }
8343
+ }
8344
+ const supabaseFunctionsDir = joinPath(supabaseDir, "functions");
8345
+ const supabaseMigrationsDir = joinPath(supabaseDir, "migrations");
8346
+ let supabaseConfig;
8347
+ if (hasSupabase) {
8348
+ let url;
8349
+ try {
8350
+ const envPath = joinPath(appPath, ".env");
8351
+ if (pathExists(envPath)) {
8352
+ const envContent = readSync(envPath);
8353
+ const urlMatch = envContent.match(/VITE_SUPABASE_URL=(.+)/);
8354
+ if (urlMatch && urlMatch[1]) {
8355
+ url = urlMatch[1].trim();
8356
+ }
8357
+ }
8358
+ } catch {
8359
+ }
8360
+ supabaseConfig = {
8361
+ url,
8362
+ hasFunctions: pathExists(supabaseFunctionsDir),
8363
+ hasMigrations: pathExists(supabaseMigrationsDir)
8364
+ };
8365
+ }
8366
+ let functions;
8367
+ if (hasFirebase && firebaseConfig?.hasFunctions) {
8368
+ const firebaseFunctionsDir = joinPath(appPath, "functions");
8369
+ const firebaseFunctionsStat = statSync2(firebaseFunctionsDir);
8370
+ if (pathExists(firebaseFunctionsDir) && (firebaseFunctionsStat?.isDirectory() ?? false)) {
8371
+ functions = "firebase";
8372
+ }
7818
8373
  }
7819
- if (!platform3) {
7820
- const supabaseConfigPath = joinPath(appPath, "supabase", "config.toml");
7821
- const hasSupabaseDep = !!(packageJson.dependencies?.["@donotdev/supabase"] || packageJson.dependencies?.["@supabase/supabase-js"]);
7822
- if (pathExists(supabaseConfigPath) || hasSupabaseDep) {
7823
- platform3 = "supabase";
8374
+ if (!functions && hasSupabase) {
8375
+ const sbFunctionsStat = statSync2(supabaseFunctionsDir);
8376
+ if (pathExists(supabaseFunctionsDir) && (sbFunctionsStat?.isDirectory() ?? false)) {
8377
+ functions = "supabase";
7824
8378
  }
7825
8379
  }
7826
- if (!platform3) {
8380
+ if (!functions) {
7827
8381
  const vercelJsonPath = joinPath(appPath, "vercel.json");
7828
- if (pathExists(vercelJsonPath)) {
7829
- platform3 = "vercel";
8382
+ const apiDir = joinPath(appPath, "api");
8383
+ const apiDirStat = statSync2(apiDir);
8384
+ if (pathExists(vercelJsonPath) && pathExists(apiDir) && (apiDirStat?.isDirectory() ?? false)) {
8385
+ functions = "vercel";
8386
+ }
8387
+ }
8388
+ let hosting;
8389
+ if (hasFirebase && firebaseConfig?.hasHosting) {
8390
+ hosting = "firebase";
8391
+ }
8392
+ if (!hosting) {
8393
+ if (pathExists(joinPath(appPath, "vercel.json")) || pathExists(joinPath(appPath, ".vercel"))) {
8394
+ hosting = "vercel";
7830
8395
  }
7831
8396
  }
7832
8397
  return {
7833
8398
  name: appName,
7834
8399
  packageName: packageJson.name || appName,
7835
8400
  path: appPath,
7836
- packageJsonPath,
7837
8401
  framework,
7838
- hasFunctions,
7839
- functionsPath: hasFunctions ? functionsPath : void 0,
7840
- platform: platform3
8402
+ provider,
8403
+ functions,
8404
+ hosting,
8405
+ firebaseConfig,
8406
+ supabaseConfig
7841
8407
  };
7842
8408
  }
7843
8409
  var init_app_detection = __esm({
7844
8410
  "packages/tooling/src/utils/app-detection.ts"() {
7845
8411
  "use strict";
7846
- init_utils();
8412
+ init_utils2();
7847
8413
  init_pathResolver();
7848
8414
  init_typed_file_operations();
7849
8415
  }
@@ -7871,11 +8437,11 @@ async function selectApp(projectRoot, appName) {
7871
8437
  if (apps.length === 1) {
7872
8438
  return apps[0] || null;
7873
8439
  }
7874
- const selected = await ve({
8440
+ const selected = await _t({
7875
8441
  message: "Select app:",
7876
8442
  options: apps.map((app) => ({
7877
8443
  value: app.name,
7878
- label: `${app.name} (${app.framework === "nextjs" ? "Next.js" : "Vite"}${app.hasFunctions ? ` + ${app.platform || "functions"}` : ""})`
8444
+ label: `${app.name} (${app.framework === "nextjs" ? "Next.js" : "Vite"}${app.functions ? ` + ${app.functions} functions` : ""})`
7879
8445
  }))
7880
8446
  });
7881
8447
  if (typeof selected !== "string") {
@@ -7886,24 +8452,24 @@ async function selectApp(projectRoot, appName) {
7886
8452
  var init_app_selector = __esm({
7887
8453
  "packages/tooling/src/utils/app-selector.ts"() {
7888
8454
  "use strict";
7889
- init_utils();
7890
- init_dist2();
8455
+ init_utils2();
8456
+ init_dist4();
7891
8457
  init_app_detection();
7892
8458
  init_cli_output();
7893
8459
  }
7894
8460
  });
7895
8461
 
7896
8462
  // packages/cli/src/bin/commands/preview.ts
7897
- init_utils();
8463
+ init_utils2();
7898
8464
 
7899
8465
  // packages/tooling/src/index.ts
7900
- init_utils();
8466
+ init_utils2();
7901
8467
 
7902
8468
  // packages/tooling/src/cli/index.ts
7903
- init_utils();
8469
+ init_utils2();
7904
8470
 
7905
8471
  // packages/tooling/src/utils/spawn-utils.ts
7906
- init_utils();
8472
+ init_utils2();
7907
8473
  import {
7908
8474
  spawn,
7909
8475
  spawnSync,
@@ -7919,7 +8485,7 @@ function createAppEnv(appPath) {
7919
8485
  function spawnCrossPlatform(command, args, options) {
7920
8486
  const isWindows = platform() === "win32";
7921
8487
  const useShell = options.shell ?? isWindows;
7922
- const { shell: _3, ...rest } = options;
8488
+ const { shell: _, ...rest } = options;
7923
8489
  if (useShell) {
7924
8490
  return spawn(command, args, { ...rest, shell: true });
7925
8491
  }
@@ -7927,7 +8493,7 @@ function spawnCrossPlatform(command, args, options) {
7927
8493
  }
7928
8494
 
7929
8495
  // packages/tooling/src/apps/preview.ts
7930
- init_utils();
8496
+ init_utils2();
7931
8497
  init_app_selector();
7932
8498
  init_cli_output();
7933
8499
  init_errors();
@@ -7943,7 +8509,7 @@ var SIGNAL_EXIT_CODES = {
7943
8509
  SIGTERM: 143
7944
8510
  // 128 + 15
7945
8511
  };
7946
- async function main() {
8512
+ async function main(options = {}) {
7947
8513
  const args = process.argv.slice(2);
7948
8514
  const appName = args[0] && args[0] !== "preview" ? args[0] : void 0;
7949
8515
  const projectRoot = getRepoRoot();
@@ -7979,6 +8545,9 @@ async function main() {
7979
8545
  log.info(`Previewing ${app.name}...
7980
8546
  `);
7981
8547
  const turboArgs = ["preview", "--filter", app.packageName];
8548
+ if (options.port) {
8549
+ turboArgs.push("--", "--port", options.port);
8550
+ }
7982
8551
  const isWindows = platform2() === "win32";
7983
8552
  const childProcess = spawnCrossPlatform(
7984
8553
  "bunx",
@@ -8019,7 +8588,7 @@ async function main() {
8019
8588
  for (const signal of signals) {
8020
8589
  const handler = () => {
8021
8590
  cleanup(signal);
8022
- handlers.forEach((h2) => h2());
8591
+ handlers.forEach((h) => h());
8023
8592
  process.exit(SIGNAL_EXIT_CODES[signal] ?? 130);
8024
8593
  };
8025
8594
  process.on(signal, handler);
@@ -8027,7 +8596,7 @@ async function main() {
8027
8596
  }
8028
8597
  return new Promise((resolve4) => {
8029
8598
  childProcess.on("exit", (code, signal) => {
8030
- handlers.forEach((h2) => h2());
8599
+ handlers.forEach((h) => h());
8031
8600
  if (signal) {
8032
8601
  log.debug(`Process killed by signal: ${signal}`);
8033
8602
  resolve4(SIGNAL_EXIT_CODES[signal] ?? 130);
@@ -8036,7 +8605,7 @@ async function main() {
8036
8605
  }
8037
8606
  });
8038
8607
  childProcess.on("error", (error2) => {
8039
- handlers.forEach((h2) => h2());
8608
+ handlers.forEach((h) => h());
8040
8609
  log.error(`Failed to start preview server: ${error2.message}`);
8041
8610
  resolve4(1);
8042
8611
  });