@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
@@ -5,7 +5,7 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b2) => (typeof require !== "undefined" ? require : a)[b2]
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
9
  }) : x)(function(x) {
10
10
  if (typeof require !== "undefined") return require.apply(this, arguments);
11
11
  throw Error('Dynamic require of "' + x + '" is not supported');
@@ -37,11 +37,51 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
37
37
  mod
38
38
  ));
39
39
 
40
+ // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js
41
+ var init_utils = __esm({
42
+ "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js"() {
43
+ init_utils2();
44
+ }
45
+ });
46
+
47
+ // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js
48
+ var EMOJI_RE, MODIFIER_RE;
49
+ var init_dist = __esm({
50
+ "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js"() {
51
+ init_utils2();
52
+ init_utils();
53
+ 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");
54
+ MODIFIER_RE = new RegExp("\\p{M}+", "gu");
55
+ }
56
+ });
57
+
58
+ // node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js
59
+ var init_dist2 = __esm({
60
+ "node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js"() {
61
+ init_utils2();
62
+ init_dist();
63
+ }
64
+ });
65
+
66
+ // node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js
67
+ var ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_ESCAPE_LINK, GROUP_REGEX;
68
+ var init_main = __esm({
69
+ "node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js"() {
70
+ init_utils2();
71
+ init_dist2();
72
+ ANSI_ESCAPE_BELL = "\x07";
73
+ ANSI_CSI = "[";
74
+ ANSI_OSC = "]";
75
+ ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
76
+ GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
77
+ }
78
+ });
79
+
40
80
  // node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
41
81
  var require_src = __commonJS({
42
82
  "node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
43
83
  "use strict";
44
- init_utils();
84
+ init_utils2();
45
85
  var ESC = "\x1B";
46
86
  var CSI = `${ESC}[`;
47
87
  var beep = "\x07";
@@ -94,247 +134,107 @@ var require_src = __commonJS({
94
134
  }
95
135
  });
96
136
 
97
- // node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
98
- var require_picocolors = __commonJS({
99
- "node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
100
- init_utils();
101
- var p = process || {};
102
- var argv = p.argv || [];
103
- var env = p.env || {};
104
- var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
105
- var formatter = (open, close, replace = open) => (input) => {
106
- let string = "" + input, index = string.indexOf(close, open.length);
107
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
108
- };
109
- var replaceClose = (string, close, replace, index) => {
110
- let result = "", cursor = 0;
111
- do {
112
- result += string.substring(cursor, index) + replace;
113
- cursor = index + close.length;
114
- index = string.indexOf(close, cursor);
115
- } while (~index);
116
- return result + string.substring(cursor);
117
- };
118
- var createColors = (enabled = isColorSupported) => {
119
- let f = enabled ? formatter : () => String;
120
- return {
121
- isColorSupported: enabled,
122
- reset: f("\x1B[0m", "\x1B[0m"),
123
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
124
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
125
- italic: f("\x1B[3m", "\x1B[23m"),
126
- underline: f("\x1B[4m", "\x1B[24m"),
127
- inverse: f("\x1B[7m", "\x1B[27m"),
128
- hidden: f("\x1B[8m", "\x1B[28m"),
129
- strikethrough: f("\x1B[9m", "\x1B[29m"),
130
- black: f("\x1B[30m", "\x1B[39m"),
131
- red: f("\x1B[31m", "\x1B[39m"),
132
- green: f("\x1B[32m", "\x1B[39m"),
133
- yellow: f("\x1B[33m", "\x1B[39m"),
134
- blue: f("\x1B[34m", "\x1B[39m"),
135
- magenta: f("\x1B[35m", "\x1B[39m"),
136
- cyan: f("\x1B[36m", "\x1B[39m"),
137
- white: f("\x1B[37m", "\x1B[39m"),
138
- gray: f("\x1B[90m", "\x1B[39m"),
139
- bgBlack: f("\x1B[40m", "\x1B[49m"),
140
- bgRed: f("\x1B[41m", "\x1B[49m"),
141
- bgGreen: f("\x1B[42m", "\x1B[49m"),
142
- bgYellow: f("\x1B[43m", "\x1B[49m"),
143
- bgBlue: f("\x1B[44m", "\x1B[49m"),
144
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
145
- bgCyan: f("\x1B[46m", "\x1B[49m"),
146
- bgWhite: f("\x1B[47m", "\x1B[49m"),
147
- blackBright: f("\x1B[90m", "\x1B[39m"),
148
- redBright: f("\x1B[91m", "\x1B[39m"),
149
- greenBright: f("\x1B[92m", "\x1B[39m"),
150
- yellowBright: f("\x1B[93m", "\x1B[39m"),
151
- blueBright: f("\x1B[94m", "\x1B[39m"),
152
- magentaBright: f("\x1B[95m", "\x1B[39m"),
153
- cyanBright: f("\x1B[96m", "\x1B[39m"),
154
- whiteBright: f("\x1B[97m", "\x1B[39m"),
155
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
156
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
157
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
158
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
159
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
160
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
161
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
162
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
163
- };
164
- };
165
- module.exports = createColors();
166
- module.exports.createColors = createColors;
167
- }
168
- });
169
-
170
- // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
171
- import { stdin as j, stdout as M } from "node:process";
172
- import { Writable as X } from "node:stream";
173
- function DD({ onlyFirst: e2 = false } = {}) {
174
- 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("|");
175
- return new RegExp(t, e2 ? void 0 : "g");
176
- }
177
- function L(e2) {
178
- return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
179
- }
180
- function rD() {
181
- const e2 = /* @__PURE__ */ new Map();
182
- for (const [u2, t] of Object.entries(r)) {
183
- 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]);
184
- Object.defineProperty(r, u2, { value: t, enumerable: false });
185
- }
186
- 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) => {
187
- const t = /[a-f\d]{6}|[a-f\d]{3}/i.exec(u2.toString(16));
188
- if (!t) return [0, 0, 0];
189
- let [F2] = t;
190
- F2.length === 3 && (F2 = [...F2].map((i) => i + i).join(""));
191
- const s = Number.parseInt(F2, 16);
192
- return [s >> 16 & 255, s >> 8 & 255, s & 255];
193
- }, enumerable: false }, hexToAnsi256: { value: (u2) => r.rgbToAnsi256(...r.hexToRgb(u2)), enumerable: false }, ansi256ToAnsi: { value: (u2) => {
194
- if (u2 < 8) return 30 + u2;
195
- if (u2 < 16) return 90 + (u2 - 8);
196
- let t, F2, s;
197
- if (u2 >= 232) t = ((u2 - 232) * 10 + 8) / 255, F2 = t, s = t;
198
- else {
199
- u2 -= 16;
200
- const C2 = u2 % 36;
201
- t = Math.floor(u2 / 36) / 5, F2 = Math.floor(C2 / 6) / 5, s = C2 % 6 / 5;
202
- }
203
- const i = Math.max(t, F2, s) * 2;
204
- if (i === 0) return 30;
205
- let D2 = 30 + (Math.round(s) << 2 | Math.round(F2) << 1 | Math.round(t));
206
- return i === 2 && (D2 += 60), D2;
207
- }, 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;
208
- }
209
- var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, nD, _, xD, B, AD, A;
210
- var init_dist = __esm({
211
- "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
212
- init_utils();
137
+ // node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs
138
+ import { styleText as y } from "node:util";
139
+ import { stdout as S, stdin as $ } from "node:process";
140
+ import { ReadStream as D } from "node:tty";
141
+ var import_sisteransi, E, G, u, Y;
142
+ var init_dist3 = __esm({
143
+ "node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs"() {
144
+ init_utils2();
145
+ init_main();
213
146
  import_sisteransi = __toESM(require_src(), 1);
214
- uD = DD();
215
- W = { exports: {} };
216
- (function(e2) {
217
- var u2 = {};
218
- e2.exports = u2, u2.eastAsianWidth = function(F2) {
219
- var s = F2.charCodeAt(0), i = F2.length == 2 ? F2.charCodeAt(1) : 0, D2 = s;
220
- 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";
221
- }, u2.characterLength = function(F2) {
222
- var s = this.eastAsianWidth(F2);
223
- return s == "F" || s == "W" || s == "A" ? 2 : 1;
224
- };
225
- function t(F2) {
226
- return F2.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
227
- }
228
- u2.length = function(F2) {
229
- for (var s = t(F2), i = 0, D2 = 0; D2 < s.length; D2++) i = i + this.characterLength(s[D2]);
230
- return i;
231
- }, u2.slice = function(F2, s, i) {
232
- textLen = u2.length(F2), s = s || 0, i = i || 1, s < 0 && (s = textLen + s), i < 0 && (i = textLen + i);
233
- for (var D2 = "", C2 = 0, n = t(F2), E = 0; E < n.length; E++) {
234
- var a = n[E], o2 = u2.length(a);
235
- if (C2 >= s - (o2 == 2 ? 1 : 0)) if (C2 + o2 <= i) D2 += a;
236
- else break;
237
- C2 += o2;
238
- }
239
- return D2;
240
- };
241
- })(W);
242
- tD = W.exports;
243
- eD = L(tD);
244
- FD = function() {
245
- 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;
246
- };
247
- sD = L(FD);
248
- w = 10;
249
- N = (e2 = 0) => (u2) => `\x1B[${u2 + e2}m`;
250
- I = (e2 = 0) => (u2) => `\x1B[${38 + e2};5;${u2}m`;
251
- R = (e2 = 0) => (u2, t, F2) => `\x1B[${38 + e2};2;${u2};${t};${F2}m`;
252
- 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] } };
253
- Object.keys(r.modifier);
254
- iD = Object.keys(r.color);
255
- CD = Object.keys(r.bgColor);
256
- [...iD, ...CD];
257
- ED = rD();
258
- nD = "]";
259
- _ = `${nD}8;;`;
260
- xD = ["up", "down", "left", "right", "space", "enter", "cancel"];
261
- B = { actions: new Set(xD), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]) };
262
- AD = globalThis.process.platform.startsWith("win");
263
- A = /* @__PURE__ */ new WeakMap();
147
+ E = ["up", "down", "left", "right", "space", "enter", "cancel"];
148
+ G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
149
+ 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)}` } } };
150
+ Y = globalThis.process.platform.startsWith("win");
264
151
  }
265
152
  });
266
153
 
267
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs
268
- import { stripVTControlCharacters as S } from "node:util";
269
- import y from "node:process";
270
- function ce() {
271
- return y.platform !== "win32" ? y.env.TERM !== "linux" : !!y.env.CI || !!y.env.WT_SESSION || !!y.env.TERMINUS_SUBLIME || y.env.ConEmuTask === "{cmd::Cmder}" || y.env.TERM_PROGRAM === "Terminus-Sublime" || y.env.TERM_PROGRAM === "vscode" || y.env.TERM === "xterm-256color" || y.env.TERM === "alacritty" || y.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
154
+ // node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs
155
+ import { styleText as t, stripVTControlCharacters as ne } from "node:util";
156
+ import P from "node:process";
157
+ import { existsSync as Xe, lstatSync as we, readdirSync as ze } from "node:fs";
158
+ import { dirname as be, join as Qe } from "node:path";
159
+ function Ze() {
160
+ return P.platform !== "win32" ? P.env.TERM !== "linux" : !!P.env.CI || !!P.env.WT_SESSION || !!P.env.TERMINUS_SUBLIME || P.env.ConEmuTask === "{cmd::Cmder}" || P.env.TERM_PROGRAM === "Terminus-Sublime" || P.env.TERM_PROGRAM === "vscode" || P.env.TERM === "xterm-256color" || P.env.TERM === "alacritty" || P.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
272
161
  }
273
- var import_picocolors, import_sisteransi2, V, u, le, L2, W2, C, ue, o, d, k, P, A2, T, F, $e, _2, me, de, pe, q, D, U, K, Ie, Se, M2, J;
274
- var init_dist2 = __esm({
275
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs"() {
276
- init_utils();
277
- init_dist();
278
- init_dist();
279
- import_picocolors = __toESM(require_picocolors(), 1);
162
+ var import_sisteransi2, ee, w, _e, oe, ue, F, le, d, E2, Ie, Ee, z2, H2, te, U, J, xe, se, ce, Ge, $e, de, Oe, he, pe, me, ge, O2, mt, gt, Ve, je;
163
+ var init_dist4 = __esm({
164
+ "node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs"() {
165
+ init_utils2();
166
+ init_dist3();
167
+ init_dist3();
168
+ init_main();
169
+ init_dist2();
280
170
  import_sisteransi2 = __toESM(require_src(), 1);
281
- V = ce();
282
- u = (t, n) => V ? t : n;
283
- le = u("\u25C6", "*");
284
- L2 = u("\u25A0", "x");
285
- W2 = u("\u25B2", "x");
286
- C = u("\u25C7", "o");
287
- ue = u("\u250C", "T");
288
- o = u("\u2502", "|");
289
- d = u("\u2514", "\u2014");
290
- k = u("\u25CF", ">");
291
- P = u("\u25CB", " ");
292
- A2 = u("\u25FB", "[\u2022]");
293
- T = u("\u25FC", "[+]");
294
- F = u("\u25FB", "[ ]");
295
- $e = u("\u25AA", "\u2022");
296
- _2 = u("\u2500", "-");
297
- me = u("\u256E", "+");
298
- de = u("\u251C", "+");
299
- pe = u("\u256F", "+");
300
- q = u("\u25CF", "\u2022");
301
- D = u("\u25C6", "*");
302
- U = u("\u25B2", "!");
303
- K = u("\u25A0", "x");
304
- Ie = (t = "") => {
305
- process.stdout.write(`${import_picocolors.default.gray(ue)} ${t}
306
- `);
307
- };
308
- Se = (t = "") => {
309
- process.stdout.write(`${import_picocolors.default.gray(o)}
310
- ${import_picocolors.default.gray(d)} ${t}
311
-
312
- `);
313
- };
314
- M2 = { message: (t = "", { symbol: n = import_picocolors.default.gray(o) } = {}) => {
315
- const r2 = [`${import_picocolors.default.gray(o)}`];
316
- if (t) {
317
- const [i, ...s] = t.split(`
171
+ ee = Ze();
172
+ w = (e, i) => ee ? e : i;
173
+ _e = w("\u25C6", "*");
174
+ oe = w("\u25A0", "x");
175
+ ue = w("\u25B2", "x");
176
+ F = w("\u25C7", "o");
177
+ le = w("\u250C", "T");
178
+ d = w("\u2502", "|");
179
+ E2 = w("\u2514", "\u2014");
180
+ Ie = w("\u2510", "T");
181
+ Ee = w("\u2518", "\u2014");
182
+ z2 = w("\u25CF", ">");
183
+ H2 = w("\u25CB", " ");
184
+ te = w("\u25FB", "[\u2022]");
185
+ U = w("\u25FC", "[+]");
186
+ J = w("\u25FB", "[ ]");
187
+ xe = w("\u25AA", "\u2022");
188
+ se = w("\u2500", "-");
189
+ ce = w("\u256E", "+");
190
+ Ge = w("\u251C", "+");
191
+ $e = w("\u256F", "+");
192
+ de = w("\u2570", "+");
193
+ Oe = w("\u256D", "+");
194
+ he = w("\u25CF", "\u2022");
195
+ pe = w("\u25C6", "*");
196
+ me = w("\u25B2", "!");
197
+ ge = w("\u25A0", "x");
198
+ O2 = { message: (e = [], { symbol: i = t("gray", d), secondarySymbol: s = t("gray", d), output: r = process.stdout, spacing: u2 = 1, withGuide: n } = {}) => {
199
+ const o = [], c2 = n ?? u.withGuide, a = c2 ? s : "", l = c2 ? `${i} ` : "", $2 = c2 ? `${s} ` : "";
200
+ for (let p = 0; p < u2; p++) o.push(a);
201
+ const y2 = Array.isArray(e) ? e : e.split(`
318
202
  `);
319
- r2.push(`${n} ${i}`, ...s.map((c) => `${import_picocolors.default.gray(o)} ${c}`));
203
+ if (y2.length > 0) {
204
+ const [p, ...m] = y2;
205
+ p.length > 0 ? o.push(`${l}${p}`) : o.push(c2 ? i : "");
206
+ for (const g of m) g.length > 0 ? o.push(`${$2}${g}`) : o.push(c2 ? s : "");
320
207
  }
321
- process.stdout.write(`${r2.join(`
208
+ r.write(`${o.join(`
322
209
  `)}
323
210
  `);
324
- }, info: (t) => {
325
- M2.message(t, { symbol: import_picocolors.default.blue(q) });
326
- }, success: (t) => {
327
- M2.message(t, { symbol: import_picocolors.default.green(D) });
328
- }, step: (t) => {
329
- M2.message(t, { symbol: import_picocolors.default.green(C) });
330
- }, warn: (t) => {
331
- M2.message(t, { symbol: import_picocolors.default.yellow(U) });
332
- }, warning: (t) => {
333
- M2.warn(t);
334
- }, error: (t) => {
335
- M2.message(t, { symbol: import_picocolors.default.red(K) });
211
+ }, info: (e, i) => {
212
+ O2.message(e, { ...i, symbol: t("blue", he) });
213
+ }, success: (e, i) => {
214
+ O2.message(e, { ...i, symbol: t("green", pe) });
215
+ }, step: (e, i) => {
216
+ O2.message(e, { ...i, symbol: t("green", F) });
217
+ }, warn: (e, i) => {
218
+ O2.message(e, { ...i, symbol: t("yellow", me) });
219
+ }, warning: (e, i) => {
220
+ O2.warn(e, i);
221
+ }, error: (e, i) => {
222
+ O2.message(e, { ...i, symbol: t("red", ge) });
336
223
  } };
337
- J = `${import_picocolors.default.gray(o)} `;
224
+ mt = (e = "", i) => {
225
+ const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", le)} ` : "";
226
+ s.write(`${r}${e}
227
+ `);
228
+ };
229
+ gt = (e = "", i) => {
230
+ const s = i?.output ?? process.stdout, r = i?.withGuide ?? u.withGuide ? `${t("gray", d)}
231
+ ${t("gray", E2)} ` : "";
232
+ s.write(`${r}${e}
233
+
234
+ `);
235
+ };
236
+ Ve = { light: w("\u2500", "-"), heavy: w("\u2501", "="), block: w("\u2588", "#") };
237
+ je = `${t("gray", d)} `;
338
238
  }
