dev3000 0.0.95 → 0.0.97
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/dist/dev-environment.d.ts +1 -0
- package/dist/dev-environment.d.ts.map +1 -1
- package/dist/dev-environment.js +32 -16
- package/dist/dev-environment.js.map +1 -1
- package/mcp-server/.next/BUILD_ID +1 -1
- package/mcp-server/.next/build-manifest.json +2 -2
- package/mcp-server/.next/fallback-build-manifest.json +2 -2
- package/mcp-server/.next/next-server.js.nft.json +1 -1
- package/mcp-server/.next/prerender-manifest.json +3 -3
- package/mcp-server/.next/required-server-files.json +3 -3
- package/mcp-server/.next/server/app/_global-error.html +2 -2
- package/mcp-server/.next/server/app/_global-error.rsc +1 -1
- package/mcp-server/.next/server/app/_not-found.html +1 -1
- package/mcp-server/.next/server/app/_not-found.rsc +1 -1
- package/mcp-server/.next/server/app/index.html +1 -1
- package/mcp-server/.next/server/app/index.rsc +2 -2
- package/mcp-server/.next/server/app/logs/page_client-reference-manifest.js +1 -1
- package/mcp-server/.next/server/app/page_client-reference-manifest.js +1 -1
- package/mcp-server/.next/server/app/video/[session]/page_client-reference-manifest.js +1 -1
- package/mcp-server/.next/server/server-reference-manifest.js +1 -1
- package/mcp-server/.next/server/server-reference-manifest.json +1 -1
- package/mcp-server/.next/static/chunks/02f9434392c7ca30.js +1 -0
- package/mcp-server/.next/static/chunks/189ddffb3a8cbfbd.js +1 -0
- package/mcp-server/.next/static/chunks/98f7307a4a4d67d3.js +1 -0
- package/mcp-server/.next/static/chunks/a0ba80c585f94c7d.js +1 -0
- package/mcp-server/.next/static/chunks/b5c56c55f894681d.js +1 -0
- package/mcp-server/next.config.mjs +2 -5
- package/mcp-server/tsconfig.json +1 -1
- package/package.json +4 -4
- package/mcp-server/.next/static/chunks/312a4c1c7f6436ef.js +0 -1
- package/mcp-server/.next/static/chunks/4b6eda65c6f5aada.js +0 -1
- package/mcp-server/.next/static/chunks/a42830291751fe48.js +0 -1
- package/mcp-server/.next/static/chunks/c578923146856601.js +0 -1
- package/mcp-server/.next/static/chunks/f08166f7946c2e06.js +0 -1
- /package/mcp-server/.next/static/{-TtqAPrTs-tn08AeRdCVu → iHaJzn8QVjhj88-nJSwHJ}/_buildManifest.js +0 -0
- /package/mcp-server/.next/static/{-TtqAPrTs-tn08AeRdCVu → iHaJzn8QVjhj88-nJSwHJ}/_clientMiddlewareManifest.json +0 -0
- /package/mcp-server/.next/static/{-TtqAPrTs-tn08AeRdCVu → iHaJzn8QVjhj88-nJSwHJ}/_ssgManifest.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/video/[session]/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":64953,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/layout-router.js":{"id":64953,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":3695,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3695,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":1605,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-page.js":{"id":1605,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":4980,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4980,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":98946,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":98946,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":86958,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86958,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/metadata/async-metadata.js <module evaluation>":{"id":49261,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":49261,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":17204,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":17204,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":34938,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/builtin/global-error.js":{"id":34938,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/mcp-server/app/video/[session]/page.tsx <module evaluation>":{"id":88659,"name":"*","chunks":["/_next/static/chunks/
|
|
2
|
+
globalThis.__RSC_MANIFEST["/video/[session]/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":64953,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/layout-router.js":{"id":64953,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":3695,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3695,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":1605,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-page.js":{"id":1605,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":4980,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4980,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":98946,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":98946,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":86958,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86958,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/metadata/async-metadata.js <module evaluation>":{"id":49261,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":49261,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":17204,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":17204,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":34938,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/builtin/global-error.js":{"id":34938,"name":"*","chunks":["/_next/static/chunks/711519b5a2e53fc8.js","/_next/static/chunks/addab50e23821c6c.js"],"async":false},"[project]/mcp-server/app/video/[session]/page.tsx <module evaluation>":{"id":88659,"name":"*","chunks":["/_next/static/chunks/b5c56c55f894681d.js"],"async":false},"[project]/mcp-server/app/video/[session]/page.tsx":{"id":88659,"name":"*","chunks":["/_next/static/chunks/b5c56c55f894681d.js"],"async":false}},"ssrModuleMapping":{"64953":{"*":{"id":16231,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__aed64cd3._.js","server/chunks/ssr/d1d76_next_dist_b9509b36._.js"],"async":false}},"3695":{"*":{"id":52397,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__aed64cd3._.js","server/chunks/ssr/d1d76_next_dist_b9509b36._.js"],"async":false}},"1605":{"*":{"id":54505,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__aed64cd3._.js","server/chunks/ssr/d1d76_next_dist_b9509b36._.js"],"async":false}},"4980":{"*":{"id":35112,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__aed64cd3._.js","server/chunks/ssr/d1d76_next_dist_b9509b36._.js"],"async":false}},"98946":{"*":{"id":15274,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__aed64cd3._.js","server/chunks/ssr/d1d76_next_dist_b9509b36._.js"],"async":false}},"86958":{"*":{"id":57953,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__aed64cd3._.js","server/chunks/ssr/d1d76_next_dist_b9509b36._.js"],"async":false}},"49261":{"*":{"id":20632,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__aed64cd3._.js","server/chunks/ssr/d1d76_next_dist_b9509b36._.js"],"async":false}},"17204":{"*":{"id":11549,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__aed64cd3._.js","server/chunks/ssr/d1d76_next_dist_b9509b36._.js"],"async":false}},"34938":{"*":{"id":9535,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__aed64cd3._.js","server/chunks/ssr/d1d76_next_dist_b9509b36._.js"],"async":false}},"88659":{"*":{"id":87576,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__a4bb31a6._.js","server/chunks/ssr/node_modules__pnpm_3d10aa72._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"64953":{"*":{"id":6001,"name":"*","chunks":[],"async":false}},"3695":{"*":{"id":79954,"name":"*","chunks":[],"async":false}},"1605":{"*":{"id":92852,"name":"*","chunks":[],"async":false}},"4980":{"*":{"id":13588,"name":"*","chunks":[],"async":false}},"98946":{"*":{"id":19008,"name":"*","chunks":[],"async":false}},"86958":{"*":{"id":15316,"name":"*","chunks":[],"async":false}},"49261":{"*":{"id":44860,"name":"*","chunks":[],"async":false}},"17204":{"*":{"id":33635,"name":"*","chunks":[],"async":false}},"34938":{"*":{"id":25469,"name":"*","chunks":[],"async":false}},"88659":{"*":{"id":19348,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/mcp-server/app/layout":[{"path":"static/chunks/bb2e6ac36794beea.css","inlined":false}],"[project]/mcp-server/app/video/[session]/page":[{"path":"static/chunks/bb2e6ac36794beea.css","inlined":false}]},"entryJSFiles":{"[project]/node_modules/.pnpm/next@15.6.0-canary.31_babel-plugin-react-compiler@19.1.0-rc.3_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/711519b5a2e53fc8.js","static/chunks/addab50e23821c6c.js"],"[project]/mcp-server/app/layout":[],"[project]/mcp-server/app/video/[session]/page":["static/chunks/b5c56c55f894681d.js"]}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"ilG5T/AQe79fL/hhSUGQvI3fvJNt+BSr1UD3y+5BavQ=\"\n}"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41449,e=>{"use strict";var s=e.i(68029),t=e.i(54610),r=e.i(72938),l=e.i(68860);function a(e){let{className:s}=e,l=(0,r.useId)(),a=(0,r.useId)(),n=(0,r.useId)(),d=(0,r.useId)(),c=(0,r.useId)(),o=(0,r.useId)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("svg",{"aria-label":"Next.js logomark",className:"".concat(s," block dark:hidden"),height:"16",role:"img",viewBox:"0 0 180 180",width:"16",children:[(0,t.jsx)("mask",{height:"180",id:l,maskUnits:"userSpaceOnUse",width:"180",x:"0",y:"0",style:{maskType:"alpha"},children:(0,t.jsx)("circle",{cx:"90",cy:"90",fill:"black",r:"90"})}),(0,t.jsxs)("g",{mask:"url(#".concat(l,")"),children:[(0,t.jsx)("circle",{cx:"90",cy:"90",fill:"black",r:"90"}),(0,t.jsx)("path",{d:"M149.508 157.52L69.142 54H54V125.97H66.1136V69.3836L139.999 164.845C143.333 162.614 146.509 160.165 149.508 157.52Z",fill:"url(#".concat(a,")")}),(0,t.jsx)("rect",{fill:"url(#".concat(n,")"),height:"72",width:"12",x:"115",y:"54"})]}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:a,x1:"109",x2:"144.5",y1:"116.5",y2:"160.5",children:[(0,t.jsx)("stop",{stopColor:"white"}),(0,t.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,t.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:n,x1:"121",x2:"120.799",y1:"54",y2:"106.875",children:[(0,t.jsx)("stop",{stopColor:"white"}),(0,t.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]})]})]}),(0,t.jsxs)("svg",{"aria-label":"Next.js logomark",className:"".concat(s," hidden dark:block"),height:"16",role:"img",viewBox:"0 0 180 180",width:"16",children:[(0,t.jsx)("mask",{height:"180",id:d,maskUnits:"userSpaceOnUse",width:"180",x:"0",y:"0",style:{maskType:"alpha"},children:(0,t.jsx)("circle",{cx:"90",cy:"90",fill:"black",r:"90"})}),(0,t.jsxs)("g",{mask:"url(#".concat(d,")"),children:[(0,t.jsx)("circle",{cx:"90",cy:"90",fill:"white",r:"90"}),(0,t.jsx)("path",{d:"M149.508 157.52L69.142 54H54V125.97H66.1136V69.3836L139.999 164.845C143.333 162.614 146.509 160.165 149.508 157.52Z",fill:"url(#".concat(c,")")}),(0,t.jsx)("rect",{fill:"url(#".concat(o,")"),height:"72",width:"12",x:"115",y:"54"})]}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:c,x1:"109",x2:"144.5",y1:"116.5",y2:"160.5",children:[(0,t.jsx)("stop",{stopColor:"black"}),(0,t.jsx)("stop",{offset:"1",stopColor:"black",stopOpacity:"0"})]}),(0,t.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:o,x1:"121",x2:"120.799",y1:"54",y2:"106.875",children:[(0,t.jsx)("stop",{stopColor:"black"}),(0,t.jsx)("stop",{offset:"1",stopColor:"black",stopOpacity:"0"})]})]})]})]})}function n(e){let{className:s}=e,l=(0,r.useId)(),a=(0,r.useId)(),n=(0,r.useId)();return(0,t.jsxs)("svg",{className:s,viewBox:"0 0 48 48",height:"16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:l,x1:"3.2173",y1:"15",x2:"44.7812",y2:"15",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#d93025"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#ea4335"})]}),(0,t.jsxs)("linearGradient",{id:a,x1:"20.7219",y1:"47.6791",x2:"41.5039",y2:"11.6837",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#fcc934"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#fbbc04"})]}),(0,t.jsxs)("linearGradient",{id:n,x1:"26.5981",y1:"46.5015",x2:"5.8161",y2:"10.506",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#1e8e3e"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#34a853"})]})]}),(0,t.jsx)("circle",{cx:"24",cy:"23.9947",r:"12",style:{fill:"#fff"}}),(0,t.jsx)("path",{d:"M3.2154,36A24,24,0,1,0,12,3.2154,24,24,0,0,0,3.2154,36ZM34.3923,18A12,12,0,1,1,18,13.6077,12,12,0,0,1,34.3923,18Z",style:{fill:"none"}}),(0,t.jsx)("path",{d:"M24,12H44.7812a23.9939,23.9939,0,0,0-41.5639.0029L13.6079,30l.0093-.0024A11.9852,11.9852,0,0,1,24,12Z",style:{fill:"url(#".concat(l,")")}}),(0,t.jsx)("circle",{cx:"24",cy:"24",r:"9.5",style:{fill:"#1a73e8"}}),(0,t.jsx)("path",{d:"M34.3913,30.0029,24.0007,48A23.994,23.994,0,0,0,44.78,12.0031H23.9989l-.0025.0093A11.985,11.985,0,0,1,34.3913,30.0029Z",style:{fill:"url(#".concat(a,")")}}),(0,t.jsx)("path",{d:"M13.6086,30.0031,3.218,12.006A23.994,23.994,0,0,0,24.0025,48L34.3931,30.0029l-.0067-.0068a11.9852,11.9852,0,0,1-20.7778.007Z",style:{fill:"url(#".concat(n,")")}})]})}var d=e.i(54768);function c(){let[e,c]=(0,r.useState)(null),[o,i]=(0,r.useState)(null),[x,m]=(0,r.useState)(!0),[h,u]=(0,d.useDarkMode)();return(0,r.useEffect)(()=>{Promise.all([fetch("/api/tools"),fetch("/api/orchestrator")]).then(e=>{let[s,t]=e;return Promise.all([s.json(),t.json()])}).then(e=>{let[s,t]=e;c(s),i(t),m(!1)}).catch(()=>{m(!1)})},[]),(0,t.jsxs)("div",{className:"min-h-screen bg-background text-foreground",children:[(0,t.jsx)("header",{className:"bg-muted/30 border-b border-border",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-6 py-8",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-3",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-foreground rounded flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-background font-mono font-bold",children:"d3k"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-3xl font-bold",children:"dev3000 MCP Server"}),(0,t.jsxs)("div",{className:"flex items-center gap-3 mt-2",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 text-sm text-green-600 font-medium",children:[(0,t.jsx)("span",{className:"w-2 h-2 bg-green-500 rounded-full"}),"Server Running"]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"•"}),(0,t.jsxs)("span",{className:"text-sm text-muted-foreground",children:["Port ",s.default.env.PORT||"3684"]})]})]})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("a",{href:"https://github.com/vercel-labs/dev3000#setup",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-3 border border-border text-foreground text-sm font-medium rounded hover:bg-accent hover:text-accent-foreground transition-colors",children:"📖 Setup Guide"}),(0,t.jsx)(l.DarkModeToggle,{darkMode:h,setDarkMode:u})]})]})})}),(0,t.jsxs)("main",{className:"max-w-7xl mx-auto px-6 py-8",children:[!x&&o&&(0,t.jsx)("section",{className:"mb-16",children:(0,t.jsxs)("div",{className:"bg-accent/10 border border-accent/20 rounded p-8",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold mb-4",children:"🔌 MCP Connections"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:o.message}),o.totalConnections>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex flex-wrap gap-3 mb-4",children:o.mcpDetails.map(e=>{let s="chrome-devtools"===e.name?n:"nextjs-dev"===e.name?a:null;return(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 bg-background/50 border border-border rounded px-3 py-2",children:[s&&(0,t.jsx)(s,{className:"shrink-0"}),(0,t.jsx)("span",{className:"font-semibold font-mono text-sm",children:e.name}),(0,t.jsx)("span",{className:"w-2 h-2 bg-green-500 rounded-full"})]},e.name)})}),o.totalProjects>0&&(0,t.jsxs)("div",{className:"text-sm text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium",children:"Active projects:"})," ",o.projects.map((e,s)=>(0,t.jsxs)("span",{children:[(0,t.jsx)("code",{className:"text-foreground bg-background/50 px-1.5 py-0.5 rounded",children:e}),s<o.projects.length-1&&", "]},e))]})]}):(0,t.jsxs)("div",{className:"text-sm text-muted-foreground bg-background/50 border border-border rounded p-4",children:[(0,t.jsx)("p",{className:"mb-2",children:"⏳ Waiting for downstream MCPs to become available..."}),(0,t.jsxs)("p",{className:"text-xs",children:["dev3000 will automatically connect to ",(0,t.jsx)("code",{className:"text-foreground",children:"chrome-devtools"})," and"," ",(0,t.jsx)("code",{className:"text-foreground",children:"nextjs-dev"})," MCPs when Chrome and your dev server start."]})]})]})}),(0,t.jsxs)("section",{className:"bg-accent/10 border border-accent/20 rounded p-8",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold mb-4",children:"🛠️ dev3000 Tools"}),x?(0,t.jsxs)("div",{className:"text-center py-16",children:[(0,t.jsx)("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-primary"}),(0,t.jsx)("p",{className:"mt-6 text-muted-foreground",children:"Loading tool documentation..."})]}):e?(0,t.jsx)("div",{className:"grid gap-6 lg:grid-cols-2",children:e.tools.map(e=>(0,t.jsxs)("div",{id:e.name,className:"bg-background/50 border border-border rounded-lg p-6 hover:border-muted-foreground/50 transition-colors",children:[(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h4",{className:"text-xl font-semibold font-mono mb-3",children:e.name}),(0,t.jsx)("div",{className:"text-muted-foreground space-y-3",children:function(e){let s=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""),r=e.split("\n\n").filter(e=>e.trim()),l=new Map,a=e=>{var s;let t=null!=(s=l.get(e))?s:0;return l.set(e,t+1),0===t?e:"".concat(e,"-").concat(t)};return r.map((e,r)=>{let l=a(s(e)||"section"),n=e;if((n=(n=n.replace(/\*\*/g,"").trim()).replace(/(\u{1F300}-\u{1F9FF}|\u{2600}-\u{26FF}|\u{1F900}-\u{1F9FF})+/gu,e=>e.charAt(0))).includes(":")){let[e,...r]=n.split(":"),d=e.trim(),c=r.join(":").trim();if(c.includes("•")){let e=c.split("•").filter(e=>e.trim()),r="".concat(l,"-bullets");return(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"font-semibold mb-2",children:d}),(0,t.jsx)("ul",{className:"space-y-1 ml-4",children:e.map(e=>{let l=a("".concat(r,"-item-").concat(s(e).slice(0,40)||"bullet"));return(0,t.jsxs)("li",{className:"flex items-start",children:[(0,t.jsx)("span",{className:"text-muted-foreground mr-2",children:"•"}),(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:e.trim()})]},l)})})]},r)}return(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"font-semibold mb-1",children:d}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm ml-4",children:c})]},"".concat(l,"-content"))}if(n.match(/^\d+[\ud83c-\ud83e][\udc00-\udfff]|^\d+\./m)){let e=n.split(/\n/).filter(e=>e.trim());return(0,t.jsx)("ol",{className:"space-y-1 ml-4",children:e.map((e,r)=>{let n=e.replace(/^\d+[\ud83c-\ud83e][\udc00-\udfff]\s*/,"").replace(/^\d+\.\s*/,"").trim();return(0,t.jsxs)("li",{className:"text-muted-foreground text-sm",children:[r+1,". ",n]},a("".concat(l,"-step-").concat(s(n).slice(0,40)||"step")))})},"".concat(l,"-steps"))}return(0,t.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:n},"".concat(l,"-paragraph"))})}(e.description)})]}),e.parameters.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"text-sm font-semibold mb-3",children:"Parameters:"}),(0,t.jsx)("div",{className:"space-y-2",children:e.parameters.map(e=>(0,t.jsxs)("div",{className:"text-sm",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-primary font-medium",children:e.name}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:e.optional?"(optional)":"(required)"}),(0,t.jsxs)("span",{className:"text-muted-foreground/70 text-xs",children:["- ",e.type]})]}),e.description&&(0,t.jsx)("div",{className:"text-muted-foreground ml-1 mt-1 text-sm",children:e.description})]},e.name))})]})]},e.name))}):(0,t.jsxs)("div",{className:"text-center py-16",children:[(0,t.jsx)("p",{className:"text-destructive mb-6",children:"Failed to load tool documentation"}),(0,t.jsx)("button",{onClick:()=>window.location.reload(),className:"px-6 py-3 bg-primary text-primary-foreground text-sm rounded hover:bg-primary/90 transition-colors",type:"button",children:"Retry"})]})]}),(0,t.jsxs)("section",{className:"mt-20 bg-gradient-to-r from-primary/10 to-secondary/10 border border-border rounded-lg p-10",children:[(0,t.jsx)("h2",{className:"text-2xl font-semibold mb-6 flex items-center gap-3",children:"🪄 The Magic Workflow"}),(0,t.jsxs)("div",{className:"grid md:grid-cols-3 gap-8",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-primary/20 rounded-full flex items-center justify-center mx-auto mb-4 shadow-md",children:(0,t.jsx)("span",{className:"text-primary font-bold text-2xl",children:"1"})}),(0,t.jsx)("h3",{className:"font-semibold mb-3 text-lg",children:"AI Finds Issues"}),(0,t.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"fix_my_app automatically detects all types of errors and problems in your app"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-accent/20 rounded-full flex items-center justify-center mx-auto mb-4 shadow-md",children:(0,t.jsx)("span",{className:"text-accent-foreground font-bold text-2xl",children:"2"})}),(0,t.jsx)("h3",{className:"font-semibold mb-3 text-lg",children:"AI Fixes Code"}),(0,t.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"AI analyzes errors and edits your code files to resolve issues"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-green-500/20 rounded-full flex items-center justify-center mx-auto mb-4 shadow-md",children:(0,t.jsx)("span",{className:"text-green-600 dark:text-green-400 font-bold text-2xl",children:"3"})}),(0,t.jsx)("h3",{className:"font-semibold mb-3 text-lg",children:"AI Verifies Fixes"}),(0,t.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"execute_browser_action tests the fixes in real-time with screenshots"})]})]})]})]}),(0,t.jsx)("footer",{className:"border-t border-border mt-20",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-6 py-8",children:(0,t.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"font-semibold",children:"dev3000 MCP Server"})," - AI-powered development monitoring"]}),(0,t.jsxs)("div",{className:"flex items-center gap-8",children:[(0,t.jsx)("a",{href:"https://github.com/vercel-labs/dev3000",target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors",children:"GitHub"}),(0,t.jsx)("a",{href:"https://dev3000.ai",target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors",children:"Homepage"})]})]})})})]})}e.s(["default",()=>c],41449)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95299,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},33323,(e,t,r)=>{"use strict";function n(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:l}=e,u=n?40*n:t,a=i?40*i:r,s=u&&a?"viewBox='0 0 "+u+" "+a+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+s+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(s?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},95827,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return i}});let n=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},76154,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return a}}),e.r(95299);let n=e.r(33323),i=e.r(95827),o=["-moz-initial","fill","none","scale-down",void 0];function l(e){return void 0!==e.default}function u(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var r,a;let s,d,c,{src:f,sizes:p,unoptimized:g=!1,priority:m=!1,preload:h=!1,loading:b,className:y,quality:v,width:_,height:j,fill:w=!1,style:O,overrideSrc:P,onLoad:C,onLoadingComplete:x,placeholder:S="empty",blurDataURL:E,fetchPriority:M,decoding:R="async",layout:z,objectFit:I,objectPosition:A,lazyBoundary:D,lazyRoot:T,...k}=e,{imgConf:N,showAltText:U,blurComplete:F,defaultLoader:L}=t,q=N||i.imageConfigDefault;if("allSizes"in q)s=q;else{let e=[...q.deviceSizes,...q.imageSizes].sort((e,t)=>e-t),t=q.deviceSizes.sort((e,t)=>e-t),n=null==(r=q.qualities)?void 0:r.sort((e,t)=>e-t);s={...q,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===L)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let B=k.loader||L;delete k.loader,delete k.srcSet;let G="__next_img_default"in B;if(G){if("custom"===s.loader)throw Object.defineProperty(Error('Image with src "'+f+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=B;B=t=>{let{config:r,...n}=t;return e(n)}}if(z){"fill"===z&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[z];e&&(O={...O,...e});let t={responsive:"100vw",fill:"100vw"}[z];t&&!p&&(p=t)}let W="",V=u(_),X=u(j);if((a=f)&&"object"==typeof a&&(l(a)||void 0!==a.src)){let e=l(f)?f.default:f;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(d=e.blurWidth,c=e.blurHeight,E=E||e.blurDataURL,W=e.src,!w)if(V||X){if(V&&!X){let t=V/e.width;X=Math.round(e.height*t)}else if(!V&&X){let t=X/e.height;V=Math.round(e.width*t)}}else V=e.width,X=e.height}let H=!m&&!h&&("lazy"===b||void 0===b);(!(f="string"==typeof f?f:W)||f.startsWith("data:")||f.startsWith("blob:"))&&(g=!0,H=!1),s.unoptimized&&(g=!0),G&&!s.dangerouslyAllowSVG&&f.split("?",1)[0].endsWith(".svg")&&(g=!0);let $=u(v),J=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:I,objectPosition:A}:{},U?{}:{color:"transparent"},O),K=F||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:V,heightInt:X,blurWidth:d,blurHeight:c,blurDataURL:E||"",objectFit:J.objectFit})+'")':'url("'+S+'")',Q=o.includes(J.objectFit)?"fill"===J.objectFit?"100% 100%":"cover":J.objectFit,Y=K?{backgroundSize:Q,backgroundPosition:J.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},Z=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:l,loader:u}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:a,kind:s}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,l),d=a.length-1;return{sizes:l||"w"!==s?l:"100vw",srcSet:a.map((e,n)=>u({config:t,src:r,quality:o,width:e})+" "+("w"===s?e:n+1)+s).join(", "),src:u({config:t,src:r,quality:o,width:a[d]})}}({config:s,src:f,unoptimized:g,width:V,quality:$,sizes:p,loader:B}),ee=H?"lazy":b;return{props:{...k,loading:ee,fetchPriority:M,width:V,height:X,decoding:R,className:y,style:{...J,...Y},sizes:Z.sizes,srcSet:Z.srcSet,src:P||Z.src},meta:{unoptimized:g,preload:h||m,placeholder:S,fill:w}}}},33360,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(72938),i="undefined"==typeof window,o=i?()=>{}:n.useLayoutEffect,l=i?()=>{}:n.useEffect;function u(e){let{headManager:t,reduceComponentsToState:r}=e;function u(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}if(i){var a;null==t||null==(a=t.mountedInstances)||a.add(e.children),u()}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=u),()=>{t&&(t._pendingUpdate=u)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},85487,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=e.r(81258)._(e.r(72938)).default.createContext({})},57883,(e,t,r)=>{"use strict";function n(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isInAmpMode",{enumerable:!0,get:function(){return n}})},89454,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{default:function(){return m},defaultHead:function(){return c}});let n=e.r(81258),i=e.r(44066),o=e.r(54610),l=i._(e.r(72938)),u=n._(e.r(33360)),a=e.r(85487),s=e.r(30741),d=e.r(57883);function c(e){void 0===e&&(e=!1);let t=[(0,o.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(95299);let p=["name","httpEquiv","charSet","itemProp"];function g(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(c(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let o=!0,l=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){l=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(i.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?o=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!l)&&r.has(e)?o=!1:(r.add(e),n[t]=r)}}}return o}}()).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,r=(0,l.useContext)(a.AmpStateContext),n=(0,l.useContext)(s.HeadManagerContext);return(0,o.jsx)(u.default,{reduceComponentsToState:g,headManager:n,inAmpMode:(0,d.isInAmpMode)(r),children:t})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},64721,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=e.r(81258)._(e.r(72938)),i=e.r(95827),o=n.default.createContext(i.imageConfigDefault)},8946,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(81258)._(e.r(72938)).default.createContext(null)},24440,(e,t,r)=>{"use strict";function n(e,t){var r;let n=e||75;return(null==t||null==(r=t.qualities)?void 0:r.length)?t.qualities.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e,0):n}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},20237,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(24440);function i(e){let{config:t,src:r,width:i,quality:o}=e,l=(0,n.findClosestQuality)(o,t);return t.path+"?url="+encodeURIComponent(r)+"&w="+i+"&q="+l+(r.startsWith("/_next/static/media/"),"")}i.__next_img_default=!0;let o=i},33830,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(72938);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77708,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return _}});let n=e.r(81258),i=e.r(44066),o=e.r(54610),l=i._(e.r(72938)),u=n._(e.r(457)),a=n._(e.r(89454)),s=e.r(76154),d=e.r(95827),c=e.r(64721);e.r(95299);let f=e.r(8946),p=n._(e.r(20237)),g=e.r(33830),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function h(e,t,r,n,i,o,l){let u=null==e?void 0:e.src;e&&e["data-loaded-src"]!==u&&(e["data-loaded-src"]=u,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function b(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,l.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:u,width:a,decoding:s,className:d,style:c,fetchPriority:f,placeholder:p,loading:m,unoptimized:y,fill:v,onLoadRef:_,onLoadingCompleteRef:j,setBlurComplete:w,setShowAltText:O,sizesInput:P,onLoad:C,onError:x,...S}=e,E=(0,l.useCallback)(e=>{e&&(x&&(e.src=e.src),e.complete&&h(e,p,_,j,w,y,P))},[r,p,_,j,w,x,y,P]),M=(0,g.useMergedRef)(t,E);return(0,o.jsx)("img",{...S,...b(f),loading:m,width:a,height:u,decoding:s,"data-nimg":v?"fill":"1",className:d,style:c,sizes:i,srcSet:n,src:r,ref:M,onLoad:e=>{h(e.currentTarget,p,_,j,w,y,P)},onError:e=>{O(!0),"empty"!==p&&w(!0),x&&x(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...b(r.fetchPriority)};return t&&u.default.preload?(u.default.preload(r.src,n),null):(0,o.jsx)(a.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let _=(0,l.forwardRef)((e,t)=>{let r=(0,l.useContext)(f.RouterContext),n=(0,l.useContext)(c.ImageConfigContext),i=(0,l.useMemo)(()=>{var e;let t=m||n||d.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:u,onLoadingComplete:a}=e,g=(0,l.useRef)(u);(0,l.useEffect)(()=>{g.current=u},[u]);let h=(0,l.useRef)(a);(0,l.useEffect)(()=>{h.current=a},[a]);let[b,_]=(0,l.useState)(!1),[j,w]=(0,l.useState)(!1),{props:O,meta:P}=(0,s.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:b,showAltText:j});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{...O,unoptimized:P.unoptimized,placeholder:P.placeholder,fill:P.fill,onLoadRef:g,onLoadingCompleteRef:h,setBlurComplete:_,setShowAltText:w,sizesInput:e.sizes,ref:t}),P.preload?(0,o.jsx)(v,{isAppRouter:!r,imgAttributes:O}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},46568,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{default:function(){return a},getImageProps:function(){return u}});let n=e.r(81258),i=e.r(76154),o=e.r(77708),l=n._(e.r(20237));function u(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let a=o.Image},91075,(e,t,r)=>{t.exports=e.r(46568)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68860,54768,e=>{"use strict";var r=e.i(54610),t=e.i(72938);let o=e=>{let r=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)},n=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,t.forwardRef)((e,r)=>{let{color:o="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:d="",children:c,iconNode:u,...p}=e;return(0,t.createElement)("svg",{ref:r,...l,width:a,height:a,stroke:o,strokeWidth:s?24*Number(i)/Number(a):i,className:n("lucide",d),...!c&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(p)&&{"aria-hidden":"true"},...p},[...u.map(e=>{let[r,o]=e;return(0,t.createElement)(r,o)}),...Array.isArray(c)?c:[c]])}),i=(e,r)=>{let l=(0,t.forwardRef)((l,i)=>{let{className:s,...d}=l;return(0,t.createElement)(a,{ref:i,iconNode:r,className:n("lucide-".concat(o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),s),...d})});return l.displayName=o(e),l},s=i("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),d=i("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);function c(e,r){if("function"==typeof e)return e(r);null!=e&&(e.current=r)}var u=function(e){let o=function(e){let r=t.forwardRef((e,r)=>{let{children:o,...n}=e;if(t.isValidElement(o)){var l,a,i;let e,s,d=(s=(e=null==(a=Object.getOwnPropertyDescriptor((l=o).props,"ref"))?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(s=(e=null==(i=Object.getOwnPropertyDescriptor(l,"ref"))?void 0:i.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref,u=function(e,r){let t={...r};for(let o in r){let n=e[o],l=r[o];/^on[A-Z]/.test(o)?n&&l?t[o]=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];let o=l(...r);return n(...r),o}:n&&(t[o]=n):"style"===o?t[o]={...n,...l}:"className"===o&&(t[o]=[n,l].filter(Boolean).join(" "))}return{...e,...t}}(n,o.props);return o.type!==t.Fragment&&(u.ref=r?function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return e=>{let t=!1,o=r.map(r=>{let o=c(r,e);return t||"function"!=typeof o||(t=!0),o});if(t)return()=>{for(let e=0;e<o.length;e++){let t=o[e];"function"==typeof t?t():c(r[e],null)}}}}(r,d):d),t.cloneElement(o,u)}return t.Children.count(o)>1?t.Children.only(null):null});return r.displayName="".concat(e,".SlotClone"),r}(e),n=t.forwardRef((e,n)=>{let{children:l,...a}=e,i=t.Children.toArray(l),s=i.find(b);if(s){let e=s.props.children,l=i.map(r=>r!==s?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,r.jsx)(o,{...a,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,l):null})}return(0,r.jsx)(o,{...a,ref:n,children:l})});return n.displayName="".concat(e,".Slot"),n}("Slot"),p=Symbol("radix.slottable");function b(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}function f(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=function e(r){var t,o,n="";if("string"==typeof r||"number"==typeof r)n+=r;else if("object"==typeof r)if(Array.isArray(r)){var l=r.length;for(t=0;t<l;t++)r[t]&&(o=e(r[t]))&&(n&&(n+=" "),n+=o)}else for(o in r)r[o]&&(n&&(n+=" "),n+=o);return n}(e))&&(o&&(o+=" "),o+=r);return o}let m=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,g=(e,r)=>{var t;if(0===e.length)return r.classGroupId;let o=e[0],n=r.nextPart.get(o),l=n?g(e.slice(1),n):void 0;if(l)return l;if(0===r.validators.length)return;let a=e.join("-");return null==(t=r.validators.find(e=>{let{validator:r}=e;return r(a)}))?void 0:t.classGroupId},h=/^\[(.+)\]$/,v=(e,r,t,o)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:y(r,e)).classGroupId=t;return}if("function"==typeof e)return x(e)?void v(e(o),r,t,o):void r.validators.push({validator:e,classGroupId:t});Object.entries(e).forEach(e=>{let[n,l]=e;v(l,y(r,n),t,o)})})},y=(e,r)=>{let t=e;return r.split("-").forEach(e=>{t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t},x=e=>e.isThemeGetter,w=(e,r)=>r?e.map(e=>{let[t,o]=e;return[t,o.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>{let[t,o]=e;return[r+t,o]})):e)]}):e,k=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(e=>{"["===e[0]?(r.push(...t.sort(),e),t=[]):t.push(e)}),r.push(...t.sort()),r},z=/\s+/;function j(){let e,r,t=0,o="";for(;t<arguments.length;)(e=arguments[t++])&&(r=C(e))&&(o&&(o+=" "),o+=r);return o}let C=e=>{let r;if("string"==typeof e)return e;let t="";for(let o=0;o<e.length;o++)e[o]&&(r=C(e[o]))&&(t&&(t+=" "),t+=r);return t},S=e=>{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},N=/^\[(?:([a-z-]+):)?(.+)\]$/i,E=/^\d+\/\d+$/,A=new Set(["px","full","screen"]),O=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,M=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,P=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,R=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,G=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>_(e)||A.has(e)||E.test(e),W=e=>H(e,"length",Q),_=e=>!!e&&!Number.isNaN(Number(e)),$=e=>H(e,"number",_),L=e=>!!e&&Number.isInteger(Number(e)),T=e=>e.endsWith("%")&&_(e.slice(0,-1)),V=e=>N.test(e),B=e=>O.test(e),D=new Set(["length","size","percentage"]),U=e=>H(e,D,X),q=e=>H(e,"position",X),Z=new Set(["image","url"]),J=e=>H(e,Z,ee),K=e=>H(e,"",Y),F=()=>!0,H=(e,r,t)=>{let o=N.exec(e);return!!o&&(o[1]?"string"==typeof r?o[1]===r:r.has(o[1]):t(o[2]))},Q=e=>M.test(e)&&!P.test(e),X=()=>!1,Y=e=>R.test(e),ee=e=>G.test(e);Symbol.toStringTag;let er=function(e){let r,t,o;for(var n=arguments.length,l=Array(n>1?n-1:0),a=1;a<n;a++)l[a-1]=arguments[a];let i=function(n){let a;return t=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,t=new Map,o=new Map,n=(n,l)=>{t.set(n,l),++r>e&&(r=0,o=t,t=new Map)};return{get(e){let r=t.get(e);return void 0!==r?r:void 0!==(r=o.get(e))?(n(e,r),r):void 0},set(e,r){t.has(e)?t.set(e,r):n(e,r)}}})((a=l.reduce((e,r)=>r(e),e())).cacheSize),parseClassName:(e=>{let{separator:r,experimentalParseClassName:t}=e,o=1===r.length,n=r[0],l=r.length,a=e=>{let t,a=[],i=0,s=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===i){if(c===n&&(o||e.slice(d,d+l)===r)){a.push(e.slice(s,d)),s=d+l;continue}if("/"===c){t=d;continue}}"["===c?i++:"]"===c&&i--}let d=0===a.length?e:e.substring(s),c=d.startsWith("!"),u=c?d.substring(1):d;return{modifiers:a,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:t&&t>s?t-s:void 0}};return t?e=>t({className:e,parseClassName:a}):a})(a),...(e=>{let r=(e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return w(Object.entries(e.classGroups),t).forEach(e=>{let[t,n]=e;v(n,o,t,r)}),o})(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{let t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),g(t,r)||(e=>{if(h.test(e)){let r=h.exec(e)[1],t=null==r?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}})(e)},getConflictingClassGroupIds:(e,r)=>{let n=t[e]||[];return r&&o[e]?[...n,...o[e]]:n}}})(a)}).cache.get,o=r.cache.set,i=s,s(n)};function s(e){let n=t(e);if(n)return n;let l=((e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n}=r,l=[],a=e.trim().split(z),i="";for(let e=a.length-1;e>=0;e-=1){let r=a[e],{modifiers:s,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:u}=t(r),p=!!u,b=o(p?c.substring(0,u):c);if(!b){if(!p||!(b=o(c))){i=r+(i.length>0?" "+i:i);continue}p=!1}let f=k(s).join(":"),m=d?f+"!":f,g=m+b;if(l.includes(g))continue;l.push(g);let h=n(b,p);for(let e=0;e<h.length;++e){let r=h[e];l.push(m+r)}i=r+(i.length>0?" "+i:i)}return i})(e,r);return o(e,l),l}return function(){return i(j.apply(null,arguments))}}(()=>{let e=S("colors"),r=S("spacing"),t=S("blur"),o=S("brightness"),n=S("borderColor"),l=S("borderRadius"),a=S("borderSpacing"),i=S("borderWidth"),s=S("contrast"),d=S("grayscale"),c=S("hueRotate"),u=S("invert"),p=S("gap"),b=S("gradientColorStops"),f=S("gradientColorStopPositions"),m=S("inset"),g=S("margin"),h=S("opacity"),v=S("padding"),y=S("saturate"),x=S("scale"),w=S("sepia"),k=S("skew"),z=S("space"),j=S("translate"),C=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",V,r],A=()=>[V,r],O=()=>["",I,W],M=()=>["auto",_,V],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",V],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[_,V];return{cacheSize:500,separator:":",theme:{colors:[F],spacing:[I,W],blur:["none","",B,V],brightness:Q(),borderColor:[e],borderRadius:["none","","full",B,V],borderSpacing:A(),borderWidth:O(),contrast:Q(),grayscale:Z(),hueRotate:Q(),invert:Z(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[T,W],inset:E(),margin:E(),opacity:Q(),padding:A(),saturate:Q(),scale:Q(),sepia:Z(),skew:Q(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",V]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...P(),V]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",L,V]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",V]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",L,V]}],"grid-cols":[{"grid-cols":[F]}],"col-start-end":[{col:["auto",{span:["full",L,V]},V]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[F]}],"row-start-end":[{row:["auto",{span:[L,V]},V]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",V]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",V]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",V,r]}],"min-w":[{"min-w":[V,r,"min","max","fit"]}],"max-w":[{"max-w":[V,r,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[V,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[V,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[V,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[V,r,"auto","min","max","fit"]}],"font-size":[{text:["base",B,W]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$]}],"font-family":[{font:[F]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",V]}],"line-clamp":[{"line-clamp":["none",_,$]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,V]}],"list-image":[{"list-image":["none",V]}],"list-style-type":[{list:["none","disc","decimal",V]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,W]}],"underline-offset":[{"underline-offset":["auto",I,V]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),q]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",U]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},J]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...R(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:R()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...R()]}],"outline-offset":[{"outline-offset":[I,V]}],"outline-w":[{outline:[I,W]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[I,W]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",B,K]}],"shadow-color":[{shadow:[F]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",B,V]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[u]}],saturate:[{saturate:[y]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",V]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",V]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",V]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[L,V]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",V]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[I,W,$]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),et=((e,r)=>t=>{var o;if((null==r?void 0:r.variants)==null)return f(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:n,defaultVariants:l}=r,a=Object.keys(n).map(e=>{let r=null==t?void 0:t[e],o=null==l?void 0:l[e];if(null===r)return null;let a=m(r)||m(o);return n[e][a]}),i=t&&Object.entries(t).reduce((e,r)=>{let[t,o]=r;return void 0===o||(e[t]=o),e},{});return f(e,a,null==r||null==(o=r.compoundVariants)?void 0:o.reduce((e,r)=>{let{class:t,className:o,...n}=r;return Object.entries(n).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...l,...i}[r]):({...l,...i})[r]===t})?[...e,t,o]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function eo(e){let{className:t,variant:o,size:n,asChild:l=!1,...a}=e;return(0,r.jsx)(l?u:"button",{"data-slot":"button",className:function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return er(f(r))}(et({variant:o,size:n,className:t})),...a})}function en(e){let{darkMode:t,setDarkMode:o,className:n}=e;return(0,r.jsx)(eo,{variant:"ghost",size:"icon",onClick:()=>o(!t),className:n,"aria-label":t?"Switch to light mode":"Switch to dark mode",children:t?(0,r.jsx)(d,{className:"h-5 w-5 transition-all"}):(0,r.jsx)(s,{className:"h-5 w-5 transition-all"})})}function el(){let[e,r]=(0,t.useState)(()=>{{let e=localStorage.getItem("dev3000-dark-mode");return null!==e?JSON.parse(e):window.matchMedia("(prefers-color-scheme: dark)").matches}});return(0,t.useEffect)(()=>{localStorage.setItem("dev3000-dark-mode",JSON.stringify(e)),e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),(0,t.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{null===localStorage.getItem("dev3000-dark-mode")&&r(e.matches)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),[e,r]}e.s(["DarkModeToggle",()=>en],68860),e.s(["useDarkMode",()=>el],54768)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,64697,(e,t,r)=>{t.exports=e.r(31502)},54735,e=>{"use strict";var t=e.i(54610),r=e.i(91075),s=e.i(64697),n=e.i(72938),l=e.i(68860),a=e.i(54768);let o={BROWSER:"#00CED1",SERVER:"#32CD32",NETWORK:"#4A7C7E",ERROR:"#FF6B6B",WARNING:"#FFA500",INFO:"#87CEEB",LOG:"#B0B0B0",DEBUG:"#9370DB",SCREENSHOT:"#FF69B4",DOM:"#DDA0DD",CDP:"#F0E68C",CHROME:"#F0E68C",CRASH:"#DC143C",REPLAY:"#9370DB",NAVIGATION:"#DDA0DD",INTERACTION:"#DDA0DD",DEFAULT:"#A0A0A0"};function i(e){return[o.INFO,o.SCREENSHOT,o.DOM,o.CDP,o.CHROME,o.NAVIGATION,o.INTERACTION].includes(e)?"#000":"#FFF"}function c(e){let t=/\[(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z|\d{2}:\d{2}:\d{2}\.\d{3})\] \[([^\]]+)\] /,r=[],s=e.split("\n"),n=null;for(let e of s){if(!e.trim())continue;let s=e.match(t);if(s){var l,a;let t,o;n&&r.push(n);let[i,c,d]=s,u=e.substring(i.length),x=/^TAB-\d+\.\d+$/.test(d),m=d,p=u;if(x){t=d;let e=u.match(/^\[([^\]]+)\] /);if(e&&(m=e[1],(p=u.substring(e[0].length)).includes("User-Agent:"))){let e=p.match(/User-Agent: ([^,\n]+)/);e&&(o=e[1])}}let g=null==(l=p.match(/\[SCREENSHOT\] ([^\s[]+)/))?void 0:l[1],h=null==(a=p.match(/\[SCREENCAST\] View jank analysis: ([^\s]+)/))?void 0:a[1],f=function(e){let t=e.match(/^\[CONSOLE LOG\] (.+)$/);if(!t)return e;let r=t[1];if(!r.includes("%c"))return e;let s=r;return s=(s=(s=s.replace(/%c/g,"")).replace(/\s+color:\s*[^{}\n]*?(?=\s*[{[]|$)/g,"")).replace(/\s+/g," ").trim(),"[CONSOLE LOG] ".concat(s)}(p);if((f=f.replace(/ \[CHROME_EXTENSION\]$/,"")).includes("[Network.webSocketFrameSent]")||f.includes("[Network.webSocketFrameReceived]")||f.includes("[Network.webSocketFrame")||f.includes("webSocketDebuggerUrl")&&f.includes("localhost")||f.includes("[NETWORK")&&f.includes("__PAGE__")&&f.includes("refresh")){n=null;continue}let b=c;if(/^\d{2}:\d{2}:\d{2}\.\d{3}$/.test(c)){let e=new Date,[t,r,s]=c.split(":"),[n,l]=s.split(".");e.setHours(parseInt(t,10),parseInt(r,10),parseInt(n,10),parseInt(l,10)),b=e.toISOString()}n={timestamp:b,source:m,message:f,screenshot:g,screencast:h,original:e,tabIdentifier:t,userAgent:o}}else n&&(n.message+="\n".concat(e),n.original+="\n".concat(e))}return n&&r.push(n),r}function d(e){let{url:r,maxLength:s=60}=e,[l,a]=(0,n.useState)(!1);if(r.length<=s)return(0,t.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",children:r});let o="".concat(r.substring(0,s),"...");return(0,t.jsx)("span",{className:"inline-block",children:l?(0,t.jsxs)("span",{children:[(0,t.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",children:r}),(0,t.jsx)("button",{type:"button",onClick:()=>a(!1),className:"ml-2 text-xs text-muted-foreground hover:text-foreground px-1 py-0.5 rounded hover:bg-muted",children:"[collapse]"})]}):(0,t.jsxs)("span",{children:[(0,t.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",children:o}),(0,t.jsx)("button",{type:"button",onClick:()=>a(!0),className:"ml-1 text-xs text-muted-foreground hover:text-foreground px-1 py-0.5 rounded hover:bg-muted",children:"[expand]"})]})})}function u(e){let{content:r}=e,[s,l]=(0,n.useState)(!1);try{let e=JSON.parse(r);if(e&&"object"==typeof e&&"object"===e.type&&e.properties){let r=e.properties,n=e.description||"Object",a=e.overflow;return(0,t.jsxs)("div",{className:"inline-block",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>l(!s),className:"inline-flex items-center gap-1 text-blue-600 hover:text-blue-800 font-mono text-sm",children:[(0,t.jsx)("svg",{className:"w-3 h-3 transition-transform ".concat(s?"rotate-90":""),fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 111.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)("span",{className:"text-purple-600",children:n}),!s&&(0,t.jsxs)("span",{className:"text-gray-500",children:[a?"...":""," ","{",r.slice(0,3).map((e,r)=>(0,t.jsxs)("span",{children:[r>0&&", ",(0,t.jsx)("span",{className:"text-red-600",children:e.name}),":",(0,t.jsx)("span",{className:"text-blue-600",children:"string"===e.type?'"'.concat(e.value,'"'):"number"===e.type?e.value:"object"===e.type?"array"===e.subtype?e.value:"{...}":e.value})]},"".concat(e.name,"-").concat(r))),r.length>3&&", ...","}"]})]}),s&&(0,t.jsx)("div",{className:"mt-1 ml-4 border-l-2 border-gray-200 pl-3",children:(0,t.jsx)("div",{className:"font-mono text-sm",children:(0,t.jsxs)("div",{className:"text-gray-600",children:[n," ","{",(0,t.jsxs)("div",{className:"ml-4",children:[r.map((e,s)=>(0,t.jsxs)("div",{className:"py-0.5",children:[(0,t.jsx)("span",{className:"text-red-600",children:e.name}),(0,t.jsx)("span",{className:"text-gray-500",children:": "}),(0,t.jsx)("span",{className:"string"===e.type?"text-green-600":"number"===e.type?"text-blue-600":"object"===e.type?"text-purple-600":"text-orange-600",children:"string"===e.type?'"'.concat(String(e.value),'"'):"number"===e.type?String(e.value):"object"===e.type?"array"===e.subtype?String(e.value):"{...}":String(e.value)}),s<r.length-1&&(0,t.jsx)("span",{className:"text-gray-500",children:","})]},"".concat(e.name,"-").concat(s))),a&&(0,t.jsx)("div",{className:"text-gray-500 italic",children:"... and more properties"})]}),(0,t.jsx)("div",{className:"text-gray-600",children:"}"})]})})})]})}return(0,t.jsxs)("div",{className:"inline-block",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>l(!s),className:"inline-flex items-center gap-1 text-blue-600 hover:text-blue-800 font-mono text-sm",children:[(0,t.jsx)("svg",{className:"w-3 h-3 transition-transform ".concat(s?"rotate-90":""),fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 111.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)("span",{className:"text-purple-600",children:"Object"}),!s&&(0,t.jsxs)("span",{className:"text-gray-500",children:["{","...","}"]})]}),s&&(0,t.jsx)("div",{className:"mt-1 ml-4 border-l-2 border-gray-200 pl-3",children:(0,t.jsx)("pre",{className:"font-mono text-sm text-foreground whitespace-pre-wrap",children:JSON.stringify(e,null,2)})})]})}catch(e){return(0,t.jsx)("span",{children:r})}}function x(e){var s;let{entry:n,darkMode:l}=e,a=(s=n.message).includes("[INTERACTION]")?{type:"INTERACTION",backgroundColor:o.INTERACTION,textColor:i(o.INTERACTION)}:s.includes("[ERROR]")?{type:"ERROR",backgroundColor:o.ERROR,textColor:i(o.ERROR)}:s.includes("[WARNING]")?{type:"WARNING",backgroundColor:o.WARNING,textColor:i(o.WARNING)}:s.includes("[INFO]")?{type:"INFO",backgroundColor:o.INFO,textColor:i(o.INFO)}:s.includes("[LOG]")?{type:"LOG",backgroundColor:o.LOG,textColor:i(o.LOG)}:s.includes("[DEBUG]")?{type:"DEBUG",backgroundColor:o.DEBUG,textColor:i(o.DEBUG)}:s.includes("[SCREENSHOT]")?{type:"SCREENSHOT",backgroundColor:o.SCREENSHOT,textColor:i(o.SCREENSHOT)}:s.includes("[NAVIGATION]")||s.includes("[PAGE]")||s.includes("[DOM]")?{type:"DOM",backgroundColor:o.DOM,textColor:i(o.DOM)}:s.includes("[CDP]")?{type:"CDP",backgroundColor:o.CDP,textColor:i(o.CDP)}:s.includes("[NETWORK]")?{type:"NETWORK",backgroundColor:o.NETWORK,textColor:i(o.NETWORK)}:s.includes("[CRASH]")?{type:"CRASH",backgroundColor:o.CRASH,textColor:i(o.CRASH)}:s.includes("[CHROME]")?{type:"CHROME",backgroundColor:o.CHROME,textColor:i(o.CHROME)}:s.includes("[REPLAY]")?{type:"REPLAY",backgroundColor:o.REPLAY,textColor:i(o.REPLAY)}:{type:"DEFAULT",color:"bg-gray-50 dark:bg-gray-800/50 border-gray-200 dark:border-gray-700",backgroundColor:o.DEFAULT,textColor:i(o.DEFAULT)};return(0,t.jsxs)("div",{className:"border-l-4 ".concat((()=>{switch(a.type){case"INTERACTION":case"CONSOLE DEBUG":case"DOM":return"border-purple-200 dark:border-purple-800";case"CONSOLE ERROR":case"ERROR":case"CRITICAL ERROR":return"border-red-200 dark:border-red-800";case"CONSOLE WARN":case"CDP":case"NETWORK":return"border-yellow-200 dark:border-yellow-800";case"CONSOLE INFO":case"SCREENSHOT":return"border-blue-200 dark:border-blue-800";case"PAGE":return"border-green-200 dark:border-green-800";default:return"border-gray-200 dark:border-gray-700"}})()," pl-4 py-2"),style:(()=>{let e=a.type;if(l)switch(e){case"INTERACTION":case"CONSOLE DEBUG":case"DOM":return{backgroundColor:"rgba(88, 28, 135, 0.3)"};case"CONSOLE ERROR":case"ERROR":case"CRITICAL ERROR":return{backgroundColor:"rgba(127, 29, 29, 0.3)"};case"CONSOLE WARN":case"CDP":case"NETWORK":return{backgroundColor:"rgba(133, 77, 14, 0.3)"};case"CONSOLE INFO":case"SCREENSHOT":return{backgroundColor:"rgba(30, 58, 138, 0.3)"};case"PAGE":return{backgroundColor:"rgba(20, 83, 45, 0.3)"};default:return{backgroundColor:"rgba(17, 24, 39, 0.3)"}}switch(e){case"INTERACTION":case"CONSOLE DEBUG":case"DOM":return{backgroundColor:"rgba(250, 245, 255, 0.5)"};case"CONSOLE ERROR":case"ERROR":case"CRITICAL ERROR":return{backgroundColor:"rgba(254, 242, 242, 0.5)"};case"CONSOLE WARN":case"CDP":case"NETWORK":return{backgroundColor:"rgba(254, 252, 232, 0.5)"};case"CONSOLE INFO":case"SCREENSHOT":return{backgroundColor:"rgba(239, 246, 255, 0.5)"};case"PAGE":return{backgroundColor:"rgba(240, 253, 244, 0.5)"};default:return{backgroundColor:"transparent"}}})(),children:[(0,t.jsxs)("div",{className:"grid grid-cols-[auto_auto_1fr] gap-3 items-start",children:[(0,t.jsx)("div",{className:"text-xs text-muted-foreground font-mono whitespace-nowrap pt-1",children:new Date(n.timestamp).toLocaleTimeString()}),(0,t.jsx)("div",{className:"px-2 py-1 rounded text-xs font-medium whitespace-nowrap",style:{backgroundColor:"SERVER"===n.source?o.SERVER:o.BROWSER,color:"#000"},children:n.source}),(0,t.jsx)("div",{className:"font-mono text-sm min-w-0 text-foreground",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-start gap-2",children:[(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(e=>{let r,s=/\[([A-Z\s]+)\]/g,n=/\{[^{}]*(?:\{[^{}]*\}[^{}]*)*\}/g,l=/(https?:\/\/[^\s]+)/g,o=[],i=0;for(r=s.exec(e);null!==r;)r.index>i&&o.push(e.slice(i,r.index)),o.push((0,t.jsx)("span",{className:"inline-block px-1.5 py-0.5 rounded text-xs font-medium mr-1",style:{backgroundColor:a.backgroundColor,color:a.textColor},children:r[1]},r.index)),i=r.index+r[0].length,r=s.exec(e);return o.push(...((e,r)=>{let s=[...e.matchAll(n)],a=[...e.matchAll(l)],o=[...s.map(e=>({...e,type:"json"})),...a.map(e=>({...e,type:"url"}))];if(o.sort((e,t)=>{var r,s;return(null!=(r=e.index)?r:0)-(null!=(s=t.index)?s:0)}),0===o.length)return[e];let i=[],c=0;return o.forEach((s,n)=>{var l,a,o;(null!=(l=s.index)?l:0)>c&&i.push(e.slice(c,null!=(a=s.index)?a:0)),"json"===s.type?i.push((0,t.jsx)(u,{content:s[0]},"".concat(r,"-json-").concat(s.index,"-").concat(s[0].slice(0,20)))):"url"===s.type&&i.push((0,t.jsx)(d,{url:s[0]},"".concat(r,"-url-").concat(s.index,"-").concat(s[0]))),c=(null!=(o=s.index)?o:0)+s[0].length}),c<e.length&&i.push(e.slice(c)),i})(e.slice(i),"main")),o.length>0?o:e})(n.message)}),(0,t.jsxs)("div",{className:"flex items-center gap-1 flex-shrink-0",children:[n.tabIdentifier&&(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground",children:n.tabIdentifier}),n.userAgent&&(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-green-100 dark:bg-green-800 text-green-700 dark:text-green-200",children:n.userAgent.includes("Chrome")?"Chrome":n.userAgent.includes("Firefox")?"Firefox":n.userAgent.includes("Safari")?"Safari":n.userAgent.includes("Edge")?"Edge":"Browser"}),"BROWSER"===n.source&&(()=>{let e=n.message.includes("[PLAYWRIGHT]"),r=n.message.includes("[CHROME_EXTENSION]")||n.tabIdentifier;return e?(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-purple-100 dark:bg-purple-800 text-purple-700 dark:text-purple-200",children:"🎭 Playwright"}):r?(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-100 dark:bg-blue-800 text-blue-700 dark:text-blue-200",children:"🧩 Extension"}):null})(),"SERVER"===n.source&&(()=>{let e=n.message.toLowerCase();if(e.includes("ready on http://localhost")||e.includes("ready in ")||e.includes("next.js")||e.includes("compiled client and server"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-black text-white",children:"▲ Next.js"});if(e.includes("nuxt")||e.includes("nitro")&&e.includes("http://localhost")||e.includes("universal mode")||e.includes("spa mode"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-green-500 text-white",children:"💚 Nuxt"});if(e.includes("vue-cli-service")||e.includes("vue")&&(e.includes("dev server")||e.includes("local:"))||e.includes("@vue/cli-service"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-green-600 text-white",children:"🟢 Vue"});if(e.includes("local:")&&e.includes("vite")||e.includes("dev server running")||e.includes("vite v"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500 text-white",children:"⚡ Vite"});if(e.includes("rails server")||e.includes("puma starting")||e.includes("use ctrl-c to stop")||e.includes("listening on tcp://")&&e.includes("3000"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-red-600 text-white",children:"💎 Rails"});else if(e.includes("laravel development server")||e.includes("artisan serve")||e.includes("laravel")&&e.includes("127.0.0.1:8000"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-red-500 text-white",children:"🅻 Laravel"});else if(e.includes("express server")||e.includes("server listening on")||e.includes("app listening on port")||e.includes("node server"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-green-700 text-white",children:"🟩 Express"});else if(e.includes("django")||e.includes("development server")&&e.includes("127.0.0.1:8000")||e.includes("runserver"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-green-800 text-white",children:"🐍 Django"});else if(e.includes("flask")||e.includes("running on http://127.0.0.1:5000")||e.includes("debug mode: on"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-800 text-white",children:"🌶️ Flask"});else if(e.includes("sveltekit")||e.includes("svelte")&&e.includes("dev")||e.includes("@sveltejs"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-orange-500 text-white",children:"🔥 Svelte"});else if(e.includes("remix")||e.includes("@remix-run"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-400 text-white",children:"💿 Remix"});else if(e.includes("astro")||e.includes("@astrojs"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-purple-600 text-white",children:"🚀 Astro"});else if(e.includes("spring boot")||e.includes("tomcat started on port")||e.includes("started application")&&e.includes("seconds"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-green-500 text-white",children:"🍃 Spring"});else if(e.includes("webpack compiled")||e.includes("compiled successfully")||e.includes("webpack-dev-server"))return(0,t.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-600 text-white",children:"⚛️ React"});return null})()]})]})})]}),n.screenshot&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(r.default,{src:"/api/screenshots/".concat(n.screenshot),alt:"Screenshot",width:0,height:0,sizes:"100vw",className:"w-full h-auto max-w-2xl border rounded shadow-sm",style:{maxHeight:"600px",objectFit:"contain"},unoptimized:!0})}),n.screencast&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)("a",{href:n.screencast,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg font-medium transition-colors",children:[(0,t.jsxs)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]}),"View Jank Analysis Video"]})})]})}function m(e){let{version:r,initialData:o}=e,i=(0,s.useRouter)(),d=(0,s.useSearchParams)(),[u,m]=(0,a.useDarkMode)(),[p,g]=(0,n.useState)((null==o?void 0:o.logs)||[]),[h,f]=(0,n.useState)((null==o?void 0:o.mode)||"tail");(0,n.useEffect)(()=>{let e=d.get("mode");e&&e!==h&&f(e)},[d,h]);let[b,N]=(0,n.useState)(!0),[v,j]=(0,n.useState)(!o),[y,C]=(0,n.useState)((null==o?void 0:o.logs.length)||0),[E,R]=(0,n.useState)(null),[w,k]=(0,n.useState)((null==o?void 0:o.logFiles)||[]),[O,S]=(0,n.useState)((null==o?void 0:o.currentLogFile)||""),[T,A]=(0,n.useState)(""),[I,L]=(0,n.useState)(!1),[D,F]=(0,n.useState)(!1),[M,B]=(0,n.useState)(!1),[H,P]=(0,n.useState)(!1),[W,G]=(0,n.useState)([]),[U,V]=(0,n.useState)(!1),[_,K]=(0,n.useState)(0),[z]=(0,n.useState)(5),[Y,$]=(0,n.useState)(null),[J,X]=(0,n.useState)(!1),[Z,q]=(0,n.useState)({browser:!0,server:!0,interaction:!0,screenshot:!0}),[Q,ee]=(0,n.useState)({}),[et,er]=(0,n.useState)([]),es=(0,n.useRef)(null),en=(0,n.useRef)(null),el=(0,n.useRef)(null),ea=(0,n.useRef)(null),eo=(0,n.useRef)(null),ei=(0,n.useRef)(!1),ec=(0,n.useCallback)(async()=>{try{let e=await fetch("/api/logs/list");if(e.ok){let t=await e.json();return k(t.files),S(t.currentFile),A(t.projectName),!0}return!1}catch(e){return console.error("Error loading available logs:",e),!1}},[]),ed=(0,n.useCallback)(async()=>{if("tail"===h)try{let e=d.get("file"),t="",r=!0;if(e&&w.length>0){let s=w.find(t=>t.name===e);t=(null==s?void 0:s.path)||O,r=(null==s?void 0:s.isCurrent)!==!1}else t=O,r=!0;if(!r)return;let s=t?"/api/logs/tail?lines=50&logPath=".concat(encodeURIComponent(t)):"/api/logs/tail?lines=50";if(Y===s&&_>=z){console.error("Maximum retry attempts (".concat(z,") reached for ").concat(s,". Stopping polling.")),el.current&&(clearInterval(el.current),el.current=null);return}let n=await fetch(s);if(!n.ok)throw Error("HTTP ".concat(n.status,": ").concat(n.statusText));(Y===s||_>0)&&(K(0),$(null));let l=await n.json();if(!l.logs)return void console.warn("No logs data in response");let a=c(l.logs);if(a.length>y)if(b)R(new Date),et.length>0?(g([...p,...et,...a.slice(y)]),er([])):g(a),C(a.length),ei.current||setTimeout(()=>{var e;null==(e=es.current)||e.scrollIntoView({behavior:"smooth"})},50);else{let e=a.slice(y);e.length>0&&(er(t=>[...t,...e]),C(a.length))}}catch(s){console.error("Error polling logs:",s);let e=d.get("file"),t="";if(e&&w.length>0){let r=w.find(t=>t.name===e);t=(null==r?void 0:r.path)||O}else t=O;let r=t?"/api/logs/tail?lines=50&logPath=".concat(encodeURIComponent(t)):"/api/logs/tail?lines=50";if(Y===r){let e=_+1;K(e),e>=z&&(console.error("Maximum retry attempts (".concat(z,") reached for ").concat(r,". Stopping polling.")),el.current&&(clearInterval(el.current),el.current=null))}else $(r),K(1)}},[h,b,d,w,O,y,et,p,_,Y,z]);(0,n.useEffect)(()=>{if("tail"===h&&_<z)return el.current=setInterval(ed,3e3),()=>{el.current&&clearInterval(el.current)};el.current&&clearInterval(el.current)},[h,ed,_,z]);let eu=(0,n.useCallback)(async()=>{if(_>=z)return void console.log("Max retries reached, not attempting to load");if(j(!0),!await ec())return void j(!1);try{let e=d.get("file"),t="";if(e&&w.length>0){let r=w.find(t=>t.name===e);t=(null==r?void 0:r.path)||O}else t=O;let r=t?"/api/logs/".concat(h,"?lines=1000&logPath=").concat(encodeURIComponent(t)):"/api/logs/".concat(h,"?lines=1000");if(Y===r&&_>=z){console.error("Maximum retry attempts (".concat(z,") reached for ").concat(r,". Not attempting to load.")),g([]),j(!1);return}let s=await fetch(r);if(!s.ok)throw Error("HTTP ".concat(s.status,": ").concat(s.statusText));(Y===r||_>0)&&(K(0),$(null));let n=await s.json();if(!n.logs){console.warn("No logs data in response"),g([]),j(!1);return}let l=c(n.logs);if(g(l),C(l.length),R(new Date),j(!1),"tail"===h&&!ei.current){N(!0);let e=()=>{es.current?es.current.scrollIntoView({behavior:"auto"}):en.current&&(en.current.scrollTop=en.current.scrollHeight)};setTimeout(e,0),setTimeout(e,100)}}catch(s){console.error("Error loading logs:",s);let e=d.get("file"),t="";if(e&&w.length>0){let r=w.find(t=>t.name===e);t=(null==r?void 0:r.path)||O}else t=O;let r=t?"/api/logs/".concat(h,"?lines=1000&logPath=").concat(encodeURIComponent(t)):"/api/logs/".concat(h,"?lines=1000");if(Y===r){let e=_+1;K(e),e>=z&&console.error("Maximum retry attempts (".concat(z,") reached for initial load of ").concat(r,"."))}else $(r),K(1);g([])}finally{j(!1)}},[ec,d,w,O,h,_,Y,z]);(0,n.useEffect)(()=>{let e=(null==o?void 0:o.logs)&&(null==o?void 0:o.logs.length)>0;if(J||e||p.length){if(e&&0===p.length&&(g(o.logs),j(!1),"tail"===h&&!ei.current)){N(!0);let e=()=>{es.current?es.current.scrollIntoView({behavior:"auto"}):en.current&&(en.current.scrollTop=en.current.scrollHeight)};setTimeout(e,0),setTimeout(e,100),setTimeout(e,300)}}else X(!0),eu()},[h,o,p.length,J,eu]),(0,n.useEffect)(()=>{p.length>0&&"tail"===h&&b&&!ei.current&&setTimeout(()=>{es.current?es.current.scrollIntoView({behavior:"auto"}):en.current&&(en.current.scrollTop=en.current.scrollHeight)},0)},[p.length,h,b]),(0,n.useEffect)(()=>()=>{el.current&&clearInterval(el.current)},[]),(0,n.useEffect)(()=>{let e=e=>{ea.current&&!ea.current.contains(e.target)&&L(!1),eo.current&&!eo.current.contains(e.target)&&B(!1)};if(I||M)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[I,M]);let ex=async()=>{if(O&&!U&&window.confirm("Clear logs and start fresh?\n\nThis will:\n• Archive the current log file\n• Start a new empty log file\n• Clear the current view\n\nThe archived logs will still be available in the dropdown.")){V(!0);try{let e=await fetch("/api/logs/rotate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentLogPath:O})});if(e.ok)g([]),C(0),R(null),await ec(),await eu();else{let t=await e.json();console.error("Failed to rotate log:",t),alert("Failed to rotate log: ".concat(t.error))}}catch(e){console.error("Error rotating log:",e),alert("Error rotating log")}finally{V(!1)}}},em=(0,n.useMemo)(()=>{let e=new Set;return p.forEach(t=>{"BROWSER"===t.source&&t.userAgent&&e.add(t.userAgent)}),Array.from(e).sort()},[p]);(0,n.useEffect)(()=>{em.length>0&&ee(e=>{let t={...e};return em.forEach(e=>{e in t||(t[e]=!0)}),t})},[em]);let ep=(0,n.useMemo)(()=>p.filter(e=>{let t=e.message.includes("[INTERACTION]"),r=e.message.includes("[SCREENSHOT]");if(t)return Z.interaction;if(r)return Z.screenshot;if("SERVER"===e.source)return Z.server;if("BROWSER"===e.source){if(!Z.browser)return!1;if(em.length>0&&e.userAgent)return!1!==Q[e.userAgent]}return!0}),[p,Z,Q,em]);return(0,t.jsxs)("div",{className:"h-screen bg-background text-foreground flex flex-col transition-colors",children:[(0,t.jsx)("div",{className:"bg-card shadow-sm border-b border-border flex-none z-10",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-4 py-3",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("h1",{className:"text-xl sm:text-2xl font-bold whitespace-nowrap",children:"dev3000"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:["(v",r,")"]})]}),w.length>1?(0,t.jsxs)("div",{className:"relative",ref:ea,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>L(!I),className:"flex items-center gap-2 px-3 py-1 text-sm text-muted-foreground hover:text-foreground hover:bg-accent rounded-md transition-colors",children:[(0,t.jsx)("span",{className:"font-mono text-xs whitespace-nowrap",children:v&&!O?(0,t.jsx)("div",{className:"h-4 bg-muted rounded animate-pulse",style:{width:"220px"}}):O?"Current":"No log file"}),(0,t.jsx)("svg",{className:"w-4 h-4 transition-transform ".concat(I?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),I&&w.length>1&&(0,t.jsx)("div",{className:"absolute top-full left-0 mt-1 bg-card border border-border rounded-md shadow-lg z-20 min-w-80",children:(0,t.jsxs)("div",{className:"py-1 max-h-60 overflow-y-auto",children:[(0,t.jsxs)("div",{className:"px-3 py-2 text-xs font-medium text-muted-foreground border-b border-border",children:[T," logs (",w.length,")"]}),w.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{L(!1),i.push("/logs?file=".concat(encodeURIComponent(e.name),"&mode=").concat(h))},className:"w-full text-left px-3 py-2 text-sm hover:bg-accent flex items-center justify-between ".concat(e.isCurrent?"bg-primary/10 text-primary":"text-foreground"),children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"font-mono text-xs",children:e.name}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[new Date(e.mtime).toLocaleString()," • ",Math.round(e.size/1024),"KB"]})]}),e.isCurrent&&(0,t.jsx)("span",{className:"text-xs text-blue-600 font-medium",children:"current"})]},e.path))]})})]}):(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)("span",{className:"font-mono text-xs text-gray-600 px-3 py-1 whitespace-nowrap",children:v&&!O?(0,t.jsx)("div",{className:"h-4 bg-gray-200 rounded animate-pulse",style:{width:"220px"}}):O?O.split("/").pop():"No log file"})}),p.length>0&&(0,t.jsxs)("div",{className:"flex items-center gap-1 hidden sm:flex",children:[(0,t.jsxs)("span",{className:"text-sm text-muted-foreground",children:[p.length," entries"]}),O&&!v&&(0,t.jsx)("button",{type:"button",onClick:ex,disabled:U,className:"p-0.5 text-muted-foreground hover:text-foreground hover:bg-accent rounded transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:"Clear logs (rotate current log to archive and start fresh)",children:U?(0,t.jsx)("div",{className:"w-3 h-3 border border-current border-t-transparent rounded-full animate-spin"}):(0,t.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),et.length>0&&!b&&(0,t.jsxs)("span",{className:"text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 px-2 py-1 rounded-full",children:["+",et.length," buffered"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[!1,(0,t.jsxs)("div",{className:"relative",ref:eo,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>B(!M),className:"flex items-center gap-1 px-3 py-1 rounded text-sm font-medium transition-colors whitespace-nowrap bg-muted text-muted-foreground hover:bg-muted/80",children:[(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"})}),"Filter"]}),M&&(0,t.jsx)("div",{className:"absolute top-full right-0 mt-1 bg-card border border-border rounded-md shadow-lg z-20 min-w-48",children:(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsx)("div",{className:"px-3 py-2 text-xs font-medium text-muted-foreground border-b border-border",children:"Log Types"}),(0,t.jsxs)("label",{className:"flex items-center justify-between px-3 py-2 text-sm hover:bg-accent cursor-pointer",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",checked:Z.server,onChange:e=>q(t=>({...t,server:e.target.checked})),className:"rounded border-input text-primary focus:ring-ring"}),(0,t.jsx)("span",{className:"text-foreground",children:"Server"})]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:p.filter(e=>"SERVER"===e.source).length})]}),(0,t.jsxs)("label",{className:"flex items-center justify-between px-3 py-2 text-sm hover:bg-accent cursor-pointer",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",checked:Z.browser,onChange:e=>q(t=>({...t,browser:e.target.checked})),className:"rounded border-input text-primary focus:ring-ring"}),(0,t.jsx)("span",{className:"text-foreground",children:"Browser"})]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:p.filter(e=>"BROWSER"===e.source).length})]}),em.length>1&&Z.browser&&(0,t.jsx)("div",{className:"ml-6 border-l border-border pl-2",children:em.map(e=>{let r=e.includes("Chrome")?"Chrome":e.includes("Firefox")?"Firefox":e.includes("Safari")?"Safari":e.includes("Edge")?"Edge":"Browser";return(0,t.jsxs)("label",{className:"flex items-center justify-between px-2 py-1 text-xs hover:bg-accent cursor-pointer",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",checked:!1!==Q[e],onChange:t=>ee(r=>({...r,[e]:t.target.checked})),className:"rounded border-input text-primary focus:ring-ring w-3 h-3"}),(0,t.jsx)("span",{className:"text-foreground",children:r})]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:p.filter(t=>"BROWSER"===t.source&&t.userAgent===e).length})]},e)})}),(0,t.jsxs)("label",{className:"flex items-center justify-between px-3 py-2 text-sm hover:bg-accent cursor-pointer",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",checked:Z.interaction,onChange:e=>q(t=>({...t,interaction:e.target.checked})),className:"rounded border-input text-primary focus:ring-ring"}),(0,t.jsx)("span",{className:"text-foreground",children:"Interaction"})]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:p.filter(e=>e.message.includes("[INTERACTION]")).length})]}),(0,t.jsxs)("label",{className:"flex items-center justify-between px-3 py-2 text-sm hover:bg-accent cursor-pointer",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",checked:Z.screenshot,onChange:e=>q(t=>({...t,screenshot:e.target.checked})),className:"rounded border-input text-primary focus:ring-ring"}),(0,t.jsx)("span",{className:"text-foreground",children:"Screenshot"})]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:p.filter(e=>e.message.includes("[SCREENSHOT]")).length})]})]})})]}),(0,t.jsx)(l.DarkModeToggle,{darkMode:u,setDarkMode:m,className:"ml-2"})]})]})})}),(0,t.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,t.jsx)("div",{ref:en,className:"max-w-7xl mx-auto px-4 py-6 h-full overflow-y-auto",onScroll:()=>{if(en.current){let{scrollTop:e,scrollHeight:t,clientHeight:r}=en.current,s=e+r>=t-10;b&&!s&&(ei.current=!0),N(s)}},children:v?(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsx)("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-primary"}),(0,t.jsx)("div",{className:"text-muted-foreground text-sm mt-4",children:"Loading logs..."})]}):0===p.length?(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsx)("div",{className:"text-muted-foreground text-lg",children:"📝 No logs yet"}),(0,t.jsx)("div",{className:"text-muted-foreground text-sm mt-2",children:_>=z?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-red-500 mb-2",children:["Failed to load logs after ",z," attempts."]}),(0,t.jsx)("button",{type:"button",onClick:()=>{K(0),$(null),X(!1),eu()},className:"px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 transition-colors",children:"Retry"})]}):"Logs will appear here as your development server runs"})]}):0===ep.length?(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsx)("div",{className:"text-muted-foreground text-lg",children:"🔍 No logs match current filters"}),(0,t.jsx)("div",{className:"text-muted-foreground text-sm mt-2",children:"Try adjusting your filter settings to see more logs"})]}):(0,t.jsxs)("div",{className:"space-y-1 pb-4",children:[ep.map((e,r)=>(0,t.jsx)(x,{entry:e,darkMode:u},"".concat(e.timestamp,"-").concat(r))),(0,t.jsx)("div",{ref:es})]})})}),(0,t.jsx)("div",{className:"border-t border-border bg-muted/50 flex-none",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 py-3 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[E&&(0,t.jsxs)("span",{className:"text-xs text-muted-foreground font-mono",children:["Last updated ",E.toLocaleTimeString()]}),O&&(0,t.jsx)("span",{className:"text-xs text-muted-foreground font-mono break-all",children:O})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 text-green-600 ".concat("tail"===h&&b?"visible":"invisible"),children:[(0,t.jsx)("div",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse"}),(0,t.jsx)("span",{className:"text-xs",children:"Live"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{var e;ei.current=!1,et.length>0&&(g(e=>[...e,...et]),er([]),R(new Date)),null==(e=es.current)||e.scrollIntoView({behavior:"smooth"})},className:"absolute top-0 right-0 flex items-center gap-1 px-2 py-0.5 bg-blue-600 text-white rounded text-xs hover:bg-blue-700 whitespace-nowrap ".concat("tail"!==h||b?"invisible":"visible"),children:"↓ Live"})]})]})})]})}e.s(["default",()=>m],54735)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95299,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},33323,(e,t,r)=>{"use strict";function n(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:l,objectFit:a}=e,o=n?40*n:t,s=i?40*i:r,u=o&&s?"viewBox='0 0 "+o+" "+s+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+l+"'/%3E%3C/svg%3E"}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},95827,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return i}});let n=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},76154,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return s}}),e.r(95299);let n=e.r(33323),i=e.r(95827),l=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r,s;let u,d,c,{src:f,sizes:p,unoptimized:m=!1,priority:g=!1,preload:h=!1,loading:b,className:v,quality:y,width:x,height:j,fill:_=!1,style:w,overrideSrc:S,onLoad:C,onLoadingComplete:O,placeholder:P="empty",blurDataURL:E,fetchPriority:M,decoding:R="async",layout:I,objectFit:N,objectPosition:z,lazyBoundary:k,lazyRoot:A,...D}=e,{imgConf:T,showAltText:B,blurComplete:L,defaultLoader:F}=t,U=T||i.imageConfigDefault;if("allSizes"in U)u=U;else{let e=[...U.deviceSizes,...U.imageSizes].sort((e,t)=>e-t),t=U.deviceSizes.sort((e,t)=>e-t),n=null==(r=U.qualities)?void 0:r.sort((e,t)=>e-t);u={...U,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===F)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let q=D.loader||F;delete D.loader,delete D.srcSet;let G="__next_img_default"in q;if(G){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+f+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=q;q=t=>{let{config:r,...n}=t;return e(n)}}if(I){"fill"===I&&(_=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[I];t&&!p&&(p=t)}let W="",H=o(x),V=o(j);if((s=f)&&"object"==typeof s&&(a(s)||void 0!==s.src)){let e=a(f)?f.default:f;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(d=e.blurWidth,c=e.blurHeight,E=E||e.blurDataURL,W=e.src,!_)if(H||V){if(H&&!V){let t=H/e.width;V=Math.round(e.height*t)}else if(!H&&V){let t=V/e.height;H=Math.round(e.width*t)}}else H=e.width,V=e.height}let X=!g&&!h&&("lazy"===b||void 0===b);(!(f="string"==typeof f?f:W)||f.startsWith("data:")||f.startsWith("blob:"))&&(m=!0,X=!1),u.unoptimized&&(m=!0),G&&!u.dangerouslyAllowSVG&&f.split("?",1)[0].endsWith(".svg")&&(m=!0);let $=o(y),J=Object.assign(_?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:N,objectPosition:z}:{},B?{}:{color:"transparent"},w),K=L||"empty"===P?null:"blur"===P?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:H,heightInt:V,blurWidth:d,blurHeight:c,blurDataURL:E||"",objectFit:J.objectFit})+'")':'url("'+P+'")',Q=l.includes(J.objectFit)?"fill"===J.objectFit?"100% 100%":"cover":J.objectFit,Y=K?{backgroundSize:Q,backgroundPosition:J.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},Z=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:l,sizes:a,loader:o}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:s,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),d=s.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:s.map((e,n)=>o({config:t,src:r,quality:l,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:o({config:t,src:r,quality:l,width:s[d]})}}({config:u,src:f,unoptimized:m,width:H,quality:$,sizes:p,loader:q}),ee=X?"lazy":b;return{props:{...D,loading:ee,fetchPriority:M,width:H,height:V,decoding:R,className:v,style:{...J,...Y},sizes:Z.sizes,srcSet:Z.srcSet,src:S||Z.src},meta:{unoptimized:m,preload:h||g,placeholder:P,fill:_}}}},33360,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(72938),i="undefined"==typeof window,l=i?()=>{}:n.useLayoutEffect,a=i?()=>{}:n.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}if(i){var s;null==t||null==(s=t.mountedInstances)||s.add(e.children),o()}return l(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),l(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},85487,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=e.r(81258)._(e.r(72938)).default.createContext({})},57883,(e,t,r)=>{"use strict";function n(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isInAmpMode",{enumerable:!0,get:function(){return n}})},89454,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{default:function(){return g},defaultHead:function(){return c}});let n=e.r(81258),i=e.r(44066),l=e.r(54610),a=i._(e.r(72938)),o=n._(e.r(33360)),s=e.r(85487),u=e.r(30741),d=e.r(57883);function c(e){void 0===e&&(e=!1);let t=[(0,l.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,l.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(95299);let p=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(c(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let l=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?l=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?l=!1:t.add(i.type);break;case"meta":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(i.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?l=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!a)&&r.has(e)?l=!1:(r.add(e),n[t]=r)}}}return l}}()).reverse().map((e,t)=>{let r=e.key||t;return a.default.cloneElement(e,{key:r})})}let g=function(e){let{children:t}=e,r=(0,a.useContext)(s.AmpStateContext),n=(0,a.useContext)(u.HeadManagerContext);return(0,l.jsx)(o.default,{reduceComponentsToState:m,headManager:n,inAmpMode:(0,d.isInAmpMode)(r),children:t})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},64721,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return l}});let n=e.r(81258)._(e.r(72938)),i=e.r(95827),l=n.default.createContext(i.imageConfigDefault)},8946,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(81258)._(e.r(72938)).default.createContext(null)},24440,(e,t,r)=>{"use strict";function n(e,t){var r;let n=e||75;return(null==t||null==(r=t.qualities)?void 0:r.length)?t.qualities.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e,0):n}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},20237,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});let n=e.r(24440);function i(e){let{config:t,src:r,width:i,quality:l}=e,a=(0,n.findClosestQuality)(l,t);return t.path+"?url="+encodeURIComponent(r)+"&w="+i+"&q="+a+(r.startsWith("/_next/static/media/"),"")}i.__next_img_default=!0;let l=i},33830,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(72938);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=l(e,n)),t&&(i.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77708,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return x}});let n=e.r(81258),i=e.r(44066),l=e.r(54610),a=i._(e.r(72938)),o=n._(e.r(457)),s=n._(e.r(89454)),u=e.r(76154),d=e.r(95827),c=e.r(64721);e.r(95299);let f=e.r(8946),p=n._(e.r(20237)),m=e.r(33830),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function h(e,t,r,n,i,l,a){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function b(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:o,width:s,decoding:u,className:d,style:c,fetchPriority:f,placeholder:p,loading:g,unoptimized:v,fill:y,onLoadRef:x,onLoadingCompleteRef:j,setBlurComplete:_,setShowAltText:w,sizesInput:S,onLoad:C,onError:O,...P}=e,E=(0,a.useCallback)(e=>{e&&(O&&(e.src=e.src),e.complete&&h(e,p,x,j,_,v,S))},[r,p,x,j,_,O,v,S]),M=(0,m.useMergedRef)(t,E);return(0,l.jsx)("img",{...P,...b(f),loading:g,width:s,height:o,decoding:u,"data-nimg":y?"fill":"1",className:d,style:c,sizes:i,srcSet:n,src:r,ref:M,onLoad:e=>{h(e.currentTarget,p,x,j,_,v,S)},onError:e=>{w(!0),"empty"!==p&&_(!0),O&&O(e)}})});function y(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...b(r.fetchPriority)};return t&&o.default.preload?(o.default.preload(r.src,n),null):(0,l.jsx)(s.default,{children:(0,l.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let x=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(c.ImageConfigContext),i=(0,a.useMemo)(()=>{var e;let t=g||n||d.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),l=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:l}},[n]),{onLoad:o,onLoadingComplete:s}=e,m=(0,a.useRef)(o);(0,a.useEffect)(()=>{m.current=o},[o]);let h=(0,a.useRef)(s);(0,a.useEffect)(()=>{h.current=s},[s]);let[b,x]=(0,a.useState)(!1),[j,_]=(0,a.useState)(!1),{props:w,meta:S}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:b,showAltText:j});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v,{...w,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:h,setBlurComplete:x,setShowAltText:_,sizesInput:e.sizes,ref:t}),S.preload?(0,l.jsx)(y,{isAppRouter:!r,imgAttributes:w}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},46568,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{default:function(){return s},getImageProps:function(){return o}});let n=e.r(81258),i=e.r(76154),l=e.r(77708),a=n._(e.r(20237));function o(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let s=l.Image},91075,(e,t,r)=>{t.exports=e.r(46568)},88659,e=>{"use strict";var t=e.i(54610),r=e.i(91075),n=e.i(72938);function i(e){var i,l;let{params:a}=e,{session:o}=(0,n.use)(a),[s,u]=(0,n.useState)([]),[d,c]=(0,n.useState)(0),[f,p]=(0,n.useState)(!1),[m,g]=(0,n.useState)(10),[h,b]=(0,n.useState)({width:1920,height:1080}),[v,y]=(0,n.useState)(null),[x,j]=(0,n.useState)([]);(0,n.useEffect)(()=>{fetch("/api/screenshots/list?pattern=".concat(o)).then(e=>e.json()).then(e=>{let t=e.files.filter(e=>e.includes("jank-")&&e.includes(o)).sort((e,t)=>{var r,n;return parseInt((null==(r=e.match(/jank-(\d+)ms/))?void 0:r[1])||"0",10)-parseInt((null==(n=t.match(/jank-(\d+)ms/))?void 0:n[1])||"0",10)});if(u(t),t.length>0){let e=new Image;e.onload=()=>{b({width:e.naturalWidth,height:e.naturalHeight})},e.src="/api/screenshots/".concat(t[0])}}),fetch("/api/jank/".concat(o)).then(e=>e.json()).then(e=>{j(e.clsMarkers||[])}).catch(()=>{j([])})},[o]),(0,n.useEffect)(()=>{if(!f||0===s.length)return;let e=setInterval(()=>{c(e=>e>=s.length-1?(p(!1),e):e+1)},1e3/m);return()=>clearInterval(e)},[f,s.length,m]);let[,_]=(0,n.useState)(0);if((0,n.useEffect)(()=>{let e=()=>_(e=>e+1);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),0===s.length)return(0,t.jsx)("div",{className:"p-8",children:"Loading frames..."});let w=s[d],S=(null==w||null==(i=w.match(/jank-(\d+)ms/))?void 0:i[1])||"0",C=parseInt(S,10),O=x.find(e=>100>Math.abs(e.timestamp-C)),P={};if(v&&(null==O?void 0:O.boundingBox)){let e=null==(l=v.parentElement)?void 0:l.getBoundingClientRect(),t=h.width,r=h.height;if(e){let n,i,l,a,o=e.width/e.height,s=t/r;o>s?(n=(i=e.height)*s,l=(e.width-n)/2,a=0):(i=(n=e.width)/s,l=0,a=(e.height-i)/2);let u=n/t;P={left:"".concat(l+O.boundingBox.x*u,"px"),top:"".concat(a+O.boundingBox.y*u,"px"),width:"".concat(O.boundingBox.width*u,"px"),height:"".concat(O.boundingBox.height*u,"px")}}}return(0,t.jsxs)("div",{className:"flex flex-col h-screen bg-black",children:[(0,t.jsxs)("div",{className:"flex-1 flex items-center justify-center relative overflow-hidden",children:[(0,t.jsx)(r.default,{ref:y,src:"/api/screenshots/".concat(w),alt:"Frame ".concat(d),className:"w-full h-full object-contain",fill:!0,unoptimized:!0}),(null==O?void 0:O.boundingBox)&&v&&(0,t.jsx)("div",{className:"absolute border-2 border-red-500 pointer-events-none",style:P})]}),(0,t.jsxs)("div",{className:"bg-gray-900 text-white p-4 space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("button",{type:"button",onClick:()=>p(!f),className:"px-4 py-2 bg-blue-600 hover:bg-blue-700 rounded",children:f?"Pause":"Play"}),(0,t.jsx)("button",{type:"button",onClick:()=>c(Math.max(0,d-1)),disabled:0===d,className:"px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded disabled:opacity-50",children:"Previous"}),(0,t.jsx)("button",{type:"button",onClick:()=>c(Math.min(s.length-1,d+1)),disabled:d===s.length-1,className:"px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded disabled:opacity-50",children:"Next"}),(0,t.jsxs)("span",{className:"flex-1 text-center",children:["Frame ",d+1," / ",s.length," (",S,"ms)"]}),(0,t.jsxs)("label",{className:"flex items-center gap-2",children:["Speed:",(0,t.jsx)("input",{type:"range",min:"1",max:"30",value:m,onChange:e=>g(Number(e.target.value)),className:"w-32"}),(0,t.jsxs)("span",{className:"w-12",children:[m," fps"]})]})]}),(0,t.jsxs)("div",{className:"relative w-full",children:[(0,t.jsx)("input",{type:"range",min:"0",max:s.length-1,value:d,onChange:e=>c(Number(e.target.value)),className:"w-full"}),x.map(e=>{let r=s.findIndex(t=>{var r;return parseInt((null==(r=t.match(/jank-(\d+)ms/))?void 0:r[1])||"0",10)>=e.timestamp});if(-1===r)return null;let n=r/(s.length-1)*100;return(0,t.jsxs)("div",{className:"absolute top-0 h-full pointer-events-none",style:{left:"".concat(n,"%")},children:[(0,t.jsx)("div",{className:"w-0.5 h-full bg-red-500"}),(0,t.jsx)("div",{className:"absolute -top-6 left-0 -translate-x-1/2 bg-red-500 text-white text-xs px-2 py-0.5 rounded whitespace-nowrap",children:e.clsScore?(0,t.jsxs)(t.Fragment,{children:["CLS ",e.clsScore.toFixed(4)," @ ",e.timestamp,"ms",e.element&&(0,t.jsxs)("span",{className:"ml-1 opacity-75",children:["<",e.element.toLowerCase(),">"]})]}):"CLS ".concat(e.timestamp,"ms")})]},e.timestamp)})]})]})]})}e.s(["default",()=>i])}]);
|
|
@@ -5,15 +5,12 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
|
5
5
|
|
|
6
6
|
const nextConfig = {
|
|
7
7
|
reactStrictMode: true,
|
|
8
|
-
|
|
8
|
+
reactCompiler: true,
|
|
9
|
+
experimental: { turbopackFileSystemCacheForDev: true },
|
|
9
10
|
devIndicators: false,
|
|
10
11
|
turbopack: {
|
|
11
12
|
root: path.join(__dirname, "..")
|
|
12
13
|
},
|
|
13
|
-
// Optimize for minimal MCP server
|
|
14
|
-
eslint: {
|
|
15
|
-
ignoreDuringBuilds: true
|
|
16
|
-
},
|
|
17
14
|
// Disable image optimization to avoid sharp dependency issues
|
|
18
15
|
images: {
|
|
19
16
|
unoptimized: true
|
package/mcp-server/tsconfig.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dev3000",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.97",
|
|
4
4
|
"description": "AI-powered development tools with browser monitoring and MCP server integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"package-manager-detector": "^1.3.0",
|
|
69
69
|
"react": "^19.1.1",
|
|
70
70
|
"react-dom": "^19.1.1",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
71
|
+
"typescript": "^5.0.0",
|
|
72
|
+
"ws": "^8.18.3"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/node": "^24.5.2",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
},
|
|
95
95
|
"author": "Lindsey Simon <lindsey@vercel.com>",
|
|
96
96
|
"license": "MIT",
|
|
97
|
-
"packageManager": "pnpm@10.
|
|
97
|
+
"packageManager": "pnpm@10.18.3"
|
|
98
98
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57157,(e,s,t)=>{"use strict";var r=e.r(72938).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.c=function(e){return r.H.useMemoCache(e)}},62772,(e,s,t)=>{"use strict";s.exports=e.r(57157)},41449,e=>{"use strict";var s=e.i(68029),t=e.i(54610),r=e.i(62772),l=e.i(72938),a=e.i(68860);function n(e){let s,a,n,c,o,i,d,m,x,h,u,f,p,j,b,g,y,N,v,_,S,w,k,C,U,O,A,M,I,F,T,P=(0,r.c)(61),{className:G}=e,H=(0,l.useId)(),L=(0,l.useId)(),R=(0,l.useId)(),E=(0,l.useId)(),Z=(0,l.useId)(),D=(0,l.useId)(),B="".concat(G," block dark:hidden");P[0]===Symbol.for("react.memo_cache_sentinel")?(s={maskType:"alpha"},a=(0,t.jsx)("circle",{cx:"90",cy:"90",fill:"black",r:"90"}),P[0]=s,P[1]=a):(s=P[0],a=P[1]),P[2]!==H?(n=(0,t.jsx)("mask",{height:"180",id:H,maskUnits:"userSpaceOnUse",width:"180",x:"0",y:"0",style:s,children:a}),P[2]=H,P[3]=n):n=P[3];let V="url(#".concat(H,")");P[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("circle",{cx:"90",cy:"90",fill:"black",r:"90"}),P[4]=c):c=P[4];let W="url(#".concat(L,")");P[5]!==W?(o=(0,t.jsx)("path",{d:"M149.508 157.52L69.142 54H54V125.97H66.1136V69.3836L139.999 164.845C143.333 162.614 146.509 160.165 149.508 157.52Z",fill:W}),P[5]=W,P[6]=o):o=P[6];let z="url(#".concat(R,")");P[7]!==z?(i=(0,t.jsx)("rect",{fill:z,height:"72",width:"12",x:"115",y:"54"}),P[7]=z,P[8]=i):i=P[8],P[9]!==i||P[10]!==V||P[11]!==o?(d=(0,t.jsxs)("g",{mask:V,children:[c,o,i]}),P[9]=i,P[10]=V,P[11]=o,P[12]=d):d=P[12],P[13]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)("stop",{stopColor:"white"}),x=(0,t.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"}),P[13]=m,P[14]=x):(m=P[13],x=P[14]),P[15]!==L?(h=(0,t.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:L,x1:"109",x2:"144.5",y1:"116.5",y2:"160.5",children:[m,x]}),P[15]=L,P[16]=h):h=P[16],P[17]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("stop",{stopColor:"white"}),f=(0,t.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"}),P[17]=u,P[18]=f):(u=P[17],f=P[18]),P[19]!==R?(p=(0,t.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:R,x1:"121",x2:"120.799",y1:"54",y2:"106.875",children:[u,f]}),P[19]=R,P[20]=p):p=P[20],P[21]!==h||P[22]!==p?(j=(0,t.jsxs)("defs",{children:[h,p]}),P[21]=h,P[22]=p,P[23]=j):j=P[23],P[24]!==B||P[25]!==d||P[26]!==j||P[27]!==n?(b=(0,t.jsxs)("svg",{"aria-label":"Next.js logomark",className:B,height:"16",role:"img",viewBox:"0 0 180 180",width:"16",children:[n,d,j]}),P[24]=B,P[25]=d,P[26]=j,P[27]=n,P[28]=b):b=P[28];let K="".concat(G," hidden dark:block");P[29]===Symbol.for("react.memo_cache_sentinel")?(g={maskType:"alpha"},y=(0,t.jsx)("circle",{cx:"90",cy:"90",fill:"black",r:"90"}),P[29]=g,P[30]=y):(g=P[29],y=P[30]),P[31]!==E?(N=(0,t.jsx)("mask",{height:"180",id:E,maskUnits:"userSpaceOnUse",width:"180",x:"0",y:"0",style:g,children:y}),P[31]=E,P[32]=N):N=P[32];let q="url(#".concat(E,")");P[33]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)("circle",{cx:"90",cy:"90",fill:"white",r:"90"}),P[33]=v):v=P[33];let Y="url(#".concat(Z,")");P[34]!==Y?(_=(0,t.jsx)("path",{d:"M149.508 157.52L69.142 54H54V125.97H66.1136V69.3836L139.999 164.845C143.333 162.614 146.509 160.165 149.508 157.52Z",fill:Y}),P[34]=Y,P[35]=_):_=P[35];let $="url(#".concat(D,")");return P[36]!==$?(S=(0,t.jsx)("rect",{fill:$,height:"72",width:"12",x:"115",y:"54"}),P[36]=$,P[37]=S):S=P[37],P[38]!==q||P[39]!==_||P[40]!==S?(w=(0,t.jsxs)("g",{mask:q,children:[v,_,S]}),P[38]=q,P[39]=_,P[40]=S,P[41]=w):w=P[41],P[42]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsx)("stop",{stopColor:"black"}),C=(0,t.jsx)("stop",{offset:"1",stopColor:"black",stopOpacity:"0"}),P[42]=k,P[43]=C):(k=P[42],C=P[43]),P[44]!==Z?(U=(0,t.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:Z,x1:"109",x2:"144.5",y1:"116.5",y2:"160.5",children:[k,C]}),P[44]=Z,P[45]=U):U=P[45],P[46]===Symbol.for("react.memo_cache_sentinel")?(O=(0,t.jsx)("stop",{stopColor:"black"}),A=(0,t.jsx)("stop",{offset:"1",stopColor:"black",stopOpacity:"0"}),P[46]=O,P[47]=A):(O=P[46],A=P[47]),P[48]!==D?(M=(0,t.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:D,x1:"121",x2:"120.799",y1:"54",y2:"106.875",children:[O,A]}),P[48]=D,P[49]=M):M=P[49],P[50]!==U||P[51]!==M?(I=(0,t.jsxs)("defs",{children:[U,M]}),P[50]=U,P[51]=M,P[52]=I):I=P[52],P[53]!==K||P[54]!==N||P[55]!==w||P[56]!==I?(F=(0,t.jsxs)("svg",{"aria-label":"Next.js logomark",className:K,height:"16",role:"img",viewBox:"0 0 180 180",width:"16",children:[N,w,I]}),P[53]=K,P[54]=N,P[55]=w,P[56]=I,P[57]=F):F=P[57],P[58]!==b||P[59]!==F?(T=(0,t.jsxs)(t.Fragment,{children:[b,F]}),P[58]=b,P[59]=F,P[60]=T):T=P[60],T}function c(e){let s,a,n,c,o,i,d,m,x,h,u,f,p,j,b,g,y,N=(0,r.c)(31),{className:v}=e,_=(0,l.useId)(),S=(0,l.useId)(),w=(0,l.useId)();N[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("stop",{offset:"0",stopColor:"#d93025"}),a=(0,t.jsx)("stop",{offset:"1",stopColor:"#ea4335"}),N[0]=s,N[1]=a):(s=N[0],a=N[1]),N[2]!==_?(n=(0,t.jsxs)("linearGradient",{id:_,x1:"3.2173",y1:"15",x2:"44.7812",y2:"15",gradientUnits:"userSpaceOnUse",children:[s,a]}),N[2]=_,N[3]=n):n=N[3],N[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("stop",{offset:"0",stopColor:"#fcc934"}),o=(0,t.jsx)("stop",{offset:"1",stopColor:"#fbbc04"}),N[4]=c,N[5]=o):(c=N[4],o=N[5]),N[6]!==S?(i=(0,t.jsxs)("linearGradient",{id:S,x1:"20.7219",y1:"47.6791",x2:"41.5039",y2:"11.6837",gradientUnits:"userSpaceOnUse",children:[c,o]}),N[6]=S,N[7]=i):i=N[7],N[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)("stop",{offset:"0",stopColor:"#1e8e3e"}),m=(0,t.jsx)("stop",{offset:"1",stopColor:"#34a853"}),N[8]=d,N[9]=m):(d=N[8],m=N[9]),N[10]!==w?(x=(0,t.jsxs)("linearGradient",{id:w,x1:"26.5981",y1:"46.5015",x2:"5.8161",y2:"10.506",gradientUnits:"userSpaceOnUse",children:[d,m]}),N[10]=w,N[11]=x):x=N[11],N[12]!==n||N[13]!==i||N[14]!==x?(h=(0,t.jsxs)("defs",{children:[n,i,x]}),N[12]=n,N[13]=i,N[14]=x,N[15]=h):h=N[15],N[16]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("circle",{cx:"24",cy:"23.9947",r:"12",style:{fill:"#fff"}}),N[16]=u):u=N[16],N[17]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)("path",{d:"M3.2154,36A24,24,0,1,0,12,3.2154,24,24,0,0,0,3.2154,36ZM34.3923,18A12,12,0,1,1,18,13.6077,12,12,0,0,1,34.3923,18Z",style:{fill:"none"}}),N[17]=f):f=N[17];let k="url(#".concat(_,")");N[18]!==k?(p=(0,t.jsx)("path",{d:"M24,12H44.7812a23.9939,23.9939,0,0,0-41.5639.0029L13.6079,30l.0093-.0024A11.9852,11.9852,0,0,1,24,12Z",style:{fill:k}}),N[18]=k,N[19]=p):p=N[19],N[20]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)("circle",{cx:"24",cy:"24",r:"9.5",style:{fill:"#1a73e8"}}),N[20]=j):j=N[20];let C="url(#".concat(S,")");N[21]!==C?(b=(0,t.jsx)("path",{d:"M34.3913,30.0029,24.0007,48A23.994,23.994,0,0,0,44.78,12.0031H23.9989l-.0025.0093A11.985,11.985,0,0,1,34.3913,30.0029Z",style:{fill:C}}),N[21]=C,N[22]=b):b=N[22];let U="url(#".concat(w,")");return N[23]!==U?(g=(0,t.jsx)("path",{d:"M13.6086,30.0031,3.218,12.006A23.994,23.994,0,0,0,24.0025,48L34.3931,30.0029l-.0067-.0068a11.9852,11.9852,0,0,1-20.7778.007Z",style:{fill:U}}),N[23]=U,N[24]=g):g=N[24],N[25]!==v||N[26]!==h||N[27]!==p||N[28]!==b||N[29]!==g?(y=(0,t.jsxs)("svg",{className:v,viewBox:"0 0 48 48",height:"16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[h,u,f,p,j,b,g]}),N[25]=v,N[26]=h,N[27]=p,N[28]=b,N[29]=g,N[30]=y):y=N[30],y}var o=e.i(54768);function i(){let e,n,c,i,x,f,p,j,b,g,y,N,v,_,S,w,k,C,U,O,A=(0,r.c)(30),[M,I]=(0,l.useState)(null),[F,T]=(0,l.useState)(null),[P,G]=(0,l.useState)(!0),[H,L]=(0,o.useDarkMode)();return A[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{Promise.all([fetch("/api/tools"),fetch("/api/orchestrator")]).then(u).then(e=>{let[s,t]=e;I(s),T(t),G(!1)}).catch(()=>{G(!1)})},n=[],A[0]=e,A[1]=n):(e=A[0],n=A[1]),(0,l.useEffect)(e,n),A[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("div",{className:"w-12 h-12 bg-foreground rounded flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-background font-mono font-bold",children:"d3k"})}),i=(0,t.jsx)("h1",{className:"text-3xl font-bold",children:"dev3000 MCP Server"}),A[2]=c,A[3]=i):(c=A[2],i=A[3]),A[4]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 text-sm text-green-600 font-medium",children:[(0,t.jsx)("span",{className:"w-2 h-2 bg-green-500 rounded-full"}),"Server Running"]}),f=(0,t.jsx)("span",{className:"text-muted-foreground",children:"•"}),A[4]=x,A[5]=f):(x=A[4],f=A[5]),A[6]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-3",children:[c,(0,t.jsxs)("div",{children:[i,(0,t.jsxs)("div",{className:"flex items-center gap-3 mt-2",children:[x,f,(0,t.jsxs)("span",{className:"text-sm text-muted-foreground",children:["Port ",s.default.env.PORT||"3684"]})]})]})]})}),A[6]=p):p=A[6],A[7]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)("a",{href:"https://github.com/vercel-labs/dev3000#setup",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-3 border border-border text-foreground text-sm font-medium rounded hover:bg-accent hover:text-accent-foreground transition-colors",children:"📖 Setup Guide"}),A[7]=j):j=A[7],A[8]!==H||A[9]!==L?(b=(0,t.jsx)("header",{className:"bg-muted/30 border-b border-border",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-6 py-8",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[p,(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[j,(0,t.jsx)(a.DarkModeToggle,{darkMode:H,setDarkMode:L})]})]})})}),A[8]=H,A[9]=L,A[10]=b):b=A[10],A[11]!==P||A[12]!==F?(g=!P&&F&&(0,t.jsx)("section",{className:"mb-16",children:(0,t.jsxs)("div",{className:"bg-accent/10 border border-accent/20 rounded p-8",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold mb-4",children:"🔌 MCP Connections"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:F.message}),F.totalConnections>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex flex-wrap gap-3 mb-4",children:F.mcpDetails.map(h)}),F.totalProjects>0&&(0,t.jsxs)("div",{className:"text-sm text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium",children:"Active projects:"})," ",F.projects.map((e,s)=>(0,t.jsxs)("span",{children:[(0,t.jsx)("code",{className:"text-foreground bg-background/50 px-1.5 py-0.5 rounded",children:e}),s<F.projects.length-1&&", "]},e))]})]}):(0,t.jsxs)("div",{className:"text-sm text-muted-foreground bg-background/50 border border-border rounded p-4",children:[(0,t.jsx)("p",{className:"mb-2",children:"⏳ Waiting for downstream MCPs to become available..."}),(0,t.jsxs)("p",{className:"text-xs",children:["dev3000 will automatically connect to ",(0,t.jsx)("code",{className:"text-foreground",children:"chrome-devtools"})," and"," ",(0,t.jsx)("code",{className:"text-foreground",children:"nextjs-dev"})," MCPs when Chrome and your dev server start."]})]})]})}),A[11]=P,A[12]=F,A[13]=g):g=A[13],A[14]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)("h2",{className:"text-xl font-semibold mb-4",children:"🛠️ dev3000 Tools"}),A[14]=y):y=A[14],A[15]!==P||A[16]!==M?(N=(0,t.jsxs)("section",{className:"bg-accent/10 border border-accent/20 rounded p-8",children:[y,P?(0,t.jsxs)("div",{className:"text-center py-16",children:[(0,t.jsx)("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-primary"}),(0,t.jsx)("p",{className:"mt-6 text-muted-foreground",children:"Loading tool documentation..."})]}):M?(0,t.jsx)("div",{className:"grid gap-6 lg:grid-cols-2",children:M.tools.map(m)}):(0,t.jsxs)("div",{className:"text-center py-16",children:[(0,t.jsx)("p",{className:"text-destructive mb-6",children:"Failed to load tool documentation"}),(0,t.jsx)("button",{onClick:d,className:"px-6 py-3 bg-primary text-primary-foreground text-sm rounded hover:bg-primary/90 transition-colors",type:"button",children:"Retry"})]})]}),A[15]=P,A[16]=M,A[17]=N):N=A[17],A[18]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)("h2",{className:"text-2xl font-semibold mb-6 flex items-center gap-3",children:"🪄 The Magic Workflow"}),A[18]=v):v=A[18],A[19]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-primary/20 rounded-full flex items-center justify-center mx-auto mb-4 shadow-md",children:(0,t.jsx)("span",{className:"text-primary font-bold text-2xl",children:"1"})}),(0,t.jsx)("h3",{className:"font-semibold mb-3 text-lg",children:"AI Finds Issues"}),(0,t.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"fix_my_app automatically detects all types of errors and problems in your app"})]}),A[19]=_):_=A[19],A[20]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-accent/20 rounded-full flex items-center justify-center mx-auto mb-4 shadow-md",children:(0,t.jsx)("span",{className:"text-accent-foreground font-bold text-2xl",children:"2"})}),(0,t.jsx)("h3",{className:"font-semibold mb-3 text-lg",children:"AI Fixes Code"}),(0,t.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"AI analyzes errors and edits your code files to resolve issues"})]}),A[20]=S):S=A[20],A[21]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsxs)("section",{className:"mt-20 bg-gradient-to-r from-primary/10 to-secondary/10 border border-border rounded-lg p-10",children:[v,(0,t.jsxs)("div",{className:"grid md:grid-cols-3 gap-8",children:[_,S,(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-green-500/20 rounded-full flex items-center justify-center mx-auto mb-4 shadow-md",children:(0,t.jsx)("span",{className:"text-green-600 dark:text-green-400 font-bold text-2xl",children:"3"})}),(0,t.jsx)("h3",{className:"font-semibold mb-3 text-lg",children:"AI Verifies Fixes"}),(0,t.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"execute_browser_action tests the fixes in real-time with screenshots"})]})]})]}),A[21]=w):w=A[21],A[22]!==N||A[23]!==g?(k=(0,t.jsxs)("main",{className:"max-w-7xl mx-auto px-6 py-8",children:[g,N,w]}),A[22]=N,A[23]=g,A[24]=k):k=A[24],A[25]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"font-semibold",children:"dev3000 MCP Server"})," - AI-powered development monitoring"]}),A[25]=C):C=A[25],A[26]===Symbol.for("react.memo_cache_sentinel")?(U=(0,t.jsx)("footer",{className:"border-t border-border mt-20",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-6 py-8",children:(0,t.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[C,(0,t.jsxs)("div",{className:"flex items-center gap-8",children:[(0,t.jsx)("a",{href:"https://github.com/vercel-labs/dev3000",target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors",children:"GitHub"}),(0,t.jsx)("a",{href:"https://dev3000.ai",target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors",children:"Homepage"})]})]})})}),A[26]=U):U=A[26],A[27]!==k||A[28]!==b?(O=(0,t.jsxs)("div",{className:"min-h-screen bg-background text-foreground",children:[b,k,U]}),A[27]=k,A[28]=b,A[29]=O):O=A[29],O}function d(){return window.location.reload()}function m(e){return(0,t.jsxs)("div",{id:e.name,className:"bg-background/50 border border-border rounded-lg p-6 hover:border-muted-foreground/50 transition-colors",children:[(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h4",{className:"text-xl font-semibold font-mono mb-3",children:e.name}),(0,t.jsx)("div",{className:"text-muted-foreground space-y-3",children:function(e){let s=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""),r=e.split("\n\n").filter(e=>e.trim()),l=new Map,a=e=>{var s;let t=null!=(s=l.get(e))?s:0;return l.set(e,t+1),0===t?e:"".concat(e,"-").concat(t)};return r.map((e,r)=>{let l=a(s(e)||"section"),n=e;if((n=(n=n.replace(/\*\*/g,"").trim()).replace(/(\u{1F300}-\u{1F9FF}|\u{2600}-\u{26FF}|\u{1F900}-\u{1F9FF})+/gu,e=>e.charAt(0))).includes(":")){let[e,...r]=n.split(":"),c=e.trim(),o=r.join(":").trim();if(o.includes("•")){let e=o.split("•").filter(e=>e.trim()),r="".concat(l,"-bullets");return(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"font-semibold mb-2",children:c}),(0,t.jsx)("ul",{className:"space-y-1 ml-4",children:e.map(e=>{let l=a("".concat(r,"-item-").concat(s(e).slice(0,40)||"bullet"));return(0,t.jsxs)("li",{className:"flex items-start",children:[(0,t.jsx)("span",{className:"text-muted-foreground mr-2",children:"•"}),(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:e.trim()})]},l)})})]},r)}return(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"font-semibold mb-1",children:c}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm ml-4",children:o})]},"".concat(l,"-content"))}if(n.match(/^\d+[\ud83c-\ud83e][\udc00-\udfff]|^\d+\./m)){let e=n.split(/\n/).filter(e=>e.trim());return(0,t.jsx)("ol",{className:"space-y-1 ml-4",children:e.map((e,r)=>{let n=e.replace(/^\d+[\ud83c-\ud83e][\udc00-\udfff]\s*/,"").replace(/^\d+\.\s*/,"").trim();return(0,t.jsxs)("li",{className:"text-muted-foreground text-sm",children:[r+1,". ",n]},a("".concat(l,"-step-").concat(s(n).slice(0,40)||"step")))})},"".concat(l,"-steps"))}return(0,t.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:n},"".concat(l,"-paragraph"))})}(e.description)})]}),e.parameters.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"text-sm font-semibold mb-3",children:"Parameters:"}),(0,t.jsx)("div",{className:"space-y-2",children:e.parameters.map(x)})]})]},e.name)}function x(e){return(0,t.jsxs)("div",{className:"text-sm",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-primary font-medium",children:e.name}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:e.optional?"(optional)":"(required)"}),(0,t.jsxs)("span",{className:"text-muted-foreground/70 text-xs",children:["- ",e.type]})]}),e.description&&(0,t.jsx)("div",{className:"text-muted-foreground ml-1 mt-1 text-sm",children:e.description})]},e.name)}function h(e){let s="chrome-devtools"===e.name?c:"nextjs-dev"===e.name?n:null;return(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 bg-background/50 border border-border rounded px-3 py-2",children:[s&&(0,t.jsx)(s,{className:"shrink-0"}),(0,t.jsx)("span",{className:"font-semibold font-mono text-sm",children:e.name}),(0,t.jsx)("span",{className:"w-2 h-2 bg-green-500 rounded-full"})]},e.name)}function u(e){let[s,t]=e;return Promise.all([s.json(),t.json()])}e.s(["default",()=>i],41449)}]);
|