@envin/cli 1.1.9 → 1.1.11
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.
- package/CHANGELOG.md +18 -0
- package/dist/cli/index.mjs +21 -30
- package/dist/preview/.next/BUILD_ID +1 -1
- package/dist/preview/.next/app-path-routes-manifest.json +1 -0
- package/dist/preview/.next/build/chunks/[root-of-the-server]__6e020478._.js +441 -0
- package/dist/preview/.next/build/chunks/[root-of-the-server]__6e020478._.js.map +7 -0
- package/dist/preview/.next/build/chunks/[root-of-the-server]__b9a30b01._.js +233 -0
- package/dist/preview/.next/build/chunks/[root-of-the-server]__b9a30b01._.js.map +8 -0
- package/dist/preview/.next/build/chunks/[root-of-the-server]__c7ae8543._.js +500 -0
- package/dist/preview/.next/build/chunks/[root-of-the-server]__c7ae8543._.js.map +11 -0
- package/dist/preview/.next/build/chunks/[root-of-the-server]__e1331f3c._.js +500 -0
- package/dist/preview/.next/build/chunks/[root-of-the-server]__e1331f3c._.js.map +11 -0
- package/dist/preview/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_f8ac0875._.js +13 -0
- package/dist/preview/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_f8ac0875._.js.map +5 -0
- package/dist/preview/.next/build/chunks/[turbopack-node]_transforms_webpack-loaders_ts_c84aa21a._.js +12 -0
- package/dist/preview/.next/build/chunks/[turbopack-node]_transforms_webpack-loaders_ts_c84aa21a._.js.map +5 -0
- package/dist/preview/.next/build/chunks/[turbopack]_runtime.js +770 -0
- package/dist/preview/.next/build/chunks/[turbopack]_runtime.js.map +10 -0
- package/dist/preview/.next/build/chunks/node_modules_fe693df6._.js +6758 -0
- package/dist/preview/.next/build/chunks/node_modules_fe693df6._.js.map +47 -0
- package/dist/preview/.next/build/package.json +1 -0
- package/dist/preview/.next/build/postcss.js +6 -0
- package/dist/preview/.next/build/postcss.js.map +5 -0
- package/dist/preview/.next/build/webpack-loaders.js +6 -0
- package/dist/preview/.next/build/webpack-loaders.js.map +5 -0
- package/dist/preview/.next/build-manifest.json +13 -26
- package/dist/preview/.next/diagnostics/build-diagnostics.json +1 -1
- package/dist/preview/.next/diagnostics/framework.json +1 -1
- package/dist/preview/.next/fallback-build-manifest.json +12 -0
- package/dist/preview/.next/images-manifest.json +12 -3
- package/dist/preview/.next/next-minimal-server.js.nft.json +1 -1
- package/dist/preview/.next/next-server.js.nft.json +1 -1
- package/dist/preview/.next/prerender-manifest.json +56 -4
- package/dist/preview/.next/required-server-files.json +69 -68
- package/dist/preview/.next/routes-manifest.json +14 -5
- package/dist/preview/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/dist/preview/.next/server/app/_global-error/page/build-manifest.json +17 -0
- package/dist/preview/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/dist/preview/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/dist/preview/.next/server/app/_global-error/page.js +11 -0
- package/dist/preview/.next/server/app/_global-error/page.js.map +5 -0
- package/dist/preview/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/dist/preview/.next/server/app/_global-error/page_client-reference-manifest.js +2 -0
- package/dist/preview/.next/server/app/_global-error.html +2 -0
- package/dist/preview/.next/server/app/_global-error.meta +15 -0
- package/dist/preview/.next/server/app/_global-error.rsc +13 -0
- package/dist/preview/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/dist/preview/.next/server/app/_global-error.segments/_full.segment.rsc +13 -0
- package/dist/preview/.next/server/app/_global-error.segments/_head.segment.rsc +8 -0
- package/dist/preview/.next/server/app/_global-error.segments/_index.segment.rsc +4 -0
- package/dist/preview/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/dist/preview/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/dist/preview/.next/server/app/_not-found/page/build-manifest.json +17 -0
- package/dist/preview/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
- package/dist/preview/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/dist/preview/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/dist/preview/.next/server/app/_not-found/page.js +14 -2
- package/dist/preview/.next/server/app/_not-found/page.js.map +5 -0
- package/dist/preview/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/preview/.next/server/app/_not-found/page_client-reference-manifest.js +2 -1
- package/dist/preview/.next/server/app/_not-found.html +1 -1
- package/dist/preview/.next/server/app/_not-found.meta +9 -1
- package/dist/preview/.next/server/app/_not-found.rsc +13 -17
- package/dist/preview/.next/server/app/_not-found.segments/_full.segment.rsc +14 -0
- package/dist/preview/.next/server/app/_not-found.segments/_head.segment.rsc +8 -0
- package/dist/preview/.next/server/app/_not-found.segments/_index.segment.rsc +5 -0
- package/dist/preview/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/dist/preview/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -0
- package/dist/preview/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
- package/dist/preview/.next/server/app/favicon.ico/route/app-paths-manifest.json +3 -0
- package/dist/preview/.next/server/app/favicon.ico/route/build-manifest.json +11 -0
- package/dist/preview/.next/server/app/favicon.ico/route.js +6 -1
- package/dist/preview/.next/server/app/favicon.ico/route.js.map +5 -0
- package/dist/preview/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/dist/preview/.next/server/app/page/app-paths-manifest.json +3 -0
- package/dist/preview/.next/server/app/page/build-manifest.json +17 -0
- package/dist/preview/.next/server/app/page/next-font-manifest.json +11 -0
- package/dist/preview/.next/server/app/page/react-loadable-manifest.json +1 -0
- package/dist/preview/.next/server/app/page/server-reference-manifest.json +65 -0
- package/dist/preview/.next/server/app/page.js +17 -133
- package/dist/preview/.next/server/app/page.js.map +5 -0
- package/dist/preview/.next/server/app/page.js.nft.json +1 -1
- package/dist/preview/.next/server/app/page_client-reference-manifest.js +2 -1
- package/dist/preview/.next/server/app-paths-manifest.json +1 -0
- package/dist/preview/.next/server/chunks/[root-of-the-server]__838f166b._.js +21 -0
- package/dist/preview/.next/server/chunks/[root-of-the-server]__838f166b._.js.map +1 -0
- package/dist/preview/.next/server/chunks/[root-of-the-server]__a6d89067._.js +3 -0
- package/dist/preview/.next/server/chunks/[root-of-the-server]__a6d89067._.js.map +1 -0
- package/dist/preview/.next/server/chunks/[turbopack]_runtime.js +770 -0
- package/dist/preview/.next/server/chunks/[turbopack]_runtime.js.map +10 -0
- package/dist/preview/.next/server/chunks/packages_cli__next-internal_server_app_favicon_ico_route_actions_16935a63.js +3 -0
- package/dist/preview/.next/server/chunks/packages_cli__next-internal_server_app_favicon_ico_route_actions_16935a63.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[externals]_node:readline_e1ac3fd6._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/[externals]_node:readline_e1ac3fd6._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__02434b4b._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__02434b4b._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__10e1b9ab._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__10e1b9ab._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__302f9ef2._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__302f9ef2._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__3aaf07ce._.js +29 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__3aaf07ce._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__568fcbd4._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__568fcbd4._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__6583c525._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__6583c525._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__9f74f2d1._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__9f74f2d1._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__a457c799._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__a457c799._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__b9356576._.js +4 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__b9356576._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__e2e728e5._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__e2e728e5._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__e3d1c002._.js +55 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__e3d1c002._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__e874a6e0._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__e874a6e0._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__ff7d2fa8._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/[root-of-the-server]__ff7d2fa8._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/[turbopack]_runtime.js +770 -0
- package/dist/preview/.next/server/chunks/ssr/[turbopack]_runtime.js.map +10 -0
- package/dist/preview/.next/server/chunks/ssr/_5c101821._.js +4 -0
- package/dist/preview/.next/server/chunks/ssr/_5c101821._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/_73703b11._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/_73703b11._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_423e7141._.js +6 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_423e7141._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_11acbe8c._.js +47 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_11acbe8c._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_bd2521b0._.js +47 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_bd2521b0._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_43356b1f._.js +4 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_43356b1f._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_982e7503._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_982e7503._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_client_components_9774470f._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_client_components_9774470f._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_15817684.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_15817684.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_esm_3fe9760a._.js +6 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_esm_3fe9760a._.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_368abded.js +4 -0
- package/dist/preview/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_368abded.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/packages_cli__next-internal_server_app__global-error_page_actions_58b3e447.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/packages_cli__next-internal_server_app__global-error_page_actions_58b3e447.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/packages_cli__next-internal_server_app__not-found_page_actions_9e2ea381.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/packages_cli__next-internal_server_app__not-found_page_actions_9e2ea381.js.map +1 -0
- package/dist/preview/.next/server/chunks/ssr/packages_cli_src_app_9ef401ea._.js +3 -0
- package/dist/preview/.next/server/chunks/ssr/packages_cli_src_app_9ef401ea._.js.map +1 -0
- package/dist/preview/.next/server/middleware-build-manifest.js +21 -1
- package/dist/preview/.next/server/middleware-manifest.json +2 -2
- package/dist/preview/.next/server/next-font-manifest.js +1 -1
- package/dist/preview/.next/server/next-font-manifest.json +15 -1
- package/dist/preview/.next/server/pages/404.html +1 -1
- package/dist/preview/.next/server/pages/500.html +2 -1
- package/dist/preview/.next/server/pages-manifest.json +2 -4
- package/dist/preview/.next/server/server-reference-manifest.js +1 -1
- package/dist/preview/.next/server/server-reference-manifest.json +66 -1
- package/dist/preview/.next/static/chunks/17cd0f75d9eb7ad0.js +26 -0
- package/dist/preview/.next/static/chunks/30d1403f7c74b0a8.css +3 -0
- package/dist/preview/.next/static/chunks/73ff44ecd0b4dad4.js +4 -0
- package/dist/preview/.next/static/chunks/82d7580f2e728405.js +1 -0
- package/dist/preview/.next/static/chunks/bd4ab1517efdc1c3.js +1 -0
- package/dist/preview/.next/static/chunks/cbd55ab9639e1e66.js +1 -0
- package/dist/preview/.next/static/chunks/edda14529ded6063.js +2 -0
- package/dist/preview/.next/static/chunks/turbopack-3a0f146c672debbd.js +3 -0
- package/dist/preview/.next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2 +0 -0
- package/dist/preview/.next/static/media/favicon.5e7f5916.ico +0 -0
- package/dist/preview/.next/static/uJflanlbvalEUDtpddOXj/_buildManifest.js +11 -0
- package/dist/preview/.next/static/uJflanlbvalEUDtpddOXj/_clientMiddlewareManifest.json +1 -0
- package/dist/preview/.next/trace +1 -19
- package/dist/preview/.next/trace-build +1 -0
- package/dist/preview/.next/turbopack +0 -0
- package/dist/preview/.next/types/routes.d.ts +57 -0
- package/dist/preview/.next/types/validator.ts +61 -0
- package/next-env.d.ts +1 -0
- package/next.config.js +1 -16
- package/package.json +22 -31
- package/src/app/layout.tsx +1 -0
- package/src/components/ui/accordion.tsx +1 -1
- package/src/components/ui/form.tsx +1 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/scroll-area.tsx +1 -1
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/tsconfig.json +8 -2
- package/dist/preview/.next/app-build-manifest.json +0 -27
- package/dist/preview/.next/server/chunks/155.js +0 -45
- package/dist/preview/.next/server/chunks/496.js +0 -6
- package/dist/preview/.next/server/chunks/55.js +0 -7
- package/dist/preview/.next/server/chunks/569.js +0 -45
- package/dist/preview/.next/server/chunks/692.js +0 -45
- package/dist/preview/.next/server/chunks/699.js +0 -22
- package/dist/preview/.next/server/middleware-react-loadable-manifest.js +0 -1
- package/dist/preview/.next/server/pages/_app.js +0 -1
- package/dist/preview/.next/server/pages/_app.js.nft.json +0 -1
- package/dist/preview/.next/server/pages/_document.js +0 -1
- package/dist/preview/.next/server/pages/_document.js.nft.json +0 -1
- package/dist/preview/.next/server/pages/_error.js +0 -19
- package/dist/preview/.next/server/pages/_error.js.nft.json +0 -1
- package/dist/preview/.next/server/webpack-runtime.js +0 -1
- package/dist/preview/.next/static/ZvEeNnQCdsowPRhsnLzyQ/_buildManifest.js +0 -1
- package/dist/preview/.next/static/chunks/442-41ca9bf0a86c9fdd.js +0 -22
- package/dist/preview/.next/static/chunks/87c73c54-1f4741035a95c140.js +0 -1
- package/dist/preview/.next/static/chunks/902-a1b735a0b0a65f38.js +0 -1
- package/dist/preview/.next/static/chunks/app/_not-found/page-4d317ef7aff02905.js +0 -1
- package/dist/preview/.next/static/chunks/app/layout-e5f42c1da65f0b8c.js +0 -1
- package/dist/preview/.next/static/chunks/app/page-9a7418754a1a178e.js +0 -1
- package/dist/preview/.next/static/chunks/framework-c638b7ce6a6487b4.js +0 -1
- package/dist/preview/.next/static/chunks/main-app-ef4fe5383916541f.js +0 -1
- package/dist/preview/.next/static/chunks/main-df3bdf5f1b8063cf.js +0 -1
- package/dist/preview/.next/static/chunks/pages/_app-a050a8e6e4fb04cf.js +0 -1
- package/dist/preview/.next/static/chunks/pages/_error-3e422ffd891594de.js +0 -1
- package/dist/preview/.next/static/chunks/webpack-6fd1f9e039b848f1.js +0 -1
- package/dist/preview/.next/static/css/0244da177bae1d09.css +0 -3
- package/dist/preview/.next/static/media/569ce4b8f30dc480-s.p.woff2 +0 -0
- package/dist/preview/.next/types/app/layout.ts +0 -84
- package/dist/preview/.next/types/app/page.ts +0 -84
- package/dist/preview/.next/types/cache-life.d.ts +0 -141
- package/dist/preview/.next/types/package.json +0 -1
- /package/dist/preview/.next/{react-loadable-manifest.json → server/app/_global-error/page/react-loadable-manifest.json} +0 -0
- /package/dist/preview/.next/static/chunks/{polyfills-42372ed130431b0a.js → a6dad97d9634a72d.js} +0 -0
- /package/dist/preview/.next/static/media/{9610d9e46709d722-s.woff2 → 4fa387ec64143e14-s.c1fdd6c2.woff2} +0 -0
- /package/dist/preview/.next/static/media/{ba015fad6dcf6784-s.woff2 → 7178b3e590c64307-s.b97b3418.woff2} +0 -0
- /package/dist/preview/.next/static/media/{93f479601ee12b01-s.p.woff2 → 797e433ab948586e-s.p.dbea232f.woff2} +0 -0
- /package/dist/preview/.next/static/media/{8d697b304b401681-s.woff2 → 8a480f0b521d4e75-s.8e0177b5.woff2} +0 -0
- /package/dist/preview/.next/static/media/{747892c23ea88013-s.woff2 → bbc41e54d2fcbd21-s.799d8ef8.woff2} +0 -0
- /package/dist/preview/.next/static/{ZvEeNnQCdsowPRhsnLzyQ → uJflanlbvalEUDtpddOXj}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"name":"run-turbopack","duration":6811946,"timestamp":126893121,"id":17,"parentId":1,"tags":{},"startTime":1765283798767,"traceId":"3f4f4a0adce09a80"},{"name":"run-typescript","duration":4091435,"timestamp":133714814,"id":19,"parentId":1,"tags":{},"startTime":1765283805589,"traceId":"3f4f4a0adce09a80"},{"name":"static-check","duration":517912,"timestamp":137841837,"id":21,"parentId":1,"tags":{},"startTime":1765283809716,"traceId":"3f4f4a0adce09a80"},{"name":"static-generation","duration":395138,"timestamp":138363825,"id":34,"parentId":1,"tags":{},"startTime":1765283810238,"traceId":"3f4f4a0adce09a80"},{"name":"telemetry-flush","duration":48746,"timestamp":138766497,"id":42,"parentId":1,"tags":{},"startTime":1765283810640,"traceId":"3f4f4a0adce09a80"},{"name":"next-build","duration":12766314,"timestamp":126048943,"id":1,"tags":{"buildMode":"default","version":"16.0.7","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1765283797923,"traceId":"3f4f4a0adce09a80"}]
|
|
File without changes
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// This file is generated automatically by Next.js
|
|
2
|
+
// Do not edit this file manually
|
|
3
|
+
|
|
4
|
+
type AppRoutes = "/"
|
|
5
|
+
type PageRoutes = never
|
|
6
|
+
type LayoutRoutes = "/"
|
|
7
|
+
type RedirectRoutes = never
|
|
8
|
+
type RewriteRoutes = never
|
|
9
|
+
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
interface ParamMap {
|
|
13
|
+
"/": {}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export type ParamsOf<Route extends Routes> = ParamMap[Route]
|
|
18
|
+
|
|
19
|
+
interface LayoutSlotMap {
|
|
20
|
+
"/": never
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export type { AppRoutes, PageRoutes, LayoutRoutes, RedirectRoutes, RewriteRoutes, ParamMap }
|
|
25
|
+
|
|
26
|
+
declare global {
|
|
27
|
+
/**
|
|
28
|
+
* Props for Next.js App Router page components
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* export default function Page(props: PageProps<'/blog/[slug]'>) {
|
|
32
|
+
* const { slug } = await props.params
|
|
33
|
+
* return <div>Blog post: {slug}</div>
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
interface PageProps<AppRoute extends AppRoutes> {
|
|
38
|
+
params: Promise<ParamMap[AppRoute]>
|
|
39
|
+
searchParams: Promise<Record<string, string | string[] | undefined>>
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Props for Next.js App Router layout components
|
|
44
|
+
* @example
|
|
45
|
+
* ```tsx
|
|
46
|
+
* export default function Layout(props: LayoutProps<'/dashboard'>) {
|
|
47
|
+
* return <div>{props.children}</div>
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
type LayoutProps<LayoutRoute extends LayoutRoutes> = {
|
|
52
|
+
params: Promise<ParamMap[LayoutRoute]>
|
|
53
|
+
children: React.ReactNode
|
|
54
|
+
} & {
|
|
55
|
+
[K in LayoutSlotMap[LayoutRoute]]: React.ReactNode
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// This file is generated automatically by Next.js
|
|
2
|
+
// Do not edit this file manually
|
|
3
|
+
// This file validates that all pages and layouts export the correct types
|
|
4
|
+
|
|
5
|
+
import type { AppRoutes, LayoutRoutes, ParamMap } from "./routes.js"
|
|
6
|
+
import type { ResolvingMetadata, ResolvingViewport } from "next/types.js"
|
|
7
|
+
|
|
8
|
+
type AppPageConfig<Route extends AppRoutes = AppRoutes> = {
|
|
9
|
+
default: React.ComponentType<{ params: Promise<ParamMap[Route]> } & any> | ((props: { params: Promise<ParamMap[Route]> } & any) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
|
|
10
|
+
generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
|
|
11
|
+
generateMetadata?: (
|
|
12
|
+
props: { params: Promise<ParamMap[Route]> } & any,
|
|
13
|
+
parent: ResolvingMetadata
|
|
14
|
+
) => Promise<any> | any
|
|
15
|
+
generateViewport?: (
|
|
16
|
+
props: { params: Promise<ParamMap[Route]> } & any,
|
|
17
|
+
parent: ResolvingViewport
|
|
18
|
+
) => Promise<any> | any
|
|
19
|
+
metadata?: any
|
|
20
|
+
viewport?: any
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type LayoutConfig<Route extends LayoutRoutes = LayoutRoutes> = {
|
|
24
|
+
default: React.ComponentType<LayoutProps<Route>> | ((props: LayoutProps<Route>) => React.ReactNode | Promise<React.ReactNode> | never | void | Promise<void>)
|
|
25
|
+
generateStaticParams?: (props: { params: ParamMap[Route] }) => Promise<any[]> | any[]
|
|
26
|
+
generateMetadata?: (
|
|
27
|
+
props: { params: Promise<ParamMap[Route]> } & any,
|
|
28
|
+
parent: ResolvingMetadata
|
|
29
|
+
) => Promise<any> | any
|
|
30
|
+
generateViewport?: (
|
|
31
|
+
props: { params: Promise<ParamMap[Route]> } & any,
|
|
32
|
+
parent: ResolvingViewport
|
|
33
|
+
) => Promise<any> | any
|
|
34
|
+
metadata?: any
|
|
35
|
+
viewport?: any
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
// Validate ../../src/app/page.tsx
|
|
40
|
+
{
|
|
41
|
+
type __IsExpected<Specific extends AppPageConfig<"/">> = Specific
|
|
42
|
+
const handler = {} as typeof import("../../src/app/page.js")
|
|
43
|
+
type __Check = __IsExpected<typeof handler>
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
type __Unused = __Check
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
// Validate ../../src/app/layout.tsx
|
|
55
|
+
{
|
|
56
|
+
type __IsExpected<Specific extends LayoutConfig<"/">> = Specific
|
|
57
|
+
const handler = {} as typeof import("../../src/app/layout.js")
|
|
58
|
+
type __Check = __IsExpected<typeof handler>
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
type __Unused = __Check
|
|
61
|
+
}
|
package/next-env.d.ts
CHANGED
package/next.config.js
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
/** @type {import('next').NextConfig} */
|
|
2
2
|
module.exports = {
|
|
3
|
-
webpack: (
|
|
4
|
-
/** @type {import('webpack').Configuration & { externals: string[] }} */
|
|
5
|
-
config,
|
|
6
|
-
{ isServer },
|
|
7
|
-
) => {
|
|
8
|
-
if (isServer) {
|
|
9
|
-
config.externals.push("esbuild");
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
config.module.rules.push({
|
|
13
|
-
test: /\.svg$/i,
|
|
14
|
-
use: ["@svgr/webpack"],
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
return config;
|
|
18
|
-
},
|
|
19
3
|
turbopack: {
|
|
20
4
|
rules: {
|
|
21
5
|
"*.svg": {
|
|
@@ -24,4 +8,5 @@ module.exports = {
|
|
|
24
8
|
},
|
|
25
9
|
},
|
|
26
10
|
},
|
|
11
|
+
serverExternalPackages: ["esbuild"],
|
|
27
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envin/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "Type-safe env validation with live previews",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"turbostarter",
|
|
@@ -38,13 +38,8 @@
|
|
|
38
38
|
"@babel/parser": "^7.27.0",
|
|
39
39
|
"@babel/traverse": "^7.27.0",
|
|
40
40
|
"@hookform/resolvers": "^5.2.1",
|
|
41
|
-
"@radix-ui/react-
|
|
42
|
-
"
|
|
43
|
-
"@radix-ui/react-scroll-area": "^1.2.6",
|
|
44
|
-
"@radix-ui/react-select": "^2.2.2",
|
|
45
|
-
"@radix-ui/react-slot": "^1.2.3",
|
|
46
|
-
"@radix-ui/react-toggle": "^1.1.6",
|
|
47
|
-
"@radix-ui/react-tooltip": "^1.2.4",
|
|
41
|
+
"@radix-ui/react-slot": "1.2.4",
|
|
42
|
+
"radix-ui": "catalog:",
|
|
48
43
|
"@svgr/webpack": "^8.1.0",
|
|
49
44
|
"chalk": "^5.4.1",
|
|
50
45
|
"chokidar": "^4.0.3",
|
|
@@ -52,45 +47,41 @@
|
|
|
52
47
|
"consola": "^3.4.2",
|
|
53
48
|
"debounce": "^2.2.0",
|
|
54
49
|
"dotenv": "^16.5.0",
|
|
55
|
-
"envin": "1.1.
|
|
56
|
-
"esbuild": "^0.25.
|
|
50
|
+
"envin": "1.1.11",
|
|
51
|
+
"esbuild": "^0.25.10",
|
|
57
52
|
"log-symbols": "^7.0.0",
|
|
58
53
|
"mime-types": "^3.0.1",
|
|
59
|
-
"next": "
|
|
54
|
+
"next": "catalog:",
|
|
60
55
|
"ora": "^8.2.0",
|
|
61
56
|
"react-hook-form": "^7.62.0",
|
|
62
57
|
"socket.io": "^4.8.1",
|
|
63
58
|
"socket.io-client": "^4.8.1",
|
|
64
59
|
"tsconfig-paths": "^4.2.0",
|
|
65
|
-
"zod": "
|
|
60
|
+
"zod": "catalog:"
|
|
66
61
|
},
|
|
67
62
|
"devDependencies": {
|
|
68
63
|
"@babel/core": "7.26.10",
|
|
69
|
-
"@rjsf/core": "^6.0.0-beta.1",
|
|
70
|
-
"@rjsf/shadcn": "^6.0.0-beta.1",
|
|
71
|
-
"@rjsf/utils": "^6.0.0-beta.1",
|
|
72
|
-
"@rjsf/validator-ajv8": "^6.0.0-beta.1",
|
|
73
64
|
"@swc/core": "1.11.21",
|
|
74
|
-
"@tailwindcss/postcss": "
|
|
65
|
+
"@tailwindcss/postcss": "catalog:",
|
|
75
66
|
"@types/babel__core": "7.20.5",
|
|
76
67
|
"@types/babel__traverse": "7.20.7",
|
|
77
68
|
"@types/mime-types": "2.1.4",
|
|
78
|
-
"@types/node": "
|
|
79
|
-
"@types/react": "
|
|
80
|
-
"@types/react-dom": "
|
|
81
|
-
"class-variance-authority": "
|
|
82
|
-
"clsx": "
|
|
83
|
-
"lucide-react": "
|
|
84
|
-
"postcss": "
|
|
85
|
-
"react": "
|
|
86
|
-
"react-dom": "
|
|
69
|
+
"@types/node": "catalog:",
|
|
70
|
+
"@types/react": "catalog:",
|
|
71
|
+
"@types/react-dom": "catalog:",
|
|
72
|
+
"class-variance-authority": "catalog:",
|
|
73
|
+
"clsx": "catalog:",
|
|
74
|
+
"lucide-react": "catalog:",
|
|
75
|
+
"postcss": "catalog:",
|
|
76
|
+
"react": "catalog:",
|
|
77
|
+
"react-dom": "catalog:",
|
|
87
78
|
"source-map-js": "1.2.1",
|
|
88
79
|
"stacktrace-parser": "0.1.11",
|
|
89
|
-
"tailwind-merge": "
|
|
90
|
-
"tailwindcss": "
|
|
91
|
-
"tsup": "
|
|
80
|
+
"tailwind-merge": "catalog:",
|
|
81
|
+
"tailwindcss": "catalog:",
|
|
82
|
+
"tsup": "catalog:",
|
|
92
83
|
"tsx": "^4.19.4",
|
|
93
|
-
"tw-animate-css": "
|
|
94
|
-
"typescript": "
|
|
84
|
+
"tw-animate-css": "catalog:",
|
|
85
|
+
"typescript": "catalog:"
|
|
95
86
|
}
|
|
96
87
|
}
|
package/src/app/layout.tsx
CHANGED
|
@@ -28,6 +28,7 @@ export default function RootLayout({
|
|
|
28
28
|
<html lang="en">
|
|
29
29
|
<body
|
|
30
30
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
|
31
|
+
suppressHydrationWarning
|
|
31
32
|
>
|
|
32
33
|
<div className="flex flex-col h-full gap-4 py-6 px-8">
|
|
33
34
|
<header className="flex items-center gap-3">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4
3
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
4
|
+
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
5
5
|
import type * as React from "react";
|
|
6
6
|
|
|
7
7
|
import { cn } from "@/utils/cn";
|
package/tsconfig.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"declaration": false,
|
|
23
23
|
"declarationMap": false,
|
|
24
24
|
"incremental": false,
|
|
25
|
-
"jsx": "
|
|
25
|
+
"jsx": "react-jsx",
|
|
26
26
|
"lib": ["dom", "dom.iterable", "esnext", "ESNext.AsyncIterable"],
|
|
27
27
|
"noEmit": true,
|
|
28
28
|
"strict": false,
|
|
@@ -35,6 +35,12 @@
|
|
|
35
35
|
"@/*": ["./src/*"]
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
"include": [
|
|
38
|
+
"include": [
|
|
39
|
+
"next-env.d.ts",
|
|
40
|
+
"**/*.ts",
|
|
41
|
+
"**/*.tsx",
|
|
42
|
+
".next/types/**/*.ts",
|
|
43
|
+
".next/dev/types/**/*.ts"
|
|
44
|
+
],
|
|
39
45
|
"exclude": [".next", "dist", "node_modules"]
|
|
40
46
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"pages": {
|
|
3
|
-
"/_not-found/page": [
|
|
4
|
-
"static/chunks/webpack-6fd1f9e039b848f1.js",
|
|
5
|
-
"static/chunks/87c73c54-1f4741035a95c140.js",
|
|
6
|
-
"static/chunks/902-a1b735a0b0a65f38.js",
|
|
7
|
-
"static/chunks/main-app-ef4fe5383916541f.js",
|
|
8
|
-
"static/chunks/app/_not-found/page-4d317ef7aff02905.js"
|
|
9
|
-
],
|
|
10
|
-
"/layout": [
|
|
11
|
-
"static/chunks/webpack-6fd1f9e039b848f1.js",
|
|
12
|
-
"static/chunks/87c73c54-1f4741035a95c140.js",
|
|
13
|
-
"static/chunks/902-a1b735a0b0a65f38.js",
|
|
14
|
-
"static/chunks/main-app-ef4fe5383916541f.js",
|
|
15
|
-
"static/css/0244da177bae1d09.css",
|
|
16
|
-
"static/chunks/app/layout-e5f42c1da65f0b8c.js"
|
|
17
|
-
],
|
|
18
|
-
"/page": [
|
|
19
|
-
"static/chunks/webpack-6fd1f9e039b848f1.js",
|
|
20
|
-
"static/chunks/87c73c54-1f4741035a95c140.js",
|
|
21
|
-
"static/chunks/902-a1b735a0b0a65f38.js",
|
|
22
|
-
"static/chunks/main-app-ef4fe5383916541f.js",
|
|
23
|
-
"static/chunks/442-41ca9bf0a86c9fdd.js",
|
|
24
|
-
"static/chunks/app/page-9a7418754a1a178e.js"
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=155,exports.ids=[155],exports.modules={17155:(a,b,c)=>{c.r(b),c.d(b,{kCancel:()=>af,prompt:()=>ag}),c(57975);var d,e,f,g=c(1708),h=c(80481),i=c(7066),j=function(){if(e)return d;e=1;let a=`\x1b[`,b={to:(b,c)=>c?`${a}${c+1};${b+1}H`:`${a}${b+1}G`,move(b,c){let d="";return b<0?d+=`${a}${-b}D`:b>0&&(d+=`${a}${b}C`),c<0?d+=`${a}${-c}A`:c>0&&(d+=`${a}${c}B`),d},up:(b=1)=>`${a}${b}A`,down:(b=1)=>`${a}${b}B`,forward:(b=1)=>`${a}${b}C`,backward:(b=1)=>`${a}${b}D`,nextLine:(b=1)=>`${a}E`.repeat(b),prevLine:(b=1)=>`${a}F`.repeat(b),left:`${a}G`,hide:`${a}?25l`,show:`${a}?25h`,save:`\x1b7`,restore:`\x1b8`},c={screen:`${a}2J`,up:(b=1)=>`${a}1J`.repeat(b),down:(b=1)=>`${a}J`.repeat(b),line:`${a}2K`,lineEnd:`${a}K`,lineStart:`${a}1K`,lines(a){let c="";for(let d=0;d<a;d++)c+=this.line+(d<a-1?b.up():"");return a&&(c+=b.left),c}};return d={cursor:b,scroll:{up:(b=1)=>`${a}S`.repeat(b),down:(b=1)=>`${a}T`.repeat(b)},erase:c,beep:"\x07"}}(),k={exports:{}};let l=function(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}(function(){if(f)return k.exports;f=1;let a=process||{},b=a.argv||[],c=a.env||{},d=!(c.NO_COLOR||b.includes("--no-color"))&&(!!c.FORCE_COLOR||b.includes("--color")||"win32"===a.platform||(a.stdout||{}).isTTY&&"dumb"!==c.TERM||!!c.CI),e=(a,b,c=a)=>d=>{let e=""+d,f=e.indexOf(b,a.length);return~f?a+g(e,b,c,f)+b:a+e+b},g=(a,b,c,d)=>{let e="",f=0;do e+=a.substring(f,d)+c,f=d+b.length,d=a.indexOf(b,f);while(~d);return e+a.substring(f)},h=(a=d)=>{let b=a?e:()=>String;return{isColorSupported:a,reset:b("\x1b[0m","\x1b[0m"),bold:b("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),dim:b("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),italic:b("\x1b[3m","\x1b[23m"),underline:b("\x1b[4m","\x1b[24m"),inverse:b("\x1b[7m","\x1b[27m"),hidden:b("\x1b[8m","\x1b[28m"),strikethrough:b("\x1b[9m","\x1b[29m"),black:b("\x1b[30m","\x1b[39m"),red:b("\x1b[31m","\x1b[39m"),green:b("\x1b[32m","\x1b[39m"),yellow:b("\x1b[33m","\x1b[39m"),blue:b("\x1b[34m","\x1b[39m"),magenta:b("\x1b[35m","\x1b[39m"),cyan:b("\x1b[36m","\x1b[39m"),white:b("\x1b[37m","\x1b[39m"),gray:b("\x1b[90m","\x1b[39m"),bgBlack:b("\x1b[40m","\x1b[49m"),bgRed:b("\x1b[41m","\x1b[49m"),bgGreen:b("\x1b[42m","\x1b[49m"),bgYellow:b("\x1b[43m","\x1b[49m"),bgBlue:b("\x1b[44m","\x1b[49m"),bgMagenta:b("\x1b[45m","\x1b[49m"),bgCyan:b("\x1b[46m","\x1b[49m"),bgWhite:b("\x1b[47m","\x1b[49m"),blackBright:b("\x1b[90m","\x1b[39m"),redBright:b("\x1b[91m","\x1b[39m"),greenBright:b("\x1b[92m","\x1b[39m"),yellowBright:b("\x1b[93m","\x1b[39m"),blueBright:b("\x1b[94m","\x1b[39m"),magentaBright:b("\x1b[95m","\x1b[39m"),cyanBright:b("\x1b[96m","\x1b[39m"),whiteBright:b("\x1b[97m","\x1b[39m"),bgBlackBright:b("\x1b[100m","\x1b[49m"),bgRedBright:b("\x1b[101m","\x1b[49m"),bgGreenBright:b("\x1b[102m","\x1b[49m"),bgYellowBright:b("\x1b[103m","\x1b[49m"),bgBlueBright:b("\x1b[104m","\x1b[49m"),bgMagentaBright:b("\x1b[105m","\x1b[49m"),bgCyanBright:b("\x1b[106m","\x1b[49m"),bgWhiteBright:b("\x1b[107m","\x1b[49m")}};return k.exports=h(),k.exports.createColors=h,k.exports}()),m=function({onlyFirst:a=!1}={}){return RegExp("[\\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=><~]))",a?void 0:"g")}();function n(a){if("string"!=typeof a)throw TypeError(`Expected a \`string\`, got \`${typeof a}\``);return a.replace(m,"")}function o(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var p={exports:{}};!function(a){var b={};function c(a){return a.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}a.exports=b,b.eastAsianWidth=function(a){var b=a.charCodeAt(0),c=2==a.length?a.charCodeAt(1):0,d=b;return 55296<=b&&b<=56319&&56320<=c&&c<=57343&&(b&=1023,c&=1023,d=(b<<10|c)+65536),12288==d||65281<=d&&d<=65376||65504<=d&&d<=65510?"F":8361==d||65377<=d&&d<=65470||65474<=d&&d<=65479||65482<=d&&d<=65487||65490<=d&&d<=65495||65498<=d&&d<=65500||65512<=d&&d<=65518?"H":4352<=d&&d<=4447||4515<=d&&d<=4519||4602<=d&&d<=4607||9001<=d&&d<=9002||11904<=d&&d<=11929||11931<=d&&d<=12019||12032<=d&&d<=12245||12272<=d&&d<=12283||12289<=d&&d<=12350||12353<=d&&d<=12438||12441<=d&&d<=12543||12549<=d&&d<=12589||12593<=d&&d<=12686||12688<=d&&d<=12730||12736<=d&&d<=12771||12784<=d&&d<=12830||12832<=d&&d<=12871||12880<=d&&d<=13054||13056<=d&&d<=19903||19968<=d&&d<=42124||42128<=d&&d<=42182||43360<=d&&d<=43388||44032<=d&&d<=55203||55216<=d&&d<=55238||55243<=d&&d<=55291||63744<=d&&d<=64255||65040<=d&&d<=65049||65072<=d&&d<=65106||65108<=d&&d<=65126||65128<=d&&d<=65131||110592<=d&&d<=110593||127488<=d&&d<=127490||127504<=d&&d<=127546||127552<=d&&d<=127560||127568<=d&&d<=127569||131072<=d&&d<=194367||177984<=d&&d<=196605||196608<=d&&d<=262141?"W":32<=d&&d<=126||162<=d&&d<=163||165<=d&&d<=166||172==d||175==d||10214<=d&&d<=10221||10629<=d&&d<=10630?"Na":161==d||164==d||167<=d&&d<=168||170==d||173<=d&&d<=174||176<=d&&d<=180||182<=d&&d<=186||188<=d&&d<=191||198==d||208==d||215<=d&&d<=216||222<=d&&d<=225||230==d||232<=d&&d<=234||236<=d&&d<=237||240==d||242<=d&&d<=243||247<=d&&d<=250||252==d||254==d||257==d||273==d||275==d||283==d||294<=d&&d<=295||299==d||305<=d&&d<=307||312==d||319<=d&&d<=322||324==d||328<=d&&d<=331||333==d||338<=d&&d<=339||358<=d&&d<=359||363==d||462==d||464==d||466==d||468==d||470==d||472==d||474==d||476==d||593==d||609==d||708==d||711==d||713<=d&&d<=715||717==d||720==d||728<=d&&d<=731||733==d||735==d||768<=d&&d<=879||913<=d&&d<=929||931<=d&&d<=937||945<=d&&d<=961||963<=d&&d<=969||1025==d||1040<=d&&d<=1103||1105==d||8208==d||8211<=d&&d<=8214||8216<=d&&d<=8217||8220<=d&&d<=8221||8224<=d&&d<=8226||8228<=d&&d<=8231||8240==d||8242<=d&&d<=8243||8245==d||8251==d||8254==d||8308==d||8319==d||8321<=d&&d<=8324||8364==d||8451==d||8453==d||8457==d||8467==d||8470==d||8481<=d&&d<=8482||8486==d||8491==d||8531<=d&&d<=8532||8539<=d&&d<=8542||8544<=d&&d<=8555||8560<=d&&d<=8569||8585==d||8592<=d&&d<=8601||8632<=d&&d<=8633||8658==d||8660==d||8679==d||8704==d||8706<=d&&d<=8707||8711<=d&&d<=8712||8715==d||8719==d||8721==d||8725==d||8730==d||8733<=d&&d<=8736||8739==d||8741==d||8743<=d&&d<=8748||8750==d||8756<=d&&d<=8759||8764<=d&&d<=8765||8776==d||8780==d||8786==d||8800<=d&&d<=8801||8804<=d&&d<=8807||8810<=d&&d<=8811||8814<=d&&d<=8815||8834<=d&&d<=8835||8838<=d&&d<=8839||8853==d||8857==d||8869==d||8895==d||8978==d||9312<=d&&d<=9449||9451<=d&&d<=9547||9552<=d&&d<=9587||9600<=d&&d<=9615||9618<=d&&d<=9621||9632<=d&&d<=9633||9635<=d&&d<=9641||9650<=d&&d<=9651||9654<=d&&d<=9655||9660<=d&&d<=9661||9664<=d&&d<=9665||9670<=d&&d<=9672||9675==d||9678<=d&&d<=9681||9698<=d&&d<=9701||9711==d||9733<=d&&d<=9734||9737==d||9742<=d&&d<=9743||9748<=d&&d<=9749||9756==d||9758==d||9792==d||9794==d||9824<=d&&d<=9825||9827<=d&&d<=9829||9831<=d&&d<=9834||9836<=d&&d<=9837||9839==d||9886<=d&&d<=9887||9918<=d&&d<=9919||9924<=d&&d<=9933||9935<=d&&d<=9953||9955==d||9960<=d&&d<=9983||10045==d||10071==d||10102<=d&&d<=10111||11093<=d&&d<=11097||12872<=d&&d<=12879||57344<=d&&d<=63743||65024<=d&&d<=65039||65533==d||127232<=d&&d<=127242||127248<=d&&d<=127277||127280<=d&&d<=127337||127344<=d&&d<=127386||917760<=d&&d<=917999||983040<=d&&d<=1048573||1048576<=d&&d<=1114109?"A":"N"},b.characterLength=function(a){var b=this.eastAsianWidth(a);return"F"==b||"W"==b||"A"==b?2:1},b.length=function(a){for(var b=c(a),d=0,e=0;e<b.length;e++)d+=this.characterLength(b[e]);return d},b.slice=function(a,d,e){textLen=b.length(a),e=e||1,(d=d||0)<0&&(d=textLen+d),e<0&&(e=textLen+e);for(var f="",g=0,h=c(a),i=0;i<h.length;i++){var j=h[i],k=b.length(j);if(g>=d-(2==k))if(g+k<=e)f+=j;else break;g+=k}return f}}(p);let q=o(p.exports),r=o(function(){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});function s(a,b={}){if("string"!=typeof a||0===a.length||(b={ambiguousIsNarrow:!0,...b},0===(a=n(a)).length))return 0;a=a.replace(r()," ");let c=b.ambiguousIsNarrow?1:2,d=0;for(let b of a){let a=b.codePointAt(0);if(!(a<=31)&&(!(a>=127)||!(a<=159))&&(!(a>=768)||!(a<=879)))switch(q.eastAsianWidth(b)){case"F":case"W":d+=2;break;case"A":d+=c;break;default:d+=1}}return d}let t=(a=0)=>b=>`\x1b[${b+a}m`,u=(a=0)=>b=>`\x1b[${38+a};5;${b}m`,v=(a=0)=>(b,c,d)=>`\x1b[${38+a};2;${b};${c};${d}m`,w={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]}};Object.keys(w.modifier),[...Object.keys(w.color),...Object.keys(w.bgColor)];let x=function(){let a=new Map;for(let[b,c]of Object.entries(w)){for(let[b,d]of Object.entries(c))w[b]={open:`\x1b[${d[0]}m`,close:`\x1b[${d[1]}m`},c[b]=w[b],a.set(d[0],d[1]);Object.defineProperty(w,b,{value:c,enumerable:!1})}return Object.defineProperty(w,"codes",{value:a,enumerable:!1}),w.color.close="\x1b[39m",w.bgColor.close="\x1b[49m",w.color.ansi=t(),w.color.ansi256=u(),w.color.ansi16m=v(),w.bgColor.ansi=t(10),w.bgColor.ansi256=u(10),w.bgColor.ansi16m=v(10),Object.defineProperties(w,{rgbToAnsi256:{value:(a,b,c)=>a===b&&b===c?a<8?16:a>248?231:Math.round((a-8)/247*24)+232:16+36*Math.round(a/255*5)+6*Math.round(b/255*5)+Math.round(c/255*5),enumerable:!1},hexToRgb:{value:a=>{let b=/[a-f\d]{6}|[a-f\d]{3}/i.exec(a.toString(16));if(!b)return[0,0,0];let[c]=b;3===c.length&&(c=[...c].map(a=>a+a).join(""));let d=Number.parseInt(c,16);return[d>>16&255,d>>8&255,255&d]},enumerable:!1},hexToAnsi256:{value:a=>w.rgbToAnsi256(...w.hexToRgb(a)),enumerable:!1},ansi256ToAnsi:{value:a=>{let b,c,d;if(a<8)return 30+a;if(a<16)return 90+(a-8);if(a>=232)c=b=((a-232)*10+8)/255,d=b;else{let e=(a-=16)%36;b=Math.floor(a/36)/5,c=Math.floor(e/6)/5,d=e%6/5}let e=2*Math.max(b,c,d);if(0===e)return 30;let f=30+(Math.round(d)<<2|Math.round(c)<<1|Math.round(b));return 2===e&&(f+=60),f},enumerable:!1},rgbToAnsi:{value:(a,b,c)=>w.ansi256ToAnsi(w.rgbToAnsi256(a,b,c)),enumerable:!1},hexToAnsi:{value:a=>w.ansi256ToAnsi(w.hexToAnsi256(a)),enumerable:!1}}),w}(),y=new Set(["\x1b","\x9b"]),z="]8;;",A=a=>`${y.values().next().value}[${a}m`,B=a=>`${y.values().next().value}${z}${a}\x07`,C=(a,b,c)=>{let d=[...b],e=!1,f=!1,g=s(n(a[a.length-1]));for(let[b,h]of d.entries()){let i=s(h);if(g+i<=c?a[a.length-1]+=h:(a.push(h),g=0),y.has(h)&&(e=!0,f=d.slice(b+1).join("").startsWith(z)),e){f?"\x07"===h&&(e=!1,f=!1):"m"===h&&(e=!1);continue}(g+=i)===c&&b<d.length-1&&(a.push(""),g=0)}!g&&a[a.length-1].length>0&&a.length>1&&(a[a.length-2]+=a.pop())};function D(a,b,c){return String(a).normalize().replace(/\r\n/g,`
|
|
2
|
-
`).split(`
|
|
3
|
-
`).map(a=>((a,b,c={})=>{if(!1!==c.trim&&""===a.trim())return"";let d="",e,f,g=a.split(" ").map(a=>s(a)),h=[""];for(let[d,e]of a.split(" ").entries()){!1!==c.trim&&(h[h.length-1]=h[h.length-1].trimStart());let a=s(h[h.length-1]);if(0!==d&&(a>=b&&(!1===c.wordWrap||!1===c.trim)&&(h.push(""),a=0),(a>0||!1===c.trim)&&(h[h.length-1]+=" ",a++)),c.hard&&g[d]>b){let c=b-a,f=1+Math.floor((g[d]-c-1)/b);Math.floor((g[d]-1)/b)<f&&h.push(""),C(h,e,b);continue}if(a+g[d]>b&&a>0&&g[d]>0){if(!1===c.wordWrap&&a<b){C(h,e,b);continue}h.push("")}if(a+g[d]>b&&!1===c.wordWrap){C(h,e,b);continue}h[h.length-1]+=e}!1!==c.trim&&(h=h.map(a=>(a=>{let b=a.split(" "),c=b.length;for(;c>0&&!(s(b[c-1])>0);)c--;return c===b.length?a:b.slice(0,c).join(" ")+b.slice(c).join("")})(a)));let i=[...h.join(`
|
|
4
|
-
`)];for(let[a,b]of i.entries()){if(d+=b,y.has(b)){let{groups:b}=RegExp(`(?:\\[(?<code>\\d+)m|\\${z}(?<uri>.*)\x07)`).exec(i.slice(a).join(""))||{groups:{}};if(void 0!==b.code){let a=Number.parseFloat(b.code);e=39===a?void 0:a}else void 0!==b.uri&&(f=0===b.uri.length?void 0:b.uri)}let c=x.codes.get(Number(e));i[a+1]===`
|
|
5
|
-
`?(f&&(d+=B("")),e&&c&&(d+=A(c))):b===`
|
|
6
|
-
`&&(e&&c&&(d+=A(e)),f&&(d+=B(f)))}return d})(a,b,c)).join(`
|
|
7
|
-
`)}let E={actions:new Set(["up","down","left","right","space","enter","cancel"]),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]])};globalThis.process.platform.startsWith("win");let F=Symbol("clack:cancel");function G(a,b){a.isTTY&&a.setRawMode(b)}var H=Object.defineProperty,I=(a,b,c)=>(((a,b,c)=>b in a?H(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c)(a,"symbol"!=typeof b?b+"":b,c),c);class J{constructor(a,b=!0){I(this,"input"),I(this,"output"),I(this,"_abortSignal"),I(this,"rl"),I(this,"opts"),I(this,"_render"),I(this,"_track",!1),I(this,"_prevFrame",""),I(this,"_subscribers",new Map),I(this,"_cursor",0),I(this,"state","initial"),I(this,"error",""),I(this,"value");let{input:c=g.stdin,output:d=g.stdout,render:e,signal:f,...h}=a;this.opts=h,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=e.bind(this),this._track=b,this._abortSignal=f,this.input=c,this.output=d}unsubscribe(){this._subscribers.clear()}setSubscriber(a,b){let c=this._subscribers.get(a)??[];c.push(b),this._subscribers.set(a,c)}on(a,b){this.setSubscriber(a,{cb:b})}once(a,b){this.setSubscriber(a,{cb:b,once:!0})}emit(a,...b){let c=this._subscribers.get(a)??[],d=[];for(let a of c)a.cb(...b),a.once&&d.push(()=>c.splice(c.indexOf(a),1));for(let a of d)a()}prompt(){return new Promise((a,b)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),a(F);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let c=new i.WriteStream(0);c._write=(a,b,c)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),c()},this.input.pipe(c),this.rl=h.createInterface({input:this.input,output:c,tabSize:2,prompt:"",escapeCodeTimeout:50}),h.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),void 0!==this.opts.initialValue&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),G(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(j.cursor.show),this.output.off("resize",this.render),G(this.input,!1),a(this.value)}),this.once("cancel",()=>{this.output.write(j.cursor.show),this.output.off("resize",this.render),G(this.input,!1),a(F)})})}onKeypress(a,b){if("error"===this.state&&(this.state="active"),b?.name&&(!this._track&&E.aliases.has(b.name)&&this.emit("cursor",E.aliases.get(b.name)),E.actions.has(b.name)&&this.emit("cursor",b.name)),a&&("y"===a.toLowerCase()||"n"===a.toLowerCase())&&this.emit("confirm","y"===a.toLowerCase())," "===a&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),a&&this.emit("key",a.toLowerCase()),b?.name==="return"){if(this.opts.validate){let a=this.opts.validate(this.value);a&&(this.error=a instanceof Error?a.message:a,this.state="error",this.rl?.write(this.value))}"error"!==this.state&&(this.state="submit")}(function a(b,c){if("string"==typeof b)return E.aliases.get(b)===c;for(let d of b)if(void 0!==d&&a(d,c))return!0;return!1})([a,b?.name,b?.sequence],"cancel")&&(this.state="cancel"),("submit"===this.state||"cancel"===this.state)&&this.emit("finalize"),this.render(),("submit"===this.state||"cancel"===this.state)&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
|
|
8
|
-
`),G(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let a=D(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
|
|
9
|
-
`).length-1;this.output.write(j.cursor.move(-999,-1*a))}render(){let a=D(this._render(this)??"",process.stdout.columns,{hard:!0});if(a!==this._prevFrame){if("initial"===this.state)this.output.write(j.cursor.hide);else{let b=function(a,b){if(a===b)return;let c=a.split(`
|
|
10
|
-
`),d=b.split(`
|
|
11
|
-
`),e=[];for(let a=0;a<Math.max(c.length,d.length);a++)c[a]!==d[a]&&e.push(a);return e}(this._prevFrame,a);if(this.restoreCursor(),b&&b?.length===1){let c=b[0];this.output.write(j.cursor.move(0,c)),this.output.write(j.erase.lines(1));let d=a.split(`
|
|
12
|
-
`);this.output.write(d[c]),this._prevFrame=a,this.output.write(j.cursor.move(0,d.length-c-1));return}if(b&&b?.length>1){let c=b[0];this.output.write(j.cursor.move(0,c)),this.output.write(j.erase.down());let d=a.split(`
|
|
13
|
-
`).slice(c);this.output.write(d.join(`
|
|
14
|
-
`)),this._prevFrame=a;return}this.output.write(j.erase.down())}this.output.write(a),"initial"===this.state&&(this.state="active"),this._prevFrame=a}}}class K extends J{get cursor(){return+!this.value}get _value(){return 0===this.cursor}constructor(a){super(a,!1),this.value=!!a.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",a=>{this.output.write(j.cursor.move(0,-1)),this.value=a,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}var L=Object.defineProperty,M=(a,b,c)=>(((a,b,c)=>b in a?L(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c)(a,"symbol"!=typeof b?b+"":b,c),c);let N=class extends J{constructor(a){super(a,!1),M(this,"options"),M(this,"cursor",0),this.options=a.options,this.value=[...a.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:b})=>b===a.cursorAt),0),this.on("key",a=>{"a"===a&&this.toggleAll()}),this.on("cursor",a=>{switch(a){case"left":case"up":this.cursor=0===this.cursor?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue()}})}get _value(){return this.options[this.cursor].value}toggleAll(){let a=this.value.length===this.options.length;this.value=a?[]:this.options.map(a=>a.value)}toggleValue(){let a=this.value.includes(this._value);this.value=a?this.value.filter(a=>a!==this._value):[...this.value,this._value]}};var O=Object.defineProperty,P=(a,b,c)=>(((a,b,c)=>b in a?O(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c)(a,"symbol"!=typeof b?b+"":b,c),c);class Q extends J{constructor(a){super(a,!1),P(this,"options"),P(this,"cursor",0),this.options=a.options,this.cursor=this.options.findIndex(({value:b})=>b===a.initialValue),-1===this.cursor&&(this.cursor=0),this.changeValue(),this.on("cursor",a=>{switch(a){case"left":case"up":this.cursor=0===this.cursor?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}}class R extends J{get valueWithCursor(){if("submit"===this.state)return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let a=this.value.slice(0,this.cursor),[b,...c]=this.value.slice(this.cursor);return`${a}${l.inverse(b)}${c.join("")}`}get cursor(){return this._cursor}constructor(a){super(a),this.on("finalize",()=>{this.value||(this.value=a.defaultValue)})}}let S="win32"!==g.platform?"linux"!==g.env.TERM:!!g.env.CI||!!g.env.WT_SESSION||!!g.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===g.env.ConEmuTask||"Terminus-Sublime"===g.env.TERM_PROGRAM||"vscode"===g.env.TERM_PROGRAM||"xterm-256color"===g.env.TERM||"alacritty"===g.env.TERM||"JetBrains-JediTerm"===g.env.TERMINAL_EMULATOR,T=(a,b)=>S?a:b,U=T("❯",">"),V=T("■","x"),W=T("▲","x"),X=T("✔","√"),Y=T(""),Z=T(""),$=T("●",">"),_=T("○"," "),aa=T("◻","[•]"),ab=T("◼","[+]"),ac=T("◻","[ ]"),ad=a=>{switch(a){case"initial":case"active":return l.cyan(U);case"cancel":return l.red(V);case"error":return l.yellow(W);case"submit":return l.green(X)}},ae=a=>{let{cursor:b,options:c,style:d}=a,e=a.maxItems??1/0,f=Math.min(Math.max(process.stdout.rows-4,0),Math.max(e,5)),g=0;b>=0+f-3?g=Math.max(Math.min(b-f+3,c.length-f),0):b<g+2&&(g=Math.max(b-2,0));let h=f<c.length&&g>0,i=f<c.length&&g+f<c.length;return c.slice(g,g+f).map((a,c,e)=>{let f=c===e.length-1&&i;return 0===c&&h||f?l.dim("..."):d(a,c+g===b)})};l.gray(Y);let af=Symbol.for("cancel");async function ag(a,b={}){let c=a=>{if("symbol"!=typeof a||"Symbol(clack:cancel)"!==a.toString())return a;switch(b.cancel){case"reject":{let a=Error("Prompt cancelled.");throw a.name="ConsolaPromptCancelledError",Error.captureStackTrace&&Error.captureStackTrace(a,ag),a}case"undefined":return;case"null":return null;case"symbol":return af;default:return b.default??b.initial}};if(!b.type||"text"===b.type){let d;return await new R({validate:(d={message:a,defaultValue:b.default,placeholder:b.placeholder,initialValue:b.initial}).validate,placeholder:d.placeholder,defaultValue:d.defaultValue,initialValue:d.initialValue,render(){let a=`${l.gray(Y)}
|
|
15
|
-
${ad(this.state)} ${d.message}
|
|
16
|
-
`,b=d.placeholder?l.inverse(d.placeholder[0])+l.dim(d.placeholder.slice(1)):l.inverse(l.hidden("_")),c=this.value?this.valueWithCursor:b;switch(this.state){case"error":return`${a.trim()}
|
|
17
|
-
${l.yellow(Y)} ${c}
|
|
18
|
-
${l.yellow(Z)} ${l.yellow(this.error)}
|
|
19
|
-
`;case"submit":return`${a}${l.gray(Y)} ${l.dim(this.value||d.placeholder)}`;case"cancel":return`${a}${l.gray(Y)} ${l.strikethrough(l.dim(this.value??""))}${this.value?.trim()?`
|
|
20
|
-
${l.gray(Y)}`:""}`;default:return`${a}${l.cyan(Y)} ${c}
|
|
21
|
-
${l.cyan(Z)}
|
|
22
|
-
`}}}).prompt().then(c)}if("confirm"===b.type)return await (a=>{let b=a.active??"Yes",c=a.inactive??"No";return new K({active:b,inactive:c,initialValue:a.initialValue??!0,render(){let d=`${l.gray(Y)}
|
|
23
|
-
${ad(this.state)} ${a.message}
|
|
24
|
-
`,e=this.value?b:c;switch(this.state){case"submit":return`${d}${l.gray(Y)} ${l.dim(e)}`;case"cancel":return`${d}${l.gray(Y)} ${l.strikethrough(l.dim(e))}
|
|
25
|
-
${l.gray(Y)}`;default:return`${d}${l.cyan(Y)} ${this.value?`${l.green($)} ${b}`:`${l.dim(_)} ${l.dim(b)}`} ${l.dim("/")} ${this.value?`${l.dim(_)} ${l.dim(c)}`:`${l.green($)} ${c}`}
|
|
26
|
-
${l.cyan(Z)}
|
|
27
|
-
`}}}).prompt()})({message:a,initialValue:b.initial}).then(c);if("select"===b.type)return await (a=>{let b=(a,b)=>{let c=a.label??String(a.value);switch(b){case"selected":return`${l.dim(c)}`;case"active":return`${l.green($)} ${c} ${a.hint?l.dim(`(${a.hint})`):""}`;case"cancelled":return`${l.strikethrough(l.dim(c))}`;default:return`${l.dim(_)} ${l.dim(c)}`}};return new Q({options:a.options,initialValue:a.initialValue,render(){let c=`${l.gray(Y)}
|
|
28
|
-
${ad(this.state)} ${a.message}
|
|
29
|
-
`;switch(this.state){case"submit":return`${c}${l.gray(Y)} ${b(this.options[this.cursor],"selected")}`;case"cancel":return`${c}${l.gray(Y)} ${b(this.options[this.cursor],"cancelled")}
|
|
30
|
-
${l.gray(Y)}`;default:return`${c}${l.cyan(Y)} ${ae({cursor:this.cursor,options:this.options,maxItems:a.maxItems,style:(a,c)=>b(a,c?"active":"inactive")}).join(`
|
|
31
|
-
${l.cyan(Y)} `)}
|
|
32
|
-
${l.cyan(Z)}
|
|
33
|
-
`}}}).prompt()})({message:a,options:b.options.map(a=>"string"==typeof a?{value:a,label:a}:a),initialValue:b.initial}).then(c);if("multiselect"===b.type)return await (a=>{let b=(a,b)=>{let c=a.label??String(a.value);return"active"===b?`${l.cyan(aa)} ${c} ${a.hint?l.dim(`(${a.hint})`):""}`:"selected"===b?`${l.green(ab)} ${l.dim(c)}`:"cancelled"===b?`${l.strikethrough(l.dim(c))}`:"active-selected"===b?`${l.green(ab)} ${c} ${a.hint?l.dim(`(${a.hint})`):""}`:"submitted"===b?`${l.dim(c)}`:`${l.dim(ac)} ${l.dim(c)}`};return new N({options:a.options,initialValues:a.initialValues,required:a.required??!0,cursorAt:a.cursorAt,validate(a){if(this.required&&0===a.length)return`Please select at least one option.
|
|
34
|
-
${l.reset(l.dim(`Press ${l.gray(l.bgWhite(l.inverse(" space ")))} to select, ${l.gray(l.bgWhite(l.inverse(" enter ")))} to submit`))}`},render(){let c=`${l.gray(Y)}
|
|
35
|
-
${ad(this.state)} ${a.message}
|
|
36
|
-
`,d=(a,c)=>{let d=this.value.includes(a.value);return c&&d?b(a,"active-selected"):d?b(a,"selected"):b(a,c?"active":"inactive")};switch(this.state){case"submit":return`${c}${l.gray(Y)} ${this.options.filter(({value:a})=>this.value.includes(a)).map(a=>b(a,"submitted")).join(l.dim(", "))||l.dim("none")}`;case"cancel":{let a=this.options.filter(({value:a})=>this.value.includes(a)).map(a=>b(a,"cancelled")).join(l.dim(", "));return`${c}${l.gray(Y)} ${a.trim()?`${a}
|
|
37
|
-
${l.gray(Y)}`:""}`}case"error":{let b=this.error.split(`
|
|
38
|
-
`).map((a,b)=>0===b?`${l.yellow(Z)} ${l.yellow(a)}`:` ${a}`).join(`
|
|
39
|
-
`);return`${c+l.yellow(Y)} ${ae({options:this.options,cursor:this.cursor,maxItems:a.maxItems,style:d}).join(`
|
|
40
|
-
${l.yellow(Y)} `)}
|
|
41
|
-
${b}
|
|
42
|
-
`}default:return`${c}${l.cyan(Y)} ${ae({options:this.options,cursor:this.cursor,maxItems:a.maxItems,style:d}).join(`
|
|
43
|
-
${l.cyan(Y)} `)}
|
|
44
|
-
${l.cyan(Z)}
|
|
45
|
-
`}}}).prompt()})({message:a,options:b.options.map(a=>"string"==typeof a?{value:a,label:a}:a),required:b.required,initialValues:b.initial}).then(c);throw Error(`Unknown prompt type: ${b.type}`)}}};
|