339
239
  });
340
240
 
@@ -383,9 +283,9 @@ var colors, currentLogLevel, log, error, warn, info, success;
383
283
  var init_cli_output = __esm({
384
284
  "packages/tooling/src/utils/cli-output.ts"() {
385
285
  "use strict";
386
- init_utils();
387
- init_dist2();
388
- init_dist2();
286
+ init_utils2();
287
+ init_dist4();
288
+ init_dist4();
389
289
  colors = {
390
290
  reset: "\x1B[0m",
391
291
  // Success (green)
@@ -420,7 +320,7 @@ var init_cli_output = __esm({
420
320
  error(...args) {
421
321
  if (currentLogLevel < 0 /* Quiet */) return;
422
322
  const message = formatMessage(...args);
423
- M2.error(colorize(message, colors.brightRed));
323
+ O2.error(colorize(message, colors.brightRed));
424
324
  },
425
325
  /**
426
326
  * Logs a warning message (shows at Normal level and above)
@@ -429,7 +329,7 @@ var init_cli_output = __esm({
429
329
  warn(...args) {
430
330
  if (currentLogLevel < 1 /* Normal */) return;
431
331
  const message = formatMessage(...args);
432
- M2.warn(colorize(message, colors.brightYellow));
332
+ O2.warn(colorize(message, colors.brightYellow));
433
333
  },
434
334
  /**
435
335
  * Logs an info message (shows at Normal level and above)
@@ -438,7 +338,7 @@ var init_cli_output = __esm({
438
338
  info(...args) {
439
339
  if (currentLogLevel < 1 /* Normal */) return;
440
340
  const message = formatMessage(...args);
441
- M2.info(colorize(message, colors.brightCyan));
341
+ O2.info(colorize(message, colors.brightCyan));
442
342
  },
443
343
  /**
444
344
  * Logs a success message (shows at Normal level and above)
@@ -447,7 +347,7 @@ var init_cli_output = __esm({
447
347
  success(...args) {
448
348
  if (currentLogLevel < 1 /* Normal */) return;
449
349
  const message = formatMessage(...args);
450
- M2.success(colorize(message, colors.brightGreen));
350
+ O2.success(colorize(message, colors.brightGreen));
451
351
  },
452
352
  /**
453
353
  * Logs a debug message (only shows at Verbose level and above)
@@ -456,7 +356,7 @@ var init_cli_output = __esm({
456
356
  debug(...args) {
457
357
  if (currentLogLevel < 2 /* Verbose */) return;
458
358
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
459
- M2.message(
359
+ O2.message(
460
360
  colorize(
461
361
  `[${timeStamp}] \u{1F50D} DEBUG: ${formatMessage(...args)}`,
462
362
  colors.gray
@@ -470,7 +370,7 @@ var init_cli_output = __esm({
470
370
  trace(...args) {
471
371
  if (currentLogLevel < 3 /* Debug */) return;
472
372
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
473
- M2.message(
373
+ O2.message(
474
374
  colorize(
475
375
  `[${timeStamp}] \u{1F52C} TRACE: ${formatMessage(...args)}`,
476
376
  colors.gray
@@ -490,7 +390,7 @@ var DO_NOT_DEV_ERROR_CODES, DoNotDevError;
490
390
  var init_errors = __esm({
491
391
  "packages/tooling/src/utils/errors.ts"() {
492
392
  "use strict";
493
- init_utils();
393
+ init_utils2();
494
394
  DO_NOT_DEV_ERROR_CODES = {
495
395
  CONFIGURATION_ERROR: "configuration-error",
496
396
  CONFIG_NOT_FOUND: "config-not-found",
@@ -631,7 +531,7 @@ var init_errors = __esm({
631
531
  var require_array = __commonJS({
632
532
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
633
533
  "use strict";
634
- init_utils();
534
+ init_utils2();
635
535
  Object.defineProperty(exports, "__esModule", { value: true });
636
536
  exports.splitWhen = exports.flatten = void 0;
637
537
  function flatten(items) {
@@ -659,7 +559,7 @@ var require_array = __commonJS({
659
559
  var require_errno = __commonJS({
660
560
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
661
561
  "use strict";
662
- init_utils();
562
+ init_utils2();
663
563
  Object.defineProperty(exports, "__esModule", { value: true });
664
564
  exports.isEnoentCodeError = void 0;
665
565
  function isEnoentCodeError(error2) {
@@ -673,7 +573,7 @@ var require_errno = __commonJS({
673
573
  var require_fs = __commonJS({
674
574
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
675
575
  "use strict";
676
- init_utils();
576
+ init_utils2();
677
577
  Object.defineProperty(exports, "__esModule", { value: true });
678
578
  exports.createDirentFromStats = void 0;
679
579
  var DirentFromStats = class {
@@ -699,7 +599,7 @@ var require_fs = __commonJS({
699
599
  var require_path = __commonJS({
700
600
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
701
601
  "use strict";
702
- init_utils();
602
+ init_utils2();
703
603
  Object.defineProperty(exports, "__esModule", { value: true });
704
604
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
705
605
  var os = __require("os");
@@ -752,7 +652,7 @@ var require_path = __commonJS({
752
652
  // node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
753
653
  var require_is_extglob = __commonJS({
754
654
  "node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module) {
755
- init_utils();
655
+ init_utils2();
756
656
  module.exports = function isExtglob(str) {
757
657
  if (typeof str !== "string" || str === "") {
758
658
  return false;
@@ -770,7 +670,7 @@ var require_is_extglob = __commonJS({
770
670
  // node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
771
671
  var require_is_glob = __commonJS({
772
672
  "node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module) {
773
- init_utils();
673
+ init_utils2();
774
674
  var isExtglob = require_is_extglob();
775
675
  var chars = { "{": "}", "(": ")", "[": "]" };
776
676
  var strictCheck = function(str) {
@@ -903,7 +803,7 @@ var require_is_glob = __commonJS({
903
803
  var require_glob_parent = __commonJS({
904
804
  "node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module) {
905
805
  "use strict";
906
- init_utils();
806
+ init_utils2();
907
807
  var isGlob = require_is_glob();
908
808
  var pathPosixDirname = __require("path").posix.dirname;
909
809
  var isWin32 = __require("os").platform() === "win32";
@@ -933,7 +833,7 @@ var require_glob_parent = __commonJS({
933
833
  var require_utils = __commonJS({
934
834
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
935
835
  "use strict";
936
- init_utils();
836
+ init_utils2();
937
837
  exports.isInteger = (num) => {
938
838
  if (typeof num === "number") {
939
839
  return Number.isInteger(num);
@@ -1016,7 +916,7 @@ var require_utils = __commonJS({
1016
916
  var require_stringify = __commonJS({
1017
917
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
1018
918
  "use strict";
1019
- init_utils();
919
+ init_utils2();
1020
920
  var utils = require_utils();
1021
921
  module.exports = (ast, options = {}) => {
1022
922
  const stringify2 = (node, parent = {}) => {
@@ -1048,7 +948,7 @@ var require_stringify = __commonJS({
1048
948
  var require_is_number = __commonJS({
1049
949
  "node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
1050
950
  "use strict";
1051
- init_utils();
951
+ init_utils2();
1052
952
  module.exports = function(num) {
1053
953
  if (typeof num === "number") {
1054
954
  return num - num === 0;
@@ -1065,7 +965,7 @@ var require_is_number = __commonJS({
1065
965
  var require_to_regex_range = __commonJS({
1066
966
  "node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
1067
967
  "use strict";
1068
- init_utils();
968
+ init_utils2();
1069
969
  var isNumber = require_is_number();
1070
970
  var toRegexRange = (min, max, options) => {
1071
971
  if (isNumber(min) === false) {
@@ -1090,8 +990,8 @@ var require_to_regex_range = __commonJS({
1090
990
  return toRegexRange.cache[cacheKey].result;
1091
991
  }
1092
992
  let a = Math.min(min, max);
1093
- let b2 = Math.max(min, max);
1094
- if (Math.abs(a - b2) === 1) {
993
+ let b = Math.max(min, max);
994
+ if (Math.abs(a - b) === 1) {
1095
995
  let result = min + "|" + max;
1096
996
  if (opts.capture) {
1097
997
  return `(${result})`;
@@ -1102,7 +1002,7 @@ var require_to_regex_range = __commonJS({
1102
1002
  return `(?:${result})`;
1103
1003
  }
1104
1004
  let isPadded = hasPadding(min) || hasPadding(max);
1105
- let state = { min, max, a, b: b2 };
1005
+ let state = { min, max, a, b };
1106
1006
  let positives = [];
1107
1007
  let negatives = [];
1108
1008
  if (isPadded) {
@@ -1110,12 +1010,12 @@ var require_to_regex_range = __commonJS({
1110
1010
  state.maxLen = String(state.max).length;
1111
1011
  }
1112
1012
  if (a < 0) {
1113
- let newMin = b2 < 0 ? Math.abs(b2) : 1;
1013
+ let newMin = b < 0 ? Math.abs(b) : 1;
1114
1014
  negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
1115
1015
  a = state.a = 0;
1116
1016
  }
1117
- if (b2 >= 0) {
1118
- positives = splitToPatterns(a, b2, state, opts);
1017
+ if (b >= 0) {
1018
+ positives = splitToPatterns(a, b, state, opts);
1119
1019
  }
1120
1020
  state.negatives = negatives;
1121
1021
  state.positives = positives;
@@ -1219,13 +1119,13 @@ var require_to_regex_range = __commonJS({
1219
1119
  }
1220
1120
  return result;
1221
1121
  }
1222
- function zip(a, b2) {
1122
+ function zip(a, b) {
1223
1123
  let arr = [];
1224
- for (let i = 0; i < a.length; i++) arr.push([a[i], b2[i]]);
1124
+ for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
1225
1125
  return arr;
1226
1126
  }
1227
- function compare(a, b2) {
1228
- return a > b2 ? 1 : b2 > a ? -1 : 0;
1127
+ function compare(a, b) {
1128
+ return a > b ? 1 : b > a ? -1 : 0;
1229
1129
  }
1230
1130
  function contains(arr, key, val) {
1231
1131
  return arr.some((ele) => ele[key] === val);
@@ -1243,8 +1143,8 @@ var require_to_regex_range = __commonJS({
1243
1143
  }
1244
1144
  return "";
1245
1145
  }
1246
- function toCharacterClass(a, b2, options) {
1247
- return `[${a}${b2 - a === 1 ? "" : "-"}${b2}]`;
1146
+ function toCharacterClass(a, b, options) {
1147
+ return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
1248
1148
  }
1249
1149
  function hasPadding(str) {
1250
1150
  return /^-?(0+)\d/.test(str);
@@ -1277,7 +1177,7 @@ var require_to_regex_range = __commonJS({
1277
1177
  var require_fill_range = __commonJS({
1278
1178
  "node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
1279
1179
  "use strict";
1280
- init_utils();
1180
+ init_utils2();
1281
1181
  var util = __require("util");
1282
1182
  var toRegexRange = require_to_regex_range();
1283
1183
  var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -1323,8 +1223,8 @@ var require_fill_range = __commonJS({
1323
1223
  return negative ? "-" + input : input;
1324
1224
  };
1325
1225
  var toSequence = (parts, options, maxLen) => {
1326
- parts.negatives.sort((a, b2) => a < b2 ? -1 : a > b2 ? 1 : 0);
1327
- parts.positives.sort((a, b2) => a < b2 ? -1 : a > b2 ? 1 : 0);
1226
+ parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
1227
+ parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
1328
1228
  let prefix = options.capture ? "" : "?:";
1329
1229
  let positives = "";
1330
1230
  let negatives = "";
@@ -1345,13 +1245,13 @@ var require_fill_range = __commonJS({
1345
1245
  }
1346
1246
  return result;
1347
1247
  };
1348
- var toRange = (a, b2, isNumbers, options) => {
1248
+ var toRange = (a, b, isNumbers, options) => {
1349
1249
  if (isNumbers) {
1350
- return toRegexRange(a, b2, { wrap: false, ...options });
1250
+ return toRegexRange(a, b, { wrap: false, ...options });
1351
1251
  }
1352
1252
  let start = String.fromCharCode(a);
1353
- if (a === b2) return start;
1354
- let stop = String.fromCharCode(b2);
1253
+ if (a === b) return start;
1254
+ let stop = String.fromCharCode(b);
1355
1255
  return `[${start}-${stop}]`;
1356
1256
  };
1357
1257
  var toRegex = (start, end, options) => {
@@ -1377,14 +1277,14 @@ var require_fill_range = __commonJS({
1377
1277
  };
1378
1278
  var fillNumbers = (start, end, step = 1, options = {}) => {
1379
1279
  let a = Number(start);
1380
- let b2 = Number(end);
1381
- if (!Number.isInteger(a) || !Number.isInteger(b2)) {
1280
+ let b = Number(end);
1281
+ if (!Number.isInteger(a) || !Number.isInteger(b)) {
1382
1282
  if (options.strictRanges === true) throw rangeError([start, end]);
1383
1283
  return [];
1384
1284
  }
1385
1285
  if (a === 0) a = 0;
1386
- if (b2 === 0) b2 = 0;
1387
- let descending = a > b2;
1286
+ if (b === 0) b = 0;
1287
+ let descending = a > b;
1388
1288
  let startString = String(start);
1389
1289
  let endString = String(end);
1390
1290
  let stepString = String(step);
@@ -1400,7 +1300,7 @@ var require_fill_range = __commonJS({
1400
1300
  let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
1401
1301
  let range = [];
1402
1302
  let index = 0;
1403
- while (descending ? a >= b2 : a <= b2) {
1303
+ while (descending ? a >= b : a <= b) {
1404
1304
  if (options.toRegex === true && step > 1) {
1405
1305
  push(a);
1406
1306
  } else {
@@ -1420,16 +1320,16 @@ var require_fill_range = __commonJS({
1420
1320
  }
1421
1321
  let format = options.transform || ((val) => String.fromCharCode(val));
1422
1322
  let a = `${start}`.charCodeAt(0);
1423
- let b2 = `${end}`.charCodeAt(0);
1424
- let descending = a > b2;
1425
- let min = Math.min(a, b2);
1426
- let max = Math.max(a, b2);
1323
+ let b = `${end}`.charCodeAt(0);
1324
+ let descending = a > b;
1325
+ let min = Math.min(a, b);
1326
+ let max = Math.max(a, b);
1427
1327
  if (options.toRegex && step === 1) {
1428
1328
  return toRange(min, max, false, options);
1429
1329
  }
1430
1330
  let range = [];
1431
1331
  let index = 0;
1432
- while (descending ? a >= b2 : a <= b2) {
1332
+ while (descending ? a >= b : a <= b) {
1433
1333
  range.push(format(a, index));
1434
1334
  a = descending ? a - step : a + step;
1435
1335
  index++;
@@ -1472,7 +1372,7 @@ var require_fill_range = __commonJS({
1472
1372
  var require_compile = __commonJS({
1473
1373
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
1474
1374
  "use strict";
1475
- init_utils();
1375
+ init_utils2();
1476
1376
  var fill = require_fill_range();
1477
1377
  var utils = require_utils();
1478
1378
  var compile = (ast, options = {}) => {
@@ -1524,7 +1424,7 @@ var require_compile = __commonJS({
1524
1424
  var require_expand = __commonJS({
1525
1425
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
1526
1426
  "use strict";
1527
- init_utils();
1427
+ init_utils2();
1528
1428
  var fill = require_fill_range();
1529
1429
  var stringify2 = require_stringify();
1530
1430
  var utils = require_utils();
@@ -1619,7 +1519,7 @@ var require_expand = __commonJS({
1619
1519
  var require_constants = __commonJS({
1620
1520
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
1621
1521
  "use strict";
1622
- init_utils();
1522
+ init_utils2();
1623
1523
  module.exports = {
1624
1524
  MAX_LENGTH: 1e4,
1625
1525
  // Digits
@@ -1721,7 +1621,7 @@ var require_constants = __commonJS({
1721
1621
  var require_parse = __commonJS({
1722
1622
  "node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
1723
1623
  "use strict";
1724
- init_utils();
1624
+ init_utils2();
1725
1625
  var stringify2 = require_stringify();
1726
1626
  var {
1727
1627
  MAX_LENGTH,
@@ -1960,7 +1860,7 @@ var require_parse = __commonJS({
1960
1860
  var require_braces = __commonJS({
1961
1861
  "node_modules/.bun/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
1962
1862
  "use strict";
1963
- init_utils();
1863
+ init_utils2();
1964
1864
  var stringify2 = require_stringify();
1965
1865
  var compile = require_compile();
1966
1866
  var expand = require_expand();
@@ -2020,14 +1920,15 @@ var require_braces = __commonJS({
2020
1920
  }
2021
1921
  });
2022
1922
 
2023
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
1923
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
2024
1924
  var require_constants2 = __commonJS({
2025
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
1925
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
2026
1926
  "use strict";
2027
- init_utils();
1927
+ init_utils2();
2028
1928
  var path = __require("path");
2029
1929
  var WIN_SLASH = "\\\\/";
2030
1930
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
1931
+ var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
2031
1932
  var DOT_LITERAL = "\\.";
2032
1933
  var PLUS_LITERAL = "\\+";
2033
1934
  var QMARK_LITERAL = "\\?";
@@ -2075,6 +1976,7 @@ var require_constants2 = __commonJS({
2075
1976
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
2076
1977
  };
2077
1978
  var POSIX_REGEX_SOURCE = {
1979
+ __proto__: null,
2078
1980
  alnum: "a-zA-Z0-9",
2079
1981
  alpha: "a-zA-Z",
2080
1982
  ascii: "\\x00-\\x7F",
@@ -2091,6 +1993,7 @@ var require_constants2 = __commonJS({
2091
1993
  xdigit: "A-Fa-f0-9"
2092
1994
  };
2093
1995
  module.exports = {
1996
+ DEFAULT_MAX_EXTGLOB_RECURSION,
2094
1997
  MAX_LENGTH: 1024 * 64,
2095
1998
  POSIX_REGEX_SOURCE,
2096
1999
  // regular expressions
@@ -2102,6 +2005,7 @@ var require_constants2 = __commonJS({
2102
2005
  REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
2103
2006
  // Replace globs with equivalent patterns to reduce parsing time.
2104
2007
  REPLACEMENTS: {
2008
+ __proto__: null,
2105
2009
  "***": "*",
2106
2010
  "**/**": "**",
2107
2011
  "**/**/**": "**"
@@ -2218,11 +2122,11 @@ var require_constants2 = __commonJS({
2218
2122
  }
2219
2123
  });
2220
2124
 
2221
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
2125
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
2222
2126
  var require_utils2 = __commonJS({
2223
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
2127
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
2224
2128
  "use strict";
2225
- init_utils();
2129
+ init_utils2();
2226
2130
  var path = __require("path");
2227
2131
  var win32 = process.platform === "win32";
2228
2132
  var {
@@ -2280,11 +2184,11 @@ var require_utils2 = __commonJS({
2280
2184
  }
2281
2185
  });
2282
2186
 
2283
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
2187
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
2284
2188
  var require_scan = __commonJS({
2285
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
2189
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
2286
2190
  "use strict";
2287
- init_utils();
2191
+ init_utils2();
2288
2192
  var utils = require_utils2();
2289
2193
  var {
2290
2194
  CHAR_ASTERISK,
@@ -2611,11 +2515,11 @@ var require_scan = __commonJS({
2611
2515
  }
2612
2516
  });
2613
2517
 
2614
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
2518
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
2615
2519
  var require_parse2 = __commonJS({
2616
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
2520
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
2617
2521
  "use strict";
2618
- init_utils();
2522
+ init_utils2();
2619
2523
  var constants2 = require_constants2();
2620
2524
  var utils = require_utils2();
2621
2525
  var {
@@ -2641,6 +2545,213 @@ var require_parse2 = __commonJS({
2641
2545
  var syntaxError = (type, char) => {
2642
2546
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
2643
2547
  };
2548
+ var splitTopLevel = (input) => {
2549
+ const parts = [];
2550
+ let bracket = 0;
2551
+ let paren = 0;
2552
+ let quote = 0;
2553
+ let value = "";
2554
+ let escaped = false;
2555
+ for (const ch of input) {
2556
+ if (escaped === true) {
2557
+ value += ch;
2558
+ escaped = false;
2559
+ continue;
2560
+ }
2561
+ if (ch === "\\") {
2562
+ value += ch;
2563
+ escaped = true;
2564
+ continue;
2565
+ }
2566
+ if (ch === '"') {
2567
+ quote = quote === 1 ? 0 : 1;
2568
+ value += ch;
2569
+ continue;
2570
+ }
2571
+ if (quote === 0) {
2572
+ if (ch === "[") {
2573
+ bracket++;
2574
+ } else if (ch === "]" && bracket > 0) {
2575
+ bracket--;
2576
+ } else if (bracket === 0) {
2577
+ if (ch === "(") {
2578
+ paren++;
2579
+ } else if (ch === ")" && paren > 0) {
2580
+ paren--;
2581
+ } else if (ch === "|" && paren === 0) {
2582
+ parts.push(value);
2583
+ value = "";
2584
+ continue;
2585
+ }
2586
+ }
2587
+ }
2588
+ value += ch;
2589
+ }
2590
+ parts.push(value);
2591
+ return parts;
2592
+ };
2593
+ var isPlainBranch = (branch) => {
2594
+ let escaped = false;
2595
+ for (const ch of branch) {
2596
+ if (escaped === true) {
2597
+ escaped = false;
2598
+ continue;
2599
+ }
2600
+ if (ch === "\\") {
2601
+ escaped = true;
2602
+ continue;
2603
+ }
2604
+ if (/[?*+@!()[\]{}]/.test(ch)) {
2605
+ return false;
2606
+ }
2607
+ }
2608
+ return true;
2609
+ };
2610
+ var normalizeSimpleBranch = (branch) => {
2611
+ let value = branch.trim();
2612
+ let changed = true;
2613
+ while (changed === true) {
2614
+ changed = false;
2615
+ if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
2616
+ value = value.slice(2, -1);
2617
+ changed = true;
2618
+ }
2619
+ }
2620
+ if (!isPlainBranch(value)) {
2621
+ return;
2622
+ }
2623
+ return value.replace(/\\(.)/g, "$1");
2624
+ };
2625
+ var hasRepeatedCharPrefixOverlap = (branches) => {
2626
+ const values = branches.map(normalizeSimpleBranch).filter(Boolean);
2627
+ for (let i = 0; i < values.length; i++) {
2628
+ for (let j = i + 1; j < values.length; j++) {
2629
+ const a = values[i];
2630
+ const b = values[j];
2631
+ const char = a[0];
2632
+ if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
2633
+ continue;
2634
+ }
2635
+ if (a === b || a.startsWith(b) || b.startsWith(a)) {
2636
+ return true;
2637
+ }
2638
+ }
2639
+ }
2640
+ return false;
2641
+ };
2642
+ var parseRepeatedExtglob = (pattern, requireEnd = true) => {
2643
+ if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
2644
+ return;
2645
+ }
2646
+ let bracket = 0;
2647
+ let paren = 0;
2648
+ let quote = 0;
2649
+ let escaped = false;
2650
+ for (let i = 1; i < pattern.length; i++) {
2651
+ const ch = pattern[i];
2652
+ if (escaped === true) {
2653
+ escaped = false;
2654
+ continue;
2655
+ }
2656
+ if (ch === "\\") {
2657
+ escaped = true;
2658
+ continue;
2659
+ }
2660
+ if (ch === '"') {
2661
+ quote = quote === 1 ? 0 : 1;
2662
+ continue;
2663
+ }
2664
+ if (quote === 1) {
2665
+ continue;
2666
+ }
2667
+ if (ch === "[") {
2668
+ bracket++;
2669
+ continue;
2670
+ }
2671
+ if (ch === "]" && bracket > 0) {
2672
+ bracket--;
2673
+ continue;
2674
+ }
2675
+ if (bracket > 0) {
2676
+ continue;
2677
+ }
2678
+ if (ch === "(") {
2679
+ paren++;
2680
+ continue;
2681
+ }
2682
+ if (ch === ")") {
2683
+ paren--;
2684
+ if (paren === 0) {
2685
+ if (requireEnd === true && i !== pattern.length - 1) {
2686
+ return;
2687
+ }
2688
+ return {
2689
+ type: pattern[0],
2690
+ body: pattern.slice(2, i),
2691
+ end: i
2692
+ };
2693
+ }
2694
+ }
2695
+ }
2696
+ };
2697
+ var getStarExtglobSequenceOutput = (pattern) => {
2698
+ let index = 0;
2699
+ const chars = [];
2700
+ while (index < pattern.length) {
2701
+ const match = parseRepeatedExtglob(pattern.slice(index), false);
2702
+ if (!match || match.type !== "*") {
2703
+ return;
2704
+ }
2705
+ const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
2706
+ if (branches.length !== 1) {
2707
+ return;
2708
+ }
2709
+ const branch = normalizeSimpleBranch(branches[0]);
2710
+ if (!branch || branch.length !== 1) {
2711
+ return;
2712
+ }
2713
+ chars.push(branch);
2714
+ index += match.end + 1;
2715
+ }
2716
+ if (chars.length < 1) {
2717
+ return;
2718
+ }
2719
+ const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
2720
+ return `${source}*`;
2721
+ };
2722
+ var repeatedExtglobRecursion = (pattern) => {
2723
+ let depth = 0;
2724
+ let value = pattern.trim();
2725
+ let match = parseRepeatedExtglob(value);
2726
+ while (match) {
2727
+ depth++;
2728
+ value = match.body.trim();
2729
+ match = parseRepeatedExtglob(value);
2730
+ }
2731
+ return depth;
2732
+ };
2733
+ var analyzeRepeatedExtglob = (body, options) => {
2734
+ if (options.maxExtglobRecursion === false) {
2735
+ return { risky: false };
2736
+ }
2737
+ const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants2.DEFAULT_MAX_EXTGLOB_RECURSION;
2738
+ const branches = splitTopLevel(body).map((branch) => branch.trim());
2739
+ if (branches.length > 1) {
2740
+ if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
2741
+ return { risky: true };
2742
+ }
2743
+ }
2744
+ for (const branch of branches) {
2745
+ const safeOutput = getStarExtglobSequenceOutput(branch);
2746
+ if (safeOutput) {
2747
+ return { risky: true, safeOutput };
2748
+ }
2749
+ if (repeatedExtglobRecursion(branch) > max) {
2750
+ return { risky: true };
2751
+ }
2752
+ }
2753
+ return { risky: false };
2754
+ };
2644
2755
  var parse2 = (input, options) => {
2645
2756
  if (typeof input !== "string") {
2646
2757
  throw new TypeError("Expected a string");
@@ -2772,6 +2883,8 @@ var require_parse2 = __commonJS({
2772
2883
  token.prev = prev;
2773
2884
  token.parens = state.parens;
2774
2885
  token.output = state.output;
2886
+ token.startIndex = state.index;
2887
+ token.tokensIndex = tokens.length;
2775
2888
  const output = (opts.capture ? "(" : "") + token.open;
2776
2889
  increment("parens");
2777
2890
  push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
@@ -2779,6 +2892,26 @@ var require_parse2 = __commonJS({
2779
2892
  extglobs.push(token);
2780
2893
  };
2781
2894
  const extglobClose = (token) => {
2895
+ const literal = input.slice(token.startIndex, state.index + 1);
2896
+ const body = input.slice(token.startIndex + 2, state.index);
2897
+ const analysis = analyzeRepeatedExtglob(body, opts);
2898
+ if ((token.type === "plus" || token.type === "star") && analysis.risky) {
2899
+ const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
2900
+ const open = tokens[token.tokensIndex];
2901
+ open.type = "text";
2902
+ open.value = literal;
2903
+ open.output = safeOutput || utils.escapeRegex(literal);
2904
+ for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
2905
+ tokens[i].value = "";
2906
+ tokens[i].output = "";
2907
+ delete tokens[i].suffix;
2908
+ }
2909
+ state.output = token.output + open.output;
2910
+ state.backtrack = true;
2911
+ push({ type: "paren", extglob: true, value, output: "" });
2912
+ decrement("parens");
2913
+ return;
2914
+ }
2782
2915
  let output = token.close + (opts.capture ? ")" : "");
2783
2916
  let rest;
2784
2917
  if (token.type === "negate") {
@@ -3032,8 +3165,8 @@ var require_parse2 = __commonJS({
3032
3165
  brace.value = brace.output = "\\{";
3033
3166
  value = output = "\\}";
3034
3167
  state.output = out;
3035
- for (const t of toks) {
3036
- state.output += t.output || t.value;
3168
+ for (const t2 of toks) {
3169
+ state.output += t2.output || t2.value;
3037
3170
  }
3038
3171
  }
3039
3172
  push({ type: "brace", value, output });
@@ -3385,11 +3518,11 @@ var require_parse2 = __commonJS({
3385
3518
  }
3386
3519
  });
3387
3520
 
3388
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
3521
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
3389
3522
  var require_picomatch = __commonJS({
3390
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3523
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
3391
3524
  "use strict";
3392
- init_utils();
3525
+ init_utils2();
3393
3526
  var path = __require("path");
3394
3527
  var scan = require_scan();
3395
3528
  var parse2 = require_parse2();
@@ -3527,11 +3660,11 @@ var require_picomatch = __commonJS({
3527
3660
  }
3528
3661
  });
3529
3662
 
3530
- // node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js
3663
+ // node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js
3531
3664
  var require_picomatch2 = __commonJS({
3532
- "node_modules/.bun/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
3665
+ "node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
3533
3666
  "use strict";
3534
- init_utils();
3667
+ init_utils2();
3535
3668
  module.exports = require_picomatch();
3536
3669
  }
3537
3670
  });
@@ -3540,7 +3673,7 @@ var require_picomatch2 = __commonJS({
3540
3673
  var require_micromatch = __commonJS({
3541
3674
  "node_modules/.bun/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
3542
3675
  "use strict";
3543
- init_utils();
3676
+ init_utils2();
3544
3677
  var util = __require("util");
3545
3678
  var braces = require_braces();
3546
3679
  var picomatch = require_picomatch2();
@@ -3702,7 +3835,7 @@ var require_micromatch = __commonJS({
3702
3835
  var require_pattern = __commonJS({
3703
3836
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
3704
3837
  "use strict";
3705
- init_utils();
3838
+ init_utils2();
3706
3839
  Object.defineProperty(exports, "__esModule", { value: true });
3707
3840
  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;
3708
3841
  var path = __require("path");
@@ -3812,7 +3945,7 @@ var require_pattern = __commonJS({
3812
3945
  exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
3813
3946
  function expandBraceExpansion(pattern) {
3814
3947
  const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
3815
- patterns.sort((a, b2) => a.length - b2.length);
3948
+ patterns.sort((a, b) => a.length - b.length);
3816
3949
  return patterns.filter((pattern2) => pattern2 !== "");
3817
3950
  }
3818
3951
  exports.expandBraceExpansion = expandBraceExpansion;
@@ -3868,7 +4001,7 @@ var require_pattern = __commonJS({
3868
4001
  var require_merge2 = __commonJS({
3869
4002
  "node_modules/.bun/merge2@1.4.1/node_modules/merge2/index.js"(exports, module) {
3870
4003
  "use strict";
3871
- init_utils();
4004
+ init_utils2();
3872
4005
  var Stream = __require("stream");
3873
4006
  var PassThrough = Stream.PassThrough;
3874
4007
  var slice = Array.prototype.slice;
@@ -3988,7 +4121,7 @@ var require_merge2 = __commonJS({
3988
4121
  var require_stream = __commonJS({
3989
4122
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
3990
4123
  "use strict";
3991
- init_utils();
4124
+ init_utils2();
3992
4125
  Object.defineProperty(exports, "__esModule", { value: true });
3993
4126
  exports.merge = void 0;
3994
4127
  var merge2 = require_merge2();
@@ -4012,7 +4145,7 @@ var require_stream = __commonJS({
4012
4145
  var require_string = __commonJS({
4013
4146
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
4014
4147
  "use strict";
4015
- init_utils();
4148
+ init_utils2();
4016
4149
  Object.defineProperty(exports, "__esModule", { value: true });
4017
4150
  exports.isEmpty = exports.isString = void 0;
4018
4151
  function isString(input) {
@@ -4030,7 +4163,7 @@ var require_string = __commonJS({
4030
4163
  var require_utils3 = __commonJS({
4031
4164
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
4032
4165
  "use strict";
4033
- init_utils();
4166
+ init_utils2();
4034
4167
  Object.defineProperty(exports, "__esModule", { value: true });
4035
4168
  exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
4036
4169
  var array = require_array();
@@ -4054,7 +4187,7 @@ var require_utils3 = __commonJS({
4054
4187
  var require_tasks = __commonJS({
4055
4188
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
4056
4189
  "use strict";
4057
- init_utils();
4190
+ init_utils2();
4058
4191
  Object.defineProperty(exports, "__esModule", { value: true });
4059
4192
  exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
4060
4193
  var utils = require_utils3();
@@ -4151,7 +4284,7 @@ var require_tasks = __commonJS({
4151
4284
  var require_async = __commonJS({
4152
4285
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
4153
4286
  "use strict";
4154
- init_utils();
4287
+ init_utils2();
4155
4288
  Object.defineProperty(exports, "__esModule", { value: true });
4156
4289
  exports.read = void 0;
4157
4290
  function read(path, settings, callback) {
@@ -4194,7 +4327,7 @@ var require_async = __commonJS({
4194
4327
  var require_sync = __commonJS({
4195
4328
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
4196
4329
  "use strict";
4197
- init_utils();
4330
+ init_utils2();
4198
4331
  Object.defineProperty(exports, "__esModule", { value: true });
4199
4332
  exports.read = void 0;
4200
4333
  function read(path, settings) {
@@ -4223,7 +4356,7 @@ var require_sync = __commonJS({
4223
4356
  var require_fs2 = __commonJS({
4224
4357
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
4225
4358
  "use strict";
4226
- init_utils();
4359
+ init_utils2();
4227
4360
  Object.defineProperty(exports, "__esModule", { value: true });
4228
4361
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4229
4362
  var fs2 = __require("fs");
@@ -4247,7 +4380,7 @@ var require_fs2 = __commonJS({
4247
4380
  var require_settings = __commonJS({
4248
4381
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
4249
4382
  "use strict";
4250
- init_utils();
4383
+ init_utils2();
4251
4384
  Object.defineProperty(exports, "__esModule", { value: true });
4252
4385
  var fs2 = require_fs2();
4253
4386
  var Settings = class {
@@ -4270,7 +4403,7 @@ var require_settings = __commonJS({
4270
4403
  var require_out = __commonJS({
4271
4404
  "node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
4272
4405
  "use strict";
4273
- init_utils();
4406
+ init_utils2();
4274
4407
  Object.defineProperty(exports, "__esModule", { value: true });
4275
4408
  exports.statSync = exports.stat = exports.Settings = void 0;
4276
4409
  var async = require_async();
@@ -4302,7 +4435,7 @@ var require_out = __commonJS({
4302
4435
  // node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
4303
4436
  var require_queue_microtask = __commonJS({
4304
4437
  "node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module) {
4305
- init_utils();
4438
+ init_utils2();
4306
4439
  var promise;
4307
4440
  module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
4308
4441
  throw err;
@@ -4313,7 +4446,7 @@ var require_queue_microtask = __commonJS({
4313
4446
  // node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js
4314
4447
  var require_run_parallel = __commonJS({
4315
4448
  "node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module) {
4316
- init_utils();
4449
+ init_utils2();
4317
4450
  module.exports = runParallel;
4318
4451
  var queueMicrotask2 = require_queue_microtask();
4319
4452
  function runParallel(tasks, cb) {
@@ -4365,7 +4498,7 @@ var require_run_parallel = __commonJS({
4365
4498
  var require_constants3 = __commonJS({
4366
4499
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
4367
4500
  "use strict";
4368
- init_utils();
4501
+ init_utils2();
4369
4502
  Object.defineProperty(exports, "__esModule", { value: true });
4370
4503
  exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
4371
4504
  var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
@@ -4386,7 +4519,7 @@ var require_constants3 = __commonJS({
4386
4519
  var require_fs3 = __commonJS({
4387
4520
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
4388
4521
  "use strict";
4389
- init_utils();
4522
+ init_utils2();
4390
4523
  Object.defineProperty(exports, "__esModule", { value: true });
4391
4524
  exports.createDirentFromStats = void 0;
4392
4525
  var DirentFromStats = class {
@@ -4412,7 +4545,7 @@ var require_fs3 = __commonJS({
4412
4545
  var require_utils4 = __commonJS({
4413
4546
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
4414
4547
  "use strict";
4415
- init_utils();
4548
+ init_utils2();
4416
4549
  Object.defineProperty(exports, "__esModule", { value: true });
4417
4550
  exports.fs = void 0;
4418
4551
  var fs2 = require_fs3();
@@ -4424,14 +4557,14 @@ var require_utils4 = __commonJS({
4424
4557
  var require_common = __commonJS({
4425
4558
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
4426
4559
  "use strict";
4427
- init_utils();
4560
+ init_utils2();
4428
4561
  Object.defineProperty(exports, "__esModule", { value: true });
4429
4562
  exports.joinPathSegments = void 0;
4430
- function joinPathSegments(a, b2, separator) {
4563
+ function joinPathSegments(a, b, separator) {
4431
4564
  if (a.endsWith(separator)) {
4432
- return a + b2;
4565
+ return a + b;
4433
4566
  }
4434
- return a + separator + b2;
4567
+ return a + separator + b;
4435
4568
  }
4436
4569
  exports.joinPathSegments = joinPathSegments;
4437
4570
  }
@@ -4441,7 +4574,7 @@ var require_common = __commonJS({
4441
4574
  var require_async2 = __commonJS({
4442
4575
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
4443
4576
  "use strict";
4444
- init_utils();
4577
+ init_utils2();
4445
4578
  Object.defineProperty(exports, "__esModule", { value: true });
4446
4579
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4447
4580
  var fsStat = require_out();
@@ -4552,7 +4685,7 @@ var require_async2 = __commonJS({
4552
4685
  var require_sync2 = __commonJS({
4553
4686
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
4554
4687
  "use strict";
4555
- init_utils();
4688
+ init_utils2();
4556
4689
  Object.defineProperty(exports, "__esModule", { value: true });
4557
4690
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4558
4691
  var fsStat = require_out();
@@ -4612,7 +4745,7 @@ var require_sync2 = __commonJS({
4612
4745
  var require_fs4 = __commonJS({
4613
4746
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
4614
4747
  "use strict";
4615
- init_utils();
4748
+ init_utils2();
4616
4749
  Object.defineProperty(exports, "__esModule", { value: true });
4617
4750
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4618
4751
  var fs2 = __require("fs");
@@ -4638,7 +4771,7 @@ var require_fs4 = __commonJS({
4638
4771
  var require_settings2 = __commonJS({
4639
4772
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
4640
4773
  "use strict";
4641
- init_utils();
4774
+ init_utils2();
4642
4775
  Object.defineProperty(exports, "__esModule", { value: true });
4643
4776
  var path = __require("path");
4644
4777
  var fsStat = require_out();
@@ -4669,7 +4802,7 @@ var require_settings2 = __commonJS({
4669
4802
  var require_out2 = __commonJS({
4670
4803
  "node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
4671
4804
  "use strict";
4672
- init_utils();
4805
+ init_utils2();
4673
4806
  Object.defineProperty(exports, "__esModule", { value: true });
4674
4807
  exports.Settings = exports.scandirSync = exports.scandir = void 0;
4675
4808
  var async = require_async2();
@@ -4702,7 +4835,7 @@ var require_out2 = __commonJS({
4702
4835
  var require_reusify = __commonJS({
4703
4836
  "node_modules/.bun/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module) {
4704
4837
  "use strict";
4705
- init_utils();
4838
+ init_utils2();
4706
4839
  function reusify(Constructor) {
4707
4840
  var head = new Constructor();
4708
4841
  var tail = head;
@@ -4734,7 +4867,7 @@ var require_reusify = __commonJS({
4734
4867
  var require_queue = __commonJS({
4735
4868
  "node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
4736
4869
  "use strict";
4737
- init_utils();
4870
+ init_utils2();
4738
4871
  var reusify = require_reusify();
4739
4872
  function fastqueue(context, worker, _concurrency) {
4740
4873
  if (typeof context === "function") {
@@ -5019,7 +5152,7 @@ var require_queue = __commonJS({
5019
5152
  var require_common2 = __commonJS({
5020
5153
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
5021
5154
  "use strict";
5022
- init_utils();
5155
+ init_utils2();
5023
5156
  Object.defineProperty(exports, "__esModule", { value: true });
5024
5157
  exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
5025
5158
  function isFatalError(settings, error2) {
@@ -5037,14 +5170,14 @@ var require_common2 = __commonJS({
5037
5170
  return filepath.split(/[/\\]/).join(separator);
5038
5171
  }
5039
5172
  exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
5040
- function joinPathSegments(a, b2, separator) {
5173
+ function joinPathSegments(a, b, separator) {
5041
5174
  if (a === "") {
5042
- return b2;
5175
+ return b;
5043
5176
  }
5044
5177
  if (a.endsWith(separator)) {
5045
- return a + b2;
5178
+ return a + b;
5046
5179
  }
5047
- return a + separator + b2;
5180
+ return a + separator + b;
5048
5181
  }
5049
5182
  exports.joinPathSegments = joinPathSegments;
5050
5183
  }
@@ -5054,7 +5187,7 @@ var require_common2 = __commonJS({
5054
5187
  var require_reader = __commonJS({
5055
5188
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
5056
5189
  "use strict";
5057
- init_utils();
5190
+ init_utils2();
5058
5191
  Object.defineProperty(exports, "__esModule", { value: true });
5059
5192
  var common = require_common2();
5060
5193
  var Reader = class {
@@ -5072,7 +5205,7 @@ var require_reader = __commonJS({
5072
5205
  var require_async3 = __commonJS({
5073
5206
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
5074
5207
  "use strict";
5075
- init_utils();
5208
+ init_utils2();
5076
5209
  Object.defineProperty(exports, "__esModule", { value: true });
5077
5210
  var events_1 = __require("events");
5078
5211
  var fsScandir = require_out2();
@@ -5176,7 +5309,7 @@ var require_async3 = __commonJS({
5176
5309
  var require_async4 = __commonJS({
5177
5310
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
5178
5311
  "use strict";
5179
- init_utils();
5312
+ init_utils2();
5180
5313
  Object.defineProperty(exports, "__esModule", { value: true });
5181
5314
  var async_1 = require_async3();
5182
5315
  var AsyncProvider = class {
@@ -5213,7 +5346,7 @@ var require_async4 = __commonJS({
5213
5346
  var require_stream2 = __commonJS({
5214
5347
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
5215
5348
  "use strict";
5216
- init_utils();
5349
+ init_utils2();
5217
5350
  Object.defineProperty(exports, "__esModule", { value: true });
5218
5351
  var stream_1 = __require("stream");
5219
5352
  var async_1 = require_async3();
@@ -5255,7 +5388,7 @@ var require_stream2 = __commonJS({
5255
5388
  var require_sync3 = __commonJS({
5256
5389
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
5257
5390
  "use strict";
5258
- init_utils();
5391
+ init_utils2();
5259
5392
  Object.defineProperty(exports, "__esModule", { value: true });
5260
5393
  var fsScandir = require_out2();
5261
5394
  var common = require_common2();
@@ -5320,7 +5453,7 @@ var require_sync3 = __commonJS({
5320
5453
  var require_sync4 = __commonJS({
5321
5454
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
5322
5455
  "use strict";
5323
- init_utils();
5456
+ init_utils2();
5324
5457
  Object.defineProperty(exports, "__esModule", { value: true });
5325
5458
  var sync_1 = require_sync3();
5326
5459
  var SyncProvider = class {
@@ -5341,7 +5474,7 @@ var require_sync4 = __commonJS({
5341
5474
  var require_settings3 = __commonJS({
5342
5475
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
5343
5476
  "use strict";
5344
- init_utils();
5477
+ init_utils2();
5345
5478
  Object.defineProperty(exports, "__esModule", { value: true });
5346
5479
  var path = __require("path");
5347
5480
  var fsScandir = require_out2();
@@ -5374,7 +5507,7 @@ var require_settings3 = __commonJS({
5374
5507
  var require_out3 = __commonJS({
5375
5508
  "node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
5376
5509
  "use strict";
5377
- init_utils();
5510
+ init_utils2();
5378
5511
  Object.defineProperty(exports, "__esModule", { value: true });
5379
5512
  exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
5380
5513
  var async_1 = require_async4();
@@ -5415,7 +5548,7 @@ var require_out3 = __commonJS({
5415
5548
  var require_reader2 = __commonJS({
5416
5549
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
5417
5550
  "use strict";
5418
- init_utils();
5551
+ init_utils2();
5419
5552
  Object.defineProperty(exports, "__esModule", { value: true });
5420
5553
  var path = __require("path");
5421
5554
  var fsStat = require_out();
@@ -5455,7 +5588,7 @@ var require_reader2 = __commonJS({
5455
5588
  var require_stream3 = __commonJS({
5456
5589
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
5457
5590
  "use strict";
5458
- init_utils();
5591
+ init_utils2();
5459
5592
  Object.defineProperty(exports, "__esModule", { value: true });
5460
5593
  var stream_1 = __require("stream");
5461
5594
  var fsStat = require_out();
@@ -5513,7 +5646,7 @@ var require_stream3 = __commonJS({
5513
5646
  var require_async5 = __commonJS({
5514
5647
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
5515
5648
  "use strict";
5516
- init_utils();
5649
+ init_utils2();
5517
5650
  Object.defineProperty(exports, "__esModule", { value: true });
5518
5651
  var fsWalk = require_out3();
5519
5652
  var reader_1 = require_reader2();
@@ -5553,7 +5686,7 @@ var require_async5 = __commonJS({
5553
5686
  var require_matcher = __commonJS({
5554
5687
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
5555
5688
  "use strict";
5556
- init_utils();
5689
+ init_utils2();
5557
5690
  Object.defineProperty(exports, "__esModule", { value: true });
5558
5691
  var utils = require_utils3();
5559
5692
  var Matcher = class {
@@ -5605,7 +5738,7 @@ var require_matcher = __commonJS({
5605
5738
  var require_partial = __commonJS({
5606
5739
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
5607
5740
  "use strict";
5608
- init_utils();
5741
+ init_utils2();
5609
5742
  Object.defineProperty(exports, "__esModule", { value: true });
5610
5743
  var matcher_1 = require_matcher();
5611
5744
  var PartialMatcher = class extends matcher_1.default {
@@ -5643,7 +5776,7 @@ var require_partial = __commonJS({
5643
5776
  var require_deep = __commonJS({
5644
5777
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
5645
5778
  "use strict";
5646
- init_utils();
5779
+ init_utils2();
5647
5780
  Object.defineProperty(exports, "__esModule", { value: true });
5648
5781
  var utils = require_utils3();
5649
5782
  var partial_1 = require_partial();
@@ -5709,7 +5842,7 @@ var require_deep = __commonJS({
5709
5842
  var require_entry = __commonJS({
5710
5843
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
5711
5844
  "use strict";
5712
- init_utils();
5845
+ init_utils2();
5713
5846
  Object.defineProperty(exports, "__esModule", { value: true });
5714
5847
  var utils = require_utils3();
5715
5848
  var EntryFilter = class {
@@ -5798,7 +5931,7 @@ var require_entry = __commonJS({
5798
5931
  var require_error = __commonJS({
5799
5932
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
5800
5933
  "use strict";
5801
- init_utils();
5934
+ init_utils2();
5802
5935
  Object.defineProperty(exports, "__esModule", { value: true });
5803
5936
  var utils = require_utils3();
5804
5937
  var ErrorFilter = class {
@@ -5820,7 +5953,7 @@ var require_error = __commonJS({
5820
5953
  var require_entry2 = __commonJS({
5821
5954
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
5822
5955
  "use strict";
5823
- init_utils();
5956
+ init_utils2();
5824
5957
  Object.defineProperty(exports, "__esModule", { value: true });
5825
5958
  var utils = require_utils3();
5826
5959
  var EntryTransformer = class {
@@ -5853,7 +5986,7 @@ var require_entry2 = __commonJS({
5853
5986
  var require_provider = __commonJS({
5854
5987
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
5855
5988
  "use strict";
5856
- init_utils();
5989
+ init_utils2();
5857
5990
  Object.defineProperty(exports, "__esModule", { value: true });
5858
5991
  var path = __require("path");
5859
5992
  var deep_1 = require_deep();
@@ -5908,7 +6041,7 @@ var require_provider = __commonJS({
5908
6041
  var require_async6 = __commonJS({
5909
6042
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
5910
6043
  "use strict";
5911
- init_utils();
6044
+ init_utils2();
5912
6045
  Object.defineProperty(exports, "__esModule", { value: true });
5913
6046
  var async_1 = require_async5();
5914
6047
  var provider_1 = require_provider();
@@ -5938,7 +6071,7 @@ var require_async6 = __commonJS({
5938
6071
  var require_stream4 = __commonJS({
5939
6072
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
5940
6073
  "use strict";
5941
- init_utils();
6074
+ init_utils2();
5942
6075
  Object.defineProperty(exports, "__esModule", { value: true });
5943
6076
  var stream_1 = __require("stream");
5944
6077
  var stream_2 = require_stream3();
@@ -5973,7 +6106,7 @@ var require_stream4 = __commonJS({
5973
6106
  var require_sync5 = __commonJS({
5974
6107
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
5975
6108
  "use strict";
5976
- init_utils();
6109
+ init_utils2();
5977
6110
  Object.defineProperty(exports, "__esModule", { value: true });
5978
6111
  var fsStat = require_out();
5979
6112
  var fsWalk = require_out3();
@@ -6022,7 +6155,7 @@ var require_sync5 = __commonJS({
6022
6155
  var require_sync6 = __commonJS({
6023
6156
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
6024
6157
  "use strict";
6025
- init_utils();
6158
+ init_utils2();
6026
6159
  Object.defineProperty(exports, "__esModule", { value: true });
6027
6160
  var sync_1 = require_sync5();
6028
6161
  var provider_1 = require_provider();
@@ -6052,7 +6185,7 @@ var require_sync6 = __commonJS({
6052
6185
  var require_settings4 = __commonJS({
6053
6186
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
6054
6187
  "use strict";
6055
- init_utils();
6188
+ init_utils2();
6056
6189
  Object.defineProperty(exports, "__esModule", { value: true });
6057
6190
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
6058
6191
  var fs2 = __require("fs");
@@ -6113,7 +6246,7 @@ var require_settings4 = __commonJS({
6113
6246
  var require_out4 = __commonJS({
6114
6247
  "node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
6115
6248
  "use strict";
6116
- init_utils();
6249
+ init_utils2();
6117
6250
  var taskManager = require_tasks();
6118
6251
  var async_1 = require_async6();
6119
6252
  var stream_1 = require_stream4();
@@ -6232,7 +6365,7 @@ var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
6232
6365
  var init_constants = __esm({
6233
6366
  "packages/core/config/constants.js"() {
6234
6367
  "use strict";
6235
- init_utils();
6368
+ init_utils2();
6236
6369
  I18N_PATHS = {
6237
6370
  // Monorepo source structure (locales at root, not in src/)
6238
6371
  SOURCE_ROOT: "packages/core/i18n",
@@ -6394,7 +6527,7 @@ var import_fast_glob, constants, log2, PACKAGE_PATHS, PathResolver;
6394
6527
  var init_PathResolver = __esm({
6395
6528
  "packages/core/config/utils/PathResolver.ts"() {
6396
6529
  "use strict";
6397
- init_utils();
6530
+ init_utils2();
6398
6531
  import_fast_glob = __toESM(require_out4(), 1);
6399
6532
  init_constants();
6400
6533
  constants = {
@@ -7398,7 +7531,7 @@ var pathResolverInstance, normalizePath, pathExists, readSync, statSync2, joinPa
7398
7531
  var init_pathResolver = __esm({
7399
7532
  "packages/tooling/src/utils/pathResolver.ts"() {
7400
7533
  "use strict";
7401
- init_utils();
7534
+ init_utils2();
7402
7535
  init_PathResolver();
7403
7536
  pathResolverInstance = PathResolver.getInstance({ debug: false });
7404
7537
  normalizePath = (...pathSegments) => {
@@ -7435,7 +7568,7 @@ function readPackageJson(filePath) {
7435
7568
  var init_typed_file_operations = __esm({
7436
7569
  "packages/tooling/src/utils/typed-file-operations.ts"() {
7437
7570
  "use strict";
7438
- init_utils();
7571
+ init_utils2();
7439
7572
  init_errors();
7440
7573
  init_pathResolver();
7441
7574
  }
@@ -7449,7 +7582,7 @@ import { dirname as dirname3, resolve as resolve3 } from "node:path";
7449
7582
  import process from "node:process";
7450
7583
  import { fileURLToPath as fileURLToPath3 } from "node:url";
7451
7584
  var require2, __filename, __dirname;
7452
- var init_utils = __esm({
7585
+ var init_utils2 = __esm({
7453
7586
  "packages/tooling/src/bundler/utils.ts"() {
7454
7587
  "use strict";
7455
7588
  require2 = createRequire3(import.meta.url);
@@ -7469,6 +7602,14 @@ var init_utils = __esm({
7469
7602
  });
7470
7603
 
7471
7604
  // packages/tooling/src/utils/app-detection.ts
7605
+ function createRootAppInfo(projectRoot) {
7606
+ return {
7607
+ name: "root",
7608
+ packageName: "root",
7609
+ path: projectRoot,
7610
+ framework: "vite"
7611
+ };
7612
+ }
7472
7613
  function detectApps(projectRoot) {
7473
7614
  const apps = [];
7474
7615
  const appsDir = joinPath(projectRoot, "apps");
@@ -7524,49 +7665,120 @@ function analyzeApp(appPath, appName) {
7524
7665
  } 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) {
7525
7666
  framework = "vite";
7526
7667
  }
7527
- const functionsPath = joinPath(appPath, "functions");
7528
- const functionsStat = statSync2(functionsPath);
7529
- const hasFunctions = pathExists(functionsPath) && (functionsStat?.isDirectory() ?? false);
7530
- let platform;
7531
- const firebaseJsonInFunctions = hasFunctions && pathExists(joinPath(functionsPath, "firebase.json"));
7532
- const firebaseJsonInApp = pathExists(joinPath(appPath, "firebase.json"));
7533
- if (firebaseJsonInFunctions || firebaseJsonInApp) {
7534
- platform = "firebase";
7668
+ const firebaseJsonPath = joinPath(appPath, "firebase.json");
7669
+ const hasFirebase = pathExists(firebaseJsonPath);
7670
+ const supabaseDir = joinPath(appPath, "supabase");
7671
+ const supabaseConfigPath = joinPath(supabaseDir, "config.toml");
7672
+ const hasSupabaseDep = !!(packageJson.dependencies?.["@donotdev/supabase"] || packageJson.dependencies?.["@supabase/supabase-js"]);
7673
+ let hasSupabase = pathExists(supabaseDir) || pathExists(supabaseConfigPath) || hasSupabaseDep;
7674
+ if (!hasSupabase) {
7675
+ try {
7676
+ const envPath = joinPath(appPath, ".env");
7677
+ if (pathExists(envPath)) {
7678
+ const envContent = readSync(envPath);
7679
+ if (envContent.match(/VITE_SUPABASE_URL=.+/)) {
7680
+ hasSupabase = true;
7681
+ }
7682
+ }
7683
+ } catch {
7684
+ }
7685
+ }
7686
+ let provider = "unknown";
7687
+ if (hasFirebase && hasSupabase) {
7688
+ provider = "both";
7689
+ } else if (hasFirebase) {
7690
+ provider = "firebase";
7691
+ } else if (hasSupabase) {
7692
+ provider = "supabase";
7693
+ }
7694
+ let firebaseConfig;
7695
+ if (hasFirebase) {
7696
+ try {
7697
+ const config = readSync(firebaseJsonPath, { format: "json" });
7698
+ if (config && typeof config === "object") {
7699
+ const fb = config;
7700
+ firebaseConfig = {
7701
+ projectId: fb.projectId,
7702
+ hasHosting: !!fb.hosting,
7703
+ hasFunctions: !!fb.functions,
7704
+ hasFirestoreRules: !!fb.firestore?.rules,
7705
+ hasStorageRules: !!fb.storage?.rules
7706
+ };
7707
+ }
7708
+ } catch {
7709
+ firebaseConfig = {
7710
+ hasHosting: false,
7711
+ hasFunctions: false,
7712
+ hasFirestoreRules: false,
7713
+ hasStorageRules: false
7714
+ };
7715
+ }
7716
+ }
7717
+ const supabaseFunctionsDir = joinPath(supabaseDir, "functions");
7718
+ const supabaseMigrationsDir = joinPath(supabaseDir, "migrations");
7719
+ let supabaseConfig;
7720
+ if (hasSupabase) {
7721
+ let url;
7722
+ try {
7723
+ const envPath = joinPath(appPath, ".env");
7724
+ if (pathExists(envPath)) {
7725
+ const envContent = readSync(envPath);
7726
+ const urlMatch = envContent.match(/VITE_SUPABASE_URL=(.+)/);
7727
+ if (urlMatch && urlMatch[1]) {
7728
+ url = urlMatch[1].trim();
7729
+ }
7730
+ }
7731
+ } catch {
7732
+ }
7733
+ supabaseConfig = {
7734
+ url,
7735
+ hasFunctions: pathExists(supabaseFunctionsDir),
7736
+ hasMigrations: pathExists(supabaseMigrationsDir)
7737
+ };
7738
+ }
7739
+ let functions;
7740
+ if (hasFirebase && firebaseConfig?.hasFunctions) {
7741
+ const firebaseFunctionsDir = joinPath(appPath, "functions");
7742
+ const firebaseFunctionsStat = statSync2(firebaseFunctionsDir);
7743
+ if (pathExists(firebaseFunctionsDir) && (firebaseFunctionsStat?.isDirectory() ?? false)) {
7744
+ functions = "firebase";
7745
+ }
7535
7746
  }
7536
- if (!platform) {
7537
- const supabaseConfigPath = joinPath(appPath, "supabase", "config.toml");
7538
- const hasSupabaseDep = !!(packageJson.dependencies?.["@donotdev/supabase"] || packageJson.dependencies?.["@supabase/supabase-js"]);
7539
- if (pathExists(supabaseConfigPath) || hasSupabaseDep) {
7540
- platform = "supabase";
7747
+ if (!functions && hasSupabase) {
7748
+ const sbFunctionsStat = statSync2(supabaseFunctionsDir);
7749
+ if (pathExists(supabaseFunctionsDir) && (sbFunctionsStat?.isDirectory() ?? false)) {
7750
+ functions = "supabase";
7541
7751
  }
7542
7752
  }
7543
- if (!platform) {
7753
+ if (!functions) {
7544
7754
  const vercelJsonPath = joinPath(appPath, "vercel.json");
7545
- if (pathExists(vercelJsonPath)) {
7546
- platform = "vercel";
7755
+ const apiDir = joinPath(appPath, "api");
7756
+ const apiDirStat = statSync2(apiDir);
7757
+ if (pathExists(vercelJsonPath) && pathExists(apiDir) && (apiDirStat?.isDirectory() ?? false)) {
7758
+ functions = "vercel";
7759
+ }
7760
+ }
7761
+ let hosting;
7762
+ if (hasFirebase && firebaseConfig?.hasHosting) {
7763
+ hosting = "firebase";
7764
+ }
7765
+ if (!hosting) {
7766
+ if (pathExists(joinPath(appPath, "vercel.json")) || pathExists(joinPath(appPath, ".vercel"))) {
7767
+ hosting = "vercel";
7547
7768
  }
7548
7769
  }
7549
7770
  return {
7550
7771
  name: appName,
7551
7772
  packageName: packageJson.name || appName,
7552
7773
  path: appPath,
7553
- packageJsonPath,
7554
7774
  framework,
7555
- hasFunctions,
7556
- functionsPath: hasFunctions ? functionsPath : void 0,
7557
- platform
7775
+ provider,
7776
+ functions,
7777
+ hosting,
7778
+ firebaseConfig,
7779
+ supabaseConfig
7558
7780
  };
7559
7781
  }
7560
- var init_app_detection = __esm({
7561
- "packages/tooling/src/utils/app-detection.ts"() {
7562
- "use strict";
7563
- init_utils();
7564
- init_pathResolver();
7565
- init_typed_file_operations();
7566
- }
7567
- });
7568
-
7569
- // packages/tooling/src/utils/cross-app-detection.ts
7570
7782
  function detectBackendFromProviders(appDir) {
7571
7783
  for (const candidate of PROVIDERS_CANDIDATES) {
7572
7784
  const filePath = joinPath(appDir, candidate);
@@ -7588,7 +7800,7 @@ function analyzeProjectTopology(projectRoot) {
7588
7800
  const appBackends = /* @__PURE__ */ new Map();
7589
7801
  const backendOwners = /* @__PURE__ */ new Map();
7590
7802
  for (const app of apps) {
7591
- let backend = app.platform === "firebase" || app.platform === "supabase" ? app.platform : null;
7803
+ let backend = app.provider === "firebase" || app.provider === "supabase" ? app.provider : null;
7592
7804
  if (!backend) {
7593
7805
  backend = detectBackendFromProviders(app.path);
7594
7806
  }
@@ -7600,8 +7812,6 @@ function analyzeProjectTopology(projectRoot) {
7600
7812
  backendOwners.set("firebase", app);
7601
7813
  }
7602
7814
  }
7603
- if (!backendOwners.has("firebase") && (pathExists(joinPath(projectRoot, "firebase.json")) || pathExists(joinPath(projectRoot, ".firebaserc")))) {
7604
- }
7605
7815
  return { apps, appBackends, backendOwners };
7606
7816
  }
7607
7817
  function findBackendApp(topology, appName) {
@@ -7610,12 +7820,12 @@ function findBackendApp(topology, appName) {
7610
7820
  return topology.backendOwners.get(backend);
7611
7821
  }
7612
7822
  var PROVIDERS_CANDIDATES;
7613
- var init_cross_app_detection = __esm({
7614
- "packages/tooling/src/utils/cross-app-detection.ts"() {
7823
+ var init_app_detection = __esm({
7824
+ "packages/tooling/src/utils/app-detection.ts"() {
7615
7825
  "use strict";
7616
- init_utils();
7617
- init_app_detection();
7826
+ init_utils2();
7618
7827
  init_pathResolver();
7828
+ init_typed_file_operations();
7619
7829
  PROVIDERS_CANDIDATES = [
7620
7830
  "src/config/providers.ts",
7621
7831
  "src/config/providers.tsx",
@@ -7636,7 +7846,7 @@ var firebaseChecklist;
7636
7846
  var init_checklist_firebase = __esm({
7637
7847
  "packages/tooling/src/cli/coach/checklist-firebase.ts"() {
7638
7848
  "use strict";
7639
- init_utils();
7849
+ init_utils2();
7640
7850
  init_pathResolver();
7641
7851
  firebaseChecklist = {
7642
7852
  id: "firebase",
@@ -7707,7 +7917,7 @@ var supabaseChecklist;
7707
7917
  var init_checklist_supabase = __esm({
7708
7918
  "packages/tooling/src/cli/coach/checklist-supabase.ts"() {
7709
7919
  "use strict";
7710
- init_utils();
7920
+ init_utils2();
7711
7921
  init_pathResolver();
7712
7922
  supabaseChecklist = {
7713
7923
  id: "supabase",
@@ -7777,7 +7987,7 @@ var vercelChecklist;
7777
7987
  var init_checklist_vercel = __esm({
7778
7988
  "packages/tooling/src/cli/coach/checklist-vercel.ts"() {
7779
7989
  "use strict";
7780
- init_utils();
7990
+ init_utils2();
7781
7991
  init_pathResolver();
7782
7992
  vercelChecklist = {
7783
7993
  id: "vercel",
@@ -7827,7 +8037,7 @@ var authChecklist;
7827
8037
  var init_checklist_auth = __esm({
7828
8038
  "packages/tooling/src/cli/coach/checklist-auth.ts"() {
7829
8039
  "use strict";
7830
- init_utils();
8040
+ init_utils2();
7831
8041
  init_pathResolver();
7832
8042
  authChecklist = {
7833
8043
  id: "auth",
@@ -7944,7 +8154,7 @@ var OAUTH_PROVIDERS, oauthChecklist;
7944
8154
  var init_checklist_oauth = __esm({
7945
8155
  "packages/tooling/src/cli/coach/checklist-oauth.ts"() {
7946
8156
  "use strict";
7947
- init_utils();
8157
+ init_utils2();
7948
8158
  init_pathResolver();
7949
8159
  OAUTH_PROVIDERS = [
7950
8160
  {
@@ -8000,19 +8210,19 @@ var init_checklist_oauth = __esm({
8000
8210
  });
8001
8211
 
8002
8212
  // packages/cli/src/bin/commands/coach.ts
8003
- init_utils();
8213
+ init_utils2();
8004
8214
 
8005
8215
  // packages/tooling/src/index.ts
8006
- init_utils();
8216
+ init_utils2();
8007
8217
 
8008
8218
  // packages/tooling/src/cli/index.ts
8009
- init_utils();
8219
+ init_utils2();
8010
8220
 
8011
8221
  // packages/tooling/src/cli/coach/coach.ts
8012
- init_utils();
8222
+ init_utils2();
8223
+ init_app_detection();
8013
8224
  init_cli_output();
8014
- init_cross_app_detection();
8015
- init_pathResolver();
8225
+ init_app_detection();
8016
8226
  var CHECKLIST_ORDER = [
8017
8227
  async () => (await Promise.resolve().then(() => (init_checklist_firebase(), checklist_firebase_exports))).firebaseChecklist,
8018
8228
  async () => (await Promise.resolve().then(() => (init_checklist_supabase(), checklist_supabase_exports))).supabaseChecklist,
@@ -8097,20 +8307,11 @@ function renderStep(num, step, appName) {
8097
8307
  }
8098
8308
  async function main(_options = {}) {
8099
8309
  const projectRoot = process.cwd();
8100
- Ie("DoNotDev Coach");
8310
+ mt("DoNotDev Coach");
8101
8311
  const topology = analyzeProjectTopology(projectRoot);
8102
8312
  let apps = topology.apps;
8103
8313
  if (apps.length === 0) {
8104
- apps = [
8105
- {
8106
- name: "root",
8107
- packageName: "root",
8108
- path: projectRoot,
8109
- packageJsonPath: joinPath(projectRoot, "package.json"),
8110
- framework: "vite",
8111
- hasFunctions: false
8112
- }
8113
- ];
8314
+ apps = [createRootAppInfo(projectRoot)];
8114
8315
  }
8115
8316
  const multiApp = apps.length > 1;
8116
8317
  const hits = [];
@@ -8130,11 +8331,11 @@ async function main(_options = {}) {
8130
8331
  if (hits.length === 0) {
8131
8332
  log.warn("No providers detected. Nothing to coach.");
8132
8333
  log.info("Tip: run dndev create-app to scaffold an app first.");
8133
- Se("");
8334
+ gt("");
8134
8335
  return 0;
8135
8336
  }
8136
8337
  deduplicateAndRender(hits, multiApp);
8137
- Se("");
8338
+ gt("");
8138
8339
  return 0;
8139
8340
  }
8140
8341
  export {